studyStudent.vue 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955
  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. <img
  10470. :src="w.works"
  10471. @click="previewImg(w.works, w)"
  10472. alt
  10473. />
  10474. <div
  10475. class="answerScore"
  10476. v-if="w.score"
  10477. @click.stop="openScore(w)"
  10478. :class="{
  10479. rightW:
  10480. w.userid == userid ||
  10481. tType == 1 ||
  10482. tType == 4 ||
  10483. w.ateacher == userid
  10484. }"
  10485. >
  10486. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10487. </div>
  10488. <div
  10489. class="answerScore"
  10490. @click.stop="openScore(w)"
  10491. v-else-if="courseDetail.userid == userid"
  10492. :class="{
  10493. rightW:
  10494. w.userid == userid ||
  10495. tType == 1 ||
  10496. tType == 4 ||
  10497. w.ateacher == userid
  10498. }"
  10499. >
  10500. {{ lang.ssMarkScore }}
  10501. </div>
  10502. <img
  10503. class="deleteImg"
  10504. src="../../assets/deleteworks.png"
  10505. v-if="
  10506. w.userid == userid ||
  10507. tType == 1 ||
  10508. tType == 4
  10509. "
  10510. @click.stop="deleteWorks(w.wid)"
  10511. alt
  10512. />
  10513. </div>
  10514. <div class="workImg" v-if="w.type == 1">
  10515. <img
  10516. :src="word"
  10517. @click="openFile(w.works)"
  10518. alt
  10519. />
  10520. <!-- @click="openFile(w.works)" -->
  10521. <div
  10522. class="answerScore"
  10523. v-if="w.score"
  10524. @click.stop="openScore(w)"
  10525. :class="{
  10526. rightW:
  10527. w.userid == userid ||
  10528. tType == 1 ||
  10529. tType == 4 ||
  10530. w.ateacher == userid
  10531. }"
  10532. >
  10533. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10534. </div>
  10535. <div
  10536. class="answerScore"
  10537. @click.stop="openScore(w)"
  10538. v-else-if="courseDetail.userid == userid"
  10539. :class="{
  10540. rightW:
  10541. w.userid == userid ||
  10542. tType == 1 ||
  10543. tType == 4 ||
  10544. w.ateacher == userid
  10545. }"
  10546. >
  10547. {{ lang.ssMarkScore }}
  10548. </div>
  10549. <img
  10550. class="deleteImg"
  10551. src="../../assets/deleteworks.png"
  10552. v-if="
  10553. w.userid == userid ||
  10554. tType == 1 ||
  10555. tType == 4
  10556. "
  10557. @click.stop="deleteWorks(w.wid)"
  10558. alt
  10559. />
  10560. </div>
  10561. <div class="workImg" v-if="w.type == 3">
  10562. <img
  10563. style="cursor: pointer"
  10564. :src="video"
  10565. @click="openVideo(w)"
  10566. alt
  10567. />
  10568. <!-- @click="openVideo(w.works)" -->
  10569. <div
  10570. class="answerScore"
  10571. v-if="w.score"
  10572. @click.stop="openScore(w)"
  10573. :class="{
  10574. rightW:
  10575. w.userid == userid ||
  10576. tType == 1 ||
  10577. tType == 4 ||
  10578. w.ateacher == userid
  10579. }"
  10580. >
  10581. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10582. </div>
  10583. <div
  10584. class="answerScore"
  10585. @click.stop="openScore(w)"
  10586. v-else-if="courseDetail.userid == userid"
  10587. :class="{
  10588. rightW:
  10589. w.userid == userid ||
  10590. tType == 1 ||
  10591. tType == 4 ||
  10592. w.ateacher == userid
  10593. }"
  10594. >
  10595. {{ lang.ssMarkScore }}
  10596. </div>
  10597. <img
  10598. class="deleteImg"
  10599. src="../../assets/deleteworks.png"
  10600. v-if="
  10601. w.userid == userid ||
  10602. tType == 1 ||
  10603. tType == 4
  10604. "
  10605. @click.stop="deleteWorks(w.wid)"
  10606. alt
  10607. />
  10608. </div>
  10609. <div class="workImg" v-if="w.type == 12">
  10610. <img
  10611. style="cursor: pointer"
  10612. :src="word2"
  10613. @click="downloadFile(w.works,w.userid)"
  10614. alt
  10615. />
  10616. <!-- @click="openVideo(w.works)" -->
  10617. <div
  10618. class="answerScore"
  10619. v-if="w.score"
  10620. @click.stop="openScore(w)"
  10621. :class="{
  10622. rightW:
  10623. w.userid == userid ||
  10624. tType == 1 ||
  10625. tType == 4 ||
  10626. w.ateacher == userid
  10627. }"
  10628. >
  10629. {{ JSON.parse(w.score).wScore }}{{ lang.ssScore }}
  10630. </div>
  10631. <div
  10632. class="answerScore"
  10633. @click.stop="openScore(w)"
  10634. v-else-if="courseDetail.userid == userid"
  10635. :class="{
  10636. rightW:
  10637. w.userid == userid ||
  10638. tType == 1 ||
  10639. tType == 4 ||
  10640. w.ateacher == userid
  10641. }"
  10642. >
  10643. {{ lang.ssMarkScore }}
  10644. </div>
  10645. <img
  10646. class="deleteImg"
  10647. src="../../assets/deleteworks.png"
  10648. v-if="
  10649. w.userid == userid ||
  10650. tType == 1 ||
  10651. tType == 4
  10652. "
  10653. @click.stop="deleteWorks(w.wid)"
  10654. alt
  10655. />
  10656. </div>
  10657. <div class="comment" style="min-width: 200px">
  10658. <div class="worksName">
  10659. <div>{{ w.sName }}</div>
  10660. </div>
  10661. <div class="commentList">
  10662. <div class="commentList">
  10663. <div
  10664. class="commentImg"
  10665. @click="
  10666. isLikes(
  10667. w.wid,
  10668. userid,
  10669. 1,
  10670. null,
  10671. w.isLikes,
  10672. w.sName
  10673. )
  10674. "
  10675. >
  10676. <img
  10677. :src="
  10678. w.isLikes == true ? likes : noLikes
  10679. "
  10680. alt=""
  10681. />
  10682. </div>
  10683. <div>{{ w.likesCount }}</div>
  10684. </div>
  10685. <div
  10686. class="commentList"
  10687. style="margin-right: 15px"
  10688. >
  10689. <div
  10690. class="commentImg"
  10691. @click="
  10692. commentOther(
  10693. w,
  10694. toolIndex,
  10695. wIndex,
  10696. gindex
  10697. )
  10698. "
  10699. >
  10700. <img
  10701. src="../../assets/icon/comment/comment.png"
  10702. alt=""
  10703. />
  10704. </div>
  10705. <div>{{ w.commentCount }}</div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. </div>
  10715. <div
  10716. style="width:92%;margin: 0 0 0 40px;"
  10717. v-if="
  10718. courseDetail.state == 6 && tool.eList && tool.eList.length
  10719. "
  10720. >
  10721. <evaTable :eList="tool.eList"></evaTable>
  10722. </div>
  10723. </div>
  10724. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10725. {{ lang.ssUpFile }}
  10726. <input
  10727. type="file"
  10728. accept="image/png, image/gif, image/jpeg"
  10729. style="display: none"
  10730. @change="beforeUpload1($event, 2, index)"
  10731. />
  10732. </div>-->
  10733. </div>
  10734. </div>
  10735. <div
  10736. class="vedioBox"
  10737. style="margin-top: 10px; border-radius: 20px"
  10738. v-if="
  10739. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10740. .eList &&
  10741. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10742. .eList.length &&
  10743. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10744. .eList.length > 0 &&
  10745. tType != 2
  10746. "
  10747. >
  10748. <div
  10749. class="queTop"
  10750. style="
  10751. font-size: 20px;
  10752. padding: 15px 0 15px 37px;
  10753. font-weight: bold;
  10754. "
  10755. >
  10756. <!-- <div class="question" style="width: 30px">
  10757. <img src="../assets/icon/toolIcon.png" alt />
  10758. </div>
  10759. <div class="queTitle">
  10760. <div>工具</div>
  10761. </div>-->
  10762. {{ lang.ssEvaluate }}
  10763. </div>
  10764. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10765. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  10766. <el-table
  10767. :data="
  10768. chapInfoList[courseType].chapterInfo[0].taskJson[
  10769. taskCount
  10770. ].eList
  10771. "
  10772. :header-cell-style="{ background: '#F0F4FA' }"
  10773. :row-class-name="tableRowClassName"
  10774. border
  10775. stripe
  10776. style="width: 100%"
  10777. >
  10778. <el-table-column
  10779. :label="lang.ssEvalName"
  10780. align="center"
  10781. >
  10782. <template slot-scope="scope"
  10783. ><div>{{ scope.row.value }}</div></template
  10784. >
  10785. </el-table-column>
  10786. <el-table-column
  10787. :label="lang.ssEvalDesc"
  10788. align="center"
  10789. >
  10790. <template slot-scope="scope"
  10791. ><div>
  10792. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10793. </div></template
  10794. >
  10795. </el-table-column>
  10796. <el-table-column :label="lang.ssTarget" align="center">
  10797. <template slot-scope="scope"
  10798. ><div>
  10799. {{
  10800. scope.row.target
  10801. ? scope.row.target[scope.row.target.length - 1]
  10802. : "-"
  10803. }}
  10804. </div></template
  10805. ></el-table-column
  10806. >
  10807. </el-table>
  10808. <!-- <div
  10809. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10810. .chapterInfo[0].taskJson[taskCount].eList"
  10811. :key="eIndex"
  10812. class="elist_input_box"
  10813. >
  10814. <div style="width: 95%">
  10815. <div
  10816. style="
  10817. display: flex;
  10818. flex-direction: row;
  10819. flex-wrap: nowrap;
  10820. align-items: center;
  10821. "
  10822. >
  10823. <div style="max-width: calc(100% - 285px)">
  10824. <span>{{ eItem.value }}</span>
  10825. </div>
  10826. <div
  10827. style="
  10828. padding-left: 25px;
  10829. display: flex;
  10830. flex-direction: row;
  10831. align-items: center;
  10832. "
  10833. >
  10834. <el-rate
  10835. v-model="eItem.score"
  10836. :colors="colors"
  10837. disabled
  10838. ></el-rate>
  10839. </div>
  10840. </div>
  10841. <div class="elist_inptu_text" style="padding-left: 10px">
  10842. <span v-if="eItem.detail != ''">{{
  10843. eItem.detail
  10844. }}</span>
  10845. <span v-else style="color: #b2b1b3; font-size: 14px"
  10846. >暂无描述...</span
  10847. >
  10848. </div>
  10849. </div>
  10850. </div> -->
  10851. </div>
  10852. <div
  10853. v-if="evalua"
  10854. style="
  10855. border: 1px solid #e5e5e5;
  10856. max-width: 650px;
  10857. width: 100%;
  10858. margin-top: 20px;
  10859. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10860. "
  10861. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  10862. >
  10863. <div class="e_add_top">
  10864. <div class="e_add_title" style="width: 100%">
  10865. <!-- <span>目标管理名称</span> -->
  10866. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  10867. <img
  10868. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  10869. src="../../assets/line.png"
  10870. class="cru_line"
  10871. style="
  10872. width: 125px;
  10873. height: 20px;
  10874. bottom: -10px;
  10875. left: 5px;
  10876. "
  10877. />
  10878. <!-- <el-input
  10879. v-model="eTitle"
  10880. placeholder="请输入名称"
  10881. @change="setMindData"
  10882. ></el-input>-->
  10883. <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>
  10884. <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>
  10885. </div>
  10886. </div>
  10887. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  10888. <div class="e_add_list_pbox">
  10889. <div class="e_add_list_pbox_title">
  10890. <!-- <span class="type_title">切换模式</span> -->
  10891. <div class="type_content">
  10892. <span
  10893. :class="{ active: typeMode == 1 }"
  10894. @click="typeMode = 1"
  10895. >{{ lang.ssTargetTree }}</span
  10896. >
  10897. <span
  10898. :class="{ active: typeMode == 2 }"
  10899. @click="typeMode = 2"
  10900. >{{ lang.ssTargetCompass }}</span
  10901. >
  10902. <!-- <span
  10903. :class="{ active: typeMode == 3 }"
  10904. @click="typeMode = 3"
  10905. >目标看板</span
  10906. > -->
  10907. </div>
  10908. </div>
  10909. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  10910. <Mind
  10911. :showBar="false"
  10912. :mindData="data"
  10913. style="width: 100%"
  10914. v-show="typeMode == 1"
  10915. ></Mind>
  10916. <Sunburst
  10917. :Josn="eJson"
  10918. :num="eJSONNum"
  10919. style="width: 100%"
  10920. v-if="typeMode == 2"
  10921. ></Sunburst>
  10922. <SeeBoard
  10923. :Josn="eJson"
  10924. :num="eJSONNum"
  10925. :ename="eTitle"
  10926. style="width: 100%"
  10927. v-if="typeMode == 3"
  10928. >
  10929. </SeeBoard>
  10930. </div>
  10931. </div>
  10932. </div>
  10933. </div>
  10934. </div>
  10935. </div>
  10936. <!-- <div
  10937. class="project_box"
  10938. style="margin-top: 15px; padding-bottom: 30px"
  10939. >
  10940. <div
  10941. style="
  10942. display: flex;
  10943. flex-wrap: nowrap;
  10944. flex-direction: column;
  10945. position: relative;
  10946. "
  10947. >
  10948. <div class="queTop">
  10949. <div class="question">
  10950. <img src="../../assets/icon/homeWork.png" alt="" />
  10951. </div>
  10952. <div class="queTitle">
  10953. <div>作业提交<span>(提交图文视频等)</span></div>
  10954. <div>:任务:{{ task.task }}</div>
  10955. </div>
  10956. </div>
  10957. <div class="ediBottom">
  10958. <div
  10959. class="addEditor"
  10960. style="margin-top: 23px"
  10961. @click="openAddWork"
  10962. v-if="!isNoHomeWork"
  10963. >
  10964. 选择文件
  10965. </div>
  10966. <div
  10967. class="addEditor"
  10968. style="margin-top: 23px"
  10969. @click="openAddWork"
  10970. v-else
  10971. >
  10972. 已提交
  10973. </div>
  10974. </div>
  10975. </div>
  10976. </div>-->
  10977. </div>
  10978. </div>
  10979. <el-dialog
  10980. :title="lang.ssHomework"
  10981. :visible.sync="dialogVisible"
  10982. :append-to-body="true"
  10983. width="500px"
  10984. :before-close="handleClose"
  10985. class="dialog_change"
  10986. >
  10987. <div class="marginT">
  10988. <div>{{ lang.ssUploadHomework }}</div>
  10989. <div style="display: flex; gap: 10px">
  10990. <div
  10991. class="chapter_add"
  10992. @click="addImg($event)"
  10993. v-if="studyJuri[0].cover.length == 0"
  10994. >
  10995. <div class="up_photo">
  10996. <img src="../../assets/icon/uploadImg.png" alt />
  10997. </div>
  10998. <!-- <input
  10999. type="file"
  11000. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11001. style="display: none"
  11002. @change="beforeUpload1($event, 1)"
  11003. /> -->
  11004. <input
  11005. type="file"
  11006. accept="*"
  11007. style="display: none"
  11008. @change="beforeUpload1($event, 1)"
  11009. />
  11010. <!-- <input
  11011. type="file"
  11012. accept="image/*"
  11013. capture="camera"
  11014. style="display: none"
  11015. @change="beforeUpload1($event, 1)"
  11016. /> -->
  11017. </div>
  11018. <div
  11019. class="chapter_add"
  11020. @click="addImg($event)"
  11021. v-if="studyJuri[0].cover.length == 0"
  11022. >
  11023. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11024. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11025. </div>
  11026. <input
  11027. type="file"
  11028. accept="image/*"
  11029. capture="camera"
  11030. style="display: none"
  11031. @change="beforeUpload1($event, 1)"
  11032. />
  11033. </div>
  11034. </div>
  11035. <div
  11036. class="chapter_add"
  11037. style="
  11038. display: flex;
  11039. width: 100%;
  11040. flex-direction: row;
  11041. flex-wrap: wrap;
  11042. justify-content: flex-start;
  11043. padding: 15px 0;
  11044. "
  11045. v-if="studyJuri[0].cover.length > 0"
  11046. >
  11047. <div class="upCover">
  11048. <img
  11049. :src="studyJuri[0].cover[0].url"
  11050. alt
  11051. v-if="fileType == 0"
  11052. />
  11053. <img :src="word" alt v-else-if="fileType == 1" />
  11054. <img :src="video" alt v-else-if="fileType == 2" />
  11055. <img :src="word2" alt v-else-if="fileType == 3" />
  11056. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11057. <div class="deleteWord" @click="clean(1)">
  11058. <img src="../../assets/icon/deleteWorks.png" alt />
  11059. </div>
  11060. </div>
  11061. </div>
  11062. </div>
  11063. <div
  11064. class="upload_send"
  11065. @click="addCourseWorksCopy(taskCount)"
  11066. v-if="!proVisible"
  11067. >
  11068. {{ lang.ssSubmit }}
  11069. </div>
  11070. </el-dialog>
  11071. </div>
  11072. </div>
  11073. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11074. <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(
  11075. '/courseDetail?userid=' +
  11076. userid +
  11077. '&oid=' +
  11078. oid +
  11079. '&org=' +
  11080. org +
  11081. '&cid=' +
  11082. classId +
  11083. '&courseId=' +
  11084. id +
  11085. '&tType=' +
  11086. tType +
  11087. '&screenType=' +
  11088. screenType+
  11089. '&role=' +
  11090. role
  11091. )"></classRoomHelper>
  11092. <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(
  11093. '/courseDetail?userid=' +
  11094. userid +
  11095. '&oid=' +
  11096. oid +
  11097. '&org=' +
  11098. org +
  11099. '&cid=' +
  11100. classId +
  11101. '&courseId=' +
  11102. id +
  11103. '&tType=' +
  11104. tType +
  11105. '&screenType=' +
  11106. screenType+
  11107. '&role=' +
  11108. role
  11109. )"></studentClassRoomHelper>
  11110. <div
  11111. class="pButton"
  11112. @click="(pzDialog = true), selectPz()"
  11113. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11114. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11115. >
  11116. <!-- 批 -->
  11117. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11118. </div>
  11119. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11120. <div class="pzTop2">
  11121. <!-- <div>评论</div>
  11122. <div @click="pzDialog = false">
  11123. <img src="../../assets/close1.png" alt="" />
  11124. </div> -->
  11125. <div class="checkbox">
  11126. <!-- <div class="check" style="font-size: 25px; position: unset">
  11127. 评论
  11128. </div> -->
  11129. <div class="cb-tabList">
  11130. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">{{ lang.ssComment }}</div>
  11131. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11132. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11133. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">{{ lang.ssTotalEval }}</div>
  11134. </div>
  11135. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11136. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  11137. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  11138. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  11139. </el-select>
  11140. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11141. </div>
  11142. </div>
  11143. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11144. <div class="pzListBox" v-if="pzList && pzList.length">
  11145. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11146. <div class="pzNavTop">
  11147. <div>{{ lang.ssEval }}</div>
  11148. <div>
  11149. {{
  11150. pz.username && pz.username.length > 5
  11151. ? pz.username.substring(0, 5) + "..."
  11152. : pz.username
  11153. }}{{ lang.ssCommentOf }}
  11154. </div>
  11155. <div
  11156. class="pzDelete"
  11157. v-if="pz.userid == userid"
  11158. @click="deletePz(pz.id)"
  11159. >
  11160. {{ lang.ssDelete }}
  11161. </div>
  11162. </div>
  11163. <div
  11164. @click="checkImg(getImgList(pz.content))"
  11165. class="pzContent cont"
  11166. v-html="pz.content"
  11167. v-if="pz.type == '1'"
  11168. ></div>
  11169. <div class="pzContent" v-if="pz.type == '2'">
  11170. <audio :src="pz.content" controls="controls" ref="audio">
  11171. Your browser does not support the audio element.
  11172. </audio>
  11173. </div>
  11174. <div class="pzContent" v-if="pz.type == '3'">
  11175. <img
  11176. :src="pz.content"
  11177. style="width: 90%; margin: 0 auto; display: block"
  11178. @click="previewImg(pz.content)"
  11179. />
  11180. </div>
  11181. <div class="timeAndReply">
  11182. <div class="time">
  11183. {{ pz.time }}
  11184. </div>
  11185. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  11186. </div>
  11187. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11188. <div
  11189. v-for="(h, hIndex) in pz.hfList"
  11190. :key="hIndex"
  11191. class="hfItem"
  11192. >
  11193. <div class="whoReplyWho">
  11194. <div class="hfName">{{ h.username }}</div>
  11195. <div class="hfImg">
  11196. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11197. </div>
  11198. <div class="hfName">{{ pz.username }}</div>
  11199. </div>
  11200. <div class="hfContent" v-html="h.content"></div>
  11201. <div class="hfBottom">
  11202. <div class="hfTime">{{ h.time }}</div>
  11203. <div
  11204. class="deleteHfItem"
  11205. @click="deleteReply(h.id)"
  11206. v-if="userid == h.userid"
  11207. >
  11208. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11209. </div>
  11210. </div>
  11211. </div>
  11212. </div>
  11213. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11214. <div class="replyInput">
  11215. <el-input v-model="reply[pzIndex]"></el-input>
  11216. </div>
  11217. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11218. </div> -->
  11219. </div>
  11220. </div>
  11221. <div class="noPz" v-else>
  11222. <img src="../../assets/icon/noPz.png" alt="" />
  11223. </div>
  11224. <div class="addPzButton">
  11225. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11226. {{ lang.ssAddComment }}
  11227. </div>
  11228. <!-- <div class="img1">
  11229. <div @click="(addPzDialog = true), (pzType = 2)">
  11230. <img src="../../assets/audio.png" /><span>音频</span>
  11231. </div>
  11232. </div> -->
  11233. </div>
  11234. </div>
  11235. <div class="scoreList" v-if="commentTagShow==1">
  11236. <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"/>
  11237. </div>
  11238. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11239. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11240. </div>
  11241. </div>
  11242. <div
  11243. v-if="toolDialogVisible == true"
  11244. class="toolMask"
  11245. @click="toolDialogVisible = false"
  11246. ></div>
  11247. <div v-if="toolDialogVisible == true" class="addToolCss">
  11248. <div class="toolTop">
  11249. <div style="font-weight: bold">{{ lang.ssNewTool }}</div>
  11250. <div @click="toolDialogVisible = false">
  11251. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11252. </div>
  11253. </div>
  11254. <div class="tool_box">
  11255. <div class="tool_type_box">
  11256. <div class="chooseWho">
  11257. <div
  11258. :class="toolType == 0 ? 'isChooseActive' : ''"
  11259. @click="(toolType = 0), $forceUpdate()"
  11260. >
  11261. {{ lang.ssInteract }}
  11262. </div>
  11263. <div
  11264. :class="toolType == 1 ? 'isChooseActive' : ''"
  11265. @click="(toolType = 1), $forceUpdate()"
  11266. >
  11267. {{ lang.ssThinking }}
  11268. </div>
  11269. <div
  11270. :class="toolType == 2 ? 'isChooseActive' : ''"
  11271. @click="(toolType = 2), $forceUpdate()"
  11272. >
  11273. {{ lang.ssEvalType }}
  11274. </div>
  11275. <div
  11276. :class="toolType == 3 ? 'isChooseActive' : ''"
  11277. @click="(toolType = 3), $forceUpdate()"
  11278. >
  11279. {{ lang.ssProgram }}
  11280. </div>
  11281. <div
  11282. :class="toolType == 5 ? 'isChooseActive' : ''"
  11283. @click="(toolType = 5), $forceUpdate()"
  11284. >
  11285. {{ lang.ssSubject }}
  11286. </div>
  11287. </div>
  11288. </div>
  11289. <div>
  11290. <div class="toolSort" v-if="toolType == 0">
  11291. <div
  11292. class="tool"
  11293. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11294. @click="addTools2(10)"
  11295. >
  11296. <div class="whiteBIcon">
  11297. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11298. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  11299. </div>
  11300. <div class="check">
  11301. <div
  11302. v-if="checktoolArray.indexOf(10) == -1"
  11303. class="noChoose"
  11304. ></div>
  11305. <div v-else class="isChoose"></div>
  11306. </div>
  11307. </div>
  11308. <div
  11309. class="tool"
  11310. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11311. @click="addTools2(65)"
  11312. >
  11313. <div class="whiteBIcon">
  11314. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11315. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  11316. </div>
  11317. <div class="check">
  11318. <div
  11319. v-if="checktoolArray.indexOf(65) == -1"
  11320. class="noChoose"
  11321. ></div>
  11322. <div v-else class="isChoose"></div>
  11323. </div>
  11324. </div>
  11325. </div>
  11326. <div class="toolSort" v-if="toolType == 1">
  11327. <div
  11328. class="tool"
  11329. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11330. @click="addTools2(7)"
  11331. >
  11332. <div class="whiteBIcon">
  11333. <img
  11334. src="../../assets/icon/secondToolList/mindNetwork.png"
  11335. alt
  11336. />
  11337. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  11338. </div>
  11339. <div class="check">
  11340. <div
  11341. v-if="checktoolArray.indexOf(7) == -1"
  11342. class="noChoose"
  11343. ></div>
  11344. <div v-else class="isChoose"></div>
  11345. </div>
  11346. </div>
  11347. <div
  11348. class="tool"
  11349. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11350. @click="addTools2(1)"
  11351. >
  11352. <div class="whiteBIcon">
  11353. <img
  11354. src="../../assets/icon/secondToolList/whiteBoard.png"
  11355. alt
  11356. />
  11357. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  11358. </div>
  11359. <div class="check">
  11360. <div
  11361. v-if="checktoolArray.indexOf(1) == -1"
  11362. class="noChoose"
  11363. ></div>
  11364. <div v-else class="isChoose"></div>
  11365. </div>
  11366. </div>
  11367. <div
  11368. class="tool"
  11369. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11370. @click="addTools2(52)"
  11371. >
  11372. <div class="whiteBIcon">
  11373. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11374. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  11375. </div>
  11376. <div class="check">
  11377. <div
  11378. v-if="checktoolArray.indexOf(52) == -1"
  11379. class="noChoose"
  11380. ></div>
  11381. <div v-else class="isChoose"></div>
  11382. </div>
  11383. </div>
  11384. <div
  11385. class="tool"
  11386. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11387. @click="addTools2(3)"
  11388. >
  11389. <div class="whiteBIcon">
  11390. <img
  11391. src="../../assets/icon/secondToolList/mindMapping.png"
  11392. alt
  11393. />
  11394. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  11395. </div>
  11396. <div class="check">
  11397. <div
  11398. v-if="checktoolArray.indexOf(3) == -1"
  11399. class="noChoose"
  11400. ></div>
  11401. <div v-else class="isChoose"></div>
  11402. </div>
  11403. </div>
  11404. <div
  11405. class="tool"
  11406. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11407. @click="addTools2(48)"
  11408. >
  11409. <div class="whiteBIcon">
  11410. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11411. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  11412. </div>
  11413. <div class="check">
  11414. <div
  11415. v-if="checktoolArray.indexOf(48) == -1"
  11416. class="noChoose"
  11417. ></div>
  11418. <div v-else class="isChoose"></div>
  11419. </div>
  11420. </div>
  11421. </div>
  11422. <div class="toolSort" v-if="toolType == 6">
  11423. <div v-show="tooC == 49">
  11424. <img
  11425. @click="addTools(tooC, toolIndex, taskCount)"
  11426. src="../../assets/icon/fourthToolList/group.png"
  11427. alt
  11428. />
  11429. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  11430. </div>
  11431. </div>
  11432. <div class="toolSort" v-if="toolType == 2">
  11433. <div
  11434. class="tool"
  11435. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11436. @click="addTools2(16)"
  11437. >
  11438. <div class="whiteBIcon">
  11439. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11440. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  11441. </div>
  11442. <div class="check">
  11443. <div
  11444. v-if="checktoolArray.indexOf(16) == -1"
  11445. class="noChoose"
  11446. ></div>
  11447. <div v-else class="isChoose"></div>
  11448. </div>
  11449. </div>
  11450. <div
  11451. class="tool"
  11452. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11453. @click="addTools2(50)"
  11454. >
  11455. <div class="whiteBIcon">
  11456. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11457. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  11458. </div>
  11459. <div class="check">
  11460. <div
  11461. v-if="checktoolArray.indexOf(50) == -1"
  11462. class="noChoose"
  11463. ></div>
  11464. <div v-else class="isChoose"></div>
  11465. </div>
  11466. </div>
  11467. </div>
  11468. <div class="toolSort" v-if="toolType == 3">
  11469. <div
  11470. class="tool"
  11471. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11472. @click="addTools2(18)"
  11473. >
  11474. <div class="whiteBIcon">
  11475. <img
  11476. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11477. alt
  11478. />
  11479. <div style="margin: 5px 0">{{ lang.ssTraining }}</div>
  11480. </div>
  11481. <div class="check">
  11482. <div
  11483. v-if="checktoolArray.indexOf(18) == -1"
  11484. class="noChoose"
  11485. ></div>
  11486. <div v-else class="isChoose"></div>
  11487. </div>
  11488. </div>
  11489. <div
  11490. class="tool"
  11491. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11492. @click="addTools2(21)"
  11493. >
  11494. <div class="whiteBIcon">
  11495. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11496. <div style="margin: 5px 0">AIoT Blockly</div>
  11497. </div>
  11498. <div class="check">
  11499. <div
  11500. v-if="checktoolArray.indexOf(21) == -1"
  11501. class="noChoose"
  11502. ></div>
  11503. <div v-else class="isChoose"></div>
  11504. </div>
  11505. </div>
  11506. <div
  11507. class="tool"
  11508. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11509. @click="addTools2(23)"
  11510. >
  11511. <div class="whiteBIcon">
  11512. <img
  11513. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11514. alt
  11515. />
  11516. <div style="margin: 5px 0">AI Python</div>
  11517. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  11518. style="position: absolute;right: 33px;top: -30px;">
  11519. {{ lang.ssAnalyze }}
  11520. </div>
  11521. </div>
  11522. <div class="check">
  11523. <div
  11524. v-if="checktoolArray.indexOf(23) == -1"
  11525. class="noChoose"
  11526. ></div>
  11527. <div v-else class="isChoose"></div>
  11528. </div>
  11529. </div>
  11530. <div
  11531. class="tool"
  11532. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11533. @click="addTools2(24)"
  11534. >
  11535. <div class="whiteBIcon">
  11536. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11537. <div style="margin: 5px 0">AI Blockly</div>
  11538. </div>
  11539. <div class="check">
  11540. <div
  11541. v-if="checktoolArray.indexOf(24) == -1"
  11542. class="noChoose"
  11543. ></div>
  11544. <div v-else class="isChoose"></div>
  11545. </div>
  11546. </div>
  11547. <div
  11548. class="tool"
  11549. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11550. @click="addTools2(32)"
  11551. >
  11552. <div class="whiteBIcon">
  11553. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11554. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  11555. </div>
  11556. <div class="check">
  11557. <div
  11558. v-if="checktoolArray.indexOf(32) == -1"
  11559. class="noChoose"
  11560. ></div>
  11561. <div v-else class="isChoose"></div>
  11562. </div>
  11563. </div>
  11564. <div
  11565. class="tool"
  11566. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11567. @click="addTools2(57)"
  11568. >
  11569. <div class="whiteBIcon">
  11570. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11571. <div style="margin: 5px 0">CocoPi</div>
  11572. </div>
  11573. <div class="check">
  11574. <div
  11575. v-if="checktoolArray.indexOf(57) == -1"
  11576. class="noChoose"
  11577. ></div>
  11578. <div v-else class="isChoose"></div>
  11579. </div>
  11580. </div>
  11581. <div
  11582. class="tool"
  11583. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11584. @click="addTools2(63)"
  11585. >
  11586. <div class="whiteBIcon">
  11587. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11588. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  11589. </div>
  11590. <div class="check">
  11591. <div
  11592. v-if="checktoolArray.indexOf(63) == -1"
  11593. class="noChoose"
  11594. ></div>
  11595. <div v-else class="isChoose"></div>
  11596. </div>
  11597. </div>
  11598. <div
  11599. class="tool"
  11600. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11601. @click="addTools2(71)"
  11602. >
  11603. <div class="whiteBIcon">
  11604. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11605. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  11606. </div>
  11607. <div class="check">
  11608. <div
  11609. v-if="checktoolArray.indexOf(71) == -1"
  11610. class="noChoose"
  11611. ></div>
  11612. <div v-else class="isChoose"></div>
  11613. </div>
  11614. </div>
  11615. </div>
  11616. <div class="toolSort" v-if="toolType == 7">
  11617. <div
  11618. class="tool"
  11619. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11620. @click="addTools2(40)"
  11621. >
  11622. <div class="whiteBIcon">
  11623. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11624. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  11625. </div>
  11626. <div class="check">
  11627. <div
  11628. v-if="checktoolArray.indexOf(40) == -1"
  11629. class="noChoose"
  11630. ></div>
  11631. <div v-else class="isChoose"></div>
  11632. </div>
  11633. </div>
  11634. </div>
  11635. <div class="toolSort" v-if="toolType == 5">
  11636. <div
  11637. class="tool"
  11638. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11639. @click="addTools2(28)"
  11640. >
  11641. <div class="whiteBIcon">
  11642. <img
  11643. src="../../assets/icon/secondToolList/translation.png"
  11644. alt
  11645. />
  11646. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  11647. </div>
  11648. <div class="check">
  11649. <div
  11650. v-if="checktoolArray.indexOf(28) == -1"
  11651. class="noChoose"
  11652. ></div>
  11653. <div v-else class="isChoose"></div>
  11654. </div>
  11655. </div>
  11656. <div
  11657. class="tool"
  11658. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11659. @click="addTools2(31)"
  11660. >
  11661. <div class="whiteBIcon">
  11662. <img
  11663. src="../../assets/icon/secondToolList/networkPanel.png"
  11664. alt
  11665. />
  11666. <div style="margin: 5px 0">{{ lang.ssDigitalBoard }}</div>
  11667. </div>
  11668. <div class="check">
  11669. <div
  11670. v-if="checktoolArray.indexOf(31) == -1"
  11671. class="noChoose"
  11672. ></div>
  11673. <div v-else class="isChoose"></div>
  11674. </div>
  11675. </div>
  11676. <div
  11677. class="tool"
  11678. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11679. @click="addTools2(39)"
  11680. >
  11681. <div class="whiteBIcon">
  11682. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11683. <div style="margin: 5px 0">GeoGebra</div>
  11684. </div>
  11685. <div class="check">
  11686. <div
  11687. v-if="checktoolArray.indexOf(39) == -1"
  11688. class="noChoose"
  11689. ></div>
  11690. <div v-else class="isChoose"></div>
  11691. </div>
  11692. </div>
  11693. <div
  11694. class="tool"
  11695. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11696. @click="addTools2(66)"
  11697. >
  11698. <div class="whiteBIcon">
  11699. <img
  11700. src="../../assets/icon/secondToolList/formulaEdi.png"
  11701. alt
  11702. />
  11703. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  11704. </div>
  11705. <div class="check">
  11706. <div
  11707. v-if="checktoolArray.indexOf(66) == -1"
  11708. class="noChoose"
  11709. ></div>
  11710. <div v-else class="isChoose"></div>
  11711. </div>
  11712. </div>
  11713. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11714. <div class="whiteBIcon" @click="addTools2(67)">
  11715. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11716. <div style="margin: 5px 0">分子结构</div>
  11717. </div>
  11718. <div class="check" @click="addTools2(67)">
  11719. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11720. <div v-else class="isChoose"></div>
  11721. </div>
  11722. </div> -->
  11723. <div
  11724. class="tool"
  11725. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11726. @click="addTools2(68)"
  11727. >
  11728. <div class="whiteBIcon">
  11729. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11730. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  11731. </div>
  11732. <div class="check">
  11733. <div
  11734. v-if="checktoolArray.indexOf(68) == -1"
  11735. class="noChoose"
  11736. ></div>
  11737. <div v-else class="isChoose"></div>
  11738. </div>
  11739. </div>
  11740. <!-- <div
  11741. class="tool"
  11742. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11743. @click="addTools2(69)"
  11744. >
  11745. <div class="whiteBIcon">
  11746. <img src="../../assets/icon/secondToolList/english.png" alt />
  11747. <div style="margin: 5px 0">英语写作</div>
  11748. </div>
  11749. <div class="check">
  11750. <div
  11751. v-if="checktoolArray.indexOf(69) == -1"
  11752. class="noChoose"
  11753. ></div>
  11754. <div v-else class="isChoose"></div>
  11755. </div>
  11756. </div> -->
  11757. </div>
  11758. <div class="toolSort" v-if="toolType == 4">
  11759. <div
  11760. class="tool"
  11761. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11762. @click="addTools2(26)"
  11763. >
  11764. <div class="whiteBIcon">
  11765. <img
  11766. src="../../assets/icon/thirdToolList/courseDesign.png"
  11767. alt
  11768. />
  11769. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  11770. </div>
  11771. <div class="check">
  11772. <div
  11773. v-if="checktoolArray.indexOf(26) == -1"
  11774. class="noChoose"
  11775. ></div>
  11776. <div v-else class="isChoose"></div>
  11777. </div>
  11778. </div>
  11779. <div
  11780. class="tool"
  11781. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11782. @click="addTools2(25)"
  11783. >
  11784. <div class="whiteBIcon">
  11785. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11786. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  11787. </div>
  11788. <div class="check">
  11789. <div
  11790. v-if="checktoolArray.indexOf(25) == -1"
  11791. class="noChoose"
  11792. ></div>
  11793. <div v-else class="isChoose"></div>
  11794. </div>
  11795. </div>
  11796. </div>
  11797. </div>
  11798. </div>
  11799. <span
  11800. slot="footer"
  11801. class="dialog-footer"
  11802. style="display: block; text-align: center; padding: 0 0 10px 0"
  11803. >
  11804. <el-button @click="toolDialogVisible = false">{{ lang.ssCancel }}</el-button>
  11805. <el-button type="primary" @click.stop="addToolChoose">{{ lang.ssConfirm }}</el-button>
  11806. </span>
  11807. </div>
  11808. <div
  11809. v-if="replyDialogVisible == true"
  11810. class="addDialogCss"
  11811. v-el-drag-dialog
  11812. >
  11813. <div class="pzTop">
  11814. <div class="teacherPz">
  11815. <div class="teacherPzImg">
  11816. <img src="../../assets/icon/teacherPz.png" alt="" />
  11817. </div>
  11818. <div style="margin-left: 10px; height: 25px">{{ lang.ssAddReply }}</div>
  11819. </div>
  11820. <div @click="replyDialogVisible = false">
  11821. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11822. </div>
  11823. </div>
  11824. <div class="addPzBox">
  11825. <!-- <div class="addPzCheck">
  11826. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11827. >文本</span
  11828. >
  11829. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11830. >音频</span
  11831. >
  11832. </div> -->
  11833. <div style="height: calc(100% - 50px)">
  11834. <editor-bar
  11835. class="binfo_input pzConText"
  11836. style="width: 100% !important; margin: 0 auto"
  11837. :placeholder="lang.ssEnterReply"
  11838. v-model="reply"
  11839. @change="change"
  11840. ></editor-bar>
  11841. </div>
  11842. <div class="addTextCss" @click="addHf">{{ lang.ssConfirm }}</div>
  11843. </div>
  11844. </div>
  11845. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  11846. <div class="pzTop">
  11847. <div class="teacherPz">
  11848. <div class="teacherPzImg">
  11849. <img src="../../assets/icon/teacherPz.png" alt="" />
  11850. </div>
  11851. <div style="margin-left: 10px; height: 25px">{{ lang.ssTeacherComment }}</div>
  11852. </div>
  11853. <div @click="addPzDialog = false">
  11854. <img src="../../assets/close1.png" class="pzClose" alt="" />
  11855. </div>
  11856. </div>
  11857. <div class="addPzBox">
  11858. <div class="addPzCheck">
  11859. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  11860. >{{ lang.ssText }}</span
  11861. >
  11862. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">{{ lang.ssImage }}</span> -->
  11863. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  11864. >{{ lang.ssAudio }}</span
  11865. >
  11866. </div>
  11867. <div style="height: calc(100% - 95px)">
  11868. <!-- <textarea class="binfo_input pzConText" cols :placeholder="lang.ssEnterProjectKeyQuestion" v-model="pzConText"
  11869. v-if="pzType == 1"></textarea> -->
  11870. <editor-bar
  11871. class="binfo_input pzConText"
  11872. style="width: 100% !important"
  11873. :placeholder="lang.ssEnterTaskDesc"
  11874. v-model="pzConText"
  11875. @change="change"
  11876. v-if="pzType == 1"
  11877. ></editor-bar>
  11878. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  11879. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  11880. <div @click="addImg($event)">
  11881. <el-button type="primary">{{ lang.ssUploadImage }}</el-button>
  11882. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  11883. @change="beforeUpload1($event, 4)" />
  11884. </div>
  11885. </div> -->
  11886. </div>
  11887. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  11888. {{ lang.ssConfirm }}
  11889. </div>
  11890. </div>
  11891. </div>
  11892. <div v-if="proVisible" class="mask">
  11893. <div class="progressBox">
  11894. <!-- <div id="closePro" class="closeCss">
  11895. <img src="../../assets/icon/close.png" alt />
  11896. </div> -->
  11897. <div class="lbox">
  11898. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  11899. </div>
  11900. <div style="margin-bottom: 10px">
  11901. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  11902. </div>
  11903. <el-progress
  11904. :text-inside="true"
  11905. :stroke-width="20"
  11906. :percentage="progress"
  11907. style="width: 80%"
  11908. ></el-progress>
  11909. </div>
  11910. </div>
  11911. <div v-if="proVisible2" class="mask">
  11912. <div class="progressBox">
  11913. <div class="lbox">
  11914. <img src="../../assets/loading.gif" />{{ lang.ssUploading }}
  11915. </div>
  11916. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  11917. </div>
  11918. </div>
  11919. <el-dialog :visible.sync="pictureDialog" size="tiny">
  11920. <img width="100%" :src="dialogImageUrl" alt />
  11921. </el-dialog>
  11922. <el-dialog
  11923. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  11924. :visible.sync="dialogVisible5"
  11925. :append-to-body="true"
  11926. width="1000px"
  11927. :before-close="handleClose"
  11928. class="dialog_diy dialog_diy3"
  11929. >
  11930. <div>
  11931. <div
  11932. class="a_add_title"
  11933. style="
  11934. display: flex;
  11935. flex-direction: row;
  11936. align-items: center;
  11937. justify-content: center;
  11938. "
  11939. >
  11940. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  11941. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  11942. </div>
  11943. <div class="a_addBox">
  11944. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  11945. {{ lang.ssQuestionContent }}
  11946. </div>
  11947. <div
  11948. class="a_add_box"
  11949. v-for="(item1, index1) in askJson.askCount"
  11950. :key="index1"
  11951. >
  11952. <div class="a_add_head">
  11953. <div style="display: flex">
  11954. <span class="askIndex"> {{ index1 + 1 }}</span>
  11955. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  11956. </div>
  11957. <img
  11958. v-if="askJson.askJson[index1].img"
  11959. :src="askJson.askJson[index1].img"
  11960. style="height: 300px; margin-top: 10px; max-width: 100%"
  11961. />
  11962. </div>
  11963. <div class="a_add_body">
  11964. <div class="a_add_input">
  11965. <el-radio-group
  11966. v-model="radio[index1]"
  11967. v-if="
  11968. askJson.askJson[index1].type == '1' ||
  11969. !askJson.askJson[index1].type
  11970. "
  11971. >
  11972. <el-radio
  11973. v-for="(item2, checkIndex) in askJson.askJson[index1]
  11974. .checkList"
  11975. :key="checkIndex"
  11976. :label="checkIndex"
  11977. :disabled="isAnswer"
  11978. class="redioStyle"
  11979. ><span v-html="item2"></span
  11980. ></el-radio>
  11981. </el-radio-group>
  11982. <el-checkbox-group
  11983. v-model="radio[index1]"
  11984. v-if="askJson.askJson[index1].type == '2'"
  11985. >
  11986. <el-checkbox
  11987. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  11988. .checkList"
  11989. :key="checkIndex1"
  11990. :label="checkIndex1"
  11991. :disabled="isAnswer"
  11992. class="redioStyle"
  11993. ><span v-html="item2"></span>
  11994. </el-checkbox>
  11995. </el-checkbox-group>
  11996. </div>
  11997. </div>
  11998. </div>
  11999. </div>
  12000. </div>
  12001. <span slot="footer" class="dialog-footer">
  12002. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12003. >{{ lang.ssCancel }}</el-button
  12004. >
  12005. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12006. >{{ lang.ssConfirm }}</el-button
  12007. >
  12008. </span>
  12009. </el-dialog>
  12010. <el-dialog
  12011. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  12012. :visible.sync="dialogVisible5Teacher"
  12013. :append-to-body="true"
  12014. width="1000px"
  12015. :before-close="handleClose"
  12016. class="dialog_diy dialog_diy3"
  12017. >
  12018. <div>
  12019. <div class="w_name">
  12020. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12021. </div>
  12022. <div
  12023. class="a_add_title"
  12024. style="
  12025. display: flex;
  12026. flex-direction: row;
  12027. align-items: center;
  12028. justify-content: center;
  12029. "
  12030. >
  12031. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  12032. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12033. </div>
  12034. <div class="a_addBox">
  12035. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12036. {{ lang.ssQuestionContent }}
  12037. </div>
  12038. <div
  12039. class="a_add_box"
  12040. v-for="(item1, index1) in askJson.askCount"
  12041. :key="index1"
  12042. >
  12043. <div class="a_add_head">
  12044. <div style="display: flex">
  12045. <span class="askIndex">{{ index1 + 1 }}</span>
  12046. <div>{{ lang.ssQuestionColon }}{{ askJson.askJson[index1].askstitle }}</div>
  12047. </div>
  12048. <img
  12049. v-if="askJson.askJson[index1].img"
  12050. :src="askJson.askJson[index1].img"
  12051. style="height: 300px; margin-top: 10px; max-width: 100%"
  12052. />
  12053. </div>
  12054. <div class="a_add_body">
  12055. <div class="a_add_input">
  12056. <el-radio-group
  12057. v-model="radio[index1]"
  12058. v-if="
  12059. askJson.askJson[index1].type == '1' ||
  12060. !askJson.askJson[index1].type
  12061. "
  12062. >
  12063. <el-radio
  12064. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12065. .checkList"
  12066. :key="checkIndex"
  12067. :label="checkIndex"
  12068. :disabled="isAnswer"
  12069. class="redioStyle"
  12070. ><span v-html="item2"></span
  12071. ></el-radio>
  12072. </el-radio-group>
  12073. <el-checkbox-group
  12074. v-model="radio[index1]"
  12075. v-if="askJson.askJson[index1].type == '2'"
  12076. >
  12077. <el-checkbox
  12078. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12079. .checkList"
  12080. :key="checkIndex1"
  12081. :label="checkIndex1"
  12082. :disabled="isAnswer"
  12083. class="redioStyle"
  12084. ><span v-html="item2"></span>
  12085. </el-checkbox>
  12086. </el-checkbox-group>
  12087. </div>
  12088. </div>
  12089. </div>
  12090. </div>
  12091. </div>
  12092. <span slot="footer" class="dialog-footer">
  12093. <el-button
  12094. @click="dialogVisible5Teacher = false"
  12095. v-show="noteName == ''"
  12096. >{{ lang.ssCancel }}</el-button
  12097. >
  12098. <el-button
  12099. type="primary"
  12100. @click="addStudentAskTeacher"
  12101. v-show="noteName == ''"
  12102. >{{ lang.ssConfirm }}</el-button
  12103. >
  12104. </span>
  12105. </el-dialog>
  12106. <el-dialog
  12107. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12108. :visible.sync="dialogVisibleChoice"
  12109. :append-to-body="true"
  12110. width="1000px"
  12111. :before-close="handleClose"
  12112. class="dialog_diy dialog_diy3"
  12113. >
  12114. <div>
  12115. <!-- <div class="a_add_title" style="
  12116. display: flex;
  12117. flex-direction: row;
  12118. align-items: center;
  12119. justify-content: center;
  12120. ">
  12121. <div style="margin-right: 20px; font-size: 20px">{{ lang.ssTitle }}:</div>
  12122. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12123. </div> -->
  12124. <div class="a_addBox">
  12125. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12126. {{ lang.ssQuestionContent }}
  12127. </div>
  12128. <div
  12129. class="a_add_box"
  12130. v-for="(item1, index1) in testJson.testCount"
  12131. :key="index1"
  12132. >
  12133. <div class="a_add_head">
  12134. <div style="display: flex;">
  12135. <span class="askIndex">{{ index1 + 1 }}</span>
  12136. <div
  12137. v-if="testJson.testJson[index1].type == '1'"
  12138. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12139. >
  12140. ({{ lang.ssSingleChoice }})
  12141. </div>
  12142. <div
  12143. v-if="testJson.testJson[index1].type == '2'"
  12144. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12145. >
  12146. ({{ lang.ssMultiChoice }})
  12147. </div>
  12148. <div class="renderedFor">{{ lang.ssQuestionColon }}<span v-html="testJson.testJson[index1].teststitle"></span></div>
  12149. </div>
  12150. <img
  12151. v-if="testJson.testJson[index1].img"
  12152. :src="testJson.testJson[index1].img"
  12153. style="height: 300px; margin-top: 10px; max-width: 100%"
  12154. />
  12155. </div>
  12156. <div
  12157. class="timuImgBox"
  12158. v-if="
  12159. testJson.testJson[index1].timuList &&
  12160. testJson.testJson[index1].timuList.length
  12161. "
  12162. >
  12163. <div
  12164. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12165. :key="tIndex"
  12166. class="timuImg"
  12167. @click.stop="previewImg(timg.src)"
  12168. >
  12169. <img :src="timg.src" alt="" />
  12170. </div>
  12171. </div>
  12172. <div class="a_add_body">
  12173. <div class="a_add_input">
  12174. <el-radio-group
  12175. v-model="radio[index1]"
  12176. v-if="testJson.testJson[index1].type == '1'"
  12177. >
  12178. <div class="radioBox">
  12179. <el-radio
  12180. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12181. .checkList"
  12182. :key="checkIndex"
  12183. :label="checkIndex"
  12184. :disabled="isAnswer"
  12185. class="redioStyle"
  12186. >
  12187. <div
  12188. style="margin-right: 10px"
  12189. v-if="item2 && item2.imgType && item2.imgType == 1"
  12190. >
  12191. <div class="inImg" @click.stop="previewImg(item2.src)">
  12192. <img :src="item2.src" alt="" />
  12193. </div>
  12194. </div>
  12195. <span v-else v-html="item2"></span>
  12196. </el-radio>
  12197. </div>
  12198. </el-radio-group>
  12199. <el-checkbox-group
  12200. v-model="radio[index1]"
  12201. v-if="testJson.testJson[index1].type == '2'"
  12202. >
  12203. <div class="radioBox">
  12204. <el-checkbox
  12205. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12206. .checkList"
  12207. :key="checkIndex"
  12208. :label="checkIndex"
  12209. :disabled="isAnswer"
  12210. class="redioStyle"
  12211. >
  12212. <div
  12213. style="margin-right: 10px"
  12214. v-if="item2 && item2.imgType && item2.imgType == 1"
  12215. >
  12216. <div class="inImg" @click.stop="previewImg(item2.src)">
  12217. <img :src="item2.src" alt="" />
  12218. </div>
  12219. </div>
  12220. <span v-else v-html="item2"></span>
  12221. </el-checkbox>
  12222. </div>
  12223. </el-checkbox-group>
  12224. </div>
  12225. </div>
  12226. </div>
  12227. </div>
  12228. </div>
  12229. <span slot="footer" class="dialog-footer">
  12230. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12231. >{{ lang.ssCancel }}</el-button
  12232. >
  12233. <el-button
  12234. type="primary"
  12235. @click="addStudentTest"
  12236. v-show="noteName == ''"
  12237. >{{ lang.ssConfirm }}</el-button
  12238. >
  12239. </span>
  12240. </el-dialog>
  12241. <el-dialog
  12242. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12243. :visible.sync="dialogVisibleChoiceTeacher"
  12244. :append-to-body="true"
  12245. width="1000px"
  12246. :before-close="handleClose"
  12247. class="dialog_diy dialog_diy3"
  12248. >
  12249. <div>
  12250. <div class="w_name">
  12251. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12252. </div>
  12253. <div class="a_addBox">
  12254. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12255. {{ lang.ssQuestionContent }}
  12256. </div>
  12257. <div
  12258. class="a_add_box"
  12259. v-for="(item1, index1) in testJson.testCount"
  12260. :key="index1"
  12261. >
  12262. <div class="a_add_head">
  12263. <div style="display: flex">
  12264. <span class="askIndex">{{ index1 + 1 }}</span>
  12265. <div
  12266. v-if="testJson.testJson[index1].type == '1'"
  12267. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12268. >
  12269. ({{ lang.ssSingleChoice }})
  12270. </div>
  12271. <div
  12272. v-if="testJson.testJson[index1].type == '2'"
  12273. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12274. >
  12275. ({{ lang.ssMultiChoice }})
  12276. </div>
  12277. <div>{{ lang.ssQuestionColon }}{{ testJson.testJson[index1].teststitle }}</div>
  12278. </div>
  12279. <img
  12280. v-if="testJson.testJson[index1].img"
  12281. :src="testJson.testJson[index1].img"
  12282. style="height: 300px; margin-top: 10px; max-width: 100%"
  12283. />
  12284. </div>
  12285. <div
  12286. class="timuImgBox"
  12287. v-if="
  12288. testJson.testJson[index1].timuList &&
  12289. testJson.testJson[index1].timuList.length
  12290. "
  12291. >
  12292. <div
  12293. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12294. :key="tIndex"
  12295. class="timuImg"
  12296. @click.stop="previewImg(timg.src)"
  12297. >
  12298. <img :src="timg.src" alt="" />
  12299. </div>
  12300. </div>
  12301. <div class="a_add_body">
  12302. <div class="a_add_input">
  12303. <el-radio-group
  12304. v-model="radio[index1]"
  12305. v-if="testJson.testJson[index1].type == '1'"
  12306. >
  12307. <div class="radioBox">
  12308. <el-radio
  12309. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12310. .checkList"
  12311. :key="checkIndex"
  12312. :label="checkIndex"
  12313. :disabled="isAnswer"
  12314. class="redioStyle"
  12315. >
  12316. <div
  12317. style="margin-right: 10px"
  12318. v-if="item2 && item2.imgType && item2.imgType == 1"
  12319. >
  12320. <div class="inImg" @click.stop="previewImg(item2.src)">
  12321. <img :src="item2.src" alt="" />
  12322. </div>
  12323. </div>
  12324. <span v-else v-html="item2"></span>
  12325. </el-radio>
  12326. </div>
  12327. </el-radio-group>
  12328. <el-checkbox-group
  12329. v-model="radio[index1]"
  12330. v-if="testJson.testJson[index1].type == '2'"
  12331. >
  12332. <div class="radioBox">
  12333. <el-checkbox
  12334. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12335. .checkList"
  12336. :key="checkIndex"
  12337. :label="checkIndex"
  12338. :disabled="isAnswer"
  12339. class="redioStyle"
  12340. >
  12341. <div
  12342. style="margin-right: 10px"
  12343. v-if="item2 && item2.imgType && item2.imgType == 1"
  12344. >
  12345. <div class="inImg" @click.stop="previewImg(item2.src)">
  12346. <img :src="item2.src" alt="" />
  12347. </div>
  12348. </div>
  12349. <span v-else v-html="item2"></span>
  12350. </el-checkbox>
  12351. </div>
  12352. </el-checkbox-group>
  12353. </div>
  12354. </div>
  12355. </div>
  12356. </div>
  12357. </div>
  12358. <span slot="footer" class="dialog-footer">
  12359. <el-button
  12360. @click="dialogVisibleChoiceTeacher = false"
  12361. v-show="noteName == ''"
  12362. >{{ lang.ssCancel }}</el-button
  12363. >
  12364. <el-button
  12365. type="primary"
  12366. @click="addStudentTestTeacher"
  12367. v-show="noteName == ''"
  12368. >{{ lang.ssConfirm }}</el-button
  12369. >
  12370. </span>
  12371. </el-dialog>
  12372. <el-dialog
  12373. :title="lang.ssViewRichText"
  12374. :visible.sync="dialogVisible1"
  12375. :append-to-body="true"
  12376. width="500px"
  12377. :before-close="handleClose"
  12378. class="dialog_diy textCss"
  12379. >
  12380. <el-form style="font-size: 20px">
  12381. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  12382. <div style="font-size: 20px">{{ text.name }}</div>
  12383. </el-form-item>
  12384. <div>{{ lang.ssRichTextContent }}</div>
  12385. <div
  12386. v-html="text.url"
  12387. style="font-size: 18px; padding: 40px 0 0 0"
  12388. ></div>
  12389. </el-form>
  12390. <span slot="footer" class="dialog-footer">
  12391. <el-button type="primary" @click="dialogVisible1 = false"
  12392. >{{ lang.ssConfirm }}</el-button
  12393. >
  12394. </span>
  12395. </el-dialog>
  12396. <el-dialog
  12397. :title="lang.ssFilePreview"
  12398. :visible.sync="dialogVisible3"
  12399. width="50%"
  12400. :before-close="handleClose"
  12401. class="dialog_diy"
  12402. :class="{ fullStyle: full }"
  12403. >
  12404. <div slot="title" class="header-title">
  12405. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  12406. <div style="position: absolute; top: 19px; right: 50px">
  12407. <img
  12408. src="../../assets/full.png"
  12409. style="height: 16px; cursor: pointer"
  12410. alt=""
  12411. @click="fullTools"
  12412. />
  12413. </div>
  12414. </div>
  12415. <pdf
  12416. v-if="showPDF"
  12417. :pdfUrl="pptImgUrl"
  12418. style="width: 100%; height: 520px; overflow: auto"
  12419. :class="{ fullStyle: full }"
  12420. ></pdf>
  12421. <iframe
  12422. v-else
  12423. :src="pptImgUrl"
  12424. frameborder="0"
  12425. width="100%"
  12426. height="600"
  12427. :class="{ fullStyle: full }"
  12428. ></iframe>
  12429. </el-dialog>
  12430. <el-dialog
  12431. :title="lang.ssFilePreview"
  12432. :visible.sync="dialogVisible6"
  12433. width="50%"
  12434. :before-close="handleClose"
  12435. class="dialog_diy"
  12436. >
  12437. <iframe
  12438. :src="pptImgUrl1"
  12439. frameborder="0"
  12440. width="100%"
  12441. height="600"
  12442. ></iframe>
  12443. </el-dialog>
  12444. <el-dialog
  12445. :title="lang.ssPrompt"
  12446. :visible.sync="dialogVisible4"
  12447. :append-to-body="true"
  12448. width="800px"
  12449. :before-close="handleClose"
  12450. class="dialog_diy notice"
  12451. >
  12452. <div>{{ lang.ssFeatureNotAvail }}</div>
  12453. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirm }}</el-button>
  12454. </el-dialog>
  12455. <el-dialog
  12456. :title="lang.ssQa"
  12457. :visible.sync="answerDialogVisible"
  12458. :append-to-body="true"
  12459. width="800px"
  12460. :before-close="handleClose"
  12461. class="dialog_diy"
  12462. >
  12463. <div>
  12464. <div
  12465. style="
  12466. display: flex;
  12467. flex-wrap: nowrap;
  12468. flex-direction: column;
  12469. position: relative;
  12470. "
  12471. >
  12472. <div class="queTop" style="padding: 20px 0 20px 0">
  12473. <div class="question">
  12474. <img src="../../assets/icon/question.png" alt />
  12475. </div>
  12476. <div class="queTitle">
  12477. <div style="min-width: 60px">{{ lang.ssQuestionTitleColon }}</div>
  12478. <div>{{ answerQ }}</div>
  12479. </div>
  12480. </div>
  12481. <div class="ediBottom">
  12482. <textarea
  12483. rows="6"
  12484. class="binfo_input"
  12485. cols
  12486. style="width: 95%; height: 120px"
  12487. v-model="questionAnswer"
  12488. ></textarea>
  12489. </div>
  12490. </div>
  12491. </div>
  12492. <div slot="footer">
  12493. <el-button @click="answerDialogVisible = false">{{ lang.ssCancel }}</el-button>
  12494. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  12495. </div>
  12496. </el-dialog>
  12497. <el-dialog
  12498. :title="lang.ssQa"
  12499. :visible.sync="answerDialogVisibleTeacher"
  12500. :append-to-body="true"
  12501. width="800px"
  12502. :before-close="handleClose"
  12503. class="dialog_diy"
  12504. >
  12505. <div>
  12506. <div class="w_name">
  12507. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  12508. </div>
  12509. <div
  12510. style="
  12511. display: flex;
  12512. flex-wrap: nowrap;
  12513. flex-direction: column;
  12514. position: relative;
  12515. "
  12516. >
  12517. <div class="queTop" style="padding: 20px 0 20px 0">
  12518. <div class="question">
  12519. <img src="../../assets/icon/question.png" alt />
  12520. </div>
  12521. <div class="queTitle">
  12522. <div style=" min-width: 60px">{{ lang.ssQuestionTitleColon }}</div>
  12523. <div>{{ answerQ }}</div>
  12524. </div>
  12525. </div>
  12526. <div class="ediBottom">
  12527. <textarea
  12528. rows="6"
  12529. class="binfo_input"
  12530. cols
  12531. style="width: 95%; height: 120px"
  12532. v-model="questionAnswer"
  12533. ></textarea>
  12534. </div>
  12535. </div>
  12536. </div>
  12537. <div slot="footer">
  12538. <el-button @click="answerDialogVisibleTeacher = false">{{ lang.ssCancel }}</el-button>
  12539. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  12540. </div>
  12541. </el-dialog>
  12542. <el-dialog
  12543. :title="lang.ssCountdown"
  12544. :visible.sync="timeDialogVisible"
  12545. :append-to-body="true"
  12546. width="800px"
  12547. :before-close="handleClose"
  12548. class="dialog_diy"
  12549. >
  12550. <div>
  12551. <div style="margin-bottom: 20px; color: #999">
  12552. {{ lang.ssCountdownHint }}
  12553. </div>
  12554. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12555. </div>
  12556. <div slot="footer">
  12557. <el-button @click="timeDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  12558. </div>
  12559. </el-dialog>
  12560. <el-dialog
  12561. :title="lang.ssPermissionSetting"
  12562. :visible.sync="juriVisible"
  12563. :append-to-body="true"
  12564. width="400px"
  12565. :before-close="handleClose"
  12566. class="dialog_diy"
  12567. >
  12568. <div>
  12569. <div class="open_box">
  12570. <div class="switch_box">
  12571. <span>{{ lang.ssAllowViewAllHomework }}</span>
  12572. <el-switch
  12573. v-model="sIsOpen"
  12574. active-text=""
  12575. class="switchCss"
  12576. @change="updateSLook"
  12577. ></el-switch>
  12578. </div>
  12579. <div
  12580. class="switch_box"
  12581. v-if="
  12582. (courseDetail.userid == userid ||
  12583. (courseDetail.course_teacher &&
  12584. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  12585. "
  12586. >
  12587. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12588. <span>{{ lang.ssProhibitViewStage }}</span>
  12589. <el-switch
  12590. v-model="IsLookOpen"
  12591. active-text=""
  12592. class="switchCss"
  12593. @change="updateLookOpen"
  12594. ></el-switch>
  12595. </div>
  12596. <div class="switch_box" v-if=" (courseDetail.userid == userid ||
  12597. (courseDetail.course_teacher &&
  12598. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  12599. <span>{{ lang.ssEnableFollowMode }}</span>
  12600. <el-switch
  12601. v-model="IsFollow"
  12602. active-text=""
  12603. class="switchCss"
  12604. @change="updateFollow"
  12605. ></el-switch>
  12606. </div>
  12607. <div class="switch_box" v-if="courseDetail.userid == userid">
  12608. <span>{{ lang.ssAllowViewContent }}</span>
  12609. <el-switch
  12610. v-model="IsStulook"
  12611. active-text=""
  12612. class="switchCss"
  12613. @change="updateIsStulook"
  12614. ></el-switch>
  12615. </div>
  12616. </div>
  12617. </div>
  12618. <div slot="footer">
  12619. <el-button
  12620. style="background: #409efe; color: #fff"
  12621. @click="juriVisible = false"
  12622. >{{ lang.ssCloseBtn }}</el-button
  12623. >
  12624. </div>
  12625. </el-dialog>
  12626. <el-dialog
  12627. :title="lang.ssViewVideo"
  12628. :visible.sync="videoVisible"
  12629. :append-to-body="true"
  12630. width="1000px"
  12631. :before-close="handleClose"
  12632. class="dialog_diy1"
  12633. >
  12634. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12635. <video-player
  12636. class="video-player vjs-custom-skin"
  12637. :playsinline="true"
  12638. :options="videoDetail"
  12639. @play="onPlayerPlay($event)"
  12640. style="width: 100%; height: 100%"
  12641. ></video-player>
  12642. </div>
  12643. <div slot="footer">
  12644. <el-button
  12645. style="background: #409efe; color: #fff"
  12646. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12647. >
  12648. {{ lang.ssCloseBtn }}</el-button
  12649. >
  12650. </div>
  12651. </el-dialog>
  12652. <el-dialog
  12653. :title="lang.ssViewDetails"
  12654. :visible.sync="commentDialogVisible"
  12655. :append-to-body="true"
  12656. width="800px"
  12657. :before-close="handleClose"
  12658. class="dialog_diy"
  12659. >
  12660. <div class="commentTop">
  12661. <div class="studentDetail">
  12662. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12663. <div class="nameAndTime">
  12664. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12665. <div>{{ commentDetail.time }}</div>
  12666. </div>
  12667. <div
  12668. class="returnBtn"
  12669. style="margin-left: auto; width: 80px"
  12670. v-if="
  12671. commentDetail.works &&
  12672. commentDetail.type == 0 &&
  12673. (tType == 1 || tType == 4)
  12674. "
  12675. @click="
  12676. showPicturePaint(
  12677. commentDetail.img ? commentDetail.img : commentDetail.works
  12678. )
  12679. "
  12680. >
  12681. {{ lang.ssTeacherAnnotation }}
  12682. </div>
  12683. </div>
  12684. <div
  12685. class="worksAnswer"
  12686. v-if="commentDetail.works && commentDetail.type == 2"
  12687. >
  12688. {{ JSON.parse(commentDetail.works)[0].answer }}
  12689. </div>
  12690. <div
  12691. class="worksAnswer"
  12692. v-if="commentDetail.works && commentDetail.type == 1"
  12693. >
  12694. <img
  12695. src="../../assets/teacherWork.png"
  12696. v-if="commentDetail.ateacher"
  12697. class="w_teachert"
  12698. />
  12699. <pdf
  12700. v-if="showPDF"
  12701. :pdfUrl="pptImgUrl"
  12702. style="width: 100%; height: 520px; overflow: auto"
  12703. :class="{ fullStyle: full }"
  12704. ></pdf>
  12705. <iframe
  12706. v-else
  12707. :src="pptImgUrl"
  12708. frameborder="0"
  12709. width="100%"
  12710. height="600"
  12711. :class="{ fullStyle: full }"
  12712. ></iframe>
  12713. </div>
  12714. <div
  12715. class="worksAnswer"
  12716. v-if="commentDetail.works && commentDetail.type == 0"
  12717. >
  12718. <img
  12719. src="../../assets/teacherWork.png"
  12720. v-if="commentDetail.ateacher"
  12721. class="w_teachert"
  12722. style="right: 105px"
  12723. />
  12724. <img
  12725. :src="commentDetail.works"
  12726. alt=""
  12727. @click="previewImg(commentDetail.works)"
  12728. />
  12729. </div>
  12730. <div
  12731. class="worksAnswer"
  12732. v-if="commentDetail.works && commentDetail.type == 3"
  12733. >
  12734. <img
  12735. src="../../assets/teacherWork.png"
  12736. v-if="commentDetail.ateacher"
  12737. class="w_teachert"
  12738. />
  12739. <video-player
  12740. class="video-player vjs-custom-skin"
  12741. :playsinline="true"
  12742. :options="videoDetail"
  12743. @play="onPlayerPlay($event)"
  12744. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12745. ></video-player>
  12746. </div>
  12747. <div
  12748. class="worksAnswer"
  12749. v-if="commentDetail.works && commentDetail.type == 10"
  12750. >
  12751. <div class="cont" v-html="commentDetail.works.text"></div>
  12752. </div>
  12753. <div
  12754. class="worksAnswer codeFileBox"
  12755. v-if="commentDetail.works && commentDetail.type == 12"
  12756. @click="downloadFile(commentDetail.works)"
  12757. >
  12758. <img src="../../assets/icon/codeFile.png" />
  12759. <div>{{ lang.ssClickDownloadFile }}</div>
  12760. </div>
  12761. <div
  12762. class="worksAnswer codeFileBox"
  12763. v-if="commentDetail.works && commentDetail.type == 15"
  12764. @click="
  12765. openCocoPi(
  12766. 57,
  12767. commentIndexJson.toolIndex,
  12768. commentDetail.userid,
  12769. commentDetail.sName
  12770. )
  12771. "
  12772. >
  12773. <img src="../../assets/icon/codeFile.png" />
  12774. <div>{{ lang.ssClickOpenCocoPi }}</div>
  12775. </div>
  12776. <div
  12777. class="worksAnswer"
  12778. v-if="commentDetail.works && commentDetail.type == 13"
  12779. >
  12780. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12781. </div>
  12782. <div
  12783. class="worksAnswer"
  12784. v-if="commentDetail.works && commentDetail.type == 4"
  12785. >
  12786. <div class="evalCss">
  12787. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  12788. <div class="middleBox" v-if="eScore.eStar">
  12789. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12790. <div class="nameAndrate">
  12791. <div>{{ e.value }}</div>
  12792. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12793. </div>
  12794. <div v-if="e.detail">{{ e.detail }}</div>
  12795. </div>
  12796. <div class="bz">
  12797. <textarea
  12798. disabled
  12799. rows="4"
  12800. class="pj"
  12801. style="
  12802. padding: 10px 5px;
  12803. width: 70%;
  12804. background: #f7f6f9;
  12805. font-size: 14px;
  12806. text-indent: 10px;
  12807. color: #000;
  12808. "
  12809. cols
  12810. v-model="eScore.eBzText"
  12811. :placeholder="lang.ssEnterEvalContent"
  12812. ></textarea>
  12813. </div>
  12814. </div>
  12815. </div>
  12816. </div>
  12817. <div class="comment">
  12818. <div class="commentList">
  12819. <div class="commentImg">
  12820. <img
  12821. @click="
  12822. isLikes(
  12823. commentDetail.wid,
  12824. userid,
  12825. 1,
  12826. null,
  12827. commentDetail.isLikes,
  12828. commentDetail.sName
  12829. )
  12830. "
  12831. :src="commentDetail.isLikes == true ? likes : noLikes"
  12832. alt=""
  12833. />
  12834. </div>
  12835. <div>{{ commentDetail.likesCount }}</div>
  12836. </div>
  12837. <div class="commentList">
  12838. <div class="commentImg">
  12839. <img src="../../assets/icon/comment/comment.png" alt="" />
  12840. </div>
  12841. <div>{{ commentDetail.commentCount }}</div>
  12842. </div>
  12843. </div>
  12844. <div class="drawPBox" v-if="commentDetail.img">
  12845. <span>{{ lang.ssTeacherAnnotation }}</span>
  12846. <img
  12847. :src="commentDetail.img"
  12848. alt=""
  12849. @click="previewImg(commentDetail.img)"
  12850. />
  12851. <span
  12852. class="deleteImg"
  12853. v-if="tType == 1 || tType == 4"
  12854. @click.stop="deletePicturePaint(commentDetail.wid)"
  12855. style="
  12856. font-size: 14px;
  12857. width: auto !important;
  12858. color: #b4b4b4;
  12859. top: unset;
  12860. bottom: 0;
  12861. border: none;
  12862. padding: 0;
  12863. height: auto !important;
  12864. margin: 0;
  12865. "
  12866. >{{ lang.ssDelete }}</span
  12867. >
  12868. </div>
  12869. </div>
  12870. <div class="commentBox">
  12871. <div class="pl">{{ lang.ssCommentLabel }}</div>
  12872. <div style="max-height: 200px; overflow: auto">
  12873. <div
  12874. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  12875. style="padding: 10px 0 0 0"
  12876. >
  12877. <div
  12878. class="studentDetail"
  12879. style="padding-top: 10px"
  12880. v-for="(co, coIndex) in commentDetail.commentJson"
  12881. :key="coIndex"
  12882. >
  12883. <div class="tx" style="min-width: 50px">
  12884. <img src="../../assets/avatar.png" alt="" />
  12885. </div>
  12886. <div class="plPerson">
  12887. <div class="plName">
  12888. <div>{{ co.commentPeople }}</div>
  12889. <div style="margin-left: 5px">
  12890. {{ co.commentTime }}
  12891. </div>
  12892. <div
  12893. class="deleteComment"
  12894. v-if="userid == co.userid"
  12895. @click="deleteComment(co.wid)"
  12896. >
  12897. {{ lang.ssDelete }}
  12898. </div>
  12899. </div>
  12900. <div class="plContent">{{ co.commentText }}</div>
  12901. </div>
  12902. </div>
  12903. </div>
  12904. <div v-else style="padding: 10px 0 0 0">{{ lang.ssNoComments }}</div>
  12905. </div>
  12906. </div>
  12907. <div style="margin-top: 10px">
  12908. <div class="displayBox">
  12909. <div
  12910. style="
  12911. color: #556db4;
  12912. font-size: 14px;
  12913. font-weight: bold;
  12914. padding-bottom: 10px;
  12915. "
  12916. >
  12917. {{ lang.ssEvaluation }}
  12918. </div>
  12919. <div class="easy_comment" v-if="false">
  12920. <div
  12921. v-for="(p, pIndex) in PlTextList"
  12922. :key="pIndex"
  12923. @click="fastText(p, 1)"
  12924. >
  12925. {{ p }}
  12926. </div>
  12927. </div>
  12928. </div>
  12929. <div>
  12930. <textarea
  12931. rows="3"
  12932. class="pj"
  12933. style="padding: 10px 5px"
  12934. cols
  12935. v-model="commentText"
  12936. :placeholder="lang.ssEnterComment"
  12937. ></textarea>
  12938. </div>
  12939. </div>
  12940. <div slot="footer">
  12941. <el-button
  12942. @click="
  12943. (commentDialogVisible = false),
  12944. (commentIndexJson = {}),
  12945. videoDetail.sources && videoDetail.sources[0]
  12946. ? (videoDetail.sources[0].src = '')
  12947. : ''
  12948. "
  12949. >{{ lang.ssCancel }}</el-button
  12950. >
  12951. <el-button
  12952. type="primary"
  12953. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  12954. >{{ lang.ssConfirm }}</el-button
  12955. >
  12956. </div>
  12957. </el-dialog>
  12958. <el-dialog
  12959. :title="lang.ssViewDoc"
  12960. :visible.sync="fullDialogVisible"
  12961. :append-to-body="true"
  12962. width="100%"
  12963. :before-close="handleClose"
  12964. :show-close="false"
  12965. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  12966. >
  12967. <div slot="title" class="header-title">
  12968. <div v-if="fulltype == 4" style="color: #fff">{{ lang.ssAIApplication }}</div>
  12969. <div v-else style="color: #fff">{{ lang.ssViewDoc }}</div>
  12970. <div
  12971. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  12972. style="
  12973. cursor: pointer;
  12974. position: absolute;
  12975. top: 20px;
  12976. right: 20px;
  12977. color: #fff;
  12978. "
  12979. >
  12980. {{ lang.ssExitFullscreen }}
  12981. </div>
  12982. </div>
  12983. <div style="height: 100%;position: relative;">
  12984. <el-button
  12985. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  12986. size="medium"
  12987. type="primary"
  12988. @click="
  12989. () => {
  12990. (fullDialogVisible = false),
  12991. changeSplitScreenBehavior({ code: 99 });
  12992. }
  12993. "
  12994. style="
  12995. cursor: pointer;
  12996. position: absolute;
  12997. top: 10px;
  12998. right: 20px;
  12999. color: #fff;
  13000. "
  13001. >
  13002. {{ lang.ssExitFullscreen }}
  13003. </el-button>
  13004. <div
  13005. class="wheel"
  13006. v-if="fulltype == 1"
  13007. style="
  13008. box-shadow: 0 0 6px 1px #f2f2f2;
  13009. height:100%;
  13010. width: 100%;
  13011. background: #f1f1f1;
  13012. "
  13013. >
  13014. <div class="title" style="width: 100%; box-sizing: border-box">
  13015. {{ lang.ssViewDoc }}
  13016. </div>
  13017. <el-form class="textBox" style="height: 90%">
  13018. <el-form-item class="textTitle">
  13019. <div style="font-size: 22px">
  13020. {{ fullUrl.name }}
  13021. </div>
  13022. </el-form-item>
  13023. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13024. <div
  13025. v-html="fullUrl.url"
  13026. class="textContent"
  13027. style="height: auto"
  13028. ></div>
  13029. </el-form>
  13030. </div>
  13031. <div
  13032. class="wheel"
  13033. v-else-if="
  13034. (fulltype == 2 || fulltype == 4) &&
  13035. fullUrl.indexOf(
  13036. 'https://view.officeapps.live.com/op/view.aspx?src='
  13037. ) != -1
  13038. "
  13039. style="width: 100%;height:100%; margin: 0 auto"
  13040. >
  13041. <iframe
  13042. style="width: 100%; height: 100%; border: none"
  13043. :src="fullUrl"
  13044. ></iframe>
  13045. </div>
  13046. <iframe
  13047. style="width: 100%; height: 100%; border: none"
  13048. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13049. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13050. :src="fullUrl"
  13051. ></iframe>
  13052. <iframe
  13053. style="width: 100%; height: 100%; border: none"
  13054. security="restricted"
  13055. v-else-if="(fulltype == 2 || fulltype == 4)"
  13056. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13057. :src="fullUrl"
  13058. ></iframe>
  13059. <pdf
  13060. v-else-if="fulltype == 3"
  13061. :pdfUrl="fullUrl"
  13062. style="width: 100%; height: 100%; overflow: auto"
  13063. ></pdf>
  13064. <iframe
  13065. style="width: 100%; height: 100%; border: none"
  13066. security="restricted"
  13067. v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13068. :src="fullUrl"
  13069. ></iframe>
  13070. <iframe
  13071. style="width: 100%; height: 100%; border: none"
  13072. security="restricted"
  13073. v-else
  13074. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13075. :src="fullUrl"
  13076. ></iframe>
  13077. </div>
  13078. <!-- <div slot="footer">
  13079. <el-button @click="fullDialogVisible = false">{{ lang.ssCloseBtn }}</el-button>
  13080. </div> -->
  13081. </el-dialog>
  13082. <el-dialog
  13083. :title="lang.ssPersonalEval"
  13084. :visible.sync="studentEvalDialogVisible"
  13085. :append-to-body="true"
  13086. width="800px"
  13087. :before-close="handleClose"
  13088. class="dialog_diy"
  13089. >
  13090. <div class="evalCss">
  13091. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  13092. <div class="middleBox" v-if="eScore.eStar">
  13093. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13094. <div class="nameAndrate">
  13095. <div>{{ e.value }}</div>
  13096. <el-rate
  13097. v-model="eScore.eStar[eIndex]"
  13098. :disabled="isStar"
  13099. ></el-rate>
  13100. </div>
  13101. <div v-if="e.detail">{{ e.detail }}</div>
  13102. </div>
  13103. <div class="easy_comment" v-if="false">
  13104. <div
  13105. v-for="(p, pIndex) in PlTextList"
  13106. :key="pIndex"
  13107. @click="fastText(p, 2)"
  13108. >
  13109. {{ p }}
  13110. </div>
  13111. </div>
  13112. <div class="bz">
  13113. <textarea
  13114. :disabled="isStar"
  13115. rows="4"
  13116. class="pj"
  13117. style="
  13118. padding: 10px 5px;
  13119. width: 70%;
  13120. background: #f7f6f9;
  13121. font-size: 14px;
  13122. text-indent: 10px;
  13123. "
  13124. cols
  13125. v-model="eScore.eBzText"
  13126. :placeholder="lang.ssEnterEvalContent"
  13127. ></textarea>
  13128. </div>
  13129. </div>
  13130. </div>
  13131. <div slot="footer">
  13132. <el-button @click="studentEvalDialogVisible = false">{{ lang.ssCancel }}</el-button>
  13133. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13134. >{{ lang.ssConfirm }}</el-button
  13135. >
  13136. </div>
  13137. </el-dialog>
  13138. <el-dialog
  13139. :title="lang.ssPersonalEval"
  13140. :visible.sync="studentEvalDialogVisibleTeacher"
  13141. :append-to-body="true"
  13142. width="800px"
  13143. :before-close="handleClose"
  13144. class="dialog_diy"
  13145. >
  13146. <div class="w_name">
  13147. {{ lang.ssStudentName }}<span>{{ sStudent.student }}</span>
  13148. </div>
  13149. <div class="evalCss">
  13150. <div class="nav">{{ lang.ssSelectStarsForRating }}</div>
  13151. <div class="middleBox" v-if="eScore.eStar">
  13152. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13153. <div class="nameAndrate">
  13154. <div>{{ e.value }}</div>
  13155. <el-rate
  13156. v-model="eScore.eStar[eIndex]"
  13157. :disabled="isStar"
  13158. ></el-rate>
  13159. </div>
  13160. <div v-if="e.detail">{{ e.detail }}</div>
  13161. </div>
  13162. <div class="easy_comment" v-if="false">
  13163. <div
  13164. v-for="(p, pIndex) in PlTextList"
  13165. :key="pIndex"
  13166. @click="fastText(p, 2)"
  13167. >
  13168. {{ p }}
  13169. </div>
  13170. </div>
  13171. <div class="bz">
  13172. <textarea
  13173. :disabled="isStar"
  13174. rows="4"
  13175. class="pj"
  13176. style="
  13177. padding: 10px 5px;
  13178. width: 70%;
  13179. background: #f7f6f9;
  13180. font-size: 14px;
  13181. text-indent: 10px;
  13182. "
  13183. cols
  13184. v-model="eScore.eBzText"
  13185. :placeholder="lang.ssEnterEvalContent"
  13186. ></textarea>
  13187. </div>
  13188. </div>
  13189. </div>
  13190. <div slot="footer">
  13191. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13192. >{{ lang.ssCancel }}</el-button
  13193. >
  13194. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13195. >{{ lang.ssConfirm }}</el-button
  13196. >
  13197. </div>
  13198. </el-dialog>
  13199. <el-dialog
  13200. :title="lang.ssMatch"
  13201. :visible.sync="dialogVisibleSelect"
  13202. :append-to-body="true"
  13203. width="90%"
  13204. :before-close="handleClose"
  13205. class="dialog_diy dialog_diy3"
  13206. >
  13207. <div v-if="selectJson">
  13208. <div class="select_box2">
  13209. <div class="select_box2_title">
  13210. <div>{{ lang.ssMatch }}</div>
  13211. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  13212. </div>
  13213. <div class="select_box2_box">
  13214. <div class="select_box2_img">
  13215. <img
  13216. :src="selectJson.url"
  13217. @click="previewImg(selectJson.url)"
  13218. alt=""
  13219. />
  13220. </div>
  13221. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13222. <div style="padding-top: 15px">
  13223. <div class="select_answer_title" v-if="isSelect">
  13224. {{ selectAnswer.stu }}
  13225. </div>
  13226. <div class="select_answer_title" v-else>
  13227. {{ lang.ssSelectAnswerByQuestion }}
  13228. </div>
  13229. <div
  13230. class="select_box2_answer_box"
  13231. v-for="(item2, checkIndex) in selectJson.select"
  13232. :key="checkIndex"
  13233. >
  13234. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13235. <el-select
  13236. :disabled="isSelect"
  13237. v-model="selectAnswer.answer[checkIndex]"
  13238. :placeholder="lang.ssSelectCorrectAnswer"
  13239. >
  13240. <el-option
  13241. v-for="(e, eIndex) in selectJson.select"
  13242. :key="eIndex"
  13243. :label="e"
  13244. :value="eIndex"
  13245. >
  13246. </el-option>
  13247. </el-select>
  13248. </div>
  13249. </div>
  13250. <div
  13251. class="rightAnswerCss"
  13252. v-if="isSelect && (tType == 1 || tType == 4)"
  13253. >
  13254. <div
  13255. v-for="(a, aIndex) in selectJson.answer"
  13256. :key="aIndex"
  13257. class="rightAnswer"
  13258. >
  13259. <div
  13260. v-if="selectAnswer.answer[aIndex] === a"
  13261. style="color: #767de1"
  13262. >
  13263. {{ lang.ssAnswerCorrect }}
  13264. </div>
  13265. <div v-else>{{ lang.ssAnswerWrong }}</div>
  13266. <div
  13267. style="margin-left: 10px"
  13268. v-if="selectAnswer.answer[aIndex] !== a"
  13269. >
  13270. {{ lang.ssCorrectAnswer }}
  13271. </div>
  13272. <div
  13273. :class="
  13274. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13275. "
  13276. >
  13277. {{ selectJson.select[a] }}
  13278. </div>
  13279. </div>
  13280. </div>
  13281. </div>
  13282. <div class="upAnswerCss">
  13283. <el-button
  13284. type="primary"
  13285. @click="addSelectAnswer"
  13286. v-if="!isSelect"
  13287. >{{ lang.ssSubmitAnswer }}</el-button
  13288. >
  13289. </div>
  13290. </div>
  13291. </div>
  13292. </div>
  13293. </el-dialog>
  13294. <el-dialog
  13295. :title="lang.ssMatch"
  13296. :visible.sync="dialogVisibleSelectTeacher"
  13297. :append-to-body="true"
  13298. width="90%"
  13299. :before-close="handleClose"
  13300. class="dialog_diy dialog_diy3"
  13301. >
  13302. <div v-if="selectJson">
  13303. <div class="w_name">
  13304. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13305. </div>
  13306. <div class="select_box2">
  13307. <div class="select_box2_title">
  13308. <div>{{ lang.ssMatch }}</div>
  13309. <div>{{ lang.ssSelectCorrespondingAnswer }}</div>
  13310. </div>
  13311. <div class="select_box2_box">
  13312. <div class="select_box2_img">
  13313. <img
  13314. :src="selectJson.url"
  13315. @click="previewImg(selectJson.url)"
  13316. alt=""
  13317. />
  13318. </div>
  13319. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13320. <div style="padding-top: 15px">
  13321. <div class="select_answer_title" v-if="isSelect">
  13322. {{ selectAnswer.stu }}
  13323. </div>
  13324. <div class="select_answer_title" v-else>
  13325. {{ lang.ssSelectAnswerByQuestion }}
  13326. </div>
  13327. <div
  13328. class="select_box2_answer_box"
  13329. v-for="(item2, checkIndex) in selectJson.select"
  13330. :key="checkIndex"
  13331. >
  13332. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13333. <el-select
  13334. :disabled="isSelect"
  13335. v-model="selectAnswer.answer[checkIndex]"
  13336. :placeholder="lang.ssSelectCorrectAnswer"
  13337. >
  13338. <el-option
  13339. v-for="(e, eIndex) in selectJson.select"
  13340. :key="eIndex"
  13341. :label="e"
  13342. :value="eIndex"
  13343. >
  13344. </el-option>
  13345. </el-select>
  13346. </div>
  13347. </div>
  13348. <div
  13349. class="rightAnswerCss"
  13350. v-if="isSelect && (tType == 1 || tType == 4)"
  13351. >
  13352. <div
  13353. v-for="(a, aIndex) in selectJson.answer"
  13354. :key="aIndex"
  13355. class="rightAnswer"
  13356. >
  13357. <div
  13358. v-if="selectAnswer.answer[aIndex] === a"
  13359. style="color: #767de1"
  13360. >
  13361. {{ lang.ssAnswerCorrect }}
  13362. </div>
  13363. <div v-else>{{ lang.ssAnswerWrong }}</div>
  13364. <div
  13365. style="margin-left: 10px"
  13366. v-if="selectAnswer.answer[aIndex] !== a"
  13367. >
  13368. {{ lang.ssCorrectAnswer }}
  13369. </div>
  13370. <div
  13371. :class="
  13372. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13373. "
  13374. >
  13375. {{ selectJson.select[a] }}
  13376. </div>
  13377. </div>
  13378. </div>
  13379. </div>
  13380. <div class="upAnswerCss">
  13381. <el-button
  13382. type="primary"
  13383. @click="addSelectAnswerTeacher"
  13384. v-if="!isSelect"
  13385. >{{ lang.ssSubmitAnswer }}</el-button
  13386. >
  13387. </div>
  13388. </div>
  13389. </div>
  13390. </div>
  13391. </el-dialog>
  13392. <el-dialog
  13393. :title="lang.ssTeacherScoring"
  13394. :visible.sync="dialogVisibleScore"
  13395. :append-to-body="true"
  13396. width="800px"
  13397. :before-close="handleClose"
  13398. class="dialog_diy"
  13399. >
  13400. <div>
  13401. <div class="studentDetail">
  13402. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13403. <div class="nameAndTime">
  13404. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13405. <div>{{ commentDetail.time }}</div>
  13406. </div>
  13407. </div>
  13408. <div
  13409. class="worksAnswer"
  13410. v-if="commentDetail.works && commentDetail.type == 2"
  13411. >
  13412. {{ JSON.parse(commentDetail.works)[0].answer }}
  13413. </div>
  13414. <div
  13415. class="worksAnswer"
  13416. v-if="commentDetail.works && commentDetail.type == 1"
  13417. >
  13418. <pdf
  13419. v-if="showPDF"
  13420. :pdfUrl="pptImgUrl"
  13421. style="width: 100%; height: 520px; overflow: auto"
  13422. :class="{ fullStyle: full }"
  13423. ></pdf>
  13424. <iframe
  13425. v-else
  13426. :src="pptImgUrl"
  13427. frameborder="0"
  13428. width="100%"
  13429. height="600"
  13430. :class="{ fullStyle: full }"
  13431. ></iframe>
  13432. </div>
  13433. <div
  13434. class="worksAnswer"
  13435. v-if="commentDetail.works && commentDetail.type == 0"
  13436. >
  13437. <img
  13438. :src="commentDetail.works"
  13439. alt=""
  13440. @click="previewImg(commentDetail.works)"
  13441. />
  13442. </div>
  13443. <div
  13444. class="worksAnswer"
  13445. v-if="commentDetail.works && commentDetail.type == 3"
  13446. >
  13447. <video-player
  13448. class="video-player vjs-custom-skin"
  13449. :playsinline="true"
  13450. :options="videoDetail"
  13451. @play="onPlayerPlay($event)"
  13452. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13453. ></video-player>
  13454. </div>
  13455. <div
  13456. class="worksAnswer codeFileBox"
  13457. v-if="commentDetail.works && commentDetail.type == 12"
  13458. @click="downloadFile(commentDetail.works)"
  13459. >
  13460. <img src="../../assets/icon/codeFile.png" />
  13461. <div>{{ lang.ssClickDownloadFile }}</div>
  13462. </div>
  13463. <div
  13464. class="worksAnswer codeFileBox"
  13465. v-if="commentDetail.works && commentDetail.type == 15"
  13466. @click="
  13467. openCocoPi(
  13468. 57,
  13469. commentIndexJson.toolIndex,
  13470. commentDetail.userid,
  13471. commentDetail.sName
  13472. )
  13473. "
  13474. >
  13475. <img src="../../assets/icon/codeFile.png" />
  13476. <div>{{ lang.ssClickOpenCocoPi }}</div>
  13477. </div>
  13478. <div
  13479. class="worksAnswer"
  13480. v-if="commentDetail.works && commentDetail.type == 13"
  13481. >
  13482. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13483. </div>
  13484. <div class="scoreBox">
  13485. <span class="t">{{ lang.ssEnterScore }}</span>
  13486. <el-input-number
  13487. :disabled="courseDetail.userid != userid"
  13488. v-model="wScore"
  13489. :controls="false"
  13490. :min="0"
  13491. :max="100"
  13492. ></el-input-number>
  13493. </div>
  13494. <div class="scoreDetailBox">
  13495. <span class="t">{{ lang.ssScoringComment }}</span>
  13496. <el-input
  13497. type="textarea"
  13498. :rows="5"
  13499. :disabled="courseDetail.userid != userid"
  13500. resize="none"
  13501. v-model="scoreDetail"
  13502. :placeholder="lang.ssEnterStudentEvaluation"
  13503. >
  13504. </el-input>
  13505. </div>
  13506. </div>
  13507. <span slot="footer" class="dialog-footer">
  13508. <el-button
  13509. @click="
  13510. (dialogVisibleScore = false),
  13511. (commentIndexJson = {}),
  13512. videoDetail.sources && videoDetail.sources[0]
  13513. ? (videoDetail.sources[0].src = '')
  13514. : ''
  13515. "
  13516. >{{ lang.ssCancel }}</el-button
  13517. >
  13518. <el-button
  13519. type="primary"
  13520. v-if="courseDetail.userid == userid"
  13521. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  13522. >{{ lang.ssConfirm }}
  13523. </el-button>
  13524. </span>
  13525. </el-dialog>
  13526. <el-dialog
  13527. :title="lang.ssSort"
  13528. :visible.sync="dialogVisibleSentence"
  13529. :append-to-body="true"
  13530. width="1000px"
  13531. :before-close="handleClose"
  13532. class="dialog_diy dialog_diy3"
  13533. >
  13534. <div>
  13535. <div class="sentenBox">
  13536. <div
  13537. v-for="(st, stIndex) in sentenceList"
  13538. :key="stIndex"
  13539. style="padding-bottom: 20px"
  13540. >
  13541. <div
  13542. style="padding: 15px 0 10px 20px"
  13543. class="sentenceTitle"
  13544. :index="stIndex + 1"
  13545. >
  13546. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  13547. </div>
  13548. <div class="cardList" v-if="st.chooseSenList">
  13549. <div class="cardBox">
  13550. <div
  13551. v-for="(r, rIndex) in st.chooseSenList"
  13552. :key="rIndex"
  13553. @click="returnCard(r, stIndex, rIndex)"
  13554. >
  13555. <el-tooltip
  13556. class="item"
  13557. effect="light"
  13558. :content="r"
  13559. placement="top"
  13560. v-if="r != '' && r != undefined"
  13561. >
  13562. <div
  13563. :class="{
  13564. isCard: r,
  13565. isChooseCard: r == '' || r == undefined,
  13566. }"
  13567. >
  13568. <div>{{ r }}</div>
  13569. </div>
  13570. </el-tooltip>
  13571. <div
  13572. :class="{
  13573. isCard: r,
  13574. isChooseCard: r == '' || r == undefined,
  13575. }"
  13576. v-else
  13577. >
  13578. <div>{{ r }}</div>
  13579. </div>
  13580. </div>
  13581. </div>
  13582. </div>
  13583. <div class="cardList" v-if="st.addChangeSen">
  13584. <div class="cardBox">
  13585. <div
  13586. v-for="(s, sIndex) in st.addChangeSen"
  13587. :key="sIndex"
  13588. @click="setRightAnswer(s, stIndex, sIndex)"
  13589. >
  13590. <el-tooltip
  13591. class="item"
  13592. effect="light"
  13593. :content="s"
  13594. placement="top"
  13595. v-if="s != '' && s != undefined"
  13596. >
  13597. <div
  13598. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13599. >
  13600. <div>{{ s }}</div>
  13601. </div>
  13602. </el-tooltip>
  13603. <div
  13604. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13605. v-else
  13606. >
  13607. <div>{{ s }}</div>
  13608. </div>
  13609. </div>
  13610. </div>
  13611. </div>
  13612. </div>
  13613. </div>
  13614. </div>
  13615. <span slot="footer" class="dialog-footer">
  13616. <el-button @click="dialogVisibleSentence = false">{{ lang.ssCancel }}</el-button>
  13617. <el-button type="primary" @click="addSenWorks">{{ lang.ssConfirm }}</el-button>
  13618. </span>
  13619. </el-dialog>
  13620. <el-dialog
  13621. :title="lang.ssSort"
  13622. :visible.sync="dialogVisibleSentenceTeacher"
  13623. :append-to-body="true"
  13624. width="1000px"
  13625. :before-close="handleClose"
  13626. class="dialog_diy dialog_diy3"
  13627. >
  13628. <div>
  13629. <div class="w_name">
  13630. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13631. </div>
  13632. <div class="sentenBox">
  13633. <div
  13634. v-for="(st, stIndex) in sentenceList"
  13635. :key="stIndex"
  13636. style="padding-bottom: 20px"
  13637. >
  13638. <div
  13639. style="padding: 15px 0 10px 20px"
  13640. class="sentenceTitle"
  13641. :index="stIndex + 1"
  13642. >
  13643. {{ lang.ssQuestion }}{{ stIndex + 1 }}:{{ lang.ssSelectCorrectOrder }}
  13644. </div>
  13645. <div class="cardList" v-if="st.chooseSenList">
  13646. <div class="cardBox">
  13647. <div
  13648. v-for="(r, rIndex) in st.chooseSenList"
  13649. :key="rIndex"
  13650. @click="returnCard(r, stIndex, rIndex)"
  13651. >
  13652. <el-tooltip
  13653. class="item"
  13654. effect="light"
  13655. :content="r"
  13656. placement="top"
  13657. v-if="r != '' && r != undefined"
  13658. >
  13659. <div
  13660. :class="{
  13661. isCard: r,
  13662. isChooseCard: r == '' || r == undefined,
  13663. }"
  13664. >
  13665. <div>{{ r }}</div>
  13666. </div>
  13667. </el-tooltip>
  13668. <div
  13669. :class="{
  13670. isCard: r,
  13671. isChooseCard: r == '' || r == undefined,
  13672. }"
  13673. v-else
  13674. >
  13675. <div>{{ r }}</div>
  13676. </div>
  13677. </div>
  13678. </div>
  13679. </div>
  13680. <div class="cardList" v-if="st.addChangeSen">
  13681. <div class="cardBox">
  13682. <div
  13683. v-for="(s, sIndex) in st.addChangeSen"
  13684. :key="sIndex"
  13685. @click="setRightAnswer(s, stIndex, sIndex)"
  13686. >
  13687. <el-tooltip
  13688. class="item"
  13689. effect="light"
  13690. :content="s"
  13691. placement="top"
  13692. v-if="s != '' && s != undefined"
  13693. >
  13694. <div
  13695. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13696. >
  13697. <div>{{ s }}</div>
  13698. </div>
  13699. </el-tooltip>
  13700. <div
  13701. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13702. v-else
  13703. >
  13704. <div>{{ s }}</div>
  13705. </div>
  13706. </div>
  13707. </div>
  13708. </div>
  13709. </div>
  13710. </div>
  13711. </div>
  13712. <span slot="footer" class="dialog-footer">
  13713. <el-button @click="dialogVisibleSentenceTeacher = false"
  13714. >{{ lang.ssCancel }}</el-button
  13715. >
  13716. <el-button type="primary" @click="addSenWorksTeacher">{{ lang.ssConfirm }}</el-button>
  13717. </span>
  13718. </el-dialog>
  13719. <el-dialog
  13720. :title="lang.ssSort"
  13721. :visible.sync="dialogVisibleSentence1"
  13722. :append-to-body="true"
  13723. width="1000px"
  13724. :before-close="handleClose"
  13725. class="dialog_diy dialog_diy3"
  13726. >
  13727. <div>
  13728. <div class="sentenBox">
  13729. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13730. {{ sentenceList1.stuName }}{{ lang.ssHomeworkOf }}
  13731. </div>
  13732. <div
  13733. v-for="(st, stIndex) in sentenceList1"
  13734. :key="stIndex"
  13735. style="padding-bottom: 20px"
  13736. >
  13737. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13738. {{ lang.ssQuestionNum.replace(/\*/g, stIndex + 1) }}
  13739. </div>
  13740. <div class="isWrong">
  13741. <div class="cardList1" v-if="st.chooseSenList">
  13742. <div class="cardBox">
  13743. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13744. <el-tooltip
  13745. class="item"
  13746. effect="light"
  13747. :content="s"
  13748. placement="top"
  13749. >
  13750. <div class="isCard">
  13751. <div>{{ s }}</div>
  13752. </div>
  13753. </el-tooltip>
  13754. </div>
  13755. </div>
  13756. <div class="cardAnswerBox">
  13757. {{ lang.ssFormSentence }}{{ st.chooseSenList.join(" ") }}
  13758. </div>
  13759. </div>
  13760. <div v-if="tType == 2" class="isTj">
  13761. <div class="isTjImg">
  13762. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13763. </div>
  13764. <div>{{ lang.ssSubmitted }}</div>
  13765. </div>
  13766. <div
  13767. class="answerRight isTj"
  13768. v-if="
  13769. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13770. (tType == 1 || tType == 4)
  13771. "
  13772. >
  13773. <div class="isTjImg">
  13774. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13775. </div>
  13776. <div>{{ lang.ssAnswerCorrect }}</div>
  13777. </div>
  13778. <div
  13779. class="answerRight isTj"
  13780. v-if="
  13781. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13782. (tType == 1 || tType == 4)
  13783. "
  13784. >
  13785. <div class="isTjImg">
  13786. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13787. </div>
  13788. <div>{{ lang.ssAnswerWrong }}</div>
  13789. </div>
  13790. </div>
  13791. <div
  13792. v-if="
  13793. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13794. (tType == 1 || tType == 4)
  13795. "
  13796. >
  13797. <div style="padding: 15px 0 10px 20px">{{ lang.ssCorrectAnswerBelow }}</div>
  13798. <div
  13799. class="cardList"
  13800. v-if="st.rightAnswer"
  13801. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13802. >
  13803. <div class="cardBox">
  13804. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13805. <el-tooltip
  13806. class="item"
  13807. effect="light"
  13808. :content="r"
  13809. placement="top"
  13810. >
  13811. <div class="isCard1">
  13812. <div>{{ r }}</div>
  13813. </div>
  13814. </el-tooltip>
  13815. </div>
  13816. </div>
  13817. <div class="cardAnswerBox">
  13818. {{ lang.ssFormSentence }}{{ st.rightAnswer.join(" ") }}
  13819. </div>
  13820. </div>
  13821. </div>
  13822. </div>
  13823. </div>
  13824. </div>
  13825. <span slot="footer" class="dialog-footer">
  13826. <el-button @click="dialogVisibleSentence1 = false">{{ lang.ssCancel }}</el-button>
  13827. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  13828. >{{ lang.ssConfirm }}</el-button
  13829. >
  13830. </span>
  13831. </el-dialog>
  13832. <el-dialog
  13833. :title="lang.ssTeacherSubmitWork"
  13834. :visible.sync="dialogVisibleWorks"
  13835. :append-to-body="true"
  13836. width="500px"
  13837. :before-close="handleClose"
  13838. class="dialog_change"
  13839. >
  13840. <div class="marginT">
  13841. <div class="w_name">
  13842. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13843. </div>
  13844. <div>{{ lang.ssUpFile }}</div>
  13845. <div style="display: flex; gap: 10px">
  13846. <div
  13847. class="chapter_add"
  13848. @click="addImg($event)"
  13849. v-if="studyJuri[0].cover.length == 0"
  13850. >
  13851. <div class="up_photo">
  13852. <img src="../../assets/icon/uploadImg.png" alt />
  13853. </div>
  13854. <!-- <input
  13855. type="file"
  13856. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  13857. style="display: none"
  13858. @change="beforeUpload1($event, 1)"
  13859. /> -->
  13860. <input
  13861. type="file"
  13862. accept="*"
  13863. style="display: none"
  13864. @change="beforeUpload1($event, 1)"
  13865. />
  13866. <!-- <input
  13867. type="file"
  13868. accept="image/*"
  13869. capture="camera"
  13870. style="display: none"
  13871. @change="beforeUpload1($event, 1)"
  13872. /> -->
  13873. </div>
  13874. <div
  13875. class="chapter_add"
  13876. @click="addImg($event)"
  13877. v-if="studyJuri[0].cover.length == 0"
  13878. >
  13879. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  13880. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  13881. </div>
  13882. <input
  13883. type="file"
  13884. accept="image/*"
  13885. capture="camera"
  13886. style="display: none"
  13887. @change="beforeUpload1($event, 1)"
  13888. />
  13889. </div>
  13890. </div>
  13891. <!-- capture="camera" -->
  13892. <div
  13893. class="chapter_add"
  13894. style="
  13895. display: flex;
  13896. width: 100%;
  13897. flex-direction: row;
  13898. flex-wrap: wrap;
  13899. justify-content: flex-start;
  13900. padding: 15px 0;
  13901. "
  13902. v-if="studyJuri[0].cover.length > 0"
  13903. >
  13904. <div class="upCover">
  13905. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  13906. <img :src="word" alt v-else-if="fileType == 1" />
  13907. <img :src="video" alt v-else-if="fileType == 2" />
  13908. <img :src="word2" alt v-else-if="fileType == 3" />
  13909. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  13910. <div class="deleteWord" @click="clean(1)">
  13911. <img src="../../assets/icon/deleteWorks.png" alt />
  13912. </div>
  13913. </div>
  13914. </div>
  13915. </div>
  13916. <div
  13917. class="upload_send"
  13918. @click="addCourseWorksTeacher(taskCount)"
  13919. v-if="!proVisible"
  13920. >
  13921. {{ lang.ssSubmit }}
  13922. </div>
  13923. </el-dialog>
  13924. <ImgDraw
  13925. :drawShow="drawShow"
  13926. @closeDraw="closeDraw"
  13927. @addImgDraw="addImgDraw"
  13928. :bg="bg"
  13929. ></ImgDraw>
  13930. <el-dialog
  13931. :title="lang.ssTable"
  13932. :visible.sync="dialogVisibleTable"
  13933. :append-to-body="true"
  13934. width="95%"
  13935. :before-close="handleClose"
  13936. class="dialog_diy"
  13937. >
  13938. <el-form>
  13939. <div
  13940. style="
  13941. display: flex;
  13942. align-items: center;
  13943. justify-content: space-between;
  13944. "
  13945. >
  13946. <span>{{ lang.ssTableContent }}</span>
  13947. <el-button type="primary" size="small" @click="returnTableText"
  13948. >{{ lang.ssRestoreTemplate }}</el-button
  13949. >
  13950. </div>
  13951. <Table
  13952. v-model="tableJson.text"
  13953. @change="change"
  13954. v-if="dialogVisibleTable"
  13955. ></Table>
  13956. </el-form>
  13957. <span slot="footer" class="dialog-footer">
  13958. <el-button @click="dialogVisibleTable = false">{{ lang.ssCancel }}</el-button>
  13959. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirm }}</el-button>
  13960. </span>
  13961. </el-dialog>
  13962. <el-dialog
  13963. :title="lang.ssTable"
  13964. :visible.sync="dialogVisibleTableTeacher"
  13965. :append-to-body="true"
  13966. width="95%"
  13967. :before-close="handleClose"
  13968. class="dialog_diy"
  13969. >
  13970. <el-form>
  13971. <div class="w_name">
  13972. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  13973. </div>
  13974. <div>{{ lang.ssTableContent }}</div>
  13975. <Table
  13976. v-model="tableJson.text"
  13977. @change="change"
  13978. v-if="dialogVisibleTableTeacher"
  13979. ></Table>
  13980. </el-form>
  13981. <span slot="footer" class="dialog-footer">
  13982. <el-button @click="dialogVisibleTableTeacher = false">{{ lang.ssCancel }}</el-button>
  13983. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  13984. </span>
  13985. </el-dialog>
  13986. <el-dialog
  13987. :title="lang.ssDocument"
  13988. :visible.sync="dialogVisibleWord"
  13989. :append-to-body="true"
  13990. width="95%"
  13991. :before-close="handleClose"
  13992. class="dialog_diy"
  13993. >
  13994. <el-form>
  13995. <div
  13996. style="
  13997. display: flex;
  13998. align-items: center;
  13999. justify-content: space-between;
  14000. "
  14001. >
  14002. <span>{{ lang.ssDocumentContent }}</span>
  14003. <el-button type="primary" size="small" @click="returnWordText"
  14004. >{{ lang.ssRestoreTemplate }}</el-button
  14005. >
  14006. </div>
  14007. <editor-bar
  14008. v-model="wordJson.text"
  14009. v-if="dialogVisibleWord"
  14010. ></editor-bar>
  14011. </el-form>
  14012. <span slot="footer" class="dialog-footer">
  14013. <el-button @click="dialogVisibleWord = false">{{ lang.ssCancel }}</el-button>
  14014. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  14015. </span>
  14016. </el-dialog>
  14017. <el-dialog
  14018. :title="lang.ssDocument"
  14019. :visible.sync="dialogVisibleWordTeacher"
  14020. :append-to-body="true"
  14021. width="95%"
  14022. :before-close="handleClose"
  14023. class="dialog_diy"
  14024. >
  14025. <el-form>
  14026. <div class="w_name">
  14027. {{ lang.ssStudentName }}:<span>{{ sStudent.student }}</span>
  14028. </div>
  14029. <div>{{ lang.ssDocumentContent }}</div>
  14030. <editor-bar
  14031. v-model="wordJson.text"
  14032. v-if="dialogVisibleWordTeacher"
  14033. ></editor-bar>
  14034. </el-form>
  14035. <span slot="footer" class="dialog-footer">
  14036. <el-button @click="dialogVisibleWordTeacher = false">{{ lang.ssCancel }}</el-button>
  14037. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  14038. </span>
  14039. </el-dialog>
  14040. <el-dialog
  14041. :title="lang.ssTable"
  14042. :visible.sync="dialogVisibleTable2"
  14043. :append-to-body="true"
  14044. width="95%"
  14045. :before-close="handleClose"
  14046. class="dialog_diy"
  14047. >
  14048. <el-form>
  14049. <div class="cont" v-html="tableJson.text"></div>
  14050. </el-form>
  14051. <span slot="footer" class="dialog-footer">
  14052. <el-button @click="dialogVisibleTable2 = false">{{ lang.ssCloseBtn }}</el-button>
  14053. </span>
  14054. </el-dialog>
  14055. <el-dialog
  14056. :title="lang.ssDocument"
  14057. :visible.sync="dialogVisibleTable3"
  14058. :append-to-body="true"
  14059. width="95%"
  14060. :before-close="handleClose"
  14061. class="dialog_diy"
  14062. >
  14063. <el-form>
  14064. <div class="cont" v-html="tableJson.text"></div>
  14065. </el-form>
  14066. <span slot="footer" class="dialog-footer">
  14067. <el-button @click="dialogVisibleTable3 = false">{{ lang.ssCloseBtn }}</el-button>
  14068. </span>
  14069. </el-dialog>
  14070. <el-dialog
  14071. :title="lang.ssGroupSetting"
  14072. :visible.sync="dialogVisibleGroup"
  14073. :append-to-body="true"
  14074. width="95%"
  14075. :before-close="handleClose"
  14076. class="dialog_diy"
  14077. >
  14078. <div v-if="dialogVisibleGroup">
  14079. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14080. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14081. {{ lang.ssOpenSeatTip }}
  14082. </div>
  14083. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14084. @click="lockChair">
  14085. 锁定位置
  14086. </div>
  14087. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14088. 解锁位置
  14089. </div> -->
  14090. <div class="group_switch">
  14091. <span>{{ lang.ssOpenSeat }}</span>
  14092. <el-switch
  14093. v-model="islock"
  14094. active-text=""
  14095. class="switchCss"
  14096. @change="lockChair"
  14097. ></el-switch>
  14098. </div>
  14099. <div
  14100. type="primary"
  14101. @click="updateGroup"
  14102. class="returnBtn"
  14103. style="background-color: #225bc7"
  14104. >
  14105. {{ lang.ssGroupSetting }}
  14106. </div>
  14107. </div>
  14108. <div>
  14109. <div
  14110. class="g_d_box"
  14111. v-if="groupJson.group && groupStudent[toolindex]"
  14112. >
  14113. <div
  14114. class="g_d_group"
  14115. v-for="(g, gindex) in groupJson.group"
  14116. :key="gindex"
  14117. >
  14118. <div class="g_d_group_chair">
  14119. <div v-if="groupJson.number > 1">
  14120. <span
  14121. :class="{
  14122. isChair:
  14123. groupStudent[toolindex][gindex] &&
  14124. groupStudent[toolindex][gindex][0],
  14125. updateChair:
  14126. courseDetail.userid == userid &&
  14127. groupStudent[toolindex][gindex] &&
  14128. groupStudent[toolindex][gindex][0] &&
  14129. groupJson.islock == 2,
  14130. }"
  14131. ><span
  14132. class="updateChairBtn"
  14133. @click="
  14134. updateGroupChair(
  14135. groupStudent[toolindex][gindex] &&
  14136. groupStudent[toolindex][gindex][0]
  14137. )
  14138. "
  14139. >{{ lang.ssModify }}</span
  14140. ></span
  14141. ><span>{{
  14142. groupStudent[toolindex][gindex] &&
  14143. groupStudent[toolindex][gindex][0]
  14144. ? groupStudent[toolindex][gindex] &&
  14145. groupStudent[toolindex][gindex][0].name
  14146. : lang.ssEmptyPosition
  14147. }}</span>
  14148. </div>
  14149. <div v-if="groupJson.number > 4">
  14150. <span
  14151. :class="{
  14152. isChair:
  14153. groupStudent[toolindex][gindex] &&
  14154. groupStudent[toolindex][gindex][4],
  14155. updateChair:
  14156. courseDetail.userid == userid &&
  14157. groupStudent[toolindex][gindex] &&
  14158. groupStudent[toolindex][gindex][4] &&
  14159. groupJson.islock == 2,
  14160. }"
  14161. ><span
  14162. class="updateChairBtn"
  14163. @click="
  14164. updateGroupChair(
  14165. groupStudent[toolindex][gindex] &&
  14166. groupStudent[toolindex][gindex][4]
  14167. )
  14168. "
  14169. >{{ lang.ssModify }}</span
  14170. ></span
  14171. ><span>{{
  14172. groupStudent[toolindex][gindex] &&
  14173. groupStudent[toolindex][gindex][4]
  14174. ? groupStudent[toolindex][gindex] &&
  14175. groupStudent[toolindex][gindex][4].name
  14176. : lang.ssEmptyPosition
  14177. }}</span>
  14178. </div>
  14179. <div v-if="groupJson.number > 8">
  14180. <span
  14181. :class="{
  14182. isChair:
  14183. groupStudent[toolindex][gindex] &&
  14184. groupStudent[toolindex][gindex][8],
  14185. updateChair:
  14186. courseDetail.userid == userid &&
  14187. groupStudent[toolindex][gindex] &&
  14188. groupStudent[toolindex][gindex][8] &&
  14189. groupJson.islock == 2,
  14190. }"
  14191. ><span
  14192. class="updateChairBtn"
  14193. @click="
  14194. updateGroupChair(
  14195. groupStudent[toolindex][gindex] &&
  14196. groupStudent[toolindex][gindex][8]
  14197. )
  14198. "
  14199. >{{ lang.ssModify }}</span
  14200. ></span
  14201. ><span>{{
  14202. groupStudent[toolindex][gindex] &&
  14203. groupStudent[toolindex][gindex][8]
  14204. ? groupStudent[toolindex][gindex] &&
  14205. groupStudent[toolindex][gindex][8].name
  14206. : lang.ssEmptyPosition
  14207. }}</span>
  14208. </div>
  14209. </div>
  14210. <div class="g_d_group_tableBox">
  14211. <div class="g_d_group_chair2">
  14212. <div v-if="groupJson.number > 2">
  14213. <span
  14214. :class="{
  14215. isChair:
  14216. groupStudent[toolindex][gindex] &&
  14217. groupStudent[toolindex][gindex][2],
  14218. updateChair:
  14219. courseDetail.userid == userid &&
  14220. groupStudent[toolindex][gindex] &&
  14221. groupStudent[toolindex][gindex][2] &&
  14222. groupJson.islock == 2,
  14223. }"
  14224. ><span
  14225. class="updateChairBtn"
  14226. @click="
  14227. updateGroupChair(
  14228. groupStudent[toolindex][gindex] &&
  14229. groupStudent[toolindex][gindex][2]
  14230. )
  14231. "
  14232. >{{ lang.ssModify }}</span
  14233. ></span
  14234. ><span>{{
  14235. groupStudent[toolindex][gindex] &&
  14236. groupStudent[toolindex][gindex][2]
  14237. ? groupStudent[toolindex][gindex] &&
  14238. groupStudent[toolindex][gindex][2].name
  14239. : lang.ssEmptyPosition
  14240. }}</span>
  14241. </div>
  14242. <div v-if="groupJson.number > 6">
  14243. <span
  14244. :class="{
  14245. isChair:
  14246. groupStudent[toolindex][gindex] &&
  14247. groupStudent[toolindex][gindex][6],
  14248. updateChair:
  14249. courseDetail.userid == userid &&
  14250. groupStudent[toolindex][gindex] &&
  14251. groupStudent[toolindex][gindex][6] &&
  14252. groupJson.islock == 2,
  14253. }"
  14254. ><span
  14255. class="updateChairBtn"
  14256. @click="
  14257. updateGroupChair(
  14258. groupStudent[toolindex][gindex] &&
  14259. groupStudent[toolindex][gindex][6]
  14260. )
  14261. "
  14262. >{{ lang.ssModify }}</span
  14263. ></span
  14264. ><span>{{
  14265. groupStudent[toolindex][gindex] &&
  14266. groupStudent[toolindex][gindex][6]
  14267. ? groupStudent[toolindex][gindex] &&
  14268. groupStudent[toolindex][gindex][6].name
  14269. : lang.ssEmptyPosition
  14270. }}</span>
  14271. </div>
  14272. </div>
  14273. <div class="g_d_group_table">
  14274. <div>
  14275. {{ g.name }}
  14276. </div>
  14277. <div>
  14278. <div
  14279. v-if="
  14280. courseDetail.userid == userid && groupJson.islock == 2
  14281. "
  14282. @click="deleteGroupChair(gindex)"
  14283. >
  14284. {{ lang.ssRemoveMember }}
  14285. </div>
  14286. <div
  14287. @click="selectGroup(gindex)"
  14288. v-else-if="
  14289. groupStudentUid[toolindex] &&
  14290. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14291. "
  14292. >
  14293. {{ lang.ssJoinGroup }}
  14294. </div>
  14295. <div
  14296. @click="
  14297. exitGroup(
  14298. groupStudent[toolindex][gindex] &&
  14299. groupStudent[toolindex][gindex][
  14300. groupStudentUid[toolindex][gindex].indexOf(userid)
  14301. ].id
  14302. )
  14303. "
  14304. v-else-if="
  14305. groupStudentUid[toolindex] &&
  14306. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14307. "
  14308. >
  14309. {{ lang.ssExitGroup }}
  14310. </div>
  14311. </div>
  14312. </div>
  14313. <div class="g_d_group_chair2">
  14314. <div v-if="groupJson.number > 3">
  14315. <span
  14316. :class="{
  14317. isChair:
  14318. groupStudent[toolindex][gindex] &&
  14319. groupStudent[toolindex][gindex][3],
  14320. updateChair:
  14321. courseDetail.userid == userid &&
  14322. groupStudent[toolindex][gindex] &&
  14323. groupStudent[toolindex][gindex][3] &&
  14324. groupJson.islock == 2,
  14325. }"
  14326. ><span
  14327. class="updateChairBtn"
  14328. @click="
  14329. updateGroupChair(
  14330. groupStudent[toolindex][gindex] &&
  14331. groupStudent[toolindex][gindex][3]
  14332. )
  14333. "
  14334. >{{ lang.ssModify }}</span
  14335. ></span
  14336. ><span>{{
  14337. groupStudent[toolindex][gindex] &&
  14338. groupStudent[toolindex][gindex][3]
  14339. ? groupStudent[toolindex][gindex] &&
  14340. groupStudent[toolindex][gindex][3].name
  14341. : lang.ssEmptyPosition
  14342. }}</span>
  14343. </div>
  14344. <div v-if="groupJson.number > 7">
  14345. <span
  14346. :class="{
  14347. isChair:
  14348. groupStudent[toolindex][gindex] &&
  14349. groupStudent[toolindex][gindex][7],
  14350. updateChair:
  14351. courseDetail.userid == userid &&
  14352. groupStudent[toolindex][gindex] &&
  14353. groupStudent[toolindex][gindex][7] &&
  14354. groupJson.islock == 2,
  14355. }"
  14356. ><span
  14357. class="updateChairBtn"
  14358. @click="
  14359. updateGroupChair(
  14360. groupStudent[toolindex][gindex] &&
  14361. groupStudent[toolindex][gindex][7]
  14362. )
  14363. "
  14364. >{{ lang.ssModify }}</span
  14365. ></span
  14366. ><span>{{
  14367. groupStudent[toolindex][gindex] &&
  14368. groupStudent[toolindex][gindex][7]
  14369. ? groupStudent[toolindex][gindex] &&
  14370. groupStudent[toolindex][gindex][7].name
  14371. : lang.ssEmptyPosition
  14372. }}</span>
  14373. </div>
  14374. </div>
  14375. </div>
  14376. <div class="g_d_group_chair">
  14377. <div v-if="groupJson.number > 1">
  14378. <span
  14379. :class="{
  14380. isChair:
  14381. groupStudent[toolindex][gindex] &&
  14382. groupStudent[toolindex][gindex][1],
  14383. updateChair:
  14384. courseDetail.userid == userid &&
  14385. groupStudent[toolindex][gindex] &&
  14386. groupStudent[toolindex][gindex][1] &&
  14387. groupJson.islock == 2,
  14388. }"
  14389. ><span
  14390. class="updateChairBtn"
  14391. @click="
  14392. updateGroupChair(
  14393. groupStudent[toolindex][gindex] &&
  14394. groupStudent[toolindex][gindex][1]
  14395. )
  14396. "
  14397. >{{ lang.ssModify }}</span
  14398. ></span
  14399. ><span>{{
  14400. groupStudent[toolindex][gindex] &&
  14401. groupStudent[toolindex][gindex][1]
  14402. ? groupStudent[toolindex][gindex] &&
  14403. groupStudent[toolindex][gindex][1].name
  14404. : lang.ssEmptyPosition
  14405. }}</span>
  14406. </div>
  14407. <div v-if="groupJson.number > 5">
  14408. <span
  14409. :class="{
  14410. isChair:
  14411. groupStudent[toolindex][gindex] &&
  14412. groupStudent[toolindex][gindex][5],
  14413. updateChair:
  14414. courseDetail.userid == userid &&
  14415. groupStudent[toolindex][gindex] &&
  14416. groupStudent[toolindex][gindex][5] &&
  14417. groupJson.islock == 2,
  14418. }"
  14419. ><span
  14420. class="updateChairBtn"
  14421. @click="
  14422. updateGroupChair(
  14423. groupStudent[toolindex][gindex] &&
  14424. groupStudent[toolindex][gindex][5]
  14425. )
  14426. "
  14427. >{{ lang.ssModify }}</span
  14428. ></span
  14429. ><span>{{
  14430. groupStudent[toolindex][gindex] &&
  14431. groupStudent[toolindex][gindex][5]
  14432. ? groupStudent[toolindex][gindex] &&
  14433. groupStudent[toolindex][gindex][5].name
  14434. : lang.ssEmptyPosition
  14435. }}</span>
  14436. </div>
  14437. <div v-if="groupJson.number > 9">
  14438. <span
  14439. :class="{
  14440. isChair:
  14441. groupStudent[toolindex][gindex] &&
  14442. groupStudent[toolindex][gindex][9],
  14443. updateChair:
  14444. courseDetail.userid == userid &&
  14445. groupStudent[toolindex][gindex] &&
  14446. groupStudent[toolindex][gindex][9] &&
  14447. groupJson.islock == 2,
  14448. }"
  14449. ><span
  14450. class="updateChairBtn"
  14451. @click="
  14452. updateGroupChair(
  14453. groupStudent[toolindex][gindex] &&
  14454. groupStudent[toolindex][gindex][9]
  14455. )
  14456. "
  14457. >{{ lang.ssModify }}</span
  14458. ></span
  14459. ><span>{{
  14460. groupStudent[toolindex][gindex] &&
  14461. groupStudent[toolindex][gindex][9]
  14462. ? groupStudent[toolindex][gindex] &&
  14463. groupStudent[toolindex][gindex][9].name
  14464. : lang.ssEmptyPosition
  14465. }}</span>
  14466. </div>
  14467. </div>
  14468. </div>
  14469. </div>
  14470. </div>
  14471. </div>
  14472. <span slot="footer" class="dialog-footer">
  14473. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14474. </span>
  14475. </el-dialog>
  14476. <el-dialog
  14477. :title="lang.ssGroupSetting"
  14478. :visible.sync="dialogVisibleGroup2"
  14479. :append-to-body="true"
  14480. width="650px"
  14481. :before-close="handleClose"
  14482. class="dialog_diy"
  14483. >
  14484. <div class="groupBox">
  14485. <div v-if="groupJson2.group" class="groupContent">
  14486. <div class="groupTitle">{{ lang.ssSetGroupCountAndName }}</div>
  14487. <div
  14488. v-for="(item, index) in groupJson2.group"
  14489. :key="index"
  14490. class="groupName"
  14491. >
  14492. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  14493. <el-input
  14494. v-model="item.name"
  14495. :placeholder="lang.ssEnterName"
  14496. style="width: 250px"
  14497. ></el-input>
  14498. <!-- <div class="groupBtn">
  14499. <el-button type="primary" size="small" @click="addGroup(index)">
  14500. {{ lang.ssAdd }}</el-button>
  14501. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14502. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14503. </div> -->
  14504. </div>
  14505. </div>
  14506. <div class="groupContent">
  14507. <div class="groupTitle">{{ lang.ssSetGroupMemberCount }}</div>
  14508. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14509. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14510. <el-input
  14511. v-model="groupJson2.number"
  14512. style="width: 150px"
  14513. :placeholder="lang.ssEnterNumber2To10"
  14514. @change="numberPan"
  14515. ></el-input>
  14516. </div>
  14517. </div>
  14518. <span slot="footer" class="dialog-footer">
  14519. <el-button @click="dialogVisibleGroup2 = false">{{ lang.ssCancel }}</el-button>
  14520. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  14521. </span>
  14522. </el-dialog>
  14523. <el-dialog
  14524. :title="lang.ssHomework"
  14525. :visible.sync="dialogVisibleGroupWork"
  14526. :append-to-body="true"
  14527. width="500px"
  14528. :before-close="handleClose"
  14529. class="dialog_change"
  14530. >
  14531. <div class="marginT">
  14532. <div>{{ lang.ssUpFile }}</div>
  14533. <div
  14534. class="chapter_add"
  14535. @click="addImg($event)"
  14536. v-if="studyJuri[0].cover.length == 0"
  14537. >
  14538. <div class="up_photo">
  14539. <img src="../../assets/icon/uploadImg.png" alt />
  14540. </div>
  14541. <!-- <input
  14542. type="file"
  14543. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14544. style="display: none"
  14545. @change="beforeUpload1($event, 1)"
  14546. /> -->
  14547. <input
  14548. type="file"
  14549. accept="*"
  14550. style="display: none"
  14551. @change="beforeUpload1($event, 1)"
  14552. />
  14553. </div>
  14554. <!-- capture="camera" -->
  14555. <div
  14556. class="chapter_add"
  14557. style="
  14558. display: flex;
  14559. width: 100%;
  14560. flex-direction: row;
  14561. flex-wrap: wrap;
  14562. justify-content: flex-start;
  14563. padding: 15px 0;
  14564. "
  14565. v-if="studyJuri[0].cover.length > 0"
  14566. >
  14567. <div class="upCover">
  14568. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14569. <img :src="word" alt v-else-if="fileType == 1" />
  14570. <img :src="video" alt v-else-if="fileType == 2" />
  14571. <img :src="word2" alt v-else-if="fileType == 3" />
  14572. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14573. <div class="deleteWord" @click="clean(1)">
  14574. <img src="../../assets/icon/deleteWorks.png" alt />
  14575. </div>
  14576. </div>
  14577. </div>
  14578. </div>
  14579. <div
  14580. class="upload_send"
  14581. @click="addCourseWorks2(taskCount)"
  14582. v-if="!proVisible"
  14583. >
  14584. {{ lang.ssSubmit }}
  14585. </div>
  14586. </el-dialog>
  14587. <el-dialog
  14588. :title="lang.ssModifyGroup"
  14589. :visible.sync="dialogVisibleUpdateGroup"
  14590. :append-to-body="true"
  14591. width="350px"
  14592. :before-close="handleClose"
  14593. class="dialog_diy"
  14594. >
  14595. <div>
  14596. <h2>
  14597. {{ this.updateGroupUser.name }}
  14598. </h2>
  14599. <div style="color: rgb(171 171 171); margin-top: 10px">
  14600. {{ lang.ssSelectGroupToJoin }}
  14601. </div>
  14602. <el-radio-group v-model="checkChair">
  14603. <el-radio
  14604. style="display: block; margin-top: 20px"
  14605. v-for="(item, index) in updateGroupArray"
  14606. :label="item.label"
  14607. :key="index"
  14608. >{{ item.name }}</el-radio
  14609. >
  14610. </el-radio-group>
  14611. </div>
  14612. <span slot="footer" class="dialog-footer">
  14613. <el-button @click="dialogVisibleUpdateGroup = false">{{ lang.ssCancel }}</el-button>
  14614. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  14615. </span>
  14616. </el-dialog>
  14617. <el-dialog
  14618. :title="lang.ssRemoveMember"
  14619. :visible.sync="dialogVisibleDeleteGroup"
  14620. :append-to-body="true"
  14621. width="350px"
  14622. :before-close="handleClose"
  14623. class="dialog_diy"
  14624. >
  14625. <div>
  14626. <h2>
  14627. {{ this.deleteGroupArray.name }}
  14628. </h2>
  14629. <div style="color: rgb(171 171 171); margin-top: 10px">
  14630. {{ lang.ssSelectMemberToDelete }}
  14631. </div>
  14632. <el-checkbox-group v-model="checkDeleteGroup">
  14633. <el-checkbox
  14634. style="display: flex; margin-top: 20px"
  14635. v-for="(item, index) in deleteGroupUser"
  14636. :label="item.userid"
  14637. :key="index"
  14638. >{{ item.name }}</el-checkbox
  14639. >
  14640. </el-checkbox-group>
  14641. </div>
  14642. <span slot="footer" class="dialog-footer">
  14643. <el-button @click="dialogVisibleDeleteGroup = false">{{ lang.ssCancel }}</el-button>
  14644. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  14645. </span>
  14646. </el-dialog>
  14647. <el-dialog
  14648. :title="lang.ssBatchUpload"
  14649. :visible.sync="dialogVisiblePl"
  14650. :append-to-body="true"
  14651. width="700px"
  14652. :before-close="handleClose"
  14653. class="dialog_change"
  14654. >
  14655. <div class="marginT">
  14656. <div class="plworkBox">
  14657. <div
  14658. class="chapter_add"
  14659. style="
  14660. display: flex;
  14661. width: 150px;
  14662. flex-direction: row;
  14663. flex-wrap: wrap;
  14664. justify-content: flex-start;
  14665. margin: 0 10px 10px 0;
  14666. "
  14667. v-for="(item, index) in plworkFile"
  14668. :key="index"
  14669. >
  14670. <div class="upCover2">
  14671. <img
  14672. :src="item.url"
  14673. alt
  14674. v-if="item.fileType == 1"
  14675. @click="previewImg(item.url)"
  14676. />
  14677. <img :src="word" alt v-else-if="item.fileType == 4" />
  14678. <img :src="video" alt v-else />
  14679. <!-- <span class="picName">{{ item.name }}</span> -->
  14680. <!-- <el-input
  14681. v-model="item.username"
  14682. :placeholder="lang.ssEnterStudentNamePlaceholder"
  14683. style="margin-top: 10px"
  14684. ></el-input> -->
  14685. <div
  14686. class="pl_select_box"
  14687. @click="
  14688. getUpdateMore(true, checkUpload(), item.username, index)
  14689. "
  14690. >
  14691. {{ getSName(item.username) }}
  14692. </div>
  14693. <!-- <el-select
  14694. style="margin-top: 10px"
  14695. v-model="item.username"
  14696. filterable
  14697. allow-create
  14698. :placeholder="lang.ssSelectStudentPlaceholder"
  14699. >
  14700. <el-option
  14701. v-for="item1 in checkUpload()"
  14702. :key="item1.userid"
  14703. :label="item1.name ? item1.name : item1.username"
  14704. :value="item1.userid"
  14705. >
  14706. </el-option>
  14707. </el-select> -->
  14708. <div class="deleteWord" @click="clean2(index)">
  14709. <img src="../../assets/icon/deleteWorks.png" alt />
  14710. </div>
  14711. </div>
  14712. </div>
  14713. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14714. <div class="up_photo2">
  14715. <img src="../../assets/icon/plwork.png" alt />
  14716. <span>{{ lang.ssClickUploadFile }}</span>
  14717. </div>
  14718. <input
  14719. type="file"
  14720. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14721. multiple="multiple"
  14722. style="display: none"
  14723. @change="beforeUpload3($event, 6)"
  14724. />
  14725. </div>
  14726. </div>
  14727. </div>
  14728. <!-- capture="camera" -->
  14729. <div
  14730. class="upload_send"
  14731. @click="addCourseWorksPl(taskCount)"
  14732. v-if="!proVisible2"
  14733. >
  14734. {{ lang.ssSubmit }}
  14735. </div>
  14736. </el-dialog>
  14737. <el-dialog
  14738. :title="lang.ssModifyName"
  14739. :visible.sync="dialogVisibleSname"
  14740. width="500px"
  14741. :before-close="handleClose"
  14742. class="dialog_diy"
  14743. center
  14744. >
  14745. <div
  14746. style="
  14747. text-align: center;
  14748. display: flex;
  14749. align-items: center;
  14750. justify-content: center;
  14751. "
  14752. >
  14753. <span class="tian1">{{ lang.ssName }}</span>
  14754. <div
  14755. class="pl_select_box"
  14756. style="margin-left: 10px; width: 200px"
  14757. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14758. >
  14759. {{ getSName(worksSName) }}
  14760. </div>
  14761. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14762. :placeholder="lang.ssSelectStudentPlaceholder">
  14763. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14764. :value="item.userid">
  14765. </el-option>
  14766. </el-select> -->
  14767. <!-- <el-input
  14768. v-model="worksSName"
  14769. style="width: 250px; margin: 15px 0px"
  14770. ></el-input> -->
  14771. </div>
  14772. <span slot="footer" class="dialog-footer">
  14773. <el-button @click="dialogVisibleSname = false">{{ lang.ssCancel }}</el-button>
  14774. <el-button type="primary" @click="updateName">{{ lang.ssConfirm }}</el-button>
  14775. </span>
  14776. </el-dialog>
  14777. <el-dialog
  14778. :title="lang.ssEnglishWrite"
  14779. :visible.sync="engDialogVisible"
  14780. :append-to-body="true"
  14781. width="800px"
  14782. :before-close="handleClose"
  14783. class="dialog_diy"
  14784. >
  14785. <onlineWrite
  14786. v-if="engDialogVisible"
  14787. :englishList="englishList"
  14788. :myAnswerList1="myAnswerList1"
  14789. ref="engJson"
  14790. ></onlineWrite>
  14791. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14792. <el-button @click="engDialogVisible = false">{{ lang.ssCancelBtn }}</el-button>
  14793. <el-button type="primary" @click="addEnglishWork">{{ lang.ssConfirmBtn }}</el-button>
  14794. </span>
  14795. </el-dialog>
  14796. <el-dialog
  14797. :title="lang.ssEnglishWrite"
  14798. :visible.sync="engUpdateDialogVisible"
  14799. :append-to-body="true"
  14800. width="800px"
  14801. :before-close="handleClose"
  14802. class="dialog_diy fullStyle"
  14803. >
  14804. <div class="engUpBox">
  14805. <div class="engUpTop">
  14806. <div class="engTitle">
  14807. <div>{{ lang.ssEssayTitle }}</div>
  14808. <div>{{ englishList1.engTitle }}</div>
  14809. </div>
  14810. <div class="engText">
  14811. <div>{{ lang.ssEssayContent }}</div>
  14812. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  14813. </div>
  14814. </div>
  14815. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  14816. <div class="oldBox">
  14817. <div class="oldMes">{{ lang.ssOriginalAuthor }}{{ noteName }} )</div>
  14818. <div class="oldText">
  14819. <div class="detailBox">
  14820. <div class="oldDetail">
  14821. <div>{{ lang.ssTitleColon }}</div>
  14822. <div>{{ oldEnglishJson.engTitle }} </div>
  14823. </div>
  14824. <div class="oldDetail1">
  14825. <div>{{ lang.ssContentColon }}</div>
  14826. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  14827. </div>
  14828. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  14829. <div>{{ lang.ssImageColon }}</div>
  14830. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  14831. </div>
  14832. </div>
  14833. </div>
  14834. </div>
  14835. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  14836. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  14837. <div class="oldText">
  14838. <div class="detailBox" style="position: relative;">
  14839. <div class="oldDetail">
  14840. <div>{{ lang.ssTitleColon }}</div>
  14841. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14842. <div v-else v-html="newEnglishList.engTitle"></div>
  14843. </div>
  14844. <div class="oldDetail">
  14845. <div>{{ lang.ssContentColon }}</div>
  14846. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14847. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14848. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14849. </div>
  14850. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14851. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14852. <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>
  14853. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14854. </div>
  14855. </div>
  14856. </div>
  14857. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  14858. <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">
  14859. <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>
  14860. <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>
  14861. </div>
  14862. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  14863. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  14864. <div class="detailBox" style="position: relative;">
  14865. <div class="oldDetail">
  14866. <div>{{ lang.ssTitleColon }}</div>
  14867. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  14868. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  14869. </div>
  14870. <div class="oldDetail">
  14871. <div>{{ lang.ssContentColon }}</div>
  14872. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  14873. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  14874. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  14875. </div>
  14876. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14877. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14878. <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>
  14879. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14880. </div>
  14881. </div>
  14882. <div class="oldText" v-else-if="newEngIndex == -1">
  14883. <div class="detailBox" style="position: relative;">
  14884. <div class="oldDetail">
  14885. <div>{{ lang.ssTitleColon }}</div>
  14886. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  14887. <div v-else v-html="newEnglishList.engTitle"></div>
  14888. </div>
  14889. <div class="oldDetail">
  14890. <div>{{ lang.ssContentColon }}</div>
  14891. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  14892. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  14893. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  14894. </div>
  14895. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14896. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button>
  14897. <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>
  14898. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14899. </div>
  14900. </div>
  14901. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  14902. <div class="detailBox" style="position: relative;">
  14903. <div class="oldDetail">
  14904. <div>{{ lang.ssTitleColon }}</div>
  14905. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14906. <div v-else>
  14907. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  14908. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  14909. </div>
  14910. </div>
  14911. <div class="oldDetail">
  14912. <div>{{ lang.ssContentColon }}</div>
  14913. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  14914. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14915. <div v-else>
  14916. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  14917. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  14918. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  14919. </div>
  14920. </div>
  14921. <div style="position: absolute;bottom: -25px;">{{ lang.ssNoteRedDeleteGreenAdd }}</div>
  14922. <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>
  14923. <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>
  14924. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">{{ lang.ssConfirm }}</el-button>
  14925. </div>
  14926. </div>
  14927. </div>
  14928. </div>
  14929. </div>
  14930. <span slot="footer" class="dialog-footer">
  14931. <el-button @click="engUpdateDialogVisible = false">{{ lang.ssCancelBtn }}</el-button>
  14932. <el-button type="primary" @click="addCorrect">{{ lang.ssConfirmBtn }}</el-button>
  14933. </span>
  14934. </el-dialog>
  14935. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  14936. <interVideo
  14937. :dialogVisibleVideo.sync="dialogVisibleVideo"
  14938. :videoJson="videoJson"
  14939. :userid="userid"
  14940. :id="id"
  14941. :courseType="courseType"
  14942. :taskCount="taskCount"
  14943. :toolindex="toolindex"
  14944. :videoType="videoType"
  14945. ></interVideo>
  14946. <UpdateMore
  14947. :dialogVisibleMember.sync="dialogVisibleMember"
  14948. :cList="uploadStudentJuri"
  14949. :userid="userid"
  14950. :searchTN="worksSName2"
  14951. @setPlname="setPlname"
  14952. ></UpdateMore>
  14953. <!-- <wordCloud
  14954. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  14955. :data="wordCloudData"
  14956. ></wordCloud> -->
  14957. <el-dialog
  14958. :title="lang.ssWordCloud"
  14959. :visible.sync="dialogVisibleWordCloud"
  14960. width="30%"
  14961. class="dialog_diy"
  14962. :before-close="handleClose">
  14963. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  14964. </el-dialog>
  14965. <el-dialog
  14966. :title="lang.ssPickPerson"
  14967. :visible.sync="dialogVisiblePickPeople"
  14968. width="650px"
  14969. :before-close="handleClose"
  14970. class="dialog_diy"
  14971. center
  14972. >
  14973. <div class="pick_box">
  14974. <div
  14975. class="noWorksName"
  14976. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  14977. v-for="(item, index) in uploadStudentJuri"
  14978. :key="index"
  14979. @click="pickStudent(item)"
  14980. >
  14981. {{ item.name }}
  14982. </div>
  14983. </div>
  14984. </el-dialog>
  14985. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  14986. :englishVoiceJson='englishVoiceJson'
  14987. :userid="userid"
  14988. :id="id"
  14989. :courseType="courseType"
  14990. :taskCount="taskCount"
  14991. :toolindex="toolindex"
  14992. @selectSWorks="selectSWorks"
  14993. @selectStudent="selectStudent"
  14994. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  14995. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  14996. :userid="userid"
  14997. :dialogVisibleENScore.sync='dialogVisibleENScore'
  14998. :commentDetail="commentDetail"
  14999. :courseDetail="courseDetail"
  15000. :wScore="wScore"
  15001. :scoreDetail="scoreDetail"
  15002. @selectSWorks="selectSWorks"
  15003. @selectStudent="selectStudent"></checkEnglishVoice>
  15004. <el-dialog
  15005. :title="lang.ssTeacherScoring"
  15006. :visible.sync="markScoreVisible"
  15007. :append-to-body="true"
  15008. width="1000px"
  15009. :fullscreen="markfullscreen"
  15010. :before-close="markScorehandleClose"
  15011. class="markScore_diy"
  15012. >
  15013. <div slot="title">
  15014. <div class="markScore_diyTit">
  15015. <div>{{ tType == 1 ? lang.ssTeacherScoring : lang.ssHomeworkDialog }}</div>
  15016. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15017. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15018. </div>
  15019. </div>
  15020. </div>
  15021. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15022. <!-- @updateDocSco="updateDocSco" -->
  15023. <markDialog
  15024. :key="markScoreVisible.toString()"
  15025. :uid="markScoreUid"
  15026. :toolIndex="markScoretoolIndex"
  15027. :stage="courseType"
  15028. :task="taskCount"
  15029. :taskDetail="
  15030. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15031. "
  15032. :tool="toolListS"
  15033. :languageSetting="languageSetting"
  15034. :scoTit="markScoreTit"
  15035. :tType="tType"
  15036. :sIsOpen="sIsOpen"
  15037. :markScoreworksStudent="markScoreworksStudent"
  15038. :markScoreVisible="markScoreVisible"
  15039. ></markDialog>
  15040. </el-dialog>
  15041. <!-- 查看Txt,md等文件 -->
  15042. <el-dialog
  15043. :title="lang.ssFilePreview"
  15044. :visible.sync="dialogVisibleTxt"
  15045. width="50%"
  15046. :before-close="handleCloseTxt"
  15047. class="dialog_diy"
  15048. :class="{ fullStyle: full }"
  15049. >
  15050. <div slot="title" class="header-title">
  15051. <div style="color: #fff">{{ lang.ssFilePreview }}</div>
  15052. <div style="position: absolute; top: 19px; right: 50px">
  15053. <img
  15054. src="../../assets/full.png"
  15055. style="height: 16px; cursor: pointer"
  15056. alt=""
  15057. @click="fullTools"
  15058. />
  15059. </div>
  15060. </div>
  15061. <div>{{ TxtMd }}</div>
  15062. </el-dialog>
  15063. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15064. <choseWorksDetailDialog
  15065. ref="choseWorksDetailDialogRef"
  15066. :worksStudentData="worksStudent"
  15067. :noWorksSData="noWorksS"
  15068. :chapInfoListData="chapInfoList"
  15069. :courseType="courseType"
  15070. :taskCount="taskCount"
  15071. :tType="tType"
  15072. :sIsOpen="sIsOpen"
  15073. :courseDetail="courseDetail"
  15074. :groupStudent2="groupStudent"
  15075. :groupStudentUid2="groupStudentUid"
  15076. :oid="oid"
  15077. :org="org"
  15078. @getCourseDetail="getCourseDetail"
  15079. @selectSLook="selectSLook"
  15080. @selectSWorks="selectSWorks"
  15081. @selectStudent="selectStudent"
  15082. @openWord="openWord"
  15083. @openScore="openScore"
  15084. @deleteWorks="deleteWorks"
  15085. @openTools="openTools"
  15086. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15087. />
  15088. <el-dialog
  15089. :visible.sync="confirmOpenDig"
  15090. width="500px"
  15091. :modal="false"
  15092. class="confirmOpenDigCss dialog_diyCopy"
  15093. :before-close="handleClose">
  15094. <div style="display: flex;align-items: center;">
  15095. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15096. <span>"{{ courseDetail.title }}"{{ lang.ssCourseStarted }}</span>
  15097. </div>
  15098. <div style="margin: 20px 0 35px;">
  15099. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherLearning }}</div>
  15100. <div>{{ lang.ssStudyHard }}</div>
  15101. </div>
  15102. <div style="text-align: center;">
  15103. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  15104. </div>
  15105. </el-dialog>
  15106. <appStoreC ref="appStoreC"
  15107. :sStudent="sStudent"
  15108. :courseType="courseType"
  15109. :taskCount="taskCount"
  15110. :toolindex="toolindex"
  15111. @selectSWorks="selectSWorks"
  15112. @selectStudent="selectStudent"
  15113. ></appStoreC>
  15114. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15115. </div>
  15116. </template>
  15117. <script>
  15118. import "../../common/aws-sdk-2.235.1.min.js";
  15119. // import pdf from "../components/pdf3";
  15120. import pdf from "../components/vpdf";
  15121. import AskStatic from "../components/askStatic";
  15122. import AskStatic2 from "../components/askStatic2";
  15123. import AnswerData2 from "../components/answerData2";
  15124. import AnswerData from "../components/answerData";
  15125. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15126. import EditorBar from "../tools/wangEnduit.vue";
  15127. import Table from "../tools/table.vue";
  15128. import Time from "../tools/time.vue";
  15129. import Mind from "../tools/jsmind.vue";
  15130. import Sunburst from "../tools/sunburst";
  15131. import SeeBoard from "../tools/seeBoard";
  15132. import * as imageConversion from "image-conversion";
  15133. import Audio from "../components/audio.vue";
  15134. import ImgDraw from "../tools/imgDraw/imgDraw";
  15135. import { Empty } from "element-ui";
  15136. import RecordRTC from "recordrtc";
  15137. import interVideo from "../interVideo/index.vue";
  15138. import UpdateMore from "../updateMore/updateMore.vue";
  15139. import wordCloud from "../wordCloud/index.vue";
  15140. import axios from "axios";
  15141. import JSZip from "jszip";
  15142. import FileSaver from "file-saver";
  15143. import onlineWrite from "./commpont/onlineWrite";
  15144. import englishEva from "../components/englishEva";
  15145. import * as Diff from 'diff'
  15146. import EnglishVoice from '../EnglishVoice2/index.vue'
  15147. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15148. import correctText from '../components/correctText.vue'
  15149. import scoreItem from '../scoreList/scoreItem.vue'
  15150. import scoreZong from '../scoreZong/index.vue'
  15151. import classRoomHelper from '../classRoomHelper/index.vue'
  15152. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15153. import MarkdownIt from "markdown-it";
  15154. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15155. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15156. import { v4 as uuidv4 } from "uuid";
  15157. import markScore from "../easy2/commpont/markScore";
  15158. import markDialog from "../easy2/commpont/markDialog";
  15159. import evaTable from "../easy2/commpont/evaTable";
  15160. import choseWordCloud from '../components/choseWordCloud.vue'
  15161. import appStoreC from "../components/appStoreC.vue";
  15162. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15163. import { myMixin } from "@/mixins/mixin.js"
  15164. import { tools as toolsList } from "@/common/tools2.js";
  15165. import katex from 'katex'
  15166. import 'katex/dist/katex.min.css'
  15167. var OpenCC = require("opencc-js");
  15168. let converter = OpenCC.Converter({
  15169. from: "hk",
  15170. to: "cn"
  15171. });
  15172. const getFile = (url) => {
  15173. return new Promise((resolve, reject) => {
  15174. var credentials = {
  15175. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15176. secretAccessKey: "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",
  15177. }; //秘钥形式的登录上传
  15178. window.AWS.config.update(credentials);
  15179. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15180. let url2 = url;
  15181. let _url2 = "";
  15182. if (
  15183. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15184. ) {
  15185. _url2 = url2.split(
  15186. "https://view.officeapps.live.com/op/view.aspx?src="
  15187. )[1];
  15188. } else {
  15189. _url2 = url2;
  15190. }
  15191. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15192. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15193. var params = {
  15194. Bucket: "ccrb",
  15195. Key: name
  15196. };
  15197. s3.getObject(params, function (err, data) {
  15198. if (err) {
  15199. console.log(err, err.stack)
  15200. resolve({ data: 1 });
  15201. }else {
  15202. resolve({ data: data.Body });
  15203. console.log(data);
  15204. } // sxuccessful response
  15205. });
  15206. // axios({
  15207. // method: "get",
  15208. // url,
  15209. // responseType: "blob",
  15210. // })
  15211. // .then((data) => {
  15212. // resolve({ data: data.data });
  15213. // })
  15214. // .catch((error) => {
  15215. // resolve({ data: 1 });
  15216. // // reject(error.toString());
  15217. // });
  15218. });
  15219. };
  15220. export default {
  15221. mixins: [ myMixin ],
  15222. components: {
  15223. choseWordCloud,
  15224. EditorBar,
  15225. Time,
  15226. pdf,
  15227. AskStatic,
  15228. AskStatic2,
  15229. Mind,
  15230. Sunburst,
  15231. SeeBoard,
  15232. AnswerData2,
  15233. AnswerData,
  15234. sortToolWorkShow,
  15235. Audio,
  15236. ImgDraw,
  15237. Table,
  15238. interVideo,
  15239. UpdateMore,
  15240. wordCloud,
  15241. onlineWrite,
  15242. englishEva,
  15243. EnglishVoice,
  15244. checkEnglishVoice,
  15245. correctText,
  15246. scoreItem,
  15247. classRoomHelper,
  15248. scoreZong,
  15249. markScore,
  15250. markDialog,
  15251. evaTable,
  15252. statisticalAnalysis,
  15253. choseWorksDetailDialog,
  15254. appStoreC,
  15255. cocoFlowDia,
  15256. studentClassRoomHelper
  15257. },
  15258. data() {
  15259. return {
  15260. // 学校或者组织随机码
  15261. Code2:'',
  15262. // 是否允许学生查看内容资料 2不可以 1可以
  15263. IsStulook:false,
  15264. homeWorkLoading:false,
  15265. toolsList: toolsList,
  15266. wordCloudKey: 0,
  15267. bg: null,
  15268. drawShow: false,
  15269. dialogVisible: false,
  15270. dialogVisiblePl: false,
  15271. commentDialogVisible: false,
  15272. dialogVisibleMember: false,
  15273. dialogVisibleWordCloud: false,
  15274. videoVisible: false,
  15275. isStar: false,
  15276. studentEvalDialogVisible: false,
  15277. studentEvalDialogVisibleTeacher: false,
  15278. dialogVisibleSelect: false,
  15279. dialogVisibleSelectTeacher: false,
  15280. dialogVisibleScore: false,
  15281. dialogVisibleENScore: false,
  15282. dialogVisibleSentence: false,
  15283. dialogVisibleSentenceTeacher: false,
  15284. dialogVisibleSentence1: false,
  15285. dialogVisibleWorks: false,
  15286. dialogVisibleTable: false,
  15287. dialogVisibleTableTeacher: false,
  15288. dialogVisibleWord: false,
  15289. dialogVisibleWordTeacher: false,
  15290. dialogVisibleTable2: false,
  15291. dialogVisibleTable3: false,
  15292. dialogVisibleGroupWork: false,
  15293. dialogVisibleUpdateGroup: false,
  15294. dialogVisibleDeleteGroup: false,
  15295. dialogVisibleSname: false,
  15296. dialogVisibleVideo: false,
  15297. dialogVisiblePickPeople: false,
  15298. worksSName: "",
  15299. classJuri: [],
  15300. uploadStudentJuri: [],
  15301. uploadCid: "",
  15302. snameWid: "",
  15303. sStudent: {},
  15304. sTool: "",
  15305. bzText: "",
  15306. commentDetail: [],
  15307. selectAnswer: [],
  15308. videoDetail: {},
  15309. selectJson: {},
  15310. eScore: { eBzText: "", eStar: [] },
  15311. id: this.$route.query.courseId,
  15312. userid: this.$route.query.userid,
  15313. classId: this.$route.query.cid,
  15314. role: this.$route.query.role,
  15315. // courseTypeLine: this.$route.query.type,
  15316. oid: this.$route.query.oid,
  15317. org: this.$route.query.org,
  15318. tType: this.$route.query.tType,
  15319. courseType: this.$route.query.type,
  15320. screenType: this.$route.query.screenType,
  15321. tcid2: this.$route.query.tcid,
  15322. tcid: "",
  15323. pptImgUrl: "",
  15324. pptImgUrl1: "",
  15325. commentText: "",
  15326. full: false,
  15327. sIsOpen: false,
  15328. IsLookOpen: false,
  15329. IsFollow: false,
  15330. pzDialog: false,
  15331. contentDialog: false,
  15332. mlDialog: false,
  15333. type: 1,
  15334. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15335. sentenceList1: [],
  15336. tableJson: [],
  15337. tableJsonO: [],
  15338. wordJson: [],
  15339. wordJsonO: [],
  15340. vedio: [],
  15341. text: [],
  15342. textList: [],
  15343. line: [],
  15344. lineList: [],
  15345. chapTools: [],
  15346. chapToolList: [],
  15347. file: [],
  15348. fileC: [],
  15349. vedioTime: [],
  15350. upToolImg: "",
  15351. preTime: 0,
  15352. rateList: {
  15353. ca: 0,
  15354. },
  15355. rateParams: [],
  15356. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15357. studyJuri: [
  15358. {
  15359. content: "",
  15360. cover: [],
  15361. upVedio: [],
  15362. upFile: [],
  15363. },
  15364. ],
  15365. isClose: 0,
  15366. plworkFile: [],
  15367. mr: require("../../assets/vedioPic.png"),
  15368. word: require("../../assets/icon/isWord.png"),
  15369. word2: require("../../assets/icon/word2.png"),
  15370. video: require("../../assets/icon/isVideo.png"),
  15371. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15372. likes: require("../../assets/icon/comment/likes.png"),
  15373. scoreImg: require("../../assets/score.png"),
  15374. courseDetail: {},
  15375. reply: "",
  15376. isSelect: false,
  15377. chapInfo: [],
  15378. chapInfoList: [],
  15379. taskCount: 0,
  15380. imgList: [],
  15381. noImgList: [],
  15382. pzList: [],
  15383. timeWorkList: [],
  15384. PlTextList: [
  15385. "Excellent!",
  15386. "nice!",
  15387. this.lang.ssVeryCreative,
  15388. this.lang.ssNotBad,
  15389. this.lang.ssKeepTrying,
  15390. ],
  15391. isClickNav: "",
  15392. navId: "",
  15393. playerOptions: {
  15394. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15395. autoplay: false, //如果true,浏览器准备好时开始回放。
  15396. muted: false, // 默认情况下将会消除任何音频。
  15397. loop: false, // 导致视频一结束就重新开始。
  15398. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15399. language: "zh-CN",
  15400. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15401. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15402. sources: [
  15403. {
  15404. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15405. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15406. },
  15407. ],
  15408. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15409. // poster: dataRes.imgUrl, //你的封面地址
  15410. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15411. controlBar: {
  15412. timeDivider: true, //当前时间和持续时间的分隔符
  15413. durationDisplay: true, //显示持续时间
  15414. remainingTimeDisplay: false, //是否显示剩余时间功能
  15415. fullscreenToggle: true, //全屏按钮
  15416. },
  15417. },
  15418. playerOptions1: {
  15419. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15420. autoplay: false, //如果true,浏览器准备好时开始回放。
  15421. muted: false, // 默认情况下将会消除任何音频。
  15422. loop: false, // 导致视频一结束就重新开始。
  15423. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15424. language: "zh-CN",
  15425. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15426. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15427. sources: [
  15428. {
  15429. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15430. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15431. },
  15432. ],
  15433. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15434. // poster: dataRes.imgUrl, //你的封面地址
  15435. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15436. controlBar: {
  15437. timeDivider: true, //当前时间和持续时间的分隔符
  15438. durationDisplay: true, //显示持续时间
  15439. remainingTimeDisplay: false, //是否显示剩余时间功能
  15440. fullscreenToggle: true, //全屏按钮
  15441. },
  15442. },
  15443. playerO: {},
  15444. noneBtnImg: false,
  15445. proVisible: false,
  15446. proVisible2: false,
  15447. progress: 0,
  15448. isFinishSize: 0,
  15449. isAllSize: 0,
  15450. questionAnswer: "",
  15451. answerQ: "", //问答标题
  15452. rateJson: [],
  15453. wbCount: 0,
  15454. wordCount: 0,
  15455. mindCount: 0,
  15456. askCount: 0,
  15457. noteCount: 0,
  15458. mindNetWorkCount: 0,
  15459. libraryCount: 0,
  15460. workCount: 0,
  15461. timeCount: 0,
  15462. answerCount: 0,
  15463. trainCount: 0,
  15464. evalCount: 0,
  15465. dialogImageUrl: "",
  15466. pictureDialog: false,
  15467. toolTypeList: [],
  15468. dialogVisible1: false,
  15469. dialogVisible2: false,
  15470. dialogVisible3: false,
  15471. dialogVisible6: false,
  15472. dialogVisible4: false,
  15473. isNoHomeWork: false,
  15474. dialogVisible5: false,
  15475. dialogVisible5Teacher: false,
  15476. dialogVisibleChoice: false,
  15477. dialogVisibleChoiceTeacher: false,
  15478. answerDialogVisible: false,
  15479. answerDialogVisibleTeacher: false,
  15480. juriVisible: false,
  15481. timeDialogVisible: false,
  15482. replyDialogVisible: false,
  15483. toolDialogVisible: false,
  15484. engDialogVisible: false,
  15485. engUpdateDialogVisible:false,
  15486. engEvaDialogVisible: false,
  15487. evaEngJson: {
  15488. teacherJson: {},
  15489. studentJson: {},
  15490. message: {},
  15491. },
  15492. isNoUserid:false,
  15493. engListLength:0,
  15494. engWid:"",
  15495. newEnglishList:{
  15496. engTitle:"",
  15497. engText:"",
  15498. },
  15499. newEnglishList1:[],
  15500. oldEnglishJson:{},
  15501. oldEnglishJson1:{},
  15502. englishList1:{},
  15503. englishList:{},
  15504. myAnswerList1:{},
  15505. topHeight:0,
  15506. newEngIndex:-1,
  15507. englishToolIndex:0,
  15508. userMes:{},
  15509. englishToolIndex:0,
  15510. replyIndex: 0,
  15511. replyPid: "",
  15512. radio: [],
  15513. isAsk: false,
  15514. askJson: {
  15515. askCount: 1,
  15516. askTitle: "",
  15517. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  15518. },
  15519. testJson: {},
  15520. englishList: {},
  15521. topHeight:0,
  15522. checkJson: [],
  15523. askList: [],
  15524. answerList: [],
  15525. navList: [],
  15526. addPzDialog: false,
  15527. pzConText: "",
  15528. worksStudent: [],
  15529. isCloseList: [],
  15530. workStudent: [],
  15531. groupStudent: [],
  15532. groupStudentUid: [],
  15533. noWorksS: [],
  15534. isWorksS: [],
  15535. noWorksStudent: [],
  15536. toolindex: 0,
  15537. toolDetailIndex: null,
  15538. groupIndex: 0,
  15539. workTypeB: false,
  15540. workTypeC: false,
  15541. isAnswer: false,
  15542. isHovered: false,
  15543. isHovered1: false,
  15544. isHovered2: false,
  15545. commentTagShow:0,
  15546. timer: null,
  15547. timer2: null,
  15548. opertimer: null,
  15549. showType: '',
  15550. fileType: 0,
  15551. showPDF: false,
  15552. noteName: "",
  15553. evaJuri: [],
  15554. evalua: "",
  15555. eTitle: "",
  15556. eName: "",
  15557. eJson: {},
  15558. fid: "", //一级
  15559. sid: "", //二级
  15560. tid: "", //二级
  15561. typeMode: 1,
  15562. eJSONNum: 0,
  15563. Etype: 1,
  15564. data: {
  15565. meta: {
  15566. name: "example",
  15567. author: "dd@163.com",
  15568. version: "0.2",
  15569. },
  15570. format: "node_array",
  15571. data: [{ id: "root", isroot: true, topic: "" }],
  15572. },
  15573. fullDialogVisible: false,
  15574. fulltype: "",
  15575. fullUrl: "",
  15576. commentIndexJson: {},
  15577. Stbodywidth: 0,
  15578. ispzType: 0,
  15579. pzType: 1,
  15580. wScore: 0,
  15581. scoreDetail: "",
  15582. videoStart: false,
  15583. recorder: null,
  15584. groupJson: {},
  15585. islock: false,
  15586. groupJson2: {},
  15587. dialogVisibleGroup: false,
  15588. dialogVisibleGroup2: false,
  15589. updateGroupArray: [],
  15590. updateGroupUser: {},
  15591. deleteGroupUser: [],
  15592. deleteGroupArray: {},
  15593. checkChair: "",
  15594. checkDeleteGroup: [],
  15595. inviteCode: "",
  15596. courseGroupStudent: [],
  15597. courseGroupStudentUid: [],
  15598. courseGroup: {},
  15599. isGroup: false,
  15600. toolIndex: null,
  15601. tool: {},
  15602. isWorkTool: [
  15603. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  15604. ], //, 40
  15605. videoJson: {},
  15606. videoType:0,
  15607. toolType: 0,
  15608. checktoolArray: [],
  15609. vChapterData: [],
  15610. isUpdateToolDetail: false,
  15611. isUpdateToolDetail1: false,
  15612. updateToolDetailInner: "",
  15613. checkboxList: [],
  15614. plIndex: "",
  15615. worksSName2: "",
  15616. worksSid: "",
  15617. wordCloudData: [],
  15618. isPickStudent: [],
  15619. pzStype: 1,
  15620. myAnList: {},
  15621. downLoading: false,
  15622. greyType: false,
  15623. correctWord: [],
  15624. EnglishVoiceDialog: false,
  15625. englishVoiceJson: {},
  15626. englishVoiceJsonWork:[],
  15627. scoreList:{
  15628. listdata:[],
  15629. isScoreList:[],
  15630. },
  15631. classRoomHelperWidth: '85px',
  15632. orgArray:[],
  15633. oidArray:[],
  15634. splitScreenData:{
  15635. isOpen:false,
  15636. userId:"",
  15637. uid:"",
  15638. myUid:"",
  15639. loading:false,
  15640. behavior:null,
  15641. },
  15642. confirmOpenDig:false,
  15643. confirmOpenDigData:'',
  15644. refreshKey: 0,
  15645. AIloading: [],
  15646. worksStudentCopy: [],
  15647. loopLoading: [],
  15648. markScoreVisible: false,
  15649. markScoretoolIndex: 0,
  15650. markScoreUid: "",
  15651. markScoreTit: {},
  15652. markfullscreen: false,
  15653. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15654. markScoreworksStudent: [],
  15655. finalMarkList: -1,
  15656. isaiNum: 0,
  15657. dialogVisibleTxt: false,
  15658. TxtMd: "",
  15659. languageSetting: 0, //0中文 1繁体 2英文
  15660. toolListS: [],
  15661. commentDetailCopy: "",
  15662. diffKey:"1",
  15663. getCourseGroupLoading: false,
  15664. selectSWorksLoading:false,
  15665. selectStudentLoading:false,
  15666. selectSLookLoading:false,
  15667. getPickLoading:false,
  15668. selectPzLoading:false,
  15669. getSplitScreenDataLoading:false,
  15670. };
  15671. },
  15672. watch:{
  15673. taskCount(newVal) {
  15674. console.log('newVal',newVal);
  15675. this.AIloading = [];
  15676. this.loopLoading = [];
  15677. this.worksStudent.forEach((e, index) => {
  15678. this.loopLoading.push({ loading: false });
  15679. this.AIloading.push([]);
  15680. e.forEach(k => {
  15681. this.AIloading[index].push({ loading: false, sco: 0 });
  15682. });
  15683. });
  15684. if(this.tType == 1){
  15685. this.refreshAssembly();
  15686. }
  15687. },
  15688. worksStudent: {
  15689. handler(newVal, oldVal) {
  15690. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  15691. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  15692. // console.log('worksStudent',sum1,sum2);
  15693. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  15694. this.AIloading = [];
  15695. this.loopLoading = [];
  15696. this.worksStudent.forEach((e, index) => {
  15697. this.loopLoading.push({ loading: false });
  15698. this.AIloading.push([]);
  15699. e.forEach(k => {
  15700. this.AIloading[index].push({ loading: false, sco: 0 });
  15701. });
  15702. });
  15703. if(this.tType == 1){
  15704. this.refreshAssembly();
  15705. }
  15706. }
  15707. },
  15708. deep:true,
  15709. }
  15710. },
  15711. methods: {
  15712. // 获取学校或组织随机码
  15713. getCode2(){
  15714. let params = {
  15715. oid: this.oid,
  15716. org: this.org
  15717. };
  15718. this.ajax
  15719. .get(this.$store.state.api + "getCode2", params)
  15720. .then(res => {
  15721. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  15722. })
  15723. .catch(err => {
  15724. console.error(err);
  15725. });
  15726. },
  15727. //查看应用中心作业
  15728. openCocoFlow(w){
  15729. this.$refs.cocoFlowDiaRef.openAppWork(w)
  15730. },
  15731. getAIJ() {
  15732. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15733. let oid = res.data[0];
  15734. let org = res.data[1];
  15735. let oidArray = [];
  15736. let orgArray = [];
  15737. oid.forEach(i => oidArray.push(i.oid));
  15738. org.forEach(i => orgArray.push(i.oid));
  15739. this.orgArray = orgArray;
  15740. this.oidArray = oidArray;
  15741. });
  15742. },
  15743. // 评分弹框全屏
  15744. markFullScreenBtn() {
  15745. this.markfullscreen = !this.markfullscreen;
  15746. },
  15747. insertMemorandum(_html) {
  15748. //保存行为操作
  15749. //variable
  15750. //btn
  15751. let params = [
  15752. {
  15753. uid: this.userid,
  15754. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15755. content: _html
  15756. }
  15757. ];
  15758. console.log(params);
  15759. this.ajax
  15760. .post(
  15761. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15762. params
  15763. )
  15764. .then(res => {
  15765. if (res.data == 1) {
  15766. console.log("保存操作成功");
  15767. } else {
  15768. console.log("保存操作失败");
  15769. }
  15770. })
  15771. .catch(e => {
  15772. console.log("保存操作失败");
  15773. console.log(e);
  15774. });
  15775. },
  15776. // 获取文档id
  15777. createFileid(url) {
  15778. let _this = this;
  15779. return new Promise((resolve, reject) => {
  15780. try {
  15781. _this.ajax
  15782. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15783. url: url
  15784. })
  15785. .then(res => {
  15786. let _data = res.data.FunctionResponse;
  15787. if (_data.result && _data.result.id) {
  15788. resolve(_data.result.id);
  15789. } else {
  15790. resolve(1);
  15791. }
  15792. })
  15793. .catch(function(error) {
  15794. resolve(1);
  15795. });
  15796. } catch (e) {
  15797. resolve(1);
  15798. }
  15799. });
  15800. },
  15801. // 一键重置
  15802. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15803. let jude = false;
  15804. this.AIloading.forEach((e, index) => {
  15805. if (index == toolIndex) {
  15806. e.forEach(k => {
  15807. if (k.loading == true) jude = true;
  15808. });
  15809. }
  15810. });
  15811. if (jude) return this.$message.info(this.lang.ssAIScoringInProgress);
  15812. this.$confirm(this.lang.ssConfirmReset)
  15813. .then(_ => {
  15814. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15815. })
  15816. .catch(_ => {});
  15817. },
  15818. // 一键重置
  15819. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15820. for (let index = 0; index < con.length; index++) {
  15821. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15822. }
  15823. this.$message.success(this.lang.ssResetCompleted);
  15824. this.worksStudent.forEach((e, index) => {
  15825. if (toolIndex == index) {
  15826. console.log("6666");
  15827. e.forEach((i, inx) => {
  15828. let mk = `markSco${index}${inx}`;
  15829. this.$refs[mk][0].getData();
  15830. });
  15831. }
  15832. });
  15833. },
  15834. // 一键重置
  15835. allEmptySco(uid, stage, task, toolIndex) {
  15836. let params = [
  15837. {
  15838. cid: this.id,
  15839. uid: uid,
  15840. s: stage,
  15841. t: task,
  15842. tool: toolIndex ? toolIndex : ""
  15843. }
  15844. ];
  15845. return new Promise(resolve => {
  15846. this.ajax
  15847. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  15848. .then(res => {
  15849. resolve(1);
  15850. })
  15851. .catch(err => {
  15852. console.error(err);
  15853. });
  15854. }).catch(error => {
  15855. console.log(error);
  15856. });
  15857. },
  15858. // AI评分循环打分
  15859. async loopEva(
  15860. con,
  15861. tit,
  15862. stage,
  15863. task,
  15864. toolIndex,
  15865. toolDetail,
  15866. taskDetail,
  15867. toolList
  15868. ) {
  15869. let jude = false;
  15870. this.AIloading.forEach((e, index) => {
  15871. if (index == toolIndex) {
  15872. e.forEach(k => {
  15873. if (k.loading == true) jude = true;
  15874. });
  15875. }
  15876. });
  15877. if (jude) return this.$message.info(this.lang.ssNoConcurrentAIScoring);
  15878. this.AIloading.forEach((e, index) => {
  15879. if (index == toolIndex) {
  15880. e.forEach(k => {
  15881. k.loading = true;
  15882. });
  15883. }
  15884. });
  15885. this.loopLoading[toolIndex].loading = true;
  15886. let laws = "";
  15887. let std = "";
  15888. let text = "";
  15889. if (toolList && toolList.eList && toolList.eList.length) {
  15890. for (let i = 0; i < toolList.eList.length; i++) {
  15891. if (toolList.eList[i].isai == 1) {
  15892. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  15893. }
  15894. }
  15895. for (let i = 0; i < toolList.eList.length; i++) {
  15896. if (toolList.eList[i].isai == 1) {
  15897. let a = toolList.eList[i].detail;
  15898. if (isNaN(parseFloat(a)) && a) {
  15899. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15900. } else {
  15901. var result = a;
  15902. }
  15903. std += `纬度${i}:“${result}”, \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. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15915. }
  15916. }
  15917. } else {
  15918. let titRule = 0;
  15919. let titRule2 = 0;
  15920. tit.forEach((e, index) => {
  15921. if (!e.isai) {
  15922. e.isai = 1;
  15923. }
  15924. });
  15925. tit.forEach((e, index) => {
  15926. if (e.isai == 1) {
  15927. titRule2++;
  15928. if (e.rule) {
  15929. titRule++;
  15930. }
  15931. }
  15932. });
  15933. if (titRule != titRule2) {
  15934. this.AIloading.forEach((e, index) => {
  15935. if (index == toolIndex) {
  15936. e.forEach(k => {
  15937. k.loading = false;
  15938. });
  15939. }
  15940. });
  15941. this.loopLoading[toolIndex].loading = false;
  15942. this.$message.info(this.lang.ssDetailGenerating);
  15943. return;
  15944. }
  15945. for (let i = 0; i < tit.length; i++) {
  15946. if (tit[i].isai == 1) {
  15947. laws += ` 细则${i}:${tit[i].rule}, \n`;
  15948. }
  15949. }
  15950. for (let i = 0; i < tit.length; i++) {
  15951. if (tit[i].isai == 1) {
  15952. let a = tit[i].detail;
  15953. if (isNaN(parseFloat(a)) && a) {
  15954. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  15955. } else {
  15956. var result = a;
  15957. }
  15958. std += `纬度${i}:“${result}”, \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. text += `{'${result}' : '评价等级0-5(数字)'},`;
  15970. }
  15971. }
  15972. }
  15973. let forAllList = [];
  15974. // console.log('con',con)
  15975. for (let i = 0; i < con.length; i++) {
  15976. let _fileid = "";
  15977. let wok = con[i].works;
  15978. // console.log('con',con);
  15979. // console.log('con[i].type',con[i].type);
  15980. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  15981. let a = wok.slice(wok.lastIndexOf(".") + 1);
  15982. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  15983. _fileid = await this.createFileid(con[i].works);
  15984. } else {
  15985. this.AIloading[toolIndex][i].loading = false;
  15986. continue;
  15987. }
  15988. }
  15989. // console.log('con[i].type',con[i])
  15990. // console.log('con[i].type',con[i].type)
  15991. if (_fileid == 1 || con[i].type == 3) {
  15992. this.AIloading[toolIndex][i].loading = false;
  15993. continue;
  15994. }
  15995. let msg = ''
  15996. if(con[i].type == 20){
  15997. msg = `#NOTICE#
  15998. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  15999. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16000. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16001. - 拥有客观公正的态度,确保评分结果公平合理。
  16002. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16003. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16004. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16005. Language: ${this.getLang()}
  16006. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16007. Instruction: Based on the context, follow "Format example", write content.
  16008. #目标#
  16009. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16010. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16011. #评分资料#
  16012. 评价标准:${std}
  16013. 评价细则:${laws}
  16014. 等级:${text}
  16015. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16016. 具体你步骤如下:
  16017. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16018. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16019. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16020. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16021. ### 理论框架
  16022. ### 教育目标分类理论
  16023. 1. 基本原理:
  16024. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16025. - 有助于明确教学活动期望达成的目标类型。
  16026. - 为评价教学成果提供了分类框架。
  16027. 2. 具体应用:
  16028. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16029. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16030. - 对比不同对话内容在目标达成度上的差异进行评分。
  16031. ### 教学评价理论
  16032. 1. 基本原理:
  16033. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16034. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16035. - 强调评价的客观性、全面性和发展性。
  16036. 2. 具体应用:
  16037. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16038. - 考量对话对学生学习效果的影响来给出评分。
  16039. - 根据评价结果提出改进和发展的建议。
  16040. ### 对话分析理论
  16041. 1. 基本原理:
  16042. - 着重对对话结构、话语功能、交互模式等进行分析。
  16043. - 揭示对话中的信息流动、话语权分配等情况。
  16044. - 有助于理解对话参与者之间的关系和互动效果。
  16045. 2. 具体应用:
  16046. - 剖析“小可ai助手”与学生对话的结构合理性。
  16047. - 分析话语功能是否有助于学习和评价目的。
  16048. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16049. #输出格式#
  16050. [${text}{'comment':'评语(150个汉字左右)'}]
  16051. 注意检查输出评语不超过50字`
  16052. }else{
  16053. msg = `NOTICE
  16054. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16055. Language: ${this.getLang()}
  16056. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16057. Instruction: Based on the context, follow "Format example", write content.
  16058. #目标#
  16059. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16060. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16061. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16062. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16063. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16064. #评分资料#
  16065. 评价标准:${std}
  16066. 评价细则:${laws}
  16067. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16068. 任务描述:${taskDetail}
  16069. 工具描述:${toolDetail}
  16070. #输出要求#
  16071. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16072. “评语”控制在150字左右。
  16073. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16074. #输出格式#
  16075. [${text}{'comment':'评语(150个汉字左右)'}]
  16076. `;
  16077. }
  16078. let mk = `markSco${toolIndex}${i}`;
  16079. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16080. msg,
  16081. con[i].userid,
  16082. stage,
  16083. task,
  16084. _fileid,
  16085. con[i].type
  16086. );
  16087. forAllList.push(mkAwit);
  16088. }
  16089. Promise.all(forAllList)
  16090. .then(values => {
  16091. console.log("values", values);
  16092. this.$message({
  16093. message: this.lang.ssEvaluationSuccess,
  16094. type: "success"
  16095. });
  16096. // this.refreshKey++
  16097. // this.worksStudent.forEach((e,index)=>{
  16098. // if(toolIndex == index){
  16099. // e.forEach((i,inx)=>{
  16100. // let mk = `markSco${index}${inx}`
  16101. // this.$refs[mk][0].getData()
  16102. // })
  16103. // }
  16104. // })
  16105. this.AIloading[toolIndex].forEach(e => {
  16106. e.loading = false;
  16107. });
  16108. this.loopLoading[toolIndex].loading = false;
  16109. })
  16110. .catch(reason => {
  16111. console.error("reason", reason);
  16112. // 输出“失败原因”
  16113. });
  16114. },
  16115. // 获取评价细则
  16116. againEva(i, k) {
  16117. let msg = `NOTICE
  16118. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16119. Language: ${this.getLang()}
  16120. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16121. Instruction: Based on the context, follow "Format example", write content.
  16122. #Context
  16123. ##要求
  16124. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16125. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16126. ##制定标准资料
  16127. 评价维度:${
  16128. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16129. }
  16130. 维度描述:${
  16131. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16132. }
  16133. # Format example
  16134. ==
  16135. 0 星,作业内容与作业要求无关;
  16136. 1 星,没有识别问题和需求;
  16137. 2 星,问题或需求没有被清晰理解或准确识别;
  16138. 3 星,问题或需求的一部分被识别;
  16139. 4 星,问题或需求的大部分被识别;
  16140. 5 星,问题或需求都被识别。
  16141. ==
  16142. `;
  16143. let params = {
  16144. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16145. message: [
  16146. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16147. ],
  16148. session_name: uuidv4(),
  16149. userId: this.userid,
  16150. file_ids: [],
  16151. model: "gpt-4o-2024-11-20"
  16152. };
  16153. // console.log('params',params);
  16154. this.ajax
  16155. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16156. .then(response => {
  16157. let data = response.data.FunctionResponse;
  16158. // console.log("data", data);
  16159. if (data.message) {
  16160. let content = data.message;
  16161. var regex = new RegExp("==([^=]+)==");
  16162. let match = content.match(regex);
  16163. if (match) {
  16164. content = match[1].trim().replaceAll(" ", "");
  16165. // 获取匹配到的内容并去除两端空格
  16166. // console.log('contentInsideDoubleEquals', content);
  16167. if (
  16168. content.indexOf("0星") == -1 ||
  16169. content.indexOf("2星") == -1 ||
  16170. content.indexOf("3星") == -1 ||
  16171. content.indexOf("4星") == -1 ||
  16172. content.indexOf("5星") == -1
  16173. ) {
  16174. console.log("未有星级。");
  16175. this.againEva(i, k);
  16176. return;
  16177. }
  16178. // return
  16179. } else {
  16180. console.log("未找到匹配的内容。");
  16181. this.againEva(i, k);
  16182. return;
  16183. }
  16184. let elist = JSON.parse(
  16185. JSON.stringify(
  16186. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16187. )
  16188. );
  16189. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16190. elist.rule = JSON.parse(
  16191. JSON.stringify(content.replaceAll("#", ""))
  16192. );
  16193. this.$set(
  16194. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16195. k,
  16196. elist
  16197. );
  16198. this.$forceUpdate();
  16199. let params2 = [
  16200. {
  16201. cid: this.id,
  16202. chapters: JSON.stringify(this.chapInfoList),
  16203. uid: this.userid,
  16204. unitIndex: this.courseType
  16205. }
  16206. ];
  16207. this.ajax
  16208. .post(this.$store.state.api + "updateWorkNew4", params2)
  16209. .then(res => {
  16210. this.getCourseDetail(2);
  16211. this.$forceUpdate();
  16212. })
  16213. .catch(err => {
  16214. this.$message.error(this.lang.ssNetworkPoor);
  16215. console.error(err);
  16216. });
  16217. // 进行进一步处理或解析outputContent
  16218. // } else {
  16219. // console.log("No match found for # Output section.");
  16220. // }
  16221. }
  16222. })
  16223. .catch(error => {
  16224. console.log(error);
  16225. });
  16226. },
  16227. // 关闭评分弹框
  16228. markScorehandleClose(done) {
  16229. // this.refreshKey++
  16230. this.worksStudent.forEach((e, index) => {
  16231. if (this.markScoretoolIndex == index) {
  16232. e.forEach((i, inx) => {
  16233. let mk = `markSco${index}${inx}`;
  16234. if (this.$refs[mk] && this.$refs[mk][0]) {
  16235. this.$refs[mk][0].getData();
  16236. }
  16237. });
  16238. }
  16239. });
  16240. done();
  16241. },
  16242. // 关闭txtMd预览弹框
  16243. handleCloseTxt(done) {
  16244. this.TxtMd = "";
  16245. done();
  16246. },
  16247. // Txt,Md作业查看
  16248. lookTxt(val) {
  16249. this.dialogVisibleTxt = true;
  16250. this.TxtMd = "";
  16251. getFile(val).then(res => {
  16252. this.TxtMd = res.data;
  16253. });
  16254. },
  16255. // 组件刷新
  16256. refreshAssembly() {
  16257. this.refreshKey++;
  16258. },
  16259. updateLoading(payload) {
  16260. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16261. },
  16262. handleShow(toolIndex, val) {
  16263. let mk = `markSco${toolIndex}${val}`;
  16264. // console.log(mk);
  16265. this.$refs[mk][0].getData();
  16266. },
  16267. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16268. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16269. // console.log('this.AIloading',this.AIloading)
  16270. let jude = false;
  16271. this.AIloading.forEach((e, index) => {
  16272. if (index == tidx) {
  16273. e.forEach(k => {
  16274. if (k.loading == true) jude = true;
  16275. });
  16276. }
  16277. });
  16278. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16279. if (val) return;
  16280. // console.log(uname,worksStudent,uid,tidx,titlist)
  16281. this.markScoreTit = titlist;
  16282. this.markScoreUid = uid;
  16283. this.toolListS = toolList;
  16284. this.markScoretoolIndex = tidx;
  16285. this.markScoreworksStudent = worksStudent;
  16286. this.markfullscreen = false;
  16287. this.markScoreVisible = true;
  16288. if (this.tType == 1) {
  16289. this.insertMemorandum(
  16290. `查看<span class="variable">${uname}</span>的作业`
  16291. );
  16292. }
  16293. },
  16294. // 点击markScore显示评分框
  16295. markScoreDig(data) {
  16296. // console.log('data',data)
  16297. let jude = false;
  16298. this.AIloading.forEach((e, index) => {
  16299. if (index == data.val2) {
  16300. e.forEach(k => {
  16301. if (k.loading == true) jude = true;
  16302. });
  16303. }
  16304. });
  16305. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16306. this.markScoreTit = data.tit;
  16307. this.markScoreUid = data.val;
  16308. this.markScoretoolIndex = data.val2;
  16309. this.markfullscreen = false;
  16310. this.markScoreVisible = true;
  16311. this.insertMemorandum(
  16312. `查看<span class="variable">${data.uname}</span>的作业`
  16313. );
  16314. },
  16315. // 刷新其他组件分数
  16316. refreshOther(v) {
  16317. // console.log('v',v)
  16318. this.AIloading[v.tid].forEach((e, i) => {
  16319. if (i == v.wid) {
  16320. e.loading = false;
  16321. }
  16322. });
  16323. // this.worksStudent.forEach((e,index)=>{
  16324. // if(toolIndex != index){
  16325. // e.forEach((i,inx)=>{
  16326. // let mk = `markSco${index}${inx}`
  16327. // this.$refs[mk][0].getData()
  16328. // })
  16329. // }
  16330. // })
  16331. },
  16332. updateDocSco(payload) {
  16333. // console.log('payload',payload)
  16334. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16335. },
  16336. gx(){
  16337. this.$forceUpdate();
  16338. },
  16339. isUpdateCorrect(t,p){
  16340. if(this.greyType == false){
  16341. this.isUpdateText = t;
  16342. this.greyType = true;
  16343. }else{
  16344. if(p == 1){
  16345. this.newEnglishList.engText = this.isUpdateText;
  16346. }else if(p == 2){
  16347. this.oldEnglishJson1.engText = this.isUpdateText;
  16348. }else if(p == 3){
  16349. this.newEnglishList.engText = this.isUpdateText;
  16350. }else{
  16351. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16352. }
  16353. this.greyType = false
  16354. }
  16355. },
  16356. aiCorrect(t,p){
  16357. let aiText = "";
  16358. const loading = this.$loading.service({
  16359. background: "rgba(255, 255, 255)",
  16360. target: document.querySelectorAll(".loadingText")[0],
  16361. });
  16362. let param = {
  16363. model: "gpt-3.5-turbo",
  16364. temperature: 0,
  16365. max_tokens: 2048,
  16366. top_p: 1,
  16367. frequency_penalty: 0,
  16368. presence_penalty: 0,
  16369. messages: [
  16370. {
  16371. role: "user",
  16372. content:
  16373.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16374. },
  16375. ],
  16376. uid: this.userid,
  16377. stream: false,
  16378. };
  16379. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16380. (res) => {
  16381. if (
  16382. res.data.FunctionResponse &&
  16383. res.data.FunctionResponse.result &&
  16384. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16385. ) {
  16386. this.$message.error(this.lang.ssEssayTooLongForAI);
  16387. return;
  16388. }
  16389. aiText =
  16390. res.data.FunctionResponse.choices[0].message.content;
  16391. aiText = aiText.replace(/%/g,"%25");
  16392. // let w = "";
  16393. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16394. // for(var k = 0;k<a.length;k++){
  16395. // //diffWordsWithSpace
  16396. // if(a.length > 1){
  16397. // if(a[k].added == true){
  16398. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16399. // }else if(a[k].removed == true){
  16400. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16401. // }else{
  16402. // w += '<span>' + a[k].value + '</span>';
  16403. // }
  16404. // }else{
  16405. // if(p == 1){
  16406. // w = this.newEnglishList.engText;
  16407. // }else if(p == 2){
  16408. // w = this.oldEnglishJson1.engText;
  16409. // }else if(p == 3){
  16410. // w = this.newEnglishList.engText;
  16411. // }else{
  16412. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16413. // }
  16414. // }
  16415. // }
  16416. if(p == 1){
  16417. this.newEnglishList.engText = aiText;
  16418. }else if(p == 2){
  16419. this.oldEnglishJson1.engText = aiText;
  16420. }else if(p == 3){
  16421. this.newEnglishList.engText = aiText;
  16422. }else{
  16423. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16424. }
  16425. loading.close();
  16426. },
  16427. (err) => {
  16428. console.log(err);
  16429. loading.close();
  16430. }
  16431. );
  16432. },
  16433. addToolChoose() {
  16434. if (!this.checktoolArray.length) {
  16435. this.$message.error(this.lang.ssSelectTaskToAdd);
  16436. return;
  16437. }
  16438. if (
  16439. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16440. this.taskCount
  16441. ].toolChoose[0].tool.length
  16442. ) {
  16443. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16444. this.taskCount
  16445. ].toolChoose[0].tool = this.checktoolArray;
  16446. } else {
  16447. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16448. this.taskCount
  16449. ].toolChoose.push({
  16450. tool: this.checktoolArray,
  16451. toolDetail: "",
  16452. toolType: 0,
  16453. askCount: 1,
  16454. askTitle: "",
  16455. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16456. });
  16457. }
  16458. let params = [
  16459. {
  16460. cid: this.id,
  16461. chapters: JSON.stringify(this.chapInfoList),
  16462. uid: this.userid,
  16463. unitIndex: this.courseType,
  16464. },
  16465. ];
  16466. this.ajax
  16467. .post(this.$store.state.api + "updateWorkNew4", params)
  16468. .then((res) => {
  16469. this.$message({
  16470. message: this.lang.ssAddSuccess,
  16471. type: "success",
  16472. });
  16473. this.checktoolArray = [];
  16474. this.getCourseDetail(2);
  16475. this.checkBz(
  16476. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16477. this.taskCount
  16478. ].toolChoose.length - 1
  16479. );
  16480. this.toolDialogVisible = false;
  16481. this.refreshCourse();
  16482. this.$forceUpdate();
  16483. })
  16484. .catch((err) => {
  16485. console.error(err);
  16486. });
  16487. },
  16488. checkBz(index) {
  16489. this.isUpdateToolDetail = false;
  16490. this.$forceUpdate();
  16491. setTimeout(() => {
  16492. document.scrollingElement.scrollTop =
  16493. document.querySelectorAll(".filebox")[index].offsetTop +
  16494. document.querySelector(".student_body").offsetTop;
  16495. }, 500);
  16496. },
  16497. updateToolDetail(i, type) {
  16498. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16499. this.toolDetailIndex = i
  16500. this.isUpdateToolDetail1 = true;
  16501. setTimeout(() => {
  16502. this.updateToolDetailInner = JSON.parse(
  16503. JSON.stringify(
  16504. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16505. this.taskCount
  16506. ].toolChoose[i].toolDetail
  16507. )
  16508. );
  16509. document.querySelector(".checkTextArea").focus();
  16510. }, 0);
  16511. } else if((this.isUpdateToolDetail1 && type != 2)){
  16512. // this.toolDetailIndex = i;
  16513. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16514. this.taskCount
  16515. ].toolChoose[i].toolDetail = JSON.parse(
  16516. JSON.stringify(this.updateToolDetailInner)
  16517. );
  16518. let params = [
  16519. {
  16520. cid: this.id,
  16521. chapters: JSON.stringify(this.chapInfoList),
  16522. uid: this.userid,
  16523. unitIndex: this.courseType,
  16524. },
  16525. ];
  16526. this.ajax
  16527. .post(this.$store.state.api + "updateWorkNew4", params)
  16528. .then((res) => {
  16529. this.isUpdateToolDetail1 = false;
  16530. this.$message({
  16531. message: this.lang.ssModifySuccess,
  16532. type: "success",
  16533. });
  16534. this.toolDetailIndex = null;
  16535. this.updateToolDetailInner = "";
  16536. this.getCourseDetail(2);
  16537. this.$forceUpdate();
  16538. })
  16539. .catch((err) => {
  16540. console.error(err);
  16541. });
  16542. } else if((this.isUpdateToolDetail1 && type == 2)){
  16543. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16544. this.taskCount
  16545. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16546. JSON.stringify(this.updateToolDetailInner)
  16547. );
  16548. let params = [
  16549. {
  16550. cid: this.id,
  16551. chapters: JSON.stringify(this.chapInfoList),
  16552. uid: this.userid,
  16553. unitIndex: this.courseType,
  16554. },
  16555. ];
  16556. this.ajax
  16557. .post(this.$store.state.api + "updateWorkNew4", params)
  16558. .then((res) => {
  16559. this.$message({
  16560. message: this.lang.ssModifySuccess,
  16561. type: "success",
  16562. });
  16563. this.toolDetailIndex = i;
  16564. this.isUpdateToolDetail1 = true;
  16565. setTimeout(() => {
  16566. this.updateToolDetailInner = JSON.parse(
  16567. JSON.stringify(
  16568. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16569. this.taskCount
  16570. ].toolChoose[i].toolDetail
  16571. )
  16572. );
  16573. document.querySelector(".checkTextArea").focus();
  16574. }, 0);
  16575. this.getCourseDetail(2);
  16576. this.$forceUpdate();
  16577. })
  16578. .catch((err) => {
  16579. console.error(err);
  16580. });
  16581. }
  16582. },
  16583. jumpGj(i, j, k, l) {
  16584. // this.refreshAssembly();
  16585. for (var z = 0; z < this.navList.length; z++) {
  16586. for (var q = 0; q < this.navList[z].task.length; q++) {
  16587. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16588. this.navList[z].task[q].tool[w].isTool = false;
  16589. }
  16590. }
  16591. }
  16592. console.log(this.navList);
  16593. this.navList[i].task[j].tool[k].isTool =
  16594. !this.navList[i].task[j].tool[k].isTool;
  16595. var a = document.scrollingElement;
  16596. let target = document.querySelector(`#gj${k}`);
  16597. if (target) {
  16598. // target.scrollIntoView(true);
  16599. // setTimeout(() => {
  16600. // a.scrollTop = a.scrollTop - 150;
  16601. // }, 0);
  16602. target.scrollIntoView();
  16603. setTimeout(()=>{
  16604. let scrollBody = document.querySelector('.body_student').parentElement
  16605. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16606. }, 0);
  16607. }
  16608. this.navId = ""
  16609. let flag = this.courseType == i;
  16610. let flag2 = this.taskCount == j
  16611. if (l) {
  16612. this.courseType = i;
  16613. // this.navId = l;
  16614. this.taskCount = j;
  16615. this.selectPz();
  16616. this.getHomeWork();
  16617. this.getCourseDetail(2);
  16618. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16619. if(flag){
  16620. if(flag2){
  16621. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16622. }else{
  16623. 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>`)
  16624. }
  16625. }else{
  16626. 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>`)
  16627. }
  16628. }
  16629. if ((this.courseDetail.userid == this.userid ||
  16630. (this.courseDetail.course_teacher &&
  16631. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  16632. this.IsFollow) {
  16633. this.setCTask();
  16634. }
  16635. // var b = this.$refs["bz" + k][0];
  16636. // a.scrollTop = b.offsetTop;
  16637. },
  16638. addTools2(i) {
  16639. if (i == 4) {
  16640. // this.openTools2(4);
  16641. this.$message.error(this.lang.ssNotAvailable);
  16642. return;
  16643. }
  16644. if (i == 45) {
  16645. // this.openTools2(45);
  16646. this.$message.error(this.lang.ssNotAvailable);
  16647. return;
  16648. }
  16649. if (i == 47) {
  16650. // this.openTools2(47);
  16651. this.$message.error(this.lang.ssNotAvailable);
  16652. return;
  16653. }
  16654. if (i == 49) {
  16655. // this.openTools2(49);
  16656. this.$message.error(this.lang.ssNotAvailable);
  16657. return;
  16658. }
  16659. if (i == 62) {
  16660. // this.openTools(itemTaskIndex, 62, toolIndex);
  16661. this.$message.error(this.lang.ssNotAvailable);
  16662. return;
  16663. }
  16664. if (i == 15) {
  16665. // this.openTools(itemTaskIndex, 15, toolIndex);
  16666. this.$message.error(this.lang.ssNotAvailable);
  16667. return;
  16668. }
  16669. if (i == 40) {
  16670. // this.openTools(itemTaskIndex, 40, toolIndex);
  16671. this.$message.error(this.lang.ssNotAvailable);
  16672. return;
  16673. }
  16674. if (i == 41) {
  16675. // this.openTools(itemTaskIndex, 41, toolIndex);
  16676. this.$message.error(this.lang.ssNotAvailable);
  16677. return;
  16678. }
  16679. if (i == 42) {
  16680. // this.openTools(itemTaskIndex, 42, toolIndex);
  16681. this.$message.error(this.lang.ssNotAvailable);
  16682. return;
  16683. }
  16684. if (this.checktoolArray.length > 0) {
  16685. if (this.checktoolArray.indexOf(i) != -1) {
  16686. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16687. } else {
  16688. this.checktoolArray = [];
  16689. this.checktoolArray.push(i);
  16690. }
  16691. } else {
  16692. this.checktoolArray.push(i);
  16693. }
  16694. this.$forceUpdate();
  16695. },
  16696. jump() {
  16697. window.topU.postMessage({ tools: "43" }, "*");
  16698. },
  16699. getUpdateMore(f, checkboxList, searchTN, index) {
  16700. this.dialogVisibleMember = f;
  16701. this.checkboxList = checkboxList;
  16702. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16703. this.plIndex = index;
  16704. },
  16705. setPlname(a) {
  16706. if (this.plworkFile.length) {
  16707. this.plworkFile[this.plIndex].username = a;
  16708. } else {
  16709. this.worksSName = a;
  16710. }
  16711. this.dialogVisibleMember = false;
  16712. },
  16713. previewImg(url,w) {
  16714. this.$hevueImgPreview(url);
  16715. if(w){
  16716. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16717. }
  16718. },
  16719. checkImg(list) {
  16720. if (!list.length) {
  16721. return;
  16722. }
  16723. this.$hevueImgPreview({
  16724. multiple: true, // 开启多图预览模式
  16725. imgList: list, // 需要预览的多图数组
  16726. });
  16727. },
  16728. change(val) {
  16729. console.log(val);
  16730. },
  16731. goTo(path) {
  16732. this.$router.push(path);
  16733. },
  16734. handlePictureCardPreview(url) {
  16735. this.dialogImageUrl = url;
  16736. this.pictureDialog = true;
  16737. },
  16738. clean(type) {
  16739. if (type == 1) {
  16740. this.studyJuri[0].cover.splice(0, 1);
  16741. } else if (type == 2) {
  16742. this.studyJuri[0].upVedio.splice(0, 1);
  16743. } else {
  16744. this.studyJuri[0].upFile.splice(0, 1);
  16745. }
  16746. },
  16747. clean2(index) {
  16748. this.plworkFile.splice(index, 1);
  16749. },
  16750. handleClose(done) {
  16751. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16752. this.videoDetail.sources[0].src = "";
  16753. }
  16754. this.commentIndexJson = {};
  16755. this.changeSplitScreenBehavior({code:99})
  16756. done();
  16757. },
  16758. fullTools() {
  16759. this.full = !this.full;
  16760. },
  16761. imgChange(file, fileList, type) {
  16762. if (type == 1) {
  16763. var _tmp = this.studyJuri[0].cover;
  16764. } else if (type == 2) {
  16765. var _tmp = this.studyJuri[0].upVedio;
  16766. } else {
  16767. var _tmp = this.studyJuri[0].upFile;
  16768. }
  16769. this.noneBtnImg = _tmp.length >= 1;
  16770. },
  16771. setContent(bool) {
  16772. this.contentDialog = bool;
  16773. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16774. document.querySelector(".workd_media").style.height = "650px";
  16775. } else if (document.querySelector(".workd_media")) {
  16776. document.querySelector(".workd_media").style.height = "auto";
  16777. }
  16778. },
  16779. setContent2(bool) {
  16780. this.mlDialog = bool;
  16781. if (
  16782. bool &&
  16783. this.contentDialog &&
  16784. document.querySelector(".workd_media")
  16785. ) {
  16786. document.querySelector(".workd_media").style.height = "650px";
  16787. } else if (document.querySelector(".workd_media")) {
  16788. document.querySelector(".workd_media").style.height = "auto";
  16789. }
  16790. },
  16791. openToolAll() {
  16792. this.toolDialogVisible = true;
  16793. },
  16794. addImg(e) {
  16795. var el = e.currentTarget;
  16796. // this.$message.success('触发上传')
  16797. el.getElementsByTagName("input")[0].click();
  16798. e.target.value = "";
  16799. },
  16800. addSelectAnswer() {
  16801. let params = [
  16802. {
  16803. uid: this.userid,
  16804. cid: this.id,
  16805. stage: this.courseType,
  16806. task: this.taskCount,
  16807. tool: this.toolindex,
  16808. content: this.selectAnswer.answer,
  16809. type: 7,
  16810. },
  16811. ];
  16812. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16813. this.homeWorkLoading = true
  16814. this.ajax
  16815. .post(this.$store.state.api + "addCourseWorks", params)
  16816. .then((res) => {
  16817. this.$message({
  16818. message: this.lang.ssSubmitSuccess,
  16819. type: "success",
  16820. });
  16821. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  16822. setTimeout(() => {
  16823. this.homeWorkLoading = false
  16824. }, 500);
  16825. this.dialogVisibleSelect = false;
  16826. // this.selectAnswer = {};
  16827. this.selectSWorks();
  16828. this.selectStudent();
  16829. })
  16830. .catch((err) => {
  16831. setTimeout(() => {
  16832. this.homeWorkLoading = false
  16833. }, 500);
  16834. this.$message.error(this.lang.ssSubmitFailed);
  16835. console.error(err);
  16836. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  16837. });
  16838. },
  16839. addSelectAnswerTeacher() {
  16840. let params = [
  16841. {
  16842. uid: this.sStudent.userid,
  16843. cid: this.id,
  16844. stage: this.courseType,
  16845. task: this.taskCount,
  16846. tool: this.toolindex,
  16847. content: this.selectAnswer.answer,
  16848. type: 7,
  16849. },
  16850. ];
  16851. this.ajax
  16852. .post(this.$store.state.api + "addCourseWorks", params)
  16853. .then((res) => {
  16854. this.$message({
  16855. message: this.lang.ssSubmitSuccess,
  16856. type: "success",
  16857. });
  16858. this.dialogVisibleSelectTeacher = false;
  16859. // this.selectAnswer = {};
  16860. this.selectSWorks();
  16861. this.selectStudent();
  16862. })
  16863. .catch((err) => {
  16864. this.$message.error(this.lang.ssSubmitFailed);
  16865. console.error(err);
  16866. });
  16867. },
  16868. addSenWorks() {
  16869. for (var i = 0; i < this.sentenceList.length; i++) {
  16870. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16871. if (
  16872. this.sentenceList[i].chooseSenList[j] == undefined ||
  16873. this.sentenceList[i].chooseSenList[j] == ""
  16874. ) {
  16875. this.$message.error(this.lang.ssFillAnswersComplete);
  16876. return;
  16877. }
  16878. }
  16879. }
  16880. let params = [
  16881. {
  16882. uid: this.userid,
  16883. cid: this.id,
  16884. stage: this.courseType,
  16885. task: this.taskCount,
  16886. tool: this.toolindex,
  16887. content: JSON.stringify(this.sentenceList),
  16888. type: 9,
  16889. },
  16890. ];
  16891. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16892. this.homeWorkLoading = true
  16893. this.ajax
  16894. .post(this.$store.state.api + "addCourseWorks", params)
  16895. .then((res) => {
  16896. this.$message({
  16897. message: this.lang.ssSubmitSuccess,
  16898. type: "success",
  16899. });
  16900. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  16901. setTimeout(() => {
  16902. this.homeWorkLoading = false
  16903. }, 500);
  16904. this.dialogVisibleSentence = false;
  16905. // this.selectAnswer = {};
  16906. this.selectSWorks();
  16907. this.selectStudent();
  16908. })
  16909. .catch((err) => {
  16910. setTimeout(() => {
  16911. this.homeWorkLoading = false
  16912. }, 500);
  16913. this.$message.error(this.lang.ssSubmitFailed);
  16914. console.error(err);
  16915. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  16916. });
  16917. },
  16918. addSenWorksTeacher() {
  16919. for (var i = 0; i < this.sentenceList.length; i++) {
  16920. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16921. if (
  16922. this.sentenceList[i].chooseSenList[j] == undefined ||
  16923. this.sentenceList[i].chooseSenList[j] == ""
  16924. ) {
  16925. this.$message.error(this.lang.ssFillAnswersComplete);
  16926. return;
  16927. }
  16928. }
  16929. }
  16930. let params = [
  16931. {
  16932. uid: this.sStudent.userid,
  16933. cid: this.id,
  16934. stage: this.courseType,
  16935. task: this.taskCount,
  16936. tool: this.toolindex,
  16937. content: JSON.stringify(this.sentenceList),
  16938. type: 9,
  16939. },
  16940. ];
  16941. this.ajax
  16942. .post(this.$store.state.api + "addCourseWorks", params)
  16943. .then((res) => {
  16944. this.$message({
  16945. message: this.lang.ssSubmitSuccess,
  16946. type: "success",
  16947. });
  16948. this.dialogVisibleSentenceTeacher = false;
  16949. // this.selectAnswer = {};
  16950. this.selectSWorks();
  16951. this.selectStudent();
  16952. })
  16953. .catch((err) => {
  16954. this.$message.error(this.lang.ssSubmitFailed);
  16955. console.error(err);
  16956. });
  16957. },
  16958. returnTableText() {
  16959. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  16960. confirmButtonText: this.lang.ssConfirm,
  16961. cancelButtonText: this.lang.ssCancel,
  16962. type: "warning",
  16963. })
  16964. .then(() => {
  16965. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  16966. })
  16967. .catch(() => {});
  16968. },
  16969. addTableWorks() {
  16970. let params = [
  16971. {
  16972. uid: this.userid,
  16973. cid: this.id,
  16974. stage: this.courseType,
  16975. task: this.taskCount,
  16976. tool: this.toolindex,
  16977. content: JSON.stringify(this.tableJson),
  16978. type: 10,
  16979. },
  16980. ];
  16981. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  16982. this.homeWorkLoading = true
  16983. this.ajax
  16984. .post(this.$store.state.api + "addCourseWorks", params)
  16985. .then((res) => {
  16986. this.$message({
  16987. message: this.lang.ssSubmitSuccess,
  16988. type: "success",
  16989. });
  16990. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  16991. setTimeout(() => {
  16992. this.homeWorkLoading = false
  16993. }, 500);
  16994. this.dialogVisibleTable = false;
  16995. // this.selectAnswer = {};
  16996. this.selectSWorks();
  16997. this.selectStudent();
  16998. })
  16999. .catch((err) => {
  17000. this.$message.error(this.lang.ssSubmitFailed);
  17001. console.error(err);
  17002. setTimeout(() => {
  17003. this.homeWorkLoading = false
  17004. }, 500);
  17005. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17006. });
  17007. },
  17008. tableRowClassName({ row, rowIndex }) {
  17009. if ((rowIndex + 1) % 2 === 0) {
  17010. return "even_row";
  17011. } else {
  17012. return "";
  17013. }
  17014. },
  17015. addTableWorksTeacher() {
  17016. let params = [
  17017. {
  17018. uid: this.sStudent.userid,
  17019. cid: this.id,
  17020. stage: this.courseType,
  17021. task: this.taskCount,
  17022. tool: this.toolindex,
  17023. content: JSON.stringify(this.tableJson),
  17024. type: 10,
  17025. },
  17026. ];
  17027. this.ajax
  17028. .post(this.$store.state.api + "addCourseWorks", params)
  17029. .then((res) => {
  17030. this.$message({
  17031. message: this.lang.ssSubmitSuccess,
  17032. type: "success",
  17033. });
  17034. this.dialogVisibleTableTeacher = false;
  17035. // this.selectAnswer = {};
  17036. this.selectSWorks();
  17037. this.selectStudent();
  17038. })
  17039. .catch((err) => {
  17040. this.$message.error(this.lang.ssSubmitFailed);
  17041. console.error(err);
  17042. });
  17043. },
  17044. returnWordText() {
  17045. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  17046. confirmButtonText: this.lang.ssConfirm,
  17047. cancelButtonText: this.lang.ssCancel,
  17048. type: "warning",
  17049. })
  17050. .then(() => {
  17051. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17052. })
  17053. .catch(() => {});
  17054. },
  17055. addWordWorks() {
  17056. let params = [
  17057. {
  17058. uid: this.userid,
  17059. cid: this.id,
  17060. stage: this.courseType,
  17061. task: this.taskCount,
  17062. tool: this.toolindex,
  17063. content: JSON.stringify(this.wordJson),
  17064. type: 13,
  17065. atool: 52,
  17066. },
  17067. ];
  17068. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17069. this.homeWorkLoading = true
  17070. this.ajax
  17071. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17072. .then((res) => {
  17073. this.$message({
  17074. message: this.lang.ssSubmitSuccess,
  17075. type: "success",
  17076. });
  17077. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17078. setTimeout(() => {
  17079. this.homeWorkLoading = false
  17080. }, 500);
  17081. this.dialogVisibleWord = false;
  17082. // this.selectAnswer = {};
  17083. this.selectSWorks();
  17084. this.selectStudent();
  17085. })
  17086. .catch((err) => {
  17087. this.$message.error(this.lang.ssSubmitFailed);
  17088. console.error(err);
  17089. setTimeout(() => {
  17090. this.homeWorkLoading = false
  17091. }, 500);
  17092. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17093. });
  17094. },
  17095. addWordWorksTeacher() {
  17096. let params = [
  17097. {
  17098. uid: this.sStudent.userid,
  17099. cid: this.id,
  17100. stage: this.courseType,
  17101. task: this.taskCount,
  17102. tool: this.toolindex,
  17103. content: JSON.stringify(this.wordJson),
  17104. type: 13,
  17105. atool: 52,
  17106. },
  17107. ];
  17108. this.ajax
  17109. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17110. .then((res) => {
  17111. this.$message({
  17112. message: this.lang.ssSubmitSuccess,
  17113. type: "success",
  17114. });
  17115. this.dialogVisibleWordTeacher = false;
  17116. // this.selectAnswer = {};
  17117. this.selectSWorks();
  17118. this.selectStudent();
  17119. })
  17120. .catch((err) => {
  17121. this.$message.error(this.lang.ssSubmitFailed);
  17122. console.error(err);
  17123. });
  17124. },
  17125. addCourseWorksCopy(i) {
  17126. let arr = this.workStudent[this.toolindex].filter(e => {
  17127. return (e.userid = this.userid);
  17128. });
  17129. if (arr.length > 0) {
  17130. this.$confirm(this.lang.ssConfirmSubmitAgain, this.lang.ssPrompt, {
  17131. confirmButtonText: this.lang.ssConfirm,
  17132. cancelButtonText: this.lang.ssCancel,
  17133. type: "warning"
  17134. })
  17135. .then(() => {
  17136. this.addCourseWorks(i);
  17137. })
  17138. .catch(() => {});
  17139. } else {
  17140. this.addCourseWorks(i);
  17141. }
  17142. },
  17143. addCourseWorks(i) {
  17144. var typesql;
  17145. if (this.fileType === 0) {
  17146. typesql = 1;
  17147. } else if (this.fileType === 1) {
  17148. typesql = 4;
  17149. } else if (this.fileType === 2) {
  17150. typesql = 5;
  17151. } else if (this.fileType === 3) {
  17152. typesql = 12;
  17153. }
  17154. if (!this.studyJuri[0].cover[0].url) {
  17155. this.$message.error(this.lang.ssUploadFileRequired);
  17156. return;
  17157. }
  17158. let params = [
  17159. {
  17160. uid: this.userid,
  17161. cid: this.id,
  17162. stage: this.courseType,
  17163. task: i,
  17164. tool: this.toolindex,
  17165. content: this.studyJuri[0].cover[0].url,
  17166. type: typesql,
  17167. },
  17168. ];
  17169. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17170. this.homeWorkLoading = true
  17171. this.ajax
  17172. .post(this.$store.state.api + "addCourseWorksR", params)
  17173. .then((res) => {
  17174. this.$message({
  17175. message: this.lang.ssSubmitSuccess,
  17176. type: "success",
  17177. });
  17178. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17179. setTimeout(() => {
  17180. this.homeWorkLoading = false
  17181. }, 500);
  17182. this.studyJuri[0].cover = [];
  17183. this.dialogVisible = false;
  17184. this.getCourseDetail(2);
  17185. })
  17186. .catch((err) => {
  17187. this.$message.error(this.lang.ssSubmitFailed);
  17188. console.error(err);
  17189. setTimeout(() => {
  17190. this.homeWorkLoading = false
  17191. }, 500);
  17192. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17193. });
  17194. },
  17195. addCourseWorksPl(i) {
  17196. let _files = this.plworkFile;
  17197. var c = 1;
  17198. for (var k = 0; k < _files.length; k++) {
  17199. if (!_files[k].username) {
  17200. c = 2;
  17201. }
  17202. }
  17203. if (c == 2) {
  17204. this.$message.error(this.lang.ssEnterStudentName);
  17205. return;
  17206. }
  17207. let params = [
  17208. {
  17209. ateacher: this.userid,
  17210. cid: this.id,
  17211. stage: this.courseType,
  17212. task: i,
  17213. tool: this.toolindex,
  17214. content: JSON.stringify(_files),
  17215. },
  17216. ];
  17217. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17218. this.homeWorkLoading = true
  17219. this.ajax
  17220. .post(this.$store.state.api + "addCourseWorksPl", params)
  17221. .then((res) => {
  17222. this.$message({
  17223. message: this.lang.ssSubmitSuccess,
  17224. type: "success",
  17225. });
  17226. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17227. setTimeout(() => {
  17228. this.homeWorkLoading = false
  17229. }, 500);
  17230. this.plworkFile = [];
  17231. this.dialogVisiblePl = false;
  17232. this.getCourseDetail(2);
  17233. })
  17234. .catch((err) => {
  17235. this.$message.error(this.lang.ssSubmitFailed);
  17236. console.error(err);
  17237. setTimeout(() => {
  17238. this.homeWorkLoading = false
  17239. }, 500);
  17240. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17241. });
  17242. },
  17243. addCourseWorks2(i) {
  17244. var typesql;
  17245. if (this.fileType === 0) {
  17246. typesql = 0;
  17247. } else if (this.fileType === 1) {
  17248. typesql = 1;
  17249. } else if (this.fileType === 2) {
  17250. typesql = 3;
  17251. } else if (this.fileType === 3) {
  17252. typesql = 12;
  17253. }
  17254. if (!this.studyJuri[0].cover[0].url) {
  17255. this.$message.error(this.lang.ssUploadFileRequired);
  17256. return;
  17257. }
  17258. let params = [
  17259. {
  17260. uid: this.userid,
  17261. cid: this.id,
  17262. stage: this.courseType,
  17263. task: i,
  17264. tool: this.toolindex,
  17265. content: JSON.stringify({
  17266. type: typesql,
  17267. groupIndex: this.groupIndex,
  17268. url: this.studyJuri[0].cover[0].url,
  17269. }),
  17270. type: 11,
  17271. atool: 49,
  17272. text: "",
  17273. },
  17274. ];
  17275. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17276. this.homeWorkLoading = true
  17277. this.ajax
  17278. .post(this.$store.state.api + "addCourseWorks5", params)
  17279. .then((res) => {
  17280. this.$message({
  17281. message: this.lang.ssSubmitSuccess,
  17282. type: "success",
  17283. });
  17284. setTimeout(() => {
  17285. this.homeWorkLoading = false
  17286. }, 500);
  17287. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17288. type: typesql,
  17289. groupIndex: this.groupIndex,
  17290. url: this.studyJuri[0].cover[0].url,
  17291. }),type: "course_tool_sub" }, "success")
  17292. this.studyJuri[0].cover = [];
  17293. this.dialogVisibleGroupWork = false;
  17294. this.getCourseDetail(2);
  17295. })
  17296. .catch((err) => {
  17297. this.$message.error(this.lang.ssSubmitFailed);
  17298. console.error(err);
  17299. setTimeout(() => {
  17300. this.homeWorkLoading = false
  17301. }, 500);
  17302. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17303. type: typesql,
  17304. groupIndex: this.groupIndex,
  17305. url: this.studyJuri[0].cover[0].url,
  17306. }),type: "course_tool_sub" }, err)
  17307. });
  17308. },
  17309. addEnglishWork() {
  17310. this.myAnList = this.$refs['engJson'].myAnswerList;
  17311. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17312. this.$message.error(this.lang.ssEnterEssayContent);
  17313. return;
  17314. }
  17315. let params = [
  17316. {
  17317. uid: this.userid,
  17318. cid: this.id,
  17319. stage: this.courseType,
  17320. task: this.taskCount,
  17321. tool: this.englishToolIndex,
  17322. content: JSON.stringify(this.myAnList),
  17323. type: 16,
  17324. atool: 69,
  17325. text: "",
  17326. },
  17327. ];
  17328. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17329. this.homeWorkLoading = true
  17330. this.ajax
  17331. .post(this.$store.state.api + "addCourseWorks5", params)
  17332. .then((res) => {
  17333. this.$message({
  17334. message: this.lang.ssSubmitSuccess,
  17335. type: "success",
  17336. });
  17337. setTimeout(() => {
  17338. this.homeWorkLoading = false
  17339. }, 500);
  17340. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17341. data: JSON.stringify(this.myAnList),
  17342. type: "course_tool_sub" }, "success")
  17343. this.myAnList = {};
  17344. this.englishList = {};
  17345. this.englishToolIndex = 0;
  17346. this.engDialogVisible = false;
  17347. this.selectSWorks();
  17348. this.selectStudent();
  17349. })
  17350. .catch((err) => {
  17351. this.$message.error(this.lang.ssSubmitFailed);
  17352. console.error(err);
  17353. setTimeout(() => {
  17354. this.homeWorkLoading = false
  17355. }, 500);
  17356. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17357. data: JSON.stringify(this.myAnList),
  17358. type: "course_tool_sub" }, err)
  17359. });
  17360. },
  17361. addCourseWorksGong(i, data, tool) {
  17362. let params = [
  17363. {
  17364. uid: this.userid,
  17365. cid: this.id,
  17366. stage: this.courseType,
  17367. task: this.taskCount,
  17368. tool: i,
  17369. content: data,
  17370. type: 12,
  17371. atool: tool,
  17372. text: "",
  17373. },
  17374. ];
  17375. this.ajax
  17376. .post(this.$store.state.api + "addCourseWorks5", params)
  17377. .then((res) => {
  17378. this.$message({
  17379. message: this.lang.ssSubmitSuccess,
  17380. type: "success",
  17381. });
  17382. this.studyJuri[0].cover = [];
  17383. this.selectSWorks();
  17384. this.selectStudent();
  17385. })
  17386. .catch((err) => {
  17387. this.$message.error(this.lang.ssSubmitFailed);
  17388. console.error(err);
  17389. });
  17390. },
  17391. addCourseWorksGongTeacher(i, data, tool) {
  17392. let params = [
  17393. {
  17394. uid: this.sStudent.userid,
  17395. cid: this.id,
  17396. stage: this.courseType,
  17397. task: this.taskCount,
  17398. tool: i,
  17399. content: data,
  17400. type: 12,
  17401. atool: tool,
  17402. text: "",
  17403. },
  17404. ];
  17405. this.ajax
  17406. .post(this.$store.state.api + "addCourseWorks5", params)
  17407. .then((res) => {
  17408. this.$message({
  17409. message: this.lang.ssSubmitSuccess,
  17410. type: "success",
  17411. });
  17412. this.studyJuri[0].cover = [];
  17413. this.dialogVisibleWorks = false;
  17414. this.selectSWorks();
  17415. this.selectStudent();
  17416. })
  17417. .catch((err) => {
  17418. this.$message.error(this.lang.ssSubmitFailed);
  17419. console.error(err);
  17420. });
  17421. },
  17422. addCourseWorksGongPl(i, data, tool, type) {
  17423. let params = [
  17424. {
  17425. uid: this.sStudent.userid,
  17426. cid: this.id,
  17427. stage: this.courseType,
  17428. task: this.taskCount,
  17429. tool: i,
  17430. content: data,
  17431. type: type,
  17432. atool: tool,
  17433. text: "",
  17434. },
  17435. ];
  17436. this.ajax
  17437. .post(this.$store.state.api + "addCourseWorks5", params)
  17438. .then((res) => {
  17439. this.$message({
  17440. message: this.lang.ssSubmitSuccess,
  17441. type: "success",
  17442. });
  17443. this.studyJuri[0].cover = [];
  17444. this.dialogVisibleWorks = false;
  17445. this.selectSWorks();
  17446. this.selectStudent();
  17447. })
  17448. .catch((err) => {
  17449. this.$message.error(this.lang.ssSubmitFailed);
  17450. console.error(err);
  17451. });
  17452. },
  17453. addCourseWorksTeacher(i) {
  17454. var typesql;
  17455. if (this.sTool == 32) {
  17456. this.addCourseWorksGongTeacher(
  17457. this.toolindex,
  17458. this.studyJuri[0].cover[0].url,
  17459. this.sTool
  17460. );
  17461. return;
  17462. }
  17463. if (this.fileType === 0) {
  17464. typesql = 1;
  17465. } else if (this.fileType === 1) {
  17466. typesql = 4;
  17467. } else if (this.fileType === 2) {
  17468. typesql = 5;
  17469. } else if (this.fileType === 3) {
  17470. typesql = 12;
  17471. }
  17472. if (this.sTool == 50) {
  17473. this.addCourseWorksGongPl(
  17474. this.toolindex,
  17475. this.studyJuri[0].cover[0].url,
  17476. this.sTool,
  17477. typesql
  17478. );
  17479. return;
  17480. }
  17481. if (!this.studyJuri[0].cover[0].url) {
  17482. this.$message.error(this.lang.ssUploadFileRequired);
  17483. return;
  17484. }
  17485. let params = [
  17486. {
  17487. uid: this.sStudent.userid,
  17488. cid: this.id,
  17489. stage: this.courseType,
  17490. task: i,
  17491. tool: this.toolindex,
  17492. content: this.studyJuri[0].cover[0].url,
  17493. type: typesql,
  17494. ateacher: this.userid,
  17495. },
  17496. ];
  17497. this.ajax
  17498. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17499. .then((res) => {
  17500. this.$message({
  17501. message: this.lang.ssSubmitSuccess,
  17502. type: "success",
  17503. });
  17504. this.studyJuri[0].cover = [];
  17505. this.dialogVisibleWorks = false;
  17506. this.getCourseDetail(2);
  17507. })
  17508. .catch((err) => {
  17509. this.$message.error(this.lang.ssSubmitFailed);
  17510. console.error(err);
  17511. });
  17512. },
  17513. selectUploadStudent(type) {
  17514. const loading = this.$loading.service({
  17515. background: "rgba(255, 255, 255, 0.7)",
  17516. target: document.body,
  17517. });
  17518. let params = {
  17519. cid: this.uploadCid,
  17520. oid: this.oid,
  17521. cn: "",
  17522. };
  17523. this.ajax
  17524. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17525. .then((res) => {
  17526. loading.close();
  17527. var studentK = [];
  17528. if (this.isWorksS[this.toolindex].length > 0) {
  17529. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17530. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17531. }
  17532. studentK = studentK.join(",");
  17533. }
  17534. this.uploadStudentJuri = res.data[0].filter((el) => {
  17535. return studentK.indexOf(el.userid) == -1;
  17536. });
  17537. if (this.worksSName && this.worksSid) {
  17538. this.uploadStudentJuri.push({
  17539. userid: this.worksSid,
  17540. name: this.worksSName,
  17541. });
  17542. }
  17543. if (type == 1) {
  17544. this.plworkFile = [];
  17545. this.dialogVisibleSname = true;
  17546. } else if (type == 2) {
  17547. this.dialogVisiblePl = true;
  17548. }
  17549. })
  17550. .catch((err) => {
  17551. loading.close();
  17552. console.error(err);
  17553. });
  17554. },
  17555. selectPickStudent() {
  17556. const loading = this.$loading.service({
  17557. background: "rgba(255, 255, 255, 0.7)",
  17558. target: document.body,
  17559. });
  17560. let params = {
  17561. cid: this.uploadCid,
  17562. oid: this.oid,
  17563. cn: "",
  17564. };
  17565. this.ajax
  17566. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17567. .then((res) => {
  17568. loading.close();
  17569. this.uploadStudentJuri = res.data[0];
  17570. this.dialogVisiblePickPeople = true;
  17571. })
  17572. .catch((err) => {
  17573. loading.close();
  17574. console.error(err);
  17575. });
  17576. },
  17577. arrayToArray(arrayo, arrayt) {
  17578. let array1 = arrayo;
  17579. let array2 = arrayt;
  17580. let commonElements = [];
  17581. for (let i = 0; i < array1.length; i++) {
  17582. for (let j = 0; j < array2.length; j++) {
  17583. if (array1[i] === array2[j]) {
  17584. commonElements.push(array1[i]);
  17585. }
  17586. }
  17587. }
  17588. return commonElements;
  17589. },
  17590. selectWorksStudent() {
  17591. let params = {
  17592. oid: this.oid,
  17593. cid: this.courseDetail.juri,
  17594. };
  17595. this.ajax
  17596. .get(this.$store.state.api + "selectWorksStudent", params)
  17597. .then((res) => {
  17598. var a = res.data[0];
  17599. for (var i = 0; i < this.isWorksS.length; i++) {
  17600. this.noWorksS[i] = [];
  17601. var studentK = [];
  17602. if (this.isWorksS[i].length > 0) {
  17603. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17604. studentK.push(this.isWorksS[i][z].uid);
  17605. }
  17606. studentK = studentK.join(",");
  17607. for (var j = 0; j < a.length; j++) {
  17608. if (studentK.indexOf(a[j].userid) == -1) {
  17609. if (this.tcid) {
  17610. // a[j].classid.indexOf(this.tcid) != -1
  17611. if (
  17612. this.arrayToArray(
  17613. a[j].classid.split(","),
  17614. this.tcid.split(",")
  17615. ).length
  17616. ) {
  17617. this.noWorksS[i].push({
  17618. student: a[j].name,
  17619. userid: a[j].userid,
  17620. });
  17621. }
  17622. } else {
  17623. this.noWorksS[i].push({
  17624. student: a[j].name,
  17625. userid: a[j].userid,
  17626. });
  17627. }
  17628. }
  17629. }
  17630. } else {
  17631. for (var k = 0; k < a.length; k++) {
  17632. if (this.tcid) {
  17633. if (
  17634. this.arrayToArray(
  17635. a[k].classid.split(","),
  17636. this.tcid.split(",")
  17637. ).length
  17638. ) {
  17639. this.noWorksS[i].push({
  17640. student: a[k].name,
  17641. userid: a[k].userid,
  17642. });
  17643. }
  17644. } else {
  17645. this.noWorksS[i].push({
  17646. student: a[k].name,
  17647. userid: a[k].userid,
  17648. });
  17649. }
  17650. }
  17651. }
  17652. }
  17653. this.$forceUpdate();
  17654. if (
  17655. Object.keys(this.commentDetail).length &&
  17656. Object.keys(this.commentIndexJson).length &&
  17657. !this.dialogVisibleScore && !this.dialogVisibleENScore
  17658. ) {
  17659. let a = 1;
  17660. let c = this.commentIndexJson;
  17661. if (
  17662. this.commentIndexJson.gindex ||
  17663. this.commentIndexJson.gindex === 0
  17664. ) {
  17665. for (
  17666. var i = 0;
  17667. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17668. i++
  17669. ) {
  17670. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17671. groupA: for (var k = 0; k < _el.length; k++) {
  17672. let el = _el[k];
  17673. if (el.wid == this.commentDetail.wid) {
  17674. a = 2;
  17675. this.commentOther(
  17676. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17677. this.commentIndexJson.toolIndex,
  17678. k,
  17679. this.commentIndexJson.gindex
  17680. );
  17681. break groupA;
  17682. }
  17683. }
  17684. }
  17685. if (a === 1) {
  17686. this.commentDetail = [];
  17687. this.commentIndexJson = {};
  17688. this.commentDialogVisible = false;
  17689. this.$message(this.lang.ssHomeworkDeleted);
  17690. }
  17691. } else {
  17692. if (this.isGroup && this.commentIndexJson.gid) {
  17693. groupA: for (
  17694. var i = 0;
  17695. i < this.courseGroup.group.length;
  17696. i++
  17697. ) {
  17698. let _group = this.courseGroup.group[i];
  17699. if (_group.id == this.commentIndexJson.gid) {
  17700. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17701. for (var k = 0; k < _el2.length; k++) {
  17702. let el2 = _el2[k];
  17703. if (el2.wid == this.commentDetail.wid) {
  17704. a = 2;
  17705. this.commentOther(
  17706. _el2[k],
  17707. this.commentIndexJson.toolIndex,
  17708. k,
  17709. null,
  17710. this.commentIndexJson.gid
  17711. );
  17712. break groupA;
  17713. }
  17714. }
  17715. }
  17716. }
  17717. }
  17718. if (a == 1) {
  17719. for (
  17720. var i = 0;
  17721. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17722. i++
  17723. ) {
  17724. let el =
  17725. this.worksStudent[this.commentIndexJson.toolIndex][i];
  17726. if (el.wid == this.commentDetail.wid) {
  17727. a = 2;
  17728. this.commentOther(
  17729. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17730. this.commentIndexJson.toolIndex,
  17731. i
  17732. );
  17733. break;
  17734. }
  17735. }
  17736. }
  17737. if (a === 1) {
  17738. this.commentDetail = [];
  17739. this.commentIndexJson = {};
  17740. this.commentDialogVisible = false;
  17741. this.$message(this.lang.ssHomeworkDeleted);
  17742. }
  17743. }
  17744. }
  17745. })
  17746. .catch((err) => {
  17747. console.error(err);
  17748. });
  17749. },
  17750. selectStudent() {
  17751. if(this.selectStudentLoading) return
  17752. this.selectStudentLoading = true
  17753. //学生查看自己作业
  17754. let params = {
  17755. uid: this.userid,
  17756. cid: this.id,
  17757. s: this.courseType,
  17758. t: this.taskCount,
  17759. };
  17760. this.ajax
  17761. .get(this.$store.state.api + "selectStudentWorks", params)
  17762. .then((res) => {
  17763. var a =
  17764. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17765. this.taskCount
  17766. ].toolChoose;
  17767. var b = res.data[0];
  17768. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17769. var y = [
  17770. "AVI",
  17771. "NAVI",
  17772. "MPEG",
  17773. "ASF",
  17774. "MOV",
  17775. "WMV",
  17776. "3GP",
  17777. "RM",
  17778. "RMVB",
  17779. "FLV",
  17780. "F4V",
  17781. "H.264",
  17782. "H.265",
  17783. "REAL VIDEO",
  17784. "MKV",
  17785. "WebM",
  17786. "HDDVD",
  17787. "MP4",
  17788. "MPG",
  17789. "M4V",
  17790. "MGV",
  17791. "OGV",
  17792. "QTM",
  17793. "STR",
  17794. "AMC",
  17795. "DVX",
  17796. "EVO",
  17797. "DAT",
  17798. "OGG",
  17799. "OGM",
  17800. ];
  17801. for (var i = 0; i < a.length; i++) {
  17802. this.workStudent[i] = [];
  17803. for (var j = 0; j < b.length; j++) {
  17804. if (i == b[j].tool) {
  17805. if (
  17806. (b[j].type == 1 ||
  17807. b[j].type == 4 ||
  17808. b[j].type == 5 ||
  17809. b[j].type == 6 ||
  17810. b[j].type == 12 ||
  17811. b[j].type == 7) &&
  17812. a[i].tool[0] != 15 &&
  17813. a[i].tool[0] != 4 &&
  17814. a[i].tool[0] != 45 &&
  17815. a[i].tool[0] != 50 &&
  17816. a[i].tool[0] != 32 &&
  17817. a[i].tool[0] != 57 &&
  17818. a[i].tool[0] != 52 &&
  17819. a[i].tool[0] != 69
  17820. ) {
  17821. if (
  17822. c.indexOf(
  17823. b[j].content
  17824. .split(".")
  17825. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17826. ) != -1 &&
  17827. a[i].tool[0] == 16 &&
  17828. b[j].atool != 50
  17829. ) {
  17830. this.workStudent[i].push({
  17831. works: b[j].content,
  17832. sName: b[j].name,
  17833. score: b[j].score,
  17834. img: b[j].img,
  17835. type: 1,
  17836. time: b[j].time,
  17837. userid: b[j].userid,
  17838. wid: b[j].id,
  17839. });
  17840. } else if (
  17841. y.indexOf(
  17842. b[j].content
  17843. .split(".")
  17844. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17845. ) != -1 &&
  17846. a[i].tool[0] == 16 &&
  17847. b[j].atool != 50
  17848. ) {
  17849. this.workStudent[i].push({
  17850. userid: b[j].userid,
  17851. wid: b[j].id,
  17852. works: b[j].content,
  17853. sName: b[j].name,
  17854. score: b[j].score,
  17855. img: b[j].img,
  17856. type: 3,
  17857. time: b[j].time,
  17858. });
  17859. } else if (b[j].type == 6 && b[j].atool != 50) {
  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: 4,
  17868. time: b[j].time,
  17869. });
  17870. } else if (b[j].type == 7 && 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: 5,
  17879. time: b[j].time,
  17880. });
  17881. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17882. this.workStudent[i].push({
  17883. works: b[j].content,
  17884. sName: b[j].name,
  17885. score: b[j].score,
  17886. img: b[j].img,
  17887. type: 12,
  17888. time: b[j].time,
  17889. userid: b[j].userid,
  17890. wid: b[j].id,
  17891. });
  17892. } else if (b[j].type == 1 && 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: 0,
  17899. time: b[j].time,
  17900. userid: b[j].userid,
  17901. wid: b[j].id,
  17902. });
  17903. } else if (b[j].type == 1 && !parseInt(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. }
  17915. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17916. this.workStudent[i].push({
  17917. works: b[j].content,
  17918. sName: b[j].name,
  17919. score: b[j].score,
  17920. img: b[j].img,
  17921. type: 2,
  17922. time: b[j].time,
  17923. userid: b[j].userid,
  17924. wid: b[j].id,
  17925. });
  17926. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  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: 20,
  17933. time: b[j].time,
  17934. userid: b[j].userid,
  17935. wid: b[j].id,
  17936. });
  17937. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17938. //问卷
  17939. this.workStudent[i].push({
  17940. works: b[j].content,
  17941. sName: b[j].name,
  17942. score: b[j].score,
  17943. img: b[j].img,
  17944. type: 2,
  17945. time: b[j].time,
  17946. userid: b[j].userid,
  17947. wid: b[j].id,
  17948. });
  17949. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17950. //选择题
  17951. this.workStudent[i].push({
  17952. works: b[j].content,
  17953. sName: b[j].name,
  17954. score: b[j].score,
  17955. img: b[j].img,
  17956. type: 8,
  17957. time: b[j].time,
  17958. userid: b[j].userid,
  17959. wid: b[j].id,
  17960. });
  17961. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17962. //选择题
  17963. this.workStudent[i].push({
  17964. works: b[j].content,
  17965. sName: b[j].name,
  17966. score: b[j].score,
  17967. img: b[j].img,
  17968. type: 9,
  17969. time: b[j].time,
  17970. userid: b[j].userid,
  17971. wid: b[j].id,
  17972. });
  17973. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17974. //选择题
  17975. this.workStudent[i].push({
  17976. works: b[j].content,
  17977. sName: b[j].name,
  17978. score: b[j].score,
  17979. img: b[j].img,
  17980. type: 10,
  17981. time: b[j].time,
  17982. userid: b[j].userid,
  17983. wid: b[j].id,
  17984. });
  17985. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  17986. //选择题
  17987. this.workStudent[i].push({
  17988. works: b[j].content,
  17989. sName: b[j].name,
  17990. score: b[j].score,
  17991. img: b[j].img,
  17992. type: 13,
  17993. time: b[j].time,
  17994. userid: b[j].userid,
  17995. wid: b[j].id,
  17996. });
  17997. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  17998. //选择题
  17999. this.workStudent[i].push({
  18000. works: b[j].content,
  18001. sName: b[j].name,
  18002. score: b[j].score,
  18003. img: b[j].img,
  18004. type: 12,
  18005. time: b[j].time,
  18006. userid: b[j].userid,
  18007. wid: b[j].id,
  18008. });
  18009. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18010. //选择题
  18011. this.workStudent[i].push({
  18012. works: b[j].content,
  18013. sName: b[j].name,
  18014. score: b[j].score,
  18015. img: b[j].img,
  18016. type: 12,
  18017. time: b[j].time,
  18018. userid: b[j].userid,
  18019. wid: b[j].id,
  18020. });
  18021. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18022. //选择题
  18023. this.workStudent[i].push({
  18024. works: b[j].content,
  18025. sName: b[j].name,
  18026. score: b[j].score,
  18027. img: b[j].img,
  18028. type: 15,
  18029. time: b[j].time,
  18030. userid: b[j].userid,
  18031. wid: b[j].id,
  18032. });
  18033. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18034. //英语写作
  18035. this.workStudent[i].push({
  18036. works: b[j].content,
  18037. sName: b[j].name,
  18038. score: b[j].score,
  18039. img: b[j].img,
  18040. type: 16,
  18041. time: b[j].time,
  18042. userid: b[j].userid,
  18043. wid: b[j].id,
  18044. aiCode: b[j].aiCode,
  18045. teacherCode: b[j].teacherCode
  18046. });
  18047. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18048. //英语口语
  18049. this.workStudent[i].push({
  18050. works: b[j].content,
  18051. sName: b[j].name,
  18052. score: b[j].score,
  18053. img: b[j].img,
  18054. type: 17,
  18055. time: b[j].time,
  18056. userid: b[j].userid,
  18057. wid: b[j].id,
  18058. });
  18059. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18060. //交互视频
  18061. this.workStudent[i].push({
  18062. works: b[j].content,
  18063. sName: b[j].name,
  18064. score: b[j].score,
  18065. img: b[j].img,
  18066. type: 14,
  18067. time: b[j].time,
  18068. userid: b[j].userid,
  18069. wid: b[j].id,
  18070. });
  18071. }
  18072. }
  18073. }
  18074. }
  18075. this.selectStudentLoading = false
  18076. })
  18077. .catch((err) => {
  18078. this.selectStudentLoading = false
  18079. console.error(err);
  18080. });
  18081. },
  18082. openVideo(w) {
  18083. this.videoDetail = {};
  18084. this.playerOptions1.sources[0].src = w.works;
  18085. this.videoDetail = this.playerOptions1;
  18086. this.videoVisible = true;
  18087. },
  18088. isLikes(wid, uid, t, c, isLikes,sName) {
  18089. if (isLikes == false) {
  18090. let params = [
  18091. {
  18092. wid: wid,
  18093. lid: uid,
  18094. t: t,
  18095. c: c,
  18096. },
  18097. ];
  18098. this.ajax
  18099. .post(this.$store.state.api + "insertComment", params)
  18100. .then((res) => {
  18101. this.$message({
  18102. message: this.lang.ssLikeSuccess,
  18103. type: "success",
  18104. });
  18105. this.selectSWorks();
  18106. this.selectStudent();
  18107. if(this.tType!=2){
  18108. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18109. }
  18110. })
  18111. .catch((err) => {
  18112. this.$message.error(this.lang.ssLikeFailed);
  18113. console.error(err);
  18114. });
  18115. } else {
  18116. let params = {
  18117. wid: wid,
  18118. lid: uid,
  18119. type: t,
  18120. };
  18121. this.ajax
  18122. .get(this.$store.state.api + "deleteComment", params)
  18123. .then((res) => {
  18124. this.$message({
  18125. message: this.lang.ssCancelLikeSuccess,
  18126. type: "success",
  18127. });
  18128. this.selectSWorks();
  18129. this.selectStudent();
  18130. })
  18131. .catch((err) => {
  18132. console.error(err);
  18133. });
  18134. }
  18135. },
  18136. deleteComment(wid) {
  18137. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  18138. confirmButtonText: this.lang.ssConfirm,
  18139. cancelButtonText: this.lang.ssCancel,
  18140. type: "warning",
  18141. })
  18142. .then(() => {
  18143. let params = {
  18144. id: wid,
  18145. };
  18146. this.ajax
  18147. .get(this.$store.state.api + "deleteComment2", params)
  18148. .then((res) => {
  18149. this.$message({
  18150. message: this.lang.ssDeleteCommentSuccess,
  18151. type: "success",
  18152. });
  18153. this.selectSWorks();
  18154. this.selectStudent();
  18155. })
  18156. .catch((err) => {
  18157. console.error(err);
  18158. });
  18159. })
  18160. .catch(() => {});
  18161. },
  18162. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18163. this.commentIndexJson = {
  18164. toolIndex: toolIndex,
  18165. wIndex: wIndex,
  18166. gindex: gindex,
  18167. gid: gid,
  18168. };
  18169. this.commentDetail = [];
  18170. this.commentDialogVisible = true;
  18171. this.commentDetail = w;
  18172. if (w.works && w.type == 1) {
  18173. // this.pptImgUrl = "";
  18174. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18175. if (
  18176. a.indexOf(
  18177. w.works
  18178. .split(".")
  18179. [w.works.split(".").length - 1].toLocaleUpperCase()
  18180. ) != -1
  18181. ) {
  18182. let _uuurl = await this.checkLink(w.works);
  18183. console.log(_uuurl)
  18184. this.pptImgUrl =
  18185. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18186. this.showPDF = false;
  18187. } else if (
  18188. w.works
  18189. .split(".")
  18190. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18191. ) {
  18192. this.pptImgUrl = w.works;
  18193. this.showPDF = true;
  18194. }
  18195. } else if (w.works && w.type == 3) {
  18196. this.videoDetail = {};
  18197. this.playerOptions1.sources[0].src = w.works;
  18198. this.videoDetail = this.playerOptions1;
  18199. // this.videoVisible = true;
  18200. } else if (w.works && w.type == 4) {
  18201. this.eScore = JSON.parse(w.works);
  18202. this.rateJson =
  18203. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18204. this.taskCount
  18205. ].toolChoose[toolIndex].rateJson;
  18206. } else if (w.works && w.type == 10) {
  18207. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18208. } else if (w.works && w.type == 13) {
  18209. this.wordJson =
  18210. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18211. this.taskCount
  18212. ].toolChoose[toolIndex].wordJson;
  18213. }
  18214. },
  18215. async openScore(w, index) {
  18216. this.wScore = 0;
  18217. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18218. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18219. this.commentDetail = [];
  18220. if(w.type == 17){
  18221. this.dialogVisibleENScore = true;
  18222. }else{
  18223. this.dialogVisibleScore = true;
  18224. }
  18225. this.commentDetail = w;
  18226. if (w.works && w.type == 1) {
  18227. this.pptImgUrl = "";
  18228. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18229. if (
  18230. a.indexOf(
  18231. w.works
  18232. .split(".")
  18233. [w.works.split(".").length - 1].toLocaleUpperCase()
  18234. ) != -1
  18235. ) {
  18236. let _uuurl = await this.checkLink(w.works);
  18237. console.log(_uuurl)
  18238. this.pptImgUrl =
  18239. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18240. this.showPDF = false;
  18241. } else if (
  18242. w.works
  18243. .split(".")
  18244. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18245. ) {
  18246. this.pptImgUrl = w.works;
  18247. this.showPDF = true;
  18248. }
  18249. } else if (w.works && w.type == 3) {
  18250. this.videoDetail = {};
  18251. this.playerOptions1.sources[0].src = w.works;
  18252. this.videoDetail = this.playerOptions1;
  18253. }else if(w.type == 17){
  18254. let englishVoiceJson = {}
  18255. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18256. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18257. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18258. .toolChoose[index].englishVoiceJson
  18259. : {};
  18260. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18261. }
  18262. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18263. },
  18264. addComment(wid, uid, t,detail) {
  18265. if (this.commentText == "") {
  18266. this.$message.error(this.lang.ssEnterComment);
  18267. return;
  18268. }
  18269. let params2 = [
  18270. {
  18271. wid: wid,
  18272. lid: uid,
  18273. t: t,
  18274. },
  18275. ];
  18276. this.ajax
  18277. .post(this.$store.state.api + "getComment", params2)
  18278. .then((res) => {
  18279. if (res.data[0].length > 0) {
  18280. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  18281. } else {
  18282. let params = [
  18283. {
  18284. wid: wid,
  18285. lid: uid,
  18286. t: t,
  18287. c: this.commentText,
  18288. },
  18289. ];
  18290. this.ajax
  18291. .post(this.$store.state.api + "insertComment", params)
  18292. .then((res) => {
  18293. this.$message({
  18294. message: this.lang.ssCommentSuccess,
  18295. type: "success",
  18296. });
  18297. this.commentText = "";
  18298. this.selectSWorks();
  18299. this.selectStudent();
  18300. if(this.tType!=2){
  18301. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18302. }
  18303. })
  18304. .catch((err) => {
  18305. this.$message.error(this.lang.ssCommentFailed);
  18306. console.error(err);
  18307. });
  18308. }
  18309. })
  18310. .catch((err) => {
  18311. // this.$message.error("评论失败");
  18312. console.error(err);
  18313. });
  18314. },
  18315. scoreWork(wid,sName) {
  18316. if (this.wScore == 0) {
  18317. this.$message.error(this.lang.ssPleaseRate);
  18318. return;
  18319. }
  18320. let params = [
  18321. {
  18322. wid: wid,
  18323. score: JSON.stringify({
  18324. wScore: this.wScore,
  18325. detail: this.scoreDetail,
  18326. }),
  18327. },
  18328. ];
  18329. this.ajax
  18330. .post(this.$store.state.api + "scoreWork", params)
  18331. .then((res) => {
  18332. this.$message({
  18333. message: this.lang.ssRatingSuccess,
  18334. type: "success",
  18335. });
  18336. this.wScore = 0;
  18337. this.scoreDetail = "";
  18338. this.dialogVisibleScore = false;
  18339. this.selectSWorks();
  18340. this.selectStudent();
  18341. if(this.tType!=2){
  18342. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18343. }
  18344. })
  18345. .catch((err) => {
  18346. this.$message.error(this.lang.ssRatingFailed);
  18347. console.error(err);
  18348. });
  18349. },
  18350. openXz(w, i) {
  18351. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18352. .taskJson[this.taskCount].toolChoose[i].selectJson
  18353. ? JSON.parse(
  18354. JSON.stringify(
  18355. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18356. this.taskCount
  18357. ].toolChoose[i].selectJson
  18358. )
  18359. )
  18360. : { url: "", select: [], answer: [] };
  18361. var a = w.works.split(",");
  18362. for (var k = 0; k < a.length; k++) {
  18363. a[k] = parseInt(a[k]);
  18364. }
  18365. this.selectAnswer = { answer: a, stu: w.sName };
  18366. this.isSelect = true;
  18367. this.dialogVisibleSelect = true;
  18368. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18369. },
  18370. openSen(w, i) {
  18371. this.sentenceList1 = JSON.parse(w.works);
  18372. this.sentenceList1.stuName = w.sName;
  18373. this.dialogVisibleSentence1 = true;
  18374. },
  18375. openPj(w, toolindex) {
  18376. this.isStar = true;
  18377. this.eScore = JSON.parse(w);
  18378. this.rateJson =
  18379. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18380. this.taskCount
  18381. ].toolChoose[toolindex].rateJson;
  18382. this.studentEvalDialogVisible = true;
  18383. },
  18384. openEnglishEva(id,i){
  18385. let params = {
  18386. wid: id
  18387. };
  18388. this.ajax
  18389. .get(this.$store.state.api + "selectEngWork", params)
  18390. .then((res) => {
  18391. this.evaEngJson.message = res.data[0][0];
  18392. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18393. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18394. .toolChoose[i].englishList;
  18395. this.engEvaDialogVisible = true;
  18396. })
  18397. .catch((err) => {
  18398. console.error(err);
  18399. });
  18400. },
  18401. deleteWorks(id) {
  18402. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  18403. confirmButtonText: this.lang.ssConfirm,
  18404. cancelButtonText: this.lang.ssCancel,
  18405. type: "warning",
  18406. })
  18407. .then(() => {
  18408. let params = [
  18409. {
  18410. id: id,
  18411. },
  18412. ];
  18413. this.ajax
  18414. .post(this.$store.state.api + "deleteCourseWork", params)
  18415. .then((res) => {
  18416. this.$message({
  18417. message: this.lang.ssDeleteSuccess,
  18418. type: "success",
  18419. });
  18420. this.selectStudent();
  18421. this.selectSWorks();
  18422. this.selectSLook();
  18423. })
  18424. .catch((err) => {
  18425. this.$message.error(this.lang.ssNetworkError);
  18426. console.error(err);
  18427. });
  18428. })
  18429. .catch(() => {});
  18430. },
  18431. noIsAi() {
  18432. this.$message.info(this.lang.ssNoAISetting);
  18433. },
  18434. getLang() {
  18435. let lang = "";
  18436. if (this.languageSetting == 0) {
  18437. lang = "Chinese.";
  18438. } else if (this.languageSetting == 1) {
  18439. lang = "Traditional Chinese.";
  18440. } else if (this.languageSetting == 2) {
  18441. lang = "English.";
  18442. }
  18443. return lang;
  18444. },
  18445. selectSWorks(gindex) {
  18446. if(this.selectSWorksLoading) return
  18447. this.selectSWorksLoading = true
  18448. //教师查看全部作业
  18449. let params = {
  18450. cid: this.id,
  18451. s: this.courseType,
  18452. t: this.taskCount
  18453. };
  18454. this.ajax
  18455. .get(this.$store.state.api + "selectSWorks", params)
  18456. .then(res => {
  18457. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18458. this.taskCount
  18459. ].toolChoose;
  18460. var b = res.data[0];
  18461. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18462. var y = [
  18463. "AVI",
  18464. "NAVI",
  18465. "MPEG",
  18466. "ASF",
  18467. "MOV",
  18468. "WMV",
  18469. "3GP",
  18470. "RM",
  18471. "RMVB",
  18472. "FLV",
  18473. "F4V",
  18474. "H.264",
  18475. "H.265",
  18476. "REAL VIDEO",
  18477. "MKV",
  18478. "WebM",
  18479. "HDDVD",
  18480. "MP4",
  18481. "MPG",
  18482. "M4V",
  18483. "MGV",
  18484. "OGV",
  18485. "QTM",
  18486. "STR",
  18487. "AMC",
  18488. "DVX",
  18489. "EVO",
  18490. "DAT",
  18491. "OGG",
  18492. "OGM"
  18493. ];
  18494. var d = res.data[1];
  18495. var e = res.data[2];
  18496. var f = res.data[3];
  18497. let _worksStudent = [];
  18498. var _worksStudent2 = [];
  18499. for (var i = 0; i < a.length; i++) {
  18500. _worksStudent[i] = [];
  18501. _worksStudent2[i] = [];
  18502. if (
  18503. !this.isCloseList[i] ||
  18504. this.isCloseList[i].isClose == undefined
  18505. ) {
  18506. this.isCloseList[i] = { isClose: 0 };
  18507. }
  18508. this.groupStudent[i] = [];
  18509. this.groupStudentUid[i] = [];
  18510. if (this.isGroup) {
  18511. for (
  18512. var groupI = 0;
  18513. groupI < this.courseGroup.group.length;
  18514. groupI++
  18515. ) {
  18516. this.courseGroup.group[groupI].works[i] = [];
  18517. }
  18518. }
  18519. this.isWorksS[i] = [];
  18520. this.checkJson[i] = [];
  18521. if (a[i].tool[0] == 49) {
  18522. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18523. this.groupStudent[i][gA] = [];
  18524. this.groupStudentUid[i][gA] = [];
  18525. _worksStudent[i][gA] = [];
  18526. _worksStudent2[i][gA] = [];
  18527. this.isCloseList[i][gA] = [];
  18528. for (var g = 0; g < f.length; g++) {
  18529. if (
  18530. f[g].ttype == 2 &&
  18531. this.tcid &&
  18532. this.arrayToArray(
  18533. f[g].classid ? f[g].classid.split(",") : [],
  18534. this.tcid.split(",")
  18535. ).length == 0
  18536. ) {
  18537. continue;
  18538. }
  18539. let _classId = this.arrayToArray(
  18540. this.courseDetail.juri
  18541. ? this.courseDetail.juri.split(",")
  18542. : [],
  18543. this.classId ? this.classId.split(",") : []
  18544. );
  18545. if (
  18546. gA == f[g].group &&
  18547. f[g].tool == i &&
  18548. (this.arrayToArray(
  18549. f[g].classid ? f[g].classid.split(",") : [],
  18550. this.tcid.split(",")
  18551. ).length !== 0 ||
  18552. this.arrayToArray(
  18553. f[g].classid ? f[g].classid.split(",") : [],
  18554. _classId
  18555. ).length !== 0 ||
  18556. (!this.tcid && this.tType == "1") ||
  18557. this.courseDetail.juri === "" ||
  18558. f[g].ttype == 1)
  18559. ) {
  18560. this.groupStudent[i][gA].push(f[g]);
  18561. this.groupStudentUid[i][gA].push(f[g].userid);
  18562. }
  18563. }
  18564. }
  18565. this.$forceUpdate();
  18566. }
  18567. for (var j = 0; j < b.length; j++) {
  18568. if (
  18569. b[j].ttype == 2 &&
  18570. this.tcid &&
  18571. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18572. .length == 0
  18573. ) {
  18574. continue;
  18575. }
  18576. var likesCount = 0;
  18577. var commentCount = 0;
  18578. var isLikes = false;
  18579. var commentJson = [];
  18580. var likeJson = [];
  18581. var data = b[j];
  18582. if (i == b[j].tool) {
  18583. if (data.type == 2 && a[i].tool[0] == 4) {
  18584. // if(JSON.parse(data.content)[0].anwer){
  18585. var checkL =
  18586. JSON.parse(data.content)[0].anwer instanceof Array
  18587. ? JSON.parse(data.content)[0].anwer
  18588. : JSON.parse(data.content)[0].anwer.split(",");
  18589. for (var z = 0; z < checkL.length; z++) {
  18590. if (!this.checkJson[i][z]) {
  18591. this.checkJson[i].push({
  18592. checkCount: [],
  18593. checkPerson: [],
  18594. rightPerson: []
  18595. });
  18596. }
  18597. if (!this.checkJson[i][z].checkCount.length) {
  18598. this.checkJson[i][z].checkCount = [];
  18599. let _askItemCount = JSON.parse(data.content)[0].askJson
  18600. .askJson[z].askItem;
  18601. for (var aic = 0; aic < _askItemCount; aic++) {
  18602. this.checkJson[i][z].checkCount.push(0);
  18603. }
  18604. }
  18605. if (checkL[z] instanceof Array) {
  18606. if (
  18607. JSON.parse(data.content)[0]
  18608. .anwer.sort()
  18609. .join(",") == checkL[z].sort().join(",")
  18610. ) {
  18611. this.checkJson[i][z].rightPerson.push(data.name);
  18612. }
  18613. for (var q = 0; q < checkL[z].length; q++) {
  18614. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18615. ? this.checkJson[i][z].checkPerson[
  18616. parseInt(checkL[z][q])
  18617. ].push(data.name)
  18618. : (this.checkJson[i][z].checkPerson[
  18619. parseInt(checkL[z][q])
  18620. ] = [data.name]);
  18621. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18622. ? this.checkJson[i][z].checkCount[
  18623. parseInt(checkL[z][q])
  18624. ]++
  18625. : (this.checkJson[i][z].checkCount[
  18626. parseInt(checkL[z][q])
  18627. ] = 1);
  18628. }
  18629. } else {
  18630. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18631. this.checkJson[i][z].rightPerson.push(data.name);
  18632. }
  18633. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18634. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18635. ? this.checkJson[i][z].checkPerson[
  18636. parseInt(checkL[z])
  18637. ].push(data.name)
  18638. : (this.checkJson[i][z].checkPerson[
  18639. parseInt(checkL[z])
  18640. ] = [data.name]);
  18641. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18642. ? this.checkJson[i][z].checkCount[
  18643. parseInt(checkL[z])
  18644. ]++
  18645. : (this.checkJson[i][z].checkCount[
  18646. parseInt(checkL[z])
  18647. ] = 1);
  18648. }
  18649. }
  18650. }
  18651. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18652. var checkL = JSON.parse(data.content)[0].anwer;
  18653. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  18654. continue
  18655. }
  18656. console.log(this.lang.ssChoice)
  18657. for (var z = 0; z < checkL.length; z++) {
  18658. if (!this.checkJson[i][z]) {
  18659. this.checkJson[i].push({
  18660. checkCount: [],
  18661. checkPerson: [],
  18662. rightPerson: []
  18663. });
  18664. }
  18665. if (!this.checkJson[i][z].checkCount.length) {
  18666. this.checkJson[i][z].checkCount = [];
  18667. let _askItemCount = JSON.parse(data.content)[0].testJson
  18668. .testJson[z].testItem;
  18669. for (var aic = 0; aic < _askItemCount; aic++) {
  18670. this.checkJson[i][z].checkCount.push(0);
  18671. }
  18672. }
  18673. if (checkL[z] instanceof Array) {
  18674. if (
  18675. JSON.parse(data.content)[0]
  18676. .testJson.testJson[z].answer.sort()
  18677. .join(",") == checkL[z].sort().join(",")
  18678. ) {
  18679. this.checkJson[i][z].rightPerson.push(data.name);
  18680. }
  18681. for (var q = 0; q < checkL[z].length; q++) {
  18682. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18683. ? this.checkJson[i][z].checkPerson[
  18684. parseInt(checkL[z][q])
  18685. ].push(data.name)
  18686. : (this.checkJson[i][z].checkPerson[
  18687. parseInt(checkL[z][q])
  18688. ] = [data.name]);
  18689. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18690. ? this.checkJson[i][z].checkCount[
  18691. parseInt(checkL[z][q])
  18692. ]++
  18693. : (this.checkJson[i][z].checkCount[
  18694. parseInt(checkL[z][q])
  18695. ] = 1);
  18696. }
  18697. } else {
  18698. if (
  18699. JSON.parse(data.content)[0].testJson.testJson[z]
  18700. .answer == checkL[z]
  18701. ) {
  18702. this.checkJson[i][z].rightPerson.push(data.name);
  18703. }
  18704. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18705. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18706. ? this.checkJson[i][z].checkPerson[
  18707. parseInt(checkL[z])
  18708. ].push(data.name)
  18709. : (this.checkJson[i][z].checkPerson[
  18710. parseInt(checkL[z])
  18711. ] = [data.name]);
  18712. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18713. ? this.checkJson[i][z].checkCount[
  18714. parseInt(checkL[z])
  18715. ]++
  18716. : (this.checkJson[i][z].checkCount[
  18717. parseInt(checkL[z])
  18718. ] = 1);
  18719. }
  18720. }
  18721. }
  18722. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18723. var checkL = JSON.parse(data.content);
  18724. for (var z = 0; z < checkL.length; z++) {
  18725. if (!this.checkJson[i][z]) {
  18726. this.checkJson[i].push({
  18727. checkCount: [],
  18728. checkPerson: [],
  18729. rightPerson: []
  18730. });
  18731. }
  18732. this.checkJson[i][z].checkPerson.push(data.name);
  18733. if (
  18734. checkL[z].chooseSenList.toString() ==
  18735. checkL[z].rightAnswer.toString()
  18736. ) {
  18737. this.checkJson[i][z].rightPerson.push(data.name);
  18738. }
  18739. }
  18740. }
  18741. for (var k = 0; k < d.length; k++) {
  18742. //点赞
  18743. if (d[k].workId == b[j].id) {
  18744. likesCount++;
  18745. likeJson.push(d[k]);
  18746. if (d[k].likesId == this.userid) {
  18747. isLikes = true;
  18748. }
  18749. }
  18750. }
  18751. for (var l = 0; l < e.length; l++) {
  18752. //评论
  18753. if (e[l].workId == b[j].id) {
  18754. if (e[l].comment != "") {
  18755. commentCount++;
  18756. commentJson.push({
  18757. commentText: e[l].comment,
  18758. commentTime: e[l].commentTime,
  18759. commentPeople: e[l].commentPeople,
  18760. userid: e[l].userid,
  18761. wid: e[l].id
  18762. });
  18763. }
  18764. }
  18765. }
  18766. if (
  18767. (b[j].type == 1 ||
  18768. b[j].type == 4 ||
  18769. b[j].type == 5 ||
  18770. b[j].type == 6 ||
  18771. b[j].type == 12 ||
  18772. b[j].type == 7) &&
  18773. a[i].tool[0] != 15 &&
  18774. a[i].tool[0] != 4 &&
  18775. a[i].tool[0] != 45 &&
  18776. a[i].tool[0] != 50 &&
  18777. a[i].tool[0] != 32 &&
  18778. a[i].tool[0] != 57 &&
  18779. a[i].tool[0] != 52
  18780. ) {
  18781. if (
  18782. c.indexOf(
  18783. b[j].content
  18784. .split(".")
  18785. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18786. ) != -1 &&
  18787. a[i].tool[0] == 16 &&
  18788. b[j].atool != 50
  18789. ) {
  18790. let _works = {
  18791. userid: b[j].userid,
  18792. ateacher: b[j].ateacher,
  18793. wid: b[j].id,
  18794. works: b[j].content,
  18795. sName: b[j].name,
  18796. type: 1,
  18797. ttype: b[j].ttype,
  18798. time: b[j].time,
  18799. score: b[j].score,
  18800. img: b[j].img,
  18801. likesCount: likesCount,
  18802. commentCount: commentCount,
  18803. isLikes: isLikes,
  18804. commentJson: commentJson,
  18805. likeJson: likeJson
  18806. };
  18807. if (this.isGroup) {
  18808. let isGw = 1;
  18809. for (
  18810. var groupI = 0;
  18811. groupI < this.courseGroup.group.length;
  18812. groupI++
  18813. ) {
  18814. let gid = this.courseGroup.group[groupI].id;
  18815. if (
  18816. this.courseGroupStudentUid[gid].indexOf(
  18817. b[j].userid
  18818. ) != -1
  18819. ) {
  18820. isGw = 2;
  18821. this.courseGroup.group[groupI].works[i].push(_works);
  18822. break;
  18823. }
  18824. }
  18825. if (isGw == 1) {
  18826. _worksStudent[i].push(_works);
  18827. }
  18828. } else {
  18829. _worksStudent[i].push(_works);
  18830. }
  18831. _worksStudent2[i].push(_works);
  18832. this.isWorksS[i].push({
  18833. uid: b[j].userid,
  18834. sName: b[j].name
  18835. });
  18836. } else if (
  18837. y.indexOf(
  18838. b[j].content
  18839. .split(".")
  18840. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18841. ) != -1 &&
  18842. a[i].tool[0] == 16 &&
  18843. b[j].atool != 50
  18844. ) {
  18845. let _works = {
  18846. userid: b[j].userid,
  18847. ateacher: b[j].ateacher,
  18848. wid: b[j].id,
  18849. works: b[j].content,
  18850. sName: b[j].name,
  18851. type: 3,
  18852. ttype: b[j].ttype,
  18853. time: b[j].time,
  18854. score: b[j].score,
  18855. img: b[j].img,
  18856. likesCount: likesCount,
  18857. commentCount: commentCount,
  18858. isLikes: isLikes,
  18859. commentJson: commentJson,
  18860. likeJson: likeJson
  18861. };
  18862. if (this.isGroup) {
  18863. let isGw = 1;
  18864. for (
  18865. var groupI = 0;
  18866. groupI < this.courseGroup.group.length;
  18867. groupI++
  18868. ) {
  18869. let gid = this.courseGroup.group[groupI].id;
  18870. if (
  18871. this.courseGroupStudentUid[gid].indexOf(
  18872. b[j].userid
  18873. ) != -1
  18874. ) {
  18875. isGw = 2;
  18876. this.courseGroup.group[groupI].works[i].push(_works);
  18877. break;
  18878. }
  18879. }
  18880. if (isGw == 1) {
  18881. _worksStudent[i].push(_works);
  18882. }
  18883. } else {
  18884. _worksStudent[i].push(_works);
  18885. }
  18886. _worksStudent2[i].push(_works);
  18887. this.isWorksS[i].push({
  18888. uid: b[j].userid,
  18889. sName: b[j].name
  18890. });
  18891. } else if (b[j].type == 6 && b[j].atool != 50) {
  18892. let _works = {
  18893. userid: b[j].userid,
  18894. ateacher: b[j].ateacher,
  18895. wid: b[j].id,
  18896. works: b[j].content,
  18897. sName: b[j].name,
  18898. type: 4,
  18899. ttype: b[j].ttype,
  18900. time: b[j].time,
  18901. score: b[j].score,
  18902. img: b[j].img,
  18903. likesCount: likesCount,
  18904. commentCount: commentCount,
  18905. isLikes: isLikes,
  18906. commentJson: commentJson,
  18907. likeJson: likeJson
  18908. };
  18909. _worksStudent[i].push(_works);
  18910. _worksStudent2[i].push(_works);
  18911. this.isWorksS[i].push({
  18912. uid: b[j].userid,
  18913. sName: b[j].name
  18914. });
  18915. } else if (b[j].type == 7 && b[j].atool != 50) {
  18916. let _work = {
  18917. userid: b[j].userid,
  18918. ateacher: b[j].ateacher,
  18919. wid: b[j].id,
  18920. works: b[j].content,
  18921. sName: b[j].name,
  18922. type: 5,
  18923. ttype: b[j].ttype,
  18924. time: b[j].time,
  18925. score: b[j].score,
  18926. img: b[j].img,
  18927. likesCount: likesCount,
  18928. commentCount: commentCount,
  18929. isLikes: isLikes,
  18930. commentJson: commentJson,
  18931. likeJson: likeJson
  18932. };
  18933. _worksStudent[i].push(_work);
  18934. _worksStudent2[i].push(_work);
  18935. this.isWorksS[i].push({
  18936. uid: b[j].userid,
  18937. sName: b[j].name
  18938. });
  18939. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18940. let _works = {
  18941. userid: b[j].userid,
  18942. ateacher: b[j].ateacher,
  18943. wid: b[j].id,
  18944. works: b[j].content,
  18945. sName: b[j].name,
  18946. type: 12,
  18947. ttype: b[j].ttype,
  18948. time: b[j].time,
  18949. score: b[j].score,
  18950. img: b[j].img,
  18951. likesCount: likesCount,
  18952. commentCount: commentCount,
  18953. isLikes: isLikes,
  18954. commentJson: commentJson,
  18955. likeJson: likeJson
  18956. };
  18957. if (this.isGroup) {
  18958. let isGw = 1;
  18959. for (
  18960. var groupI = 0;
  18961. groupI < this.courseGroup.group.length;
  18962. groupI++
  18963. ) {
  18964. let gid = this.courseGroup.group[groupI].id;
  18965. if (
  18966. this.courseGroupStudentUid[gid].indexOf(
  18967. b[j].userid
  18968. ) != -1
  18969. ) {
  18970. isGw = 2;
  18971. this.courseGroup.group[groupI].works[i].push(_works);
  18972. break;
  18973. }
  18974. }
  18975. if (isGw == 1) {
  18976. _worksStudent[i].push(_works);
  18977. }
  18978. } else {
  18979. _worksStudent[i].push(_works);
  18980. }
  18981. _worksStudent2[i].push(_works);
  18982. this.isWorksS[i].push({
  18983. uid: b[j].userid,
  18984. sName: b[j].name
  18985. });
  18986. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18987. let _works = {
  18988. userid: b[j].userid,
  18989. ateacher: b[j].ateacher,
  18990. wid: b[j].id,
  18991. works: b[j].content,
  18992. sName: b[j].name,
  18993. type: 0,
  18994. ttype: b[j].ttype,
  18995. time: b[j].time,
  18996. score: b[j].score,
  18997. img: b[j].img,
  18998. likesCount: likesCount,
  18999. commentCount: commentCount,
  19000. isLikes: isLikes,
  19001. commentJson: commentJson,
  19002. likeJson: likeJson
  19003. };
  19004. if (this.isGroup) {
  19005. let isGw = 1;
  19006. for (
  19007. var groupI = 0;
  19008. groupI < this.courseGroup.group.length;
  19009. groupI++
  19010. ) {
  19011. let gid = this.courseGroup.group[groupI].id;
  19012. if (
  19013. this.courseGroupStudentUid[gid].indexOf(
  19014. b[j].userid
  19015. ) != -1
  19016. ) {
  19017. isGw = 2;
  19018. this.courseGroup.group[groupI].works[i].push(_works);
  19019. break;
  19020. }
  19021. }
  19022. if (isGw == 1) {
  19023. _worksStudent[i].push(_works);
  19024. }
  19025. } else {
  19026. _worksStudent[i].push(_works);
  19027. }
  19028. _worksStudent2[i].push(_works);
  19029. this.isWorksS[i].push({
  19030. uid: b[j].userid,
  19031. sName: b[j].name
  19032. });
  19033. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19034. let _works = {
  19035. userid: b[j].userid,
  19036. ateacher: b[j].ateacher,
  19037. wid: b[j].id,
  19038. works: b[j].content,
  19039. sName: b[j].name,
  19040. type: 0,
  19041. ttype: b[j].ttype,
  19042. time: b[j].time,
  19043. score: b[j].score,
  19044. img: b[j].img,
  19045. likesCount: likesCount,
  19046. commentCount: commentCount,
  19047. isLikes: isLikes,
  19048. commentJson: commentJson,
  19049. likeJson: likeJson
  19050. };
  19051. if (this.isGroup) {
  19052. let isGw = 1;
  19053. for (
  19054. var groupI = 0;
  19055. groupI < this.courseGroup.group.length;
  19056. groupI++
  19057. ) {
  19058. let gid = this.courseGroup.group[groupI].id;
  19059. if (
  19060. this.courseGroupStudentUid[gid].indexOf(
  19061. b[j].userid
  19062. ) != -1
  19063. ) {
  19064. isGw = 2;
  19065. this.courseGroup.group[groupI].works[i].push(_works);
  19066. break;
  19067. }
  19068. }
  19069. if (isGw == 1) {
  19070. _worksStudent[i].push(_works);
  19071. }
  19072. } else {
  19073. _worksStudent[i].push(_works);
  19074. }
  19075. _worksStudent2[i].push(_works);
  19076. this.isWorksS[i].push({
  19077. uid: b[j].userid,
  19078. sName: b[j].name
  19079. });
  19080. }
  19081. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19082. let _works = {
  19083. userid: b[j].userid,
  19084. ateacher: b[j].ateacher,
  19085. wid: b[j].id,
  19086. works: b[j].content,
  19087. sName: b[j].name,
  19088. type: 2,
  19089. ttype: b[j].ttype,
  19090. time: b[j].time,
  19091. score: b[j].score,
  19092. img: b[j].img,
  19093. likesCount: likesCount,
  19094. commentCount: commentCount,
  19095. isLikes: isLikes,
  19096. commentJson: commentJson,
  19097. likeJson: likeJson
  19098. };
  19099. if (this.isGroup) {
  19100. let isGw = 1;
  19101. for (
  19102. var groupI = 0;
  19103. groupI < this.courseGroup.group.length;
  19104. groupI++
  19105. ) {
  19106. let gid = this.courseGroup.group[groupI].id;
  19107. if (
  19108. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19109. -1
  19110. ) {
  19111. isGw = 2;
  19112. this.courseGroup.group[groupI].works[i].push(_works);
  19113. break;
  19114. }
  19115. }
  19116. if (isGw == 1) {
  19117. _worksStudent[i].push(_works);
  19118. }
  19119. } else {
  19120. _worksStudent[i].push(_works);
  19121. }
  19122. _worksStudent2[i].push(_works);
  19123. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19124. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19125. let _works = {
  19126. userid: b[j].userid,
  19127. ateacher: b[j].ateacher,
  19128. wid: b[j].id,
  19129. works: b[j].content,
  19130. sName: b[j].name,
  19131. type: 20,
  19132. ttype: b[j].ttype,
  19133. time: b[j].time,
  19134. score: b[j].score,
  19135. img: b[j].img,
  19136. likesCount: likesCount,
  19137. commentCount: commentCount,
  19138. isLikes: isLikes,
  19139. commentJson: commentJson,
  19140. likeJson: likeJson
  19141. };
  19142. if (this.isGroup) {
  19143. let isGw = 1;
  19144. for (
  19145. var groupI = 0;
  19146. groupI < this.courseGroup.group.length;
  19147. groupI++
  19148. ) {
  19149. let gid = this.courseGroup.group[groupI].id;
  19150. if (
  19151. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19152. -1
  19153. ) {
  19154. isGw = 2;
  19155. this.courseGroup.group[groupI].works[i].push(_works);
  19156. break;
  19157. }
  19158. }
  19159. if (isGw == 1) {
  19160. _worksStudent[i].push(_works);
  19161. }
  19162. } else {
  19163. _worksStudent[i].push(_works);
  19164. }
  19165. _worksStudent2[i].push(_works);
  19166. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19167. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19168. //问卷
  19169. let _work = {
  19170. userid: b[j].userid,
  19171. ateacher: b[j].ateacher,
  19172. wid: b[j].id,
  19173. works: b[j].content,
  19174. sName: b[j].name,
  19175. type: 2,
  19176. ttype: b[j].ttype,
  19177. time: b[j].time,
  19178. score: b[j].score,
  19179. img: b[j].img,
  19180. likesCount: likesCount,
  19181. commentCount: commentCount,
  19182. isLikes: isLikes,
  19183. commentJson: commentJson,
  19184. likeJson: likeJson
  19185. };
  19186. _worksStudent[i].push(_work);
  19187. _worksStudent2[i].push(_work);
  19188. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19189. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19190. //选择题
  19191. let _work = {
  19192. userid: b[j].userid,
  19193. ateacher: b[j].ateacher,
  19194. wid: b[j].id,
  19195. works: b[j].content,
  19196. sName: b[j].name,
  19197. type: 8,
  19198. ttype: b[j].ttype,
  19199. time: b[j].time,
  19200. score: b[j].score,
  19201. img: b[j].img,
  19202. likesCount: likesCount,
  19203. commentCount: commentCount,
  19204. isLikes: isLikes,
  19205. commentJson: commentJson,
  19206. likeJson: likeJson
  19207. };
  19208. _worksStudent[i].push(_work);
  19209. _worksStudent2[i].push(_work);
  19210. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19211. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19212. //选择题
  19213. let _work = {
  19214. userid: b[j].userid,
  19215. ateacher: b[j].ateacher,
  19216. wid: b[j].id,
  19217. works: b[j].content,
  19218. sName: b[j].name,
  19219. type: 9,
  19220. ttype: b[j].ttype,
  19221. time: b[j].time,
  19222. score: b[j].score,
  19223. img: b[j].img,
  19224. likesCount: likesCount,
  19225. commentCount: commentCount,
  19226. isLikes: isLikes,
  19227. commentJson: commentJson,
  19228. likeJson: likeJson
  19229. };
  19230. _worksStudent[i].push(_work);
  19231. _worksStudent2[i].push(_work);
  19232. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19233. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19234. //选择题
  19235. let _work = {
  19236. userid: b[j].userid,
  19237. ateacher: b[j].ateacher,
  19238. wid: b[j].id,
  19239. works: b[j].content,
  19240. sName: b[j].name,
  19241. type: 10,
  19242. ttype: b[j].ttype,
  19243. time: b[j].time,
  19244. score: b[j].score,
  19245. img: b[j].img,
  19246. likesCount: likesCount,
  19247. commentCount: commentCount,
  19248. isLikes: isLikes,
  19249. commentJson: commentJson,
  19250. likeJson: likeJson
  19251. };
  19252. _worksStudent[i].push(_work);
  19253. _worksStudent2[i].push(_work);
  19254. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19255. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19256. //选择题
  19257. let _work = {
  19258. userid: b[j].userid,
  19259. ateacher: b[j].ateacher,
  19260. wid: b[j].id,
  19261. works: b[j].content,
  19262. sName: b[j].name,
  19263. type: 13,
  19264. ttype: b[j].ttype,
  19265. time: b[j].time,
  19266. score: b[j].score,
  19267. img: b[j].img,
  19268. likesCount: likesCount,
  19269. commentCount: commentCount,
  19270. isLikes: isLikes,
  19271. commentJson: commentJson,
  19272. likeJson: likeJson
  19273. };
  19274. _worksStudent[i].push(_work);
  19275. _worksStudent2[i].push(_work);
  19276. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19277. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19278. //选择题
  19279. let _work = {
  19280. userid: b[j].userid,
  19281. ateacher: b[j].ateacher,
  19282. wid: b[j].id,
  19283. works: b[j].content,
  19284. sName: b[j].name,
  19285. type: 16,
  19286. ttype: b[j].ttype,
  19287. time: b[j].time,
  19288. score: b[j].score,
  19289. img: b[j].img,
  19290. likesCount: likesCount,
  19291. commentCount: commentCount,
  19292. isLikes: isLikes,
  19293. commentJson: commentJson,
  19294. aiCode: b[j].aiCode,
  19295. teacherCode: b[j].teacherCode,
  19296. likeJson: likeJson
  19297. };
  19298. _worksStudent[i].push(_work);
  19299. _worksStudent2[i].push(_work);
  19300. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19301. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19302. //选择题
  19303. let _work = {
  19304. userid: b[j].userid,
  19305. ateacher: b[j].ateacher,
  19306. wid: b[j].id,
  19307. works: b[j].content,
  19308. sName: b[j].name,
  19309. type: 17,
  19310. ttype: b[j].ttype,
  19311. time: b[j].time,
  19312. score: b[j].score,
  19313. img: b[j].img,
  19314. likesCount: likesCount,
  19315. commentCount: commentCount,
  19316. isLikes: isLikes,
  19317. commentJson: commentJson,
  19318. likeJson: likeJson
  19319. };
  19320. _worksStudent[i].push(_work);
  19321. _worksStudent2[i].push(_work);
  19322. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19323. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19324. //交互视频
  19325. let _work = {
  19326. userid: b[j].userid,
  19327. ateacher: b[j].ateacher,
  19328. wid: b[j].id,
  19329. works: b[j].content,
  19330. sName: b[j].name,
  19331. type: 14,
  19332. ttype: b[j].ttype,
  19333. time: b[j].time,
  19334. score: b[j].score,
  19335. img: b[j].img,
  19336. likesCount: likesCount,
  19337. commentCount: commentCount,
  19338. isLikes: isLikes,
  19339. commentJson: commentJson,
  19340. likeJson: likeJson
  19341. };
  19342. _worksStudent[i].push(_work);
  19343. _worksStudent2[i].push(_work);
  19344. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19345. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19346. let _gindex = JSON.parse(b[j].content);
  19347. if (
  19348. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19349. b[j].userid
  19350. ) != -1
  19351. ) {
  19352. let _work = {
  19353. userid: b[j].userid,
  19354. ateacher: b[j].ateacher,
  19355. wid: b[j].id,
  19356. works: _gindex.url,
  19357. sName: b[j].name,
  19358. type: _gindex.type,
  19359. ttype: b[j].ttype,
  19360. time: b[j].time,
  19361. score: b[j].score,
  19362. img: b[j].img,
  19363. likesCount: likesCount,
  19364. commentCount: commentCount,
  19365. isLikes: isLikes,
  19366. commentJson: commentJson,
  19367. likeJson: likeJson
  19368. };
  19369. _worksStudent[i][_gindex.groupIndex].push(_work);
  19370. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19371. }
  19372. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19373. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19374. let _work = {
  19375. userid: b[j].userid,
  19376. ateacher: b[j].ateacher,
  19377. wid: b[j].id,
  19378. works: b[j].content,
  19379. sName: b[j].name ? b[j].name : b[j].userid,
  19380. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19381. ttype: b[j].ttype,
  19382. time: b[j].time,
  19383. score: b[j].score,
  19384. img: b[j].img,
  19385. likesCount: likesCount,
  19386. commentCount: commentCount,
  19387. isLikes: isLikes,
  19388. commentJson: commentJson,
  19389. likeJson: likeJson
  19390. };
  19391. _worksStudent[i].push(_work);
  19392. _worksStudent2[i].push(_work);
  19393. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19394. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19395. let _work = {
  19396. userid: b[j].userid,
  19397. ateacher: b[j].ateacher,
  19398. wid: b[j].id,
  19399. works: b[j].content,
  19400. sName: b[j].name ? b[j].name : b[j].userid,
  19401. type: 12,
  19402. ttype: b[j].ttype,
  19403. time: b[j].time,
  19404. score: b[j].score,
  19405. img: b[j].img,
  19406. likesCount: likesCount,
  19407. commentCount: commentCount,
  19408. isLikes: isLikes,
  19409. commentJson: commentJson,
  19410. likeJson: likeJson
  19411. };
  19412. _worksStudent[i].push(_work);
  19413. _worksStudent2[i].push(_work);
  19414. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19415. } else if (
  19416. a[i].tool[0] == 57 &&
  19417. b[j].atool == 57 &&
  19418. b[j].type == 12
  19419. ) {
  19420. let _work = {
  19421. userid: b[j].userid,
  19422. ateacher: b[j].ateacher,
  19423. wid: b[j].id,
  19424. works: b[j].content,
  19425. sName: b[j].name ? b[j].name : b[j].userid,
  19426. type: 12,
  19427. ttype: b[j].ttype,
  19428. time: b[j].time,
  19429. score: b[j].score,
  19430. img: b[j].img,
  19431. likesCount: likesCount,
  19432. commentCount: commentCount,
  19433. isLikes: isLikes,
  19434. commentJson: commentJson,
  19435. likeJson: likeJson
  19436. };
  19437. _worksStudent[i].push(_work);
  19438. _worksStudent2[i].push(_work);
  19439. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19440. } else if (
  19441. a[i].tool[0] == 57 &&
  19442. b[j].atool == 57 &&
  19443. b[j].type == 15
  19444. ) {
  19445. let _work = {
  19446. userid: b[j].userid,
  19447. ateacher: b[j].ateacher,
  19448. wid: b[j].id,
  19449. works: b[j].content,
  19450. sName: b[j].name ? b[j].name : b[j].userid,
  19451. type: 15,
  19452. ttype: b[j].ttype,
  19453. time: b[j].time,
  19454. score: b[j].score,
  19455. img: b[j].img,
  19456. likesCount: likesCount,
  19457. commentCount: commentCount,
  19458. isLikes: isLikes,
  19459. commentJson: commentJson,
  19460. likeJson: likeJson
  19461. };
  19462. _worksStudent[i].push(_work);
  19463. _worksStudent2[i].push(_work);
  19464. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19465. }
  19466. }
  19467. }
  19468. if (_worksStudent[i] && _worksStudent[i].length) {
  19469. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19470. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19471. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19472. var scoreA = parseFloat(jscoreA);
  19473. var scoreB = parseFloat(jscoreB);
  19474. if (scoreA == scoreB) {
  19475. return b.likesCount - a.likesCount;
  19476. }
  19477. return scoreB - scoreA;
  19478. });
  19479. if (this.isGroup) {
  19480. for (
  19481. var groupI = 0;
  19482. groupI < this.courseGroup.group.length;
  19483. groupI++
  19484. ) {
  19485. this.courseGroup.group[groupI].works[
  19486. i
  19487. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19488. a,
  19489. b
  19490. ) {
  19491. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19492. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19493. var scoreA = parseFloat(jscoreA);
  19494. var scoreB = parseFloat(jscoreB);
  19495. if (scoreA == scoreB) {
  19496. return b.likesCount - a.likesCount;
  19497. }
  19498. return scoreB - scoreA;
  19499. });
  19500. }
  19501. }
  19502. }
  19503. }
  19504. this.timeWorkList = _worksStudent2;
  19505. for (var i = 0; i < a.length; i++) {
  19506. for (var j = 0; j < b.length; j++) {
  19507. var data = b[j];
  19508. if (i == b[j].tool) {
  19509. if (data.type == 2 || data.type == 8) {
  19510. for (var z = 0; z < this.checkJson[i].length; z++) {
  19511. this.checkJson[i][z].checkPerent = [];
  19512. this.checkJson[i][z].right = Math.round(
  19513. (this.checkJson[i][z].rightPerson.length /
  19514. parseInt(_worksStudent[i].length)) *
  19515. 100
  19516. );
  19517. let aaaa = this.checkJson[i][z];
  19518. for (
  19519. var k = 0;
  19520. k < this.checkJson[i][z].checkCount.length;
  19521. k++
  19522. ) {
  19523. this.checkJson[i][z].checkPerent.push(
  19524. Math.round(
  19525. (this.checkJson[i][z].checkCount[k] /
  19526. parseInt(_worksStudent[i].length)) *
  19527. 100
  19528. )
  19529. );
  19530. }
  19531. }
  19532. } else if (data.type == 9) {
  19533. for (var z = 0; z < this.checkJson[i].length; z++) {
  19534. this.checkJson[i][z].checkPerent = [];
  19535. this.checkJson[i][z].right = Math.round(
  19536. (this.checkJson[i][z].rightPerson.length /
  19537. this.checkJson[i][z].checkPerson.length) *
  19538. 100
  19539. );
  19540. }
  19541. }
  19542. }
  19543. }
  19544. }
  19545. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19546. this.joinGroup(gindex);
  19547. }
  19548. this.worksStudent = _worksStudent;
  19549. this.selectWorksStudent();
  19550. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19551. this.$nextTick(() => {
  19552. setTimeout(() => {
  19553. setTimeout(() => {
  19554. this.panToolHeight("tool-" + ci);
  19555. }, 500);
  19556. }, 0);
  19557. });
  19558. }
  19559. this.selectSWorksLoading = false
  19560. })
  19561. .catch(err => {
  19562. this.selectSWorksLoading = false
  19563. console.error(err);
  19564. });
  19565. },
  19566. pngToWhiteBg(file) {
  19567. const _file = file;
  19568. let read = new FileReader();
  19569. read.readAsDataURL(file); // 文件转base64
  19570. return new Promise((resolve, reject) => {
  19571. read.onload = (e) => {
  19572. let img = new Image();
  19573. img.src = e.target.result;
  19574. img.onload = async () => {
  19575. // 生成canvas
  19576. let canvas = document.createElement("canvas");
  19577. let context = canvas.getContext("2d");
  19578. // 绘制图片到canvas上
  19579. canvas.width = img.width;
  19580. canvas.height = img.height;
  19581. // 在canvas绘制前填充白色背景
  19582. context.fillStyle = "#fff";
  19583. context.fillRect(0, 0, canvas.width, canvas.height);
  19584. context.drawImage(img, 0, 0);
  19585. let base64 = canvas.toDataURL(file["type"], 1);
  19586. let newFile = this.dataUrlToFile(base64, _file);
  19587. resolve(newFile);
  19588. };
  19589. };
  19590. });
  19591. },
  19592. dataUrlToFile(dataurl, file) {
  19593. let arr = dataurl.split(","),
  19594. mime = arr[0].match(/:(.*?);/)[1],
  19595. bstr = atob(arr[1]),
  19596. n = bstr.length,
  19597. u8arr = new Uint8Array(n);
  19598. while (n--) {
  19599. u8arr[n] = bstr.charCodeAt(n);
  19600. }
  19601. // return new Blob([u8arr], { type: mime });
  19602. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19603. type: mime,
  19604. });
  19605. },
  19606. async beforeUpload1(event, type, i) {
  19607. // this.$message.success('进入上传')
  19608. var file = "";
  19609. if (type == 5) {
  19610. file = event;
  19611. } else {
  19612. file = event.target.files[0];
  19613. }
  19614. var credentials = {
  19615. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19616. secretAccessKey: "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",
  19617. }; //秘钥形式的登录上传
  19618. window.AWS.config.update(credentials);
  19619. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19620. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19621. var _this = this;
  19622. _this.progress = 0;
  19623. _this.proVisible = true;
  19624. _this.isFinishSize = 0;
  19625. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19626. var b = [
  19627. "DOC",
  19628. "DOCX",
  19629. "DOCM",
  19630. "DOTM",
  19631. "DOTX",
  19632. "PPTX",
  19633. "PPSX",
  19634. "PPT",
  19635. "PPS",
  19636. "PPTM",
  19637. "POTM",
  19638. "PPAM",
  19639. "POTX",
  19640. "PPSM",
  19641. ];
  19642. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19643. var photoA = [
  19644. "BMP",
  19645. "GIF",
  19646. "PNG",
  19647. "JPEG",
  19648. "JPEG",
  19649. "JPG",
  19650. "TIF",
  19651. "PCX",
  19652. "TGA",
  19653. "EXIF",
  19654. "FPX",
  19655. "SVG",
  19656. "APNG",
  19657. ];
  19658. // if (
  19659. // b.indexOf(
  19660. // file.name
  19661. // .split(".")
  19662. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19663. // ) != -1
  19664. // ) {
  19665. // if (file.size / 1024 / 1024 > 10) {
  19666. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19667. // return;
  19668. // }
  19669. // } else if (
  19670. // excelA.indexOf(
  19671. // file.name
  19672. // .split(".")
  19673. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19674. // ) != "-1"
  19675. // ) {
  19676. // if (file.size / 1024 / 1024 > 5) {
  19677. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19678. // return;
  19679. // }
  19680. // }
  19681. if (
  19682. photoA.indexOf(
  19683. file.name
  19684. .split(".")
  19685. [file.name.split(".").length - 1].toLocaleUpperCase()
  19686. ) != -1 &&
  19687. type != 4
  19688. ) {
  19689. // const blob = await imageConversion.compress(file, 0.8)
  19690. file = await this.pngToWhiteBg(file);
  19691. const blob = await imageConversion.compressAccurately(file, 256);
  19692. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19693. file = new File([blob], file.name, { type: file.type });
  19694. }
  19695. if (file) {
  19696. var params = {
  19697. Key:
  19698. file.name.split(".")[0] +
  19699. new Date().getTime() +
  19700. "." +
  19701. file.name.split(".")[file.name.split(".").length - 1],
  19702. ContentType: file.type,
  19703. Body: file,
  19704. "Access-Control-Allow-Credentials": "*",
  19705. ACL: "public-read",
  19706. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19707. var options = {
  19708. // partSize: 2048 * 1024 * 1024,
  19709. partSize: 1024 * 1024 * 1024,
  19710. queueSize: 2,
  19711. leavePartsOnError: true,
  19712. };
  19713. bucket
  19714. .upload(params, options)
  19715. .on("httpUploadProgress", function (evt) {
  19716. //这里可以写进度条
  19717. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19718. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19719. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19720. })
  19721. .send(function (err, data) {
  19722. _this.progress = 100;
  19723. _this.isFinishSize = _this.isAllSize;
  19724. setTimeout(() => {
  19725. _this.proVisible = false;
  19726. }, 1000);
  19727. if (err) {
  19728. var a = _this.$refs.upload1.uploadFiles;
  19729. a.splice(a.length - 1, a.length);
  19730. _this.$message.error(this.lang.ssUploadFailed);
  19731. } else {
  19732. // _this.$message.success('上传成功')
  19733. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19734. var c = [
  19735. "AVI",
  19736. "NAVI",
  19737. "MPEG",
  19738. "ASF",
  19739. "MOV",
  19740. "WMV",
  19741. "3GP",
  19742. "RM",
  19743. "RMVB",
  19744. "FLV",
  19745. "F4V",
  19746. "H.264",
  19747. "H.265",
  19748. "REAL VIDEO",
  19749. "MKV",
  19750. "WebM",
  19751. "HDDVD",
  19752. "MP4",
  19753. "MPG",
  19754. "M4V",
  19755. "MGV",
  19756. "OGV",
  19757. "QTM",
  19758. "STR",
  19759. "AMC",
  19760. "DVX",
  19761. "EVO",
  19762. "DAT",
  19763. "OGG",
  19764. "OGM",
  19765. ];
  19766. if (type == 1) {
  19767. _this.studyJuri[0].cover.push({
  19768. name: file.name,
  19769. url: data.Location,
  19770. uid: file.uid,
  19771. });
  19772. if (
  19773. c.indexOf(
  19774. _this.studyJuri[0].cover[0].url
  19775. .split(".")
  19776. [
  19777. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19778. ].toLocaleUpperCase()
  19779. ) != -1
  19780. ) {
  19781. _this.fileType = 2;
  19782. } else if (
  19783. b.indexOf(
  19784. _this.studyJuri[0].cover[0].url
  19785. .split(".")
  19786. [
  19787. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19788. ].toLocaleUpperCase()
  19789. ) != -1
  19790. ) {
  19791. _this.fileType = 1;
  19792. } else if (
  19793. photoA.indexOf(
  19794. _this.studyJuri[0].cover[0].url
  19795. .split(".")
  19796. [
  19797. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19798. ].toLocaleUpperCase()
  19799. ) != -1
  19800. ) {
  19801. _this.fileType = 0;
  19802. } else {
  19803. _this.fileType = 3;
  19804. }
  19805. _this.imgChange(null, null, type);
  19806. } else if (type == 2) {
  19807. _this.upToolImg = data.Location;
  19808. _this.imgChange(null, null, type);
  19809. _this.addCourseWorks(i);
  19810. } else if (type == 4) {
  19811. _this.addPz("3", data.Location);
  19812. } else if (type == 5) {
  19813. _this.addImgDrawImG(data.Location);
  19814. } else if (type == 6) {
  19815. var _ftype = 1;
  19816. if (
  19817. c.indexOf(
  19818. data.Location.split(".")[
  19819. data.Location.split(".").length - 1
  19820. ].toLocaleUpperCase()
  19821. ) != -1
  19822. ) {
  19823. _ftype = 5;
  19824. } else if (
  19825. b.indexOf(
  19826. data.Location.split(".")[
  19827. data.Location.split(".").length - 1
  19828. ].toLocaleUpperCase()
  19829. ) != -1
  19830. ) {
  19831. _ftype = 4;
  19832. } else {
  19833. _ftype = 1;
  19834. }
  19835. _this.plworkFile.push({
  19836. name: file.name,
  19837. url: data.Location,
  19838. uid: file.uid,
  19839. fileType: _ftype,
  19840. username:
  19841. _this.plworkFile.length > 10
  19842. ? _this.plworkFile.length + 1
  19843. : "0" + (_this.plworkFile.length + 1),
  19844. });
  19845. } else if (type == 7) {
  19846. _this.addCourseWorksGong(i, data.Location, 32);
  19847. } else if (type == 8) {
  19848. _this.addCourseWorksGong(i, data.Location, 57);
  19849. }
  19850. _this.imgChange(null, null, type);
  19851. console.log(data.Location);
  19852. // _this.$message.success('上传成功'+data.Location)
  19853. }
  19854. });
  19855. }
  19856. },
  19857. async beforeUpload3(event, type, i) {
  19858. // this.$message.success('进入上传')
  19859. let file = "";
  19860. let cfindex2 = 0;
  19861. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19862. file = event.target.files[cfindex];
  19863. var credentials = {
  19864. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19865. secretAccessKey: "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",
  19866. }; //秘钥形式的登录上传
  19867. window.AWS.config.update(credentials);
  19868. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19869. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19870. var _this = this;
  19871. // _this.progress = 0;
  19872. _this.proVisible2 = true;
  19873. var b = [
  19874. "DOC",
  19875. "DOCX",
  19876. "DOCM",
  19877. "DOTM",
  19878. "DOTX",
  19879. "PPTX",
  19880. "PPSX",
  19881. "PPT",
  19882. "PPS",
  19883. "PPTM",
  19884. "POTM",
  19885. "PPAM",
  19886. "POTX",
  19887. "PPSM",
  19888. ];
  19889. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19890. var photoA = [
  19891. "BMP",
  19892. "GIF",
  19893. "PNG",
  19894. "JPEG",
  19895. "JPG",
  19896. "TIF",
  19897. "PCX",
  19898. "TGA",
  19899. "EXIF",
  19900. "FPX",
  19901. "SVG",
  19902. "APNG",
  19903. ];
  19904. if (
  19905. photoA.indexOf(
  19906. file.name
  19907. .split(".")
  19908. [file.name.split(".").length - 1].toLocaleUpperCase()
  19909. ) != -1 &&
  19910. type != 4
  19911. ) {
  19912. // const blob = await imageConversion.compress(file, 0.8)
  19913. file = await this.pngToWhiteBg(file);
  19914. const blob = await imageConversion.compressAccurately(file, 256);
  19915. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19916. file = new File([blob], file.name, { type: file.type });
  19917. }
  19918. if (file) {
  19919. var params = {
  19920. Key:
  19921. file.name.split(".")[0] +
  19922. new Date().getTime() +
  19923. "." +
  19924. file.name.split(".")[file.name.split(".").length - 1],
  19925. ContentType: file.type,
  19926. Body: file,
  19927. "Access-Control-Allow-Credentials": "*",
  19928. ACL: "public-read",
  19929. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19930. var options = {
  19931. // partSize: 2048 * 1024 * 1024,
  19932. partSize: 1024 * 1024 * 1024,
  19933. queueSize: 2,
  19934. leavePartsOnError: true,
  19935. };
  19936. bucket
  19937. .upload(params, options)
  19938. .on("httpUploadProgress", function (evt) {
  19939. //这里可以写进度条
  19940. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19941. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19942. })
  19943. .send(function (err, data) {
  19944. // _this.progress = 100;
  19945. cfindex2++;
  19946. setTimeout(() => {
  19947. if (
  19948. cfindex2 == event.target.files.length - 1 ||
  19949. cfindex2 > event.target.files.length - 1
  19950. ) {
  19951. _this.proVisible2 = false;
  19952. }
  19953. }, 1000);
  19954. if (err) {
  19955. var a = _this.$refs.upload1.uploadFiles;
  19956. a.splice(a.length - 1, a.length);
  19957. _this.$message.error(this.lang.ssUploadFailed);
  19958. } else {
  19959. // _this.$message.success('上传成功')
  19960. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19961. var c = [
  19962. "AVI",
  19963. "NAVI",
  19964. "MPEG",
  19965. "ASF",
  19966. "MOV",
  19967. "WMV",
  19968. "3GP",
  19969. "RM",
  19970. "RMVB",
  19971. "FLV",
  19972. "F4V",
  19973. "H.264",
  19974. "H.265",
  19975. "REAL VIDEO",
  19976. "MKV",
  19977. "WebM",
  19978. "HDDVD",
  19979. "MP4",
  19980. "MPG",
  19981. "M4V",
  19982. "MGV",
  19983. "OGV",
  19984. "QTM",
  19985. "STR",
  19986. "AMC",
  19987. "DVX",
  19988. "EVO",
  19989. "DAT",
  19990. "OGG",
  19991. "OGM",
  19992. ];
  19993. if (type == 1) {
  19994. _this.studyJuri[0].cover.push({
  19995. name: file.name,
  19996. url: data.Location,
  19997. uid: file.uid,
  19998. });
  19999. if (
  20000. c.indexOf(
  20001. _this.studyJuri[0].cover[0].url
  20002. .split(".")
  20003. [
  20004. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20005. ].toLocaleUpperCase()
  20006. ) != -1
  20007. ) {
  20008. _this.fileType = 2;
  20009. } else if (
  20010. b.indexOf(
  20011. _this.studyJuri[0].cover[0].url
  20012. .split(".")
  20013. [
  20014. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20015. ].toLocaleUpperCase()
  20016. ) != -1
  20017. ) {
  20018. _this.fileType = 1;
  20019. } else {
  20020. _this.fileType = 0;
  20021. }
  20022. _this.imgChange(null, null, type);
  20023. } else if (type == 2) {
  20024. _this.upToolImg = data.Location;
  20025. _this.imgChange(null, null, type);
  20026. _this.addCourseWorks(i);
  20027. } else if (type == 4) {
  20028. _this.addPz("3", data.Location);
  20029. } else if (type == 5) {
  20030. _this.addImgDrawImG(data.Location);
  20031. } else if (type == 6) {
  20032. var _ftype = 1;
  20033. if (
  20034. c.indexOf(
  20035. data.Location.split(".")[
  20036. data.Location.split(".").length - 1
  20037. ].toLocaleUpperCase()
  20038. ) != -1
  20039. ) {
  20040. _ftype = 5;
  20041. } else if (
  20042. b.indexOf(
  20043. data.Location.split(".")[
  20044. data.Location.split(".").length - 1
  20045. ].toLocaleUpperCase()
  20046. ) != -1
  20047. ) {
  20048. _ftype = 4;
  20049. } else {
  20050. _ftype = 1;
  20051. }
  20052. _this.plworkFile.push({
  20053. name: file.name,
  20054. url: data.Location,
  20055. uid: file.uid,
  20056. fileType: _ftype,
  20057. username:
  20058. _this.plworkFile.length + 1 > 9
  20059. ? _this.plworkFile.length + 1
  20060. : "0" + (_this.plworkFile.length + 1),
  20061. });
  20062. }
  20063. _this.imgChange(null, null, type);
  20064. console.log(data.Location);
  20065. // _this.$message.success('上传成功'+data.Location)
  20066. }
  20067. });
  20068. }
  20069. }
  20070. },
  20071. beforeUpload2(event, type) {
  20072. var file = event.target.files[0];
  20073. var credentials = {
  20074. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20075. secretAccessKey: "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",
  20076. }; //秘钥形式的登录上传
  20077. window.AWS.config.update(credentials);
  20078. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20079. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20080. var _this = this;
  20081. _this.progress = 0;
  20082. _this.proVisible = true;
  20083. if (file) {
  20084. var params = {
  20085. Key:
  20086. file.name.split(".")[0] +
  20087. new Date().getTime() +
  20088. "." +
  20089. file.name.split(".")[file.name.split(".").length - 1],
  20090. ContentType: file.type,
  20091. Body: file,
  20092. "Access-Control-Allow-Credentials": "*",
  20093. ACL: "public-read",
  20094. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20095. var options = {
  20096. partSize: 2048 * 1024 * 1024,
  20097. queueSize: 2,
  20098. leavePartsOnError: true,
  20099. };
  20100. bucket
  20101. .upload(params, options)
  20102. .on("httpUploadProgress", function (evt) {
  20103. //这里可以写进度条
  20104. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20105. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20106. })
  20107. .send(function (err, data) {
  20108. _this.progress = 100;
  20109. setTimeout(() => {
  20110. _this.proVisible = false;
  20111. }, 1000);
  20112. if (err) {
  20113. var a = _this.$refs.upload1.uploadFiles;
  20114. a.splice(a.length - 1, a.length);
  20115. _this.$message.error(this.lang.ssUploadFailed);
  20116. } else {
  20117. if (type == 2) {
  20118. _this.studyJuri[0].upVedio.push({
  20119. name: file.name,
  20120. url: data.Location,
  20121. uid: file.uid,
  20122. });
  20123. _this.imgChange(null, null, type);
  20124. } else if (type == 3) {
  20125. _this.studyJuri[0].upFile.push({
  20126. name: file.name,
  20127. url: data.Location,
  20128. uid: file.uid,
  20129. });
  20130. _this.imgChange(null, null, type);
  20131. }
  20132. console.log(data.Location);
  20133. }
  20134. });
  20135. }
  20136. },
  20137. allScrell() {
  20138. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20139. },
  20140. nextOrpreSteps(t) {
  20141. if (this.IsFollow && this.tType == 2) {
  20142. this.$message.error(this.lang.ssFollowModeOn);
  20143. return;
  20144. }
  20145. var b = this.chapInfoList.length - 1;
  20146. if (t == 0) {
  20147. if (this.courseType == 0) {
  20148. if (this.taskCount == 0) {
  20149. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20150. if (this.IsLookOpen) {
  20151. if (
  20152. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20153. ) {
  20154. if (
  20155. this.courseDetail.userid != this.userid &&
  20156. (!this.courseDetail.course_teacher ||
  20157. (this.courseDetail.course_teacher &&
  20158. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20159. ) {
  20160. this.$message.error(this.lang.ssTaskLocked);
  20161. } else {
  20162. this.$message.error(this.lang.ssPrevTaskLocked);
  20163. }
  20164. return;
  20165. }
  20166. }
  20167. this.navList[this.courseType].isOpen = false;
  20168. this.courseType = b;
  20169. this.taskCount =
  20170. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20171. .length - 1;
  20172. this.navList[this.courseType].isOpen = true;
  20173. } else {
  20174. this.taskCount--;
  20175. }
  20176. } else {
  20177. if (this.taskCount == 0) {
  20178. this.navList[this.courseType].isOpen = false;
  20179. this.courseType--;
  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. }
  20188. } else {
  20189. if (this.courseType == b) {
  20190. if (
  20191. this.taskCount ==
  20192. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20193. 1
  20194. ) {
  20195. this.navList[this.courseType].isOpen = false;
  20196. this.courseType = 0;
  20197. this.taskCount = 0;
  20198. this.navList[this.courseType].isOpen = true;
  20199. } else {
  20200. var bbb = parseInt(this.taskCount) + 1;
  20201. if (
  20202. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20203. .isLook &&
  20204. this.courseDetail.userid != this.userid &&
  20205. (!this.courseDetail.course_teacher ||
  20206. (this.courseDetail.course_teacher &&
  20207. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20208. this.IsLookOpen
  20209. ) {
  20210. this.$message.error(this.lang.ssTaskLocked);
  20211. return;
  20212. }
  20213. this.taskCount++;
  20214. if (this.IsLookOpen) {
  20215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20216. this.taskCount
  20217. ].isLook = true;
  20218. this.addCourseState(3);
  20219. }
  20220. }
  20221. } else {
  20222. if (
  20223. this.taskCount ==
  20224. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20225. 1
  20226. ) {
  20227. var bbb = parseInt(this.courseType) + 1;
  20228. if (
  20229. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20230. this.courseDetail.userid != this.userid &&
  20231. (!this.courseDetail.course_teacher ||
  20232. (this.courseDetail.course_teacher &&
  20233. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20234. this.IsLookOpen
  20235. ) {
  20236. this.$message.error(this.lang.ssTaskLocked);
  20237. return;
  20238. }
  20239. this.navList[this.courseType].isOpen = false;
  20240. this.courseType++;
  20241. this.taskCount = 0;
  20242. this.navList[this.courseType].isOpen = true;
  20243. } else {
  20244. var bbb = parseInt(this.taskCount) + 1;
  20245. if (
  20246. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20247. .isLook &&
  20248. this.courseDetail.userid != this.userid &&
  20249. (!this.courseDetail.course_teacher ||
  20250. (this.courseDetail.course_teacher &&
  20251. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20252. this.IsLookOpen
  20253. ) {
  20254. this.$message.error(this.lang.ssTaskLocked);
  20255. return;
  20256. }
  20257. this.taskCount++;
  20258. }
  20259. if (this.IsLookOpen) {
  20260. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20261. this.taskCount
  20262. ].isLook = true;
  20263. this.addCourseState(3);
  20264. }
  20265. }
  20266. // if (
  20267. // this.taskCount ==
  20268. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20269. // ) {
  20270. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20271. // } else {
  20272. // this.taskCount++;
  20273. // }
  20274. }
  20275. document.scrollingElement.scrollTop = 0;
  20276. // this.showType = 7;
  20277. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20278. // if (this.vedio[this.taskCount].length > 0) {
  20279. // var a =
  20280. // document.getElementsByClassName("box_course")[this.taskCount]
  20281. // .offsetHeight;
  20282. // document.getElementsByClassName("vedioList")[
  20283. // this.taskCount
  20284. // ].style.height = a + "px";
  20285. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20286. // a - 40 + "px";
  20287. // }
  20288. this.isNoHomeWork = false;
  20289. (this.studyJuri = [
  20290. {
  20291. content: "",
  20292. cover: [],
  20293. upVedio: [],
  20294. upFile: [],
  20295. },
  20296. ]),
  20297. (this.radio = []);
  20298. this.isClickNav = "";
  20299. this.selectPz();
  20300. this.getHomeWork();
  20301. this.getCourseDetail(2);
  20302. this.$forceUpdate();
  20303. if ((this.courseDetail.userid == this.userid ||
  20304. (this.courseDetail.course_teacher &&
  20305. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20306. this.setCTask();
  20307. }
  20308. },
  20309. openTask(s, n, i) {
  20310. if (this.IsFollow && this.tType == 2) {
  20311. this.$message.error(this.lang.ssFollowModeOn);
  20312. return;
  20313. }
  20314. if (this.IsLookOpen &&
  20315. this.courseDetail.userid != this.userid &&
  20316. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20317. if (
  20318. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20319. this.courseDetail.userid != this.userid &&
  20320. (!this.courseDetail.course_teacher ||
  20321. (this.courseDetail.course_teacher &&
  20322. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20323. ) {
  20324. this.$message.error(this.lang.ssTaskLocked);
  20325. return;
  20326. }
  20327. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20328. if (
  20329. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20330. .isLook
  20331. ) {
  20332. this.$message.error(this.lang.ssPrevTaskLocked);
  20333. return;
  20334. }
  20335. } else if (s > this.courseType) {
  20336. if (n > 0) {
  20337. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20338. this.$message.error(this.lang.ssPrevTaskLocked);
  20339. return;
  20340. }
  20341. } else {
  20342. if (
  20343. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20344. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20345. ].isLook
  20346. ) {
  20347. this.$message.error(this.lang.ssPrevTaskLocked);
  20348. return;
  20349. }
  20350. }
  20351. }
  20352. }
  20353. if (this.navList[s].task[n].isOpen == true) {
  20354. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20355. return;
  20356. }
  20357. let flag = this.courseType==s;
  20358. this.courseType = s;
  20359. this.navId = i;
  20360. this.taskCount = n;
  20361. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20362. this.navList[this.courseType].task[this.taskCount].isOpen =
  20363. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20364. if (this.IsLookOpen) {
  20365. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20366. this.taskCount
  20367. ].isLook = true;
  20368. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20369. this.addCourseState(3,yym);
  20370. }
  20371. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20372. this.isCloseList[ci].isClose = 0;
  20373. this.isCloseList[ci].isCloseBoolean = false;
  20374. this.$nextTick(()=>{
  20375. setTimeout(()=>{
  20376. setTimeout(()=>{
  20377. this.panToolHeight('tool-'+ci);
  20378. }, 0)
  20379. }, 0)
  20380. })
  20381. }
  20382. // this.showType = 7;
  20383. this.isNoHomeWork = false;
  20384. (this.studyJuri = [
  20385. {
  20386. content: "",
  20387. cover: [],
  20388. upVedio: [],
  20389. upFile: [],
  20390. },
  20391. ]),
  20392. (this.radio = []);
  20393. document.scrollingElement.scrollTop = 0;
  20394. // setTimeout(() => {
  20395. // let a = document.getElementById(i);
  20396. // if (a.offsetTop - 110 == 0) {
  20397. // window.scrollTo(0, 0);
  20398. // } else {
  20399. // window.scrollTo(0, a.offsetTop);
  20400. // }
  20401. // }, 0);
  20402. for (var z = 0; z < this.navList.length; z++) {
  20403. for (var q = 0; q < this.navList[z].task.length; q++) {
  20404. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20405. this.navList[z].task[q].tool[w].isTool = false;
  20406. }
  20407. }
  20408. }
  20409. this.selectPz();
  20410. this.getHomeWork();
  20411. this.getCourseDetail(2);
  20412. if(flag){
  20413. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20414. }else{
  20415. 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>`)
  20416. }
  20417. if ((this.courseDetail.userid == this.userid ||
  20418. (this.courseDetail.course_teacher &&
  20419. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20420. this.setCTask();
  20421. }
  20422. },
  20423. get(i) {
  20424. if (this.IsFollow && this.tType == 2) {
  20425. this.$message.error(this.lang.ssFollowModeOn);
  20426. return;
  20427. }
  20428. // for(var k=0;k<this.navList.length;k++){
  20429. // this.navList[k].isOpen = false;
  20430. // }
  20431. // this.navList[i].isOpen = true;
  20432. this.navList[i].isOpen = !this.navList[i].isOpen;
  20433. if (this.navList[i].isOpen) {
  20434. this.openTask(i, 0, i + "-0");
  20435. }
  20436. },
  20437. addQuestion() {
  20438. this.answerList.push({
  20439. answerTitle: this.answerQ,
  20440. answer: this.questionAnswer,
  20441. });
  20442. let params = [
  20443. {
  20444. uid: this.userid,
  20445. cid: this.id,
  20446. stage: this.courseType,
  20447. task: this.taskCount,
  20448. tool: this.toolindex,
  20449. content: JSON.stringify(this.answerList),
  20450. type: 3,
  20451. },
  20452. ];
  20453. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  20454. this.homeWorkLoading = true
  20455. this.ajax
  20456. .post(this.$store.state.api + "addCourseWorks", params)
  20457. .then((res) => {
  20458. this.$message({
  20459. message: this.lang.ssSubmitSuccess,
  20460. type: "success",
  20461. });
  20462. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  20463. setTimeout(() => {
  20464. this.homeWorkLoading = false
  20465. }, 500);
  20466. this.answerList = [];
  20467. this.answerDialogVisible = false;
  20468. this.selectStudent();
  20469. this.selectSWorks();
  20470. this.selectSLook();
  20471. })
  20472. .catch((err) => {
  20473. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  20474. setTimeout(() => {
  20475. this.homeWorkLoading = false
  20476. }, 500);
  20477. this.$message.error(this.lang.ssSubmitFailed);
  20478. console.error(err);
  20479. });
  20480. },
  20481. addQuestionTeacher() {
  20482. this.answerList.push({
  20483. answerTitle: this.answerQ,
  20484. answer: this.questionAnswer,
  20485. });
  20486. let params = [
  20487. {
  20488. uid: this.sStudent.userid,
  20489. cid: this.id,
  20490. stage: this.courseType,
  20491. task: this.taskCount,
  20492. tool: this.toolindex,
  20493. content: JSON.stringify(this.answerList),
  20494. type: 3,
  20495. ateacher: this.userid,
  20496. },
  20497. ];
  20498. this.ajax
  20499. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20500. .then((res) => {
  20501. this.$message({
  20502. message: this.lang.ssSubmitSuccess,
  20503. type: "success",
  20504. });
  20505. this.answerList = [];
  20506. this.questionAnswer = "";
  20507. this.answerDialogVisibleTeacher = false;
  20508. this.selectStudent();
  20509. this.selectSWorks();
  20510. this.selectSLook();
  20511. })
  20512. .catch((err) => {
  20513. this.$message.error(this.lang.ssSubmitFailed);
  20514. console.error(err);
  20515. });
  20516. },
  20517. refreshCourse() {
  20518. // window.location.reload();
  20519. this.navList = [];
  20520. this.getCourseDetail(1);
  20521. },
  20522. getCourseDetail(type, gindex) {
  20523. let loading;
  20524. if (type != 2) {
  20525. loading = this.$loading.service({
  20526. background: "rgba(255, 255, 255, 0.7)",
  20527. target: document.querySelector(".student_table"),
  20528. });
  20529. }
  20530. this.downLoading = false
  20531. // this.navList[0].isOpen = false;
  20532. // this.navList[this.courseType].isOpen = true;
  20533. // this.courseType = this.courseTypeLine;
  20534. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20535. let params = {
  20536. courseId: this.id,
  20537. };
  20538. this.ajax
  20539. .get(this.$store.state.api + "selectCourseDetail3", params)
  20540. .then((res) => {
  20541. if ((this.courseDetail.userid == this.userid ||
  20542. (this.courseDetail.course_teacher &&
  20543. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20544. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20545. }
  20546. if (type != 2) {
  20547. loading.close();
  20548. if (
  20549. this.courseType >
  20550. JSON.parse(res.data[0][0].chapters).length - 1
  20551. ) {
  20552. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20553. }
  20554. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20555. .chapterInfo[0].taskJson;
  20556. var b = [
  20557. "AVI",
  20558. "NAVI",
  20559. "MPEG",
  20560. "ASF",
  20561. "MOV",
  20562. "WMV",
  20563. "3GP",
  20564. "RM",
  20565. "RMVB",
  20566. "FLV",
  20567. "F4V",
  20568. "H.264",
  20569. "H.265",
  20570. "REAL VIDEO",
  20571. "MKV",
  20572. "WebM",
  20573. "HDDVD",
  20574. "MP4",
  20575. "MPG",
  20576. "M4V",
  20577. "MGV",
  20578. "OGV",
  20579. "QTM",
  20580. "STR",
  20581. "AMC",
  20582. "DVX",
  20583. "EVO",
  20584. "DAT",
  20585. "OGG",
  20586. "OGM",
  20587. "MP3",
  20588. ];
  20589. let _chapterData = [];
  20590. for (var i = 0; i < a.length; i++) {
  20591. var c = a[i].chapterData;
  20592. this.vedio[i] = [];
  20593. this.textList[i] = [];
  20594. this.lineList[i] = [];
  20595. this.chapToolList[i] = [];
  20596. this.file[i] = [];
  20597. this.fileC[i] = [];
  20598. _chapterData[i] = c.filter((el) => {
  20599. return el.type != 12;
  20600. });
  20601. this.fileC[i] = c.filter((el) => {
  20602. return el.type == 12;
  20603. });
  20604. if (this.tType == 2) {
  20605. if (this.fileC[i].length) {
  20606. let yym1 = this.fileC[i].filter(e=>{
  20607. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  20608. return e
  20609. }
  20610. })
  20611. this.fileC[i] = yym1
  20612. }
  20613. }
  20614. // else if (c[j].type == 12) {
  20615. // this.fileC[i].push(c[j]);
  20616. // }
  20617. for (var j = 0; j < c.length; j++) {
  20618. if (c[j].type == 7) {
  20619. this.chapToolList[i].push(c[j]);
  20620. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  20621. this.lineList[i].push(c[j]);
  20622. } else if (c[j].type == 6) {
  20623. this.textList[i].push(c[j]);
  20624. } else {
  20625. if (
  20626. b.indexOf(
  20627. c[j].url
  20628. .split(".")
  20629. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20630. ) != -1
  20631. ) {
  20632. this.vedio[i].push(c[j]);
  20633. } else {
  20634. this.file[i].push(c[j]);
  20635. }
  20636. }
  20637. }
  20638. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20639. d.sources[0].src =
  20640. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20641. this.playerO[i] = d;
  20642. }
  20643. this.courseDetail = res.data[0][0];
  20644. if(this.tType == 2){
  20645. this.tcid = this.arrayToArray(
  20646. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20647. this.classId ? this.classId.split(",") : []
  20648. ).join(",");
  20649. }else{
  20650. this.tcid = this.arrayToArray(
  20651. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20652. this.tcid2 ? this.tcid2.split(",") : []
  20653. ).join(",");
  20654. }
  20655. this.evalua = res.data[0][0].evaId;
  20656. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20657. this.courseType
  20658. ];
  20659. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20660. if (this.tcid && res.data[1].length) {
  20661. let _inviteA = [];
  20662. for (var ik = 0; ik < res.data[1].length; ik++) {
  20663. _inviteA.push({
  20664. cid: res.data[1][ik].classid,
  20665. ic: res.data[1][ik].code,
  20666. });
  20667. }
  20668. for (var ik = 0; ik < _inviteA.length; ik++) {
  20669. if (
  20670. this.arrayToArray(
  20671. _inviteA[ik].cid.split(","),
  20672. this.tcid.split(",")
  20673. ).length
  20674. ) {
  20675. this.inviteCode = _inviteA[ik].ic;
  20676. break;
  20677. }
  20678. }
  20679. }
  20680. for (var l = 0; l < this.chapInfoList.length; l++) {
  20681. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20682. for (var m = 0; m < w.length; m++) {
  20683. w[m].id = l + "-" + m;
  20684. }
  20685. }
  20686. let taskCount = 0;
  20687. if (
  20688. _chapterData[taskCount].length &&
  20689. _chapterData[taskCount][0].type == 2
  20690. ) {
  20691. this.showType = 0;
  20692. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20693. } else {
  20694. if (_chapterData[taskCount].length > 0) {
  20695. let _url = _chapterData[taskCount][0].url;
  20696. if (
  20697. _chapterData[taskCount][0].type == 8 ||
  20698. _chapterData[taskCount][0].type == 14 ||
  20699. _chapterData[taskCount][0].type == 15
  20700. ) {
  20701. this.showType = 2;
  20702. if (
  20703. _url.indexOf("https://") == -1 &&
  20704. _url.indexOf("http://") == -1
  20705. ) {
  20706. _url = "https://" + _url;
  20707. }
  20708. this.pptImgUrl1 = _url;
  20709. } else if (_chapterData[taskCount][0].type == 3) {
  20710. if (
  20711. _url
  20712. .split(".")
  20713. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20714. ) {
  20715. this.showType = 3;
  20716. this.pptImgUrl1 = _url;
  20717. } else if (
  20718. this.isAssetTypeAnImage(
  20719. _url
  20720. .split(".")
  20721. [_url.split(".").length - 1].toLocaleLowerCase()
  20722. )
  20723. ) {
  20724. this.showType = 4;
  20725. this.pptImgUrl1 = _url;
  20726. } else {
  20727. this.showType = 2;
  20728. this.pptImgUrl1 =
  20729. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20730. encodeURIComponent(_url);
  20731. }
  20732. } else if (_chapterData[taskCount][0].type == 13) {
  20733. this.showType = 4;
  20734. this.pptImgUrl1 = _url;
  20735. } else if (_chapterData[taskCount][0].type == 6) {
  20736. this.showType = 1;
  20737. this.text = this.textList[taskCount][0];
  20738. } else if (_chapterData[taskCount][0].type == 16) {
  20739. this.showType = 16;
  20740. this.pptImgUrl1 = _url;
  20741. } else if (_chapterData[taskCount][0].type == 17) {
  20742. this.showType = 16;
  20743. this.pptImgUrl1 = _url;
  20744. }
  20745. }
  20746. }
  20747. this.isClickNav = 0;
  20748. if (
  20749. !_chapterData[taskCount].length ||
  20750. _chapterData[taskCount][0].type == 12
  20751. ) {
  20752. this.isClickNav = "";
  20753. this.showType = "";
  20754. }
  20755. if (this.tType == 2) {
  20756. _chapterData.forEach((e,i)=>{
  20757. if (e.length) {
  20758. let yym = e.filter(k=>{
  20759. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  20760. return k
  20761. }
  20762. })
  20763. _chapterData[i] = yym
  20764. }
  20765. })
  20766. }
  20767. this.vChapterData = _chapterData;
  20768. } else {
  20769. // this.showType = 0;
  20770. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20771. .chapterInfo[0].taskJson;
  20772. var b = [
  20773. "AVI",
  20774. "NAVI",
  20775. "MPEG",
  20776. "ASF",
  20777. "MOV",
  20778. "WMV",
  20779. "3GP",
  20780. "RM",
  20781. "RMVB",
  20782. "FLV",
  20783. "F4V",
  20784. "H.264",
  20785. "H.265",
  20786. "REAL VIDEO",
  20787. "MKV",
  20788. "WebM",
  20789. "HDDVD",
  20790. "MP4",
  20791. "MPG",
  20792. "M4V",
  20793. "MGV",
  20794. "OGV",
  20795. "QTM",
  20796. "STR",
  20797. "AMC",
  20798. "DVX",
  20799. "EVO",
  20800. "DAT",
  20801. "OGG",
  20802. "OGM",
  20803. "MP3",
  20804. ];
  20805. let _chapterData = [];
  20806. for (var i = 0; i < a.length; i++) {
  20807. var c = a[i].chapterData;
  20808. this.vedio[i] = [];
  20809. this.textList[i] = [];
  20810. this.lineList[i] = [];
  20811. this.chapToolList[i] = [];
  20812. this.file[i] = [];
  20813. this.fileC[i] = [];
  20814. _chapterData[i] = c.filter((el) => {
  20815. return el.type != 12;
  20816. });
  20817. this.fileC[i] = c.filter((el) => {
  20818. return el.type == 12;
  20819. });
  20820. if (this.tType == 2) {
  20821. if (this.fileC[i].length) {
  20822. let yym1 = this.fileC[i].filter(e=>{
  20823. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  20824. return e
  20825. }
  20826. })
  20827. this.fileC[i] = yym1
  20828. }
  20829. }
  20830. for (var j = 0; j < c.length; j++) {
  20831. if (c[j].type == 7) {
  20832. this.chapToolList[i].push(c[j]);
  20833. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  20834. this.lineList[i].push(c[j]);
  20835. } else if (c[j].type == 6) {
  20836. this.textList[i].push(c[j]);
  20837. } else {
  20838. if (
  20839. b.indexOf(
  20840. c[j].url
  20841. .split(".")
  20842. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20843. ) != -1
  20844. ) {
  20845. this.vedio[i].push(c[j]);
  20846. } else {
  20847. this.file[i].push(c[j]);
  20848. }
  20849. }
  20850. }
  20851. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20852. d.sources[0].src =
  20853. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20854. this.playerO[i] = d;
  20855. }
  20856. let taskCount = 0;
  20857. if (
  20858. _chapterData[taskCount].length &&
  20859. _chapterData[taskCount][0].type == 2
  20860. ) {
  20861. // this.showType = 0;
  20862. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20863. } else {
  20864. if (_chapterData[taskCount].length > 0) {
  20865. let _url = _chapterData[taskCount][0].url;
  20866. if (
  20867. _chapterData[taskCount][0].type == 8 ||
  20868. _chapterData[taskCount][0].type == 14 ||
  20869. _chapterData[taskCount][0].type == 15
  20870. ) {
  20871. // this.showType = 2;
  20872. if (
  20873. _url.indexOf("https://") == -1 &&
  20874. _url.indexOf("http://") == -1
  20875. ) {
  20876. _url = "https://" + _url;
  20877. }
  20878. // this.pptImgUrl1 = _url;
  20879. } else if (_chapterData[taskCount][0].type == 3) {
  20880. if (
  20881. _url
  20882. .split(".")
  20883. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20884. ) {
  20885. // this.showType = 3;
  20886. // this.pptImgUrl1 = _url;
  20887. } else if (
  20888. this.isAssetTypeAnImage(
  20889. _url
  20890. .split(".")
  20891. [_url.split(".").length - 1].toLocaleLowerCase()
  20892. )
  20893. ) {
  20894. // this.showType = 4;
  20895. // this.pptImgUrl1 = _url;
  20896. } else {
  20897. // this.showType = 2;
  20898. // this.pptImgUrl1 =
  20899. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  20900. // encodeURIComponent(_url);
  20901. }
  20902. } else if (_chapterData[taskCount][0].type == 13) {
  20903. // this.showType = 4;
  20904. // this.pptImgUrl1 = _url;
  20905. } else if (_chapterData[taskCount][0].type == 6) {
  20906. this.showType = 1;
  20907. this.text = this.textList[taskCount][0];
  20908. } else if (_chapterData[taskCount][0].type == 16) {
  20909. this.showType = 16;
  20910. this.pptImgUrl1 = _url;
  20911. } else if (_chapterData[taskCount][0].type == 17) {
  20912. this.showType = 16;
  20913. this.pptImgUrl1 = _url;
  20914. }
  20915. }
  20916. }
  20917. this.isClickNav = 0;
  20918. if (
  20919. !_chapterData[taskCount].length ||
  20920. _chapterData[taskCount][0].type == 12
  20921. ) {
  20922. this.isClickNav = "";
  20923. // this.showType = "";
  20924. }
  20925. if (this.tType == 2) {
  20926. _chapterData.forEach((e,i)=>{
  20927. if (e.length) {
  20928. let yym = e.filter(k=>{
  20929. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  20930. return k
  20931. }
  20932. })
  20933. _chapterData[i] = yym
  20934. }
  20935. })
  20936. }
  20937. this.vChapterData = _chapterData;
  20938. this.$forceUpdate();
  20939. }
  20940. if (res.data[0][0].setting) {
  20941. try {
  20942. this.languageSetting =
  20943. JSON.parse(res.data[0][0].setting).languageSetting ||
  20944. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20945. ? JSON.parse(res.data[0][0].setting).languageSetting
  20946. : 0;
  20947. } catch (error) {
  20948. console.error(error);
  20949. }
  20950. }
  20951. // finalMarkList用来判断哪个工具为评分工具
  20952. if (this.courseDetail.state == 6) {
  20953. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20954. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20955. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20956. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20957. // // 没有的话在选其他工具为评分工具
  20958. // if(adc.length > 0){
  20959. // for (let k = chap.length - 1; k >= 0; k--) {
  20960. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20961. // this.finalMarkList = k;
  20962. // break;
  20963. // }
  20964. // }
  20965. // }else{
  20966. // for (let k = chap.length - 1; k >= 0; k--) {
  20967. // 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) {
  20968. // this.finalMarkList = k;
  20969. // break;
  20970. // }
  20971. // }
  20972. // }
  20973. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20974. // 不然会无限循环报错,会很难受
  20975. let aiSNum = 0;
  20976. if (
  20977. chapInfoListCopy[this.taskCount].eList &&
  20978. chapInfoListCopy[this.taskCount].eList.length
  20979. ) {
  20980. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20981. if (e.isai == 2) {
  20982. aiSNum++;
  20983. }
  20984. });
  20985. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20986. this.isaiNum = aiSNum;
  20987. } else {
  20988. this.isaiNum = 0;
  20989. }
  20990. // for (
  20991. // let k = 0;
  20992. // k < chapInfoListCopy[this.taskCount].eList.length;
  20993. // k++
  20994. // ) {
  20995. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  20996. // this.againEva(this.taskCount, k);
  20997. // }
  20998. // }
  20999. }
  21000. }
  21001. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21002. if (type == 10) {
  21003. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21004. console.log('this.userid',this.userid);
  21005. if (this.courseDetail.userid == this.userid) {
  21006. // 开局关闭学生查看内容
  21007. this.StulookMode(true)
  21008. // 开局打开跟随模式
  21009. this.followingMode(true)
  21010. }
  21011. }
  21012. // else {
  21013. // this.courseDetail = res.data[0][0];
  21014. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21015. // }
  21016. let _this = this;
  21017. if (_this.timer) {
  21018. clearInterval(_this.timer);
  21019. _this.timer = null;
  21020. }
  21021. // if (_this.timer2) {
  21022. // clearInterval(_this.timer2);
  21023. // _this.timer2 = null;
  21024. // }
  21025. if (_this.tcid) {
  21026. _this.getCourseGroup(gindex);
  21027. } else {
  21028. _this.selectSWorks(gindex);
  21029. }
  21030. _this.selectStudent();
  21031. _this.selectSLook();
  21032. _this.getPick();
  21033. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21034. // _this.setCTask();
  21035. // }
  21036. if (_this.dialogVisibleGroup) {
  21037. _this.groupJson =
  21038. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21039. _this.taskCount
  21040. ].toolChoose[_this.toolindex].groupJson;
  21041. }
  21042. _this.$nextTick(() => {
  21043. setTimeout(() => {
  21044. _this.checkEva();
  21045. }, 1000);
  21046. });
  21047. _this.timer = setInterval(function () {
  21048. // _this.getCourseDetail(2);
  21049. if (_this.tcid) {
  21050. _this.getCourseGroup();
  21051. } else {
  21052. _this.selectSWorks();
  21053. }
  21054. _this.selectStudent();
  21055. _this.selectSLook();
  21056. _this.getPick();
  21057. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21058. // _this.setCTask();
  21059. // }
  21060. if (_this.dialogVisibleGroup) {
  21061. _this.groupJson =
  21062. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21063. _this.taskCount
  21064. ].toolChoose[_this.toolindex].groupJson;
  21065. }
  21066. if (_this.tType == 4 || _this.ispzType == 4) {
  21067. _this.selectPz();
  21068. }
  21069. }, 5000);
  21070. if (_this.timer2 == null) {
  21071. _this.timer2 = setInterval(()=> {
  21072. _this.getSplitScreenData();//获取分屏数据
  21073. }, 5000);
  21074. }
  21075. _this.$nextTick(function () {
  21076. setTimeout(() => {
  21077. const element = document.getElementsByClassName("pb_body")[0];
  21078. if (element) {
  21079. element.style.minHeight = 'unset'
  21080. // 或者:element.style.removeProperty("min-height");
  21081. }
  21082. // var a =
  21083. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21084. // document.getElementsByClassName("vedioList")[0].style.height =
  21085. // a + "px";
  21086. // document.getElementsByClassName("navBox")[0].style.height =
  21087. // a - 40 + "px";
  21088. // if (_this.vedio[_this.taskCount].length > 0) {
  21089. // _this.vedioTime = [];
  21090. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21091. // _this.vedioTime[i] = document.getElementsByClassName(
  21092. // "vjs-duration-display"
  21093. // )[i].textContent;
  21094. // }
  21095. // }
  21096. }, 1000);
  21097. });
  21098. })
  21099. .catch((err) => {
  21100. loading.close();
  21101. console.error(err);
  21102. });
  21103. },
  21104. getCourseGroup(gindex) {
  21105. if(this.getCourseGroupLoading) return
  21106. this.getCourseGroupLoading = true
  21107. let params = {
  21108. cid: this.id,
  21109. classid: this.tcid ? this.tcid : "1",
  21110. };
  21111. this.ajax
  21112. .get(this.$store.state.api + "getCourseGroup", params)
  21113. .then((res) => {
  21114. if (res.data && res.data[0].length) {
  21115. if (!this.isGroup) {
  21116. let courseGroup = JSON.parse(res.data[0][0].group);
  21117. courseGroup.group = courseGroup.group.filter((el) => {
  21118. el.works = [];
  21119. return el;
  21120. });
  21121. if (courseGroup.isopen == 2) {
  21122. this.isGroup = false;
  21123. this.selectSWorks(gindex);
  21124. return;
  21125. }
  21126. this.courseGroup = courseGroup;
  21127. let groupPerson = res.data[1];
  21128. let group = JSON.parse(res.data[0][0].group).group;
  21129. let courseGroupStudent = {};
  21130. let courseGroupStudentUid = {};
  21131. for (var i = 0; i < group.length; i++) {
  21132. courseGroupStudent[group[i].id] = [];
  21133. courseGroupStudentUid[group[i].id] = [];
  21134. for (var j = 0; j < groupPerson.length; j++) {
  21135. if (groupPerson[j].groupCid == group[i].id) {
  21136. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21137. courseGroupStudentUid[group[i].id].push(
  21138. groupPerson[j].userid
  21139. );
  21140. }
  21141. }
  21142. }
  21143. this.courseGroupStudent = courseGroupStudent;
  21144. this.courseGroupStudentUid = courseGroupStudentUid;
  21145. }
  21146. if (this.courseGroup.isopen == 2) {
  21147. this.isGroup = false;
  21148. } else {
  21149. this.isGroup = true;
  21150. }
  21151. this.selectSWorks(gindex);
  21152. } else {
  21153. this.selectSWorks(gindex);
  21154. this.isGroup = false;
  21155. }
  21156. this.getCourseGroupLoading = false
  21157. })
  21158. .catch((err) => {
  21159. this.getCourseGroupLoading = false
  21160. // this.$message.error(this.lang.ssNetworkPoor);
  21161. console.error(err);
  21162. });
  21163. },
  21164. setOperationTime() {
  21165. let _this = this;
  21166. if (_this.opertimer) {
  21167. clearInterval(_this.opertimer);
  21168. _this.opertimer = null;
  21169. }
  21170. _this.opertimer = setInterval(() => {
  21171. _this.setoTime("600");
  21172. }, 600000);
  21173. },
  21174. setoTime(time) {
  21175. let params = [
  21176. {
  21177. uid: this.userid,
  21178. cid: this.id,
  21179. type: "2",
  21180. time: time,
  21181. },
  21182. ];
  21183. this.ajax
  21184. .post(this.$store.state.api + "addOperationTimeT2", params)
  21185. .then((res) => {})
  21186. .catch((err) => {
  21187. console.error(err);
  21188. });
  21189. },
  21190. addPz(type, content) {
  21191. if (type == "1" && this.pzConText == "") {
  21192. this.$message.error(this.lang.ssCommentEmpty);
  21193. return;
  21194. }
  21195. let params = [
  21196. {
  21197. cid: this.id,
  21198. uid: this.userid,
  21199. s: this.courseType,
  21200. t: this.taskCount,
  21201. c: type == "1" ? this.pzConText : content,
  21202. type: type,
  21203. },
  21204. ];
  21205. this.ajax
  21206. .post(this.$store.state.api + "addPz2", params)
  21207. .then((res) => {
  21208. this.$message({
  21209. message: this.lang.ssAddSuccess,
  21210. type: "success",
  21211. });
  21212. this.pzConText = "";
  21213. this.addPzDialog = false;
  21214. this.selectPz();
  21215. if(this.tType!=2){
  21216. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21217. }
  21218. })
  21219. .catch((err) => {
  21220. this.$message.error(this.lang.ssAddFailed);
  21221. console.error(err);
  21222. });
  21223. },
  21224. setReplyIndex(id, i) {
  21225. this.replyIndex = i;
  21226. this.replyPid = id;
  21227. this.replyDialogVisible = true;
  21228. },
  21229. addHf() {
  21230. if (this.reply == "") {
  21231. this.$message.error(this.lang.ssReplyEmpty);
  21232. return;
  21233. }
  21234. let params = [
  21235. {
  21236. cid: this.id,
  21237. uid: this.userid,
  21238. s: this.courseType,
  21239. t: this.taskCount,
  21240. type: "1",
  21241. ct: 2,
  21242. pid: this.replyPid,
  21243. c: this.reply,
  21244. },
  21245. ];
  21246. this.ajax
  21247. .post(this.$store.state.api + "addHf", params)
  21248. .then((res) => {
  21249. this.reply = "";
  21250. this.$message({
  21251. message: this.lang.ssReplySuccess,
  21252. type: "success",
  21253. });
  21254. this.replyDialogVisible = false;
  21255. this.selectPz();
  21256. })
  21257. .catch((err) => {
  21258. this.$message.error(this.lang.ssReplyFailed);
  21259. console.error(err);
  21260. });
  21261. },
  21262. deletePz(id) {
  21263. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  21264. confirmButtonText: this.lang.ssConfirm,
  21265. cancelButtonText: this.lang.ssCancel,
  21266. type: "warning",
  21267. })
  21268. .then(() => {
  21269. let params = [
  21270. {
  21271. id: id,
  21272. },
  21273. ];
  21274. this.ajax
  21275. .post(this.$store.state.api + "deletePz", params)
  21276. .then((res) => {
  21277. this.$message({
  21278. message: this.lang.ssDeleteSuccess,
  21279. type: "success",
  21280. });
  21281. this.selectPz();
  21282. })
  21283. .catch((err) => {
  21284. this.$message.error(this.lang.ssNetworkError);
  21285. console.error(err);
  21286. });
  21287. })
  21288. .catch(() => {});
  21289. },
  21290. deleteReply(id) {
  21291. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  21292. confirmButtonText: this.lang.ssConfirm,
  21293. cancelButtonText: this.lang.ssCancel,
  21294. type: "warning",
  21295. })
  21296. .then(() => {
  21297. let params = [
  21298. {
  21299. id: id,
  21300. },
  21301. ];
  21302. this.ajax
  21303. .post(this.$store.state.api + "deleteReply", params)
  21304. .then((res) => {
  21305. this.$message({
  21306. message: this.lang.ssDeleteSuccess,
  21307. type: "success",
  21308. });
  21309. this.selectPz();
  21310. })
  21311. .catch((err) => {
  21312. this.$message.error(this.lang.ssNetworkError);
  21313. console.error(err);
  21314. });
  21315. })
  21316. .catch(() => {});
  21317. },
  21318. setPz() {
  21319. if (this.ispzType == 4) {
  21320. this.ispzType = 0;
  21321. this.pzDialog = false;
  21322. return;
  21323. }
  21324. this.ispzType = 4;
  21325. this.pzDialog = true;
  21326. this.selectPz();
  21327. },
  21328. selectPz() {
  21329. if(this.selectPzLoading) return
  21330. this.selectPzLoading = true
  21331. let params = {
  21332. cid: this.id,
  21333. s: this.courseType,
  21334. t: this.taskCount,
  21335. type: this.pzStype,
  21336. uid: this.userid,
  21337. };
  21338. this.ajax
  21339. .get(this.$store.state.api + "selectPzListType", params)
  21340. .then((res) => {
  21341. this.pzList = res.data[0];
  21342. var a = res.data[1];
  21343. for (var i = 0; i < a.length; i++) {
  21344. for (var j = 0; j < this.pzList.length; j++) {
  21345. if (!this.pzList[j].hfList) {
  21346. this.pzList[j].hfList = [];
  21347. }
  21348. if (a[i].pid == this.pzList[j].id) {
  21349. this.pzList[j].hfList.push(a[i]);
  21350. }
  21351. }
  21352. }
  21353. this.selectPzLoading = false
  21354. })
  21355. .catch((err) => {
  21356. this.selectPzLoading = false
  21357. console.error(err);
  21358. });
  21359. },
  21360. // selectHf() {
  21361. // let params = {
  21362. // cid: this.id,
  21363. // s: this.courseType,
  21364. // t: this.taskCount,
  21365. // };
  21366. // this.ajax
  21367. // .get(this.$store.state.api + "selectHfList", params)
  21368. // .then((res) => {
  21369. // var a = res.data[0];
  21370. // for (var i = 0; i < a.length; i++) {
  21371. // for (var j = 0; j < this.pzList.length; j++) {
  21372. // if (!this.pzList[i].hfList) {
  21373. // this.pzList[i].hfList = [];
  21374. // }
  21375. // if (a[i].pid == this.pzList[j].id) {
  21376. // this.pzList[i].hfList.push(a[i]);
  21377. // }
  21378. // }
  21379. // }
  21380. // })
  21381. // .catch((err) => {
  21382. // console.error(err);
  21383. // });
  21384. // },
  21385. updateSLook() {
  21386. let params = {
  21387. sopen: this.sIsOpen == false ? 1 : 2,
  21388. cid: this.id,
  21389. };
  21390. this.ajax
  21391. .get(this.$store.state.api + "updateCourseSLook", params)
  21392. .then((res) => {
  21393. if (this.sIsOpen == true) {
  21394. this.$message({
  21395. message: this.lang.ssPermSetSuccess,
  21396. type: "success",
  21397. });
  21398. } else {
  21399. this.$message({
  21400. message: this.lang.ssPermClosedOk,
  21401. type: "success",
  21402. });
  21403. }
  21404. })
  21405. .catch((err) => {
  21406. console.error(err);
  21407. });
  21408. },
  21409. updateIsStulook(){
  21410. let params = [
  21411. {
  21412. sopen: this.IsStulook == false ? 2 : 1,
  21413. cid: this.id
  21414. }
  21415. ];
  21416. this.ajax
  21417. .post(this.$store.state.api + "updateCourseStulook", params)
  21418. .then(res => {
  21419. if (this.IsStulook == true) {
  21420. this.$message({
  21421. message: this.lang.ssStuViewPermOn,
  21422. type: "success"
  21423. });
  21424. } else {
  21425. this.$message({
  21426. message: this.lang.ssStuViewPermOff,
  21427. type: "success"
  21428. });
  21429. }
  21430. // this.setCTask();
  21431. })
  21432. .catch(err => {
  21433. console.error(err);
  21434. });
  21435. },
  21436. updateFollow() {
  21437. let params = [
  21438. {
  21439. sopen: this.IsFollow == false ? 1 : 2,
  21440. cid: this.id,
  21441. },
  21442. ];
  21443. this.ajax
  21444. .post(this.$store.state.api + "updateCourseFollow", params)
  21445. .then((res) => {
  21446. if (this.IsFollow == true) {
  21447. this.$message({
  21448. message: this.lang.ssFollowModeOn2,
  21449. type: "success",
  21450. });
  21451. } else {
  21452. this.$message({
  21453. message: this.lang.ssFollowModeOff,
  21454. type: "success",
  21455. });
  21456. }
  21457. this.setCTask();
  21458. })
  21459. .catch((err) => {
  21460. console.error(err);
  21461. });
  21462. },
  21463. setCTask() {
  21464. let params = [
  21465. {
  21466. sopen: this.courseType + "-" + this.taskCount,
  21467. cid: this.id,
  21468. },
  21469. ];
  21470. this.ajax
  21471. .post(this.$store.state.api + "updateCourseFollowC", params)
  21472. .then((res) => {})
  21473. .catch((err) => {
  21474. console.error(err);
  21475. });
  21476. },
  21477. updateLookOpen() {
  21478. let params = [
  21479. {
  21480. sopen: this.IsLookOpen == false ? 1 : 2,
  21481. cid: this.id,
  21482. },
  21483. ];
  21484. this.ajax
  21485. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21486. .then((res) => {
  21487. if (this.IsLookOpen == true) {
  21488. // if (this.courseType != 0 && this.taskCount != 0) {
  21489. // this.openTask(0, 0, "0-0");
  21490. // }
  21491. this.$message({
  21492. message: this.lang.ssPermSetSuccess,
  21493. type: "success",
  21494. });
  21495. } else {
  21496. this.$message({
  21497. message: this.lang.ssPermClosedOk,
  21498. type: "success",
  21499. });
  21500. }
  21501. this.getCourseState(2);
  21502. })
  21503. .catch((err) => {
  21504. console.error(err);
  21505. });
  21506. },
  21507. selectSLook() {
  21508. if(this.selectSLookLoading) return
  21509. this.selectSLookLoading = true
  21510. let params = {
  21511. cid: this.id,
  21512. };
  21513. this.ajax
  21514. .get(this.$store.state.api + "selectCourseSLook", params)
  21515. .then((res) => {
  21516. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21517. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21518. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21519. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  21520. if (!this.IsLookOpen) {
  21521. this.setNavList();
  21522. } else {
  21523. this.getCourseState(1);
  21524. }
  21525. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21526. this.setContent2(false);
  21527. let _followC = res.data[0][0].followC.split("-");
  21528. if (
  21529. this.courseType != _followC[0] ||
  21530. this.taskCount != _followC[1]
  21531. ) {
  21532. this.navList[this.courseType].isOpen = false;
  21533. this.courseType = _followC[0];
  21534. this.navList[this.courseType].isOpen = true;
  21535. this.taskCount = parseInt(_followC[1]);
  21536. this.navId = res.data[0][0].followC;
  21537. document.scrollingElement.scrollTop = 0;
  21538. this.getCourseDetail(2);
  21539. }
  21540. }
  21541. this.selectSLookLoading = false
  21542. })
  21543. .catch((err) => {
  21544. this.selectSLookLoading = false
  21545. console.error(err);
  21546. });
  21547. },
  21548. setNavList() {
  21549. if (this.navList.length == 0) {
  21550. this.navList = [];
  21551. var copyList = [];
  21552. for (var l = 0; l < this.chapInfoList.length; l++) {
  21553. var q = this.chapInfoList[l].dyName;
  21554. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21555. var e;
  21556. copyList.push({
  21557. dyName: q,
  21558. isOpen: l === 0 ? true : false,
  21559. task: [],
  21560. });
  21561. for (var r = 0; r < w.length; r++) {
  21562. e = w[r].task;
  21563. if (this.chapInfoList[l].easy == 1) {
  21564. copyList[l].task.push({
  21565. taskName: q,
  21566. id: l + "-" + r,
  21567. isLook: w[r].isLook,
  21568. isOpen: r === 0 ? true : false,
  21569. tool: [],
  21570. });
  21571. } else {
  21572. copyList[l].task.push({
  21573. taskName: e,
  21574. id: l + "-" + r,
  21575. isLook: w[r].isLook,
  21576. isOpen: r === 0 ? true : false,
  21577. tool: [],
  21578. });
  21579. }
  21580. var t = w[r].toolChoose;
  21581. for (var k = 0; k < t.length; k++) {
  21582. var tool = t[k].tool[0];
  21583. copyList[l].task[r].tool.push({
  21584. tool: tool,
  21585. isTool: false,
  21586. });
  21587. }
  21588. // this.navId = this.navId ? this.navId : l + "-" + r;
  21589. // this.navId = l + "-" + r;
  21590. }
  21591. }
  21592. this.navList = copyList;
  21593. this.navList[0].isOpen = false;
  21594. this.navList[this.courseType].isOpen = true;
  21595. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21596. } else {
  21597. this.setNavList2();
  21598. }
  21599. },
  21600. setNavList2() {
  21601. for (var l = 0; l < this.chapInfoList.length; l++) {
  21602. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21603. for (var r = 0; r < w.length; r++) {
  21604. this.navList[l].task[r].isLook = w[r].isLook;
  21605. }
  21606. }
  21607. if (
  21608. this.IsLookOpen &&
  21609. !this.navList[this.courseType].task[this.taskCount].isLook
  21610. ) {
  21611. this.openTask(0, 0, "0-0");
  21612. }
  21613. this.$forceUpdate();
  21614. },
  21615. getCourseState(type) {
  21616. let params = {
  21617. cid: this.id,
  21618. };
  21619. this.ajax
  21620. .get(this.$store.state.api + "getCourseState", params)
  21621. .then((res) => {
  21622. // if (res.data[0].length > 0) {
  21623. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21624. // }
  21625. if (res.data[0].length > 0 && type == 1) {
  21626. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21627. this.setNavList();
  21628. this.$forceUpdate();
  21629. } else if (res.data[0].length > 0 && type == 2) {
  21630. this.addCourseState(2);
  21631. } else {
  21632. // this.addCourseState(1);
  21633. }
  21634. })
  21635. .catch((err) => {
  21636. console.error(err);
  21637. });
  21638. },
  21639. addCourseState(type,val = '') {
  21640. let _state = val ? val : this.chapInfoList;
  21641. // this.courseType this.taskCount
  21642. if (type == 1 || type == 2) {
  21643. for (var i = 0; i < _state.length; i++) {
  21644. let el = _state[i].chapterInfo[0].taskJson;
  21645. for (var j = 0; j < el.length; j++) {
  21646. // if (i == 0 && j == 0) {
  21647. // el[j].isLook = true;
  21648. // } else {
  21649. // el[j].isLook = false;
  21650. // }
  21651. if (
  21652. this.courseType > i ||
  21653. (this.courseType == i && this.taskCount + 1 > j)
  21654. ) {
  21655. el[j].isLook = true;
  21656. } else {
  21657. el[j].isLook = false;
  21658. }
  21659. }
  21660. }
  21661. }
  21662. let params = [
  21663. {
  21664. cid: this.id,
  21665. state: JSON.stringify(_state),
  21666. },
  21667. ];
  21668. this.ajax
  21669. .post(
  21670. this.$store.state.api +
  21671. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21672. params
  21673. )
  21674. .then((res) => {
  21675. if (this.IsLookOpen) {
  21676. this.setNavList();
  21677. }
  21678. if (type == 3 && type == 2) {
  21679. this.getCourseState(1);
  21680. }
  21681. })
  21682. .catch((err) => {
  21683. console.error(err);
  21684. });
  21685. },
  21686. getHomeWork() {
  21687. let params = {
  21688. cid: this.id,
  21689. stage: this.courseType,
  21690. task: this.taskCount,
  21691. uid: this.userid,
  21692. };
  21693. this.ajax
  21694. .get(this.$store.state.api + "selectWork", params)
  21695. .then((res) => {
  21696. if (res.data[0].length > 0) {
  21697. this.studyJuri = JSON.parse(res.data[0][0].content);
  21698. this.isNoHomeWork = true;
  21699. }
  21700. })
  21701. .catch((err) => {
  21702. console.error(err);
  21703. });
  21704. },
  21705. isAssetTypeAnImage(ext) {
  21706. return (
  21707. [
  21708. "png",
  21709. "jpg",
  21710. "jpeg",
  21711. "bmp",
  21712. "gif",
  21713. "webp",
  21714. "psd",
  21715. "svg",
  21716. "tiff",
  21717. ].indexOf(ext) !== -1
  21718. );
  21719. },
  21720. switchVideo(media) {
  21721. this.playerO = {};
  21722. this.playerOptions.poster = "";
  21723. this.playerOptions.sources[0].src = media;
  21724. this.playerO = this.playerOptions;
  21725. },
  21726. onPlayerPlay() {},
  21727. onPlayerTimeupdate(player) {
  21728. let gklog = player.cache_.currentTime; //当前播放的秒数
  21729. let a = player.cache_.duration; //视频的总时长
  21730. let gklog2 = parseInt(gklog);
  21731. // if(gklog2 == '3'){
  21732. // player.pause()
  21733. // setTimeout(()=>{
  21734. // player.currentTime(gklog2+1)
  21735. // player.play()
  21736. // },1000)
  21737. // }
  21738. console.log(" onPlayerTimeupdate!", gklog);
  21739. console.log(" onPlayerTimeupdate!", gklog2);
  21740. },
  21741. lookVedio(u, i) {
  21742. this.isClickNav = "";
  21743. // this.playerOptions.sources[0].src = u;
  21744. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21745. d.sources[0].src = u;
  21746. this.playerO[0] = d;
  21747. this.showType = 0;
  21748. // this.isClickNav = "video" + i;
  21749. this.isClickNav = i;
  21750. this.$forceUpdate();
  21751. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  21752. },
  21753. lookText(i, t) {
  21754. this.isClickNav = "";
  21755. // this.text = this.textList[i][t];
  21756. this.text = this.vChapterData[i][t];
  21757. // this.dialogVisible1 = true;
  21758. this.showType = 1;
  21759. // this.isClickNav = "text" + t;
  21760. this.isClickNav = t;
  21761. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  21762. },
  21763. lookTools(i, t) {
  21764. this.chapTools = this.chapToolList[i][t];
  21765. this.dialogVisible2 = true;
  21766. },
  21767. async openFile(f) {
  21768. this.pptImgUrl = "";
  21769. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21770. if (
  21771. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21772. -1
  21773. ) {
  21774. let _uuurl = await this.checkLink(f);
  21775. console.log(_uuurl)
  21776. this.pptImgUrl =
  21777. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21778. this.showPDF = false;
  21779. this.dialogVisible3 = true;
  21780. } else if (
  21781. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21782. ) {
  21783. this.pptImgUrl = f;
  21784. this.showPDF = true;
  21785. this.dialogVisible3 = true;
  21786. }
  21787. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  21788. },
  21789. openTable(f) {
  21790. this.tableJson = JSON.parse(f.works);
  21791. this.dialogVisibleTable2 = true;
  21792. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21793. },
  21794. openWord(f) {
  21795. this.tableJson = JSON.parse(f.works);
  21796. this.dialogVisibleTable3 = true;
  21797. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21798. },
  21799. doUrl(url, i) {
  21800. this.isClickNav = "";
  21801. this.pptImgUrl1 = "";
  21802. this.showType = 2;
  21803. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21804. url = "https://" + url;
  21805. }
  21806. this.pptImgUrl1 = "";
  21807. this.diffKey = new Date().getTime();
  21808. setTimeout(() => {
  21809. this.pptImgUrl1 = url;
  21810. }, 500);
  21811. // this.isClickNav = "line" + i;
  21812. this.isClickNav = i;
  21813. this.$forceUpdate();
  21814. },
  21815. checkPhoto(f, i) {
  21816. this.showType = 4;
  21817. this.pptImgUrl1 = f.url;
  21818. this.isClickNav = i;
  21819. this.$forceUpdate();
  21820. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21821. },
  21822. checkHtml(f, i){
  21823. this.showType = 16;
  21824. this.pptImgUrl1 = f.url;
  21825. this.isClickNav = i;
  21826. this.$forceUpdate();
  21827. },
  21828. async downFile(f, i) {
  21829. this.isClickNav = "";
  21830. this.pptImgUrl1 = "";
  21831. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21832. if (
  21833. a.indexOf(
  21834. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21835. ) != -1
  21836. ) {
  21837. let _uuurl = await this.checkLink(f.url);
  21838. console.log(_uuurl)
  21839. this.pptImgUrl1 =
  21840. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21841. // this.dialogVisible3 = true;
  21842. this.showType = 2;
  21843. } else if (
  21844. this.isAssetTypeAnImage(
  21845. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21846. )
  21847. ) {
  21848. this.showType = 4;
  21849. this.pptImgUrl1 = f.url;
  21850. } else if (
  21851. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21852. "PDF"
  21853. ) {
  21854. this.pptImgUrl1 = f.url;
  21855. // this.dialogVisible3 = true;
  21856. this.showType = 3;
  21857. } else {
  21858. window.open(this.file[i].url);
  21859. }
  21860. // this.isClickNav = "word" + i;
  21861. this.isClickNav = i;
  21862. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21863. },
  21864. downFileList(i) {
  21865. window.open(this.noImgList[i].url);
  21866. },
  21867. openAddWork() {
  21868. this.dialogVisible = true;
  21869. },
  21870. addBzWorks() {
  21871. let params = [
  21872. {
  21873. uid: this.userid,
  21874. cid: this.id,
  21875. stage: this.courseType,
  21876. task: this.taskCount,
  21877. tool: this.toolindex,
  21878. content: JSON.stringify(this.eScore),
  21879. type: 6,
  21880. },
  21881. ];
  21882. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  21883. this.homeWorkLoading = true
  21884. this.ajax
  21885. .post(this.$store.state.api + "addCourseWorks", params)
  21886. .then((res) => {
  21887. this.$message({
  21888. message: this.lang.ssSubmitSuccess,
  21889. type: "success",
  21890. });
  21891. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  21892. setTimeout(() => {
  21893. this.homeWorkLoading = false
  21894. }, 500);
  21895. this.eScore = { eBzText: "", eStar: [] };
  21896. this.studentEvalDialogVisible = false;
  21897. this.selectSWorks();
  21898. })
  21899. .catch((err) => {
  21900. this.$message.error(this.lang.ssSubmitFailed);
  21901. console.error(err);
  21902. setTimeout(() => {
  21903. this.homeWorkLoading = false
  21904. }, 500);
  21905. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  21906. });
  21907. },
  21908. addBzWorksTeacher() {
  21909. let params = [
  21910. {
  21911. uid: this.sStudent.userid,
  21912. cid: this.id,
  21913. stage: this.courseType,
  21914. task: this.taskCount,
  21915. tool: this.toolindex,
  21916. content: JSON.stringify(this.eScore),
  21917. type: 6,
  21918. },
  21919. ];
  21920. this.ajax
  21921. .post(this.$store.state.api + "addCourseWorks", params)
  21922. .then((res) => {
  21923. this.$message({
  21924. message: this.lang.ssSubmitSuccess,
  21925. type: "success",
  21926. });
  21927. this.eScore = { eBzText: "", eStar: [] };
  21928. this.studentEvalDialogVisibleTeacher = false;
  21929. this.selectSWorks();
  21930. })
  21931. .catch((err) => {
  21932. this.$message.error(this.lang.ssSubmitFailed);
  21933. console.error(err);
  21934. });
  21935. },
  21936. addStudentAsk() {
  21937. if (!this.radio.length) {
  21938. this.$message.error(this.lang.ssPleaseSelectOption);
  21939. return;
  21940. }
  21941. for (var i = 0; i < this.askJson.askCount; i++) {
  21942. if (
  21943. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21944. (this.radio[i] !== 0 && !this.radio[i])
  21945. ) {
  21946. this.$message.error(this.lang.ssPleaseSelectOption);
  21947. return;
  21948. }
  21949. }
  21950. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21951. let params = [
  21952. {
  21953. uid: this.userid,
  21954. cid: this.id,
  21955. stage: this.courseType,
  21956. task: this.taskCount,
  21957. tool: this.toolindex,
  21958. content: JSON.stringify(this.askList),
  21959. type: 2,
  21960. },
  21961. ];
  21962. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  21963. this.homeWorkLoading = true
  21964. this.ajax
  21965. .post(this.$store.state.api + "addCourseWorks", params)
  21966. .then((res) => {
  21967. this.$message({
  21968. message: this.lang.ssSubmitSuccess,
  21969. type: "success",
  21970. });
  21971. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  21972. setTimeout(() => {
  21973. this.homeWorkLoading = false
  21974. }, 500);
  21975. this.askList = [];
  21976. this.dialogVisible5 = false;
  21977. this.selectStudent();
  21978. this.selectSWorks();
  21979. this.selectSLook();
  21980. })
  21981. .catch((err) => {
  21982. this.$message.error(this.lang.ssSubmitFailed);
  21983. console.error(err);
  21984. setTimeout(() => {
  21985. this.homeWorkLoading = false
  21986. }, 500);
  21987. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  21988. });
  21989. },
  21990. addStudentAskTeacher() {
  21991. if (!this.radio.length) {
  21992. this.$message.error(this.lang.ssPleaseSelectOption);
  21993. return;
  21994. }
  21995. for (var i = 0; i < this.askJson.askCount; i++) {
  21996. if (
  21997. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21998. (this.radio[i] !== 0 && !this.radio[i])
  21999. ) {
  22000. this.$message.error(this.lang.ssPleaseSelectOption);
  22001. return;
  22002. }
  22003. }
  22004. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22005. let params = [
  22006. {
  22007. uid: this.sStudent.userid,
  22008. cid: this.id,
  22009. stage: this.courseType,
  22010. task: this.taskCount,
  22011. tool: this.toolindex,
  22012. content: JSON.stringify(this.askList),
  22013. type: 2,
  22014. },
  22015. ];
  22016. this.ajax
  22017. .post(this.$store.state.api + "addCourseWorks", params)
  22018. .then((res) => {
  22019. this.$message({
  22020. message: this.lang.ssSubmitSuccess,
  22021. type: "success",
  22022. });
  22023. this.askList = [];
  22024. this.dialogVisible5Teacher = false;
  22025. this.selectStudent();
  22026. this.selectSWorks();
  22027. this.selectSLook();
  22028. })
  22029. .catch((err) => {
  22030. this.$message.error(this.lang.ssSubmitFailed);
  22031. console.error(err);
  22032. });
  22033. },
  22034. addStudentTest() {
  22035. if (!this.radio.length) {
  22036. this.$message.error(this.lang.ssPleaseSelectOption);
  22037. return;
  22038. }
  22039. for (var i = 0; i < this.testJson.testCount; i++) {
  22040. if (
  22041. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22042. (this.radio[i] !== 0 && !this.radio[i])
  22043. ) {
  22044. this.$message.error(this.lang.ssPleaseSelectOption);
  22045. return;
  22046. }
  22047. }
  22048. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22049. let params = [
  22050. {
  22051. uid: this.userid,
  22052. cid: this.id,
  22053. stage: this.courseType,
  22054. task: this.taskCount,
  22055. tool: this.toolindex,
  22056. content: JSON.stringify(this.askList),
  22057. type: 8,
  22058. },
  22059. ];
  22060. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  22061. this.homeWorkLoading = true
  22062. this.ajax
  22063. .post(this.$store.state.api + "addCourseWorks", params)
  22064. .then((res) => {
  22065. this.$message({
  22066. message: this.lang.ssSubmitSuccess,
  22067. type: "success",
  22068. });
  22069. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22070. setTimeout(() => {
  22071. this.homeWorkLoading = false
  22072. }, 500);
  22073. this.askList = [];
  22074. this.dialogVisibleChoice = false;
  22075. this.selectStudent();
  22076. this.selectSWorks();
  22077. this.selectSLook();
  22078. })
  22079. .catch((err) => {
  22080. this.$message.error(this.lang.ssSubmitFailed);
  22081. console.error(err);
  22082. setTimeout(() => {
  22083. this.homeWorkLoading = false
  22084. }, 500);
  22085. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22086. });
  22087. },
  22088. addStudentTestTeacher() {
  22089. if (!this.radio.length) {
  22090. this.$message.error(this.lang.ssPleaseSelectOption);
  22091. return;
  22092. }
  22093. for (var i = 0; i < this.testJson.testCount; i++) {
  22094. if (
  22095. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22096. (this.radio[i] !== 0 && !this.radio[i])
  22097. ) {
  22098. this.$message.error(this.lang.ssPleaseSelectOption);
  22099. return;
  22100. }
  22101. }
  22102. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22103. let params = [
  22104. {
  22105. uid: this.sStudent.userid,
  22106. cid: this.id,
  22107. stage: this.courseType,
  22108. task: this.taskCount,
  22109. tool: this.toolindex,
  22110. content: JSON.stringify(this.askList),
  22111. type: 8,
  22112. },
  22113. ];
  22114. this.ajax
  22115. .post(this.$store.state.api + "addCourseWorks", params)
  22116. .then((res) => {
  22117. this.$message({
  22118. message: this.lang.ssSubmitSuccess,
  22119. type: "success",
  22120. });
  22121. this.askList = [];
  22122. this.dialogVisibleChoiceTeacher = false;
  22123. this.selectStudent();
  22124. this.selectSWorks();
  22125. this.selectSLook();
  22126. })
  22127. .catch((err) => {
  22128. this.$message.error(this.lang.ssSubmitFailed);
  22129. console.error(err);
  22130. });
  22131. },
  22132. addWork() {
  22133. if (this.studyJuri[0].content == "") {
  22134. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22135. return;
  22136. } else if (this.studyJuri[0].cover.length == 0) {
  22137. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22138. return;
  22139. } else if (this.studyJuri[0].upVedio.length == 0) {
  22140. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22141. return;
  22142. }
  22143. if (this.isNoHomeWork) {
  22144. this.$confirm(
  22145. this.lang.ssAlreadySubmittedHomework,
  22146. this.lang.ssPrompt,
  22147. {
  22148. confirmButtonText: this.lang.ssConfirm,
  22149. cancelButtonText: this.lang.ssCancel,
  22150. type: "warning",
  22151. }
  22152. )
  22153. .then(() => {
  22154. let params = [
  22155. {
  22156. uid: this.userid,
  22157. cid: this.id,
  22158. stage: this.courseType,
  22159. task: this.taskCount,
  22160. content: JSON.stringify(this.studyJuri),
  22161. },
  22162. ];
  22163. this.ajax
  22164. .post(this.$store.state.api + "addWorks", params)
  22165. .then((res) => {
  22166. this.$message({
  22167. message: this.lang.ssSubmitSuccess,
  22168. type: "success",
  22169. });
  22170. this.isNoHomeWork = true;
  22171. this.dialogVisible = false;
  22172. })
  22173. .catch((err) => {
  22174. this.$message.error(this.lang.ssSubmitFailed);
  22175. console.error(err);
  22176. });
  22177. })
  22178. .catch(() => {});
  22179. } else {
  22180. let params = [
  22181. {
  22182. uid: this.userid,
  22183. cid: this.id,
  22184. stage: this.courseType,
  22185. task: this.taskCount,
  22186. content: JSON.stringify(this.studyJuri),
  22187. },
  22188. ];
  22189. this.ajax
  22190. .post(this.$store.state.api + "addWorks", params)
  22191. .then((res) => {
  22192. this.$message({
  22193. message: this.lang.ssSubmitSuccess,
  22194. type: "success",
  22195. });
  22196. this.isNoHomeWork = true;
  22197. this.dialogVisible = false;
  22198. })
  22199. .catch((err) => {
  22200. this.$message.error(this.lang.ssSubmitFailed);
  22201. console.error(err);
  22202. });
  22203. }
  22204. },
  22205. selectCount() {
  22206. let params = {
  22207. cid: this.id,
  22208. chid: this.courseType,
  22209. uid: this.userid,
  22210. };
  22211. this.ajax
  22212. .get(this.$store.state.api + "selectToolsCount", params)
  22213. .then((res) => {
  22214. for (var i = 0; i < res.data[0].length; i++) {
  22215. if (res.data[0][i].tools == 1) {
  22216. this.wbCount = res.data[0][i].count;
  22217. } else if (res.data[0][i].tools == 2) {
  22218. this.wordCount = res.data[0][i].count;
  22219. } else if (res.data[0][i].tools == 3) {
  22220. this.mindCount = res.data[0][i].count;
  22221. } else if (res.data[0][i].tools == 4) {
  22222. this.askCount = res.data[0][i].count;
  22223. } else if (res.data[0][i].tools == 6) {
  22224. this.noteCount = res.data[0][i].count;
  22225. } else if (res.data[0][i].tools == 7) {
  22226. this.mindNetWorkCount = res.data[0][i].count;
  22227. } else if (res.data[0][i].tools == 8) {
  22228. this.libraryCount = res.data[0][i].count;
  22229. } else if (res.data[0][i].tools == 16) {
  22230. this.workCount = res.data[0][i].count;
  22231. } else if (res.data[0][i].tools == 10) {
  22232. this.timeCount = res.data[0][i].count;
  22233. } else if (res.data[0][i].tools == 15) {
  22234. this.answerCount = res.data[0][i].count;
  22235. } else if (res.data[0][i].tools == 18) {
  22236. this.trainCount = res.data[0][i].count;
  22237. }
  22238. }
  22239. })
  22240. .catch((err) => {
  22241. console.error(err);
  22242. });
  22243. },
  22244. openTools(t, i, index, c, sName,id) {
  22245. var z = JSON.parse(c);
  22246. this.noteName = sName;
  22247. if (t == 4) {
  22248. this.radio = [];
  22249. this.isAnswer = false;
  22250. let b = z[0].anwer;
  22251. this.radio = b;
  22252. this.askJson = z[0].askJson;
  22253. this.isAnswer = true;
  22254. this.dialogVisible5 = true;
  22255. } else if (t == 45) {
  22256. this.radio = [];
  22257. this.isAnswer = false;
  22258. let b = z[0].anwer;
  22259. this.radio = b;
  22260. this.testJson = z[0].testJson;
  22261. this.isAnswer = true;
  22262. this.dialogVisibleChoice = true;
  22263. }else if(t == 69){
  22264. this.oldEnglishJson1 = {}
  22265. this.oldEnglishJson = {}
  22266. this.englishList1 = {}
  22267. this.newEngIndex = -1;
  22268. this.isNoUserid = false;
  22269. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22270. .toolChoose[i].englishList;
  22271. this.oldEnglishJson = z;
  22272. this.engWid = id;
  22273. this.newEnglishList = { engTitle:"",engText:"" }
  22274. this.newEnglishList1 = []
  22275. this.selectEngC(id,z);
  22276. }else if(t == 62){
  22277. this.videoType = 1;
  22278. this.videoJson = {};
  22279. this.videoJson = JSON.parse(c);
  22280. // this.videoJson =
  22281. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22282. // index
  22283. // ].toolChoose[i].videoJson;
  22284. this.dialogVisibleVideo = true;
  22285. }
  22286. // else if (t == 15) {
  22287. // this.answerQ = "";
  22288. // this.questionAnswer = "";
  22289. // this.answerQ = z[0].answerTitle;
  22290. // this.questionAnswer = z[0].answer;
  22291. // this.answerDialogVisible = true;
  22292. // }
  22293. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22294. },
  22295. fastText(p, t) {
  22296. if (t == 1) {
  22297. this.commentText += p;
  22298. } else {
  22299. this.eScore.eBzText += p;
  22300. }
  22301. },
  22302. addTools(t, i, index) {
  22303. var a = 0;
  22304. // this.taskCount = index;
  22305. this.toolindex = i;
  22306. if (t == 1) {
  22307. if (this.wbCount > 0) {
  22308. this.updateCount(this.wbCount, t);
  22309. } else {
  22310. this.wbCount++;
  22311. a = this.wbCount;
  22312. this.toolsCount(a, t);
  22313. }
  22314. window.topU.postMessage(
  22315. {
  22316. tools: "1",
  22317. cid: this.id,
  22318. stage: this.courseType,
  22319. task: this.taskCount,
  22320. tool: i,
  22321. },
  22322. "*"
  22323. );
  22324. } else if (t == 2) {
  22325. if (this.wordCount > 0) {
  22326. this.updateCount(this.wordCount, t);
  22327. } else {
  22328. this.wordCount++;
  22329. a = this.wordCount;
  22330. this.toolsCount(a, t);
  22331. }
  22332. window.topU.postMessage({ tools: "2" }, "*");
  22333. } else if (t == 3) {
  22334. if (this.mindCount > 0) {
  22335. this.updateCount(this.mindCount, t);
  22336. } else {
  22337. this.mindCount++;
  22338. a = this.mindCount;
  22339. this.toolsCount(a, t);
  22340. }
  22341. window.topU.postMessage(
  22342. {
  22343. tools: "3",
  22344. cid: this.id,
  22345. stage: this.courseType,
  22346. task: this.taskCount,
  22347. tool: i,
  22348. },
  22349. "*"
  22350. );
  22351. } else if (t == 4) {
  22352. this.radio = [];
  22353. this.noteName = "";
  22354. this.isAnswer = false;
  22355. if (this.askCount > 0) {
  22356. this.updateCount(this.askCount, t);
  22357. } else {
  22358. this.askCount++;
  22359. a = this.askCount;
  22360. this.toolsCount(a, t);
  22361. }
  22362. if (!this.dialogVisible2) {
  22363. this.askJson.askJson =
  22364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22365. index
  22366. ].toolChoose[i].askJson;
  22367. this.askJson.askTitle =
  22368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22369. index
  22370. ].toolChoose[i].askTitle;
  22371. this.askJson.askCount =
  22372. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22373. index
  22374. ].toolChoose[i].askCount;
  22375. } else {
  22376. this.askJson.askJson = this.chapTools.askJson.askJson;
  22377. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22378. this.askJson.askCount = this.chapTools.askJson.askCount;
  22379. }
  22380. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22381. if (this.askJson.askJson[k].type == "2") {
  22382. this.radio.push([]);
  22383. } else {
  22384. this.radio.push("");
  22385. }
  22386. }
  22387. this.dialogVisible5 = true;
  22388. // window.topU.postMessage({ tools: "4" }, "*");
  22389. } else if (t == 45) {
  22390. this.noteName = "";
  22391. this.radio = [];
  22392. this.isAnswer = false;
  22393. if (this.askCount > 0) {
  22394. this.updateCount(this.askCount, t);
  22395. } else {
  22396. this.askCount++;
  22397. a = this.askCount;
  22398. this.toolsCount(a, t);
  22399. }
  22400. this.testJson =
  22401. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22402. index
  22403. ].toolChoose[i].testJson;
  22404. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22405. if (this.testJson.testJson[k].type == "2") {
  22406. this.radio.push([]);
  22407. } else {
  22408. this.radio.push("");
  22409. }
  22410. }
  22411. this.dialogVisibleChoice = true;
  22412. // window.topU.postMessage({ tools: "4" }, "*");
  22413. } else if (t == 5) {
  22414. if (this.scoreCount > 0) {
  22415. this.updateCount(this.scoreCount, t);
  22416. } else {
  22417. this.scoreCount++;
  22418. a = this.scoreCount;
  22419. this.toolsCount(a, t);
  22420. }
  22421. this.dialogVisible4 = true;
  22422. // window.topU.postMessage({ tools: "5" }, "*");
  22423. } else if (t == 6) {
  22424. if (this.noteCount > 0) {
  22425. this.updateCount(this.noteCount, t);
  22426. } else {
  22427. this.noteCount++;
  22428. a = this.noteCount;
  22429. this.toolsCount(a, t);
  22430. }
  22431. window.topU.postMessage(
  22432. {
  22433. tools: "6",
  22434. cid: this.id,
  22435. stage: this.courseType,
  22436. task: this.taskCount,
  22437. tool: i,
  22438. },
  22439. "*"
  22440. );
  22441. } else if (t == 7) {
  22442. if (this.mindNetWorkCount > 0) {
  22443. this.updateCount(this.mindNetWorkCount, t);
  22444. } else {
  22445. this.mindNetWorkCount++;
  22446. a = this.mindNetWorkCount;
  22447. this.toolsCount(a, t);
  22448. }
  22449. window.topU.postMessage(
  22450. {
  22451. tools: "7",
  22452. cid: this.id,
  22453. stage: this.courseType,
  22454. task: this.taskCount,
  22455. tool: i,
  22456. },
  22457. "*"
  22458. );
  22459. } else if (t == 16) {
  22460. if (this.workCount > 0) {
  22461. this.updateCount(this.workCount, t);
  22462. } else {
  22463. this.workCount++;
  22464. a = this.workCount;
  22465. this.toolsCount(a, t);
  22466. }
  22467. this.dialogVisible = true;
  22468. } else if (t == 50) {
  22469. if (this.tType == 2) {
  22470. this.$message.error(this.lang.ssNotSupportedForStudents);
  22471. return;
  22472. }
  22473. this.plworkFile = [];
  22474. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22475. if (!this.uploadCid) {
  22476. this.$message.error(
  22477. this.lang.ssBatchUploadNoClassPermission
  22478. );
  22479. return;
  22480. }
  22481. // this.uploadCid =
  22482. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22483. // index
  22484. // ].toolChoose[i].uploadJson[0];
  22485. this.selectUploadStudent(2);
  22486. } else if (t == 8) {
  22487. if (this.libraryCount > 0) {
  22488. this.updateCount(this.libraryCount, t);
  22489. } else {
  22490. this.libraryCount++;
  22491. a = this.libraryCount;
  22492. this.toolsCount(a, t);
  22493. }
  22494. window.topU.postMessage({ tools: "8" }, "*");
  22495. } else if (t == 17) {
  22496. if (this.libraryCount > 0) {
  22497. this.updateCount(this.libraryCount, t);
  22498. } else {
  22499. this.libraryCount++;
  22500. a = this.libraryCount;
  22501. this.toolsCount(a, t);
  22502. }
  22503. window.topU.postMessage({ tools: "17" }, "*");
  22504. } else if (t == 18) {
  22505. if (this.trainCount > 0) {
  22506. this.updateCount(this.trainCount, t);
  22507. } else {
  22508. this.trainCount++;
  22509. a = this.trainCount;
  22510. this.toolsCount(a, t);
  22511. }
  22512. window.topU.postMessage({ tools: "18" }, "*");
  22513. } else if (t == 10) {
  22514. if (this.timeCount > 0) {
  22515. this.updateCount(this.timeCount, t);
  22516. } else {
  22517. this.timeCount++;
  22518. a = this.timeCount;
  22519. this.toolsCount(a, t);
  22520. }
  22521. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22522. .taskJson[index].toolChoose[i].preTime
  22523. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22524. .toolChoose[i].preTime
  22525. : "";
  22526. this.timeDialogVisible = true;
  22527. } else if (t == 15) {
  22528. this.answerQ = "";
  22529. this.questionAnswer = "";
  22530. if (this.answerCount > 0) {
  22531. this.updateCount(this.answerCount, t);
  22532. } else {
  22533. this.answerCount++;
  22534. a = this.answerCount;
  22535. this.toolsCount(a, t);
  22536. }
  22537. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22538. .taskJson[index].toolChoose[i].answerQ
  22539. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22540. .toolChoose[i].answerQ
  22541. : "";
  22542. this.answerDialogVisible = true;
  22543. } else if (t == 21) {
  22544. window.topU.postMessage({ tools: "21" }, "*");
  22545. } else if (t == 22) {
  22546. window.topU.postMessage({ tools: "22" }, "*");
  22547. } else if (t == 23) {
  22548. window.topU.postMessage({ tools: "23" }, "*");
  22549. } else if (t == 24) {
  22550. window.topU.postMessage({ tools: "24" }, "*");
  22551. } else if (t == 25) {
  22552. window.topU.postMessage({ tools: "25" }, "*");
  22553. } else if (t == 31) {
  22554. window.topU.postMessage({ tools: "31" }, "*");
  22555. } else if (t == 28) {
  22556. window.topU.postMessage({ tools: "28" }, "*");
  22557. } else if (t == 37) {
  22558. window.topU.postMessage({ tools: "37" }, "*");
  22559. } else if (t == 38) {
  22560. window.topU.postMessage({ tools: "38" }, "*");
  22561. } else if (t == 39) {
  22562. window.topU.postMessage({ tools: "39" }, "*");
  22563. } else if (t == 32) {
  22564. window.topU.postMessage({ tools: "32" }, "*");
  22565. } else if (t == 66) {
  22566. window.topU.postMessage({ tools: "66" }, "*");
  22567. } else if (t == 67) {
  22568. window.topU.postMessage({ tools: "67" }, "*");
  22569. } else if (t == 68) {
  22570. window.topU.postMessage({ tools: "68" }, "*");
  22571. } else if (t == 57) {
  22572. // window.topU.postMessage({ tools: "57" }, "*");
  22573. window.topU.postMessage(
  22574. {
  22575. tools: "57u",
  22576. cid: this.id,
  22577. stage: this.courseType,
  22578. task: this.taskCount,
  22579. tool: i,
  22580. },
  22581. "*"
  22582. );
  22583. } else if (t == 58) {
  22584. window.topU.postMessage({ tools: "58" }, "*");
  22585. } else if (t == 59) {
  22586. window.topU.postMessage({ tools: "59" }, "*");
  22587. } else if (t == 60) {
  22588. window.topU.postMessage({ tools: "60" }, "*");
  22589. } else if (t == 61) {
  22590. window.topU.postMessage({ tools: "61" }, "*");
  22591. } else if (t == 63) {
  22592. window.topU.postMessage({ tools: "63" }, "*");
  22593. } else if (t == 71) {
  22594. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22595. // this.$message.error("该工具不可使用");
  22596. // return
  22597. // }
  22598. window.topU.postMessage({ tools: "71" }, "*");
  22599. } else if (t == 72) {
  22600. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  22601. .taskJson[index].toolChoose[i].appJson
  22602. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22603. .toolChoose[i].appJson
  22604. : "";
  22605. if(!item || !item.url){
  22606. this.$message.error(this.lang.ssAppConnectionEmpty);
  22607. return;
  22608. }
  22609. if (!document.fullscreenElement) {
  22610. this.enterFullScreen();
  22611. }
  22612. this.$refs.appStoreC.getData(item.url,this.userid)
  22613. // window.topU.postMessage({ tools: "72", data: item }, "*");
  22614. // window.open(item.url, "_blank");
  22615. } else if (t == 69) {
  22616. if (this.worksStudent[i].length) {
  22617. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22618. if (this.userid == this.worksStudent[i][k].userid) {
  22619. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  22620. break;
  22621. } else {
  22622. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22623. }
  22624. }
  22625. } else {
  22626. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22627. }
  22628. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22629. .taskJson[index].toolChoose[i].englishList
  22630. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22631. .toolChoose[i].englishList
  22632. : {};
  22633. this.englishToolIndex = i;
  22634. this.myAnList = this.myAnswerList1;
  22635. this.engDialogVisible = true;
  22636. } else if (t == 70) {
  22637. if (this.worksStudent[i].length) {
  22638. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22639. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  22640. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  22641. break;
  22642. } else {
  22643. this.englishVoiceJsonWork = [];
  22644. }
  22645. }
  22646. } else {
  22647. this.englishVoiceJsonWork = [];
  22648. }
  22649. let englishVoiceJson = {}
  22650. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22651. .taskJson[index].toolChoose[i].englishVoiceJson
  22652. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22653. .toolChoose[i].englishVoiceJson
  22654. : {};
  22655. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22656. this.EnglishVoiceDialog = true;
  22657. } else if (t == 65) {
  22658. if (this.tType == 2) {
  22659. this.$message.error(this.lang.ssNotSupportedForStudents);
  22660. return;
  22661. }
  22662. this.uploadCid = this.tcid;
  22663. if (!this.uploadCid) {
  22664. this.$message.error(
  22665. this.lang.ssNoClassPermission
  22666. );
  22667. return;
  22668. }
  22669. this.selectPickStudent();
  22670. } else if (t == 26) {
  22671. window.topU.postMessage(
  22672. {
  22673. tools: "26",
  22674. cid: this.id,
  22675. stage: this.courseType,
  22676. task: this.taskCount,
  22677. tool: i,
  22678. },
  22679. "*"
  22680. );
  22681. } else if (t == 40) {
  22682. if (this.evalCount > 0) {
  22683. this.updateCount(this.evalCount, t);
  22684. } else {
  22685. this.evalCount++;
  22686. a = this.evalCount;
  22687. this.toolsCount(a, t);
  22688. }
  22689. this.eScore = { eBzText: "", eStar: [] };
  22690. if (this.worksStudent[i].length) {
  22691. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22692. if (this.userid == this.worksStudent[i][k].userid) {
  22693. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22694. this.rateJson =
  22695. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22696. index
  22697. ].toolChoose[i].rateJson;
  22698. break;
  22699. } else {
  22700. this.rateJson =
  22701. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22702. index
  22703. ].toolChoose[i].rateJson;
  22704. }
  22705. }
  22706. } else {
  22707. this.rateJson =
  22708. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22709. index
  22710. ].toolChoose[i].rateJson;
  22711. }
  22712. this.isStar = false;
  22713. this.studentEvalDialogVisible = true;
  22714. } else if (t == 41) {
  22715. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22716. .taskJson[index].toolChoose[i].selectJson
  22717. ? JSON.parse(
  22718. JSON.stringify(
  22719. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22720. index
  22721. ].toolChoose[i].selectJson
  22722. )
  22723. )
  22724. : { url: "", select: [], answer: [] };
  22725. if (this.worksStudent[i].length) {
  22726. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22727. if (this.userid == this.worksStudent[i][k].userid) {
  22728. var a = this.worksStudent[i][k].works.split(",");
  22729. for (var ki = 0; ki < a.length; ki++) {
  22730. a[ki] = parseInt(a[ki]);
  22731. }
  22732. this.selectAnswer = {
  22733. answer: a,
  22734. stu: this.worksStudent[i][k].sName,
  22735. };
  22736. break;
  22737. } else {
  22738. this.selectAnswer = { answer: [], stu: "" };
  22739. }
  22740. }
  22741. } else {
  22742. this.selectAnswer = { answer: [], stu: "" };
  22743. }
  22744. this.isSelect = false;
  22745. this.dialogVisibleSelect = true;
  22746. } else if (t == 44) {
  22747. window.topU.postMessage({ tools: "44" }, "*");
  22748. } else if (t == 47) {
  22749. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22750. .taskJson[index].toolChoose[i].sentenceList
  22751. ? JSON.parse(
  22752. JSON.stringify(
  22753. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22754. index
  22755. ].toolChoose[i].sentenceList
  22756. )
  22757. )
  22758. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22759. for (var q = 0; q < this.sentenceList.length; q++) {
  22760. this.sentenceList[q].chooseSenList = [];
  22761. this.sentenceList[q].addChangeSen = [];
  22762. this.sentenceList[q].addChangeSen = JSON.parse(
  22763. JSON.stringify(this.sentenceList[q].addSentence)
  22764. );
  22765. this.sentenceList[q].chooseSenList.length =
  22766. this.sentenceList[q].rightAnswer.length;
  22767. }
  22768. this.dialogVisibleSentence = true;
  22769. } else if (t == 48) {
  22770. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22771. .taskJson[index].toolChoose[i].tableJson
  22772. ? JSON.parse(
  22773. JSON.stringify(
  22774. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22775. index
  22776. ].toolChoose[i].tableJson
  22777. )
  22778. )
  22779. : { text: "" };
  22780. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22781. if (this.worksStudent[i].length) {
  22782. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22783. if (this.userid == this.worksStudent[i][k].userid) {
  22784. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22785. break;
  22786. }
  22787. }
  22788. }
  22789. this.dialogVisibleTable = true;
  22790. } else if (t == 52) {
  22791. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22792. .taskJson[index].toolChoose[i].wordJson
  22793. ? JSON.parse(
  22794. JSON.stringify(
  22795. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22796. index
  22797. ].toolChoose[i].wordJson
  22798. )
  22799. )
  22800. : { text: "" };
  22801. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22802. if (this.worksStudent[i].length) {
  22803. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22804. if (this.userid == this.worksStudent[i][k].userid) {
  22805. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22806. break;
  22807. }
  22808. }
  22809. }
  22810. this.dialogVisibleWord = true;
  22811. } else if (t == 49) {
  22812. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  22813. return
  22814. }
  22815. this.groupJson =
  22816. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22817. index
  22818. ].toolChoose[i].groupJson;
  22819. this.islock = this.groupJson.islock == 1 ? true : false;
  22820. this.dialogVisibleGroup = true;
  22821. } else if (t == 62) {
  22822. this.videoType = 0;
  22823. this.videoJson = {};
  22824. this.videoJson =
  22825. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22826. index
  22827. ].toolChoose[i].videoJson;
  22828. this.dialogVisibleVideo = true;
  22829. }
  22830. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  22831. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  22832. },
  22833. teacherWorkSubmit(t, i, index, s) {
  22834. console.log('t',t);
  22835. if(t == 72) return
  22836. this.sStudent = s;
  22837. this.toolindex = i;
  22838. this.sTool = t;
  22839. if (this.tType !== "1" && this.tType !== "4") {
  22840. return;
  22841. }
  22842. if (t == 16 || t == 32 || t == 50) {
  22843. this.dialogVisibleWorks = true;
  22844. } else if (t == 15) {
  22845. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22846. .taskJson[index].toolChoose[i].answerQ
  22847. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22848. .toolChoose[i].answerQ
  22849. : "";
  22850. this.questionAnswer = "";
  22851. this.answerDialogVisibleTeacher = true; //问答
  22852. } else if (t == 52) {
  22853. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22854. .taskJson[index].toolChoose[i].wordJson
  22855. ? JSON.parse(
  22856. JSON.stringify(
  22857. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22858. index
  22859. ].toolChoose[i].wordJson
  22860. )
  22861. )
  22862. : { text: "" };
  22863. if (this.worksStudent[i].length) {
  22864. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22865. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22866. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22867. break;
  22868. }
  22869. }
  22870. }
  22871. this.dialogVisibleWordTeacher = true; //文档
  22872. } else if (t == 4) {
  22873. this.radio = [];
  22874. this.noteName = "";
  22875. this.isAnswer = false;
  22876. if (this.askCount > 0) {
  22877. this.updateCount(this.askCount, t);
  22878. } else {
  22879. this.askCount++;
  22880. a = this.askCount;
  22881. this.toolsCount(a, t);
  22882. }
  22883. if (!this.dialogVisible2) {
  22884. this.askJson.askJson =
  22885. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22886. index
  22887. ].toolChoose[i].askJson;
  22888. this.askJson.askTitle =
  22889. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22890. index
  22891. ].toolChoose[i].askTitle;
  22892. this.askJson.askCount =
  22893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22894. index
  22895. ].toolChoose[i].askCount;
  22896. } else {
  22897. this.askJson.askJson = this.chapTools.askJson.askJson;
  22898. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22899. this.askJson.askCount = this.chapTools.askJson.askCount;
  22900. }
  22901. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22902. if (this.askJson.askJson[k].type == "2") {
  22903. this.radio.push([]);
  22904. } else {
  22905. this.radio.push("");
  22906. }
  22907. }
  22908. this.dialogVisible5Teacher = true;
  22909. } else if (t == 45) {
  22910. this.noteName = "";
  22911. this.radio = [];
  22912. this.isAnswer = false;
  22913. if (this.askCount > 0) {
  22914. this.updateCount(this.askCount, t);
  22915. } else {
  22916. this.askCount++;
  22917. a = this.askCount;
  22918. this.toolsCount(a, t);
  22919. }
  22920. this.testJson =
  22921. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22922. index
  22923. ].toolChoose[i].testJson;
  22924. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22925. if (this.testJson.testJson[k].type == "2") {
  22926. this.radio.push([]);
  22927. } else {
  22928. this.radio.push("");
  22929. }
  22930. }
  22931. this.dialogVisibleChoiceTeacher = true;
  22932. } else if (t == 41) {
  22933. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22934. .taskJson[index].toolChoose[i].selectJson
  22935. ? JSON.parse(
  22936. JSON.stringify(
  22937. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22938. index
  22939. ].toolChoose[i].selectJson
  22940. )
  22941. )
  22942. : { url: "", select: [], answer: [] };
  22943. if (this.worksStudent[i].length) {
  22944. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22945. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22946. var a = this.worksStudent[i][k].works.split(",");
  22947. for (var ki = 0; ki < a.length; ki++) {
  22948. a[ki] = parseInt(a[ki]);
  22949. }
  22950. this.selectAnswer = {
  22951. answer: a,
  22952. stu: this.worksStudent[i][k].sName,
  22953. };
  22954. break;
  22955. } else {
  22956. this.selectAnswer = { answer: [], stu: "" };
  22957. }
  22958. }
  22959. } else {
  22960. this.selectAnswer = { answer: [], stu: "" };
  22961. }
  22962. this.isSelect = false;
  22963. this.dialogVisibleSelectTeacher = true;
  22964. } else if (t == 47) {
  22965. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22966. .taskJson[index].toolChoose[i].sentenceList
  22967. ? JSON.parse(
  22968. JSON.stringify(
  22969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22970. index
  22971. ].toolChoose[i].sentenceList
  22972. )
  22973. )
  22974. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22975. for (var q = 0; q < this.sentenceList.length; q++) {
  22976. this.sentenceList[q].chooseSenList = [];
  22977. this.sentenceList[q].addChangeSen = [];
  22978. this.sentenceList[q].addChangeSen = JSON.parse(
  22979. JSON.stringify(this.sentenceList[q].addSentence)
  22980. );
  22981. this.sentenceList[q].chooseSenList.length =
  22982. this.sentenceList[q].rightAnswer.length;
  22983. }
  22984. this.dialogVisibleSentenceTeacher = true;
  22985. } else if (t == 48) {
  22986. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22987. .taskJson[index].toolChoose[i].tableJson
  22988. ? JSON.parse(
  22989. JSON.stringify(
  22990. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22991. index
  22992. ].toolChoose[i].tableJson
  22993. )
  22994. )
  22995. : { text: "" };
  22996. if (this.worksStudent[i].length) {
  22997. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22998. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22999. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23000. break;
  23001. }
  23002. }
  23003. }
  23004. this.dialogVisibleTableTeacher = true;
  23005. } else if (t == 40) {
  23006. if (this.evalCount > 0) {
  23007. this.updateCount(this.evalCount, t);
  23008. } else {
  23009. this.evalCount++;
  23010. a = this.evalCount;
  23011. this.toolsCount(a, t);
  23012. }
  23013. this.eScore = { eBzText: "", eStar: [] };
  23014. if (this.worksStudent[i].length) {
  23015. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23016. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23017. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23018. this.rateJson =
  23019. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23020. index
  23021. ].toolChoose[i].rateJson;
  23022. break;
  23023. } else {
  23024. this.rateJson =
  23025. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23026. index
  23027. ].toolChoose[i].rateJson;
  23028. }
  23029. }
  23030. } else {
  23031. this.rateJson =
  23032. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23033. index
  23034. ].toolChoose[i].rateJson;
  23035. }
  23036. this.isStar = false;
  23037. this.studentEvalDialogVisibleTeacher = true;
  23038. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23039. window.topU.postMessage(
  23040. {
  23041. tools: t + "teacher",
  23042. cid: this.id,
  23043. stage: this.courseType,
  23044. task: this.taskCount,
  23045. tool: i,
  23046. student: this.sStudent,
  23047. },
  23048. "*"
  23049. );
  23050. }else if (t == 72) {
  23051. if (!document.fullscreenElement) {
  23052. this.enterFullScreen();
  23053. }
  23054. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23055. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23056. }
  23057. },
  23058. openCocoPi(tool, i, uid, uname) {
  23059. let student = {
  23060. userid: uid,
  23061. student: uname,
  23062. };
  23063. if (tool == 57) {
  23064. window.topU.postMessage(
  23065. {
  23066. tools: tool + "teacher",
  23067. cid: this.id,
  23068. stage: this.courseType,
  23069. task: this.taskCount,
  23070. tool: i,
  23071. student: student,
  23072. },
  23073. "*"
  23074. );
  23075. }
  23076. },
  23077. setRightAnswer(s, i, j) {
  23078. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23079. if (
  23080. this.sentenceList[i].chooseSenList[q] == undefined ||
  23081. this.sentenceList[i].chooseSenList[q] == ""
  23082. ) {
  23083. this.sentenceList[i].chooseSenList[q] = s;
  23084. this.sentenceList[i].addChangeSen[j] = "";
  23085. break;
  23086. }
  23087. }
  23088. this.$forceUpdate();
  23089. },
  23090. returnCard(r, i, j) {
  23091. var a = this.sentenceList[i].addSentence.indexOf(r);
  23092. this.sentenceList[i].chooseSenList[j] = "";
  23093. this.sentenceList[i].addChangeSen[a] = r;
  23094. this.$forceUpdate();
  23095. },
  23096. // addSentenceTool() {
  23097. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23098. // this.taskCount
  23099. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23100. // this.sentenceList = [
  23101. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23102. // ];
  23103. // this.dialogVisibleSentence = false;
  23104. // },
  23105. toolsCount(a, t) {
  23106. let params = {
  23107. cid: this.id,
  23108. chid: this.courseType,
  23109. uid: this.userid,
  23110. tid: t,
  23111. count: a,
  23112. };
  23113. this.ajax
  23114. .get(this.$store.state.api + "insertToolsCount", params)
  23115. .then((res) => {
  23116. this.selectCount();
  23117. })
  23118. .catch((err) => {
  23119. console.error(err);
  23120. });
  23121. },
  23122. updateCount(c, t) {
  23123. c++;
  23124. let params = {
  23125. cid: this.id,
  23126. chid: this.courseType,
  23127. uid: this.userid,
  23128. tid: t,
  23129. count: c,
  23130. };
  23131. this.ajax
  23132. .get(this.$store.state.api + "updateToolsCount", params)
  23133. .then((res) => {
  23134. this.selectCount();
  23135. })
  23136. .catch((err) => {
  23137. console.error(err);
  23138. });
  23139. },
  23140. checkEva() {
  23141. if (this.evalua != "") {
  23142. for (var i = 0; i < this.evaJuri.length; i++) {
  23143. if (this.evalua == this.evaJuri[i].id) {
  23144. this.eTitle = this.evaJuri[i].title;
  23145. this.eJson = JSON.parse(this.evaJuri[i].content);
  23146. }
  23147. }
  23148. this.$forceUpdate();
  23149. setTimeout(() => {
  23150. this.setMindData();
  23151. }, 0);
  23152. }
  23153. },
  23154. selectEva() {
  23155. let params = {
  23156. oid: this.oid,
  23157. };
  23158. this.ajax
  23159. .get(this.$store.state.api + "selectAllEvaluation", params)
  23160. .then((res) => {
  23161. this.evaJuri = res.data[0];
  23162. })
  23163. .catch((err) => {
  23164. console.error(err);
  23165. });
  23166. },
  23167. setMindData() {
  23168. this.data.data = [];
  23169. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23170. let _eJson = Object.keys(this.eJson);
  23171. let _e = this.eJson;
  23172. for (let i = 0; i < _eJson.length; i++) {
  23173. let element = _e[_eJson[i]];
  23174. this.data.data.push({
  23175. id: element.id,
  23176. parentid: "root",
  23177. topic: element.name,
  23178. });
  23179. let _eJsonc = Object.keys(element.child);
  23180. let _e2 = element.child;
  23181. for (let j = 0; j < _eJsonc.length; j++) {
  23182. let _ec = _e2[_eJsonc[j]];
  23183. this.data.data.push({
  23184. id: _ec.id,
  23185. parentid: element.id,
  23186. topic: _ec.name,
  23187. });
  23188. let _eJsonz = Object.keys(_ec.child);
  23189. let _e3 = _ec.child;
  23190. for (let z = 0; z < _eJsonz.length; z++) {
  23191. let _ez = _e3[_eJsonz[z]];
  23192. this.data.data.push({
  23193. id: _ez.id,
  23194. parentid: _ec.id,
  23195. topic: _ez.name,
  23196. });
  23197. }
  23198. }
  23199. }
  23200. this.$forceUpdate();
  23201. },
  23202. checkFileFull(type, url) {
  23203. this.fullDialogVisible = true;
  23204. this.fulltype = type;
  23205. this.fullUrl = url;
  23206. },
  23207. async checkFileFull1(t, f) {
  23208. this.fullDialogVisible = true;
  23209. if (t == 6) {
  23210. this.fulltype = 1;
  23211. this.fullUrl = JSON.parse(JSON.stringify(f));
  23212. } else if (t == 8) {
  23213. this.fulltype = 2;
  23214. this.fullUrl = f.url;
  23215. }else if (t == 15) {
  23216. this.fulltype = 4;
  23217. this.fullUrl = f.url;
  23218. } else if (t == 16) {
  23219. this.fulltype = 16;
  23220. this.fullUrl = f.url;
  23221. } else if (
  23222. t == 3 &&
  23223. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23224. "PDF"
  23225. ) {
  23226. this.fulltype = 3;
  23227. this.fullUrl = f.url;
  23228. } else if (t == 3) {
  23229. this.fulltype = 2;
  23230. let _uuurl = await this.checkLink(f.url);
  23231. console.log(_uuurl)
  23232. this.fullUrl =
  23233. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23234. }
  23235. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23236. },
  23237. openSname(n, id, i, uid) {
  23238. this.snameWid = id;
  23239. this.worksSName = n;
  23240. this.worksSid = uid == n ? "" : uid;
  23241. this.toolindex = i;
  23242. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23243. if (!this.uploadCid) {
  23244. this.$message.error(
  23245. this.lang.ssBatchUploadNoClassPermission
  23246. );
  23247. return;
  23248. }
  23249. this.selectUploadStudent(1);
  23250. },
  23251. updateName() {
  23252. let params = {
  23253. n: this.worksSName,
  23254. cid: this.snameWid,
  23255. };
  23256. this.ajax
  23257. .get(this.$store.state.api + "updateCourseWorksName", params)
  23258. .then((res) => {
  23259. this.$message({
  23260. message: this.lang.ssModifySuccess,
  23261. type: "success",
  23262. });
  23263. this.dialogVisibleSname = false;
  23264. this.getCourseDetail(2);
  23265. this.snameWid = "";
  23266. this.worksSName = "";
  23267. })
  23268. .catch((err) => {
  23269. console.error(err);
  23270. });
  23271. },
  23272. downloadFile2(f) {
  23273. // const loading = this.$loading.service({
  23274. // background: "rgba(255, 255, 255, 0.7)",
  23275. // target: document.body,
  23276. // text: "文件加载中...",
  23277. // });
  23278. // let url2 = f.url;
  23279. // let _url2 = "";
  23280. // if (
  23281. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23282. // ) {
  23283. // _url2 = url2.split(
  23284. // "https://view.officeapps.live.com/op/view.aspx?src="
  23285. // )[1];
  23286. // } else {
  23287. // _url2 = url2;
  23288. // }
  23289. // let params = {
  23290. // url: _url2,
  23291. // name: f.name,
  23292. // };
  23293. // this.ajax
  23294. // .get(this.$store.state.api + "download", params)
  23295. // .then((res) => {
  23296. // loading.close();
  23297. // let content = res.data.data.data;
  23298. // let ab = new ArrayBuffer(content.length);
  23299. // let view = new Uint8Array(ab);
  23300. // for (var i = 0; i < content.length; ++i) {
  23301. // view[i] = content[i];
  23302. // }
  23303. // let elink = document.createElement("a");
  23304. // elink.download = f.name;
  23305. // elink.style.display = "none";
  23306. // let blob = new Blob([ab], {
  23307. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23308. // });
  23309. // elink.href = URL.createObjectURL(blob);
  23310. // document.body.appendChild(elink);
  23311. // elink.click();
  23312. // document.body.removeChild(elink);
  23313. // })
  23314. // .catch((err) => {
  23315. // loading.close();
  23316. // console.error(err);
  23317. // });
  23318. var credentials = {
  23319. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23320. secretAccessKey: "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",
  23321. }; //秘钥形式的登录上传
  23322. window.AWS.config.update(credentials);
  23323. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23324. let url2 = f.url;
  23325. let _url2 = "";
  23326. if (
  23327. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23328. ) {
  23329. _url2 = url2.split(
  23330. "https://view.officeapps.live.com/op/view.aspx?src="
  23331. )[1];
  23332. } else {
  23333. _url2 = url2;
  23334. }
  23335. let _this = this;
  23336. _this.downLoading = true
  23337. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23338. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23339. var params = {
  23340. Bucket: "ccrb",
  23341. Key: name
  23342. };
  23343. s3.getObject(params, function (err, data) {
  23344. _this.downLoading = false
  23345. if (err) console.log(err, err.stack); // an error occurred
  23346. else {
  23347. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23348. let a = document.createElement("a");
  23349. a.name = f.name;
  23350. a.href = url;
  23351. a.download = f.name;
  23352. a.click();
  23353. console.log(data);
  23354. } // sxuccessful response
  23355. });
  23356. return;
  23357. // let url = f.url;
  23358. // let _url = "";
  23359. // if (
  23360. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23361. // ) {
  23362. // _url = url.split(
  23363. // "https://view.officeapps.live.com/op/view.aspx?src="
  23364. // )[1];
  23365. // } else {
  23366. // _url = url;
  23367. // }
  23368. // _this.downLoading = true
  23369. // // const loading = _this.$loading.service({
  23370. // // background: "rgba(255, 255, 255, 0.7)",
  23371. // // target: document.body,
  23372. // // text: "文件加载中...",
  23373. // // });
  23374. // let x = new XMLHttpRequest();
  23375. // x.open("GET", _url, true);
  23376. // x.responseType = "blob";
  23377. // x.onload = function () {
  23378. // _this.downLoading = false
  23379. // // loading.close();
  23380. // let url = window.URL.createObjectURL(new Blob([x.response]));
  23381. // let a = document.createElement("a");
  23382. // a.name = f.name;
  23383. // a.href = url;
  23384. // a.download = f.name;
  23385. // a.click();
  23386. // };
  23387. // x.send();
  23388. },
  23389. downloadFile(url,uid) {
  23390. if (this.tType == 1 || this.userid == uid) {
  23391. let hz = url.substring(url.lastIndexOf(".") + 1);
  23392. if (hz == "txt" || hz == "md") {
  23393. this.lookTxt(url);
  23394. return;
  23395. }
  23396. var credentials = {
  23397. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23398. secretAccessKey: "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",
  23399. }; //秘钥形式的登录上传
  23400. window.AWS.config.update(credentials);
  23401. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23402. let url2 = url;
  23403. let _url2 = "";
  23404. if (
  23405. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23406. ) {
  23407. _url2 = url2.split(
  23408. "https://view.officeapps.live.com/op/view.aspx?src="
  23409. )[1];
  23410. } else {
  23411. _url2 = url2;
  23412. }
  23413. const loading2 = this.$loading.service({
  23414. background: "rgba(255, 255, 255, 0.7)",
  23415. target: document.body,
  23416. text: "文件加载中...",
  23417. });
  23418. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23419. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23420. var params = {
  23421. Bucket: "ccrb",
  23422. Key: name
  23423. };
  23424. s3.getObject(params, function (err, data) {
  23425. loading2.close();
  23426. if (err) console.log(err, err.stack); // an error occurred
  23427. else {
  23428. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23429. let a = document.createElement("a");
  23430. a.name = name;
  23431. a.href = url;
  23432. a.download = name;
  23433. a.click();
  23434. console.log(data);
  23435. } // sxuccessful response
  23436. });
  23437. }
  23438. return;
  23439. // let _this = this;
  23440. // let _url = "";
  23441. // if (
  23442. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23443. // ) {
  23444. // _url = url.split(
  23445. // "https://view.officeapps.live.com/op/view.aspx?src="
  23446. // )[1];
  23447. // } else {
  23448. // _url = url;
  23449. // }
  23450. // const x = new XMLHttpRequest();
  23451. // x.open("GET", _url, true);
  23452. // x.responseType = "blob";
  23453. // // this.downLoading = true
  23454. // const loading = _this.$loading.service({
  23455. // background: "rgba(255, 255, 255, 0.7)",
  23456. // target: document.body,
  23457. // text: "文件加载中...",
  23458. // });
  23459. // // _this.$message.success("文件下载中...");
  23460. // x.onload = function (e) {
  23461. // this.downLoading = false
  23462. // loading.close();
  23463. // let content = x.response;
  23464. // let elink = document.createElement("a");
  23465. // elink.download = decodeURI(
  23466. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23467. // );
  23468. // elink.style.display = "none";
  23469. // let blob = new Blob([content]);
  23470. // elink.href = URL.createObjectURL(blob);
  23471. // document.body.appendChild(elink);
  23472. // elink.click();
  23473. // document.body.removeChild(elink);
  23474. // };
  23475. // x.send();
  23476. },
  23477. openLine(url) {
  23478. window.open(url);
  23479. },
  23480. resize() {
  23481. if (document.getElementsByClassName("box_course").length) {
  23482. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23483. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23484. if (this.showType == 2 || this.showType == 3) {
  23485. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  23486. document.getElementsByClassName("navBox")[0].style.height =
  23487. a - 40 + 0+ "px";
  23488. }
  23489. } else {
  23490. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  23491. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  23492. }
  23493. }
  23494. }
  23495. this.Stbodywidth =
  23496. document.getElementsByClassName("student_body").length &&
  23497. document.getElementsByClassName("student_body")[0].offsetWidth;
  23498. },
  23499. closeDraw() {
  23500. this.bg = null;
  23501. this.drawShow = false;
  23502. },
  23503. showPicturePaint(url) {
  23504. let params = {
  23505. img: url,
  23506. };
  23507. this.ajax
  23508. .get(this.$store.state.api + "imgToBase64", params)
  23509. .then((res) => {
  23510. this.drawShow = true;
  23511. this.bg = res.data[0].img;
  23512. })
  23513. .catch((err) => {
  23514. console.error(err);
  23515. });
  23516. },
  23517. addImgDraw(base64) {
  23518. let file = { name: "批注图.png" };
  23519. let img = this.dataUrlToFile(base64, file);
  23520. this.beforeUpload1(img, 5);
  23521. },
  23522. addImgDrawImG(url) {
  23523. // console.log(url);
  23524. let params = [
  23525. {
  23526. wid: this.commentDetail.wid,
  23527. img: url,
  23528. },
  23529. ];
  23530. this.ajax
  23531. .post(this.$store.state.api + "updateCourseWorks", params)
  23532. .then((res) => {
  23533. this.$message({
  23534. message: this.lang.ssSubmitSuccess,
  23535. type: "success",
  23536. });
  23537. this.drawShow = false;
  23538. this.bg = "";
  23539. this.selectSWorks();
  23540. this.selectStudent();
  23541. })
  23542. .catch((err) => {
  23543. this.$message.error(this.lang.ssSubmitFailed);
  23544. console.error(err);
  23545. });
  23546. },
  23547. deletePicturePaint() {
  23548. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  23549. confirmButtonText: this.lang.ssConfirm,
  23550. cancelButtonText: this.lang.ssCancel,
  23551. type: "warning",
  23552. })
  23553. .then(() => {
  23554. let params = [
  23555. {
  23556. wid: this.commentDetail.wid,
  23557. img: "",
  23558. },
  23559. ];
  23560. this.ajax
  23561. .post(this.$store.state.api + "updateCourseWorks", params)
  23562. .then((res) => {
  23563. this.$message({
  23564. message: this.lang.ssDeleteSuccess,
  23565. type: "success",
  23566. });
  23567. this.selectSWorks();
  23568. this.selectStudent();
  23569. })
  23570. .catch((err) => {
  23571. this.$message.error(this.lang.ssDeleteFailed);
  23572. console.error(err);
  23573. });
  23574. })
  23575. .catch(() => {});
  23576. },
  23577. getAudioVideo(constraintsData) {
  23578. if (navigator.mediaDevices === undefined) {
  23579. navigator.mediaDevices = {};
  23580. }
  23581. if (navigator.mediaDevices.getUserMedia === undefined) {
  23582. navigator.mediaDevices.getUserMedia = function (constraints) {
  23583. // 首先,如果有getUserMedia的话,就获得它
  23584. var getUserMedia =
  23585. navigator.getUserMedia ||
  23586. navigator.webkitGetUserMedia ||
  23587. navigator.mozGetUserMedia ||
  23588. navigator.msGetUserMedia;
  23589. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23590. if (!getUserMedia) {
  23591. return Promise.reject({ code: 404 });
  23592. }
  23593. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23594. return new Promise(function (resolve, reject) {
  23595. getUserMedia.call(navigator, constraints, resolve, reject);
  23596. });
  23597. };
  23598. }
  23599. return navigator.mediaDevices.getUserMedia(constraintsData);
  23600. },
  23601. /**
  23602. * 开始录制
  23603. */
  23604. startRecording(callback) {
  23605. let _function = (screenStream) => {
  23606. this.addStreamStopListener(screenStream, () => {
  23607. console.log(this.lang.ssStreamStopListening);
  23608. this.stopRecording();
  23609. this.$emit("streamStop", {});
  23610. // this.stopRecording();
  23611. });
  23612. var options = {
  23613. type: "video",
  23614. mimeType: "video/webm",
  23615. disableLogs: false,
  23616. getNativeBlob: false, // enable it for longer recordings
  23617. ignoreMutedMedia: false,
  23618. };
  23619. // this.video.srcObject = screenStream;
  23620. this.recorder = RecordRTC(screenStream, options);
  23621. this.recorder.startRecording();
  23622. this.recorder.screen = screenStream;
  23623. this.videoStart = true;
  23624. // callback(true);
  23625. };
  23626. this.getAudioVideo({ audio: true })
  23627. .then((res) => {
  23628. this.captureScreen(_function, true);
  23629. console.log(this.lang.ssPermissionGrantedSuccess);
  23630. })
  23631. .catch((err) => {
  23632. // console.log('浏览器不支持,请更换浏览器')
  23633. // } else {
  23634. this.captureScreen(_function, false);
  23635. console.log(this.lang.ssCheckMicrophone);
  23636. });
  23637. },
  23638. /**
  23639. * 停止录制
  23640. */
  23641. stopRecording(callback) {
  23642. this.recorder.stopRecording(() => {
  23643. // this.video.src = this.video.srcObject = null;
  23644. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23645. const url = URL.createObjectURL(this.recorder.getBlob());
  23646. const a = document.createElement("a"); //this.fileName+
  23647. let videoFile = new File(
  23648. [this.recorder.getBlob()],
  23649. this.courseDetail.title + this.lang.ssScreenRecording+'.mp4',
  23650. {
  23651. type: "video/mp4",
  23652. }
  23653. );
  23654. let downloadUrl = URL.createObjectURL(videoFile);
  23655. if(this.$refs.classRoomHelperRef){
  23656. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  23657. }
  23658. document.body.appendChild(a);
  23659. a.style.display = "none";
  23660. a.href = url;
  23661. a.download = this.courseDetail.title + this.lang.ssScreenRecording+'.mp4'; //this.fileName +
  23662. a.click();
  23663. this.recorder.screen.stop();
  23664. this.recorder.destroy();
  23665. this.recorder = null;
  23666. this.videoStart = false;
  23667. // callback(false);
  23668. });
  23669. },
  23670. //初始化
  23671. captureScreen(callback, type) {
  23672. if (navigator.getDisplayMedia) {
  23673. //录制结束,文件下载
  23674. navigator
  23675. .getDisplayMedia({
  23676. video: true,
  23677. })
  23678. .then((screenStream) => {
  23679. if (type) {
  23680. navigator.mediaDevices
  23681. .getUserMedia({ audio: true })
  23682. .then((mic) => {
  23683. screenStream.addTrack(mic.getTracks()[0]);
  23684. callback(screenStream);
  23685. });
  23686. } else {
  23687. callback(screenStream);
  23688. }
  23689. })
  23690. .catch(function (error) {
  23691. console.log("error", error);
  23692. });
  23693. } else if (navigator.mediaDevices.getDisplayMedia) {
  23694. navigator.mediaDevices
  23695. .getDisplayMedia({
  23696. video: true,
  23697. })
  23698. .then((screenStream) => {
  23699. if (type) {
  23700. navigator.mediaDevices
  23701. .getUserMedia({ audio: true })
  23702. .then((mic) => {
  23703. screenStream.addTrack(mic.getTracks()[0]);
  23704. callback(screenStream);
  23705. });
  23706. } else {
  23707. callback(screenStream);
  23708. }
  23709. })
  23710. .catch(function (error) {
  23711. console.log("error", error);
  23712. });
  23713. } else {
  23714. var error = "getDisplayMedia API are not supported in this browser.";
  23715. console.log("error", error);
  23716. alert(error);
  23717. }
  23718. },
  23719. //流监听
  23720. addStreamStopListener(stream, callback) {
  23721. stream.addEventListener(
  23722. "ended",
  23723. function () {
  23724. callback();
  23725. callback = function () {};
  23726. },
  23727. false
  23728. );
  23729. stream.addEventListener(
  23730. "inactive",
  23731. function () {
  23732. callback();
  23733. callback = function () {};
  23734. },
  23735. false
  23736. );
  23737. stream.getTracks().forEach(function (track) {
  23738. track.addEventListener(
  23739. "ended",
  23740. function () {
  23741. callback();
  23742. callback = function () {};
  23743. },
  23744. false
  23745. );
  23746. track.addEventListener(
  23747. "inactive",
  23748. function () {
  23749. callback();
  23750. callback = function () {};
  23751. },
  23752. false
  23753. );
  23754. });
  23755. },
  23756. updateGroup() {
  23757. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23758. this.dialogVisibleGroup2 = true;
  23759. },
  23760. numberPan() {
  23761. if (
  23762. /[^\d]/.test(this.groupJson.number) ||
  23763. this.groupJson.number < 2 ||
  23764. this.groupJson.number > 10
  23765. ) {
  23766. this.$message.error(this.lang.ssEnterNumber2To10);
  23767. this.groupJson.number = "";
  23768. }
  23769. },
  23770. updateGroupJson() {
  23771. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23772. if (
  23773. this.groupStudentUid[this.toolindex][i].length >
  23774. this.groupJson2.number
  23775. ) {
  23776. this.$message.error(this.lang.ssGroupLargerThanSet);
  23777. return;
  23778. }
  23779. }
  23780. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23781. this.islock = this.groupJson.islock == 1 ? true : false;
  23782. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23783. this.taskCount
  23784. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23785. let params = [
  23786. {
  23787. cid: this.id,
  23788. chapters: JSON.stringify(this.chapInfoList),
  23789. uid: this.userid,
  23790. unitIndex: this.courseType,
  23791. },
  23792. ];
  23793. this.ajax
  23794. .post(this.$store.state.api + "updateWorkNew4", params)
  23795. .then((res) => {
  23796. this.$message.success(this.lang.ssSettingSuccess);
  23797. this.getCourseDetail(2);
  23798. this.dialogVisibleGroup2 = false;
  23799. this.groupJson2 = {};
  23800. this.$forceUpdate();
  23801. })
  23802. .catch((err) => {
  23803. this.$message.error(this.lang.ssNetworkPoor);
  23804. console.error(err);
  23805. });
  23806. },
  23807. lockChair() {
  23808. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23809. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23810. this.updateGroupJson();
  23811. },
  23812. selectGroup(index) {
  23813. this.getCourseDetail(2, index);
  23814. },
  23815. joinGroup(index) {
  23816. if (this.groupJson.islock == 2) {
  23817. this.$message.error(this.lang.ssPositionLockedCannotJoin);
  23818. return;
  23819. }
  23820. if (
  23821. this.groupStudent[this.toolindex][index].length >
  23822. this.groupJson.number ||
  23823. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23824. ) {
  23825. this.$message.error(this.lang.ssPositionFullCannotJoin);
  23826. return;
  23827. }
  23828. let params = [
  23829. {
  23830. cid: this.id,
  23831. stage: this.courseType,
  23832. task: this.taskCount,
  23833. tool: this.toolindex,
  23834. g: index,
  23835. uid: this.userid,
  23836. },
  23837. ];
  23838. this.ajax
  23839. .post(this.$store.state.api + "joinGroup", params)
  23840. .then((res) => {
  23841. this.$message.success(this.lang.ssJoinSuccess);
  23842. this.getCourseDetail(2);
  23843. })
  23844. .catch((err) => {
  23845. this.$message.error(this.lang.ssNetworkPoor);
  23846. console.error(err);
  23847. });
  23848. },
  23849. exitGroup(id) {
  23850. if (this.groupJson.islock == 2) {
  23851. this.$message.error(this.lang.ssPositionLockedCannotExit);
  23852. return;
  23853. }
  23854. let params = [
  23855. {
  23856. gid: id,
  23857. },
  23858. ];
  23859. this.ajax
  23860. .post(this.$store.state.api + "exitGroup", params)
  23861. .then((res) => {
  23862. this.$message.success(this.lang.ssExitSuccess);
  23863. this.getCourseDetail(2);
  23864. })
  23865. .catch((err) => {
  23866. this.$message.error(this.lang.ssNetworkPoor);
  23867. console.error(err);
  23868. });
  23869. },
  23870. groupUpload(index, task, gindex) {
  23871. this.taskCount = task;
  23872. this.toolindex = index;
  23873. this.groupIndex = gindex;
  23874. this.dialogVisibleGroupWork = true;
  23875. },
  23876. updateGroupChair(user) {
  23877. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23878. el.label = index;
  23879. return index != user.group;
  23880. });
  23881. this.updateGroupUser = user;
  23882. this.dialogVisibleUpdateGroup = true;
  23883. },
  23884. updateChair() {
  23885. if (
  23886. this.groupStudent[this.toolindex][this.checkChair].length >
  23887. this.groupJson.number ||
  23888. this.groupStudent[this.toolindex][this.checkChair].length ==
  23889. this.groupJson.number
  23890. ) {
  23891. this.$message.error(this.lang.ssPositionFullCannotJoin);
  23892. return;
  23893. }
  23894. let params = [
  23895. {
  23896. cid: this.id,
  23897. stage: this.courseType,
  23898. task: this.taskCount,
  23899. tool: this.toolindex,
  23900. g: this.checkChair,
  23901. uid: this.updateGroupUser.userid,
  23902. },
  23903. ];
  23904. this.ajax
  23905. .post(this.$store.state.api + "joinGroup", params)
  23906. .then((res) => {
  23907. this.$message.success(this.lang.ssModifySuccess);
  23908. this.updateGroupUser = {};
  23909. this.checkChair = "";
  23910. this.updateGroupArray = {};
  23911. this.dialogVisibleUpdateGroup = false;
  23912. this.getCourseDetail(2);
  23913. })
  23914. .catch((err) => {
  23915. this.$message.error(this.lang.ssNetworkPoor);
  23916. console.error(err);
  23917. });
  23918. },
  23919. deleteGroupChair(gindex) {
  23920. this.checkDeleteGroup = [];
  23921. this.deleteGroupUser = JSON.parse(
  23922. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23923. );
  23924. this.deleteGroupArray = this.groupJson.group[gindex];
  23925. this.groupIndex = gindex;
  23926. this.dialogVisibleDeleteGroup = true;
  23927. },
  23928. async deleteChair() {
  23929. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23930. const gid =
  23931. this.groupStudent[this.toolindex][this.groupIndex][
  23932. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23933. this.checkDeleteGroup[i]
  23934. )
  23935. ];
  23936. let params = [
  23937. {
  23938. gid: gid.id,
  23939. },
  23940. ];
  23941. var a = await this.deleteChairA(params);
  23942. if (i == this.checkDeleteGroup.length - 1) {
  23943. this.$message.success(this.lang.ssExitSuccess);
  23944. this.dialogVisibleDeleteGroup = false;
  23945. this.deleteGroupUser = [];
  23946. this.deleteGroupArray = {};
  23947. this.groupIndex = "";
  23948. this.checkDeleteGroup = [];
  23949. this.getCourseDetail(2);
  23950. }
  23951. }
  23952. },
  23953. deleteChairA(params) {
  23954. return new Promise((resolve, reject) => {
  23955. this.ajax
  23956. .post(this.$store.state.api + "exitGroup", params)
  23957. .then((res) => {
  23958. resolve(1);
  23959. })
  23960. .catch((err) => {
  23961. this.$message.error(this.lang.ssNetworkPoor);
  23962. console.error(err);
  23963. });
  23964. });
  23965. },
  23966. contract(i) {
  23967. if (this.isCloseList[i].isClose == 0) {
  23968. this.isCloseList[i].isClose = 1;
  23969. } else {
  23970. this.isCloseList[i].isClose = 0;
  23971. }
  23972. this.$forceUpdate();
  23973. },
  23974. openWordCloud(toolindex) {
  23975. this.wordCloudData = '';
  23976. let array = [];
  23977. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23978. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23979. array.push({ name: works });
  23980. }
  23981. if (this.isGroup) {
  23982. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23983. let works = this.courseGroup.group[i].works[toolindex];
  23984. for (var j = 0; j < works.length; j++) {
  23985. let answer = JSON.parse(works[j].works)[0].answer;
  23986. array.push({ name: answer });
  23987. }
  23988. }
  23989. }
  23990. let _result = ''
  23991. array.forEach(e=>{
  23992. _result +=e.name+','
  23993. })
  23994. this.wordCloudData = _result;
  23995. this.dialogVisibleWordCloud = true;
  23996. this.wordCloudKey += 1;
  23997. },
  23998. uploadWorks(i) {
  23999. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  24000. confirmButtonText: this.lang.ssConfirm,
  24001. cancelButtonText: this.lang.ssCancel,
  24002. type: "warning",
  24003. })
  24004. .then(() => {
  24005. const loading = this.$loading.service({
  24006. background: "rgba(255, 255, 255, 0.7)",
  24007. target: document.body,
  24008. text: this.lang.ssFileLoading,
  24009. });
  24010. const _worksStudent = this.worksStudent;
  24011. let url = [];
  24012. var counts = {};
  24013. for (var l = 0; l < _worksStudent[i].length; l++) {
  24014. var item = _worksStudent[i][l];
  24015. var name = item.sName;
  24016. if (!counts.hasOwnProperty(name)) {
  24017. counts[name] = 0;
  24018. } else {
  24019. counts[name]++;
  24020. }
  24021. if (counts[name] > 0) {
  24022. item.sName += " (" + counts[name] + ")";
  24023. }
  24024. }
  24025. for (var l = 0; l < _worksStudent[i].length; l++) {
  24026. var item = _worksStudent[i][l];
  24027. if (
  24028. item.works.indexOf(
  24029. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24030. ) !== -1 &&
  24031. item.works.indexOf("img") === -1
  24032. ) {
  24033. url.push({ name: item.sName, url: item.works });
  24034. }
  24035. }
  24036. // var toolList = [
  24037. // { name: "电子白板", tool: 1 },
  24038. // { name: "思维导图", tool: 3 },
  24039. // { name: "协同文档", tool: 6 },
  24040. // { name: "思维网格", tool: 7 },
  24041. // { name: "素材库", tool: 8 },
  24042. // { name: "学习资料", tool: 17 },
  24043. // { name: "便签", tool: 2 },
  24044. // { name: "问卷调查", tool: 4 },
  24045. // { name: "选择题", tool: 45 },
  24046. // { name: "倒计时", tool: 10 },
  24047. // { name: "问答", tool: 15 },
  24048. // { name: "课程设计", tool: 26 },
  24049. // { name: "训练服务器", tool: 18 },
  24050. // { name: "作业提交", tool: 16 },
  24051. // { name: "批量上传", tool: 50 },
  24052. // { name: "AIoT Blockly", tool: 21 },
  24053. // { name: "AI Python", tool: 23 },
  24054. // { name: "AI Blockly", tool: 24 },
  24055. // { name: "目标管理", tool: 25 },
  24056. // { name: "数学画板", tool: 31 },
  24057. // { name: "翻译", tool: 28 },
  24058. // { name: "魔盒识字", tool: 37 },
  24059. // { name: "数学画板", tool: 31 },
  24060. // { name: "24点", tool: 38 },
  24061. // { name: "GeoGebra", tool: 39 },
  24062. // { name: "源码编辑", tool: 32 },
  24063. // { name: "个人评价", tool: 40 },
  24064. // { name: "选择匹配", tool: 41 },
  24065. // { name: "汉字宫", tool: 44 },
  24066. // { name: "排序", tool: 47 },
  24067. // { name: "表格", tool: 48 },
  24068. // { name: "文档", tool: 52 },
  24069. // { name: "学生分组", tool: 49 },
  24070. // { name: "CocoPi", tool: 57 },
  24071. // { name: "模拟驾驶", tool: 58 },
  24072. // { name: "路径搜索", tool: 59 },
  24073. // { name: "深度学习", tool: 60 },
  24074. // { name: "全历史", tool: 61 },
  24075. // { name: "交互视频", tool: 62 },
  24076. // { name: "海龟编程", tool: 63 },
  24077. // { name: "挑人", tool: 65 },
  24078. // { name: "公式编辑", tool: 66 },
  24079. // { name: "分子结构", tool: 67 },
  24080. // { name: "时间轴", tool: 68 },
  24081. // ];
  24082. // var toolName = "";
  24083. // for(var w = 0;w<toolList.length;w++){
  24084. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24085. // toolName = toolList[w].name;
  24086. // }
  24087. // }
  24088. console.log(url);
  24089. this.downLoadAll(url, loading);
  24090. })
  24091. .catch(() => {});
  24092. },
  24093. downLoadAll(url, loading) {
  24094. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24095. const zip = new JSZip();
  24096. const cache = {};
  24097. const promises = [];
  24098. data.forEach((item) => {
  24099. const promise = getFile(item.url).then((data) => {
  24100. if (data.data != 1) {
  24101. // 下载文件, 并存成ArrayBuffer对象
  24102. const file_name =
  24103. item.name +
  24104. "." +
  24105. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24106. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24107. cache[file_name] = data.data;
  24108. }
  24109. });
  24110. promises.push(promise);
  24111. });
  24112. Promise.all(promises).then(() => {
  24113. zip.generateAsync({ type: "blob" }).then((content) => {
  24114. // 生成二进制流
  24115. FileSaver.saveAs(
  24116. content,
  24117. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  24118. );
  24119. // 利用file-saver保存文件 自定义文件名
  24120. setTimeout(() => {
  24121. loading.close();
  24122. }, 2000);
  24123. });
  24124. });
  24125. },
  24126. pickStudent(stu) {
  24127. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24128. return;
  24129. }
  24130. this.$confirm(this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name), this.lang.ssPrompt, {
  24131. confirmButtonText: this.lang.ssConfirm,
  24132. cancelButtonText: this.lang.ssCancel,
  24133. type: "warning",
  24134. })
  24135. .then(() => {
  24136. let params = [
  24137. {
  24138. uid: stu.userid,
  24139. cid: this.id,
  24140. stage: this.courseType,
  24141. task: this.taskCount,
  24142. tool: this.toolindex,
  24143. },
  24144. ];
  24145. this.ajax
  24146. .post(this.$store.state.api + "updateCoursePick", params)
  24147. .then((res) => {
  24148. this.$message.success(this.lang.ssOperationSuccess);
  24149. this.getPick();
  24150. })
  24151. .catch((err) => {
  24152. this.$message.error(this.lang.ssNetworkPoor);
  24153. console.error(err);
  24154. });
  24155. })
  24156. .catch(() => {});
  24157. },
  24158. selectUser(){
  24159. let params = {
  24160. userid: this.userid,
  24161. };
  24162. this.ajax
  24163. .get(this.$store.state.api + "selectUser", params)
  24164. .then((res) => {
  24165. this.userMes = res.data[0];
  24166. })
  24167. .catch((err) => {
  24168. console.error(err);
  24169. });
  24170. },
  24171. setEngText(i){
  24172. this.newEngIndex = i;
  24173. this.$forceUpdate();
  24174. },
  24175. addCorrect(){
  24176. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  24177. confirmButtonText: this.lang.ssConfirm,
  24178. showCancelButton: false,
  24179. closeOnClickModal: false,
  24180. type: "warning",
  24181. })
  24182. .then(() => {
  24183. let params = {
  24184. cid: this.id,
  24185. s: parseInt(this.courseType),
  24186. t: this.taskCount,
  24187. tool: this.toolindex,
  24188. wid: this.engWid,
  24189. c: this.userid,
  24190. 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) : "",
  24191. };
  24192. this.ajax
  24193. .get(this.$store.state.api + "addEngC", params)
  24194. .then((res) => {
  24195. this.$message.success(this.lang.ssSubmitSuccess);
  24196. this.engUpdateDialogVisible = false;
  24197. })
  24198. .catch((err) => {
  24199. console.error(err);
  24200. });
  24201. })
  24202. .catch(() => {});
  24203. },
  24204. selectEngC(id,z){
  24205. let params = {
  24206. workid: id,
  24207. };
  24208. this.ajax
  24209. .get(this.$store.state.api + "selectEngC", params)
  24210. .then((res) => {
  24211. if(res.data[0].length == 0){
  24212. this.newEnglishList.engTitle = z.engTitle;
  24213. this.newEnglishList.engText = z.engText;
  24214. }else{
  24215. var a = res.data[0];
  24216. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24217. if(this.userMes[0].type == 2){
  24218. var snum = 0;
  24219. for(var i = 0;i<a.length;i++){
  24220. if(this.userMes[0].userid == a[i].correct){
  24221. this.newEnglishList = JSON.parse(a[i].cWork);
  24222. snum = 1;
  24223. }
  24224. }
  24225. if(snum == 0){
  24226. this.newEnglishList = { engTitle:"",engText:"" };
  24227. this.newEnglishList.engTitle = z.engTitle;
  24228. this.newEnglishList.engText = z.engText;
  24229. }
  24230. }else if(this.userMes[0].type == 1){
  24231. var num = 0;
  24232. for(var w= 0;w<a.length;w++){
  24233. if(this.userMes[0].userid == a[w].correct){
  24234. num = 1;
  24235. }
  24236. }
  24237. if(num == 0){
  24238. this.isNoUserid = true;
  24239. var c = JSON.parse(JSON.stringify(z));
  24240. this.oldEnglishJson1 = c;
  24241. }else{
  24242. this.isNoUserid = false;
  24243. }
  24244. var b = a.sort((item, index) => {
  24245. console.log(item)
  24246. if (item.correct === this.userMes[0].userid) {
  24247. return -1; // 将a移到前面
  24248. } else if (index.correct === this.userMes[0].userid) {
  24249. return 1; // 将b移到前面
  24250. } else {
  24251. return 0; // 保持默认顺序
  24252. }
  24253. });
  24254. for(var p = 0;p<b.length;p++){
  24255. for(var y = 0;y<ppp.length;y++){
  24256. if(b[p].id == ppp[y].id){
  24257. b[p].cWork = JSON.parse(ppp[y].cWork);
  24258. break
  24259. }
  24260. }
  24261. }
  24262. this.newEnglishList1 = b;
  24263. }
  24264. }
  24265. this.greyType = false;
  24266. setTimeout(() => {
  24267. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24268. if(this.newEnglishList1.length > 0){
  24269. if(this.isNoUserid == true){
  24270. this.engListLength = this.newEnglishList1.length + 1;
  24271. this.newEngIndex = -1;
  24272. }else{
  24273. this.engListLength = this.newEnglishList1.length;
  24274. this.newEngIndex = 0;
  24275. }
  24276. }
  24277. if(this.userMes[0].type == 2){
  24278. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24279. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24280. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24281. }else if(this.newEngIndex == -1){
  24282. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24283. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24284. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24285. }
  24286. }, 500);
  24287. this.engUpdateDialogVisible = true;
  24288. this.$forceUpdate();
  24289. })
  24290. .catch((err) => {
  24291. console.error(err);
  24292. });
  24293. },
  24294. getPick() {
  24295. if(this.getPickLoading) return
  24296. this.getPickLoading = true
  24297. let params = {
  24298. cid: this.id,
  24299. };
  24300. this.ajax
  24301. .get(this.$store.state.api + "getPick", params)
  24302. .then((res) => {
  24303. let array = [];
  24304. for (var i = 0; i < res.data[0].length; i++) {
  24305. array.push(res.data[0][i].userid);
  24306. }
  24307. this.isPickStudent = array;
  24308. if (array.indexOf(this.userid) !== -1) {
  24309. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  24310. confirmButtonText: this.lang.ssConfirm,
  24311. showCancelButton: false,
  24312. closeOnClickModal: false,
  24313. type: "warning",
  24314. })
  24315. .then(() => {
  24316. let pa = [
  24317. {
  24318. uid: this.userid,
  24319. cid: this.id,
  24320. },
  24321. ];
  24322. this.ajax
  24323. .post(this.$store.state.api + "deletePick", pa)
  24324. .then((res) => {
  24325. this.getPick();
  24326. })
  24327. .catch((err) => {
  24328. this.$message.error(this.lang.ssNetworkPoor);
  24329. console.error(err);
  24330. });
  24331. })
  24332. .catch(() => {});
  24333. }
  24334. this.getPickLoading = false
  24335. })
  24336. .catch((err) => {
  24337. this.getPickLoading = false
  24338. this.$message.error(this.lang.ssNetworkPoor);
  24339. console.error(err);
  24340. });
  24341. },
  24342. foldEva() {
  24343. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24344. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24345. } else {
  24346. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24347. setTimeout(() => {
  24348. this.checkEva();
  24349. setTimeout(() => {
  24350. this.checkEva();
  24351. }, 500);
  24352. }, 0);
  24353. }
  24354. this.$forceUpdate();
  24355. },
  24356. panToolHeight(tool) {
  24357. var _tool = document.querySelectorAll('#'+tool)[0]
  24358. var _toolA = _tool ? _tool.offsetHeight : 0
  24359. var _toolC = 0
  24360. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24361. let boolean2 = (_toolA > _toolC) ? true : false
  24362. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24363. this.$forceUpdate();
  24364. },
  24365. async checkLink(url) {
  24366. // console.log(url)
  24367. let _url = url
  24368. try {
  24369. const response = await fetch(url);
  24370. if(!response.ok){
  24371. _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]))
  24372. }
  24373. // console.log(response.ok)
  24374. } catch (error) {
  24375. console.error('Error checking link:', error);
  24376. // console.log(false)
  24377. _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]))
  24378. }
  24379. // console.log(_url)
  24380. return _url
  24381. },
  24382. getScoreList(){
  24383. let params = {
  24384. cid: this.id,
  24385. };
  24386. this.ajax
  24387. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24388. .then((res) => {
  24389. let result = res.data;
  24390. this.scoreList.datalist = result[0];
  24391. this.scoreList.isScoreList = result[1];
  24392. })
  24393. .catch((err) => {
  24394. console.error(err);
  24395. });
  24396. },
  24397. setClassRoomHelperWidth(width){
  24398. this.classRoomHelperWidth = width
  24399. },
  24400. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24401. this.$refs.choseWorksDetailDialogRef.open({
  24402. toolType:tooc,
  24403. tType: this.tType,
  24404. toolIndex: toolIndex
  24405. });
  24406. this.changeSplitScreenBehavior({
  24407. code: 1,
  24408. form: {
  24409. toolType:tooc,
  24410. toolIndex: toolIndex,
  24411. courseType: this.courseType,
  24412. taskCount: this.taskCount,
  24413. type: 0
  24414. }
  24415. });
  24416. },
  24417. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24418. this.$refs.statisticalAnalysisRef.open({
  24419. worksStudent: this.worksStudent[toolIndex],
  24420. tType: this.tType,
  24421. toolIndex: toolIndex
  24422. });
  24423. this.changeSplitScreenBehavior({
  24424. code: 2,
  24425. form: {
  24426. toolType:4,
  24427. courseType: this.courseType,
  24428. taskCount: this.taskCount,
  24429. toolIndex: toolIndex,
  24430. type: 0
  24431. }
  24432. });
  24433. },
  24434. statisticalAnalysisRefresh(toolIndex) {
  24435. this.$refs.statisticalAnalysisRef.refreshData({
  24436. worksStudent: this.worksStudent[toolIndex],
  24437. tType: this.tType,
  24438. toolIndex: toolIndex
  24439. });
  24440. },
  24441. async splitScreenBehavior(type = 0) {
  24442. // return;
  24443. if (this.splitScreenData.loading)
  24444. return this.$message.info(this.lang.ssOperationTooFast);
  24445. if (type == 0) {
  24446. //关闭分屏
  24447. this.splitScreenData.isOpen = false;
  24448. // this.splitScreenData.userId = "";
  24449. // this.splitScreenData.uid = "";
  24450. this.splitScreenData.behavior = null;
  24451. await this.updateSplitScreenData(1);
  24452. this.$message.success(this.lang.ssSplitScreenClosed);
  24453. this.studentFreePreview(false);
  24454. this.OpenJobPreview(false);
  24455. // this.followingMode(false);
  24456. } else if (type == 1) {
  24457. //开启分屏
  24458. this.splitScreenData.isOpen = true;
  24459. this.splitScreenData.userId = this.userid;
  24460. this.splitScreenData.uid = this.splitScreenData.myUid;
  24461. this.splitScreenData.behavior = null;
  24462. let status = await this.updateSplitScreenData(0);
  24463. this.changeSplitScreenBehavior({form:{}})
  24464. if (status == 1) {
  24465. this.$message.success(this.lang.ssSplitScreenOpened);
  24466. this.studentFreePreview(false);
  24467. this.OpenJobPreview(true);
  24468. // this.followingMode(true);
  24469. } else {
  24470. this.splitScreenData.isOpen = false;
  24471. this.splitScreenData.userId = "";
  24472. this.splitScreenData.uid = "";
  24473. this.splitScreenData.behavior = null;
  24474. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  24475. }
  24476. }
  24477. },
  24478. enterFullScreen() {
  24479. let element = document.documentElement;
  24480. if (element.requestFullscreen) {
  24481. element.requestFullscreen();
  24482. } else if (element.mozRequestFullScreen) { /* Firefox */
  24483. element.mozRequestFullScreen();
  24484. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24485. element.webkitRequestFullscreen();
  24486. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24487. element.msRequestFullscreen();
  24488. }
  24489. },
  24490. exitFullScreen() {
  24491. if (document.exitFullscreen) {
  24492. document.exitFullscreen();
  24493. } else if (document.mozCancelFullScreen) { /* Firefox */
  24494. document.mozCancelFullScreen();
  24495. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24496. document.webkitExitFullscreen();
  24497. } else if (document.msExitFullscreen) { /* IE/Edge */
  24498. document.msExitFullscreen();
  24499. }
  24500. },
  24501. confirmOpen(){
  24502. this.splitScreenData.isOpen = true;
  24503. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24504. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24505. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24506. this.confirmOpenDig = false
  24507. if (!document.fullscreenElement) {
  24508. this.enterFullScreen();
  24509. }
  24510. // if (this.timer2) {
  24511. // clearInterval(this.timer2);
  24512. // this.timer2 = null;
  24513. // }
  24514. // this.timer2 = setInterval(()=> {
  24515. // this.getSplitScreenData();//获取分屏数据
  24516. // }, 1000);
  24517. this.$message.success(this.lang.ssSplitScreenEnabled);
  24518. },
  24519. getSplitScreenData() {
  24520. // return;
  24521. // if (this.tType != 1) return;
  24522. if(this.getSplitScreenDataLoading) return
  24523. this.getSplitScreenDataLoading = true
  24524. let params = {
  24525. cid: this.id
  24526. };
  24527. this.ajax
  24528. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24529. .then(async res => {
  24530. let data = res.data[0][0]["splitScreenData"];
  24531. console.log("获取了分屏数:", data);
  24532. if (data) {
  24533. data = JSON.parse(data);
  24534. if (
  24535. !this.splitScreenData.isOpen &&
  24536. data.isOpen &&
  24537. this.splitScreenData.myUid == data.uid
  24538. ) {
  24539. this.splitScreenData.isOpen = false;
  24540. this.splitScreenData.userId = "";
  24541. this.splitScreenData.uid = "";
  24542. this.splitScreenData.behavior = null;
  24543. await this.updateSplitScreenData(1);
  24544. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24545. this.confirmOpenDig = true
  24546. this.confirmOpenDigData = data
  24547. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24548. this.splitScreenData.isOpen = false;
  24549. this.splitScreenData.userId = "";
  24550. this.splitScreenData.uid = "";
  24551. this.splitScreenData.behavior = null;
  24552. this.$message.error(this.lang.ssSplitScreenEnded);
  24553. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24554. this.splitScreenData.isOpen = true;
  24555. this.splitScreenData.uid = data.uid;
  24556. this.splitScreenData.userId = data.userId;
  24557. this.splitScreenData.behavior = data.behavior;
  24558. }
  24559. this.doSplitScreenBehavior();
  24560. } else {
  24561. if (this.splitScreenData.isOpen) {
  24562. this.splitScreenData.isOpen = false;
  24563. this.splitScreenData.userId = "";
  24564. this.splitScreenData.uid = "";
  24565. this.splitScreenData.behavior = null;
  24566. this.$message.error(this.lang.ssSplitScreenEnded);
  24567. // if (this.timer2) {
  24568. // clearInterval(this.timer2);
  24569. // this.timer2 = null;
  24570. // }
  24571. // this.timer2 = setInterval(()=> {
  24572. // this.getSplitScreenData();//获取分屏数据
  24573. // }, 5000);
  24574. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  24575. confirmButtonText: this.lang.ssConfirm, //确认按钮的文字
  24576. showCancelButton: false, //是否显示取消按钮
  24577. showClose: false, //是否显示关闭按钮
  24578. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24579. type: "warning",
  24580. })
  24581. .then(() => {
  24582. if (document.fullscreenElement) {
  24583. this.exitFullScreen();
  24584. }
  24585. })
  24586. .catch(() => {});
  24587. }
  24588. }
  24589. this.getSplitScreenDataLoading = false
  24590. })
  24591. .catch(e => {
  24592. this.getSplitScreenDataLoading = false
  24593. console.log("获取分屏数出错:", e);
  24594. });
  24595. },
  24596. doSplitScreenBehavior() {
  24597. if (
  24598. this.splitScreenData.isOpen &&
  24599. this.splitScreenData.uid != this.splitScreenData.myUid
  24600. ) {
  24601. let behavior = this.splitScreenData.behavior;
  24602. if (behavior) {
  24603. if (behavior.code === 99) {
  24604. //初始化
  24605. this.fullDialogVisible = false;
  24606. if(this.$refs.choseWorksDetailDialogRef.show){
  24607. this.$refs.choseWorksDetailDialogRef.close();
  24608. }
  24609. if(this.$refs.statisticalAnalysisRef.show){
  24610. this.$refs.statisticalAnalysisRef.close();
  24611. }
  24612. }
  24613. if (behavior.code === 0) {
  24614. //开启内容列表弹窗
  24615. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24616. }else{
  24617. this.fullDialogVisible = false;
  24618. }
  24619. if (behavior.code === 1) {
  24620. //关于选择题的作业详细的操作
  24621. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24622. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24623. this.courseType = behavior.form.courseType;
  24624. this.taskCount = behavior.form.taskCount;
  24625. }
  24626. this.$nextTick(() => {
  24627. if (this.$refs.choseWorksDetailDialogRef.show) {
  24628. //已经打开了
  24629. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24630. } else {
  24631. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24632. }
  24633. });
  24634. }else{
  24635. this.$refs.choseWorksDetailDialogRef.close()
  24636. }
  24637. if(behavior.code === 2){
  24638. if(this.$refs.statisticalAnalysisRef.show){
  24639. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24640. }else{
  24641. this.$refs.statisticalAnalysisRef.open({
  24642. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24643. tType: this.tType,
  24644. toolIndex: behavior.form.toolIndex
  24645. });
  24646. }
  24647. }else{
  24648. this.$refs.statisticalAnalysisRef.close();
  24649. }
  24650. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24651. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24652. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24653. if (behavior.form.courseType != this.courseType ||
  24654. behavior.form.taskCount != this.taskCount ||
  24655. behavior.form.toolType != this.toolindex
  24656. ) {
  24657. var a = document.scrollingElement;
  24658. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24659. if (target) {
  24660. target.scrollIntoView(true);
  24661. setTimeout(()=>{
  24662. let scrollBody = document.querySelector('.body_student').parentElement
  24663. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24664. }, 0);
  24665. // setTimeout(() => {
  24666. // a.scrollTop = 0
  24667. // }, 0);
  24668. }
  24669. }
  24670. if(this.courseType !=behavior.form.courseType){
  24671. this.courseType = behavior.form.courseType;
  24672. }
  24673. if(this.taskCount !=behavior.form.taskCount){
  24674. this.taskCount = behavior.form.taskCount;
  24675. }
  24676. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  24677. this.toolindex = behavior.form.toolType;
  24678. }
  24679. // if(behavior.form.navId){
  24680. // this.navId = behavior.form.navId
  24681. // }
  24682. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24683. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24684. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24685. this.getCourseDetail()
  24686. }
  24687. this.setContent2(false)
  24688. }
  24689. } else {
  24690. }
  24691. }
  24692. },
  24693. updateSplitScreenData(empty = 0) {
  24694. return new Promise(resolve => {
  24695. if(this.userid!==this.courseDetail.userid){
  24696. if(!this.courseDetail.userid){
  24697. return setTimeout(()=>{
  24698. this.updateSplitScreenData(empty)
  24699. },2000)
  24700. }
  24701. return;
  24702. };
  24703. if (
  24704. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24705. this.splitScreenData.userId == this.userid
  24706. ) {
  24707. this.splitScreenData.loading = true;
  24708. let params = [
  24709. {
  24710. cid: this.id,
  24711. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24712. }
  24713. ];
  24714. this.ajax
  24715. .post(
  24716. this.$store.state.api + "update_courseSplitScreenData",
  24717. params
  24718. )
  24719. .then(res => {
  24720. this.splitScreenData.loading = false;
  24721. if (res.data == 1) {
  24722. resolve(1);
  24723. console.log(this.lang.ssModify + this.lang.ssSplitScreenDataSuccess);
  24724. }
  24725. })
  24726. .catch(e => {
  24727. this.splitScreenData.loading = false;
  24728. console.log(this.lang.ssModify + this.lang.ssSplitScreenDataFailed, e);
  24729. resoleve(0);
  24730. });
  24731. } else if (empty == 2 && this.tType == 1) {
  24732. let params = [
  24733. {
  24734. cid: this.id,
  24735. nData: ""
  24736. }
  24737. ];
  24738. return this.ajax
  24739. .post(
  24740. this.$store.state.api + "update_courseSplitScreenData",
  24741. params
  24742. )
  24743. .then(_ => resolve(1))
  24744. .catch(_ => resolve(0));
  24745. } else {
  24746. return resolve(0);
  24747. }
  24748. });
  24749. },
  24750. changeSplitScreenBehavior(newValue) {
  24751. if (
  24752. this.splitScreenData.isOpen &&
  24753. this.splitScreenData.uid == this.splitScreenData.myUid
  24754. ) {
  24755. let _behavior = null;
  24756. if(!newValue){
  24757. _behavior = {}
  24758. }else{
  24759. _behavior = newValue
  24760. }
  24761. if(_behavior.form){
  24762. _behavior.form.taskCount = this.taskCount;
  24763. _behavior.form.courseType = this.courseType
  24764. }else{
  24765. _behavior.form = {
  24766. taskCount:this.taskCount,
  24767. courseType:this.courseType
  24768. }
  24769. }
  24770. this.splitScreenData.behavior = _behavior;
  24771. this.updateSplitScreenData(0);
  24772. }
  24773. },
  24774. studentFreePreview(flag) {
  24775. this.IsLookOpen = flag;
  24776. this.followingMode(flag)
  24777. this.updateLookOpen();
  24778. },
  24779. OpenJobPreview(flag) {
  24780. this.sIsOpen = flag;
  24781. this.updateSLook();
  24782. },
  24783. followingMode(flag) {
  24784. this.IsFollow = flag;
  24785. this.updateFollow();
  24786. },
  24787. StulookMode(flag) {
  24788. this.IsStulook = flag;
  24789. this.updateIsStulook();
  24790. },
  24791. },
  24792. directives: {
  24793. // 使用局部注册指令的方式
  24794. resize: {
  24795. // 指令的名称
  24796. bind(el, binding) {
  24797. // el为绑定的元素,binding为绑定给指令的对象
  24798. let width = "",
  24799. height = "";
  24800. function isReize() {
  24801. const style = document.defaultView.getComputedStyle(el);
  24802. if (width !== style.width || height !== style.height) {
  24803. binding.value(); // 关键
  24804. }
  24805. width = style.width;
  24806. height = style.height;
  24807. }
  24808. el.__vueSetInterval__ = setInterval(isReize, 300);
  24809. },
  24810. unbind(el) {
  24811. clearInterval(el.__vueSetInterval__);
  24812. },
  24813. },
  24814. autoHeight: {
  24815. update(el, binding) {
  24816. const { value } = binding
  24817. if (value && typeof value === 'number') {
  24818. el.style.height = `${value}px`
  24819. } else {
  24820. el.style.height = 'auto'
  24821. }
  24822. },
  24823. componentUpdated(el) {
  24824. el.style.height = `${el.scrollHeight + 5}px`
  24825. },
  24826. },
  24827. },
  24828. beforeDestroy() {
  24829. window.onresize = null;
  24830. clearInterval(this.timer);
  24831. clearInterval(this.timer2);
  24832. this.timer = null;
  24833. this.timer2 = null;
  24834. clearInterval(this.opertimer);
  24835. this.opertimer = null;
  24836. this.updateSplitScreenData(1);
  24837. },
  24838. computed: {
  24839. renderedFormula2() {
  24840. return function(val){
  24841. // 处理换行符和HTML实体
  24842. const normalized = val
  24843. .replace(/&amp;/g, '&')
  24844. .replace(/<br\/?>/g, '\n');
  24845. // 匹配行内公式($...$)和块级公式($$...$$)
  24846. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  24847. try {
  24848. return katex.renderToString(expr.trim(), {
  24849. displayMode: false,
  24850. throwOnError: false,
  24851. macros: {
  24852. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  24853. }
  24854. });
  24855. } catch (e) {
  24856. console.warn('KaTeX渲染失败:', e);
  24857. return `<span style="color:red">${expr}</span>`;
  24858. }
  24859. })
  24860. }
  24861. },
  24862. renderedFormula() {
  24863. return function(val){
  24864. try {
  24865. // 判断是否含有HTML标签,<tag ...>...</tag>
  24866. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  24867. if (!hasTag) {
  24868. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  24869. // 纯文本,整体渲染
  24870. try {
  24871. return katex.renderToString(val.trim(), {
  24872. throwOnError: false,
  24873. strict: false,
  24874. output: "htmlAndMathml"
  24875. });
  24876. } catch (e) {
  24877. return val; // 渲染失败原样输出
  24878. }
  24879. } else {
  24880. // 有标签,对每个标签内容渲染
  24881. return val.replace(
  24882. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  24883. (match, tag, attrs, inner) => {
  24884. let html;
  24885. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  24886. try {
  24887. html = katex.renderToString(inner.trim(), {
  24888. throwOnError: false,
  24889. strict: false,
  24890. output: "htmlAndMathml"
  24891. });
  24892. } catch (e) {
  24893. html = inner;
  24894. }
  24895. return `<${tag}${attrs}>${html}</${tag}>`;
  24896. }
  24897. );
  24898. }
  24899. } catch (e) {
  24900. console.error('KaTeX渲染错误:', e);
  24901. return val;
  24902. }
  24903. }
  24904. },
  24905. isAndroid() {
  24906. return /Android/i.test(navigator.userAgent);
  24907. },
  24908. getHeight(){
  24909. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24910. },
  24911. contentConvent() {
  24912. return function (c) {
  24913. return c
  24914. ? c
  24915. .replaceAll(/\r\n/g, "<br/>")
  24916. .replaceAll(/\n/g, "<br/>")
  24917. .replaceAll(/\s/g, " &nbsp")
  24918. : "";
  24919. };
  24920. },
  24921. MarkdownT() {
  24922. return function (c) {
  24923. let md = new MarkdownIt({
  24924. html: true, // 允许渲染 HTML
  24925. linkify: true, // 自动将URL链接转化为可点击链接
  24926. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  24927. });
  24928. return c
  24929. ? md.render(c) : "";
  24930. };
  24931. },
  24932. commentRight(){
  24933. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  24934. return "35px";
  24935. }
  24936. return `calc(${this.classRoomHelperWidth} + 5px)`
  24937. // if(this.$refs["classRoomHelperRef"].type==0){
  24938. // return "100px";
  24939. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24940. // return "502px"
  24941. // }else{
  24942. // return "0px"
  24943. // }
  24944. },
  24945. checkUpload() {
  24946. return function () {
  24947. var studentK = [];
  24948. if (this.plworkFile.length > 0) {
  24949. for (var z = 0; z < this.plworkFile.length; z++) {
  24950. studentK.push(this.plworkFile[z].username);
  24951. }
  24952. studentK = studentK.join(",");
  24953. }
  24954. var a = this.uploadStudentJuri.filter((el) => {
  24955. return studentK.indexOf(el.userid) == -1;
  24956. });
  24957. return a;
  24958. };
  24959. },
  24960. getSName() {
  24961. return function (name) {
  24962. var check = name;
  24963. this.uploadStudentJuri.forEach((el) => {
  24964. if (el.userid == check) {
  24965. check = el.name ? el.name : el.username;
  24966. }
  24967. });
  24968. return check;
  24969. };
  24970. },
  24971. getImgList() {
  24972. return function (val) {
  24973. let srcList = []; // 定义一个数组用来接收后面的img地址
  24974. val.replace(
  24975. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  24976. function (match, capture) {
  24977. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24978. srcList.push(capture);
  24979. }
  24980. );
  24981. return srcList;
  24982. };
  24983. },
  24984. retrnToolHeight(){
  24985. return function (tool) {
  24986. var _tool = document.querySelectorAll('#'+tool)[0]
  24987. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  24988. };
  24989. },
  24990. Correct() {
  24991. return function (c,d) {
  24992. let w = "";
  24993. let a = this.correctWord;
  24994. for(var k = 0;k<a.length;k++){
  24995. //diffWordsWithSpace
  24996. if(a.length > 1){
  24997. if(a[k].added == true){
  24998. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24999. }else if(a[k].removed == true){
  25000. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25001. }else{
  25002. w += '<span>' + a[k].value + '</span>';
  25003. }
  25004. }else{
  25005. w = c
  25006. }
  25007. console.log("👇👇!+++==")
  25008. console.log(w)
  25009. //diffChars方法
  25010. // if(w == ""){
  25011. // if(a.length > 1){
  25012. // if(a[k].added == true){
  25013. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25014. // }else if(a[k].removed == true){
  25015. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25016. // }
  25017. // }else{
  25018. // w = c
  25019. // }
  25020. // }else{
  25021. // if(k == a.length - 1){
  25022. // if(a[k].added == true){
  25023. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25024. // }else if(a[k].removed == true){
  25025. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25026. // }
  25027. // }else{
  25028. // if(a[k].added == true){
  25029. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25030. // }else if(a[k].removed == true){
  25031. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25032. // }
  25033. // }
  25034. // }
  25035. }
  25036. c = w;
  25037. return c;
  25038. };
  25039. },
  25040. },
  25041. mounted() {
  25042. document.body.addEventListener("click", (e) => {
  25043. if (this.isUpdateToolDetail1) {
  25044. this.updateToolDetail(this.toolDetailIndex);
  25045. }
  25046. });
  25047. try {
  25048. if (this.screenType == 2) {
  25049. window.topU.postMessage({ allScreen: 4 }, "*");
  25050. } else if (this.screenType == 3) {
  25051. window.topU.postMessage({ allScreen: 5 }, "*");
  25052. } else if (this.screenType == 1) {
  25053. window.topU.postMessage({ allScreen: 6 }, "*");
  25054. }
  25055. } catch (error) {
  25056. console.log(error)
  25057. }
  25058. this.getCode2()
  25059. this.setOperationTime();
  25060. this.selectEva();
  25061. this.getCourseDetail(10);
  25062. this.selectCount();
  25063. this.getHomeWork();
  25064. this.selectUser();
  25065. this.getAIJ();
  25066. this.contentDialog = false;
  25067. this.setContent2(true);
  25068. if (this.tType == 4) {
  25069. this.pzDialog = true;
  25070. this.selectPz();
  25071. }
  25072. // 获取评分列表
  25073. this.getScoreList()
  25074. this.updateSplitScreenData(2);
  25075. this.splitScreenData.myUid = uuidv4();
  25076. document.scrollingElement.scrollTop = 0;
  25077. window.addEventListener("resize", () => {
  25078. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25079. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25080. if (this.showType == 2 || this.showType == 3) {
  25081. document.getElementsByClassName("navBox")[0].style.height =
  25082. a - 40 + 0+ "px";
  25083. } else {
  25084. document.getElementsByClassName("navBox")[0].style.height =
  25085. a - 40 + "px";
  25086. }
  25087. });
  25088. // let _this = this;
  25089. // setTimeout(() => {
  25090. // _this.vedioTime = [];
  25091. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25092. // _this.vedioTime[i] = document.getElementsByClassName(
  25093. // "vjs-duration-display"
  25094. // )[i].textContent;
  25095. // }
  25096. // }, 1000);
  25097. },
  25098. };
  25099. </script>
  25100. <style scoped>
  25101. @media screen and (max-width: 1280px) {
  25102. /* .courseIndex > div:first-child(2) {
  25103. width: 15% !important;
  25104. } */
  25105. /* .navText {
  25106. width: 120px !important;
  25107. } */
  25108. .evaCss {
  25109. flex-direction: column !important;
  25110. align-items: center !important;
  25111. }
  25112. .elist_input {
  25113. width: 90% !important;
  25114. }
  25115. .dialog_diy1 >>> .el-dialog {
  25116. width: 100% !important;
  25117. }
  25118. .rightWidthCss {
  25119. width: 100% !important;
  25120. }
  25121. .dialog_diy3 >>> .el-dialog {
  25122. width: 100% !important;
  25123. }
  25124. .addToolCss {
  25125. right: 0 !important;
  25126. width: 100% !important;
  25127. min-width: unset !important;
  25128. }
  25129. }
  25130. .evaCssMax {
  25131. flex-direction: column !important;
  25132. align-items: center !important;
  25133. }
  25134. /* .dialog_diy >>> .el-dialog { */
  25135. /* margin-top: 10vh !important; */
  25136. /* } */
  25137. .body_student {
  25138. width: 77%;
  25139. height: 100%;
  25140. position: absolute;
  25141. left: 22%;
  25142. top: 0;
  25143. }
  25144. .student_head {
  25145. width: 100%;
  25146. margin: 20px auto 0;
  25147. padding-bottom: 20px;
  25148. display: flex;
  25149. flex-direction: column;
  25150. flex-wrap: nowrap;
  25151. align-items: flex-start;
  25152. justify-content: flex-start;
  25153. }
  25154. .pb_left {
  25155. width: 15%;
  25156. margin-right: 10px;
  25157. background: rgb(255, 255, 255);
  25158. position: fixed;
  25159. height: calc(100% - 40px);
  25160. border-radius: 20px;
  25161. padding-bottom: 15px;
  25162. box-sizing: border-box;
  25163. }
  25164. .wheel > img,
  25165. .project > img,
  25166. .star > img,
  25167. .evaluate > img,
  25168. .up_photo > img,
  25169. .chapter_add > img,
  25170. .deleteWord > img,
  25171. .question > img,
  25172. .homework > img {
  25173. width: 100%;
  25174. height: 100%;
  25175. }
  25176. .upCover > img {
  25177. width: 131px;
  25178. height: 69px;
  25179. object-fit: cover;
  25180. }
  25181. .upCover {
  25182. width: calc(100% / 3.5);
  25183. position: relative;
  25184. margin: 0 15px 10px 0;
  25185. display: flex;
  25186. flex-direction: column;
  25187. flex-wrap: nowrap;
  25188. justify-content: center;
  25189. align-content: center;
  25190. align-items: center;
  25191. height: fit-content;
  25192. }
  25193. .upCover2 {
  25194. width: 100%;
  25195. position: relative;
  25196. margin: 0 15px 10px 0;
  25197. display: flex;
  25198. flex-direction: column;
  25199. flex-wrap: nowrap;
  25200. justify-content: center;
  25201. align-content: center;
  25202. align-items: center;
  25203. }
  25204. .upCover2 > img {
  25205. width: 100%;
  25206. height: 90px;
  25207. object-fit: contain;
  25208. }
  25209. .chapter_add {
  25210. width: 120px;
  25211. position: relative;
  25212. text-align: center;
  25213. }
  25214. .isAddThings {
  25215. margin-top: 20px;
  25216. position: relative;
  25217. text-align: center;
  25218. background: #f7f8fa;
  25219. height: 90px;
  25220. width: 90px;
  25221. display: flex;
  25222. flex-direction: column;
  25223. justify-content: center;
  25224. }
  25225. .deleteWord {
  25226. width: 22px;
  25227. height: 22px;
  25228. position: absolute;
  25229. right: -5px;
  25230. top: -5px;
  25231. cursor: pointer;
  25232. }
  25233. .box_course {
  25234. /* width: 60%; */
  25235. width: calc(100% - 300px);
  25236. }
  25237. .wheel {
  25238. width: 100%;
  25239. /* height: 100%; */
  25240. height: 650px;
  25241. }
  25242. .right_box {
  25243. display: flex;
  25244. flex-direction: column;
  25245. margin-left: 30px;
  25246. justify-content: space-around;
  25247. }
  25248. .right_box_title {
  25249. font-size: 23px;
  25250. }
  25251. .people {
  25252. display: flex;
  25253. }
  25254. .student_body {
  25255. width: 100%;
  25256. margin: 0 auto;
  25257. margin-top: 10px;
  25258. padding: 0 0 20px;
  25259. }
  25260. .study_top {
  25261. margin-top: 100px;
  25262. width: 100%;
  25263. height: auto;
  25264. padding-bottom: 20px;
  25265. margin-left: 2px;
  25266. min-height: 90%;
  25267. }
  25268. .study_top .checkbox {
  25269. display: flex;
  25270. align-items: center;
  25271. padding: 15px 0 15px 30px;
  25272. flex: 0 0 auto;
  25273. font-weight: bold;
  25274. border-bottom: 1px solid #eee;
  25275. }
  25276. .study_top .check {
  25277. padding-bottom: 5px;
  25278. text-align: center;
  25279. cursor: pointer;
  25280. height: 30px;
  25281. box-sizing: border-box;
  25282. display: flex;
  25283. }
  25284. .study_top .checked {
  25285. border-bottom: 4px solid #3fc6a0;
  25286. padding-bottom: 5px;
  25287. color: #3fc6a0;
  25288. display: flex;
  25289. height: 35px;
  25290. }
  25291. .study_top .checked > div,
  25292. .study_top .check > div {
  25293. margin-right: 5px;
  25294. }
  25295. .videoTop {
  25296. display: flex;
  25297. flex-direction: row;
  25298. justify-content: space-between;
  25299. background: #fff;
  25300. align-items: center;
  25301. width: 95%;
  25302. padding: 20px;
  25303. }
  25304. .filebox {
  25305. display: flex;
  25306. flex-wrap: wrap;
  25307. flex-direction: column;
  25308. padding: 0 0 5px;
  25309. position: relative;
  25310. }
  25311. .filebox:before {
  25312. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25313. position: absolute;
  25314. top: 20px;
  25315. left: 13px;
  25316. border-left: 2px dotted #cad1dc;
  25317. height: calc(100% - 15px);
  25318. }
  25319. .toolHeng2 > div:last-child::before {
  25320. height: calc(100% - 43px);
  25321. }
  25322. .filebox .tooldetail {
  25323. width: calc(100%);
  25324. margin: 0px 12px;
  25325. padding: 12px;
  25326. line-height: 30px;
  25327. word-break: break-word;
  25328. background: #ffffff;
  25329. border-radius: 8px 8px 8px 8px;
  25330. opacity: 1;
  25331. border: 1px solid #cad1dc;
  25332. overflow:hidden;
  25333. box-sizing:border-box;
  25334. }
  25335. .file {
  25336. display: flex;
  25337. flex-direction: column;
  25338. align-items: center;
  25339. justify-content: center;
  25340. cursor: pointer;
  25341. width: 200px;
  25342. }
  25343. .file div {
  25344. margin-top: 10px;
  25345. width: 150px;
  25346. text-align: center;
  25347. overflow: hidden;
  25348. white-space: nowrap;
  25349. text-overflow: ellipsis;
  25350. }
  25351. .media {
  25352. display: flex;
  25353. flex-direction: column;
  25354. align-items: center;
  25355. justify-content: center;
  25356. margin: 0 20px 20px 0;
  25357. cursor: pointer;
  25358. margin: 12px 0 5px 15px;
  25359. overflow: hidden;
  25360. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25361. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25362. box-sizing: border-box;
  25363. }
  25364. .media img {
  25365. height: 90px;
  25366. width: 160px;
  25367. object-fit: cover;
  25368. }
  25369. .media .title {
  25370. padding: 5px;
  25371. text-align: left;
  25372. width: 100%;
  25373. box-sizing: border-box;
  25374. }
  25375. .media .btn {
  25376. width: 100%;
  25377. height: 35px;
  25378. line-height: 35px;
  25379. color: #fff;
  25380. background: #606060;
  25381. text-align: center;
  25382. overflow: hidden;
  25383. white-space: nowrap;
  25384. text-overflow: ellipsis;
  25385. }
  25386. .detail_content_top {
  25387. width: 100%;
  25388. padding: 25px 0 25px 0;
  25389. }
  25390. .detail_title {
  25391. text-align: center;
  25392. font-size: 24px;
  25393. }
  25394. .detail_time {
  25395. font-size: 13px;
  25396. padding: 15px 0 0 40px;
  25397. }
  25398. .detail_content {
  25399. line-height: 2pc;
  25400. width: 90%;
  25401. margin: 0 auto;
  25402. padding-top: 30px;
  25403. text-indent: 30px;
  25404. overflow: auto;
  25405. height: 200px;
  25406. }
  25407. .score_box >>> .el-rate {
  25408. margin-left: 10px;
  25409. }
  25410. .dialog_change >>> .el-dialog {
  25411. border-radius: 5px;
  25412. }
  25413. .dialog_change >>> .el-dialog__header {
  25414. background: #f2f2f2;
  25415. text-align: center;
  25416. }
  25417. .dialog_change >>> .el-dialog__title {
  25418. line-height: 5px;
  25419. }
  25420. .dialog_change >>> .el-dialog__body {
  25421. background: #fff;
  25422. padding: 10px 20px;
  25423. }
  25424. .score_box {
  25425. display: flex;
  25426. align-items: center;
  25427. margin-bottom: 18px;
  25428. margin-top: 20px;
  25429. }
  25430. .up_photo {
  25431. width: 120px;
  25432. cursor: pointer;
  25433. margin-top: 10px;
  25434. }
  25435. .up_photo2 {
  25436. width: 180px;
  25437. box-sizing: border-box;
  25438. min-width: 180px;
  25439. height: 180px;
  25440. max-height: 180px;
  25441. min-height: 180px;
  25442. cursor: pointer;
  25443. display: flex;
  25444. flex-direction: column;
  25445. align-items: center;
  25446. justify-content: center;
  25447. background: rgb(242, 246, 255);
  25448. /* padding: 25px; */
  25449. margin-bottom: 10px;
  25450. }
  25451. .up_photo2 img {
  25452. width: 50%;
  25453. height: auto;
  25454. }
  25455. .up_photo2 span {
  25456. color: #898989;
  25457. }
  25458. .plworkBox {
  25459. display: flex;
  25460. align-items: center;
  25461. margin-top: 10px;
  25462. flex-wrap: wrap;
  25463. }
  25464. .upload_send {
  25465. margin: 30px auto 30px;
  25466. width: 60%;
  25467. background: #3681fc;
  25468. text-align: center;
  25469. height: 35px;
  25470. line-height: 35px;
  25471. color: #fff;
  25472. border-radius: 5px;
  25473. cursor: pointer;
  25474. }
  25475. .marginT {
  25476. margin-top: 20px;
  25477. }
  25478. .cd_content_steps {
  25479. display: flex;
  25480. width: 90%;
  25481. justify-content: space-around;
  25482. border-top: 1px solid #eeeeee;
  25483. }
  25484. .cd_steps_box {
  25485. display: flex;
  25486. justify-content: center;
  25487. align-items: center;
  25488. flex-direction: column;
  25489. cursor: pointer;
  25490. }
  25491. .first {
  25492. display: flex;
  25493. align-items: center;
  25494. margin: 15px 0 20px 0;
  25495. font-size: 20px;
  25496. }
  25497. .first > div:nth-child(2) {
  25498. font-size: 16px !important;
  25499. padding-left: 10px;
  25500. line-height: 26px;
  25501. box-sizing: border-box;
  25502. }
  25503. .blue_box_one {
  25504. text-align: center;
  25505. color: #fff;
  25506. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25507. border-radius: 7px;
  25508. margin: 10px;
  25509. cursor: pointer;
  25510. width: 95%;
  25511. height: 45px;
  25512. display: flex;
  25513. flex-direction: row;
  25514. justify-content: flex-start;
  25515. align-items: center;
  25516. }
  25517. .blue_box_one > div:nth-child(1) {
  25518. line-height: 30px;
  25519. margin: 0 5px 0 10px;
  25520. width: 30%;
  25521. min-width: 70px;
  25522. border-radius: 4px;
  25523. }
  25524. .blue_box_one > div:nth-child(2) {
  25525. white-space: nowrap;
  25526. text-overflow: ellipsis;
  25527. overflow: hidden;
  25528. word-break: break-all;
  25529. width: 70%;
  25530. text-align: left;
  25531. margin-right: 10px;
  25532. max-width: calc(100% - 85px);
  25533. }
  25534. .blue_box_one > div:nth-child(2):hover {
  25535. overflow: hidden;
  25536. text-overflow: ellipsis;
  25537. white-space: nowrap;
  25538. cursor: pointer;
  25539. }
  25540. .upFile {
  25541. margin: 0 auto;
  25542. width: 120px;
  25543. background: #3681fc;
  25544. color: #fff;
  25545. height: 30px;
  25546. text-align: center;
  25547. line-height: 30px;
  25548. border-radius: 5px;
  25549. font-size: 14px;
  25550. cursor: pointer;
  25551. }
  25552. .courseTitle {
  25553. width: 85%;
  25554. margin: 10px auto 26px auto;
  25555. display: flex;
  25556. flex-direction: row;
  25557. align-items: center;
  25558. justify-content: space-between;
  25559. text-align: center;
  25560. }
  25561. .courseTitle .ctitle {
  25562. font-size: 20px;
  25563. font-weight: bold;
  25564. color: #0e1e33;
  25565. white-space: nowrap;
  25566. overflow: hidden;
  25567. text-overflow: ellipsis;
  25568. }
  25569. .inviteBox {
  25570. font-size: 14px;
  25571. /* margin-top: 5px; */
  25572. color: #00000099;
  25573. text-align: center;
  25574. }
  25575. .courseTitle >>> .el-tooltip {
  25576. width: 100%;
  25577. white-space: nowrap;
  25578. overflow: hidden;
  25579. text-overflow: ellipsis;
  25580. word-break: break-word;
  25581. }
  25582. .ml {
  25583. margin-left: 20px;
  25584. color: #5b7dba;
  25585. border-left: 3px solid #5b7dba;
  25586. padding-left: 5px;
  25587. font-weight: bold;
  25588. }
  25589. .return {
  25590. width: 2rem;
  25591. height: 2rem;
  25592. cursor: pointer;
  25593. }
  25594. .return > img {
  25595. width: 100%;
  25596. height: 100%;
  25597. }
  25598. .returnBtn {
  25599. /* width: 86px;
  25600. height: 36px; */
  25601. background: #3681fc;
  25602. border-radius: 4px;
  25603. color: #fff;
  25604. text-align: center;
  25605. padding: 8px 10px;
  25606. /* line-height: 36px; */
  25607. margin-right: 20px;
  25608. cursor: pointer;
  25609. font-size: 14px;
  25610. font-weight: 400;
  25611. display: flex;
  25612. flex-direction: row;
  25613. flex-wrap: nowrap;
  25614. align-items: center;
  25615. justify-content: center;
  25616. }
  25617. .reBtnIcon,
  25618. .commentIcon,
  25619. .vedioIcon,
  25620. .vedioIcon1 {
  25621. /* width: 36px; */
  25622. height: 36px;
  25623. border-radius: 4px;
  25624. position: relative;
  25625. /* background: #e0eafb; */
  25626. background: #0061ff;
  25627. cursor: pointer;
  25628. margin-right: 12px;
  25629. display: flex;
  25630. align-items: center;
  25631. padding: 0 10px;
  25632. box-sizing: border-box;
  25633. font-size: 14px;
  25634. color: #fff;
  25635. }
  25636. .reBtnIcon::before,
  25637. .commentIcon::before,
  25638. .vedioIcon::before,
  25639. .vedioIcon1::before {
  25640. content: "";
  25641. display: block;
  25642. background-size: 100% 100%;
  25643. background-repeat: no-repeat;
  25644. width: 20px;
  25645. height: 20px;
  25646. margin-right: 5px;
  25647. /* position: absolute; */
  25648. /* top: 8px;
  25649. left: 8px; */
  25650. }
  25651. .vedioIcon1 {
  25652. background: #f63564;
  25653. }
  25654. .reBtnIcon::before {
  25655. background-image: url("../../assets/icon/newIcons/refresh.png");
  25656. }
  25657. .commentIcon::before {
  25658. background-image: url("../../assets/icon/newIcons/comment.png");
  25659. }
  25660. .vedioIcon::before {
  25661. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25662. }
  25663. .vedioIcon1::before {
  25664. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25665. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25666. }
  25667. .tool {
  25668. display: flex;
  25669. flex-direction: column;
  25670. flex-wrap: nowrap;
  25671. width: 13%;
  25672. margin: 0 30px;
  25673. align-items: center;
  25674. position: relative;
  25675. padding: 10px 25px;
  25676. cursor: pointer;
  25677. }
  25678. .whiteBIcon {
  25679. width: 150px;
  25680. }
  25681. .whiteBIcon > img {
  25682. width: 100%;
  25683. height: 100%;
  25684. }
  25685. .mask {
  25686. background-color: rgba(0, 0, 0, 0);
  25687. position: fixed;
  25688. top: 0;
  25689. left: 0;
  25690. width: 100%;
  25691. height: 100%;
  25692. z-index: 20000;
  25693. display: flex;
  25694. align-items: center;
  25695. justify-content: center;
  25696. }
  25697. .progressBox {
  25698. width: 500px;
  25699. height: 180px;
  25700. background: #fff;
  25701. border-radius: 10px;
  25702. box-shadow: 0 0 6px 1px #bfbfbf;
  25703. display: flex;
  25704. align-items: center;
  25705. justify-content: center;
  25706. flex-direction: column;
  25707. position: relative;
  25708. color: #6c6c6c;
  25709. }
  25710. .progressBox >>> .el-progress-bar__outer {
  25711. background-color: #d1dfff !important;
  25712. }
  25713. .progressBox .lbox {
  25714. height: 50px;
  25715. font-size: 19px;
  25716. display: flex;
  25717. align-items: center;
  25718. color: #747474;
  25719. }
  25720. .progressBox .lbox img {
  25721. width: 40px;
  25722. margin-right: 20px;
  25723. }
  25724. .closeCss {
  25725. position: absolute;
  25726. top: 8px;
  25727. right: 8px;
  25728. cursor: pointer;
  25729. width: 20px;
  25730. height: 20px;
  25731. }
  25732. .closeCss > img {
  25733. width: 100%;
  25734. height: 100%;
  25735. }
  25736. .uploadVedio {
  25737. display: flex;
  25738. flex-direction: column;
  25739. flex-wrap: nowrap;
  25740. justify-content: center;
  25741. align-items: center;
  25742. margin: 0 15px 10px 0;
  25743. }
  25744. .uploadVedio > img {
  25745. width: 30px;
  25746. height: 30px;
  25747. }
  25748. .uploadVedio > span {
  25749. white-space: nowrap;
  25750. overflow: hidden;
  25751. text-overflow: ellipsis;
  25752. width: 75px;
  25753. margin-top: 7px;
  25754. }
  25755. .picName {
  25756. white-space: nowrap;
  25757. overflow: hidden;
  25758. text-overflow: ellipsis;
  25759. width: 75px;
  25760. margin-top: 7px;
  25761. }
  25762. .new_top {
  25763. display: flex;
  25764. background: #fff;
  25765. flex-direction: row;
  25766. justify-content: flex-start;
  25767. align-items: center;
  25768. height: 60px;
  25769. position: fixed;
  25770. top: 20px;
  25771. left: 22%;
  25772. width: 77%;
  25773. z-index: 999;
  25774. border-radius: 12px 12px 0 0;
  25775. border-bottom: 1px solid #cad1dc;
  25776. padding: 10px 0;
  25777. }
  25778. .new_topFixed {
  25779. width: 100%;
  25780. height: 40px;
  25781. position: fixed;
  25782. top: 0px;
  25783. display: block;
  25784. background: #f2f2f2;
  25785. z-index: 998;
  25786. }
  25787. .before {
  25788. position: absolute;
  25789. background: #c3dad4;
  25790. width: 6px;
  25791. height: 100%;
  25792. }
  25793. .courseIndex {
  25794. display: flex;
  25795. flex-direction: row;
  25796. align-items: center;
  25797. width: calc(100% - 745px);
  25798. }
  25799. .courseIndex > div:nth-child(1) {
  25800. margin: 0 0 0 10px;
  25801. font-size: 20px;
  25802. min-width: 100px;
  25803. font-weight: bold;
  25804. border-left: 4px solid #3363b9;
  25805. height: 32px;
  25806. text-align: center;
  25807. line-height: 35px;
  25808. }
  25809. .courseIndex > div:nth-child(2) {
  25810. font-size: 20px;
  25811. /* width: 300px; */
  25812. max-width: calc(100% - 105px);
  25813. white-space: nowrap;
  25814. overflow: hidden;
  25815. text-overflow: ellipsis;
  25816. }
  25817. .courseIndex > div:nth-child(3) {
  25818. border-bottom: 1px solid #d7d7d7;
  25819. padding-bottom: 5px;
  25820. background: #3681fc;
  25821. width: 55px;
  25822. min-width: 55px;
  25823. border-radius: 5px;
  25824. color: #fff;
  25825. text-align: center;
  25826. height: 20px;
  25827. line-height: 26px;
  25828. font-size: 14px;
  25829. margin: 0 0 0 10px;
  25830. }
  25831. .course_text {
  25832. padding: 20px 0 0 15px;
  25833. text-indent: 30px;
  25834. width: 80%;
  25835. min-height: 20px;
  25836. }
  25837. .vedioList {
  25838. background: #f2f2f2;
  25839. border: 1px solid #ececec;
  25840. /* width: 38.8%; */
  25841. /* width: 300px; */
  25842. width: 100%;
  25843. height: 445px;
  25844. border-radius: 10px;
  25845. overflow: hidden;
  25846. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25847. }
  25848. .vedioNav {
  25849. margin: 10px 0 0 15px;
  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. }
  25862. .queTop {
  25863. display: flex;
  25864. padding: 20px 0 20px 30px;
  25865. width: 100%;
  25866. flex-direction: row;
  25867. justify-content: flex-start;
  25868. align-items: center;
  25869. box-sizing: border-box;
  25870. }
  25871. .queTopTitle {
  25872. display: flex;
  25873. flex-direction: row;
  25874. flex-wrap: nowrap;
  25875. align-items: center;
  25876. font-weight: bold;
  25877. font-size: 20px;
  25878. color: rgb(14, 30, 51);
  25879. }
  25880. .queTopTitle::before {
  25881. content: "";
  25882. width: 2px;
  25883. height: 22px;
  25884. background: #3681fc;
  25885. border-radius: 3px;
  25886. display: block;
  25887. margin: 2px 6px 0 0;
  25888. }
  25889. .queTopRight {
  25890. display: flex;
  25891. flex-direction: row;
  25892. flex-wrap: nowrap;
  25893. align-items: center;
  25894. }
  25895. .queTopClose {
  25896. margin-right: 20px;
  25897. cursor: pointer;
  25898. position: relative;
  25899. display: flex;
  25900. }
  25901. .closeImg,
  25902. .openImg {
  25903. width: 25px;
  25904. height: 25px;
  25905. position: absolute;
  25906. left: -20px;
  25907. top: -1px;
  25908. }
  25909. .closeImg > img,
  25910. .openImg > img {
  25911. width: 100%;
  25912. height: 100%;
  25913. }
  25914. .question {
  25915. width: 40px;
  25916. margin-right: 10px;
  25917. margin-top: 7px;
  25918. flex-shrink: 0;
  25919. }
  25920. .queTitle {
  25921. margin-left: 5px;
  25922. font-size: 25px;
  25923. display: flex;
  25924. align-items: center;
  25925. }
  25926. .queTitle > div:nth-child(1){
  25927. width: 120px;
  25928. flex-shrink: 0;
  25929. }
  25930. .addEditor {
  25931. width: 100px;
  25932. height: 30px;
  25933. background: #42cda6;
  25934. color: #fff;
  25935. border-radius: 5px;
  25936. text-align: center;
  25937. line-height: 30px;
  25938. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25939. cursor: pointer;
  25940. }
  25941. /* .vedioName {
  25942. cursor: pointer;
  25943. margin: 0px 0px 10px 5px;
  25944. white-space: nowrap;
  25945. overflow: hidden;
  25946. text-overflow: ellipsis;
  25947. width: 100%;
  25948. } */
  25949. .vedioTime {
  25950. width: 35px;
  25951. position: absolute;
  25952. color: #fff;
  25953. bottom: 0px;
  25954. right: 0px;
  25955. text-align: center;
  25956. background: #46411f;
  25957. height: 20px;
  25958. font-size: 14px;
  25959. line-height: 20px;
  25960. }
  25961. .homework {
  25962. width: 200px;
  25963. display: flex;
  25964. flex-direction: column;
  25965. flex-wrap: nowrap;
  25966. align-items: center;
  25967. cursor: pointer;
  25968. }
  25969. .homebox {
  25970. display: flex;
  25971. flex-wrap: wrap;
  25972. flex-direction: row;
  25973. justify-content: flex-start;
  25974. align-items: center;
  25975. padding: 15px 0;
  25976. }
  25977. .isChooseActive {
  25978. color: #3681fc !important;
  25979. font-weight: bold !important;
  25980. }
  25981. .chooseWho {
  25982. display: flex;
  25983. width: 100%;
  25984. flex-direction: row;
  25985. flex-wrap: nowrap;
  25986. justify-content: flex-start;
  25987. padding-bottom: 10px;
  25988. }
  25989. .chooseWho > div {
  25990. cursor: pointer;
  25991. padding-bottom: 10px;
  25992. margin: 0 30px 0 0;
  25993. font-weight: 400;
  25994. color: #0e1e33;
  25995. }
  25996. .addPoint > div > img {
  25997. cursor: pointer;
  25998. width: 85px;
  25999. border-radius: 15px;
  26000. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26001. }
  26002. .addPoint > div {
  26003. display: flex;
  26004. flex-direction: column;
  26005. flex-wrap: nowrap;
  26006. align-items: center;
  26007. }
  26008. .isBorder > div {
  26009. margin: 0 0 10px 0;
  26010. align-items: flex-start !important;
  26011. }
  26012. .noiframeBox {
  26013. display: flex;
  26014. flex-wrap: wrap;
  26015. }
  26016. .iframeBox iframe {
  26017. width: 100%;
  26018. height: 800px;
  26019. border: none;
  26020. margin-bottom: 20px;
  26021. border: 1px solid #ccc;
  26022. }
  26023. .upload_toolBtn {
  26024. background: #3681fc;
  26025. color: #fff;
  26026. width: 110px;
  26027. text-align: center;
  26028. height: 35px;
  26029. line-height: 35px;
  26030. font-size: 14px;
  26031. border-radius: 5px;
  26032. cursor: pointer;
  26033. position: absolute;
  26034. right: 10px;
  26035. bottom: 0;
  26036. }
  26037. .binfo_input,
  26038. .pj {
  26039. font: inherit;
  26040. color: currentColor;
  26041. width: 100%;
  26042. margin: 0;
  26043. padding: 15px 14px;
  26044. display: block;
  26045. min-width: 0;
  26046. outline: none;
  26047. box-sizing: content-box;
  26048. background: none;
  26049. -webkit-tap-highlight-color: transparent;
  26050. border: 1px solid rgba(0, 0, 0, 0.23);
  26051. border-radius: 4px;
  26052. box-sizing: border-box;
  26053. resize: none;
  26054. }
  26055. .binfo_input:focus-visible {
  26056. border: 1px solid rgba(61, 103, 188);
  26057. }
  26058. .dialog_diy >>> .el-dialog__header,
  26059. .dialog_diy1 >>> .el-dialog__header {
  26060. background: #454545 !important;
  26061. padding: 15px 20px;
  26062. }
  26063. .dialog_diy >>> .el-dialog__title,
  26064. .dialog_diy1 >>> .el-dialog__title {
  26065. color: #fff;
  26066. }
  26067. .dialog_diy >>> .el-dialog__headerbtn,
  26068. .dialog_diy1 >>> .el-dialog__headerbtn {
  26069. top: 19px;
  26070. }
  26071. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26072. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26073. color: #fff;
  26074. }
  26075. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26076. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26077. color: #fff;
  26078. }
  26079. .dialog_diy1 >>> .el-dialog__body {
  26080. padding: 0;
  26081. }
  26082. .dialog_diy >>> .el-dialog__body,
  26083. .dialog_diy >>> .el-dialog__footer,
  26084. .dialog_diy1 >>> .el-dialog__footer {
  26085. background: #fafafa;
  26086. }
  26087. .markScore_diy >>> .el-dialog {
  26088. border-radius: 10px;
  26089. }
  26090. .markScore_diy >>> .el-dialog__body {
  26091. padding: 0;
  26092. height: 621px;
  26093. min-height: calc(100% - 60px);
  26094. }
  26095. .markScore_diy >>> .el-dialog__header {
  26096. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26097. }
  26098. .markScore_diy >>> .markScore_diyTit {
  26099. width: calc(100% - 60px);
  26100. display: flex;
  26101. justify-content: space-between;
  26102. align-items: center;
  26103. }
  26104. .a_addBox {
  26105. padding: 0 0 0 15px;
  26106. }
  26107. .a_add_box {
  26108. padding: 10px;
  26109. background: #fff;
  26110. margin-bottom: 10px;
  26111. border-radius: 5px;
  26112. box-shadow: 0 0 5px 0 #d5d5d5;
  26113. }
  26114. .a_add_head {
  26115. display: flex;
  26116. align-items: flex-start;
  26117. /* justify-content: space-between; */
  26118. flex-direction: column;
  26119. /* flex-direction: row; */
  26120. margin: 10px 0 20px 0;
  26121. font-size: 18px;
  26122. width: 100%;
  26123. }
  26124. .askIndex {
  26125. background: #3681fc;
  26126. border-radius: 50%;
  26127. color: #fff;
  26128. width: 25px;
  26129. height: 25px;
  26130. min-width: 25px;
  26131. min-height: 25px;
  26132. text-align: center;
  26133. line-height: 25px;
  26134. margin-right: 5px;
  26135. }
  26136. .a_add_head .a_add_head_input {
  26137. width: 300px;
  26138. }
  26139. .a_add_head .a_add_head_div {
  26140. display: flex;
  26141. align-items: center;
  26142. justify-content: space-between;
  26143. }
  26144. .a_add_body {
  26145. display: flex;
  26146. align-items: center;
  26147. }
  26148. .a_add_input {
  26149. display: flex;
  26150. align-items: center;
  26151. flex-wrap: wrap;
  26152. width: 100%;
  26153. }
  26154. .a_add_input >>> .el-radio-group,
  26155. .a_add_input >>> .el-checkbox-group {
  26156. width: 100%;
  26157. }
  26158. .a_add_input >>> .el-radio,
  26159. .a_add_input >>> .el-checkbox {
  26160. display: flex;
  26161. flex-direction: row;
  26162. flex-wrap: nowrap;
  26163. align-items: center;
  26164. padding: 15px 0;
  26165. }
  26166. .a_add_input >>> .el-radio:not(:last-child),
  26167. .a_add_input >>> .el-checkbox:not(:last-child) {
  26168. width: 100%;
  26169. border-bottom: 1px solid #efefef;
  26170. }
  26171. .redioStyle >>> .el-radio__label {
  26172. font-size: 18px;
  26173. }
  26174. .redioStyle >>> .el-radio__label > span,
  26175. .redioStyle >>> .el-checkbox__label > span {
  26176. word-break: break-all;
  26177. white-space: normal;
  26178. }
  26179. .redioStyle >>> .el-checkbox__label {
  26180. font-size: 18px;
  26181. }
  26182. .toolHeng2 {
  26183. width: 100%;
  26184. padding-left: 15px;
  26185. box-sizing: border-box;
  26186. }
  26187. .workNav {
  26188. font-size: 20px;
  26189. font-weight: bold;
  26190. color: #0e1e33;
  26191. display: flex;
  26192. flex-direction: row;
  26193. flex-wrap: nowrap;
  26194. align-items: center;
  26195. padding: 15px 0 15px 0;
  26196. }
  26197. .workNav::before {
  26198. content: "";
  26199. width: 2px;
  26200. height: 22px;
  26201. background: #3681fc;
  26202. border-radius: 3px;
  26203. display: block;
  26204. margin: 2px 6px 0 0;
  26205. }
  26206. .toolHeng {
  26207. display: flex;
  26208. flex-direction: row;
  26209. flex-wrap: wrap;
  26210. justify-content: flex-start;
  26211. align-items: center;
  26212. width: 100%;
  26213. }
  26214. .toolHeng > div {
  26215. padding-left: 20px;
  26216. }
  26217. .isWidth {
  26218. width: 20%;
  26219. }
  26220. .textTitle {
  26221. display: flex;
  26222. flex-direction: row;
  26223. flex-wrap: nowrap;
  26224. align-items: center;
  26225. width: 95%;
  26226. }
  26227. .textTitle >>> .el-form-item__label {
  26228. font-size: 22px;
  26229. color: #918f8f;
  26230. width: 100px;
  26231. }
  26232. .textTitle >>> .el-form-item__content {
  26233. width: calc(100% - 100px);
  26234. }
  26235. .textCss >>> .el-dialog {
  26236. width: 800px !important;
  26237. height: 400px;
  26238. background: #fafafa;
  26239. }
  26240. .textCss >>> .el-dialog__body {
  26241. margin: 55px 8% 0 8%;
  26242. padding: 0 !important;
  26243. }
  26244. .textCss >>> .el-dialog__footer {
  26245. padding-top: 38px;
  26246. }
  26247. .toolsCss >>> .el-dialog__body {
  26248. padding: 20px;
  26249. }
  26250. .lineCss >>> .el-dialog__body {
  26251. display: flex;
  26252. flex-direction: row;
  26253. align-items: center;
  26254. justify-content: center;
  26255. }
  26256. .newNav {
  26257. display: flex;
  26258. flex-direction: row;
  26259. align-items: baseline;
  26260. justify-content: flex-start;
  26261. }
  26262. .navListItem {
  26263. width: calc(100% - 20px);
  26264. height: 50px;
  26265. margin: 0px auto 10px;
  26266. display: flex;
  26267. flex-direction: row;
  26268. flex-wrap: nowrap;
  26269. align-items: center;
  26270. justify-content: space-between;
  26271. background: #f0f4fa;
  26272. border-radius: 6px 6px 6px 6px;
  26273. }
  26274. .navText {
  26275. cursor: pointer;
  26276. white-space: nowrap;
  26277. overflow: hidden;
  26278. text-overflow: ellipsis;
  26279. width: 220px;
  26280. padding: 0 10px;
  26281. font-weight: 400;
  26282. color: #0e1e33;
  26283. }
  26284. .downIcon {
  26285. width: 20px;
  26286. min-width: 20px;
  26287. height: 20px;
  26288. margin-right: 15px;
  26289. cursor: pointer;
  26290. }
  26291. .downIcon > img {
  26292. width: 100%;
  26293. height: 100%;
  26294. }
  26295. .noVedio {
  26296. display: flex;
  26297. flex-direction: row;
  26298. justify-content: center;
  26299. align-content: center;
  26300. }
  26301. .noNavText {
  26302. cursor: pointer;
  26303. margin: 0px 0px 10px 5px;
  26304. width: 112px;
  26305. }
  26306. .listNoVedio {
  26307. margin: 0 0 0 30px;
  26308. width: 97%;
  26309. }
  26310. .video-player >>> .video-js {
  26311. height: 100%;
  26312. }
  26313. .hangVedioList {
  26314. width: 90% !important;
  26315. height: 150px !important;
  26316. margin: 20px 0 0 30px;
  26317. }
  26318. .hangVedio {
  26319. width: 100%;
  26320. height: 170px !important;
  26321. align-items: flex-start !important;
  26322. }
  26323. .hangHand {
  26324. height: 150px !important;
  26325. }
  26326. .twoChild {
  26327. width: 95%;
  26328. margin: 10px;
  26329. border-radius: 5px;
  26330. background: #f2f2f2;
  26331. display: flex;
  26332. flex-direction: column;
  26333. flex-wrap: nowrap;
  26334. justify-content: flex-start;
  26335. align-items: flex-start;
  26336. transition: all 0.5s;
  26337. overflow: hidden;
  26338. height: 0;
  26339. background: #e7f3ff;
  26340. }
  26341. .twoChild > div:nth-child(1) {
  26342. margin-top: 5px;
  26343. }
  26344. .navChild {
  26345. width: 100%;
  26346. cursor: pointer;
  26347. margin-bottom: 10px;
  26348. position: relative;
  26349. }
  26350. .navChild img {
  26351. position: absolute;
  26352. right: 11px;
  26353. width: 15px;
  26354. top: 50%;
  26355. transform: translateY(-50%);
  26356. }
  26357. .navActive,
  26358. .toolActive {
  26359. height: auto !important;
  26360. overflow: auto !important;
  26361. /* padding-bottom: 16px; */
  26362. }
  26363. .toolActive {
  26364. padding: 0;
  26365. }
  26366. .navTask {
  26367. display: flex;
  26368. flex-direction: row;
  26369. flex-wrap: nowrap;
  26370. align-items: center;
  26371. align-content: flex-start;
  26372. height: 40px;
  26373. justify-content: flex-start;
  26374. padding: 0 10px;
  26375. width: 100%;
  26376. box-sizing: border-box;
  26377. }
  26378. .navTaskname {
  26379. white-space: nowrap;
  26380. text-overflow: ellipsis;
  26381. overflow: hidden;
  26382. word-break: break-all;
  26383. padding-left: 5px;
  26384. }
  26385. .openTaskActive {
  26386. /* background-color: #e0eafb !important;
  26387. color: #0061ff; */
  26388. color:#fff;
  26389. background: rgb(55, 129, 252) !important;
  26390. }
  26391. .iframeName {
  26392. margin: 5px 0;
  26393. border-left: 4px solid #41c4a4;
  26394. padding-left: 4px;
  26395. }
  26396. .toolTitle {
  26397. margin: 0px 0px 20px;
  26398. font-size: 20px;
  26399. font-weight: 500;
  26400. border-left: 4px solid #41c4a4;
  26401. padding-left: 4px;
  26402. }
  26403. .cru_selectBox {
  26404. overflow: auto;
  26405. width: 95%;
  26406. margin: 17px auto 0;
  26407. height: calc(100% - 40px - 21px - 20px - 17px);
  26408. background: #fff;
  26409. border-radius: 8px;
  26410. }
  26411. .cru_selectBox::-webkit-scrollbar,
  26412. .study_top::-webkit-scrollbar,
  26413. .textContent::-webkit-scrollbar {
  26414. /*滚动条整体样式*/
  26415. width: 6px;
  26416. /*高宽分别对应横竖滚动条的尺寸*/
  26417. height: 6px;
  26418. }
  26419. /*定义滚动条轨道 内阴影+圆角*/
  26420. .cru_selectBox::-webkit-scrollbar-track,
  26421. .study_top::-webkit-scrollbar-track,
  26422. .textContent::-webkit-scrollbar {
  26423. border-radius: 10px;
  26424. background-color: #b8bdc9;
  26425. }
  26426. /*定义滑块 内阴影+圆角*/
  26427. .cru_selectBox::-webkit-scrollbar-thumb,
  26428. .study_top::-webkit-scrollbar-thumb,
  26429. .textContent::-webkit-scrollbar-thumb {
  26430. border-radius: 10px;
  26431. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26432. background-color: #2c5ab3;
  26433. }
  26434. .vedioBox {
  26435. border-radius: 0 0 20px 20px;
  26436. background: #fff;
  26437. overflow: auto;
  26438. }
  26439. .taskBox {
  26440. width: 98%;
  26441. background: #f0f4fa;
  26442. margin: 10px auto;
  26443. padding: 0 10px;
  26444. border-radius: 4px;
  26445. box-sizing: border-box;
  26446. }
  26447. .vedioTaskBox {
  26448. width: 100%;
  26449. display: flex;
  26450. flex-direction: row;
  26451. flex-wrap: nowrap;
  26452. align-items: flex-start;
  26453. position: relative;
  26454. }
  26455. .toolBox {
  26456. margin: 15px 0 0 25px;
  26457. display: flex;
  26458. position: relative;
  26459. padding: 18px 20px;
  26460. border-top-left-radius: 5px;
  26461. border-top-right-radius: 5px;
  26462. width: 90%;
  26463. }
  26464. .btnAll {
  26465. position: absolute;
  26466. right: 0;
  26467. display: flex;
  26468. flex-direction: row;
  26469. flex-wrap: nowrap;
  26470. align-items: center;
  26471. }
  26472. .btnLeft,
  26473. .btnRight {
  26474. display: flex;
  26475. flex-direction: row;
  26476. flex-wrap: nowrap;
  26477. align-items: center;
  26478. padding: 5px 0;
  26479. }
  26480. .btnLeft {
  26481. border-right: 1px solid #cad1dc;
  26482. }
  26483. .btnLeft > .custom-tooltip {
  26484. background: #3681fc;
  26485. color: #fff;
  26486. }
  26487. .last:hover {
  26488. background: #3383fa !important;
  26489. color: #fff;
  26490. border: 1px solid #3383fa !important;
  26491. }
  26492. .last,
  26493. .returnBtn1 {
  26494. width: 90px;
  26495. height: 36px;
  26496. background: #ffffff;
  26497. border-radius: 4px;
  26498. border: 1px solid #0061ff;
  26499. color: #0061ff;
  26500. cursor: pointer;
  26501. display: flex;
  26502. flex-direction: row;
  26503. flex-wrap: nowrap;
  26504. align-items: center;
  26505. justify-content: center;
  26506. margin-left: 12px;
  26507. }
  26508. .returnBtn1 {
  26509. background: #f0f4fa;
  26510. border-radius: 4px;
  26511. border: 1px solid #cad1dc;
  26512. margin: 0 12px;
  26513. }
  26514. .lastImg {
  26515. min-width: 15px;
  26516. width: 15px;
  26517. height: 15px;
  26518. display: flex;
  26519. }
  26520. .lastText {
  26521. padding: 0 5px 0 5px;
  26522. box-sizing: border-box;
  26523. font-size: 14px;
  26524. }
  26525. .lastImg > img {
  26526. width: 100%;
  26527. height: 100%;
  26528. }
  26529. /* .vedioTimeBox {
  26530. display: flex;
  26531. flex-direction: row;
  26532. align-items: center;
  26533. flex-wrap: nowrap;
  26534. position: relative;
  26535. } */
  26536. .navBox {
  26537. background: #fff;
  26538. height: calc(100% - 40px);
  26539. overflow-y: auto;
  26540. overflow-x: hidden;
  26541. }
  26542. .worksBox {
  26543. margin: 0 0 10px 25px;
  26544. border-bottom: 1px solid #eeeeee;
  26545. padding: 18px 20px;
  26546. border-radius: 4px;
  26547. width: 90%;
  26548. }
  26549. .worksBTitle {
  26550. font-size: 20px;
  26551. padding-bottom: 15px;
  26552. border-bottom: 1px solid #eeeeee;
  26553. display: flex;
  26554. align-items: center;
  26555. }
  26556. .greenBox {
  26557. width: 5px;
  26558. height: 30px;
  26559. background: #63b6fa;
  26560. margin-right: 5px;
  26561. }
  26562. .worksDetailBox {
  26563. display: flex;
  26564. width: 100%;
  26565. flex-direction: row;
  26566. flex-wrap: wrap;
  26567. align-items: flex-end;
  26568. justify-content: flex-start;
  26569. padding: 15px 5px;
  26570. box-sizing: border-box;
  26571. }
  26572. .works {
  26573. display: flex;
  26574. flex-direction: column;
  26575. flex-wrap: nowrap;
  26576. align-items: flex-start;
  26577. justify-content: flex-start;
  26578. align-content: center;
  26579. max-width: 240px;
  26580. width: calc(100% / 3 - 10px);
  26581. height: auto;
  26582. margin-right: 10px;
  26583. margin-bottom: 10px;
  26584. overflow: hidden;
  26585. height: 140px;
  26586. box-shadow: 0 0 6px 1px #dfdada;
  26587. border-radius: 15px;
  26588. }
  26589. .workImg {
  26590. width: 100%;
  26591. /* height: calc(100% - 40px); */
  26592. height: 105px;
  26593. position: relative;
  26594. }
  26595. .workImg > img {
  26596. width: 100%;
  26597. height: 100%;
  26598. object-fit: contain;
  26599. cursor: pointer;
  26600. }
  26601. .worksName {
  26602. height: 40px;
  26603. line-height: 40px;
  26604. display: flex;
  26605. width: 100%;
  26606. flex-direction: row;
  26607. flex-wrap: nowrap;
  26608. justify-content: space-between;
  26609. align-items: center;
  26610. margin: 0 0 0 10px;
  26611. }
  26612. .worksName > div:nth-child(1) {
  26613. width: 110px;
  26614. white-space: nowrap;
  26615. overflow: hidden;
  26616. text-overflow: ellipsis;
  26617. }
  26618. .worksName > div:nth-child(2) {
  26619. color: #b7b4b5;
  26620. }
  26621. .noWorksS {
  26622. padding: 15px 0;
  26623. display: flex;
  26624. flex-direction: row;
  26625. flex-wrap: wrap;
  26626. align-items: center;
  26627. justify-content: flex-start;
  26628. }
  26629. .noWorksName,
  26630. .isWorksName,
  26631. .isWorksName2 {
  26632. background: #ddebf8;
  26633. color: #000;
  26634. width: 90px;
  26635. height: 25px;
  26636. text-align: center;
  26637. line-height: 25px;
  26638. border-radius: 4px;
  26639. margin: 10px 15px 10px 0;
  26640. white-space: nowrap;
  26641. overflow: hidden;
  26642. padding: 5px;
  26643. text-overflow: ellipsis;
  26644. cursor: pointer;
  26645. border: 1px solid #ddebf8;
  26646. }
  26647. .noWorksName {
  26648. background: #fff;
  26649. color: #0061ff;
  26650. border: 1px solid #0061ff;
  26651. }
  26652. .noWorksName > span{
  26653. max-width: 100%;
  26654. display: block;
  26655. overflow: hidden;
  26656. text-overflow: ellipsis;
  26657. white-space: nowrap;
  26658. }
  26659. .noWorksName2 {
  26660. background: #fff;
  26661. color: #0061ff;
  26662. width: 90px;
  26663. height: 25px;
  26664. text-align: center;
  26665. line-height: 25px;
  26666. border-radius: 4px;
  26667. margin: 10px 15px 10px 0;
  26668. white-space: nowrap;
  26669. overflow: hidden;
  26670. padding: 5px;
  26671. text-overflow: ellipsis;
  26672. cursor: pointer;
  26673. border: 1px solid #0061ff;
  26674. }
  26675. .noWorksName2 > span {
  26676. max-width: 100%;
  26677. display: block;
  26678. overflow: hidden;
  26679. text-overflow: ellipsis;
  26680. white-space: nowrap;
  26681. }
  26682. .isWorksName2 {
  26683. width: 100px;
  26684. height: 40px;
  26685. line-height: 40px;
  26686. position: relative;
  26687. background: #dae6f9;
  26688. }
  26689. .isWorksName {
  26690. background: #e7ebf1 !important;
  26691. width: 100px;
  26692. height: 40px;
  26693. line-height: 40px;
  26694. position: relative;
  26695. color: #acb4bf;
  26696. border: 1px solid #cad1dc !important;
  26697. }
  26698. .isSelectName,
  26699. .noWorksName:hover {
  26700. background: #3383fa !important;
  26701. color: #fff !important;
  26702. border: 1px solid #3383fa !important;
  26703. }
  26704. .title {
  26705. background: #1e5cc9;
  26706. /* width: 98%; */
  26707. height: 45px;
  26708. color: #fff;
  26709. line-height: 45px;
  26710. padding-left: 20px;
  26711. box-sizing: border-box;
  26712. }
  26713. .textBox {
  26714. font-size: 20px;
  26715. width: 90%;
  26716. display: flex;
  26717. flex-direction: column;
  26718. align-items: center;
  26719. margin: 20px auto 0;
  26720. max-height: calc(100% - 75px);
  26721. overflow: auto;
  26722. }
  26723. .textContent {
  26724. font-size: 18px;
  26725. width: 95%;
  26726. max-width: 95%;
  26727. }
  26728. .answerBg {
  26729. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26730. background-size: 100% 100%;
  26731. width: 100%;
  26732. height: 100%;
  26733. color: #fff;
  26734. text-align: center;
  26735. display: flex;
  26736. flex-direction: column;
  26737. flex-wrap: nowrap;
  26738. align-items: center;
  26739. position: relative;
  26740. justify-content: center;
  26741. }
  26742. /* .answerBg > div:nth-child(1) { */
  26743. /* font-size: 22px;
  26744. padding: 25px 0 10px; */
  26745. /* } */
  26746. .answerContent {
  26747. width: 215px;
  26748. max-height: 60px;
  26749. word-break: break-all;
  26750. text-align: center;
  26751. /* white-space: nowrap; */
  26752. overflow: hidden;
  26753. text-overflow: ellipsis;
  26754. /* padding: 23px 0 0; */
  26755. -webkit-line-clamp: 3;
  26756. -webkit-box-orient: vertical;
  26757. display: -webkit-box;
  26758. font-size: 15px;
  26759. cursor: pointer;
  26760. }
  26761. .elist_input_box {
  26762. display: flex;
  26763. align-items: flex-start;
  26764. flex-wrap: nowrap;
  26765. padding: 10px 0 15px 30px;
  26766. flex-direction: column;
  26767. }
  26768. .elist_input {
  26769. /* width: 40%; */
  26770. width: 45%;
  26771. margin: 20px;
  26772. }
  26773. .elist_input .elist_input_box input {
  26774. font: inherit;
  26775. color: currentColor;
  26776. width: 200px;
  26777. padding: 8px 14px;
  26778. display: block;
  26779. min-width: 0;
  26780. outline: none;
  26781. border: 1px solid rgba(0, 0, 0, 0.23);
  26782. border-radius: 4px;
  26783. box-sizing: border-box;
  26784. background: #fff;
  26785. margin: 0 20px 0 0;
  26786. }
  26787. .elist_input .elist_input_box span {
  26788. height: 36px;
  26789. line-height: 36px;
  26790. color: rgb(82, 82, 82);
  26791. }
  26792. .elist_input .elist_input_box .remove {
  26793. height: 20px;
  26794. width: 20px;
  26795. background-size: 100% 100%;
  26796. background-position: unset;
  26797. margin-left: 5px;
  26798. }
  26799. .elist_input_box >>> .el-rate {
  26800. display: flex;
  26801. height: 36px;
  26802. align-items: center;
  26803. }
  26804. .elist_input_box .elist_inptu_text {
  26805. min-height: 50px;
  26806. /* width: 500px;
  26807. max-height: 150px; */
  26808. width: 100%;
  26809. line-height: 50px;
  26810. color: rgb(82, 82, 82);
  26811. overflow: auto;
  26812. text-indent: 5px;
  26813. background: #f7f6f9;
  26814. border-radius: 10px;
  26815. }
  26816. .elist_input_box .elist_inptu_text input {
  26817. width: 500px;
  26818. }
  26819. .elist_input_box >>> .el-rate__icon {
  26820. font-size: 24px;
  26821. }
  26822. .isClick {
  26823. background: #4d9def;
  26824. }
  26825. .bzBox {
  26826. display: flex;
  26827. flex-direction: row;
  26828. align-items: center;
  26829. }
  26830. .bzBox .yCss {
  26831. width: 7px;
  26832. height: 7px;
  26833. background: #fff;
  26834. margin: 0 16px 0 6px;
  26835. border-radius: 50%;
  26836. border: 5px solid #3681fc;
  26837. z-index: 99;
  26838. }
  26839. .bzBox > div:nth-child(2) {
  26840. font-size: 18px;
  26841. font-weight: bold;
  26842. color: #0e1e33;
  26843. }
  26844. .navTitile {
  26845. padding: 0 0px 0 15px;
  26846. font-size: 16px;
  26847. font-weight: bold;
  26848. color: #0e1e33;
  26849. height: 40px;
  26850. line-height: 40px;
  26851. }
  26852. .isTypeOne {
  26853. width: 240px;
  26854. height: 170px;
  26855. /* border: 1px solid #f8f8f8; */
  26856. border-radius: 10px;
  26857. box-shadow: 0 0 6px 1px #dfdada;
  26858. }
  26859. .e_add_top {
  26860. display: flex;
  26861. justify-content: space-between;
  26862. padding: 10px 20px;
  26863. border-radius: 3px;
  26864. background: #fff;
  26865. }
  26866. .e_add_title2 {
  26867. display: flex;
  26868. align-items: center;
  26869. }
  26870. .e_add_title2 span {
  26871. width: 40px;
  26872. }
  26873. .e_add_title {
  26874. display: flex;
  26875. align-items: center;
  26876. color: #b8b8b8;
  26877. font-size: 18px;
  26878. position: relative;
  26879. height: 40px;
  26880. }
  26881. .e_add_title span {
  26882. margin-right: 10px;
  26883. }
  26884. .e_add_title .el_input {
  26885. width: 300px;
  26886. }
  26887. .e_add_title >>> .el-input__inner {
  26888. width: 400px;
  26889. }
  26890. /* .e_add_btn {
  26891. } */
  26892. .e_add_content {
  26893. display: flex;
  26894. width: 100%;
  26895. max-width: 650px;
  26896. height: 550px;
  26897. }
  26898. .e_add_list {
  26899. background: #fff;
  26900. height: 500px;
  26901. width: 210px;
  26902. position: relative;
  26903. margin: 15px 5px 0 0;
  26904. flex-shrink: 0;
  26905. display: flex;
  26906. flex-direction: column;
  26907. }
  26908. .e_add_list_title {
  26909. font-size: 20px;
  26910. width: 100%;
  26911. box-sizing: border-box;
  26912. padding: 15px 40px;
  26913. text-align: center;
  26914. border-bottom: 1px solid #eaeaea;
  26915. position: relative;
  26916. display: flex;
  26917. align-items: center;
  26918. justify-content: center;
  26919. height: 57px;
  26920. background: #f6f6f6;
  26921. }
  26922. .e_add_list_title span {
  26923. overflow: hidden;
  26924. white-space: nowrap;
  26925. text-overflow: ellipsis;
  26926. }
  26927. .e_add_list_title img {
  26928. position: absolute;
  26929. right: 15px;
  26930. width: 25px;
  26931. cursor: pointer;
  26932. top: 50%;
  26933. transform: translateY(-50%);
  26934. }
  26935. .e_add_list_body {
  26936. height: calc(100% - 187px);
  26937. overflow: auto;
  26938. }
  26939. .e_add_list_child {
  26940. width: 100%;
  26941. display: flex;
  26942. align-items: center;
  26943. justify-content: center;
  26944. position: relative;
  26945. box-sizing: border-box;
  26946. padding: 15px 40px;
  26947. text-align: center;
  26948. }
  26949. .e_add_list_child span {
  26950. overflow: hidden;
  26951. white-space: nowrap;
  26952. text-overflow: ellipsis;
  26953. cursor: pointer;
  26954. }
  26955. .e_add_list_child img {
  26956. position: absolute;
  26957. right: 10px;
  26958. width: 21px;
  26959. cursor: pointer;
  26960. top: 50%;
  26961. transform: translateY(-50%);
  26962. }
  26963. .e_add_list_child + .e_add_list_child {
  26964. border-top: 1px solid #eaeaea;
  26965. }
  26966. .e_add_list_child .active {
  26967. color: #409eff;
  26968. }
  26969. .e_add_list_btn {
  26970. position: absolute;
  26971. bottom: 0;
  26972. height: 50px;
  26973. background: rgb(120, 120, 254);
  26974. width: 100%;
  26975. color: #fff;
  26976. font-size: 16px;
  26977. text-align: center;
  26978. line-height: 50px;
  26979. cursor: pointer;
  26980. }
  26981. .e_add_list_detail {
  26982. position: absolute;
  26983. bottom: 0;
  26984. height: 130px;
  26985. background: rgb(120, 120, 254);
  26986. width: 100%;
  26987. color: #fff;
  26988. font-size: 16px;
  26989. display: flex;
  26990. align-items: center;
  26991. justify-content: center;
  26992. }
  26993. .e_add_list_detail textarea {
  26994. height: 90%;
  26995. width: 95%;
  26996. border: none;
  26997. resize: none;
  26998. outline: none;
  26999. padding: 5px;
  27000. box-sizing: border-box;
  27001. }
  27002. .e_add_list_pbox {
  27003. width: 100%;
  27004. max-width: 650px;
  27005. /* height: 600px; */
  27006. }
  27007. .e_add_list_pbox_title {
  27008. height: 50px;
  27009. background: #fff;
  27010. display: flex;
  27011. align-items: center;
  27012. width: 100%;
  27013. box-sizing: border-box;
  27014. padding: 0 20px;
  27015. }
  27016. .type_title {
  27017. font-size: 18px;
  27018. font-weight: 700;
  27019. }
  27020. .type_content {
  27021. font-size: 16px;
  27022. /* margin-left: 30px; */
  27023. }
  27024. .type_content span + span {
  27025. margin-left: 20px;
  27026. }
  27027. .type_content span {
  27028. cursor: pointer;
  27029. padding-bottom: 5px;
  27030. box-sizing: border-box;
  27031. }
  27032. .type_content .active {
  27033. color: #409eff;
  27034. border-bottom: 2px solid #409eff;
  27035. }
  27036. .e_add_list_pbox_content {
  27037. height: calc(100% - 50px);
  27038. display: flex;
  27039. align-items: center;
  27040. width: 100%;
  27041. background: #fff;
  27042. }
  27043. .evaCss {
  27044. display: flex;
  27045. flex-direction: row;
  27046. flex-wrap: nowrap;
  27047. align-items: flex-start;
  27048. padding: 0 0 20px;
  27049. }
  27050. .cru_line {
  27051. position: absolute;
  27052. bottom: 0px;
  27053. transition: all 0.5s;
  27054. left: 0px;
  27055. width: 125px;
  27056. margin-left: -25px;
  27057. }
  27058. .isNoMessage {
  27059. width: 20%;
  27060. margin: 25% auto 0;
  27061. }
  27062. .isNoMessage > img {
  27063. width: 100%;
  27064. height: 100%;
  27065. }
  27066. .fullStyle >>> .el-dialog__body {
  27067. height: 100% !important;
  27068. }
  27069. .fullStyle >>> .el-dialog,
  27070. .fullStyle {
  27071. width: 100% !important;
  27072. max-width: 100% !important;
  27073. height: 100% !important;
  27074. margin: 0 !important;
  27075. }
  27076. .full_diy >>> .el-dialog {
  27077. margin: 0 !important;
  27078. height: 100%;
  27079. padding: 4px;
  27080. }
  27081. .full_diy >>> .el-dialog__body {
  27082. height: calc(100% - 100px);
  27083. }
  27084. .full_diy2 >>> .el-dialog__body {
  27085. height: calc(100% - 50px);
  27086. padding: 0;
  27087. }
  27088. .switchCss {
  27089. /* width: 100%; */
  27090. display: flex;
  27091. flex-direction: row;
  27092. flex-wrap: nowrap;
  27093. align-items: center;
  27094. /* justify-content: center; */
  27095. }
  27096. .isClickNav {
  27097. /* color: #499eef; */
  27098. color: #000;
  27099. }
  27100. .commentImg {
  27101. width: 25px;
  27102. height: 25px;
  27103. cursor: pointer;
  27104. }
  27105. .commentImg > img {
  27106. width: 100%;
  27107. height: 100%;
  27108. }
  27109. .comment {
  27110. background: #f9f9f9;
  27111. border-radius: 0 0 4px 4px;
  27112. display: flex;
  27113. flex-direction: row;
  27114. flex-wrap: nowrap;
  27115. align-items: center;
  27116. justify-content: flex-end;
  27117. height: 35px;
  27118. }
  27119. .commentList {
  27120. display: flex;
  27121. flex-direction: row;
  27122. flex-wrap: nowrap;
  27123. align-items: center;
  27124. justify-content: center;
  27125. align-content: center;
  27126. /* margin-left: 15px; */
  27127. /* margin-left: 8px; */
  27128. }
  27129. .scoreImg {
  27130. width: 17px;
  27131. height: 17px;
  27132. }
  27133. .studentDetail {
  27134. display: flex;
  27135. flex-direction: row;
  27136. flex-wrap: nowrap;
  27137. /* align-items: center; */
  27138. align-items: flex-start;
  27139. }
  27140. .tx {
  27141. width: 50px;
  27142. }
  27143. .tx > img {
  27144. width: 100%;
  27145. height: 100%;
  27146. }
  27147. .nameAndTime {
  27148. display: flex;
  27149. flex-direction: column;
  27150. flex-wrap: nowrap;
  27151. align-items: flex-start;
  27152. margin-left: 10px;
  27153. }
  27154. .worksAnswer {
  27155. color: #4078dd;
  27156. margin: 10px 0;
  27157. font-size: 16px;
  27158. position: relative;
  27159. }
  27160. .worksAnswer > img {
  27161. width: 500px;
  27162. height: 300px;
  27163. object-fit: contain;
  27164. margin: 0 auto;
  27165. display: block;
  27166. }
  27167. .commentTop {
  27168. border-bottom: 1px solid #eaeaea;
  27169. padding-bottom: 10px;
  27170. }
  27171. .commentBox {
  27172. padding-top: 15px;
  27173. }
  27174. .pl {
  27175. font-size: 18px;
  27176. }
  27177. .plPerson {
  27178. width: 100%;
  27179. }
  27180. .plName {
  27181. display: flex;
  27182. flex-direction: row;
  27183. flex-wrap: nowrap;
  27184. align-items: baseline;
  27185. color: #78787a;
  27186. width: 100%;
  27187. }
  27188. .deleteComment {
  27189. cursor: pointer;
  27190. margin-left: auto;
  27191. color: #237ade;
  27192. }
  27193. .plContent {
  27194. margin-top: 5px;
  27195. }
  27196. .evalCss {
  27197. background: #fff;
  27198. font-size: 18px;
  27199. }
  27200. .nav {
  27201. color: #9d9d9d;
  27202. padding: 5px 0 15px 20px;
  27203. }
  27204. .middleBox {
  27205. padding: 5px 0 15px 20px;
  27206. }
  27207. .pfBox {
  27208. padding-bottom: 30px;
  27209. }
  27210. .nameAndrate {
  27211. display: flex;
  27212. flex-direction: row;
  27213. flex-wrap: nowrap;
  27214. align-items: center;
  27215. padding-bottom: 10px;
  27216. height: 30px;
  27217. line-height: 30px;
  27218. }
  27219. .nameAndrate > div {
  27220. margin-left: 10px;
  27221. color: #000;
  27222. height: 30px;
  27223. }
  27224. .nameAndrate >>> .el-rate__icon {
  27225. font-size: 28px !important;
  27226. }
  27227. .pfBox > div:nth-child(2) {
  27228. background: #f7f6f9;
  27229. width: 400px;
  27230. min-height: 45px;
  27231. border-radius: 10px;
  27232. font-size: 16px;
  27233. display: flex;
  27234. flex-wrap: wrap;
  27235. align-items: center;
  27236. padding: 10px 20px;
  27237. box-sizing: border-box;
  27238. color: #000;
  27239. }
  27240. .bz {
  27241. display: flex;
  27242. flex-direction: row;
  27243. flex-wrap: nowrap;
  27244. align-items: flex-start;
  27245. }
  27246. .bz > div {
  27247. padding: 0 10px;
  27248. }
  27249. .select_box2_title {
  27250. background: #fff;
  27251. border-radius: 5px;
  27252. padding: 15px 10px;
  27253. box-sizing: border-box;
  27254. margin-bottom: 10px;
  27255. display: flex;
  27256. flex-direction: row;
  27257. flex-wrap: nowrap;
  27258. align-items: center;
  27259. }
  27260. .select_box2_title > div:nth-child(2) {
  27261. margin-left: 10px;
  27262. color: #c4c4c4;
  27263. }
  27264. .select_box2_box {
  27265. display: flex;
  27266. height: 500px;
  27267. }
  27268. .select_box2_img {
  27269. width: calc(100% - 310px);
  27270. height: 100%;
  27271. overflow: auto;
  27272. background: #fff;
  27273. border-radius: 5px;
  27274. }
  27275. .select_box2_img img {
  27276. width: 100%;
  27277. }
  27278. .select_box2_answer {
  27279. background: #fff;
  27280. margin-left: 10px;
  27281. border-radius: 5px;
  27282. width: 300px;
  27283. overflow: auto;
  27284. height: 90%;
  27285. display: flex;
  27286. flex-direction: column;
  27287. align-items: flex-start;
  27288. padding-top: 10px;
  27289. box-sizing: border-box;
  27290. position: relative;
  27291. }
  27292. .select_answer_title {
  27293. padding: 0 0 15px 20px;
  27294. color: #c4c4c4;
  27295. }
  27296. .select_box2_answer_box {
  27297. margin: 0 0 10px 20px;
  27298. width: 85%;
  27299. display: flex;
  27300. flex-direction: row;
  27301. flex-wrap: nowrap;
  27302. align-items: center;
  27303. }
  27304. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27305. color: #000;
  27306. }
  27307. .upAnswerCss {
  27308. position: absolute;
  27309. bottom: 15px;
  27310. right: 15px;
  27311. }
  27312. .upAnswerCss >>> .el-button {
  27313. width: 95px;
  27314. height: 35px;
  27315. line-height: 35px;
  27316. padding: 0;
  27317. }
  27318. .rightWidthCss {
  27319. width: 60%;
  27320. display: flex;
  27321. flex-direction: row;
  27322. align-items: flex-start;
  27323. }
  27324. .rightAnswer {
  27325. display: flex;
  27326. flex-direction: row;
  27327. flex-wrap: nowrap;
  27328. align-items: center;
  27329. color: red;
  27330. margin-bottom: 31px;
  27331. }
  27332. .rightAnswerCss {
  27333. display: flex;
  27334. flex-direction: column;
  27335. flex-wrap: nowrap;
  27336. padding-top: 60px;
  27337. }
  27338. .blueCss {
  27339. color: #767de1;
  27340. margin-left: 10px;
  27341. }
  27342. .redCss {
  27343. color: red;
  27344. }
  27345. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27346. color: rgb(0 123 255) !important;
  27347. }
  27348. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27349. color: rgb(0 123 255) !important;
  27350. }
  27351. .zuoyeYulan {
  27352. padding-top: 0;
  27353. font-size: 18px;
  27354. display: flex;
  27355. align-items: flex-end;
  27356. }
  27357. .buttonA {
  27358. margin-left: 10px;
  27359. padding: 0;
  27360. }
  27361. .displayBox {
  27362. margin-bottom: 10px;
  27363. display: block;
  27364. border-bottom: 3px solid #eee;
  27365. display: flex;
  27366. align-items: center;
  27367. }
  27368. .easy_comment {
  27369. width: calc(100% - 90px);
  27370. margin-left: 10px;
  27371. display: flex;
  27372. flex-wrap: wrap;
  27373. }
  27374. .easy_comment > div {
  27375. border: 1px solid #4a4a4a;
  27376. color: #666;
  27377. border-radius: 15px;
  27378. padding: 5px 10px;
  27379. font-size: 16px;
  27380. margin-bottom: 10px;
  27381. margin-right: 5px;
  27382. cursor: pointer;
  27383. }
  27384. .easy_comment div:hover {
  27385. border: 1px solid #f7ba2a;
  27386. color: #c69217;
  27387. }
  27388. .xuan_right_box {
  27389. padding: 10px 0;
  27390. background: #f0f4fa;
  27391. margin: 0 15px 0 25px;
  27392. border-bottom-left-radius: 5px;
  27393. border-bottom-right-radius: 5px;
  27394. width: 91.5%;
  27395. }
  27396. .tool_right_box {
  27397. display: flex;
  27398. align-items: center;
  27399. }
  27400. .tool_right_box >>> .katex {
  27401. font-size: 16px;
  27402. }
  27403. .tool_right_box + .tool_right_box {
  27404. margin-top: 10px;
  27405. }
  27406. .right_box_xuan {
  27407. border-radius: 5px;
  27408. padding: 5px;
  27409. margin-left: 10px;
  27410. min-width: 95px;
  27411. background: #fff;
  27412. color: #0061ff;
  27413. border: 1px solid #0061ff;
  27414. font-size: 14px;
  27415. }
  27416. .pButton:hover {
  27417. opacity: 1 !important;
  27418. }
  27419. .pButton {
  27420. position: fixed;
  27421. text-align: center;
  27422. cursor: pointer;
  27423. z-index: 999;
  27424. right: 20px;
  27425. top: 110px;
  27426. width: 50px;
  27427. height: 50px;
  27428. display: flex;
  27429. align-items: center;
  27430. justify-content: center;
  27431. border-radius: 5px;
  27432. }
  27433. .pzClass {
  27434. width: calc(100% - 340px);
  27435. }
  27436. .newDialogCss {
  27437. /* position: fixed;
  27438. right: 5%;
  27439. top: 50%;
  27440. width: 340px;
  27441. transform: translateY(-50%);
  27442. height: 60%;
  27443. box-shadow: 0px 0 8px 0px #555555;
  27444. border-radius: 15px;
  27445. z-index: 999; */
  27446. position: fixed;
  27447. right: 20px;
  27448. top: 101px;
  27449. width: 330px;
  27450. height: calc(100% - 80px);
  27451. z-index: 999;
  27452. background: #fff;
  27453. border-top-right-radius: 0px;
  27454. border-bottom-right-radius: 0px;
  27455. overflow: hidden;
  27456. }
  27457. .newDialogCss>.scoreList{
  27458. width:100%;
  27459. height:100%;
  27460. box-sizing:border-box;
  27461. padding:10px 15px;
  27462. overflow:auto;
  27463. padding-bottom:80px;
  27464. }
  27465. .pzTop {
  27466. color: #fff;
  27467. background: #000;
  27468. display: flex;
  27469. flex-direction: row;
  27470. flex-wrap: nowrap;
  27471. align-items: center;
  27472. justify-content: space-between;
  27473. height: 40px;
  27474. border-radius: 15px 15px 0 0;
  27475. user-select: none;
  27476. }
  27477. .pzTop2 .checkbox {
  27478. display: flex;
  27479. align-items: center;
  27480. padding: 5px 10px;
  27481. flex: 0 0 auto;
  27482. font-weight: bold;
  27483. border-bottom: 1px solid #eee;
  27484. justify-content: space-between;
  27485. }
  27486. .checkbox>.cb-tabList{
  27487. display:flex;
  27488. align-items:center;
  27489. }
  27490. .cb-tabList>div{
  27491. margin-right:20px;
  27492. font-weight:400;
  27493. cursor:pointer;
  27494. }
  27495. .cb-tabList>.cb-tabItem{
  27496. color:#1684FC;
  27497. position:relative;
  27498. }
  27499. .cb-tabItem::after{
  27500. content:"";
  27501. width:100%;
  27502. height:2px;
  27503. background:#1684FC;
  27504. position:absolute;
  27505. bottom:-5px;
  27506. left:0
  27507. }
  27508. .pzTop2 .check {
  27509. text-align: center;
  27510. cursor: pointer;
  27511. box-sizing: border-box;
  27512. display: flex;
  27513. }
  27514. .pzTop2 img {
  27515. width: 25px;
  27516. cursor: pointer;
  27517. }
  27518. .pzTop > div:nth-child(1) {
  27519. padding-left: 10px;
  27520. }
  27521. .pzTop > div:nth-child(2) {
  27522. width: 15px;
  27523. height: 15px;
  27524. padding-right: 10px;
  27525. cursor: pointer;
  27526. }
  27527. .pzTop > div:nth-child(2) > img {
  27528. width: 100%;
  27529. height: 100%;
  27530. }
  27531. .pzBox,
  27532. .noPzBox {
  27533. height: calc(100% - 60px);
  27534. /* background: #ededed; */
  27535. background: #fff;
  27536. /* border-radius: 0 0 15px 15px; */
  27537. }
  27538. .noPzBox {
  27539. display: flex;
  27540. flex-direction: column;
  27541. flex-wrap: nowrap;
  27542. justify-content: center;
  27543. align-items: center;
  27544. }
  27545. .pzList {
  27546. background: #f7f7f7;
  27547. width: 90%;
  27548. margin: 0 auto 15px;
  27549. border-radius: 5px;
  27550. }
  27551. .pzNavTop {
  27552. display: flex;
  27553. flex-direction: row;
  27554. flex-wrap: nowrap;
  27555. padding: 10px 10px 0 10px;
  27556. align-items: center;
  27557. }
  27558. .pzDelete {
  27559. cursor: pointer;
  27560. margin-left: auto;
  27561. font-size: 14px;
  27562. color: #afafaf;
  27563. }
  27564. .pzNavTop > div:nth-child(1) {
  27565. background: #3760af;
  27566. width: 35px;
  27567. height: 35px;
  27568. color: #fff;
  27569. text-align: center;
  27570. line-height: 35px;
  27571. border-radius: 50%;
  27572. font-size: 14px;
  27573. }
  27574. .pzNavTop > div:nth-child(2) {
  27575. font-size: 18px;
  27576. color: #959595;
  27577. margin-left: 5px;
  27578. }
  27579. .pzContent {
  27580. padding: 10px;
  27581. word-break: break-word;
  27582. }
  27583. .pzContent audio {
  27584. width: 100%;
  27585. }
  27586. .pzContent audio::-webkit-media-controls-panel {
  27587. background: #fff;
  27588. }
  27589. .pzContent >>> img {
  27590. max-width: 100%;
  27591. }
  27592. .pzListBox {
  27593. padding-top: 15px;
  27594. height: calc(100% - 110px);
  27595. overflow: auto;
  27596. }
  27597. .addPzButton {
  27598. position: relative;
  27599. margin-top: 3px;
  27600. width: 100%;
  27601. }
  27602. .addPzButton .img1 {
  27603. position: absolute;
  27604. top: 50%;
  27605. right: 25px;
  27606. transform: translateY(-50%);
  27607. height: 100%;
  27608. display: flex;
  27609. align-items: center;
  27610. }
  27611. .addPzButton .img1 div {
  27612. display: flex;
  27613. }
  27614. .addPzButton .img1 div img {
  27615. width: 28px;
  27616. margin-left: 10px;
  27617. cursor: pointer;
  27618. }
  27619. .addPzButton .img1 div span {
  27620. font-size: 14px;
  27621. margin: 4px 0 0 3px;
  27622. color: #afafaf;
  27623. }
  27624. .addPz {
  27625. background: #4b79ce;
  27626. width: 100px;
  27627. color: #fff;
  27628. font-size: 12px;
  27629. height: 30px;
  27630. margin: 0 auto;
  27631. text-align: center;
  27632. line-height: 30px;
  27633. border-radius: 10px;
  27634. cursor: pointer;
  27635. }
  27636. .addDialogCss {
  27637. position: fixed;
  27638. width: 600px;
  27639. height: 70%;
  27640. min-height: 450px;
  27641. box-shadow: 0px 0 8px 0px #555555;
  27642. border-radius: 15px;
  27643. z-index: 999;
  27644. left: 50%;
  27645. top: 50%;
  27646. margin: -18% 0 0 -300px;
  27647. }
  27648. .teacherPz {
  27649. display: flex;
  27650. flex-direction: row;
  27651. align-items: center;
  27652. flex-wrap: nowrap;
  27653. }
  27654. .teacherPzImg {
  27655. width: 30px;
  27656. height: 30px;
  27657. }
  27658. .teacherPzImg > img {
  27659. width: 100%;
  27660. height: 100%;
  27661. }
  27662. .addPzBox {
  27663. height: calc(100% - 40px);
  27664. background: #ededed;
  27665. border-bottom-left-radius: 15px;
  27666. border-bottom-right-radius: 15px;
  27667. }
  27668. .pzAudioClass {
  27669. margin: 15px 14px;
  27670. background: #fff;
  27671. height: 100%;
  27672. display: flex;
  27673. justify-content: center;
  27674. align-items: center;
  27675. }
  27676. .pzConText {
  27677. width: 95%;
  27678. height: 100%;
  27679. margin: 10px auto 0;
  27680. border: none;
  27681. background: #fff;
  27682. border-radius: 0px;
  27683. }
  27684. .pzConText >>> .text {
  27685. height: calc(100% - 82px);
  27686. }
  27687. .addTextCss {
  27688. background: #4b79ce;
  27689. width: 80px;
  27690. height: 30px;
  27691. text-align: center;
  27692. color: #fff;
  27693. line-height: 30px;
  27694. border-radius: 10px;
  27695. margin: 10px auto 0;
  27696. cursor: pointer;
  27697. }
  27698. .pzConText:focus-visible {
  27699. border: none !important;
  27700. }
  27701. .maxWidth {
  27702. width: 1000px;
  27703. }
  27704. .noPz {
  27705. width: 150px;
  27706. margin: 0 auto 20%;
  27707. }
  27708. .noPz > img {
  27709. width: 100%;
  27710. height: 100%;
  27711. }
  27712. .timeAndReply {
  27713. display: flex;
  27714. flex-direction: row;
  27715. flex-wrap: nowrap;
  27716. justify-content: space-between;
  27717. align-items: center;
  27718. font-size: 14px;
  27719. box-sizing: border-box;
  27720. padding: 0 10px 10px 0px;
  27721. }
  27722. .timeAndReply .time {
  27723. color: #bfbfbf;
  27724. padding: 0 0 0 10px;
  27725. box-sizing: border-box;
  27726. }
  27727. .timeAndReply > div:last-child {
  27728. cursor: pointer;
  27729. color: #777;
  27730. }
  27731. /* table 样式 */
  27732. .cont >>> table {
  27733. border-top: 1px solid #ccc;
  27734. border-left: 1px solid #ccc;
  27735. }
  27736. .cont >>> table td,
  27737. .cont >>> table th {
  27738. border-bottom: 1px solid #ccc;
  27739. border-right: 1px solid #ccc;
  27740. /* padding: 20px 5px; */
  27741. padding: 5px 10px;
  27742. max-width: 0px;
  27743. height: 30px;
  27744. vertical-align: baseline;
  27745. box-sizing: border-box;
  27746. }
  27747. .cont >>> table th {
  27748. border-bottom: 2px solid #ccc;
  27749. text-align: center;
  27750. }
  27751. /* blockquote 样式 */
  27752. .cont >>> blockquote {
  27753. display: block;
  27754. border-left: 8px solid #d0e5f2;
  27755. padding: 5px 10px;
  27756. margin: 10px 0;
  27757. line-height: 1.4;
  27758. font-size: 100%;
  27759. background-color: #f1f1f1;
  27760. }
  27761. /* code 样式 */
  27762. .cont >>> code {
  27763. display: inline-block;
  27764. /* *display: inline; */
  27765. zoom: 1;
  27766. background-color: #f1f1f1;
  27767. border-radius: 3px;
  27768. padding: 3px 5px;
  27769. margin: 0 3px;
  27770. }
  27771. .cont >>> pre code {
  27772. display: block;
  27773. }
  27774. /* ul ol 样式 */
  27775. .cont >>> ul,
  27776. ol {
  27777. margin: 10px 0 10px 20px;
  27778. }
  27779. .addPzCheck {
  27780. display: flex;
  27781. flex-direction: row;
  27782. flex-wrap: nowrap;
  27783. padding: 10px 15px 0;
  27784. }
  27785. .addPzCheck span {
  27786. cursor: pointer;
  27787. padding-bottom: 5px;
  27788. font-weight: bold;
  27789. }
  27790. .addPzCheck span + span {
  27791. margin-left: 10px;
  27792. }
  27793. .addPzCheck .isChooseActive {
  27794. color: #3e88f4;
  27795. border-bottom: 2px solid #2f80f3;
  27796. }
  27797. /* code 样式 */
  27798. .cont {
  27799. /* -webkit-user-modify: read-write; */
  27800. overflow-wrap: break-word;
  27801. -webkit-line-break: after-white-space;
  27802. word-break: break-word;
  27803. white-space: pre-line;
  27804. }
  27805. .scoreBox,
  27806. .scoreDetailBox {
  27807. display: flex;
  27808. align-items: center;
  27809. justify-content: flex-start;
  27810. margin-top: 20px;
  27811. font-size: 18px;
  27812. width: 100%;
  27813. }
  27814. .scoreBox .t,
  27815. .scoreDetailBox .t {
  27816. margin-right: 10px;
  27817. min-width: 100px;
  27818. text-align: right;
  27819. }
  27820. .scoreDetailBox {
  27821. align-items: flex-start;
  27822. }
  27823. .scoreDetailBox >>> .el-textarea {
  27824. width: calc(100% - 200px);
  27825. }
  27826. .scoreBox >>> .el-input {
  27827. width: 130px;
  27828. font-size: 38px;
  27829. }
  27830. .scoreBox >>> .el-input__inner {
  27831. height: 60px;
  27832. }
  27833. .answerScore {
  27834. position: absolute;
  27835. top: 10px;
  27836. right: 10px;
  27837. background: #0000008f;
  27838. border-radius: 5px;
  27839. padding: 3px 5px;
  27840. font-size: 14px;
  27841. color: #fff;
  27842. cursor: pointer;
  27843. }
  27844. .open_box .switch_box {
  27845. width: 100%;
  27846. margin: 0 auto;
  27847. display: flex;
  27848. justify-content: space-between;
  27849. }
  27850. .open_box .switch_box + .switch_box {
  27851. margin-top: 10px;
  27852. }
  27853. .deleteImg,.deleteImg1 {
  27854. width: 25px !important;
  27855. height: 25px !important;
  27856. cursor: pointer;
  27857. position: absolute;
  27858. top: 10px;
  27859. right: 10px;
  27860. }
  27861. .deleteImg2 {
  27862. width: 23px !important;
  27863. height: 23px !important;
  27864. top: 5px;
  27865. right: 5px;
  27866. }
  27867. .deleteImg1{
  27868. width: 23px !important;
  27869. height: 23px !important;
  27870. top: 5px !important;
  27871. right: 30px !important;
  27872. }
  27873. .rightW {
  27874. right: 40px;
  27875. }
  27876. .drawPBox {
  27877. display: flex;
  27878. flex-direction: column;
  27879. position: relative;
  27880. }
  27881. .drawPBox span {
  27882. font-size: 18px;
  27883. color: #606266;
  27884. padding-bottom: 10px;
  27885. margin: 10px 0;
  27886. border-bottom: 1px solid #eaeaea;
  27887. }
  27888. .drawPBox img {
  27889. width: 500px;
  27890. height: 300px;
  27891. object-fit: contain;
  27892. cursor: pointer;
  27893. margin: 0 auto;
  27894. }
  27895. .sentenBox {
  27896. background: #fff;
  27897. height: 450px;
  27898. overflow: auto;
  27899. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27900. background-position: 102%;
  27901. background-repeat: no-repeat;
  27902. background-size: 60%;
  27903. }
  27904. .addSen {
  27905. background: #409efe;
  27906. width: 90px;
  27907. color: #fff;
  27908. height: 35px;
  27909. text-align: center;
  27910. line-height: 35px;
  27911. border-radius: 5px;
  27912. float: right;
  27913. margin: 10px 20px 0 0;
  27914. cursor: pointer;
  27915. }
  27916. .sentenTop {
  27917. display: flex;
  27918. flex-direction: row;
  27919. flex-wrap: nowrap;
  27920. align-items: center;
  27921. padding: 55px 0 0 20px;
  27922. box-sizing: border-box;
  27923. }
  27924. .sentenTop > div:nth-child(2) {
  27925. width: 300px;
  27926. margin: 0 15px;
  27927. }
  27928. .sentenTop > div:nth-child(3) {
  27929. background: #409efe;
  27930. color: #fff;
  27931. width: 65px;
  27932. height: 35px;
  27933. text-align: center;
  27934. line-height: 35px;
  27935. border-radius: 5px;
  27936. cursor: pointer;
  27937. }
  27938. .cardList,
  27939. .cardList1 {
  27940. padding: 10px 0 10px 0;
  27941. display: flex;
  27942. flex-direction: row;
  27943. flex-wrap: wrap;
  27944. align-items: center;
  27945. box-sizing: border-box;
  27946. border-bottom: 1px solid #f4f4f4;
  27947. width: 98%;
  27948. margin: 0 auto;
  27949. min-width: 60%;
  27950. max-width: 85%;
  27951. }
  27952. .cardList1 {
  27953. padding: 10px 0 10px 10px !important;
  27954. margin: 0 !important;
  27955. }
  27956. .cardBox {
  27957. display: flex;
  27958. flex-direction: row;
  27959. flex-wrap: wrap;
  27960. align-items: center;
  27961. align-content: center;
  27962. }
  27963. .cardBox > div {
  27964. margin-bottom: 10px;
  27965. }
  27966. .isCard,
  27967. .isChooseCard,
  27968. .noCard,
  27969. .isCard1 {
  27970. min-width: 130px;
  27971. width: auto;
  27972. height: 60px;
  27973. text-align: center;
  27974. line-height: 60px;
  27975. font-size: 20px;
  27976. cursor: pointer;
  27977. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27978. background-size: cover;
  27979. transition: all 2s;
  27980. margin-right: 20px;
  27981. background-size: 100% 100%;
  27982. padding: 0 20px;
  27983. box-sizing: border-box;
  27984. }
  27985. .isCard > div,
  27986. .noCard > div,
  27987. .isCard1 > div {
  27988. white-space: nowrap;
  27989. overflow: hidden;
  27990. text-overflow: ellipsis;
  27991. width: 100%;
  27992. margin: 0 auto;
  27993. }
  27994. .noCard {
  27995. background-image: none;
  27996. }
  27997. .isCard1 {
  27998. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27999. }
  28000. .isChooseCard {
  28001. background-image: none;
  28002. border: 1px dashed #b9b9b9;
  28003. border-radius: 10px;
  28004. }
  28005. .card {
  28006. width: 130px;
  28007. height: 60px;
  28008. }
  28009. .card > img {
  28010. width: 100%;
  28011. height: 100%;
  28012. }
  28013. .rightCardBox {
  28014. margin: 10px 0 0 10px;
  28015. }
  28016. .rightCardBox > div:nth-child(1) {
  28017. margin-bottom: 10px;
  28018. }
  28019. .cardCss {
  28020. display: flex;
  28021. flex-direction: column;
  28022. flex-wrap: nowrap;
  28023. align-items: center;
  28024. border-bottom: 3px solid #b4c3d3;
  28025. padding: 0 0 5px 0;
  28026. margin-right: 10px;
  28027. }
  28028. .cardCss > div:nth-child(2) {
  28029. background: #5b7b9d;
  28030. color: #fff;
  28031. width: 20px;
  28032. height: 20px;
  28033. border-radius: 50%;
  28034. text-align: center;
  28035. line-height: 20px;
  28036. }
  28037. .isWrong {
  28038. display: flex;
  28039. flex-direction: row;
  28040. flex-wrap: nowrap;
  28041. align-content: center;
  28042. align-items: center;
  28043. }
  28044. .answerRight {
  28045. width: 25%;
  28046. }
  28047. .isTj {
  28048. display: flex;
  28049. flex-direction: row;
  28050. flex-wrap: nowrap;
  28051. align-items: center;
  28052. }
  28053. .isTj > div:nth-child(2) {
  28054. color: #727070;
  28055. margin-left: 10px;
  28056. }
  28057. .isTjImg {
  28058. width: 30px;
  28059. height: 30px;
  28060. }
  28061. .isTjImg > img {
  28062. width: 100%;
  28063. height: 100%;
  28064. }
  28065. .cardAnswerBox {
  28066. font-size: 18px;
  28067. width: 97%;
  28068. border: 5px;
  28069. padding: 0;
  28070. border-radius: 5px;
  28071. margin: 10px auto;
  28072. word-break: break-word;
  28073. }
  28074. .w_name {
  28075. margin-bottom: 10px;
  28076. }
  28077. .w_name span {
  28078. font-size: 16px;
  28079. }
  28080. .w_teachert {
  28081. width: 50px !important;
  28082. position: absolute;
  28083. height: auto !important;
  28084. z-index: 10;
  28085. right: 25px;
  28086. top: -25px;
  28087. }
  28088. /* .group_workBox {
  28089. } */
  28090. .group_workBox + .group_workBox {
  28091. margin-top: 20px;
  28092. }
  28093. .group_box {
  28094. padding-bottom: 20px;
  28095. border-bottom: 2px solid #f0f0f0;
  28096. margin-top: 10px;
  28097. }
  28098. .group_title {
  28099. display: flex;
  28100. align-items: center;
  28101. justify-content: space-between;
  28102. width: 95%;
  28103. }
  28104. .group_name {
  28105. background-image: url(../../assets/icon/groupN.png);
  28106. width: 220px;
  28107. background-size: 100% 100%;
  28108. height: 67px;
  28109. padding: 0 20px 0 43px;
  28110. box-sizing: border-box;
  28111. line-height: 63px;
  28112. color: #fff;
  28113. overflow: hidden;
  28114. white-space: nowrap;
  28115. text-overflow: ellipsis;
  28116. }
  28117. .group_work {
  28118. width: 100%;
  28119. padding: 0 10px;
  28120. box-sizing: border-box;
  28121. display: flex;
  28122. flex-wrap: wrap;
  28123. }
  28124. .g_d_box {
  28125. display: flex;
  28126. flex-flow: wrap;
  28127. justify-content: space-around;
  28128. }
  28129. .g_d_box .isChair {
  28130. background-image: url(../../assets/avatar.png) !important;
  28131. }
  28132. .g_d_group {
  28133. width: 500px;
  28134. margin-bottom: 80px;
  28135. }
  28136. .g_d_group_chair {
  28137. display: flex;
  28138. align-items: center;
  28139. justify-content: center;
  28140. }
  28141. .g_d_group_chair > div + div {
  28142. margin-left: 30px;
  28143. }
  28144. .g_d_group_chair > div,
  28145. .g_d_group_chair2 > div {
  28146. display: flex;
  28147. flex-direction: column;
  28148. align-items: center;
  28149. }
  28150. .g_d_group_chair > div > span:nth-child(1),
  28151. .g_d_group_chair2 > div > span:nth-child(1) {
  28152. background-image: url(../../assets/icon/chair.png);
  28153. width: 50px;
  28154. height: 50px;
  28155. display: block;
  28156. background-size: 100% 100%;
  28157. }
  28158. .g_d_group_tableBox {
  28159. display: flex;
  28160. align-items: center;
  28161. justify-content: center;
  28162. }
  28163. .g_d_group_chair2 {
  28164. display: flex;
  28165. flex-direction: column;
  28166. align-items: center;
  28167. justify-content: center;
  28168. }
  28169. .g_d_group_chair2 > div + div {
  28170. margin-top: 10px;
  28171. }
  28172. .g_d_group_table {
  28173. background-image: url(../../assets/icon/groupBg.png);
  28174. width: 354px;
  28175. height: 196px;
  28176. background-size: 100% 100%;
  28177. display: flex;
  28178. align-items: center;
  28179. justify-content: center;
  28180. flex-direction: column;
  28181. color: #fff;
  28182. }
  28183. .g_d_group_table > div:nth-child(1) {
  28184. font-size: 24px;
  28185. margin-bottom: 5px;
  28186. }
  28187. .g_d_group_table > div:nth-child(2) div {
  28188. cursor: pointer;
  28189. background: #2e77bf;
  28190. padding: 4px 10px;
  28191. border-radius: 5px;
  28192. }
  28193. /* .groupBox {
  28194. } */
  28195. .groupContent + .groupContent {
  28196. margin-top: 30px;
  28197. }
  28198. .groupTitle {
  28199. font-size: 24px;
  28200. color: rgb(80, 80, 80);
  28201. margin-bottom: 20px;
  28202. }
  28203. .groupName {
  28204. display: flex;
  28205. align-items: center;
  28206. }
  28207. .groupn {
  28208. font-size: 15px;
  28209. margin-right: 10px;
  28210. }
  28211. .groupName + .groupName {
  28212. margin-top: 15px;
  28213. }
  28214. .groupBtn {
  28215. margin-left: 10px;
  28216. }
  28217. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28218. text-align: left;
  28219. }
  28220. .g_d_btnBox {
  28221. display: flex;
  28222. justify-content: flex-end;
  28223. align-items: center;
  28224. margin-bottom: 20px;
  28225. }
  28226. .updateChair {
  28227. position: relative;
  28228. }
  28229. .updateChairBtn {
  28230. position: absolute;
  28231. width: 50px;
  28232. height: 50px;
  28233. overflow: hidden;
  28234. /* display: flex; */
  28235. align-items: center;
  28236. justify-content: center;
  28237. background: #00000087;
  28238. color: #fff;
  28239. border-radius: 50px;
  28240. display: none;
  28241. cursor: pointer;
  28242. }
  28243. .updateChair:hover .updateChairBtn {
  28244. display: flex;
  28245. }
  28246. .group_staic_box {
  28247. display: flex;
  28248. padding: 30px 40px 10px;
  28249. flex-wrap: wrap;
  28250. }
  28251. .group_staic {
  28252. /* width: 50%; */
  28253. margin-bottom: 20px;
  28254. display: flex;
  28255. align-items: center;
  28256. }
  28257. .group_staic span:nth-child(1) {
  28258. width: 150px;
  28259. text-align: right;
  28260. margin-right: 15px;
  28261. }
  28262. .group_staic span:nth-child(2) {
  28263. background: rgb(0 123 255);
  28264. color: #fff;
  28265. border-radius: 5px;
  28266. padding: 5px;
  28267. }
  28268. .codeFileBox {
  28269. height: 300px;
  28270. background: #fff;
  28271. display: flex;
  28272. align-items: center;
  28273. justify-content: center;
  28274. }
  28275. .codeFileBox img {
  28276. width: 200px;
  28277. margin: 0;
  28278. height: auto;
  28279. }
  28280. .codeFileBox div {
  28281. background: rgb(80, 142, 226);
  28282. color: #fff;
  28283. padding: 10px 20px;
  28284. border-radius: 25px;
  28285. cursor: pointer;
  28286. margin-left: 15px;
  28287. }
  28288. .radioBox {
  28289. display: flex;
  28290. flex-direction: column;
  28291. flex-wrap: nowrap;
  28292. align-items: flex-start;
  28293. }
  28294. .radioBox > div {
  28295. margin: 10px 0 0 10px;
  28296. }
  28297. /* .radioBox >>> .el-radio__input,
  28298. .radioBox >>> .el-checkbox__inner {
  28299. margin-left: 10px;
  28300. } */
  28301. .radioBox >>> .el-radio__label,
  28302. .radioBox >>> .el-checkbox__label {
  28303. display: flex;
  28304. align-items: center;
  28305. width: 100%;
  28306. }
  28307. .radioBox >>> .el-radio__label > span {
  28308. width: 100%;
  28309. display: -webkit-box;
  28310. overflow: hidden;
  28311. white-space: normal !important;
  28312. text-overflow: ellipsis;
  28313. word-wrap: break-word;
  28314. }
  28315. .inImg {
  28316. width: 100px;
  28317. cursor: pointer;
  28318. }
  28319. .inImg > img {
  28320. width: 100%;
  28321. height: 100%;
  28322. object-fit: cover;
  28323. }
  28324. .timuImgBox {
  28325. margin: 10px 0;
  28326. display: flex;
  28327. flex-direction: column;
  28328. flex-wrap: wrap;
  28329. align-items: flex-start;
  28330. }
  28331. .timuImg {
  28332. width: 150px;
  28333. margin: 5px 0;
  28334. cursor: pointer;
  28335. }
  28336. .timuImg > img {
  28337. width: 100%;
  28338. height: 100%;
  28339. object-fit: cover;
  28340. }
  28341. .worksTop {
  28342. display: flex;
  28343. flex-direction: row;
  28344. align-items: flex-end;
  28345. }
  28346. .worksTitle {
  28347. display: flex;
  28348. flex-direction: row;
  28349. flex-wrap: nowrap;
  28350. align-items: center;
  28351. }
  28352. .worksTitle::before,
  28353. .worksTop::before {
  28354. content: "";
  28355. display: block;
  28356. width: 3px;
  28357. height: 20px;
  28358. background: #0061ff;
  28359. border-radius: 3px;
  28360. margin: 0 5px 0 0;
  28361. }
  28362. .corOpen {
  28363. margin: 0 0 0 10px;
  28364. font-size: 14px;
  28365. cursor: pointer;
  28366. color: #505050;
  28367. }
  28368. .corOpen:hover {
  28369. color: #499eef;
  28370. }
  28371. .navCorOpenBox {
  28372. display: flex;
  28373. flex-direction: row;
  28374. align-items: center;
  28375. justify-content: space-between;
  28376. height: 55px;
  28377. background: #ffffff;
  28378. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28379. border-radius: 8px 8px 0px 0px;
  28380. z-index: 9;
  28381. position: relative;
  28382. }
  28383. .navCorOpen {
  28384. padding-right: 15px;
  28385. cursor: pointer;
  28386. width: 45px;
  28387. display: flex;
  28388. }
  28389. .navCorOpen > img {
  28390. width: 100%;
  28391. height: 100%;
  28392. }
  28393. .mlImg {
  28394. width: 40px !important;
  28395. min-width: 40px;
  28396. cursor: pointer;
  28397. transform: rotate(180deg);
  28398. }
  28399. .mlImg > img {
  28400. width: 100%;
  28401. height: 100%;
  28402. }
  28403. .navLeftCss {
  28404. width: 100% !important;
  28405. left: 0 !important;
  28406. }
  28407. .isContentCss {
  28408. width: 100% !important;
  28409. }
  28410. .isAllWidth {
  28411. width: 100% !important;
  28412. }
  28413. .group_switch {
  28414. margin-right: 10px;
  28415. height: 30px;
  28416. display: flex;
  28417. align-items: center;
  28418. }
  28419. .group_switch > span {
  28420. margin-right: 5px;
  28421. }
  28422. .fileC_box {
  28423. padding-top: 15px;
  28424. }
  28425. .fileC_box > .fileC_title {
  28426. padding: 10px 5px 14px 10px;
  28427. border-top: 1px solid #cad1dc;
  28428. font-size: 14px;
  28429. font-weight: 400;
  28430. color: #cad1dc;
  28431. width: calc(100% - 20px);
  28432. margin: 0 auto;
  28433. box-sizing: border-box;
  28434. }
  28435. .pl_select_box {
  28436. height: 40px;
  28437. line-height: 40px;
  28438. width: 100%;
  28439. cursor: pointer;
  28440. padding: 0 20px;
  28441. box-sizing: border-box;
  28442. border-radius: 5px;
  28443. border: 1px solid #d6d6d6;
  28444. white-space: nowrap;
  28445. overflow: hidden;
  28446. text-overflow: ellipsis;
  28447. background: #fff;
  28448. text-align: left;
  28449. }
  28450. .newButton {
  28451. width: 102px;
  28452. height: 36px;
  28453. background: #e7ebf1;
  28454. border-radius: 4px;
  28455. color: #0e1e33;
  28456. font-weight: 400;
  28457. font-size: 14px;
  28458. border: none;
  28459. float: right;
  28460. margin-left: 10px;
  28461. }
  28462. .el-table >>> .even_row {
  28463. background-color: #f0f4fa;
  28464. }
  28465. .stageBoxCss,
  28466. .stageBoxIsCss {
  28467. display: flex;
  28468. flex-direction: row;
  28469. flex-wrap: nowrap;
  28470. align-items: center;
  28471. height: 50px;
  28472. border-bottom: 1px solid #e2f5fc;
  28473. cursor: pointer;
  28474. width: 100%;
  28475. }
  28476. .stageBoxIsCss {
  28477. background: #0061ff;
  28478. color: #fff;
  28479. border-radius: 8px;
  28480. }
  28481. .closeTri,
  28482. .closeTri1 {
  28483. min-width: 15px;
  28484. width: 15px;
  28485. height: 15px;
  28486. }
  28487. .closeTri1 {
  28488. padding-left: 10px;
  28489. cursor: pointer;
  28490. }
  28491. .closeTri > img,
  28492. .closeTri1 > img {
  28493. width: 100%;
  28494. height: 100%;
  28495. /* transition: all .5s; */
  28496. }
  28497. .noToolBlue {
  28498. min-width: 10px;
  28499. width: 10px;
  28500. height: 10px;
  28501. background: #0061ff;
  28502. border-radius: 50%;
  28503. margin-left: 13px;
  28504. }
  28505. .stageChild,
  28506. .toolChild {
  28507. height: 0;
  28508. overflow: hidden;
  28509. transition: all 0.5s;
  28510. }
  28511. /* .toolChild { */
  28512. /* margin: 0 0 0 17px;
  28513. padding: 0 0 0 20px;
  28514. border-left: 1px solid #d7d7d7; */
  28515. /* } */
  28516. .toolChild > div + div{
  28517. margin-top:5px;
  28518. }
  28519. .gjCss {
  28520. display: flex;
  28521. flex-direction: row;
  28522. flex-wrap: nowrap;
  28523. align-items: center;
  28524. padding: 10px 0 10px 25px;
  28525. box-sizing: border-box;
  28526. font-size: 14px;
  28527. cursor: pointer;
  28528. border-radius:5px;
  28529. }
  28530. .gjCss > div:nth-child(1){
  28531. flex-shrink: 0;
  28532. }
  28533. .toolChild > div {
  28534. position: relative;
  28535. width: 100%;
  28536. }
  28537. /* .toolChild > div::before { */
  28538. /* content: "";
  28539. width: 15px;
  28540. height: 1px;
  28541. background: #cad1dc;
  28542. position: absolute;
  28543. top: 24px;
  28544. left: -20px;
  28545. display: block; */
  28546. /* } */
  28547. .isGjCss {
  28548. /* color: #0061ff; */
  28549. color:#fff;
  28550. background: rgb(55, 129, 252);
  28551. /* background-color: #e0eafb !important;
  28552. color: #0061ff !important; */
  28553. }
  28554. .navItem {
  28555. background: #ffffff;
  28556. border-radius: 4px;
  28557. width: 100%;
  28558. margin: 10px auto;
  28559. position: relative;
  28560. height: 40px;
  28561. display: flex;
  28562. flex-direction: row;
  28563. flex-wrap: nowrap;
  28564. align-items: center;
  28565. }
  28566. .navItemList {
  28567. display: flex;
  28568. flex-direction: row;
  28569. flex-wrap: nowrap;
  28570. align-items: center;
  28571. padding: 0 13px;
  28572. cursor: pointer;
  28573. width: calc(100% - 60px);
  28574. height: 100%;
  28575. }
  28576. .navItemList > div:first-child {
  28577. min-width: 60px;
  28578. }
  28579. .navItemList > div:last-child {
  28580. width: calc(100% - 80px);
  28581. white-space: nowrap;
  28582. overflow: hidden;
  28583. text-overflow: ellipsis;
  28584. word-break: break-word;
  28585. }
  28586. /* .isItemList > div {
  28587. color: #fff !important;
  28588. } */
  28589. .tool_work_box {
  28590. width: 100%;
  28591. padding: 0 37px 0;
  28592. box-sizing: border-box;
  28593. }
  28594. .tool_box {
  28595. width: 100%;
  28596. padding: 0 0 0 20px;
  28597. }
  28598. .tool_type_box {
  28599. display: flex;
  28600. flex-direction: row;
  28601. align-items: baseline;
  28602. flex-wrap: nowrap;
  28603. justify-content: flex-start;
  28604. position: relative;
  28605. }
  28606. .toolSort {
  28607. display: flex;
  28608. flex-direction: row;
  28609. flex-wrap: wrap;
  28610. justify-content: flex-start;
  28611. align-items: flex-start;
  28612. padding: 0 0 15px 0;
  28613. }
  28614. .toolSort > div {
  28615. margin: 0 10px 0 0;
  28616. width: 135px;
  28617. box-sizing: border-box;
  28618. border: 2px solid transparent;
  28619. }
  28620. .tools {
  28621. width: 100%;
  28622. display: flex;
  28623. flex-direction: column;
  28624. flex-wrap: nowrap;
  28625. align-items: flex-start;
  28626. }
  28627. .whiteBIcon {
  28628. width: fit-content;
  28629. cursor: pointer;
  28630. display: flex;
  28631. flex-direction: column;
  28632. flex-wrap: nowrap;
  28633. align-items: center;
  28634. font-size: 14px;
  28635. }
  28636. .tool:hover {
  28637. border: 2px solid #a5c7ff;
  28638. border-radius: 5px;
  28639. }
  28640. .whiteBIcon > img {
  28641. width: 65px;
  28642. height: 100%;
  28643. }
  28644. .whiteBIcon > img {
  28645. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28646. border-radius: 15px;
  28647. }
  28648. .check {
  28649. /* width: 20px;
  28650. height: 20px; */
  28651. cursor: pointer;
  28652. margin: 10px 0;
  28653. position: absolute;
  28654. right: 2px;
  28655. top: -5px;
  28656. }
  28657. .noChoose,
  28658. .isChoose {
  28659. width: 15px;
  28660. height: 15px;
  28661. border-radius: 50%;
  28662. border: 1px solid #adadad;
  28663. }
  28664. .isChoose {
  28665. border: 4px solid #0363ff !important;
  28666. width: 10px;
  28667. height: 10px;
  28668. }
  28669. .isToolChoose {
  28670. border: 2px solid #5394ff !important;
  28671. border-radius: 5px;
  28672. box-shadow: 0 0 6px 0px #5394ff;
  28673. }
  28674. .checkDiv {
  28675. display: flex;
  28676. align-items: center;
  28677. }
  28678. .checkDiv span {
  28679. margin-left: 5px;
  28680. color: #858585;
  28681. }
  28682. .check img {
  28683. width: 20px;
  28684. height: 20px;
  28685. }
  28686. .lockTaskIcon {
  28687. width: 20px;
  28688. height: 20px;
  28689. position: absolute;
  28690. right: 10px;
  28691. top: 10px;
  28692. }
  28693. .lockTaskIcon > img {
  28694. width: 100%;
  28695. height: 100%;
  28696. }
  28697. .pick_box {
  28698. display: flex;
  28699. align-items: flex-start;
  28700. flex-wrap: wrap;
  28701. }
  28702. .selectBox {
  28703. width: 110px;
  28704. margin-left: 10px;
  28705. margin: 0 10px 0 auto;
  28706. }
  28707. .selectBox >>> .el-input__inner {
  28708. height: 30px;
  28709. line-height: 30px;
  28710. }
  28711. .selectBox >>> .el-input__icon {
  28712. line-height: 30px;
  28713. }
  28714. .sentenceTitle {
  28715. display: flex;
  28716. flex-direction: row;
  28717. flex-wrap: nowrap;
  28718. align-items: center;
  28719. }
  28720. .sentenceTitle::before {
  28721. content: attr(index);
  28722. background: #3681fc;
  28723. border-radius: 50%;
  28724. color: #fff;
  28725. width: 25px;
  28726. height: 25px;
  28727. min-width: 25px;
  28728. min-height: 25px;
  28729. text-align: center;
  28730. line-height: 25px;
  28731. margin-right: 5px;
  28732. }
  28733. .hfBox {
  28734. padding: 10px;
  28735. box-sizing: border-box;
  28736. }
  28737. .whoReplyWho {
  28738. display: flex;
  28739. flex-direction: row;
  28740. flex-wrap: nowrap;
  28741. align-items: baseline;
  28742. justify-content: flex-start;
  28743. }
  28744. .hfBottom {
  28745. display: flex;
  28746. flex-direction: row;
  28747. flex-wrap: nowrap;
  28748. align-items: center;
  28749. justify-content: space-between;
  28750. font-size: 14px;
  28751. }
  28752. .deleteHfItem {
  28753. cursor: pointer;
  28754. width: 20px;
  28755. height: 20px;
  28756. }
  28757. .deleteHfItem > img {
  28758. width: 100%;
  28759. height: 100%;
  28760. }
  28761. .whoReplyWho > .hfImg {
  28762. width: 12px;
  28763. height: 12px;
  28764. margin: 0 5px;
  28765. }
  28766. .whoReplyWho > .hfImg > img {
  28767. width: 100%;
  28768. height: 100%;
  28769. }
  28770. .hfContent {
  28771. padding-top: 10px;
  28772. box-sizing: border-box;
  28773. display: -webkit-box;
  28774. overflow: hidden;
  28775. white-space: normal !important;
  28776. text-overflow: ellipsis;
  28777. word-wrap: break-word;
  28778. -webkit-box-orient: vertical;
  28779. }
  28780. .hfTime {
  28781. text-align: left;
  28782. box-sizing: border-box;
  28783. padding: 10px 0 10px 0px;
  28784. color: #bfbfbf;
  28785. font-size: 14px;
  28786. }
  28787. .btnAllNT {
  28788. position: fixed;
  28789. bottom: 100px;
  28790. right: 40px;
  28791. z-index: 999;
  28792. display: flex;
  28793. flex-direction: row;
  28794. }
  28795. .btnAllNT > img {
  28796. cursor: pointer;
  28797. width: 80px;
  28798. }
  28799. .toolMask {
  28800. position: fixed;
  28801. width: 100%;
  28802. height: 100%;
  28803. background: #3f3c3c;
  28804. opacity: 0.5;
  28805. top: 0;
  28806. left: 0;
  28807. z-index: 999;
  28808. }
  28809. .addToolCss {
  28810. position: fixed;
  28811. z-index: 999;
  28812. background: #fff;
  28813. right: 5%;
  28814. bottom: 18%;
  28815. min-width: 1035px;
  28816. min-height: 300px;
  28817. border-radius: 10px;
  28818. box-shadow: 0 0 8px 1px #b2b2b2;
  28819. }
  28820. .toolTop {
  28821. display: flex;
  28822. flex-direction: row;
  28823. flex-wrap: nowrap;
  28824. justify-content: space-between;
  28825. align-items: center;
  28826. padding: 20px;
  28827. }
  28828. .toolTop > div:nth-child(2) {
  28829. width: 15px;
  28830. height: 15px;
  28831. padding-right: 10px;
  28832. cursor: pointer;
  28833. }
  28834. .toolTop > div:nth-child(2) > img {
  28835. width: 100%;
  28836. height: 100%;
  28837. }
  28838. .fullStyle>>>.el-dialog__body {
  28839. height: calc(100% - 125px) !important;
  28840. box-sizing: border-box;
  28841. padding: 30px 0 !important;
  28842. background: #fff !important;
  28843. }
  28844. .fullStyle>>>.el-dialog {
  28845. width: 100% !important;
  28846. max-width: 100% !important;
  28847. height: 100% !important;
  28848. margin: 0 !important;
  28849. }
  28850. .fullStyle {
  28851. width: 100% !important;
  28852. max-width: 100% !important;
  28853. height: 100% !important;
  28854. margin: 0 auto !important;
  28855. }
  28856. .fullStyle>>>.el-dialog__footer{
  28857. background: #fff !important;
  28858. }
  28859. .engUpBox {
  28860. width: 100%;
  28861. height: 100%;
  28862. }
  28863. .engTitle,
  28864. .engText {
  28865. display: flex;
  28866. flex-direction: row;
  28867. flex-wrap: nowrap;
  28868. align-items: flex-start;
  28869. padding: 0 20px 20px 20px;
  28870. box-sizing: border-box;
  28871. }
  28872. .engTitle > .div:first-child,
  28873. .engText > div:first-child {
  28874. min-width: 75px;
  28875. }
  28876. .correctBox{
  28877. width: 100%;
  28878. display: flex;
  28879. flex-direction: row;
  28880. flex-wrap: nowrap;
  28881. align-items: flex-start;
  28882. }
  28883. .oldBox{
  28884. width: 50%;
  28885. height: 100%;
  28886. display: flex;
  28887. flex-direction: column;
  28888. flex-wrap: nowrap;
  28889. align-items: center;
  28890. border-top: 1px solid #d9d9d9;
  28891. border-left: 1px solid #d9d9d9;
  28892. border-right: 1px solid #d9d9d9;
  28893. }
  28894. .oldBox>div:first-child{
  28895. width: 100%;
  28896. text-align: center;
  28897. background: #d9d9d9;
  28898. height: 35px;
  28899. line-height: 35px;
  28900. font-weight: bold;
  28901. }
  28902. .oldText{
  28903. width: 100%;
  28904. height: calc(100% - 35px);
  28905. overflow: auto;
  28906. margin: 10px 0;
  28907. display: flex;
  28908. flex-direction: column;
  28909. flex-wrap: nowrap;
  28910. align-content: center;
  28911. align-items: center;
  28912. }
  28913. .detailBox{
  28914. width: 50%;
  28915. padding: 10px;
  28916. background: #f6f6f6;
  28917. border-radius: 5px;
  28918. }
  28919. .oldDetail,.oldDetail1{
  28920. padding-bottom: 30px;
  28921. }
  28922. .oldImg{
  28923. width:30px;
  28924. height: 30px;
  28925. }
  28926. .oldImg>img{
  28927. width: 100%;
  28928. height: 100%;
  28929. }
  28930. .allName{
  28931. min-width: 200px;
  28932. white-space: nowrap;
  28933. overflow: hidden;
  28934. text-overflow: ellipsis;
  28935. word-break: break-word;
  28936. cursor: pointer;
  28937. text-align: center;
  28938. border: 1px solid #bcc2cc;
  28939. box-sizing: border-box;
  28940. }
  28941. .engUpTop{
  28942. max-height: 300px;
  28943. overflow: auto;
  28944. }
  28945. .isUpdateToolDetailClass{
  28946. padding: 0 !important;
  28947. }
  28948. .isUpdateToolDetailClass textarea{
  28949. padding:12px;
  28950. font-size: 16px;
  28951. min-height:100%;
  28952. width: 100%;
  28953. box-sizing:border-box;
  28954. outline: none;
  28955. border:none;
  28956. line-height: 30px;
  28957. resize: none;
  28958. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28959. color: #838383;
  28960. }
  28961. .show_taskD {
  28962. min-width: fit-content;
  28963. margin-left: 10px;
  28964. display: flex;
  28965. align-items: center;
  28966. font-size: 14px;
  28967. cursor: pointer;
  28968. color: #717c8d;
  28969. }
  28970. .show_taskD > img {
  28971. width: 15px;
  28972. margin-right: 5px;
  28973. transition: 0.2s all;
  28974. transform: rotate(-90deg);
  28975. }
  28976. .show_taskD.show > img {
  28977. transform: rotate(0deg);
  28978. }
  28979. .correctCss{
  28980. position: absolute;
  28981. bottom: -70px;
  28982. background: #409eff;
  28983. color: #fff;
  28984. }
  28985. .ScoreBtn {
  28986. background: rgba(87, 159, 248, 1);
  28987. display: flex;
  28988. justify-content: center;
  28989. align-items: center;
  28990. color: #fff;
  28991. font-size: 14px;
  28992. padding: 8px 12px;
  28993. border-radius: 5px;
  28994. cursor: pointer;
  28995. }
  28996. .max-height-popover .el-popover {
  28997. min-height: 200px;
  28998. max-height: 400px; /* 设置最大高度 */
  28999. overflow: auto; /* 超出部分显示滚动条 */
  29000. }
  29001. .stuLookScore {
  29002. position: absolute;
  29003. top: 12px;
  29004. right: 40px;
  29005. background: #0000008f;
  29006. border-radius: 5px;
  29007. padding: 3px 5px;
  29008. font-size: 14px;
  29009. color: #fff;
  29010. cursor: pointer;
  29011. }
  29012. .dialog_diyCopy >>> .el-dialog__header {
  29013. display: none !important;
  29014. }
  29015. .dialog_diyCopy >>> .el-dialog__body {
  29016. padding: 0 !important;
  29017. height: 100% !important;
  29018. }
  29019. .confirmOpenDigCss > div{
  29020. font-size: 14px;
  29021. color: rgba(0, 0, 0, 0.6);
  29022. }
  29023. .confirmOpenDigCss >>> .el-dialog{
  29024. border-radius: 6px;
  29025. }
  29026. .confirmOpenDigCss >>> .el-dialog__body{
  29027. padding: 25px !important;
  29028. }
  29029. .confirmOpenDigCss > span{
  29030. font-size: 16px;
  29031. font-weight: 600;
  29032. color: rgba(0, 0, 0, 0.8);
  29033. }
  29034. div::-webkit-scrollbar {
  29035. width: 10px;
  29036. height: 6px;
  29037. }
  29038. .Ovh{
  29039. margin: 5px 0;
  29040. width: 4em;
  29041. -webkit-line-clamp: 2;
  29042. display: -webkit-box;
  29043. -webkit-box-orient: vertical;
  29044. overflow: hidden;
  29045. text-overflow: ellipsis;
  29046. }
  29047. .renderedFor >>> .katex {
  29048. font-size: 18px;
  29049. width: 100%;
  29050. white-space: normal;
  29051. font-family: '黑体' !important;
  29052. }
  29053. .renderedFor >>> .katex .base{
  29054. display: inline !important;
  29055. display: contents !important;
  29056. }
  29057. .renderedFor>>> .katex .base .cjk_fallback{
  29058. white-space: normal !important;
  29059. display: inline !important;
  29060. }
  29061. .notop >>> .vjs-fluid{
  29062. padding-top: 0 !important;
  29063. }
  29064. </style>