studyStudent.vue 1.0 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- ai模式 -->
  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
  73. class="courseTitle"
  74. :style="{ margin: tcid && inviteCode && '10px auto 0px' }"
  75. >
  76. <div
  77. style="
  78. max-width: calc(100% - 40px);
  79. width: auto;
  80. white-space: nowrap;
  81. overflow: hidden;
  82. text-overflow: ellipsis;
  83. word-break: break-word;
  84. display: block;
  85. "
  86. >
  87. <el-tooltip
  88. effect="light"
  89. :content="courseDetail.title"
  90. placement="top"
  91. >
  92. <div class="ctitle">
  93. {{ courseDetail.title }}
  94. </div>
  95. </el-tooltip>
  96. </div>
  97. <el-tooltip effect="light" :content="lang.ssCollapse" placement="top">
  98. <div class="mlImg" @click="setContent2(false)">
  99. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  100. </div>
  101. </el-tooltip>
  102. </div>
  103. <div
  104. class="inviteBox"
  105. v-if="tcid && inviteCode"
  106. style="padding: 0 0 8px 0"
  107. >
  108. <div>
  109. <span>{{ lang.ssInviteCodeLabel }}{{ Code2 ? Code2 + inviteCode : inviteCode }}</span>
  110. </div>
  111. </div>
  112. </div>
  113. <div class="cru_selectBox">
  114. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  115. <div class="stageChild" :class="{ navActive: item.isOpen }">
  116. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  117. <div
  118. class="navItem"
  119. :class="{
  120. openTaskActive:
  121. navIndex == taskCount &&
  122. nav.id == navId &&
  123. stageIndex == courseType
  124. }"
  125. >
  126. <div v-if="nav.tool[0].tool != undefined">
  127. <div
  128. class="closeTri1"
  129. v-if="
  130. navIndex == taskCount &&
  131. nav.id == navId &&
  132. stageIndex == courseType
  133. "
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img
  137. :style="{
  138. transform: nav.isOpen
  139. ? 'rotate(0deg)'
  140. : 'rotate(270deg)'
  141. }"
  142. src="../../assets/icon/newIcons/bDown2.png"
  143. alt
  144. />
  145. </div>
  146. <div
  147. class="closeTri1"
  148. v-else
  149. @click="openTask(stageIndex, navIndex, nav.id)"
  150. >
  151. <img
  152. :style="{
  153. transform: nav.isOpen
  154. ? 'rotate(90deg)'
  155. : 'rotate(0deg)'
  156. }"
  157. src="../../assets/icon/newIcons/right.png"
  158. alt
  159. />
  160. </div>
  161. </div>
  162. <div v-else class="noToolBlue"></div>
  163. <div
  164. @click="openTask(stageIndex, navIndex, nav.id)"
  165. class="navItemList"
  166. :class="{
  167. isItemList:
  168. navIndex == taskCount &&
  169. nav.id == navId &&
  170. stageIndex == courseType
  171. }"
  172. >
  173. <div>{{ lang.ssTaskNum.replace(/\*/g, (navIndex + 1)) }}</div>
  174. <el-tooltip
  175. effect="light"
  176. :content="nav.taskName"
  177. placement="top"
  178. >
  179. <div
  180. :style="{
  181. width:
  182. IsLookOpen && !nav.isLook
  183. ? 'calc(100% - 75px)'
  184. : 'auto'
  185. }"
  186. >
  187. {{ nav.taskName }}
  188. </div>
  189. </el-tooltip>
  190. </div>
  191. <div class="lockTaskIcon">
  192. <img
  193. src="../../assets/lock.png"
  194. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  195. courseDetail.course_teacher.indexOf(userid) ==-1"
  196. alt=""
  197. />
  198. </div>
  199. </div>
  200. <div
  201. v-if="nav.tool[0].tool != undefined"
  202. class="toolChild"
  203. :class="{ toolActive: nav.isOpen }"
  204. >
  205. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  206. <div
  207. class="gjCss"
  208. :class="{
  209. isGjCss: t.isTool
  210. }"
  211. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  212. >
  213. <div>{{ lang.ssToolNum.replace(/\*/g, (toolIndex2 + 1)) }}</div>
  214. <div v-if="t.tool == 58">{{ lang.ssSimulateDrive }}</div>
  215. <div v-if="t.tool == 59">{{ lang.ssPathSearch }}</div>
  216. <div v-if="t.tool == 60">{{ lang.ssDeepLearning }}</div>
  217. <div v-if="t.tool == 10">{{ lang.ssCountdown }}</div>
  218. <div v-if="t.tool == 65">{{ lang.ssPickPerson }}</div>
  219. <div v-if="t.tool == 7">{{ lang.ssMindGrid }}</div>
  220. <div v-if="t.tool == 1">{{ lang.ssWhiteboard }}</div>
  221. <div v-if="t.tool == 52">{{ lang.ssDocument }}</div>
  222. <div v-if="t.tool == 3">{{ lang.ssMindMap }}</div>
  223. <div v-if="t.tool == 48">{{ lang.ssTable }}</div>
  224. <div v-if="t.tool == 49">{{ lang.ssStudentGroup }}</div>
  225. <div v-if="t.tool == 4">{{ lang.ssSurvey }}</div>
  226. <div v-if="t.tool == 45">{{ lang.ssChoice }}</div>
  227. <div v-if="t.tool == 15">{{ lang.ssQa }}</div>
  228. <div v-if="t.tool == 16">{{ lang.ssHomework }}</div>
  229. <div v-if="t.tool == 50">{{ lang.ssBatchUpload }}</div>
  230. <div v-if="t.tool == 41">{{ lang.ssMatch }}</div>
  231. <div v-if="t.tool == 47">{{ lang.ssSort }}</div>
  232. <div v-if="t.tool == 40">{{ lang.ssPersonalEval }}</div>
  233. <div v-if="t.tool == 18">{{ lang.ssTraining }}</div>
  234. <div v-if="t.tool == 21">{{ lang.ssAiotBlockly }}</div>
  235. <div v-if="t.tool == 23">{{ lang.ssAiPython }}</div>
  236. <div v-if="t.tool == 24">{{ lang.ssAiBlockly }}</div>
  237. <div v-if="t.tool == 32">{{ lang.ssCodeEdit }}</div>
  238. <div v-if="t.tool == 57">{{ lang.ssCocoPi }}</div>
  239. <div v-if="t.tool == 63">{{ lang.ssTurtle }}</div>
  240. <div v-if="t.tool == 28">{{ lang.ssTranslate }}</div>
  241. <div v-if="t.tool == 31">{{ lang.ssDigitalBoard }}</div>
  242. <div v-if="t.tool == 39">{{ lang.ssGeogebra }}</div>
  243. <div v-if="t.tool == 66">{{ lang.ssFormula }}</div>
  244. <div v-if="t.tool == 67">{{ lang.ssMolecule }}</div>
  245. <div v-if="t.tool == 68">{{ lang.ssTimeline }}</div>
  246. <div v-if="t.tool == 69">{{ lang.ssEnglishWrite }}</div>
  247. <div v-if="t.tool == 70">{{ lang.ssEnglishSpeak }}</div>
  248. <div v-if="t.tool == 25">{{ lang.ssGoalManage }}</div>
  249. <div v-if="t.tool == 26">{{ lang.ssCourseDesign }}</div>
  250. <div v-if="t.tool == 62">{{ lang.ssInteractiveVideo }}</div>
  251. <div v-if="t.tool == 71">{{ lang.ssAiAgent }}</div>
  252. <div v-if="t.tool == 72">{{ lang.ssAppCenter }}</div>
  253. </div>
  254. </div>
  255. </div>
  256. </div>
  257. </div>
  258. </div>
  259. </div>
  260. </div>
  261. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  262. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  263. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  264. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  265. <div>{{ lang.ssTaskLabel.replace(/\*/g, (taskCount + 1)) }}</div>
  266. <el-tooltip
  267. effect="light"
  268. :content="
  269. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  270. "
  271. placement="top"
  272. >
  273. <div>
  274. {{
  275. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  276. .task
  277. }}
  278. </div>
  279. </el-tooltip>
  280. </div>
  281. <div
  282. class="btnAll"
  283. v-show="
  284. (!orgArray.includes(org) && !oidArray.includes(oid))
  285. "
  286. >
  287. <div class="btnLeft">
  288. <el-tooltip effect="light" :content="lang.ssRefresh" placement="top">
  289. <div class="reBtnIcon" @click="refreshCourse">
  290. <span>{{ lang.ssRefresh }}</span>
  291. </div>
  292. </el-tooltip>
  293. <el-tooltip effect="light" :content="lang.ssComment" placement="top">
  294. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  295. <span>{{ lang.ssComment }}</span>
  296. </div>
  297. </el-tooltip>
  298. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  299. <el-tooltip effect="light" :content="lang.ssRecord" placement="top">
  300. <div class="vedioIcon" @click="startRecording">
  301. <span>{{ lang.ssRecord }}</span>
  302. </div>
  303. </el-tooltip>
  304. </div>
  305. <div v-else-if="tType == 1 || tType == 4">
  306. <el-tooltip effect="light" :content="lang.ssDownload" placement="top">
  307. <div class="vedioIcon1" @click="stopRecording">
  308. <span>{{ lang.ssDownload }}</span>
  309. </div>
  310. </el-tooltip>
  311. </div>
  312. </div>
  313. <div class="btnRight">
  314. <div
  315. class="last"
  316. @click="nextOrpreSteps(0)"
  317. v-if="!(IsFollow && tType == 2)"
  318. @mouseover="isHovered = true"
  319. @mouseout="isHovered = false"
  320. >
  321. <div class="lastImg">
  322. <img
  323. :src="
  324. isHovered
  325. ? require('../../assets/icon/newIcons/whiteLast.png')
  326. : require('../../assets/icon/newIcons/last.png')
  327. "
  328. alt=""
  329. />
  330. </div>
  331. <div class="lastText">{{ lang.ssPrevious }}</div>
  332. </div>
  333. <div
  334. class="last"
  335. @click="nextOrpreSteps(1)"
  336. v-if="!(IsFollow && tType == 2)"
  337. @mouseover="isHovered1 = true"
  338. @mouseout="isHovered1 = false"
  339. >
  340. <div class="lastText">{{ lang.ssNext }}</div>
  341. <div class="lastImg">
  342. <img
  343. :src="
  344. isHovered1
  345. ? require('../../assets/icon/newIcons/whiteNext.png')
  346. : require('../../assets/icon/newIcons/next.png')
  347. "
  348. alt=""
  349. />
  350. </div>
  351. </div>
  352. <div
  353. class="last"
  354. @click="juriVisible = true"
  355. v-if="tType == 1"
  356. @mouseover="isHovered2 = true"
  357. @mouseout="isHovered2 = false"
  358. >
  359. <div class="lastImg">
  360. <img
  361. :src="
  362. isHovered2
  363. ? require('../../assets/icon/newIcons/whiteLock.png')
  364. : require('../../assets/icon/newIcons/lock.png')
  365. "
  366. alt=""
  367. />
  368. </div>
  369. <div class="lastText">{{ lang.ssPermission }}</div>
  370. </div>
  371. <div
  372. class="returnBtn1 returnIcon"
  373. @click.stop="
  374. goTo(
  375. '/courseDetail?userid=' +
  376. userid +
  377. '&oid=' +
  378. oid +
  379. '&org=' +
  380. org +
  381. '&cid=' +
  382. classId +
  383. '&courseId=' +
  384. id +
  385. '&tType=' +
  386. tType +
  387. '&screenType=' +
  388. screenType
  389. )
  390. "
  391. >
  392. <div class="lastImg">
  393. <img src="../../assets/icon/newIcon/return.png" alt="" />
  394. </div>
  395. <div class="lastText" style="color: #000">{{ lang.ssReturn }}</div>
  396. </div>
  397. </div>
  398. <!-- <div
  399. class="returnBtn lockIcon"
  400. @click="juriVisible = true"
  401. v-if="tType == 1"
  402. >
  403. {{ lang.ssPermission }}
  404. </div>
  405. <div
  406. class="returnBtn vedioIcon"
  407. @click="startRecording"
  408. v-if="!videoStart && (tType == 1 || tType == 4)"
  409. >
  410. {{ lang.ssRecord }}
  411. </div>
  412. <div
  413. class="returnBtn"
  414. @click="stopRecording"
  415. v-else-if="tType == 1 || tType == 4"
  416. style="background: #ee5255"
  417. >
  418. {{ lang.ssDownload }}
  419. </div>
  420. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  421. {{ lang.ssComment }}
  422. </div>
  423. <div
  424. class="returnBtn"
  425. @click="nextOrpreSteps(0)"
  426. v-if="!(IsFollow && tType == 2)"
  427. >
  428. {{ lang.ssPrevious }}
  429. </div>
  430. <div
  431. class="returnBtn"
  432. @click="nextOrpreSteps(1)"
  433. v-if="!(IsFollow && tType == 2)"
  434. >
  435. {{ lang.ssNext }}
  436. </div>
  437. <div class="returnBtn" @click="refreshCourse">{{ lang.ssRefresh }}</div>
  438. <div
  439. class="returnBtn returnIcon"
  440. @click.stop="
  441. goTo(
  442. '/courseDetail?userid=' +
  443. userid +
  444. '&oid=' +
  445. oid +
  446. '&org=' +
  447. org +
  448. '&cid=' +
  449. classId +
  450. '&courseId=' +
  451. id +
  452. '&tType=' +
  453. tType +
  454. '&screenType=' +
  455. screenType
  456. )
  457. "
  458. >
  459. {{ lang.ssReturn }}
  460. </div> -->
  461. </div>
  462. </div>
  463. <div
  464. class="isNoMessage"
  465. v-if="
  466. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  467. .chapterData.length == 0 &&
  468. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  469. .toolChoose[0].tool.length == 0 &&
  470. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  471. .taskDetail == '' &&
  472. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  473. .eList &&
  474. !(
  475. courseDetail.userid == userid ||
  476. (courseDetail.course_teacher &&
  477. courseDetail.course_teacher.indexOf(userid) != -1)
  478. )
  479. "
  480. >
  481. <img src="../../assets/icon/isNoMessage.png" alt />
  482. </div>
  483. <div class="study_top" :class="{ pzClass: pzDialog }">
  484. <div
  485. class="vedioBox"
  486. v-if="
  487. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  488. .taskDetail != '' ||
  489. vChapterData[taskCount].length > 0 ||
  490. fileC[taskCount].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  491. "
  492. style="border-radius: 0 0 20px 20px"
  493. >
  494. <div
  495. class="taskBox"
  496. v-if="
  497. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  498. .taskDetail != ''
  499. "
  500. >
  501. <div
  502. style="
  503. display: flex;
  504. flex-wrap: nowrap;
  505. flex-direction: column;
  506. position: relative;
  507. "
  508. class="renderedFor"
  509. >
  510. <div
  511. style="
  512. padding: 15px 0;
  513. line-height: 29px;
  514. font-size: 18px;
  515. color: #0e1e33;
  516. "
  517. class="cont"
  518. v-if="
  519. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  520. .taskDetail != ''
  521. "
  522. v-html="
  523. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  524. .taskDetail
  525. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  526. taskCount
  527. ].taskDetail
  528. : lang.ssNoDesc
  529. "
  530. ></div>
  531. </div>
  532. </div>
  533. <div
  534. class="student_head"
  535. v-if="
  536. vChapterData[taskCount].length > 0 ||
  537. fileC[taskCount].length > 0
  538. "
  539. >
  540. <div
  541. class="vedioTaskBox"
  542. v-loading="downLoading || showType == 7"
  543. >
  544. <div
  545. :class="
  546. contentDialog == false
  547. ? 'box_course isContentCss'
  548. : 'box_course'
  549. "
  550. v-if="
  551. vChapterData.length > 0 &&
  552. vChapterData[taskCount] &&
  553. showType !== ''
  554. "
  555. >
  556. <div class="wheel" style="height: auto" v-if="showType === 0">
  557. <div
  558. class="workd_media"
  559. style="height: 650px; width: calc(100% - 50px)"
  560. >
  561. <video-player
  562. class="video-player vjs-custom-skin notop"
  563. :class="contentDialog == false ? 'isAllWidth' : ''"
  564. :playsinline="true"
  565. :options="playerO[taskCount]"
  566. @play="onPlayerPlay($event)"
  567. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  568. ></video-player>
  569. </div>
  570. </div>
  571. <div
  572. class="wheel"
  573. v-if="showType == 1"
  574. style="
  575. box-shadow: 0 0 6px 1px #f2f2f2;
  576. width: 95%;
  577. margin: 0 auto;
  578. background: #f1f1f1;
  579. "
  580. >
  581. <div class="title">{{ lang.ssViewDoc }}</div>
  582. <el-form class="textBox">
  583. <el-form-item class="textTitle">
  584. <div style="font-size: 22px">
  585. {{ text.name }}
  586. </div>
  587. </el-form-item>
  588. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  589. <div v-html="text.url" class="textContent cont"></div>
  590. </el-form>
  591. </div>
  592. <div
  593. class="wheel"
  594. v-if="
  595. pptImgUrl1.indexOf(
  596. 'https://view.officeapps.live.com/op/view.aspx?src='
  597. ) != -1 && showType == 2
  598. "
  599. style="width: 95%; margin: 0 auto"
  600. >
  601. <iframe
  602. style="width: 100%; height: 100%; border: none"
  603. :src="pptImgUrl1"
  604. ></iframe>
  605. </div>
  606. <div
  607. class="wheel"
  608. v-else-if="showType == 2"
  609. style="width: 95%; margin: 0 auto"
  610. >
  611. <iframe
  612. style="width: 100%; height: 100%; border: none"
  613. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  614. :key="diffKey"
  615. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  616. :src="pptImgUrl1"
  617. ></iframe>
  618. <iframe
  619. style="width: 100%; height: 100%; border: none"
  620. security="restricted"
  621. v-else
  622. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  623. :src="pptImgUrl1"
  624. ></iframe>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="showType === 16"
  629. style="width: 95%; margin: 0 auto"
  630. >
  631. <iframe
  632. style="width: 100%; height: 100%; border: none"
  633. :src="pptImgUrl1"
  634. ></iframe>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType == 3"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <pdf
  642. :pdfUrl="pptImgUrl1"
  643. style="width: 100%; height: 100%; overflow: auto"
  644. ></pdf>
  645. </div>
  646. <div
  647. class="wheel"
  648. v-if="showType == 4"
  649. style="width: 95%; margin: 0 auto"
  650. >
  651. <el-image
  652. :src="pptImgUrl1"
  653. fit="contain"
  654. style="width: 100%; height: 100%; cursor: pointer"
  655. @click="previewImg(pptImgUrl1)"
  656. ></el-image>
  657. </div>
  658. </div>
  659. <div
  660. class="pButton"
  661. style="position: absolute; right: 20px; top: 0; z-index: 998"
  662. v-if="!contentDialog"
  663. @click="setContent(true)"
  664. >
  665. <!-- 批 -->
  666. <img
  667. src="../../assets/icon/newIcons/isLeft.png"
  668. style="width: 45px"
  669. alt=""
  670. />
  671. </div>
  672. <div
  673. v-if="contentDialog == true"
  674. :style="{
  675. width:
  676. (vChapterData[taskCount].length > 0 ||
  677. fileC[taskCount].length > 0) &&
  678. showType === ''
  679. ? 'calc(100%)'
  680. : '300px',
  681. margin:
  682. (vChapterData[taskCount].length > 0 ||
  683. fileC[taskCount].length > 0) &&
  684. showType === ''
  685. ? '0 15px'
  686. : '0 15px 0 0'
  687. }"
  688. >
  689. <div
  690. class="vedioList"
  691. v-if="
  692. vChapterData[taskCount].length > 0 ||
  693. fileC[taskCount].length > 0
  694. "
  695. style="height: 650px"
  696. >
  697. <div class="navCorOpenBox">
  698. <div class="navTitile">{{ lang.ssContentListLabel }}</div>
  699. <div class="navCorOpen" @click="setContent(false)">
  700. <img
  701. src="../../assets/icon/newIcons/isRight.png"
  702. alt=""
  703. />
  704. </div>
  705. </div>
  706. <div class="navBox">
  707. <div
  708. v-show="
  709. vChapterData[taskCount].length > 0 ||
  710. fileC[taskCount].length > 0
  711. "
  712. style="padding: 10px 0 25px 0"
  713. >
  714. <div
  715. class="vedioTimeBox"
  716. v-for="(vitem, vindex) in vChapterData[taskCount]"
  717. :key="vindex + '1'"
  718. >
  719. <div class="navListItem" v-if="vitem.type == 2">
  720. <div
  721. @click="lookVedio(vitem.url, vindex)"
  722. class="navText"
  723. :class="isClickNav == vindex ? 'isClickNav' : ''"
  724. >
  725. <span v-if="vitem.text">{{ vitem.text }}-</span
  726. >{{ vitem.name }}
  727. </div>
  728. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  729. <img
  730. src="../../assets/icon/newIcon/down.png"
  731. alt
  732. />
  733. </div> -->
  734. </div>
  735. <div class="navListItem" v-if="vitem.type == 6">
  736. <div
  737. @click="lookText(taskCount, vindex)"
  738. class="navText"
  739. :class="isClickNav == vindex ? 'isClickNav' : ''"
  740. >
  741. {{ vitem.name }}.doc
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. </div>
  753. <div
  754. class="navListItem"
  755. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  756. >
  757. <div
  758. @click="doUrl(vitem.url, vindex)"
  759. class="navText"
  760. :class="isClickNav == vindex ? 'isClickNav' : ''"
  761. >
  762. {{ vitem.title ? vitem.title : vitem.url }}
  763. </div>
  764. <div
  765. class="downIcon"
  766. @click="checkFileFull1(vitem.type, vitem)"
  767. >
  768. <img
  769. src="../../assets/icon/newIcon/allScreen.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. <div class="navListItem" v-if="vitem.type == 3">
  775. <div
  776. @click="downFile(vitem, vindex)"
  777. class="navText"
  778. :class="isClickNav == vindex ? 'isClickNav' : ''"
  779. >
  780. <span v-if="vitem.text">{{ vitem.text }}-</span
  781. >{{ vitem.name }}
  782. </div>
  783. <div
  784. class="downIcon"
  785. @click="checkFileFull1(vitem.type, vitem)"
  786. >
  787. <img
  788. src="../../assets/icon/newIcon/allScreen.png"
  789. alt
  790. />
  791. </div>
  792. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  793. <img
  794. src="../../assets/icon/newIcon/down.png"
  795. alt
  796. />
  797. </div> -->
  798. </div>
  799. <div class="navListItem" v-if="vitem.type == 12">
  800. <div class="navText" @click="downloadFile2(vitem)">
  801. <span v-if="vitem.text">{{ vitem.text }}-</span
  802. >{{ vitem.name }}
  803. </div>
  804. <div
  805. class="downIcon"
  806. @click="checkFileFull1(vitem.type, vitem)"
  807. >
  808. <img
  809. src="../../assets/icon/newIcon/allScreen.png"
  810. alt
  811. />
  812. </div>
  813. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  814. <img
  815. src="../../assets/icon/newIcon/down.png"
  816. alt
  817. />
  818. </div> -->
  819. </div>
  820. <div class="navListItem" v-if="vitem.type == 13">
  821. <div
  822. class="navText"
  823. @click="checkPhoto(vitem, vindex)"
  824. :class="isClickNav == vindex ? 'isClickNav' : ''"
  825. >
  826. {{ vitem.name }}
  827. </div>
  828. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  829. <img
  830. src="../../assets/icon/newIcon/down.png"
  831. alt
  832. />
  833. </div> -->
  834. </div>
  835. <div class="navListItem" v-if="vitem.type == 16">
  836. <div
  837. class="navText"
  838. @click="checkHtml(vitem, vindex)"
  839. :class="isClickNav == vindex ? 'isClickNav' : ''"
  840. >
  841. {{ vitem.name }}
  842. </div>
  843. <div
  844. class="downIcon"
  845. @click="checkFileFull1(vitem.type, vitem)"
  846. >
  847. <img
  848. src="../../assets/icon/newIcon/allScreen.png"
  849. alt
  850. />
  851. </div>
  852. </div>
  853. <div class="navListItem" v-if="vitem.type == 17">
  854. <div
  855. class="navText"
  856. @click="checkHtml(vitem, vindex)"
  857. :class="isClickNav == vindex ? 'isClickNav' : ''"
  858. >
  859. {{ vitem.name }}
  860. </div>
  861. <div
  862. class="downIcon"
  863. @click="checkFileFull1(vitem.type, vitem)"
  864. >
  865. <img
  866. src="../../assets/icon/newIcon/allScreen.png"
  867. alt
  868. />
  869. </div>
  870. </div>
  871. </div>
  872. <div
  873. class="fileC_box"
  874. v-if="fileC[taskCount].length > 0"
  875. >
  876. <div class="fileC_title">{{ lang.ssNoPreview }}</div>
  877. <div
  878. class="vedioTimeBox"
  879. v-for="(vitem, vindex) in fileC[taskCount]"
  880. :key="vindex + '1'"
  881. >
  882. <div class="navListItem" v-if="vitem.type == 12">
  883. <div class="navText" style="color: #acb4bf">
  884. <span v-if="vitem.text">{{ vitem.text }}-</span
  885. >{{ vitem.name }}
  886. </div>
  887. <div
  888. class="downIcon"
  889. @click="downloadFile2(vitem)"
  890. >
  891. <img
  892. src="../../assets/icon/newIcon/down.png"
  893. alt
  894. />
  895. </div>
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <div style="width: calc(100% - 315px)">
  905. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  906. <!-- <el-button
  907. type="primary"
  908. class="newButton"
  909. @click="checkFileFull(showType, pptImgUrl1)"
  910. >{{ lang.ssFullScreenView }}</el-button
  911. >
  912. <el-button
  913. type="primary"
  914. class="newButton"
  915. @click="downloadFile(pptImgUrl1)"
  916. v-if="showType != 2"
  917. >{{ lang.ssFileDownload }}</el-button
  918. > -->
  919. <el-button
  920. class="newButton"
  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. @click="openLine(pptImgUrl1)"
  929. >{{ lang.ssOpenLink }}
  930. </el-button>
  931. </div>
  932. <!-- <div
  933. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  934. v-if="showType == 1"
  935. >
  936. <el-button
  937. type="primary"
  938. class="newButton"
  939. @click="checkFileFull(showType, text)"
  940. >{{ lang.ssFullScreenView }}</el-button
  941. >
  942. </div> -->
  943. </div>
  944. </div>
  945. </div>
  946. <div class="student_body" v-resize="resize">
  947. <div
  948. class="vedioBox"
  949. :style="{
  950. borderRadius:
  951. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  952. .taskDetail == '' &&
  953. vChapterData[taskCount].length == 0 &&
  954. fileC[taskCount].length == 0
  955. ? '0 0 20px 20px'
  956. : '20px'
  957. }"
  958. v-if="
  959. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  960. .toolChoose[0].tool &&
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool.length > 0
  963. "
  964. >
  965. <div
  966. class="toolHeng2"
  967. style="position: relative"
  968. v-if="
  969. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  970. .toolChoose[0].tool &&
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool.length &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length > 0
  975. "
  976. >
  977. <div class="workNav">{{ lang.ssWorkArea }}</div>
  978. <div
  979. class="filebox"
  980. style="flex-wrap: nowrap"
  981. v-for="(tool, toolIndex) in chapInfoList[courseType]
  982. .chapterInfo[0].taskJson[taskCount].toolChoose"
  983. :key="toolIndex"
  984. >
  985. <div class="bzBox">
  986. <div class="yCss"></div>
  987. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  988. {{ lang.ssToolNum.replace(/\*/g, (toolIndex + 1)) }}
  989. </div>
  990. <div
  991. v-if="timeWorkList[toolIndex].length > 0"
  992. style="margin: 0 0 0 10px"
  993. >
  994. {{
  995. timeWorkList[toolIndex][0].time
  996. ? lang.ssTimeLabel + timeWorkList[toolIndex][0].time
  997. : ""
  998. }}
  999. </div>
  1000. </div>
  1001. <div class="toolBox">
  1002. <div>
  1003. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1004. :key="indexTool"-->
  1005. <!-- <div class="iframeBox">
  1006. <div
  1007. class="addPoint isBorder"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1012. <div
  1013. class="iframeName"
  1014. >
  1015. {{ lang.ssWhiteboard }}
  1016. </div>
  1017. <iframe
  1018. src="https://iwb.cocorobo.cn/"
  1019. ref="whiteBoard"
  1020. ></iframe>
  1021. </div>
  1022. </div>
  1023. </div>-->
  1024. <div class="noiframeBox">
  1025. <div
  1026. class="addPoint"
  1027. v-for="(tooC, toolCIndex) in tool.tool"
  1028. :key="toolCIndex"
  1029. >
  1030. <div v-if="tooC == 1">
  1031. <img
  1032. src="../../assets/icon/secondToolList/whiteBoard.png"
  1033. alt
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. />
  1036. <div style="margin: 5px 0">{{ lang.ssWhiteboard }}</div>
  1037. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1038. style="position: absolute;right: 33px;top: -30px;">
  1039. {{ lang.ssAnalyze }}
  1040. </div>
  1041. </div>
  1042. <div v-if="tooC == 3">
  1043. <img
  1044. src="../../assets/icon/secondToolList/mindMapping.png"
  1045. alt
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. />
  1048. <div style="margin: 5px 0">{{ lang.ssMindMap }}</div>
  1049. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1050. style="position: absolute;right: 33px;top: -30px;">
  1051. {{ lang.ssAnalyze }}
  1052. </div>
  1053. </div>
  1054. <div v-if="tooC == 6">
  1055. <img
  1056. src="../../assets/icon/secondToolList/doc.png"
  1057. alt
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. />
  1060. <div style="margin: 5px 0">{{ lang.ssCoDoc }}</div>
  1061. </div>
  1062. <div v-if="tooC == 7">
  1063. <img
  1064. src="../../assets/icon/secondToolList/mindNetwork.png"
  1065. alt
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. />
  1068. <div style="margin: 5px 0">{{ lang.ssMindGrid }}</div>
  1069. <!-- && worksStudent[toolIndex].length>0 -->
  1070. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1071. style="position: absolute;right: 33px;top: -30px;">
  1072. {{ lang.ssAnalyze }}
  1073. </div>
  1074. </div>
  1075. <div v-if="tooC == 8">
  1076. <img
  1077. src="../../assets/icon/secondToolList/library.png"
  1078. alt
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. />
  1081. <div style="margin: 5px 0">{{ lang.ssMaterialLib }}</div>
  1082. </div>
  1083. <div v-if="tooC == 17">
  1084. <img
  1085. src="../../assets/icon/secondToolList/library.png"
  1086. alt
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. />
  1089. <div style="margin: 5px 0">{{ lang.ssLearningMaterial }}</div>
  1090. </div>
  1091. <div v-if="tooC == 2">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../../assets/icon/secondToolList/note.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">{{ lang.ssNote }}</div>
  1098. </div>
  1099. <div v-if="tooC == 4">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/thirdToolList/ask.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">{{ lang.ssSurvey }}</div>
  1106. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1107. style="position: absolute;right: 153px;top: -30px;">
  1108. {{ lang.ssAnalyze }}
  1109. </div>
  1110. <div
  1111. class="upload_toolBtn"
  1112. v-if="tType === '1'"
  1113. @click="
  1114. openStatisticalAnalysis(
  1115. tooC,
  1116. toolIndex,
  1117. taskCount,
  1118. 45
  1119. )
  1120. "
  1121. style="position: absolute;right: 33px;top: -30px;"
  1122. >
  1123. {{ lang.ssStatisticalAnalysis }}
  1124. </div>
  1125. </div>
  1126. <div v-if="tooC == 45">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/thirdToolList/choose.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">{{ lang.ssChoice }}</div>
  1133. <div
  1134. class="upload_toolBtn"
  1135. v-if="tType == 1"
  1136. @click="
  1137. openChoseWorksDetailDialog(
  1138. tooC,
  1139. toolIndex,
  1140. taskCount,
  1141. 45
  1142. )
  1143. "
  1144. style="position: absolute;right: 33px;top: -30px;"
  1145. >
  1146. {{ lang.ssAnalyze }}
  1147. </div>
  1148. </div>
  1149. <!-- <div v-if="tooC == 5">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/thirdToolList/score.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">{{ lang.ssRatingScale }}</div>
  1156. </div> -->
  1157. <div v-if="tooC == 10">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/time.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">{{ lang.ssCountdown }}</div>
  1164. </div>
  1165. <div v-if="tooC == 15">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/answer.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">{{ lang.ssQa }}</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1"
  1173. :style="{ right: lang.lang == 'com' ? '220px' : '135px' }"
  1174. @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1175. style="position: absolute;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1176. {{ lang.ssAnalyze }}
  1177. </div>
  1178. </div>
  1179. <div v-if="tooC == 26">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/thirdToolList/courseDesign.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">{{ lang.ssCourseDesign }}</div>
  1186. </div>
  1187. <div v-if="tooC == 18">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">{{ lang.ssTrainingServer }}</div>
  1194. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1195. style="position: absolute;right: 33px;top: -30px;">
  1196. {{ lang.ssAnalyze }}
  1197. </div>
  1198. </div>
  1199. <div v-if="tooC == 16">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/thirdToolList/work.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">{{ lang.ssHomework }}</div>
  1206. </div>
  1207. <div v-if="tooC == 50">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/thirdToolList/plwork.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">{{ lang.ssBatchUpload }}</div>
  1214. </div>
  1215. <div v-if="tooC == 21">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/program.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">{{ lang.ssAiotBlockly }}</div>
  1222. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1223. style="position: absolute;right: 33px;top: -30px;">
  1224. {{ lang.ssAnalyze }}
  1225. </div>
  1226. </div>
  1227. <!-- <div v-if="tooC == 22">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/program.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">{{ lang.ssAiExperience }}</div>
  1234. </div> -->
  1235. <div v-if="tooC == 23">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">{{ lang.ssAiPython }}</div>
  1242. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  1243. style="position: absolute;right: 33px;top: -30px;">
  1244. {{ lang.ssAnalyze }}
  1245. </div>
  1246. </div>
  1247. <div v-if="tooC == 24">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/fourthToolList/AIprogram.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">{{ lang.ssAiBlockly }}</div>
  1254. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1255. style="position: absolute;right: 33px;top: -30px;">
  1256. {{ lang.ssAnalyze }}
  1257. </div>
  1258. </div>
  1259. <div v-if="tooC == 25">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/thirdToolList/evalua.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">{{ lang.ssGoalManage }}</div>
  1266. </div>
  1267. <div v-if="tooC == 31">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/secondToolList/networkPanel.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">{{ lang.ssMathBoard }}</div>
  1274. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1275. style="position: absolute;right: 33px;top: -30px;">
  1276. {{ lang.ssAnalyze }}
  1277. </div>
  1278. </div>
  1279. <div v-if="tooC == 28">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/secondToolList/translation.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">{{ lang.ssTranslate }}</div>
  1286. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1287. style="position: absolute;right: 33px;top: -30px;">
  1288. {{ lang.ssAnalyze }}
  1289. </div>
  1290. </div>
  1291. <div v-if="tooC == 37">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/mohe.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">{{ lang.ssMohe }}</div>
  1298. </div>
  1299. <div v-if="tooC == 38">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/24game.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">{{ lang.ss24Game }}</div>
  1306. </div>
  1307. <div v-if="tooC == 39">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/GeoGebra.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">{{ lang.ssGeogebra }}</div>
  1314. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1315. style="position: absolute;right: 33px;top: -30px;">
  1316. {{ lang.ssAnalyze }}
  1317. </div>
  1318. </div>
  1319. <div v-if="tooC == 32">
  1320. <img
  1321. @click="addTools(tooC, toolIndex, taskCount)"
  1322. src="../../assets/icon/thirdToolList/code.png"
  1323. alt
  1324. />
  1325. <div style="margin: 5px 0">{{ lang.ssCodeEdit }}</div>
  1326. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1327. style="position: absolute;right: 153px;top: -42px;">
  1328. {{ lang.ssAnalyze }}
  1329. </div>
  1330. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1331. style="position: absolute;left: 110px;bottom: 30px;">
  1332. {{ lang.ssUpFile }}
  1333. <input type="file" accept="*" style="display: none"
  1334. @change="beforeUpload1($event, 7, toolIndex)" />
  1335. </div> -->
  1336. </div>
  1337. <div v-if="tooC == 40">
  1338. <img
  1339. @click="addTools(tooC, toolIndex, taskCount)"
  1340. src="../../assets/icon/secondToolList/eval.png"
  1341. alt
  1342. />
  1343. <div style="margin: 5px 0">{{ lang.ssPersonalEval }}</div>
  1344. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1345. style="position: absolute;right: 33px;top: -30px;">
  1346. {{ lang.ssAnalyze }}
  1347. </div>
  1348. </div>
  1349. <div v-if="tooC == 41">
  1350. <img
  1351. @click="addTools(tooC, toolIndex, taskCount)"
  1352. src="../../assets/icon/thirdToolList/select.png"
  1353. alt
  1354. />
  1355. <div style="margin: 5px 0">{{ lang.ssMatch }}</div>
  1356. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1357. style="position: absolute;right: 33px;top: -30px;">
  1358. {{ lang.ssAnalyze }}
  1359. </div>
  1360. </div>
  1361. <div v-if="tooC == 44">
  1362. <img
  1363. @click="addTools(tooC, toolIndex, taskCount)"
  1364. src="../../assets/icon/thirdToolList/hanClass.png"
  1365. alt
  1366. />
  1367. <div style="margin: 5px 0">{{ lang.ssHanziPalace }}</div>
  1368. </div>
  1369. <div v-if="tooC == 47">
  1370. <img
  1371. @click="addTools(tooC, toolIndex, taskCount)"
  1372. src="../../assets/icon/fourthToolList/conSentences.png"
  1373. alt
  1374. />
  1375. <div style="margin: 5px 0">{{ lang.ssSort }}</div>
  1376. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1377. style="position: absolute;right: 33px;top: -30px;">
  1378. {{ lang.ssAnalyze }}
  1379. </div>
  1380. </div>
  1381. <div v-if="tooC == 48">
  1382. <img
  1383. @click="addTools(tooC, toolIndex, taskCount)"
  1384. src="../../assets/icon/fourthToolList/table.png"
  1385. alt
  1386. />
  1387. <div style="margin: 5px 0">{{ lang.ssTable }}</div>
  1388. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1389. style="position: absolute;right: 33px;top: -30px;">
  1390. {{ lang.ssAnalyze }}
  1391. </div>
  1392. </div>
  1393. <div v-if="tooC == 52">
  1394. <img
  1395. @click="addTools(tooC, toolIndex, taskCount)"
  1396. src="../../assets/icon/fourthToolList/text.png"
  1397. alt
  1398. />
  1399. <div style="margin: 5px 0">{{ lang.ssDocument }}</div>
  1400. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1401. style="position: absolute;right: 33px;top: -30px;">
  1402. {{ lang.ssAnalyze }}
  1403. </div>
  1404. </div>
  1405. <div v-if="tooC == 49">
  1406. <img
  1407. @click="addTools(tooC, toolIndex, taskCount)"
  1408. src="../../assets/icon/fourthToolList/group.png"
  1409. alt
  1410. />
  1411. <div style="margin: 5px 0">{{ lang.ssStudentGroup }}</div>
  1412. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1413. style="position: absolute;right: 33px;top: -30px;">
  1414. {{ lang.ssAnalyze }}
  1415. </div>
  1416. </div>
  1417. <div v-if="tooC == 57">
  1418. <img
  1419. @click="addTools(tooC, toolIndex, taskCount)"
  1420. src="../../assets/icon/fourthToolList/cocopi.png"
  1421. alt
  1422. />
  1423. <div style="margin: 5px 0">{{ lang.ssCocoPi }}</div>
  1424. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1425. style="position: absolute;right: 33px;top: -30px;">
  1426. {{ lang.ssAnalyze }}
  1427. </div>
  1428. </div>
  1429. <div v-if="tooC == 58">
  1430. <img
  1431. @click="addTools(tooC, toolIndex, taskCount)"
  1432. src="../../assets/icon/fourthToolList/car.png"
  1433. alt
  1434. />
  1435. <div style="margin: 5px 0">{{ lang.ssSimulateDrive }}</div>
  1436. </div>
  1437. <div v-if="tooC == 59">
  1438. <img
  1439. @click="addTools(tooC, toolIndex, taskCount)"
  1440. src="../../assets/icon/fourthToolList/lineSearch.png"
  1441. alt
  1442. />
  1443. <div style="margin: 5px 0">{{ lang.ssPathSearch }}</div>
  1444. </div>
  1445. <div v-if="tooC == 60">
  1446. <img
  1447. @click="addTools(tooC, toolIndex, taskCount)"
  1448. src="../../assets/icon/fourthToolList/deepLearning.png"
  1449. alt
  1450. />
  1451. <div style="margin: 5px 0">{{ lang.ssDeepLearning }}</div>
  1452. </div>
  1453. <div v-if="tooC == 61">
  1454. <img
  1455. @click="addTools(tooC, toolIndex, taskCount)"
  1456. src="../../assets/icon/fourthToolList/allHistory.png"
  1457. alt
  1458. />
  1459. <div style="margin: 5px 0">{{ lang.ssAllHistory }}</div>
  1460. </div>
  1461. <div v-if="tooC == 62">
  1462. <img
  1463. @click="addTools(tooC, toolIndex, taskCount)"
  1464. src="../../assets/icon/fourthToolList/interVideo.png"
  1465. alt
  1466. />
  1467. <div style="margin: 5px 0">{{ lang.ssInteractiveVideo }}</div>
  1468. </div>
  1469. <div v-if="tooC == 63">
  1470. <img
  1471. @click="addTools(tooC, toolIndex, taskCount)"
  1472. src="../../assets/icon/fourthToolList/Wood.png"
  1473. alt
  1474. />
  1475. <div style="margin: 5px 0">{{ lang.ssTurtle }}</div>
  1476. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1477. style="position: absolute;right: 33px;top: -30px;">
  1478. {{ lang.ssAnalyze }}
  1479. </div>
  1480. </div>
  1481. <div v-if="tooC == 71">
  1482. <img
  1483. @click="addTools(tooC, toolIndex, taskCount)"
  1484. src="../../assets/icon/fourthToolList/chatgpt.png"
  1485. alt
  1486. />
  1487. <div style="margin: 5px 0">{{ lang.ssAiAgent }}</div>
  1488. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1489. style="position: absolute;right: 33px;top: -30px;">
  1490. {{ lang.ssAnalyze }}
  1491. </div>
  1492. </div>
  1493. <div v-if="tooC == 72">
  1494. <img
  1495. style="height: 85px;object-fit: cover;"
  1496. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. :src="tool.appJson.json.icon"
  1499. alt
  1500. />
  1501. <img
  1502. v-else
  1503. @click="addTools(tooC, toolIndex, taskCount)"
  1504. src="../../assets/icon/firstToolList/appStore.png"
  1505. alt
  1506. />
  1507. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter" placement="top" effect="dark">
  1508. <!-- content to trigger tooltip here -->
  1509. <div class="Ovh">
  1510. {{tool.appJson && tool.appJson.name ? tool.appJson.name : lang.ssAppCenter}}
  1511. </div>
  1512. </el-tooltip>
  1513. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1514. style="position: absolute;right: 33px;top: -30px;">
  1515. {{ lang.ssAnalyze }}
  1516. </div>
  1517. </div>
  1518. <div v-if="tooC == 65">
  1519. <img
  1520. @click="addTools(tooC, toolIndex, taskCount)"
  1521. src="../../assets/icon/firstToolList/pickPeople.png"
  1522. alt
  1523. />
  1524. <div style="margin: 5px 0">{{ lang.ssPickPerson }}</div>
  1525. </div>
  1526. <div v-if="tooC == 66">
  1527. <img
  1528. @click="addTools(tooC, toolIndex, taskCount)"
  1529. src="../../assets/icon/secondToolList/formulaEdi.png"
  1530. alt
  1531. />
  1532. <div style="margin: 5px 0">{{ lang.ssFormula }}</div>
  1533. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,66)"
  1534. style="position: absolute;right: 33px;top: -30px;">
  1535. {{ lang.ssAnalyze }}
  1536. </div>
  1537. </div>
  1538. <div v-if="tooC == 67">
  1539. <img
  1540. @click="addTools(tooC, toolIndex, taskCount)"
  1541. src="../../assets/icon/secondToolList/molStr.png"
  1542. alt
  1543. />
  1544. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  1545. </div>
  1546. <div v-if="tooC == 68">
  1547. <img
  1548. @click="addTools(tooC, toolIndex, taskCount)"
  1549. src="../../assets/icon/secondToolList/timeAxis.png"
  1550. alt
  1551. />
  1552. <div style="margin: 5px 0">{{ lang.ssTimeline }}</div>
  1553. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1554. style="position: absolute;right: 33px;top: -30px;">
  1555. {{ lang.ssAnalyze }}
  1556. </div> -->
  1557. </div>
  1558. <div v-if="tooC == 69">
  1559. <img
  1560. @click="addTools(tooC, toolIndex, taskCount)"
  1561. src="../../assets/icon/secondToolList/english.png"
  1562. alt
  1563. />
  1564. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  1565. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1566. style="position: absolute;right: 33px;top: -30px;">
  1567. {{ lang.ssAnalyze }}
  1568. </div>
  1569. </div>
  1570. <div v-if="tooC == 70">
  1571. <img
  1572. @click="addTools(tooC, toolIndex, taskCount)"
  1573. src="../../assets/icon/thirdToolList/englishVoice.png"
  1574. alt
  1575. />
  1576. <div style="margin: 5px 0">{{ lang.ssEnglishSpeak }}</div>
  1577. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1578. style="position: absolute;right: 33px;top: -30px;">
  1579. {{ lang.ssAnalyze }}
  1580. </div>
  1581. </div>
  1582. </div>
  1583. </div>
  1584. </div>
  1585. <div
  1586. class="tooldetail renderedFor"
  1587. v-if="tool.toolDetail != ''"
  1588. :class="{
  1589. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1590. }"
  1591. >
  1592. <!-- <div class="toolTitle">工具描述</div> -->
  1593. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1594. <div
  1595. style="height:100%;"
  1596. v-html="tool.toolDetail"
  1597. v-if="toolDetailIndex != toolIndex"
  1598. ></div>
  1599. <div v-else @click.stop="" style="height:100%;">
  1600. <textarea
  1601. @change="
  1602. () => {
  1603. $forceUpdate();
  1604. }
  1605. "
  1606. class="checkTextArea"
  1607. rows="3"
  1608. v-autoHeight="70"
  1609. type="text"
  1610. :placeholder="lang.ssEnterTaskDesc"
  1611. v-model="updateToolDetailInner"
  1612. ></textarea>
  1613. </div>
  1614. </div>
  1615. <el-button
  1616. type="primary"
  1617. v-if="tool.tool[0] == 32"
  1618. style="position: absolute; right: 30px; top: -45px"
  1619. @click="addImg($event)"
  1620. >{{ lang.ssUploadHomework }}<input
  1621. type="file"
  1622. accept="*"
  1623. style="display: none"
  1624. @change="beforeUpload1($event, 7, toolIndex)"
  1625. /></el-button>
  1626. <el-button
  1627. type="primary"
  1628. v-if="tool.tool[0] == 15"
  1629. style="position: absolute; right: 30px; top: -45px"
  1630. @click="openWordCloud(toolIndex)"
  1631. >{{ lang.ssGenerateWordCloud }}</el-button
  1632. >
  1633. <el-button
  1634. type="primary"
  1635. v-if="
  1636. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1637. "
  1638. style="position: absolute; right: 30px; top: -45px"
  1639. @click="uploadWorks(toolIndex)"
  1640. >{{ lang.ssExportHomework }}</el-button
  1641. >
  1642. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1643. position: absolute;
  1644. right: 30px;
  1645. transform: translateY(-130%);
  1646. " @click="addImg($event)">{{lang.ssUploadHomework}}<input type="file" accept="*" style="display: none"
  1647. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1648. </div>
  1649. <div
  1650. v-if="
  1651. tType &&
  1652. tType == 2 &&
  1653. !sIsOpen &&
  1654. tool.tool.indexOf(16) != -1
  1655. "
  1656. class="worksBox"
  1657. >
  1658. <div
  1659. class="zuoyeYulan"
  1660. v-if="workStudent[toolIndex].length > 0"
  1661. >
  1662. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  1663. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1664. </div>
  1665. <div
  1666. class="worksDetailBox"
  1667. v-if="workStudent[toolIndex].length > 0"
  1668. >
  1669. <div
  1670. class="works"
  1671. style="
  1672. width: 200px;
  1673. height: 140px;
  1674. margin: 10px 10px 10px 0;
  1675. box-shadow: 0 0 6px 1px #dfdada;
  1676. "
  1677. v-for="(w, wIndex) in workStudent[toolIndex]"
  1678. :key="wIndex"
  1679. >
  1680. <div class="workImg" v-if="w.type == 0">
  1681. <img
  1682. :src="w.works"
  1683. @click="previewImg(w.works, w)"
  1684. alt
  1685. />
  1686. <div
  1687. class="answerScore"
  1688. v-if="w.score"
  1689. @click.stop="openScore(w)"
  1690. :class="{
  1691. rightW:
  1692. w.userid == userid || tType == 1 || tType == 4
  1693. }"
  1694. >
  1695. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  1696. </div>
  1697. <div
  1698. class="answerScore"
  1699. @click.stop="openScore(w)"
  1700. v-else-if="courseDetail.userid == userid"
  1701. :class="{
  1702. rightW:
  1703. w.userid == userid || tType == 1 || tType == 4
  1704. }"
  1705. >
  1706. {{lang.ssMarkScore}}
  1707. </div>
  1708. <div
  1709. class="stuLookScore"
  1710. v-if="
  1711. w.userid == userid ||
  1712. (tType == 1 &&
  1713. courseDetail.state == 5 &&
  1714. ((chapInfoList[courseType].chapterInfo[0]
  1715. .taskJson[taskCount].eList &&
  1716. chapInfoList[courseType].chapterInfo[0]
  1717. .taskJson[taskCount].eList.length) ||
  1718. (tool.eList && tool.eList.length)))
  1719. "
  1720. >
  1721. <el-popover
  1722. placement="top"
  1723. width="318"
  1724. trigger="hover"
  1725. >
  1726. <markScore
  1727. :loading="AIloading[toolIndex][wIndex].loading"
  1728. :markScoreVisible="markScoreVisible"
  1729. :ref="`markSco${toolIndex}${wIndex}`"
  1730. @updateLoading="updateLoading"
  1731. @updateDocSco="updateDocSco"
  1732. @refreshOther="refreshOther"
  1733. @markScoreDig="markScoreDig"
  1734. :tool="tool"
  1735. :wIndex="wIndex"
  1736. :scoCon="w"
  1737. :toolIndex="toolIndex"
  1738. :key="refreshKey"
  1739. :stage="courseType"
  1740. :task="taskCount"
  1741. :scoTit="
  1742. chapInfoList[courseType].chapterInfo[0]
  1743. .taskJson[taskCount].eList
  1744. "
  1745. >
  1746. </markScore>
  1747. <div
  1748. @click="
  1749. markScoreDig2(
  1750. w.sName,
  1751. worksStudent,
  1752. w.userid,
  1753. toolIndex,
  1754. chapInfoList[courseType].chapterInfo[0]
  1755. .taskJson[taskCount].eList,
  1756. AIloading[toolIndex][wIndex].loading,
  1757. tool
  1758. )
  1759. "
  1760. slot="reference"
  1761. >
  1762. <span v-if="AIloading[toolIndex][wIndex].sco">
  1763. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1764. </span>
  1765. <span v-else>
  1766. {{lang.ssMarkScore}}
  1767. </span>
  1768. </div>
  1769. </el-popover>
  1770. </div>
  1771. <img
  1772. class="deleteImg"
  1773. src="../../assets/deleteworks.png"
  1774. v-if="
  1775. w.userid == userid || tType == 1 || tType == 4
  1776. "
  1777. @click.stop="deleteWorks(w.wid)"
  1778. alt
  1779. />
  1780. </div>
  1781. <div class="workImg" v-if="w.type == 1">
  1782. <img :src="word" @click="openFile(w.works)" alt />
  1783. <div
  1784. class="answerScore"
  1785. v-if="w.score"
  1786. @click.stop="openScore(w)"
  1787. :class="{
  1788. rightW:
  1789. w.userid == userid || tType == 1 || tType == 4
  1790. }"
  1791. >
  1792. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  1793. </div>
  1794. <div
  1795. class="answerScore"
  1796. @click.stop="openScore(w)"
  1797. v-else-if="courseDetail.userid == userid"
  1798. :class="{
  1799. rightW:
  1800. w.userid == userid || tType == 1 || tType == 4
  1801. }"
  1802. >
  1803. {{lang.ssMarkScore}}
  1804. </div>
  1805. <div
  1806. class="stuLookScore"
  1807. v-if="
  1808. w.userid == userid ||
  1809. (tType == 1 &&
  1810. courseDetail.state == 5 &&
  1811. ((chapInfoList[courseType].chapterInfo[0]
  1812. .taskJson[taskCount].eList &&
  1813. chapInfoList[courseType].chapterInfo[0]
  1814. .taskJson[taskCount].eList.length) ||
  1815. (tool.eList && tool.eList.length)))
  1816. "
  1817. >
  1818. <el-popover
  1819. placement="top"
  1820. width="318"
  1821. trigger="hover"
  1822. >
  1823. <markScore
  1824. :loading="AIloading[toolIndex][wIndex].loading"
  1825. :markScoreVisible="markScoreVisible"
  1826. :ref="`markSco${toolIndex}${wIndex}`"
  1827. @updateLoading="updateLoading"
  1828. @updateDocSco="updateDocSco"
  1829. @refreshOther="refreshOther"
  1830. @markScoreDig="markScoreDig"
  1831. :tool="tool"
  1832. :wIndex="wIndex"
  1833. :scoCon="w"
  1834. :toolIndex="toolIndex"
  1835. :key="refreshKey"
  1836. :stage="courseType"
  1837. :task="taskCount"
  1838. :scoTit="
  1839. chapInfoList[courseType].chapterInfo[0]
  1840. .taskJson[taskCount].eList
  1841. "
  1842. >
  1843. </markScore>
  1844. <div
  1845. @click="
  1846. markScoreDig2(
  1847. w.sName,
  1848. worksStudent,
  1849. w.userid,
  1850. toolIndex,
  1851. chapInfoList[courseType].chapterInfo[0]
  1852. .taskJson[taskCount].eList,
  1853. AIloading[toolIndex][wIndex].loading,
  1854. tool
  1855. )
  1856. "
  1857. slot="reference"
  1858. >
  1859. <span v-if="AIloading[toolIndex][wIndex].sco">
  1860. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1861. </span>
  1862. <span v-else>
  1863. {{lang.ssMarkScore}}
  1864. </span>
  1865. </div>
  1866. </el-popover>
  1867. </div>
  1868. <img
  1869. class="deleteImg"
  1870. src="../../assets/deleteworks.png"
  1871. v-if="
  1872. w.userid == userid || tType == 1 || tType == 4
  1873. "
  1874. @click.stop="deleteWorks(w.wid)"
  1875. alt
  1876. />
  1877. </div>
  1878. <div class="workImg" v-if="w.type == 3">
  1879. <img
  1880. style="cursor: pointer"
  1881. :src="video"
  1882. @click="openVideo(w)"
  1883. alt
  1884. />
  1885. <div
  1886. class="answerScore"
  1887. v-if="w.score"
  1888. @click.stop="openScore(w)"
  1889. :class="{
  1890. rightW:
  1891. w.userid == userid || tType == 1 || tType == 4
  1892. }"
  1893. >
  1894. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  1895. </div>
  1896. <div
  1897. class="answerScore"
  1898. @click.stop="openScore(w)"
  1899. v-else-if="courseDetail.userid == userid"
  1900. :class="{
  1901. rightW:
  1902. w.userid == userid || tType == 1 || tType == 4
  1903. }"
  1904. >
  1905. {{lang.ssMarkScore}}
  1906. </div>
  1907. <div
  1908. class="stuLookScore"
  1909. v-if="
  1910. w.userid == userid ||
  1911. (tType == 1 &&
  1912. courseDetail.state == 5 &&
  1913. ((chapInfoList[courseType].chapterInfo[0]
  1914. .taskJson[taskCount].eList &&
  1915. chapInfoList[courseType].chapterInfo[0]
  1916. .taskJson[taskCount].eList.length) ||
  1917. (tool.eList && tool.eList.length)))
  1918. "
  1919. >
  1920. <el-popover
  1921. placement="top"
  1922. width="318"
  1923. trigger="hover"
  1924. >
  1925. <markScore
  1926. :loading="AIloading[toolIndex][wIndex].loading"
  1927. :markScoreVisible="markScoreVisible"
  1928. :ref="`markSco${toolIndex}${wIndex}`"
  1929. @updateLoading="updateLoading"
  1930. @updateDocSco="updateDocSco"
  1931. @refreshOther="refreshOther"
  1932. @markScoreDig="markScoreDig"
  1933. :tool="tool"
  1934. :wIndex="wIndex"
  1935. :scoCon="w"
  1936. :toolIndex="toolIndex"
  1937. :key="refreshKey"
  1938. :stage="courseType"
  1939. :task="taskCount"
  1940. :scoTit="
  1941. chapInfoList[courseType].chapterInfo[0]
  1942. .taskJson[taskCount].eList
  1943. "
  1944. >
  1945. </markScore>
  1946. <div
  1947. @click="
  1948. markScoreDig2(
  1949. w.sName,
  1950. worksStudent,
  1951. w.userid,
  1952. toolIndex,
  1953. chapInfoList[courseType].chapterInfo[0]
  1954. .taskJson[taskCount].eList,
  1955. AIloading[toolIndex][wIndex].loading,
  1956. tool
  1957. )
  1958. "
  1959. slot="reference"
  1960. >
  1961. <span v-if="AIloading[toolIndex][wIndex].sco">
  1962. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  1963. </span>
  1964. <span v-else>
  1965. {{lang.ssMarkScore}}
  1966. </span>
  1967. </div>
  1968. </el-popover>
  1969. </div>
  1970. <img
  1971. class="deleteImg"
  1972. src="../../assets/deleteworks.png"
  1973. v-if="
  1974. w.userid == userid || tType == 1 || tType == 4
  1975. "
  1976. @click.stop="deleteWorks(w.wid)"
  1977. alt
  1978. />
  1979. </div>
  1980. <div class="workImg" v-if="w.type == 12">
  1981. <img
  1982. style="cursor: pointer"
  1983. :src="word2"
  1984. @click="downloadFile(w.works,w.userid)"
  1985. alt
  1986. />
  1987. <div
  1988. class="answerScore"
  1989. v-if="w.score"
  1990. @click.stop="openScore(w)"
  1991. :class="{
  1992. rightW:
  1993. w.userid == userid || tType == 1 || tType == 4
  1994. }"
  1995. >
  1996. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  1997. </div>
  1998. <div
  1999. class="answerScore"
  2000. @click.stop="openScore(w)"
  2001. v-else-if="courseDetail.userid == userid"
  2002. :class="{
  2003. rightW:
  2004. w.userid == userid || tType == 1 || tType == 4
  2005. }"
  2006. >
  2007. {{lang.ssMarkScore}}
  2008. </div>
  2009. <div
  2010. class="stuLookScore"
  2011. v-if="
  2012. w.userid == userid ||
  2013. (tType == 1 &&
  2014. courseDetail.state == 5 &&
  2015. ((chapInfoList[courseType].chapterInfo[0]
  2016. .taskJson[taskCount].eList &&
  2017. chapInfoList[courseType].chapterInfo[0]
  2018. .taskJson[taskCount].eList.length) ||
  2019. (tool.eList && tool.eList.length)))
  2020. "
  2021. >
  2022. <el-popover
  2023. placement="top"
  2024. width="318"
  2025. trigger="hover"
  2026. >
  2027. <markScore
  2028. :loading="AIloading[toolIndex][wIndex].loading"
  2029. :markScoreVisible="markScoreVisible"
  2030. :ref="`markSco${toolIndex}${wIndex}`"
  2031. @updateLoading="updateLoading"
  2032. @updateDocSco="updateDocSco"
  2033. @refreshOther="refreshOther"
  2034. @markScoreDig="markScoreDig"
  2035. :tool="tool"
  2036. :wIndex="wIndex"
  2037. :scoCon="w"
  2038. :toolIndex="toolIndex"
  2039. :key="refreshKey"
  2040. :stage="courseType"
  2041. :task="taskCount"
  2042. :scoTit="
  2043. chapInfoList[courseType].chapterInfo[0]
  2044. .taskJson[taskCount].eList
  2045. "
  2046. >
  2047. </markScore>
  2048. <div
  2049. @click="
  2050. markScoreDig2(
  2051. w.sName,
  2052. worksStudent,
  2053. w.userid,
  2054. toolIndex,
  2055. chapInfoList[courseType].chapterInfo[0]
  2056. .taskJson[taskCount].eList,
  2057. AIloading[toolIndex][wIndex].loading,
  2058. tool
  2059. )
  2060. "
  2061. slot="reference"
  2062. >
  2063. <span v-if="AIloading[toolIndex][wIndex].sco">
  2064. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2065. </span>
  2066. <span v-else>
  2067. {{lang.ssMarkScore}}
  2068. </span>
  2069. </div>
  2070. </el-popover>
  2071. </div>
  2072. <img
  2073. class="deleteImg"
  2074. src="../../assets/deleteworks.png"
  2075. v-if="
  2076. w.userid == userid || tType == 1 || tType == 4
  2077. "
  2078. @click.stop="deleteWorks(w.wid)"
  2079. alt
  2080. />
  2081. </div>
  2082. <div class="worksName">
  2083. <div>{{ w.sName }}</div>
  2084. </div>
  2085. </div>
  2086. </div>
  2087. </div>
  2088. <div
  2089. v-if="
  2090. tType &&
  2091. tType == 2 &&
  2092. !sIsOpen &&
  2093. tool.tool.indexOf(32) != -1
  2094. "
  2095. class="worksBox"
  2096. >
  2097. <div
  2098. class="zuoyeYulan"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2102. </div>
  2103. <div
  2104. class="worksDetailBox"
  2105. v-if="workStudent[toolIndex].length > 0"
  2106. >
  2107. <div
  2108. class="works"
  2109. style="
  2110. width: 200px;
  2111. height: 140px;
  2112. margin: 10px 10px 10px 0;
  2113. box-shadow: 0 0 6px 1px #dfdada;
  2114. "
  2115. v-for="(w, wIndex) in workStudent[toolIndex]"
  2116. :key="wIndex"
  2117. >
  2118. <div class="workImg">
  2119. <img
  2120. :src="word2"
  2121. @click="downloadFile(w.works,w.userid)"
  2122. alt
  2123. />
  2124. <div
  2125. class="answerScore"
  2126. v-if="w.score"
  2127. @click.stop="openScore(w)"
  2128. :class="{
  2129. rightW:
  2130. w.userid == userid || tType == 1 || tType == 4
  2131. }"
  2132. >
  2133. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2134. </div>
  2135. <div
  2136. class="answerScore"
  2137. @click.stop="openScore(w)"
  2138. v-else-if="courseDetail.userid == userid"
  2139. :class="{
  2140. rightW:
  2141. w.userid == userid || tType == 1 || tType == 4
  2142. }"
  2143. >
  2144. {{lang.ssMarkScore}}
  2145. </div>
  2146. <img
  2147. class="deleteImg"
  2148. src="../../assets/deleteworks.png"
  2149. v-if="
  2150. w.userid == userid || tType == 1 || tType == 4
  2151. "
  2152. @click.stop="deleteWorks(w.wid)"
  2153. alt
  2154. />
  2155. </div>
  2156. <div class="worksName">
  2157. <div>{{ w.sName }}</div>
  2158. </div>
  2159. </div>
  2160. </div>
  2161. </div>
  2162. <div
  2163. v-if="
  2164. tType &&
  2165. tType == 2 &&
  2166. !sIsOpen &&
  2167. tool.tool.indexOf(57) != -1
  2168. "
  2169. class="worksBox"
  2170. >
  2171. <div
  2172. class="zuoyeYulan"
  2173. v-if="workStudent[toolIndex].length > 0"
  2174. >
  2175. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2176. </div>
  2177. <div
  2178. class="worksDetailBox"
  2179. v-if="workStudent[toolIndex].length > 0"
  2180. >
  2181. <div
  2182. class="works"
  2183. style="
  2184. width: 200px;
  2185. height: 140px;
  2186. margin: 10px 10px 10px 0;
  2187. box-shadow: 0 0 6px 1px #dfdada;
  2188. "
  2189. v-for="(w, wIndex) in workStudent[toolIndex]"
  2190. :key="wIndex"
  2191. >
  2192. <div class="workImg">
  2193. <img
  2194. :src="word2"
  2195. @click="downloadFile(w.works,w.userid)"
  2196. v-if="w.type == 12"
  2197. alt
  2198. />
  2199. <img
  2200. :src="word2"
  2201. @click="
  2202. openCocoPi(57, toolIndex, w.userid, w.sName)
  2203. "
  2204. v-else-if="w.type == 15"
  2205. alt
  2206. />
  2207. <div
  2208. class="answerScore"
  2209. v-if="w.score"
  2210. @click.stop="openScore(w)"
  2211. :class="{
  2212. rightW:
  2213. w.userid == userid || tType == 1 || tType == 4
  2214. }"
  2215. >
  2216. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2217. </div>
  2218. <div
  2219. class="answerScore"
  2220. @click.stop="openScore(w)"
  2221. v-else-if="courseDetail.userid == userid"
  2222. :class="{
  2223. rightW:
  2224. w.userid == userid || tType == 1 || tType == 4
  2225. }"
  2226. >
  2227. {{lang.ssMarkScore}}
  2228. </div>
  2229. <img
  2230. class="deleteImg"
  2231. src="../../assets/deleteworks.png"
  2232. v-if="
  2233. w.userid == userid || tType == 1 || tType == 4
  2234. "
  2235. @click.stop="deleteWorks(w.wid)"
  2236. alt
  2237. />
  2238. </div>
  2239. <div class="worksName">
  2240. <div>{{ w.sName }}</div>
  2241. </div>
  2242. </div>
  2243. </div>
  2244. </div>
  2245. <div
  2246. v-if="
  2247. tType &&
  2248. tType == 2 &&
  2249. !sIsOpen &&
  2250. tool.tool.indexOf(4) != -1
  2251. "
  2252. class="worksBox"
  2253. >
  2254. <div
  2255. class="zuoyeYulan"
  2256. v-if="workStudent[toolIndex].length > 0"
  2257. >
  2258. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2259. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2260. </div>
  2261. <div
  2262. class="worksDetailBox"
  2263. v-if="workStudent[toolIndex].length > 0"
  2264. >
  2265. <div
  2266. class="isWorksName2"
  2267. v-for="(w, wIndex) in workStudent[toolIndex]"
  2268. :key="wIndex"
  2269. @click="
  2270. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2271. "
  2272. >
  2273. {{ w.sName }}
  2274. <img
  2275. class="deleteImg deleteImg2"
  2276. src="../../assets/deleteworks.png"
  2277. v-if="w.userid == userid || tType == 1 || tType == 4"
  2278. @click.stop="deleteWorks(w.wid)"
  2279. alt
  2280. />
  2281. </div>
  2282. <!-- <div
  2283. class="works"
  2284. style="
  2285. width: 200px;
  2286. height: 140px;
  2287. border-radius: 10px;
  2288. box-shadow: 0 0 6px 1px #dfdada;
  2289. overflow: hidden;
  2290. "
  2291. v-for="(w, wIndex) in workStudent[toolIndex]"
  2292. :key="wIndex"
  2293. >
  2294. <div class="workImg">
  2295. <img
  2296. src="../../assets/icon/works/noImg.png"
  2297. @click="
  2298. openTools(
  2299. 4,
  2300. toolIndex,
  2301. taskCount,
  2302. w.works,
  2303. w.sName
  2304. )
  2305. "
  2306. alt
  2307. />
  2308. </div>
  2309. <div class="worksName">
  2310. <div>{{ w.sName }}</div>
  2311. <div>{{ w.time }}</div>
  2312. </div>
  2313. </div> -->
  2314. </div>
  2315. </div>
  2316. <div
  2317. v-if="
  2318. tType &&
  2319. ((tType == 2 && sIsOpen == true) ||
  2320. tType == 1 ||
  2321. tType == 4) &&
  2322. tool.tool.indexOf(62) != -1
  2323. "
  2324. class="worksBox"
  2325. >
  2326. <div
  2327. class="zuoyeYulan"
  2328. v-if="
  2329. worksStudent.length &&
  2330. worksStudent[toolIndex].length > 0
  2331. "
  2332. >
  2333. <div class="worksTop">
  2334. <div>{{lang.ssHomeworkPreview}}</div>
  2335. <div
  2336. class="corOpen"
  2337. @click="contract(toolIndex)"
  2338. v-if="
  2339. isCloseList[toolIndex].isCloseBoolean &&
  2340. isCloseList[toolIndex].isClose == 0
  2341. "
  2342. >
  2343. {{lang.ssFold}}
  2344. </div>
  2345. <div
  2346. class="corOpen"
  2347. @click="contract(toolIndex)"
  2348. v-if="isCloseList[toolIndex].isClose == 1"
  2349. >
  2350. {{lang.ssExpand}}
  2351. </div>
  2352. </div>
  2353. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2354. </div>
  2355. <div>
  2356. <div
  2357. :id="'tool-' + toolIndex"
  2358. :style="{
  2359. height:
  2360. isCloseList[toolIndex].isClose == 1
  2361. ? retrnToolHeight('tool-' + toolIndex)
  2362. : 'auto',
  2363. overflow:
  2364. isCloseList[toolIndex].isClose == 1
  2365. ? 'hidden'
  2366. : 'unset'
  2367. }"
  2368. class="worksDetailBox"
  2369. v-if="
  2370. worksStudent.length &&
  2371. worksStudent[toolIndex].length > 0
  2372. "
  2373. >
  2374. <div
  2375. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2376. :key="wIndex"
  2377. class="isWorksName2"
  2378. @click="
  2379. openTools(
  2380. 62,
  2381. toolIndex,
  2382. taskCount,
  2383. w.works,
  2384. w.sName
  2385. )
  2386. "
  2387. >
  2388. {{ w.sName }}
  2389. <img
  2390. class="deleteImg deleteImg2"
  2391. src="../../assets/deleteworks.png"
  2392. v-if="
  2393. w.userid == userid || tType == 1 || tType == 4
  2394. "
  2395. @click.stop="deleteWorks(w.wid)"
  2396. alt
  2397. />
  2398. </div>
  2399. </div>
  2400. </div>
  2401. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2402. {{lang.ssNotSubmitted}}
  2403. </div>
  2404. <div
  2405. class="noWorksS"
  2406. v-if="noWorksS && noWorksS[toolIndex].length"
  2407. >
  2408. <div
  2409. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2410. :key="sIndex"
  2411. class="noWorksName"
  2412. >
  2413. <el-tooltip
  2414. effect="dark"
  2415. :content="s.student"
  2416. placement="top"
  2417. >
  2418. <span>{{ s.student }}</span>
  2419. </el-tooltip>
  2420. </div>
  2421. </div>
  2422. </div>
  2423. <div
  2424. v-if="
  2425. tType &&
  2426. tType == 2 &&
  2427. !sIsOpen &&
  2428. tool.tool.indexOf(62) != -1
  2429. "
  2430. class="worksBox"
  2431. >
  2432. <div
  2433. class="zuoyeYulan"
  2434. v-if="workStudent[toolIndex].length > 0"
  2435. >
  2436. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2437. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2438. </div>
  2439. <div
  2440. class="worksDetailBox"
  2441. v-if="workStudent[toolIndex].length > 0"
  2442. >
  2443. <div
  2444. class="isWorksName2"
  2445. v-for="(w, wIndex) in workStudent[toolIndex]"
  2446. :key="wIndex"
  2447. @click="
  2448. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2449. "
  2450. >
  2451. {{ w.sName }}
  2452. <img
  2453. class="deleteImg deleteImg2"
  2454. src="../../assets/deleteworks.png"
  2455. v-if="w.userid == userid || tType == 1 || tType == 4"
  2456. @click.stop="deleteWorks(w.wid)"
  2457. alt
  2458. />
  2459. </div>
  2460. </div>
  2461. </div>
  2462. <div
  2463. v-if="
  2464. tType &&
  2465. tType == 2 &&
  2466. !sIsOpen &&
  2467. tool.tool.indexOf(45) != -1
  2468. "
  2469. class="worksBox"
  2470. >
  2471. <div
  2472. class="zuoyeYulan"
  2473. v-if="workStudent[toolIndex].length > 0"
  2474. >
  2475. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2476. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2477. </div>
  2478. <div
  2479. class="worksDetailBox"
  2480. v-if="workStudent[toolIndex].length > 0"
  2481. >
  2482. <div
  2483. class="isWorksName2"
  2484. v-for="(w, wIndex) in workStudent[toolIndex]"
  2485. :key="wIndex"
  2486. @click="
  2487. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2488. "
  2489. >
  2490. {{ w.sName }}
  2491. <img
  2492. class="deleteImg deleteImg2"
  2493. src="../../assets/deleteworks.png"
  2494. v-if="w.userid == userid || tType == 1 || tType == 4"
  2495. @click.stop="deleteWorks(w.wid)"
  2496. alt
  2497. />
  2498. </div>
  2499. </div>
  2500. </div>
  2501. <div
  2502. v-if="
  2503. tType &&
  2504. tType == 2 &&
  2505. !sIsOpen &&
  2506. tool.tool.indexOf(69) != -1
  2507. "
  2508. class="worksBox"
  2509. >
  2510. <div
  2511. class="zuoyeYulan"
  2512. v-if="workStudent[toolIndex].length > 0"
  2513. >
  2514. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2516. </div>
  2517. <div
  2518. class="worksDetailBox"
  2519. v-if="workStudent[toolIndex].length > 0"
  2520. >
  2521. <div
  2522. class="isWorksName2"
  2523. v-for="(w, wIndex) in workStudent[toolIndex]"
  2524. :key="wIndex"
  2525. @click="
  2526. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2527. "
  2528. >
  2529. {{ w.sName }}
  2530. <img
  2531. class="deleteImg deleteImg2"
  2532. src="../../assets/deleteworks.png"
  2533. v-if="w.userid == userid || tType == 1 || tType == 4"
  2534. @click.stop="deleteWorks(w.wid)"
  2535. alt
  2536. />
  2537. </div>
  2538. </div>
  2539. </div>
  2540. <div
  2541. v-if="
  2542. tType &&
  2543. tType == 2 &&
  2544. !sIsOpen &&
  2545. tool.tool.indexOf(15) != -1
  2546. "
  2547. class="worksBox"
  2548. >
  2549. <div
  2550. class="zuoyeYulan"
  2551. v-if="workStudent[toolIndex].length > 0"
  2552. >
  2553. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2554. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2555. </div>
  2556. <div
  2557. class="worksDetailBox"
  2558. v-if="workStudent[toolIndex].length > 0"
  2559. >
  2560. <div
  2561. class="works"
  2562. v-for="(w, wIndex) in workStudent[toolIndex]"
  2563. :key="wIndex"
  2564. >
  2565. <div class="workImg">
  2566. <!-- <img
  2567. src="../../assets/icon/works/noImg.png"
  2568. @click="openTools(15, toolIndex, taskCount, w.works)"
  2569. alt=""
  2570. />-->
  2571. <div class="answerBg">
  2572. <!-- <div>{{ w.sName }}</div> -->
  2573. <el-tooltip
  2574. class="item"
  2575. effect="light"
  2576. :content="JSON.parse(w.works)[0].answer"
  2577. placement="top"
  2578. >
  2579. <div class="answerContent">
  2580. {{ JSON.parse(w.works)[0].answer }}
  2581. </div>
  2582. </el-tooltip>
  2583. <div
  2584. class="answerScore"
  2585. v-if="w.score"
  2586. @click.stop="openScore(w)"
  2587. :class="{
  2588. rightW:
  2589. w.userid == userid || tType == 1 || tType == 4
  2590. }"
  2591. >
  2592. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2593. </div>
  2594. <div
  2595. class="answerScore"
  2596. @click.stop="openScore(w)"
  2597. v-else-if="courseDetail.userid == userid"
  2598. :class="{
  2599. rightW:
  2600. w.userid == userid || tType == 1 || tType == 4
  2601. }"
  2602. >
  2603. {{lang.ssMarkScore}}
  2604. </div>
  2605. <img
  2606. class="deleteImg"
  2607. src="../../assets/deleteworks.png"
  2608. v-if="
  2609. w.userid == userid || tType == 1 || tType == 4
  2610. "
  2611. @click.stop="deleteWorks(w.wid)"
  2612. alt
  2613. />
  2614. </div>
  2615. <div class="comment">
  2616. <div class="worksName">
  2617. <div>{{ w.sName }}</div>
  2618. </div>
  2619. </div>
  2620. </div>
  2621. </div>
  2622. </div>
  2623. </div>
  2624. <div
  2625. v-if="
  2626. tType &&
  2627. tType == 2 &&
  2628. !sIsOpen &&
  2629. tool.tool.indexOf(1) != -1
  2630. "
  2631. class="worksBox"
  2632. >
  2633. <div
  2634. class="zuoyeYulan"
  2635. v-if="workStudent[toolIndex].length > 0"
  2636. >
  2637. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2638. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2639. </div>
  2640. <div
  2641. class="worksDetailBox"
  2642. v-if="workStudent[toolIndex].length > 0"
  2643. >
  2644. <div
  2645. class="works"
  2646. style="
  2647. width: 200px;
  2648. height: 140px;
  2649. margin: 10px 10px 10px 0;
  2650. box-shadow: 0 0 6px 1px #dfdada;
  2651. "
  2652. v-for="(w, wIndex) in workStudent[toolIndex]"
  2653. :key="wIndex"
  2654. >
  2655. <div class="workImg">
  2656. <img
  2657. :src="w.works"
  2658. @click="previewImg(w.works, w)"
  2659. alt
  2660. />
  2661. <div
  2662. class="answerScore"
  2663. v-if="w.score"
  2664. @click.stop="openScore(w)"
  2665. :class="{
  2666. rightW:
  2667. w.userid == userid || tType == 1 || tType == 4
  2668. }"
  2669. >
  2670. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2671. </div>
  2672. <div
  2673. class="answerScore"
  2674. @click.stop="openScore(w)"
  2675. v-else-if="courseDetail.userid == userid"
  2676. :class="{
  2677. rightW:
  2678. w.userid == userid || tType == 1 || tType == 4
  2679. }"
  2680. >
  2681. {{lang.ssMarkScore}}
  2682. </div>
  2683. <div
  2684. class="stuLookScore"
  2685. v-if="
  2686. w.userid == userid ||
  2687. (tType == 1 &&
  2688. courseDetail.state == 5 &&
  2689. ((chapInfoList[courseType].chapterInfo[0]
  2690. .taskJson[taskCount].eList &&
  2691. chapInfoList[courseType].chapterInfo[0]
  2692. .taskJson[taskCount].eList.length) ||
  2693. (tool.eList && tool.eList.length)))
  2694. "
  2695. >
  2696. <el-popover
  2697. placement="top"
  2698. width="318"
  2699. trigger="hover"
  2700. >
  2701. <markScore
  2702. :loading="AIloading[toolIndex][wIndex].loading"
  2703. :markScoreVisible="markScoreVisible"
  2704. :ref="`markSco${toolIndex}${wIndex}`"
  2705. @updateLoading="updateLoading"
  2706. @updateDocSco="updateDocSco"
  2707. @refreshOther="refreshOther"
  2708. @markScoreDig="markScoreDig"
  2709. :tool="tool"
  2710. :wIndex="wIndex"
  2711. :scoCon="w"
  2712. :toolIndex="toolIndex"
  2713. :key="refreshKey"
  2714. :stage="courseType"
  2715. :task="taskCount"
  2716. :scoTit="
  2717. chapInfoList[courseType].chapterInfo[0]
  2718. .taskJson[taskCount].eList
  2719. "
  2720. >
  2721. </markScore>
  2722. <div
  2723. @click="
  2724. markScoreDig2(
  2725. w.sName,
  2726. worksStudent,
  2727. w.userid,
  2728. toolIndex,
  2729. chapInfoList[courseType].chapterInfo[0]
  2730. .taskJson[taskCount].eList,
  2731. AIloading[toolIndex][wIndex].loading,
  2732. tool
  2733. )
  2734. "
  2735. slot="reference"
  2736. >
  2737. <span v-if="AIloading[toolIndex][wIndex].sco">
  2738. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2739. </span>
  2740. <span v-else>
  2741. {{lang.ssMarkScore}}
  2742. </span>
  2743. </div>
  2744. </el-popover>
  2745. </div>
  2746. <img
  2747. class="deleteImg"
  2748. src="../../assets/deleteworks.png"
  2749. v-if="
  2750. w.userid == userid || tType == 1 || tType == 4
  2751. "
  2752. @click.stop="deleteWorks(w.wid)"
  2753. alt
  2754. />
  2755. </div>
  2756. <div class="worksName">
  2757. <div>{{ w.sName }}</div>
  2758. </div>
  2759. </div>
  2760. </div>
  2761. </div>
  2762. <div
  2763. v-if="
  2764. tType &&
  2765. tType == 2 &&
  2766. !sIsOpen &&
  2767. tool.tool.indexOf(3) != -1
  2768. "
  2769. class="worksBox"
  2770. >
  2771. <div
  2772. class="zuoyeYulan"
  2773. v-if="workStudent[toolIndex].length > 0"
  2774. >
  2775. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2776. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2777. </div>
  2778. <div
  2779. class="worksDetailBox"
  2780. v-if="workStudent[toolIndex].length > 0"
  2781. >
  2782. <div
  2783. class="works"
  2784. style="
  2785. width: 200px;
  2786. height: 140px;
  2787. margin: 10px 10px 10px 0;
  2788. box-shadow: 0 0 6px 1px #dfdada;
  2789. "
  2790. v-for="(w, wIndex) in workStudent[toolIndex]"
  2791. :key="wIndex"
  2792. >
  2793. <div class="workImg">
  2794. <img
  2795. :src="w.works"
  2796. @click="previewImg(w.works, w)"
  2797. alt
  2798. />
  2799. <div
  2800. class="answerScore"
  2801. v-if="w.score"
  2802. @click.stop="openScore(w)"
  2803. :class="{
  2804. rightW:
  2805. w.userid == userid || tType == 1 || tType == 4
  2806. }"
  2807. >
  2808. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2809. </div>
  2810. <div
  2811. class="answerScore"
  2812. @click.stop="openScore(w)"
  2813. v-else-if="courseDetail.userid == userid"
  2814. :class="{
  2815. rightW:
  2816. w.userid == userid || tType == 1 || tType == 4
  2817. }"
  2818. >
  2819. {{lang.ssMarkScore}}
  2820. </div>
  2821. <div
  2822. class="stuLookScore"
  2823. v-if="
  2824. w.userid == userid ||
  2825. (tType == 1 &&
  2826. courseDetail.state == 5 &&
  2827. ((chapInfoList[courseType].chapterInfo[0]
  2828. .taskJson[taskCount].eList &&
  2829. chapInfoList[courseType].chapterInfo[0]
  2830. .taskJson[taskCount].eList.length) ||
  2831. (tool.eList && tool.eList.length)))
  2832. "
  2833. >
  2834. <el-popover
  2835. placement="top"
  2836. width="318"
  2837. trigger="hover"
  2838. >
  2839. <markScore
  2840. :loading="AIloading[toolIndex][wIndex].loading"
  2841. :markScoreVisible="markScoreVisible"
  2842. :ref="`markSco${toolIndex}${wIndex}`"
  2843. @updateLoading="updateLoading"
  2844. @updateDocSco="updateDocSco"
  2845. @refreshOther="refreshOther"
  2846. @markScoreDig="markScoreDig"
  2847. :tool="tool"
  2848. :wIndex="wIndex"
  2849. :scoCon="w"
  2850. :toolIndex="toolIndex"
  2851. :key="refreshKey"
  2852. :stage="courseType"
  2853. :task="taskCount"
  2854. :scoTit="
  2855. chapInfoList[courseType].chapterInfo[0]
  2856. .taskJson[taskCount].eList
  2857. "
  2858. >
  2859. </markScore>
  2860. <div
  2861. @click="
  2862. markScoreDig2(
  2863. w.sName,
  2864. worksStudent,
  2865. w.userid,
  2866. toolIndex,
  2867. chapInfoList[courseType].chapterInfo[0]
  2868. .taskJson[taskCount].eList,
  2869. AIloading[toolIndex][wIndex].loading,
  2870. tool
  2871. )
  2872. "
  2873. slot="reference"
  2874. >
  2875. <span v-if="AIloading[toolIndex][wIndex].sco">
  2876. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  2877. </span>
  2878. <span v-else>
  2879. {{lang.ssMarkScore}}
  2880. </span>
  2881. </div>
  2882. </el-popover>
  2883. </div>
  2884. <img
  2885. class="deleteImg"
  2886. src="../../assets/deleteworks.png"
  2887. v-if="
  2888. w.userid == userid || tType == 1 || tType == 4
  2889. "
  2890. @click.stop="deleteWorks(w.wid)"
  2891. alt
  2892. />
  2893. </div>
  2894. <div class="worksName">
  2895. <div>{{ w.sName }}</div>
  2896. </div>
  2897. </div>
  2898. </div>
  2899. </div>
  2900. <div
  2901. v-if="
  2902. tType &&
  2903. tType == 2 &&
  2904. !sIsOpen &&
  2905. tool.tool.indexOf(6) != -1
  2906. "
  2907. class="worksBox"
  2908. >
  2909. <div
  2910. class="zuoyeYulan"
  2911. v-if="workStudent[toolIndex].length > 0"
  2912. >
  2913. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2914. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2915. </div>
  2916. <div
  2917. class="worksDetailBox"
  2918. v-if="workStudent[toolIndex].length > 0"
  2919. >
  2920. <div
  2921. class="works"
  2922. style="
  2923. width: 200px;
  2924. height: 140px;
  2925. margin: 10px 10px 10px 0;
  2926. box-shadow: 0 0 6px 1px #dfdada;
  2927. "
  2928. v-for="(w, wIndex) in workStudent[toolIndex]"
  2929. :key="wIndex"
  2930. >
  2931. <div class="workImg">
  2932. <img
  2933. :src="w.works"
  2934. @click="previewImg(w.works, w)"
  2935. alt
  2936. />
  2937. <div
  2938. class="answerScore"
  2939. v-if="w.score"
  2940. @click.stop="openScore(w)"
  2941. :class="{
  2942. rightW:
  2943. w.userid == userid || tType == 1 || tType == 4
  2944. }"
  2945. >
  2946. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  2947. </div>
  2948. <div
  2949. class="answerScore"
  2950. @click.stop="openScore(w)"
  2951. v-else-if="courseDetail.userid == userid"
  2952. :class="{
  2953. rightW:
  2954. w.userid == userid || tType == 1 || tType == 4
  2955. }"
  2956. >
  2957. {{lang.ssMarkScore}}
  2958. </div>
  2959. <img
  2960. class="deleteImg"
  2961. src="../../assets/deleteworks.png"
  2962. v-if="
  2963. w.userid == userid || tType == 1 || tType == 4
  2964. "
  2965. @click.stop="deleteWorks(w.wid)"
  2966. alt
  2967. />
  2968. </div>
  2969. <div class="worksName">
  2970. <div>{{ w.sName }}</div>
  2971. </div>
  2972. </div>
  2973. </div>
  2974. </div>
  2975. <div
  2976. v-if="
  2977. tType &&
  2978. tType == 2 &&
  2979. !sIsOpen &&
  2980. tool.tool.indexOf(7) != -1
  2981. "
  2982. class="worksBox"
  2983. >
  2984. <div
  2985. class="zuoyeYulan"
  2986. v-if="workStudent[toolIndex].length > 0"
  2987. >
  2988. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  2989. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2990. </div>
  2991. <div
  2992. class="worksDetailBox"
  2993. v-if="workStudent[toolIndex].length > 0"
  2994. >
  2995. <div
  2996. class="works"
  2997. style="
  2998. width: 200px;
  2999. height: 140px;
  3000. margin: 10px 10px 10px 0;
  3001. box-shadow: 0 0 6px 1px #dfdada;
  3002. "
  3003. v-for="(w, wIndex) in workStudent[toolIndex]"
  3004. :key="wIndex"
  3005. >
  3006. <div class="workImg">
  3007. <img
  3008. :src="w.works"
  3009. @click="previewImg(w.works, w)"
  3010. alt
  3011. />
  3012. <div
  3013. class="answerScore"
  3014. v-if="w.score"
  3015. @click.stop="openScore(w)"
  3016. :class="{
  3017. rightW:
  3018. w.userid == userid || tType == 1 || tType == 4
  3019. }"
  3020. >
  3021. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3022. </div>
  3023. <div
  3024. class="answerScore"
  3025. @click.stop="openScore(w)"
  3026. v-else-if="courseDetail.userid == userid"
  3027. :class="{
  3028. rightW:
  3029. w.userid == userid || tType == 1 || tType == 4
  3030. }"
  3031. >
  3032. {{lang.ssMarkScore}}
  3033. </div>
  3034. <div
  3035. class="stuLookScore"
  3036. v-if="
  3037. w.userid == userid ||
  3038. (tType == 1 &&
  3039. courseDetail.state == 5 &&
  3040. ((chapInfoList[courseType].chapterInfo[0]
  3041. .taskJson[taskCount].eList &&
  3042. chapInfoList[courseType].chapterInfo[0]
  3043. .taskJson[taskCount].eList.length) ||
  3044. (tool.eList && tool.eList.length)))
  3045. "
  3046. >
  3047. <el-popover
  3048. placement="top"
  3049. width="318"
  3050. trigger="hover"
  3051. >
  3052. <markScore
  3053. :loading="AIloading[toolIndex][wIndex].loading"
  3054. :markScoreVisible="markScoreVisible"
  3055. :ref="`markSco${toolIndex}${wIndex}`"
  3056. @updateLoading="updateLoading"
  3057. @updateDocSco="updateDocSco"
  3058. @refreshOther="refreshOther"
  3059. @markScoreDig="markScoreDig"
  3060. :tool="tool"
  3061. :wIndex="wIndex"
  3062. :scoCon="w"
  3063. :toolIndex="toolIndex"
  3064. :key="refreshKey"
  3065. :stage="courseType"
  3066. :task="taskCount"
  3067. :scoTit="
  3068. chapInfoList[courseType].chapterInfo[0]
  3069. .taskJson[taskCount].eList
  3070. "
  3071. >
  3072. </markScore>
  3073. <div
  3074. @click="
  3075. markScoreDig2(
  3076. w.sName,
  3077. worksStudent,
  3078. w.userid,
  3079. toolIndex,
  3080. chapInfoList[courseType].chapterInfo[0]
  3081. .taskJson[taskCount].eList,
  3082. AIloading[toolIndex][wIndex].loading,
  3083. tool
  3084. )
  3085. "
  3086. slot="reference"
  3087. >
  3088. <span v-if="AIloading[toolIndex][wIndex].sco">
  3089. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  3090. </span>
  3091. <span v-else>
  3092. {{lang.ssMarkScore}}
  3093. </span>
  3094. </div>
  3095. </el-popover>
  3096. </div>
  3097. <img
  3098. class="deleteImg"
  3099. src="../../assets/deleteworks.png"
  3100. v-if="
  3101. w.userid == userid || tType == 1 || tType == 4
  3102. "
  3103. @click.stop="deleteWorks(w.wid)"
  3104. alt
  3105. />
  3106. </div>
  3107. <div class="worksName">
  3108. <div>{{ w.sName }}</div>
  3109. </div>
  3110. </div>
  3111. </div>
  3112. </div>
  3113. <div
  3114. v-if="
  3115. tType &&
  3116. tType == 2 &&
  3117. !sIsOpen &&
  3118. tool.tool.indexOf(26) != -1
  3119. "
  3120. class="worksBox"
  3121. >
  3122. <div
  3123. class="zuoyeYulan"
  3124. v-if="workStudent[toolIndex].length > 0"
  3125. >
  3126. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  3127. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3128. </div>
  3129. <div
  3130. class="worksDetailBox"
  3131. v-if="workStudent[toolIndex].length > 0"
  3132. >
  3133. <div
  3134. class="works"
  3135. style="
  3136. width: 200px;
  3137. height: 140px;
  3138. margin: 10px 10px 10px 0;
  3139. box-shadow: 0 0 6px 1px #dfdada;
  3140. "
  3141. v-for="(w, wIndex) in workStudent[toolIndex]"
  3142. :key="wIndex"
  3143. >
  3144. <div class="workImg">
  3145. <img
  3146. :src="w.works"
  3147. @click="previewImg(w.works, w)"
  3148. alt
  3149. />
  3150. <img
  3151. class="deleteImg"
  3152. src="../../assets/deleteworks.png"
  3153. v-if="
  3154. w.userid == userid || tType == 1 || tType == 4
  3155. "
  3156. @click.stop="deleteWorks(w.wid)"
  3157. alt
  3158. />
  3159. </div>
  3160. <div class="worksName">
  3161. <div>{{ w.sName }}</div>
  3162. </div>
  3163. </div>
  3164. </div>
  3165. </div>
  3166. <div
  3167. v-if="
  3168. tType &&
  3169. ((tType == 2 && sIsOpen == true) ||
  3170. tType == 1 ||
  3171. tType == 4) &&
  3172. tool.tool.indexOf(16) != -1
  3173. "
  3174. class="worksBox"
  3175. >
  3176. <div
  3177. class="zuoyeYulan"
  3178. style="display: flex;justify-content: space-between;align-items: center;"
  3179. v-if="
  3180. (worksStudent.length &&
  3181. worksStudent[toolIndex].length > 0) ||
  3182. (courseGroup.group && courseGroup.group.length)
  3183. "
  3184. >
  3185. <div class="worksTop">
  3186. <div>{{lang.ssHomeworkPreview}}</div>
  3187. <div
  3188. class="corOpen"
  3189. @click="contract(toolIndex)"
  3190. v-if="
  3191. isCloseList[toolIndex].isCloseBoolean &&
  3192. isCloseList[toolIndex].isClose == 0
  3193. "
  3194. >
  3195. {{lang.ssFold}}
  3196. </div>
  3197. <div
  3198. class="corOpen"
  3199. @click="contract(toolIndex)"
  3200. v-if="isCloseList[toolIndex].isClose == 1"
  3201. >
  3202. {{lang.ssExpand}}
  3203. </div>
  3204. </div>
  3205. <div
  3206. style="display: flex;"
  3207. v-if="
  3208. (courseDetail.userid == userid ||
  3209. (courseDetail.course_teacher &&
  3210. courseDetail.course_teacher.indexOf(userid) !=
  3211. -1)) &&
  3212. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3213. taskCount
  3214. ].eList &&
  3215. chapInfoList[courseType].chapterInfo[0].taskJson[
  3216. taskCount
  3217. ].eList.length) ||
  3218. (tool.eList && tool.eList.length)) &&
  3219. courseDetail.state == 5
  3220. "
  3221. >
  3222. <!-- <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 == 5"> -->
  3223. <div
  3224. style="margin-right:10px"
  3225. class="ScoreBtn"
  3226. @click="
  3227. resetLoopEva(
  3228. worksStudent[toolIndex],
  3229. chapInfoList[courseType].chapterInfo[0].taskJson[
  3230. taskCount
  3231. ].eList,
  3232. courseType,
  3233. taskCount,
  3234. toolIndex,
  3235. tool.toolDetail,
  3236. worksStudent
  3237. )
  3238. "
  3239. >
  3240. {{lang.ssReset}}
  3241. </div>
  3242. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3243. <img
  3244. src="../../assets/icon/newIcons/rootImg.png"
  3245. alt=""
  3246. />
  3247. {{lang.ssAiScore}}
  3248. </div>
  3249. <div
  3250. class="ScoreBtn"
  3251. v-else-if="!loopLoading[toolIndex].loading"
  3252. @click="
  3253. loopEva(
  3254. worksStudent[toolIndex],
  3255. chapInfoList[courseType].chapterInfo[0].taskJson[
  3256. taskCount
  3257. ].eList,
  3258. courseType,
  3259. taskCount,
  3260. toolIndex,
  3261. tool.toolDetail,
  3262. chapInfoList[courseType].chapterInfo[0].taskJson[
  3263. taskCount
  3264. ].taskDetail,
  3265. tool
  3266. )
  3267. "
  3268. >
  3269. <img
  3270. src="../../assets/icon/newIcons/rootImg.png"
  3271. alt=""
  3272. />
  3273. {{lang.ssAiScore}}
  3274. </div>
  3275. <div class="ScoreBtn" v-else>
  3276. <img
  3277. src="../../assets/icon/newIcons/rootImg.png"
  3278. alt=""
  3279. />
  3280. {{lang.ssScoring}}
  3281. </div>
  3282. </div>
  3283. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3284. </div>
  3285. <div
  3286. class="group_workBox"
  3287. v-for="(g, gindex) in courseGroup.group"
  3288. :key="gindex"
  3289. >
  3290. <div class="group_box">
  3291. <div class="group_title">
  3292. <el-tooltip
  3293. class="item"
  3294. effect="light"
  3295. :content="g.name"
  3296. placement="top"
  3297. >
  3298. <div class="group_name">{{ g.name }}</div>
  3299. </el-tooltip>
  3300. </div>
  3301. <div
  3302. class="group_work"
  3303. v-if="
  3304. g.works &&
  3305. g.works.length &&
  3306. g.works[toolIndex].length
  3307. "
  3308. >
  3309. <div
  3310. class="works"
  3311. style="
  3312. width: 200px;
  3313. height: 140px;
  3314. margin: 10px 10px 10px 0;
  3315. border-radius: 15px;
  3316. box-shadow: 0 0 6px 1px #dfdada;
  3317. "
  3318. v-for="(w, wIndex) in g.works[toolIndex]"
  3319. :key="wIndex"
  3320. :class="w.type == 1 ? 'isTypeOne' : ''"
  3321. >
  3322. <div class="workImg" v-if="w.type == 0">
  3323. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3324. <img
  3325. :src="w.works"
  3326. @click="previewImg(w.works, w)"
  3327. alt
  3328. />
  3329. <div
  3330. class="answerScore"
  3331. v-if="w.score"
  3332. @click.stop="openScore(w)"
  3333. :class="{
  3334. rightW:
  3335. w.userid == userid ||
  3336. tType == 1 ||
  3337. tType == 4 ||
  3338. w.ateacher == userid
  3339. }"
  3340. >
  3341. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3342. </div>
  3343. <div
  3344. class="answerScore"
  3345. @click.stop="openScore(w)"
  3346. v-else-if="courseDetail.userid == userid"
  3347. :class="{
  3348. rightW:
  3349. w.userid == userid ||
  3350. tType == 1 ||
  3351. tType == 4 ||
  3352. w.ateacher == userid
  3353. }"
  3354. >
  3355. {{lang.ssMarkScore}}
  3356. </div>
  3357. <img
  3358. class="deleteImg"
  3359. src="../../assets/deleteworks.png"
  3360. v-if="
  3361. w.userid == userid || tType == 1 || tType == 4
  3362. "
  3363. @click.stop="deleteWorks(w.wid)"
  3364. alt
  3365. />
  3366. </div>
  3367. <div class="workImg" v-if="w.type == 1">
  3368. <img :src="word" @click="openFile(w.works)" alt />
  3369. <!-- @click="openFile(w.works)" -->
  3370. <div
  3371. class="answerScore"
  3372. v-if="w.score"
  3373. @click.stop="openScore(w)"
  3374. :class="{
  3375. rightW:
  3376. w.userid == userid ||
  3377. tType == 1 ||
  3378. tType == 4 ||
  3379. w.ateacher == userid
  3380. }"
  3381. >
  3382. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3383. </div>
  3384. <div
  3385. class="answerScore"
  3386. @click.stop="openScore(w)"
  3387. v-else-if="courseDetail.userid == userid"
  3388. :class="{
  3389. rightW:
  3390. w.userid == userid ||
  3391. tType == 1 ||
  3392. tType == 4 ||
  3393. w.ateacher == userid
  3394. }"
  3395. >
  3396. {{lang.ssMarkScore}}
  3397. </div>
  3398. <img
  3399. class="deleteImg"
  3400. src="../../assets/deleteworks.png"
  3401. v-if="
  3402. w.userid == userid || tType == 1 || tType == 4
  3403. "
  3404. @click.stop="deleteWorks(w.wid)"
  3405. alt
  3406. />
  3407. </div>
  3408. <div class="workImg" v-if="w.type == 3">
  3409. <img
  3410. style="cursor: pointer"
  3411. :src="video"
  3412. @click="openVideo(w)"
  3413. alt
  3414. />
  3415. <!-- @click="openVideo(w.works)" -->
  3416. <div
  3417. class="answerScore"
  3418. v-if="w.score"
  3419. @click.stop="openScore(w)"
  3420. :class="{
  3421. rightW:
  3422. w.userid == userid ||
  3423. tType == 1 ||
  3424. tType == 4 ||
  3425. w.ateacher == userid
  3426. }"
  3427. >
  3428. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3429. </div>
  3430. <div
  3431. class="answerScore"
  3432. @click.stop="openScore(w)"
  3433. v-else-if="courseDetail.userid == userid"
  3434. :class="{
  3435. rightW:
  3436. w.userid == userid ||
  3437. tType == 1 ||
  3438. tType == 4 ||
  3439. w.ateacher == userid
  3440. }"
  3441. >
  3442. {{lang.ssMarkScore}}
  3443. </div>
  3444. <img
  3445. class="deleteImg"
  3446. src="../../assets/deleteworks.png"
  3447. v-if="
  3448. w.userid == userid || tType == 1 || tType == 4
  3449. "
  3450. @click.stop="deleteWorks(w.wid)"
  3451. alt
  3452. />
  3453. </div>
  3454. <div class="workImg" v-if="w.type == 12">
  3455. <img
  3456. style="cursor: pointer"
  3457. :src="word2"
  3458. @click="downloadFile(w.works,w.userid)"
  3459. alt
  3460. />
  3461. <!-- @click="openVideo(w.works)" -->
  3462. <div
  3463. class="answerScore"
  3464. v-if="w.score"
  3465. @click.stop="openScore(w)"
  3466. :class="{
  3467. rightW:
  3468. w.userid == userid ||
  3469. tType == 1 ||
  3470. tType == 4 ||
  3471. w.ateacher == userid
  3472. }"
  3473. >
  3474. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3475. </div>
  3476. <div
  3477. class="answerScore"
  3478. @click.stop="openScore(w)"
  3479. v-else-if="courseDetail.userid == userid"
  3480. :class="{
  3481. rightW:
  3482. w.userid == userid ||
  3483. tType == 1 ||
  3484. tType == 4 ||
  3485. w.ateacher == userid
  3486. }"
  3487. >
  3488. {{lang.ssMarkScore}}
  3489. </div>
  3490. <img
  3491. class="deleteImg"
  3492. src="../../assets/deleteworks.png"
  3493. v-if="
  3494. w.userid == userid || tType == 1 || tType == 4
  3495. "
  3496. @click.stop="deleteWorks(w.wid)"
  3497. alt
  3498. />
  3499. </div>
  3500. <div class="comment" style="min-width: 200px">
  3501. <div class="worksName">
  3502. <div>{{ w.sName }}</div>
  3503. </div>
  3504. <div class="commentList">
  3505. <div class="commentList">
  3506. <div
  3507. class="commentImg"
  3508. @click="
  3509. isLikes(
  3510. w.wid,
  3511. userid,
  3512. 1,
  3513. null,
  3514. w.isLikes,
  3515. w.sName
  3516. )
  3517. "
  3518. >
  3519. <img
  3520. :src="w.isLikes == true ? likes : noLikes"
  3521. alt=""
  3522. />
  3523. </div>
  3524. <div>{{ w.likesCount }}</div>
  3525. </div>
  3526. <div
  3527. class="commentList"
  3528. style="margin-right: 15px"
  3529. >
  3530. <div
  3531. class="commentImg"
  3532. @click="
  3533. commentOther(
  3534. w,
  3535. toolIndex,
  3536. wIndex,
  3537. null,
  3538. g.id
  3539. )
  3540. "
  3541. >
  3542. <img
  3543. src="../../assets/icon/comment/comment.png"
  3544. alt=""
  3545. />
  3546. </div>
  3547. <div>{{ w.commentCount }}</div>
  3548. </div>
  3549. </div>
  3550. </div>
  3551. </div>
  3552. </div>
  3553. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  3554. </div>
  3555. </div>
  3556. <div
  3557. :id="'tool-' + toolIndex"
  3558. :style="{
  3559. height:
  3560. isCloseList[toolIndex].isClose == 1
  3561. ? retrnToolHeight('tool-' + toolIndex)
  3562. : 'auto',
  3563. overflow:
  3564. isCloseList[toolIndex].isClose == 1
  3565. ? 'hidden'
  3566. : 'unset'
  3567. }"
  3568. class="worksDetailBox"
  3569. v-if="
  3570. worksStudent.length &&
  3571. worksStudent[toolIndex].length > 0
  3572. "
  3573. >
  3574. <div
  3575. class="works"
  3576. style="
  3577. width: 200px;
  3578. height: 140px;
  3579. margin: 10px 10px 10px 0;
  3580. border-radius: 15px;
  3581. box-shadow: 0 0 6px 1px #dfdada;
  3582. "
  3583. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3584. :key="wIndex"
  3585. :class="w.type == 1 ? 'isTypeOne' : ''"
  3586. >
  3587. <div class="workImg" v-if="w.type == 0">
  3588. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3589. <img
  3590. :src="w.works"
  3591. @click="previewImg(w.works, w)"
  3592. alt
  3593. />
  3594. <div
  3595. class="answerScore"
  3596. v-if="w.score"
  3597. @click.stop="openScore(w)"
  3598. :class="{
  3599. rightW:
  3600. w.userid == userid ||
  3601. tType == 1 ||
  3602. tType == 4 ||
  3603. w.ateacher == userid
  3604. }"
  3605. >
  3606. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3607. </div>
  3608. <div
  3609. class="answerScore"
  3610. @click.stop="openScore(w)"
  3611. v-else-if="
  3612. courseDetail.userid == userid &&
  3613. courseDetail.state != 5 &&
  3614. chapInfoList[courseType].chapterInfo[0]
  3615. .taskJson[taskCount].eList &&
  3616. chapInfoList[courseType].chapterInfo[0]
  3617. .taskJson[taskCount].eList.length
  3618. "
  3619. :class="{
  3620. rightW:
  3621. w.userid == userid ||
  3622. tType == 1 ||
  3623. tType == 4 ||
  3624. w.ateacher == userid
  3625. }"
  3626. >
  3627. {{lang.ssMarkScore}}
  3628. </div>
  3629. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3630. <div
  3631. v-else-if="
  3632. (courseDetail.userid == userid ||
  3633. (courseDetail.course_teacher &&
  3634. courseDetail.course_teacher.indexOf(userid) !=
  3635. -1) ||
  3636. (w.userid == userid && sIsOpen)) &&
  3637. courseDetail.state == 5 &&
  3638. ((chapInfoList[courseType].chapterInfo[0]
  3639. .taskJson[taskCount].eList &&
  3640. chapInfoList[courseType].chapterInfo[0]
  3641. .taskJson[taskCount].eList.length) ||
  3642. (tool.eList && tool.eList.length))
  3643. "
  3644. >
  3645. <el-popover
  3646. placement="top"
  3647. width="318"
  3648. :disabled="AIloading[toolIndex][wIndex].loading"
  3649. trigger="hover"
  3650. >
  3651. <markScore
  3652. :loading="AIloading[toolIndex][wIndex].loading"
  3653. :markScoreVisible="markScoreVisible"
  3654. :ref="`markSco${toolIndex}${wIndex}`"
  3655. @updateLoading="updateLoading"
  3656. @updateDocSco="updateDocSco"
  3657. @refreshOther="refreshOther"
  3658. @markScoreDig="markScoreDig"
  3659. :tool="tool"
  3660. :wIndex="wIndex"
  3661. :scoCon="w"
  3662. :toolIndex="toolIndex"
  3663. :key="refreshKey"
  3664. :stage="courseType"
  3665. :task="taskCount"
  3666. :scoTit="
  3667. chapInfoList[courseType].chapterInfo[0]
  3668. .taskJson[taskCount].eList
  3669. "
  3670. >
  3671. </markScore>
  3672. <div
  3673. class="answerScore"
  3674. @click="
  3675. markScoreDig2(
  3676. w.sName,
  3677. worksStudent,
  3678. w.userid,
  3679. toolIndex,
  3680. chapInfoList[courseType].chapterInfo[0]
  3681. .taskJson[taskCount].eList,
  3682. AIloading[toolIndex][wIndex].loading,
  3683. tool
  3684. )
  3685. "
  3686. slot="reference"
  3687. :class="{
  3688. rightW:
  3689. w.userid == userid ||
  3690. tType == 1 ||
  3691. tType == 4 ||
  3692. w.ateacher == userid
  3693. }"
  3694. >
  3695. <span v-if="AIloading[toolIndex][wIndex].sco">
  3696. {{
  3697. AIloading[toolIndex][wIndex].loading
  3698. ? lang.ssScoringIn
  3699. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3700. }}
  3701. </span>
  3702. <span v-else>
  3703. {{
  3704. AIloading[toolIndex][wIndex].loading
  3705. ? lang.ssScoringIn
  3706. : lang.ssMarkScore
  3707. }}
  3708. </span>
  3709. </div>
  3710. </el-popover>
  3711. </div>
  3712. <img
  3713. class="deleteImg"
  3714. src="../../assets/deleteworks.png"
  3715. v-if="
  3716. w.userid == userid || tType == 1 || tType == 4
  3717. "
  3718. @click.stop="deleteWorks(w.wid)"
  3719. alt
  3720. />
  3721. </div>
  3722. <div class="workImg" v-if="w.type == 1">
  3723. <img :src="word" @click="openFile(w.works)" alt />
  3724. <!-- @click="openFile(w.works)" -->
  3725. <div
  3726. class="answerScore"
  3727. v-if="w.score"
  3728. @click.stop="openScore(w)"
  3729. :class="{
  3730. rightW:
  3731. w.userid == userid ||
  3732. tType == 1 ||
  3733. tType == 4 ||
  3734. w.ateacher == userid
  3735. }"
  3736. >
  3737. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3738. </div>
  3739. <div
  3740. class="answerScore"
  3741. @click.stop="openScore(w)"
  3742. v-else-if="
  3743. courseDetail.userid == userid &&
  3744. courseDetail.state != 5 &&
  3745. chapInfoList[courseType].chapterInfo[0]
  3746. .taskJson[taskCount].eList &&
  3747. chapInfoList[courseType].chapterInfo[0]
  3748. .taskJson[taskCount].eList.length
  3749. "
  3750. :class="{
  3751. rightW:
  3752. w.userid == userid ||
  3753. tType == 1 ||
  3754. tType == 4 ||
  3755. w.ateacher == userid
  3756. }"
  3757. >
  3758. {{lang.ssMarkScore}}
  3759. </div>
  3760. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3761. <div
  3762. v-else-if="
  3763. (courseDetail.userid == userid ||
  3764. (courseDetail.course_teacher &&
  3765. courseDetail.course_teacher.indexOf(userid) !=
  3766. -1) ||
  3767. (w.userid == userid && sIsOpen)) &&
  3768. courseDetail.state == 5 &&
  3769. ((chapInfoList[courseType].chapterInfo[0]
  3770. .taskJson[taskCount].eList &&
  3771. chapInfoList[courseType].chapterInfo[0]
  3772. .taskJson[taskCount].eList.length) ||
  3773. (tool.eList && tool.eList.length))
  3774. "
  3775. >
  3776. <el-popover
  3777. placement="top"
  3778. width="318"
  3779. :disabled="AIloading[toolIndex][wIndex].loading"
  3780. trigger="hover"
  3781. >
  3782. <markScore
  3783. :loading="AIloading[toolIndex][wIndex].loading"
  3784. :markScoreVisible="markScoreVisible"
  3785. :ref="`markSco${toolIndex}${wIndex}`"
  3786. @updateLoading="updateLoading"
  3787. @updateDocSco="updateDocSco"
  3788. @refreshOther="refreshOther"
  3789. @markScoreDig="markScoreDig"
  3790. :tool="tool"
  3791. :wIndex="wIndex"
  3792. :scoCon="w"
  3793. :toolIndex="toolIndex"
  3794. :key="refreshKey"
  3795. :stage="courseType"
  3796. :task="taskCount"
  3797. :scoTit="
  3798. chapInfoList[courseType].chapterInfo[0]
  3799. .taskJson[taskCount].eList
  3800. "
  3801. >
  3802. </markScore>
  3803. <div
  3804. class="answerScore"
  3805. @click="
  3806. markScoreDig2(
  3807. w.sName,
  3808. worksStudent,
  3809. w.userid,
  3810. toolIndex,
  3811. chapInfoList[courseType].chapterInfo[0]
  3812. .taskJson[taskCount].eList,
  3813. AIloading[toolIndex][wIndex].loading,
  3814. tool
  3815. )
  3816. "
  3817. slot="reference"
  3818. :class="{
  3819. rightW:
  3820. w.userid == userid ||
  3821. tType == 1 ||
  3822. tType == 4 ||
  3823. w.ateacher == userid
  3824. }"
  3825. >
  3826. <span v-if="AIloading[toolIndex][wIndex].sco">
  3827. {{
  3828. AIloading[toolIndex][wIndex].loading
  3829. ? lang.ssScoringIn
  3830. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3831. }}
  3832. </span>
  3833. <span v-else>
  3834. {{
  3835. AIloading[toolIndex][wIndex].loading
  3836. ? lang.ssScoringIn
  3837. : lang.ssMarkScore
  3838. }}
  3839. </span>
  3840. </div>
  3841. </el-popover>
  3842. </div>
  3843. <img
  3844. class="deleteImg"
  3845. src="../../assets/deleteworks.png"
  3846. v-if="
  3847. w.userid == userid || tType == 1 || tType == 4
  3848. "
  3849. @click.stop="deleteWorks(w.wid)"
  3850. alt
  3851. />
  3852. </div>
  3853. <div class="workImg" v-if="w.type == 3">
  3854. <img
  3855. style="cursor: pointer"
  3856. :src="video"
  3857. @click="openVideo(w)"
  3858. alt
  3859. />
  3860. <!-- @click="openVideo(w.works)" -->
  3861. <div
  3862. class="answerScore"
  3863. v-if="w.score"
  3864. @click.stop="openScore(w)"
  3865. :class="{
  3866. rightW:
  3867. w.userid == userid ||
  3868. tType == 1 ||
  3869. tType == 4 ||
  3870. w.ateacher == userid
  3871. }"
  3872. >
  3873. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  3874. </div>
  3875. <div
  3876. class="answerScore"
  3877. @click.stop="openScore(w)"
  3878. v-else-if="
  3879. courseDetail.userid == userid &&
  3880. courseDetail.state != 5 &&
  3881. chapInfoList[courseType].chapterInfo[0]
  3882. .taskJson[taskCount].eList &&
  3883. chapInfoList[courseType].chapterInfo[0]
  3884. .taskJson[taskCount].eList.length
  3885. "
  3886. :class="{
  3887. rightW:
  3888. w.userid == userid ||
  3889. tType == 1 ||
  3890. tType == 4 ||
  3891. w.ateacher == userid
  3892. }"
  3893. >
  3894. {{lang.ssMarkScore}}
  3895. </div>
  3896. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3897. <div
  3898. v-else-if="
  3899. (courseDetail.userid == userid ||
  3900. (courseDetail.course_teacher &&
  3901. courseDetail.course_teacher.indexOf(userid) !=
  3902. -1) ||
  3903. (w.userid == userid && sIsOpen)) &&
  3904. courseDetail.state == 5 &&
  3905. ((chapInfoList[courseType].chapterInfo[0]
  3906. .taskJson[taskCount].eList &&
  3907. chapInfoList[courseType].chapterInfo[0]
  3908. .taskJson[taskCount].eList.length) ||
  3909. (tool.eList && tool.eList.length))
  3910. "
  3911. >
  3912. <el-popover
  3913. placement="top"
  3914. width="318"
  3915. :disabled="AIloading[toolIndex][wIndex].loading"
  3916. trigger="hover"
  3917. >
  3918. <markScore
  3919. :loading="AIloading[toolIndex][wIndex].loading"
  3920. :markScoreVisible="markScoreVisible"
  3921. :ref="`markSco${toolIndex}${wIndex}`"
  3922. @updateLoading="updateLoading"
  3923. @updateDocSco="updateDocSco"
  3924. @refreshOther="refreshOther"
  3925. @markScoreDig="markScoreDig"
  3926. :tool="tool"
  3927. :wIndex="wIndex"
  3928. :scoCon="w"
  3929. :toolIndex="toolIndex"
  3930. :key="refreshKey"
  3931. :stage="courseType"
  3932. :task="taskCount"
  3933. :scoTit="
  3934. chapInfoList[courseType].chapterInfo[0]
  3935. .taskJson[taskCount].eList
  3936. "
  3937. >
  3938. </markScore>
  3939. <div
  3940. class="answerScore"
  3941. @click="
  3942. markScoreDig2(
  3943. w.sName,
  3944. worksStudent,
  3945. w.userid,
  3946. toolIndex,
  3947. chapInfoList[courseType].chapterInfo[0]
  3948. .taskJson[taskCount].eList,
  3949. AIloading[toolIndex][wIndex].loading,
  3950. tool
  3951. )
  3952. "
  3953. slot="reference"
  3954. :class="{
  3955. rightW:
  3956. w.userid == userid ||
  3957. tType == 1 ||
  3958. tType == 4 ||
  3959. w.ateacher == userid
  3960. }"
  3961. >
  3962. <span v-if="AIloading[toolIndex][wIndex].sco">
  3963. {{
  3964. AIloading[toolIndex][wIndex].loading
  3965. ? lang.ssScoringIn
  3966. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  3967. }}
  3968. </span>
  3969. <span v-else>
  3970. {{
  3971. AIloading[toolIndex][wIndex].loading
  3972. ? lang.ssScoringIn
  3973. : lang.ssMarkScore
  3974. }}
  3975. </span>
  3976. </div>
  3977. </el-popover>
  3978. </div>
  3979. <img
  3980. class="deleteImg"
  3981. src="../../assets/deleteworks.png"
  3982. v-if="
  3983. w.userid == userid || tType == 1 || tType == 4
  3984. "
  3985. @click.stop="deleteWorks(w.wid)"
  3986. alt
  3987. />
  3988. </div>
  3989. <div class="workImg" v-if="w.type == 12">
  3990. <img
  3991. style="cursor: pointer"
  3992. :src="word2"
  3993. @click="downloadFile(w.works,w.userid)"
  3994. alt
  3995. />
  3996. <!-- @click="openVideo(w.works)" -->
  3997. <div
  3998. class="answerScore"
  3999. v-if="w.score"
  4000. @click.stop="openScore(w)"
  4001. :class="{
  4002. rightW:
  4003. w.userid == userid ||
  4004. tType == 1 ||
  4005. tType == 4 ||
  4006. w.ateacher == userid
  4007. }"
  4008. >
  4009. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  4010. </div>
  4011. <div
  4012. class="answerScore"
  4013. @click.stop="openScore(w)"
  4014. v-else-if="
  4015. courseDetail.userid == userid &&
  4016. courseDetail.state != 5 &&
  4017. chapInfoList[courseType].chapterInfo[0]
  4018. .taskJson[taskCount].eList &&
  4019. chapInfoList[courseType].chapterInfo[0]
  4020. .taskJson[taskCount].eList.length
  4021. "
  4022. :class="{
  4023. rightW:
  4024. w.userid == userid ||
  4025. tType == 1 ||
  4026. tType == 4 ||
  4027. w.ateacher == userid
  4028. }"
  4029. >
  4030. {{lang.ssMarkScore}}
  4031. </div>
  4032. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4033. <div
  4034. v-else-if="
  4035. (courseDetail.userid == userid ||
  4036. (courseDetail.course_teacher &&
  4037. courseDetail.course_teacher.indexOf(userid) !=
  4038. -1) ||
  4039. (w.userid == userid && sIsOpen)) &&
  4040. courseDetail.state == 5 &&
  4041. ((chapInfoList[courseType].chapterInfo[0]
  4042. .taskJson[taskCount].eList &&
  4043. chapInfoList[courseType].chapterInfo[0]
  4044. .taskJson[taskCount].eList.length) ||
  4045. (tool.eList && tool.eList.length))
  4046. "
  4047. >
  4048. <el-popover
  4049. placement="top"
  4050. width="318"
  4051. :disabled="AIloading[toolIndex][wIndex].loading"
  4052. trigger="hover"
  4053. >
  4054. <markScore
  4055. :loading="AIloading[toolIndex][wIndex].loading"
  4056. :markScoreVisible="markScoreVisible"
  4057. :ref="`markSco${toolIndex}${wIndex}`"
  4058. @updateLoading="updateLoading"
  4059. @updateDocSco="updateDocSco"
  4060. @refreshOther="refreshOther"
  4061. @markScoreDig="markScoreDig"
  4062. :tool="tool"
  4063. :wIndex="wIndex"
  4064. :scoCon="w"
  4065. :toolIndex="toolIndex"
  4066. :key="refreshKey"
  4067. :stage="courseType"
  4068. :task="taskCount"
  4069. :scoTit="
  4070. chapInfoList[courseType].chapterInfo[0]
  4071. .taskJson[taskCount].eList
  4072. "
  4073. >
  4074. </markScore>
  4075. <div
  4076. class="answerScore"
  4077. @click="
  4078. markScoreDig2(
  4079. w.sName,
  4080. worksStudent,
  4081. w.userid,
  4082. toolIndex,
  4083. chapInfoList[courseType].chapterInfo[0]
  4084. .taskJson[taskCount].eList,
  4085. AIloading[toolIndex][wIndex].loading,
  4086. tool
  4087. )
  4088. "
  4089. slot="reference"
  4090. :class="{
  4091. rightW:
  4092. w.userid == userid ||
  4093. tType == 1 ||
  4094. tType == 4 ||
  4095. w.ateacher == userid
  4096. }"
  4097. >
  4098. <span v-if="AIloading[toolIndex][wIndex].sco">
  4099. {{
  4100. AIloading[toolIndex][wIndex].loading
  4101. ? lang.ssScoringIn
  4102. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  4103. }}
  4104. </span>
  4105. <span v-else>
  4106. {{
  4107. AIloading[toolIndex][wIndex].loading
  4108. ? lang.ssScoringIn
  4109. : lang.ssMarkScore
  4110. }}
  4111. </span>
  4112. </div>
  4113. </el-popover>
  4114. </div>
  4115. <img
  4116. class="deleteImg"
  4117. src="../../assets/deleteworks.png"
  4118. v-if="
  4119. w.userid == userid || tType == 1 || tType == 4
  4120. "
  4121. @click.stop="deleteWorks(w.wid)"
  4122. alt
  4123. />
  4124. </div>
  4125. <div class="comment" style="min-width: 200px">
  4126. <div class="worksName">
  4127. <div>{{ w.sName }}</div>
  4128. </div>
  4129. <div class="commentList">
  4130. <div class="commentList">
  4131. <div
  4132. class="commentImg"
  4133. @click="
  4134. isLikes(
  4135. w.wid,
  4136. userid,
  4137. 1,
  4138. null,
  4139. w.isLikes,
  4140. w.sName
  4141. )
  4142. "
  4143. >
  4144. <img
  4145. :src="w.isLikes == true ? likes : noLikes"
  4146. alt=""
  4147. />
  4148. </div>
  4149. <div>{{ w.likesCount }}</div>
  4150. </div>
  4151. <div class="commentList" style="margin-right: 15px">
  4152. <div
  4153. class="commentImg"
  4154. @click="commentOther(w, toolIndex, wIndex)"
  4155. >
  4156. <img
  4157. src="../../assets/icon/comment/comment.png"
  4158. alt=""
  4159. />
  4160. </div>
  4161. <div>{{ w.commentCount }}</div>
  4162. </div>
  4163. </div>
  4164. </div>
  4165. </div>
  4166. </div>
  4167. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4168. {{lang.ssNotSubmitted}}
  4169. </div>
  4170. <div
  4171. class="noWorksS"
  4172. v-if="noWorksS && noWorksS[toolIndex].length"
  4173. >
  4174. <div
  4175. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4176. :key="sIndex"
  4177. class="noWorksName"
  4178. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4179. >
  4180. <el-tooltip
  4181. effect="dark"
  4182. :content="s.student"
  4183. placement="top"
  4184. >
  4185. <span>{{ s.student }}</span>
  4186. </el-tooltip>
  4187. </div>
  4188. </div>
  4189. </div>
  4190. <div
  4191. v-if="
  4192. tType &&
  4193. ((tType == 2 && sIsOpen == true) ||
  4194. tType == 1 ||
  4195. tType == 4) &&
  4196. tool.tool.indexOf(70) != -1
  4197. "
  4198. class="worksBox"
  4199. >
  4200. <div
  4201. class="zuoyeYulan"
  4202. v-if="
  4203. worksStudent.length &&
  4204. worksStudent[toolIndex].length > 0
  4205. "
  4206. >
  4207. <div class="worksTop">
  4208. <div>{{lang.ssHomeworkPreview}}</div>
  4209. <div
  4210. class="corOpen"
  4211. @click="contract(toolIndex)"
  4212. v-if="
  4213. isCloseList[toolIndex].isCloseBoolean &&
  4214. isCloseList[toolIndex].isClose == 0
  4215. "
  4216. >
  4217. {{lang.ssFold}}
  4218. </div>
  4219. <div
  4220. class="corOpen"
  4221. @click="contract(toolIndex)"
  4222. v-if="isCloseList[toolIndex].isClose == 1"
  4223. >
  4224. {{lang.ssExpand}}
  4225. </div>
  4226. </div>
  4227. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4228. </div>
  4229. <div
  4230. :id="'tool-' + toolIndex"
  4231. :style="{
  4232. height:
  4233. isCloseList[toolIndex].isClose == 1
  4234. ? retrnToolHeight('tool-' + toolIndex)
  4235. : 'auto',
  4236. overflow:
  4237. isCloseList[toolIndex].isClose == 1
  4238. ? 'hidden'
  4239. : 'unset'
  4240. }"
  4241. class="worksDetailBox"
  4242. v-if="
  4243. worksStudent.length &&
  4244. worksStudent[toolIndex].length > 0
  4245. "
  4246. >
  4247. <div
  4248. class="works"
  4249. style="
  4250. width: 200px;
  4251. height: 140px;
  4252. margin: 10px 10px 10px 0;
  4253. border-radius: 15px;
  4254. box-shadow: 0 0 6px 1px #dfdada;
  4255. "
  4256. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4257. :key="wIndex"
  4258. :class="w.type == 1 ? 'isTypeOne' : ''"
  4259. >
  4260. <div
  4261. class="workImg"
  4262. @click.stop="openScore(w, toolIndex)"
  4263. >
  4264. <img :src="word" alt />
  4265. <img
  4266. class="deleteImg"
  4267. src="../../assets/deleteworks.png"
  4268. v-if="
  4269. w.userid == userid || tType == 1 || tType == 4
  4270. "
  4271. @click.stop="deleteWorks(w.wid)"
  4272. alt
  4273. />
  4274. </div>
  4275. <div class="comment" style="min-width: 200px">
  4276. <div class="worksName">
  4277. <div>{{ w.sName }}</div>
  4278. </div>
  4279. </div>
  4280. </div>
  4281. </div>
  4282. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4283. {{lang.ssNotSubmitted}}
  4284. </div>
  4285. <div
  4286. class="noWorksS"
  4287. v-if="noWorksS && noWorksS[toolIndex].length"
  4288. >
  4289. <div
  4290. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4291. :key="sIndex"
  4292. class="noWorksName"
  4293. >
  4294. <el-tooltip
  4295. effect="dark"
  4296. :content="s.student"
  4297. placement="top"
  4298. >
  4299. <span>{{ s.student }}</span>
  4300. </el-tooltip>
  4301. </div>
  4302. </div>
  4303. </div>
  4304. <div
  4305. v-if="
  4306. tType &&
  4307. tType == 2 &&
  4308. !sIsOpen &&
  4309. tool.tool.indexOf(70) != -1
  4310. "
  4311. class="worksBox"
  4312. >
  4313. <div
  4314. class="zuoyeYulan"
  4315. v-if="workStudent[toolIndex].length > 0"
  4316. >
  4317. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  4318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4319. </div>
  4320. <div
  4321. class="worksDetailBox"
  4322. v-if="workStudent[toolIndex].length > 0"
  4323. >
  4324. <div
  4325. class="works"
  4326. style="
  4327. width: 200px;
  4328. height: 140px;
  4329. margin: 10px 10px 10px 0;
  4330. box-shadow: 0 0 6px 1px #dfdada;
  4331. "
  4332. v-for="(w, wIndex) in workStudent[toolIndex]"
  4333. :key="wIndex"
  4334. >
  4335. <div
  4336. class="workImg"
  4337. @click.stop="openScore(w, toolIndex)"
  4338. >
  4339. <img :src="word" alt />
  4340. <img
  4341. class="deleteImg"
  4342. src="../../assets/deleteworks.png"
  4343. v-if="
  4344. w.userid == userid || tType == 1 || tType == 4
  4345. "
  4346. @click.stop="deleteWorks(w.wid)"
  4347. alt
  4348. />
  4349. </div>
  4350. <div class="worksName">
  4351. <div>{{ w.sName }}</div>
  4352. </div>
  4353. </div>
  4354. </div>
  4355. </div>
  4356. <div
  4357. v-if="
  4358. tType &&
  4359. ((tType == 2 && sIsOpen == true) ||
  4360. tType == 1 ||
  4361. tType == 4) &&
  4362. tool.tool.indexOf(32) != -1
  4363. "
  4364. class="worksBox"
  4365. >
  4366. <div
  4367. class="zuoyeYulan"
  4368. v-if="
  4369. worksStudent.length &&
  4370. worksStudent[toolIndex].length > 0
  4371. "
  4372. >
  4373. <div class="worksTop">
  4374. <div>{{lang.ssHomeworkPreview}}</div>
  4375. <div
  4376. class="corOpen"
  4377. @click="contract(toolIndex)"
  4378. v-if="
  4379. isCloseList[toolIndex].isCloseBoolean &&
  4380. isCloseList[toolIndex].isClose == 0
  4381. "
  4382. >
  4383. {{lang.ssFold}}
  4384. </div>
  4385. <div
  4386. class="corOpen"
  4387. @click="contract(toolIndex)"
  4388. v-if="isCloseList[toolIndex].isClose == 1"
  4389. >
  4390. {{lang.ssExpand}}
  4391. </div>
  4392. </div>
  4393. </div>
  4394. <div
  4395. :id="'tool-' + toolIndex"
  4396. :style="{
  4397. height:
  4398. isCloseList[toolIndex].isClose == 1
  4399. ? retrnToolHeight('tool-' + toolIndex)
  4400. : 'auto',
  4401. overflow:
  4402. isCloseList[toolIndex].isClose == 1
  4403. ? 'hidden'
  4404. : 'unset'
  4405. }"
  4406. class="worksDetailBox"
  4407. v-if="
  4408. worksStudent.length &&
  4409. worksStudent[toolIndex].length > 0
  4410. "
  4411. >
  4412. <div
  4413. class="works"
  4414. style="
  4415. width: 200px;
  4416. height: 140px;
  4417. margin: 10px 10px 10px 0;
  4418. border-radius: 15px;
  4419. box-shadow: 0 0 6px 1px #dfdada;
  4420. "
  4421. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4422. :key="wIndex"
  4423. :class="w.type == 1 ? 'isTypeOne' : ''"
  4424. >
  4425. <div class="workImg">
  4426. <img
  4427. :src="word2"
  4428. @click="downloadFile(w.works,w.userid)"
  4429. alt
  4430. />
  4431. <div
  4432. class="answerScore"
  4433. v-if="w.score"
  4434. @click.stop="openScore(w)"
  4435. :class="{
  4436. rightW:
  4437. w.userid == userid ||
  4438. tType == 1 ||
  4439. tType == 4 ||
  4440. w.ateacher == userid
  4441. }"
  4442. >
  4443. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  4444. </div>
  4445. <div
  4446. class="answerScore"
  4447. @click.stop="openScore(w)"
  4448. v-else-if="courseDetail.userid == userid"
  4449. :class="{
  4450. rightW:
  4451. w.userid == userid ||
  4452. tType == 1 ||
  4453. tType == 4 ||
  4454. w.ateacher == userid
  4455. }"
  4456. >
  4457. {{lang.ssMarkScore}}
  4458. </div>
  4459. <img
  4460. class="deleteImg"
  4461. src="../../assets/deleteworks.png"
  4462. v-if="
  4463. w.userid == userid || tType == 1 || tType == 4
  4464. "
  4465. @click.stop="deleteWorks(w.wid)"
  4466. alt
  4467. />
  4468. </div>
  4469. <div class="comment" style="min-width: 200px">
  4470. <div class="worksName">
  4471. <div>{{ w.sName }}</div>
  4472. </div>
  4473. <div class="commentList">
  4474. <div class="commentList">
  4475. <div
  4476. class="commentImg"
  4477. @click="
  4478. isLikes(
  4479. w.wid,
  4480. userid,
  4481. 1,
  4482. null,
  4483. w.isLikes,
  4484. w.sName
  4485. )
  4486. "
  4487. >
  4488. <img
  4489. :src="w.isLikes == true ? likes : noLikes"
  4490. alt=""
  4491. />
  4492. </div>
  4493. <div>{{ w.likesCount }}</div>
  4494. </div>
  4495. <div class="commentList" style="margin-right: 15px">
  4496. <div
  4497. class="commentImg"
  4498. @click="commentOther(w, toolIndex, wIndex)"
  4499. >
  4500. <img
  4501. src="../../assets/icon/comment/comment.png"
  4502. alt=""
  4503. />
  4504. </div>
  4505. <div>{{ w.commentCount }}</div>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. </div>
  4510. </div>
  4511. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4512. {{lang.ssNotSubmitted}}
  4513. </div>
  4514. <div
  4515. class="noWorksS"
  4516. v-if="noWorksS && noWorksS[toolIndex].length"
  4517. >
  4518. <div
  4519. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4520. :key="sIndex"
  4521. class="noWorksName"
  4522. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4523. >
  4524. <el-tooltip
  4525. effect="dark"
  4526. :content="s.student"
  4527. placement="top"
  4528. >
  4529. <span>{{ s.student }}</span>
  4530. </el-tooltip>
  4531. </div>
  4532. </div>
  4533. </div>
  4534. <div
  4535. v-if="
  4536. tType &&
  4537. ((tType == 2 && sIsOpen == true) ||
  4538. tType == 1 ||
  4539. tType == 4) &&
  4540. tool.tool.indexOf(57) != -1
  4541. "
  4542. class="worksBox"
  4543. >
  4544. <div
  4545. class="zuoyeYulan"
  4546. v-if="
  4547. worksStudent.length &&
  4548. worksStudent[toolIndex].length > 0
  4549. "
  4550. >
  4551. <div class="worksTop">
  4552. <div>{{lang.ssHomeworkPreview}}</div>
  4553. <div
  4554. class="corOpen"
  4555. @click="contract(toolIndex)"
  4556. v-if="
  4557. isCloseList[toolIndex].isCloseBoolean &&
  4558. isCloseList[toolIndex].isClose == 0
  4559. "
  4560. >
  4561. {{lang.ssFold}}
  4562. </div>
  4563. <div
  4564. class="corOpen"
  4565. @click="contract(toolIndex)"
  4566. v-if="isCloseList[toolIndex].isClose == 1"
  4567. >
  4568. {{lang.ssExpand}}
  4569. </div>
  4570. </div>
  4571. </div>
  4572. <div
  4573. :id="'tool-' + toolIndex"
  4574. :style="{
  4575. height:
  4576. isCloseList[toolIndex].isClose == 1
  4577. ? retrnToolHeight('tool-' + toolIndex)
  4578. : 'auto',
  4579. overflow:
  4580. isCloseList[toolIndex].isClose == 1
  4581. ? 'hidden'
  4582. : 'unset'
  4583. }"
  4584. class="worksDetailBox"
  4585. v-if="
  4586. worksStudent.length &&
  4587. worksStudent[toolIndex].length > 0
  4588. "
  4589. >
  4590. <div
  4591. class="works"
  4592. style="
  4593. width: 200px;
  4594. height: 140px;
  4595. margin: 10px 10px 10px 0;
  4596. border-radius: 15px;
  4597. box-shadow: 0 0 6px 1px #dfdada;
  4598. "
  4599. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4600. :key="wIndex"
  4601. :class="w.type == 1 ? 'isTypeOne' : ''"
  4602. >
  4603. <div class="workImg">
  4604. <img
  4605. :src="word2"
  4606. @click="downloadFile(w.works,w.userid)"
  4607. v-if="w.type == 12"
  4608. alt
  4609. />
  4610. <img
  4611. :src="word2"
  4612. @click="
  4613. openCocoPi(57, toolIndex, w.userid, w.sName)
  4614. "
  4615. v-else-if="w.type == 15"
  4616. alt
  4617. />
  4618. <div
  4619. class="answerScore"
  4620. v-if="w.score"
  4621. @click.stop="openScore(w)"
  4622. :class="{
  4623. rightW:
  4624. w.userid == userid ||
  4625. tType == 1 ||
  4626. tType == 4 ||
  4627. w.ateacher == userid
  4628. }"
  4629. >
  4630. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  4631. </div>
  4632. <div
  4633. class="answerScore"
  4634. @click.stop="openScore(w)"
  4635. v-else-if="
  4636. courseDetail.userid == userid &&
  4637. courseDetail.state != 5 &&
  4638. chapInfoList[courseType].chapterInfo[0]
  4639. .taskJson[taskCount].eList &&
  4640. chapInfoList[courseType].chapterInfo[0]
  4641. .taskJson[taskCount].eList.length
  4642. "
  4643. :class="{
  4644. rightW:
  4645. w.userid == userid ||
  4646. tType == 1 ||
  4647. tType == 4 ||
  4648. w.ateacher == userid
  4649. }"
  4650. >
  4651. {{lang.ssMarkScore}}
  4652. </div>
  4653. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4654. <div
  4655. v-else-if="
  4656. (courseDetail.userid == userid ||
  4657. (courseDetail.course_teacher &&
  4658. courseDetail.course_teacher.indexOf(userid) !=
  4659. -1) ||
  4660. (w.userid == userid && sIsOpen)) &&
  4661. courseDetail.state == 5 &&
  4662. ((chapInfoList[courseType].chapterInfo[0]
  4663. .taskJson[taskCount].eList &&
  4664. chapInfoList[courseType].chapterInfo[0]
  4665. .taskJson[taskCount].eList.length) ||
  4666. (tool.eList && tool.eList.length))
  4667. "
  4668. >
  4669. <el-popover
  4670. placement="top"
  4671. width="318"
  4672. :disabled="AIloading[toolIndex][wIndex].loading"
  4673. trigger="hover"
  4674. >
  4675. <markScore
  4676. :loading="AIloading[toolIndex][wIndex].loading"
  4677. :markScoreVisible="markScoreVisible"
  4678. :ref="`markSco${toolIndex}${wIndex}`"
  4679. @updateLoading="updateLoading"
  4680. @updateDocSco="updateDocSco"
  4681. @refreshOther="refreshOther"
  4682. @markScoreDig="markScoreDig"
  4683. :tool="tool"
  4684. :wIndex="wIndex"
  4685. :scoCon="w"
  4686. :toolIndex="toolIndex"
  4687. :key="refreshKey"
  4688. :stage="courseType"
  4689. :task="taskCount"
  4690. :scoTit="
  4691. chapInfoList[courseType].chapterInfo[0]
  4692. .taskJson[taskCount].eList
  4693. "
  4694. >
  4695. </markScore>
  4696. <div
  4697. class="answerScore"
  4698. @click="
  4699. markScoreDig2(
  4700. w.sName,
  4701. worksStudent,
  4702. w.userid,
  4703. toolIndex,
  4704. chapInfoList[courseType].chapterInfo[0]
  4705. .taskJson[taskCount].eList,
  4706. AIloading[toolIndex][wIndex].loading,
  4707. tool
  4708. )
  4709. "
  4710. slot="reference"
  4711. :class="{
  4712. rightW:
  4713. w.userid == userid ||
  4714. tType == 1 ||
  4715. tType == 4 ||
  4716. w.ateacher == userid
  4717. }"
  4718. >
  4719. <span v-if="AIloading[toolIndex][wIndex].sco">
  4720. {{
  4721. AIloading[toolIndex][wIndex].loading
  4722. ? lang.ssScoringIn
  4723. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  4724. }}
  4725. </span>
  4726. <span v-else>
  4727. {{
  4728. AIloading[toolIndex][wIndex].loading
  4729. ? lang.ssScoringIn
  4730. : lang.ssMarkScore
  4731. }}
  4732. </span>
  4733. </div>
  4734. </el-popover>
  4735. </div>
  4736. <img
  4737. class="deleteImg"
  4738. src="../../assets/deleteworks.png"
  4739. v-if="
  4740. w.userid == userid || tType == 1 || tType == 4
  4741. "
  4742. @click.stop="deleteWorks(w.wid)"
  4743. alt
  4744. />
  4745. </div>
  4746. <div class="comment" style="min-width: 200px">
  4747. <div class="worksName">
  4748. <div>{{ w.sName }}</div>
  4749. </div>
  4750. <div class="commentList">
  4751. <div class="commentList">
  4752. <div
  4753. class="commentImg"
  4754. @click="
  4755. isLikes(
  4756. w.wid,
  4757. userid,
  4758. 1,
  4759. null,
  4760. w.isLikes,
  4761. w.sName
  4762. )
  4763. "
  4764. >
  4765. <img
  4766. :src="w.isLikes == true ? likes : noLikes"
  4767. alt=""
  4768. />
  4769. </div>
  4770. <div>{{ w.likesCount }}</div>
  4771. </div>
  4772. <div class="commentList" style="margin-right: 15px">
  4773. <div
  4774. class="commentImg"
  4775. @click="commentOther(w, toolIndex, wIndex)"
  4776. >
  4777. <img
  4778. src="../../assets/icon/comment/comment.png"
  4779. alt=""
  4780. />
  4781. </div>
  4782. <div>{{ w.commentCount }}</div>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. </div>
  4787. </div>
  4788. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4789. {{lang.ssNotSubmitted}}
  4790. </div>
  4791. <div
  4792. class="noWorksS"
  4793. v-if="noWorksS && noWorksS[toolIndex].length"
  4794. >
  4795. <div
  4796. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4797. :key="sIndex"
  4798. class="noWorksName"
  4799. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4800. >
  4801. <el-tooltip
  4802. effect="dark"
  4803. :content="s.student"
  4804. placement="top"
  4805. >
  4806. <span>{{ s.student }}</span>
  4807. </el-tooltip>
  4808. </div>
  4809. </div>
  4810. </div>
  4811. <div
  4812. v-if="
  4813. tType &&
  4814. ((tType == 2 && sIsOpen == true) ||
  4815. tType == 1 ||
  4816. tType == 4) &&
  4817. tool.tool.indexOf(72) != -1
  4818. "
  4819. class="worksBox"
  4820. >
  4821. <div
  4822. class="zuoyeYulan"
  4823. style="display: flex;justify-content: space-between;align-items: center;"
  4824. v-if="
  4825. worksStudent.length &&
  4826. worksStudent[toolIndex].length > 0
  4827. "
  4828. >
  4829. <div class="worksTop">
  4830. <div>{{lang.ssHomeworkPreview}}</div>
  4831. <div
  4832. class="corOpen"
  4833. @click="contract(toolIndex)"
  4834. v-if="
  4835. isCloseList[toolIndex].isCloseBoolean &&
  4836. isCloseList[toolIndex].isClose == 0
  4837. "
  4838. >
  4839. {{lang.ssFold}}
  4840. </div>
  4841. <div
  4842. class="corOpen"
  4843. @click="contract(toolIndex)"
  4844. v-if="isCloseList[toolIndex].isClose == 1"
  4845. >
  4846. {{lang.ssExpand}}
  4847. </div>
  4848. </div>
  4849. <div
  4850. style="display: flex;"
  4851. v-if="
  4852. (courseDetail.userid == userid ||
  4853. (courseDetail.course_teacher &&
  4854. courseDetail.course_teacher.indexOf(userid) !=
  4855. -1)) &&
  4856. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4857. taskCount
  4858. ].eList &&
  4859. chapInfoList[courseType].chapterInfo[0].taskJson[
  4860. taskCount
  4861. ].eList.length) ||
  4862. (tool.eList && tool.eList.length)) &&
  4863. courseDetail.state == 5
  4864. "
  4865. >
  4866. <!-- <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 == 5"> -->
  4867. <div
  4868. @click="
  4869. resetLoopEva(
  4870. worksStudent[toolIndex],
  4871. chapInfoList[courseType].chapterInfo[0].taskJson[
  4872. taskCount
  4873. ].eList,
  4874. courseType,
  4875. taskCount,
  4876. toolIndex,
  4877. tool.toolDetail,
  4878. tool
  4879. )
  4880. "
  4881. style="margin-right:10px"
  4882. class="ScoreBtn"
  4883. >
  4884. {{lang.ssReset}}
  4885. </div>
  4886. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4887. <img
  4888. src="../../assets/icon/newIcons/rootImg.png"
  4889. alt=""
  4890. />
  4891. {{lang.ssAiScore}}
  4892. </div>
  4893. <div
  4894. class="ScoreBtn"
  4895. v-else-if="!loopLoading[toolIndex].loading"
  4896. @click="
  4897. loopEva(
  4898. worksStudent[toolIndex],
  4899. chapInfoList[courseType].chapterInfo[0].taskJson[
  4900. taskCount
  4901. ].eList,
  4902. courseType,
  4903. taskCount,
  4904. toolIndex,
  4905. tool.toolDetail,
  4906. chapInfoList[courseType].chapterInfo[0].taskJson[
  4907. taskCount
  4908. ].taskDetail,
  4909. tool
  4910. )
  4911. "
  4912. >
  4913. <img
  4914. src="../../assets/icon/newIcons/rootImg.png"
  4915. alt=""
  4916. />
  4917. {{lang.ssAiScore}}
  4918. </div>
  4919. <div class="ScoreBtn" v-else>
  4920. <img
  4921. src="../../assets/icon/newIcons/rootImg.png"
  4922. alt=""
  4923. />
  4924. {{lang.ssScoring}}
  4925. </div>
  4926. </div>
  4927. </div>
  4928. <div
  4929. :id="'tool-' + toolIndex"
  4930. :style="{
  4931. height:
  4932. isCloseList[toolIndex].isClose == 1
  4933. ? retrnToolHeight('tool-' + toolIndex)
  4934. : 'auto',
  4935. overflow:
  4936. isCloseList[toolIndex].isClose == 1
  4937. ? 'hidden'
  4938. : 'unset'
  4939. }"
  4940. class="worksDetailBox"
  4941. v-if="
  4942. worksStudent.length &&
  4943. worksStudent[toolIndex].length > 0
  4944. "
  4945. >
  4946. <div
  4947. class="works"
  4948. style="
  4949. width: 200px;
  4950. height: 140px;
  4951. margin: 10px 10px 10px 0;
  4952. border-radius: 15px;
  4953. box-shadow: 0 0 6px 1px #dfdada;
  4954. "
  4955. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4956. :key="wIndex"
  4957. :class="w.type == 1 ? 'isTypeOne' : ''"
  4958. >
  4959. <div class="workImg">
  4960. <!-- <img
  4961. :src="word2"
  4962. @click="downloadFile(w.works)"
  4963. v-if="w.type == 12"
  4964. alt
  4965. /> -->
  4966. <img
  4967. :src="word2"
  4968. @click="
  4969. openCocoFlow(w)
  4970. "
  4971. alt
  4972. />
  4973. <div
  4974. class="answerScore"
  4975. v-if="w.score"
  4976. @click.stop="openScore(w)"
  4977. :class="{
  4978. rightW:
  4979. w.userid == userid ||
  4980. tType == 1 ||
  4981. tType == 4 ||
  4982. w.ateacher == userid
  4983. }"
  4984. >
  4985. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  4986. </div>
  4987. <div
  4988. class="answerScore"
  4989. @click.stop="openScore(w)"
  4990. v-else-if="
  4991. courseDetail.userid == userid &&
  4992. courseDetail.state != 5 &&
  4993. chapInfoList[courseType].chapterInfo[0]
  4994. .taskJson[taskCount].eList &&
  4995. chapInfoList[courseType].chapterInfo[0]
  4996. .taskJson[taskCount].eList.length
  4997. "
  4998. :class="{
  4999. rightW:
  5000. w.userid == userid ||
  5001. tType == 1 ||
  5002. tType == 4 ||
  5003. w.ateacher == userid
  5004. }"
  5005. >
  5006. {{lang.ssMarkScore}}
  5007. </div>
  5008. <div
  5009. v-else-if="
  5010. (courseDetail.userid == userid ||
  5011. (courseDetail.course_teacher &&
  5012. courseDetail.course_teacher.indexOf(userid) !=
  5013. -1) ||
  5014. (w.userid == userid && sIsOpen)) &&
  5015. courseDetail.state == 5 &&
  5016. ((chapInfoList[courseType].chapterInfo[0]
  5017. .taskJson[taskCount].eList &&
  5018. chapInfoList[courseType].chapterInfo[0]
  5019. .taskJson[taskCount].eList.length) ||
  5020. (tool.eList && tool.eList.length))
  5021. "
  5022. >
  5023. <!-- <div
  5024. class="answerScore"
  5025. @click="markScoreDig(w.userid,toolIndex)"
  5026. :class="{
  5027. rightW:
  5028. w.userid == userid ||
  5029. tType == 1 ||
  5030. tType == 4 ||
  5031. w.ateacher == userid,
  5032. }"
  5033. >
  5034. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'{{lang.ssMarkScore}}'}}
  5035. </div> -->
  5036. <!-- @show="handleShow(toolIndex,wIndex)"
  5037. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5038. <el-popover
  5039. placement="top"
  5040. width="318"
  5041. :disabled="AIloading[toolIndex][wIndex].loading"
  5042. trigger="hover"
  5043. >
  5044. <markScore
  5045. :loading="AIloading[toolIndex][wIndex].loading"
  5046. :markScoreVisible="markScoreVisible"
  5047. :ref="`markSco${toolIndex}${wIndex}`"
  5048. @updateLoading="updateLoading"
  5049. @updateDocSco="updateDocSco"
  5050. @refreshOther="refreshOther"
  5051. @markScoreDig="markScoreDig"
  5052. :tool="tool"
  5053. :wIndex="wIndex"
  5054. :scoCon="w"
  5055. :toolIndex="toolIndex"
  5056. :key="refreshKey"
  5057. :stage="courseType"
  5058. :task="taskCount"
  5059. :scoTit="
  5060. chapInfoList[courseType].chapterInfo[0]
  5061. .taskJson[taskCount].eList
  5062. "
  5063. >
  5064. </markScore>
  5065. <div
  5066. class="answerScore"
  5067. @click="
  5068. markScoreDig2(
  5069. w.sName,
  5070. worksStudent,
  5071. w.userid,
  5072. toolIndex,
  5073. chapInfoList[courseType].chapterInfo[0]
  5074. .taskJson[taskCount].eList,
  5075. AIloading[toolIndex][wIndex].loading,
  5076. tool
  5077. )
  5078. "
  5079. slot="reference"
  5080. :class="{
  5081. rightW:
  5082. w.userid == userid ||
  5083. tType == 1 ||
  5084. tType == 4 ||
  5085. w.ateacher == userid
  5086. }"
  5087. >
  5088. <span v-if="AIloading[toolIndex][wIndex].sco">
  5089. {{
  5090. AIloading[toolIndex][wIndex].loading
  5091. ? lang.ssScoringIn
  5092. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5093. }}
  5094. </span>
  5095. <span v-else>
  5096. {{
  5097. AIloading[toolIndex][wIndex].loading
  5098. ? lang.ssScoringIn
  5099. : lang.ssMarkScore
  5100. }}
  5101. </span>
  5102. </div>
  5103. </el-popover>
  5104. </div>
  5105. <img
  5106. class="deleteImg"
  5107. src="../../assets/deleteworks.png"
  5108. v-if="
  5109. w.userid == userid || tType == 1 || tType == 4
  5110. "
  5111. @click.stop="deleteWorks(w.wid)"
  5112. alt
  5113. />
  5114. </div>
  5115. <div class="comment" style="min-width: 200px">
  5116. <div class="worksName">
  5117. <div>{{ w.sName }}</div>
  5118. </div>
  5119. <div class="commentList">
  5120. <div class="commentList">
  5121. <div
  5122. class="commentImg"
  5123. @click="
  5124. isLikes(
  5125. w.wid,
  5126. userid,
  5127. 1,
  5128. null,
  5129. w.isLikes,
  5130. w.sName
  5131. )
  5132. "
  5133. >
  5134. <img
  5135. :src="w.isLikes == true ? likes : noLikes"
  5136. alt=""
  5137. />
  5138. </div>
  5139. <div>{{ w.likesCount }}</div>
  5140. </div>
  5141. <div class="commentList" style="margin-right: 15px">
  5142. <div
  5143. class="commentImg"
  5144. @click="commentOther(w, toolIndex, wIndex)"
  5145. >
  5146. <img
  5147. src="../../assets/icon/comment/comment.png"
  5148. alt=""
  5149. />
  5150. </div>
  5151. <div>{{ w.commentCount }}</div>
  5152. </div>
  5153. </div>
  5154. </div>
  5155. </div>
  5156. </div>
  5157. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5158. {{lang.ssNotSubmitted}}
  5159. </div>
  5160. <div
  5161. class="noWorksS"
  5162. v-if="noWorksS && noWorksS[toolIndex].length"
  5163. >
  5164. <div
  5165. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5166. :key="sIndex"
  5167. class="noWorksName2"
  5168. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5169. >
  5170. <el-tooltip
  5171. effect="dark"
  5172. :content="s.student"
  5173. placement="top"
  5174. >
  5175. <span>{{ s.student }}</span>
  5176. </el-tooltip>
  5177. </div>
  5178. </div>
  5179. </div>
  5180. <div
  5181. v-if="
  5182. tType &&
  5183. tType == 2 &&
  5184. !sIsOpen &&
  5185. tool.tool.indexOf(72) != -1
  5186. "
  5187. class="worksBox"
  5188. >
  5189. <div
  5190. class="zuoyeYulan"
  5191. v-if="workStudent[toolIndex].length > 0"
  5192. >
  5193. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  5194. </div>
  5195. <div
  5196. class="worksDetailBox"
  5197. v-if="workStudent[toolIndex].length > 0"
  5198. >
  5199. <div
  5200. class="works"
  5201. style="
  5202. width: 200px;
  5203. height: 140px;
  5204. margin: 10px 10px 10px 0;
  5205. box-shadow: 0 0 6px 1px #dfdada;
  5206. "
  5207. v-for="(w, wIndex) in workStudent[toolIndex]"
  5208. :key="wIndex"
  5209. >
  5210. <div class="workImg">
  5211. <!-- <img
  5212. :src="word2"
  5213. @click="downloadFile(w.works)"
  5214. v-if="w.type == 12"
  5215. alt
  5216. /> -->
  5217. <img
  5218. :src="word2"
  5219. @click="
  5220. openCocoFlow(w)
  5221. "
  5222. alt
  5223. />
  5224. <div
  5225. class="answerScore"
  5226. v-if="w.score"
  5227. @click.stop="openScore(w)"
  5228. :class="{
  5229. rightW:
  5230. w.userid == userid || tType == 1 || tType == 4
  5231. }"
  5232. >
  5233. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  5234. </div>
  5235. <div
  5236. class="answerScore"
  5237. @click.stop="openScore(w)"
  5238. v-else-if="courseDetail.userid == userid"
  5239. :class="{
  5240. rightW:
  5241. w.userid == userid || tType == 1 || tType == 4
  5242. }"
  5243. >
  5244. {{lang.ssMarkScore}}
  5245. </div>
  5246. <div
  5247. class="stuLookScore"
  5248. v-if="
  5249. w.userid == userid ||
  5250. (tType == 1 &&
  5251. courseDetail.state == 5 &&
  5252. ((chapInfoList[courseType].chapterInfo[0]
  5253. .taskJson[taskCount].eList &&
  5254. chapInfoList[courseType].chapterInfo[0]
  5255. .taskJson[taskCount].eList.length) ||
  5256. (tool.eList && tool.eList.length)))
  5257. "
  5258. >
  5259. <el-popover
  5260. placement="top"
  5261. width="318"
  5262. trigger="hover"
  5263. >
  5264. <markScore
  5265. :loading="AIloading[toolIndex][wIndex].loading"
  5266. :markScoreVisible="markScoreVisible"
  5267. :ref="`markSco${toolIndex}${wIndex}`"
  5268. @updateLoading="updateLoading"
  5269. @updateDocSco="updateDocSco"
  5270. @refreshOther="refreshOther"
  5271. @markScoreDig="markScoreDig"
  5272. :tool="tool"
  5273. :wIndex="wIndex"
  5274. :scoCon="w"
  5275. :toolIndex="toolIndex"
  5276. :key="refreshKey"
  5277. :stage="courseType"
  5278. :task="taskCount"
  5279. :scoTit="
  5280. chapInfoList[courseType].chapterInfo[0]
  5281. .taskJson[taskCount].eList
  5282. "
  5283. >
  5284. </markScore>
  5285. <div
  5286. @click="
  5287. markScoreDig2(
  5288. w.sName,
  5289. worksStudent,
  5290. w.userid,
  5291. toolIndex,
  5292. chapInfoList[courseType].chapterInfo[0]
  5293. .taskJson[taskCount].eList,
  5294. AIloading[toolIndex][wIndex].loading,
  5295. tool
  5296. )
  5297. "
  5298. slot="reference"
  5299. >
  5300. <span v-if="AIloading[toolIndex][wIndex].sco">
  5301. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  5302. </span>
  5303. <span v-else>
  5304. {{lang.ssMarkScore}}
  5305. </span>
  5306. </div>
  5307. </el-popover>
  5308. </div>
  5309. <img
  5310. class="deleteImg"
  5311. src="../../assets/deleteworks.png"
  5312. v-if="
  5313. w.userid == userid || tType == 1 || tType == 4
  5314. "
  5315. @click.stop="deleteWorks(w.wid)"
  5316. alt
  5317. />
  5318. </div>
  5319. <div class="worksName">
  5320. <div>{{ w.sName }}</div>
  5321. </div>
  5322. </div>
  5323. </div>
  5324. </div>
  5325. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5326. <div
  5327. style="display: flex;justify-content: space-between;align-items: center;"
  5328. >
  5329. <div
  5330. class="zuoyeYulan"
  5331. v-if="
  5332. worksStudent.length &&
  5333. worksStudent[toolIndex].length > 0
  5334. "
  5335. >
  5336. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  5337. <div
  5338. class="corOpen"
  5339. @click="contract(toolIndex)"
  5340. v-if="
  5341. isCloseList[toolIndex].isCloseBoolean &&
  5342. isCloseList[toolIndex].isClose == 0
  5343. "
  5344. >
  5345. {{lang.ssFold}}
  5346. </div>
  5347. <div
  5348. class="corOpen"
  5349. @click="contract(toolIndex)"
  5350. v-if="isCloseList[toolIndex].isClose == 1"
  5351. >
  5352. {{lang.ssExpand}}
  5353. </div>
  5354. </div>
  5355. <div
  5356. style="display: flex;"
  5357. v-if="
  5358. (courseDetail.userid == userid ||
  5359. (courseDetail.course_teacher &&
  5360. courseDetail.course_teacher.indexOf(userid) !=
  5361. -1)) &&
  5362. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5363. taskCount
  5364. ].eList &&
  5365. chapInfoList[courseType].chapterInfo[0].taskJson[
  5366. taskCount
  5367. ].eList.length) ||
  5368. (tool.eList && tool.eList.length)) &&
  5369. courseDetail.state == 5
  5370. "
  5371. >
  5372. <!-- <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 == 5 "> -->
  5373. <div
  5374. style="margin-right:10px"
  5375. class="ScoreBtn"
  5376. @click="
  5377. resetLoopEva(
  5378. worksStudent[toolIndex],
  5379. chapInfoList[courseType].chapterInfo[0].taskJson[
  5380. taskCount
  5381. ].eList,
  5382. courseType,
  5383. taskCount,
  5384. toolIndex,
  5385. tool.toolDetail,
  5386. worksStudent
  5387. )
  5388. "
  5389. >
  5390. {{lang.ssReset}}
  5391. </div>
  5392. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5393. <img
  5394. src="../../assets/icon/newIcons/rootImg.png"
  5395. alt=""
  5396. />
  5397. {{lang.ssAiScore}}
  5398. </div>
  5399. <div
  5400. class="ScoreBtn"
  5401. v-else-if="!loopLoading[toolIndex].loading"
  5402. @click="
  5403. loopEva(
  5404. worksStudent[toolIndex],
  5405. chapInfoList[courseType].chapterInfo[0].taskJson[
  5406. taskCount
  5407. ].eList,
  5408. courseType,
  5409. taskCount,
  5410. toolIndex,
  5411. tool.toolDetail,
  5412. chapInfoList[courseType].chapterInfo[0].taskJson[
  5413. taskCount
  5414. ].taskDetail,
  5415. tool
  5416. )
  5417. "
  5418. >
  5419. <img
  5420. src="../../assets/icon/newIcons/rootImg.png"
  5421. alt=""
  5422. />
  5423. {{lang.ssAiScore}}
  5424. </div>
  5425. <div class="ScoreBtn" v-else>
  5426. <img
  5427. src="../../assets/icon/newIcons/rootImg.png"
  5428. alt=""
  5429. />
  5430. {{lang.ssScoring}}
  5431. </div>
  5432. </div>
  5433. </div>
  5434. <div
  5435. :id="'tool-' + toolIndex"
  5436. :style="{
  5437. height:
  5438. isCloseList[toolIndex].isClose == 1
  5439. ? retrnToolHeight('tool-' + toolIndex)
  5440. : 'auto',
  5441. overflow:
  5442. isCloseList[toolIndex].isClose == 1
  5443. ? 'hidden'
  5444. : 'unset'
  5445. }"
  5446. class="worksDetailBox"
  5447. v-if="
  5448. worksStudent.length &&
  5449. worksStudent[toolIndex].length > 0
  5450. "
  5451. >
  5452. <div
  5453. class="works"
  5454. style="
  5455. width: 200px;
  5456. height: 140px;
  5457. margin: 10px 10px 10px 0;
  5458. border-radius: 15px;
  5459. box-shadow: 0 0 6px 1px #dfdada;
  5460. "
  5461. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5462. :key="wIndex"
  5463. :class="w.type == 1 ? 'isTypeOne' : ''"
  5464. >
  5465. <div class="workImg" v-if="w.type == 0">
  5466. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5467. <img
  5468. :src="w.works"
  5469. @click="previewImg(w.works, w)"
  5470. alt
  5471. />
  5472. <div
  5473. class="answerScore"
  5474. v-if="w.score"
  5475. @click.stop="openScore(w)"
  5476. :class="{
  5477. rightW:
  5478. w.userid == userid ||
  5479. tType == 1 ||
  5480. tType == 4 ||
  5481. w.ateacher == userid
  5482. }"
  5483. >
  5484. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  5485. </div>
  5486. <div
  5487. class="answerScore"
  5488. @click.stop="openScore(w)"
  5489. v-else-if="
  5490. courseDetail.userid == userid &&
  5491. courseDetail.state != 5 &&
  5492. chapInfoList[courseType].chapterInfo[0]
  5493. .taskJson[taskCount].eList &&
  5494. chapInfoList[courseType].chapterInfo[0]
  5495. .taskJson[taskCount].eList.length
  5496. "
  5497. :class="{
  5498. rightW:
  5499. w.userid == userid ||
  5500. tType == 1 ||
  5501. tType == 4 ||
  5502. w.ateacher == userid
  5503. }"
  5504. >
  5505. {{lang.ssMarkScore}}
  5506. </div>
  5507. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5508. <div
  5509. v-else-if="
  5510. (courseDetail.userid == userid ||
  5511. (courseDetail.course_teacher &&
  5512. courseDetail.course_teacher.indexOf(userid) !=
  5513. -1) ||
  5514. (w.userid == userid && sIsOpen)) &&
  5515. courseDetail.state == 5 &&
  5516. ((chapInfoList[courseType].chapterInfo[0]
  5517. .taskJson[taskCount].eList &&
  5518. chapInfoList[courseType].chapterInfo[0]
  5519. .taskJson[taskCount].eList.length) ||
  5520. (tool.eList && tool.eList.length))
  5521. "
  5522. >
  5523. <el-popover
  5524. placement="top"
  5525. width="318"
  5526. :disabled="AIloading[toolIndex][wIndex].loading"
  5527. trigger="hover"
  5528. >
  5529. <markScore
  5530. :loading="AIloading[toolIndex][wIndex].loading"
  5531. :markScoreVisible="markScoreVisible"
  5532. :ref="`markSco${toolIndex}${wIndex}`"
  5533. @updateLoading="updateLoading"
  5534. @updateDocSco="updateDocSco"
  5535. @refreshOther="refreshOther"
  5536. @markScoreDig="markScoreDig"
  5537. :tool="tool"
  5538. :wIndex="wIndex"
  5539. :scoCon="w"
  5540. :toolIndex="toolIndex"
  5541. :key="refreshKey"
  5542. :stage="courseType"
  5543. :task="taskCount"
  5544. :scoTit="
  5545. chapInfoList[courseType].chapterInfo[0]
  5546. .taskJson[taskCount].eList
  5547. "
  5548. >
  5549. </markScore>
  5550. <div
  5551. class="answerScore"
  5552. @click="
  5553. markScoreDig2(
  5554. w.sName,
  5555. worksStudent,
  5556. w.userid,
  5557. toolIndex,
  5558. chapInfoList[courseType].chapterInfo[0]
  5559. .taskJson[taskCount].eList,
  5560. AIloading[toolIndex][wIndex].loading,
  5561. tool
  5562. )
  5563. "
  5564. slot="reference"
  5565. :class="{
  5566. rightW:
  5567. w.userid == userid ||
  5568. tType == 1 ||
  5569. tType == 4 ||
  5570. w.ateacher == userid
  5571. }"
  5572. >
  5573. <span v-if="AIloading[toolIndex][wIndex].sco">
  5574. {{
  5575. AIloading[toolIndex][wIndex].loading
  5576. ? lang.ssScoringIn
  5577. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5578. }}
  5579. </span>
  5580. <span v-else>
  5581. {{
  5582. AIloading[toolIndex][wIndex].loading
  5583. ? lang.ssScoringIn
  5584. : lang.ssMarkScore
  5585. }}
  5586. </span>
  5587. </div>
  5588. </el-popover>
  5589. </div>
  5590. <img
  5591. class="deleteImg"
  5592. src="../../assets/deleteworks.png"
  5593. v-if="
  5594. w.userid == userid || tType == 1 || tType == 4
  5595. "
  5596. @click.stop="deleteWorks(w.wid)"
  5597. alt
  5598. />
  5599. </div>
  5600. <div
  5601. class="workImg"
  5602. style="cursor: pointer"
  5603. v-if="w.type == 1"
  5604. >
  5605. <img :src="word" @click="openFile(w.works)" alt />
  5606. <!-- @click="openFile(w.works)" -->
  5607. <div
  5608. class="answerScore"
  5609. v-if="w.score"
  5610. @click.stop="openScore(w)"
  5611. :class="{
  5612. rightW:
  5613. w.userid == userid ||
  5614. tType == 1 ||
  5615. tType == 4 ||
  5616. w.ateacher == userid
  5617. }"
  5618. >
  5619. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  5620. </div>
  5621. <div
  5622. class="answerScore"
  5623. @click.stop="openScore(w)"
  5624. v-else-if="
  5625. courseDetail.userid == userid &&
  5626. courseDetail.state != 5 &&
  5627. chapInfoList[courseType].chapterInfo[0]
  5628. .taskJson[taskCount].eList &&
  5629. chapInfoList[courseType].chapterInfo[0]
  5630. .taskJson[taskCount].eList.length
  5631. "
  5632. :class="{
  5633. rightW:
  5634. w.userid == userid ||
  5635. tType == 1 ||
  5636. tType == 4 ||
  5637. w.ateacher == userid
  5638. }"
  5639. >
  5640. {{lang.ssMarkScore}}
  5641. </div>
  5642. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5643. <div
  5644. v-else-if="
  5645. (courseDetail.userid == userid ||
  5646. (courseDetail.course_teacher &&
  5647. courseDetail.course_teacher.indexOf(userid) !=
  5648. -1) ||
  5649. (w.userid == userid && sIsOpen)) &&
  5650. courseDetail.state == 5 &&
  5651. ((chapInfoList[courseType].chapterInfo[0]
  5652. .taskJson[taskCount].eList &&
  5653. chapInfoList[courseType].chapterInfo[0]
  5654. .taskJson[taskCount].eList.length) ||
  5655. (tool.eList && tool.eList.length))
  5656. "
  5657. >
  5658. <el-popover
  5659. placement="top"
  5660. width="318"
  5661. :disabled="AIloading[toolIndex][wIndex].loading"
  5662. trigger="hover"
  5663. >
  5664. <markScore
  5665. :loading="AIloading[toolIndex][wIndex].loading"
  5666. :markScoreVisible="markScoreVisible"
  5667. :ref="`markSco${toolIndex}${wIndex}`"
  5668. @updateLoading="updateLoading"
  5669. @updateDocSco="updateDocSco"
  5670. @refreshOther="refreshOther"
  5671. @markScoreDig="markScoreDig"
  5672. :tool="tool"
  5673. :wIndex="wIndex"
  5674. :scoCon="w"
  5675. :toolIndex="toolIndex"
  5676. :key="refreshKey"
  5677. :stage="courseType"
  5678. :task="taskCount"
  5679. :scoTit="
  5680. chapInfoList[courseType].chapterInfo[0]
  5681. .taskJson[taskCount].eList
  5682. "
  5683. >
  5684. </markScore>
  5685. <div
  5686. class="answerScore"
  5687. @click="
  5688. markScoreDig2(
  5689. w.sName,
  5690. worksStudent,
  5691. w.userid,
  5692. toolIndex,
  5693. chapInfoList[courseType].chapterInfo[0]
  5694. .taskJson[taskCount].eList,
  5695. AIloading[toolIndex][wIndex].loading,
  5696. tool
  5697. )
  5698. "
  5699. slot="reference"
  5700. :class="{
  5701. rightW:
  5702. w.userid == userid ||
  5703. tType == 1 ||
  5704. tType == 4 ||
  5705. w.ateacher == userid
  5706. }"
  5707. >
  5708. <span v-if="AIloading[toolIndex][wIndex].sco">
  5709. {{
  5710. AIloading[toolIndex][wIndex].loading
  5711. ? lang.ssScoringIn
  5712. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5713. }}
  5714. </span>
  5715. <span v-else>
  5716. {{
  5717. AIloading[toolIndex][wIndex].loading
  5718. ? lang.ssScoringIn
  5719. : lang.ssMarkScore
  5720. }}
  5721. </span>
  5722. </div>
  5723. </el-popover>
  5724. </div>
  5725. <img
  5726. class="deleteImg"
  5727. src="../../assets/deleteworks.png"
  5728. v-if="
  5729. w.userid == userid || tType == 1 || tType == 4
  5730. "
  5731. @click.stop="deleteWorks(w.wid)"
  5732. alt
  5733. />
  5734. </div>
  5735. <div class="workImg" v-if="w.type == 3">
  5736. <img
  5737. style="cursor: pointer"
  5738. :src="video"
  5739. @click="openVideo(w)"
  5740. alt
  5741. />
  5742. <!-- @click="openVideo(w.works)" -->
  5743. <div
  5744. class="answerScore"
  5745. v-if="w.score"
  5746. @click.stop="openScore(w)"
  5747. :class="{
  5748. rightW:
  5749. w.userid == userid ||
  5750. tType == 1 ||
  5751. tType == 4 ||
  5752. w.ateacher == userid
  5753. }"
  5754. >
  5755. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  5756. </div>
  5757. <div
  5758. class="answerScore"
  5759. @click.stop="openScore(w)"
  5760. v-else-if="
  5761. courseDetail.userid == userid &&
  5762. courseDetail.state != 5 &&
  5763. chapInfoList[courseType].chapterInfo[0]
  5764. .taskJson[taskCount].eList &&
  5765. chapInfoList[courseType].chapterInfo[0]
  5766. .taskJson[taskCount].eList.length
  5767. "
  5768. :class="{
  5769. rightW:
  5770. w.userid == userid ||
  5771. tType == 1 ||
  5772. tType == 4 ||
  5773. w.ateacher == userid
  5774. }"
  5775. >
  5776. {{lang.ssMarkScore}}
  5777. </div>
  5778. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5779. <div
  5780. v-else-if="
  5781. (courseDetail.userid == userid ||
  5782. (courseDetail.course_teacher &&
  5783. courseDetail.course_teacher.indexOf(userid) !=
  5784. -1) ||
  5785. (w.userid == userid && sIsOpen)) &&
  5786. courseDetail.state == 5 &&
  5787. ((chapInfoList[courseType].chapterInfo[0]
  5788. .taskJson[taskCount].eList &&
  5789. chapInfoList[courseType].chapterInfo[0]
  5790. .taskJson[taskCount].eList.length) ||
  5791. (tool.eList && tool.eList.length))
  5792. "
  5793. >
  5794. <el-popover
  5795. placement="top"
  5796. width="318"
  5797. :disabled="AIloading[toolIndex][wIndex].loading"
  5798. trigger="hover"
  5799. >
  5800. <markScore
  5801. :loading="AIloading[toolIndex][wIndex].loading"
  5802. :markScoreVisible="markScoreVisible"
  5803. :ref="`markSco${toolIndex}${wIndex}`"
  5804. @updateLoading="updateLoading"
  5805. @updateDocSco="updateDocSco"
  5806. @refreshOther="refreshOther"
  5807. @markScoreDig="markScoreDig"
  5808. :tool="tool"
  5809. :wIndex="wIndex"
  5810. :scoCon="w"
  5811. :toolIndex="toolIndex"
  5812. :key="refreshKey"
  5813. :stage="courseType"
  5814. :task="taskCount"
  5815. :scoTit="
  5816. chapInfoList[courseType].chapterInfo[0]
  5817. .taskJson[taskCount].eList
  5818. "
  5819. >
  5820. </markScore>
  5821. <div
  5822. class="answerScore"
  5823. @click="
  5824. markScoreDig2(
  5825. w.sName,
  5826. worksStudent,
  5827. w.userid,
  5828. toolIndex,
  5829. chapInfoList[courseType].chapterInfo[0]
  5830. .taskJson[taskCount].eList,
  5831. AIloading[toolIndex][wIndex].loading,
  5832. tool
  5833. )
  5834. "
  5835. slot="reference"
  5836. :class="{
  5837. rightW:
  5838. w.userid == userid ||
  5839. tType == 1 ||
  5840. tType == 4 ||
  5841. w.ateacher == userid
  5842. }"
  5843. >
  5844. <span v-if="AIloading[toolIndex][wIndex].sco">
  5845. {{
  5846. AIloading[toolIndex][wIndex].loading
  5847. ? lang.ssScoringIn
  5848. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  5849. }}
  5850. </span>
  5851. <span v-else>
  5852. {{
  5853. AIloading[toolIndex][wIndex].loading
  5854. ? lang.ssScoringIn
  5855. : lang.ssMarkScore
  5856. }}
  5857. </span>
  5858. </div>
  5859. </el-popover>
  5860. </div>
  5861. <img
  5862. class="deleteImg"
  5863. src="../../assets/deleteworks.png"
  5864. v-if="
  5865. w.userid == userid || tType == 1 || tType == 4
  5866. "
  5867. @click.stop="deleteWorks(w.wid)"
  5868. alt
  5869. />
  5870. </div>
  5871. <div class="comment" style="min-width: 200px">
  5872. <div class="worksName">
  5873. <div
  5874. style="cursor: pointer"
  5875. @click="
  5876. openSname(w.sName, w.wid, toolIndex, w.userid)
  5877. "
  5878. >
  5879. {{ w.sName }}
  5880. </div>
  5881. </div>
  5882. <div class="commentList">
  5883. <div class="commentList">
  5884. <div
  5885. class="commentImg"
  5886. @click="
  5887. isLikes(
  5888. w.wid,
  5889. userid,
  5890. 1,
  5891. null,
  5892. w.isLikes,
  5893. w.sName
  5894. )
  5895. "
  5896. >
  5897. <img
  5898. :src="w.isLikes == true ? likes : noLikes"
  5899. alt=""
  5900. />
  5901. </div>
  5902. <div>{{ w.likesCount }}</div>
  5903. </div>
  5904. <div class="commentList" style="margin-right: 15px">
  5905. <div
  5906. class="commentImg"
  5907. @click="commentOther(w, toolIndex, wIndex)"
  5908. >
  5909. <img
  5910. src="../../assets/icon/comment/comment.png"
  5911. alt=""
  5912. />
  5913. </div>
  5914. <div>{{ w.commentCount }}</div>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. </div>
  5919. </div>
  5920. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5921. {{lang.ssNotSubmitted}}
  5922. </div>
  5923. <div
  5924. class="noWorksS"
  5925. v-if="noWorksS && noWorksS[toolIndex].length"
  5926. >
  5927. <div
  5928. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5929. :key="sIndex"
  5930. class="noWorksName"
  5931. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5932. >
  5933. <el-tooltip
  5934. effect="dark"
  5935. :content="s.student"
  5936. placement="top"
  5937. >
  5938. <span>{{ s.student }}</span>
  5939. </el-tooltip>
  5940. </div>
  5941. </div>
  5942. </div>
  5943. <div
  5944. v-if="
  5945. tType &&
  5946. ((tType == 2 && sIsOpen == true) ||
  5947. tType == 1 ||
  5948. tType == 4) &&
  5949. tool.tool.indexOf(4) != -1 &&
  5950. (tool.askJson[0].answer ||
  5951. tool.askJson[0].answer === 0) &&
  5952. checkJson[toolIndex].length
  5953. "
  5954. class="xuan_right_box"
  5955. >
  5956. <div
  5957. class="tool_right_box"
  5958. v-for="(item, index) in tool.askJson"
  5959. :key="index"
  5960. >
  5961. <div style="width: calc(100% - 30px);">
  5962. <el-tooltip
  5963. effect="light"
  5964. :content="index + 1 + '、' + item.askstitle"
  5965. placement="top"
  5966. popper-class="text_tooltip"
  5967. >
  5968. <div
  5969. style="
  5970. width: calc(100% - 130px);
  5971. display: block;
  5972. white-space: nowrap;
  5973. overflow: hidden;
  5974. text-overflow: ellipsis;
  5975. word-break: break-word;
  5976. cursor: pointer;
  5977. "
  5978. >
  5979. {{ index + 1 + "、" + item.askstitle }}
  5980. </div>
  5981. </el-tooltip>
  5982. </div>
  5983. <div class="right_box_xuan">
  5984. <span>{{lang.ssCorrectRate}}</span>
  5985. <span>{{
  5986. (checkJson[toolIndex][index].right
  5987. ? checkJson[toolIndex][index].right
  5988. : 0) + "%"
  5989. }}</span>
  5990. </div>
  5991. </div>
  5992. </div>
  5993. <div
  5994. class="xuan_right_box"
  5995. style="background: unset; padding: 0 10px"
  5996. v-if="
  5997. tType &&
  5998. ((tType == 2 && sIsOpen == true) ||
  5999. tType == 1 ||
  6000. tType == 4) &&
  6001. tool.tool.indexOf(4) != -1
  6002. "
  6003. >
  6004. <AskStatic
  6005. v-if="
  6006. worksStudent.length &&
  6007. worksStudent[toolIndex].length > 0
  6008. "
  6009. :askJSON="tool"
  6010. :checkJson="checkJson[toolIndex]"
  6011. ></AskStatic>
  6012. </div>
  6013. <div
  6014. v-if="
  6015. tType &&
  6016. ((tType == 2 && sIsOpen == true) ||
  6017. tType == 1 ||
  6018. tType == 4) &&
  6019. tool.tool.indexOf(4) != -1
  6020. "
  6021. class="worksBox"
  6022. >
  6023. <div
  6024. class="zuoyeYulan"
  6025. v-if="
  6026. worksStudent.length &&
  6027. worksStudent[toolIndex].length > 0
  6028. "
  6029. >
  6030. <div class="worksTop">
  6031. <div>{{lang.ssHomeworkPreview}}</div>
  6032. <div
  6033. class="corOpen"
  6034. @click="contract(toolIndex)"
  6035. v-if="
  6036. isCloseList[toolIndex].isCloseBoolean &&
  6037. isCloseList[toolIndex].isClose == 0
  6038. "
  6039. >
  6040. {{lang.ssFold}}
  6041. </div>
  6042. <div
  6043. class="corOpen"
  6044. @click="contract(toolIndex)"
  6045. v-if="isCloseList[toolIndex].isClose == 1"
  6046. >
  6047. {{lang.ssExpand}}
  6048. </div>
  6049. </div>
  6050. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6051. </div>
  6052. <div>
  6053. <div
  6054. :id="'tool-' + toolIndex"
  6055. :style="{
  6056. height:
  6057. isCloseList[toolIndex].isClose == 1
  6058. ? retrnToolHeight('tool-' + toolIndex)
  6059. : 'auto',
  6060. overflow:
  6061. isCloseList[toolIndex].isClose == 1
  6062. ? 'hidden'
  6063. : 'unset'
  6064. }"
  6065. class="worksDetailBox"
  6066. v-if="
  6067. worksStudent.length &&
  6068. worksStudent[toolIndex].length > 0
  6069. "
  6070. >
  6071. <div
  6072. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6073. :key="wIndex"
  6074. class="isWorksName2"
  6075. @click="
  6076. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6077. "
  6078. >
  6079. {{ w.sName }}
  6080. <img
  6081. class="deleteImg deleteImg2"
  6082. src="../../assets/deleteworks.png"
  6083. v-if="
  6084. w.userid == userid || tType == 1 || tType == 4
  6085. "
  6086. @click.stop="deleteWorks(w.wid)"
  6087. alt
  6088. />
  6089. </div>
  6090. <!-- <div class="works" style="
  6091. width: 200px;
  6092. height: 140px;
  6093. border-radius: 10px;
  6094. box-shadow: 0 0 6px 1px #dfdada;
  6095. overflow: hidden;
  6096. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6097. <div class="workImg">
  6098. <img src="../../assets/icon/works/noImg.png" @click="
  6099. openTools(
  6100. 4,
  6101. toolIndex,
  6102. taskCount,
  6103. w.works,
  6104. w.sName
  6105. )
  6106. " alt />
  6107. </div>
  6108. <div class="worksName">
  6109. <div>{{ w.sName }}</div>
  6110. <div>{{ w.time }}</div>
  6111. </div>
  6112. </div> -->
  6113. </div>
  6114. </div>
  6115. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6116. {{lang.ssNotSubmitted}}
  6117. </div>
  6118. <div
  6119. class="noWorksS"
  6120. v-if="noWorksS && noWorksS[toolIndex].length"
  6121. >
  6122. <div
  6123. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6124. :key="sIndex"
  6125. class="noWorksName"
  6126. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6127. >
  6128. <el-tooltip
  6129. effect="dark"
  6130. :content="s.student"
  6131. placement="top"
  6132. >
  6133. <span>{{ s.student }}</span>
  6134. </el-tooltip>
  6135. </div>
  6136. </div>
  6137. </div>
  6138. <div
  6139. v-if="
  6140. tType &&
  6141. ((tType == 2 && sIsOpen == true) ||
  6142. tType == 1 ||
  6143. tType == 4) &&
  6144. tool.tool.indexOf(45) != -1 &&
  6145. (tool.testJson.testJson[0].answer ||
  6146. tool.testJson.testJson[0].answer === 0) &&
  6147. checkJson[toolIndex].length
  6148. "
  6149. class="xuan_right_box"
  6150. >
  6151. <div
  6152. class="tool_right_box"
  6153. v-for="(item, index) in tool.testJson.testJson"
  6154. :key="index"
  6155. >
  6156. <div class="right_box_xuan" style="margin-right: 10px">
  6157. <span>{{lang.ssCorrectRate}}</span>
  6158. <span>{{
  6159. (checkJson[toolIndex][index].right
  6160. ? checkJson[toolIndex][index].right
  6161. : 0) + "%"
  6162. }}</span>
  6163. </div>
  6164. <div style="width: calc(100% - 30px);">
  6165. <el-tooltip
  6166. effect="light"
  6167. :content="index + 1 + '、' + item.teststitle"
  6168. placement="top"
  6169. popper-class="text_tooltip"
  6170. >
  6171. <div
  6172. style="
  6173. width: calc(100% - 130px);
  6174. display: flex;
  6175. white-space: nowrap;
  6176. overflow: hidden;
  6177. text-overflow: ellipsis;
  6178. word-break: break-word;
  6179. cursor: pointer;
  6180. "
  6181. class="renderedFor"
  6182. >
  6183. {{ index + 1 + "、" }} <span v-html="item.teststitle"></span>
  6184. </div>
  6185. </el-tooltip>
  6186. </div>
  6187. </div>
  6188. </div>
  6189. <div
  6190. class="xuan_right_box"
  6191. style="background: unset; padding: 0 10px; width: 91.5%"
  6192. v-if="
  6193. tType &&
  6194. ((tType == 2 && sIsOpen == true) ||
  6195. tType == 1 ||
  6196. tType == 4) &&
  6197. tool.tool.indexOf(45) != -1
  6198. "
  6199. >
  6200. <AskStatic2
  6201. v-if="
  6202. worksStudent.length &&
  6203. worksStudent[toolIndex].length > 0
  6204. "
  6205. :askJSON="tool"
  6206. :checkJson="checkJson[toolIndex]"
  6207. ></AskStatic2>
  6208. </div>
  6209. <div
  6210. v-if="
  6211. tType &&
  6212. ((tType == 2 && sIsOpen == true) ||
  6213. tType == 1 ||
  6214. tType == 4) &&
  6215. tool.tool.indexOf(45) != -1
  6216. "
  6217. class="worksBox"
  6218. >
  6219. <div
  6220. class="zuoyeYulan"
  6221. v-if="
  6222. worksStudent.length &&
  6223. worksStudent[toolIndex].length > 0
  6224. "
  6225. >
  6226. <div class="worksTop">
  6227. <div>{{lang.ssHomeworkPreview}}</div>
  6228. <div
  6229. class="corOpen"
  6230. @click="contract(toolIndex)"
  6231. v-if="
  6232. isCloseList[toolIndex].isCloseBoolean &&
  6233. isCloseList[toolIndex].isClose == 0
  6234. "
  6235. >
  6236. {{lang.ssFold}}
  6237. </div>
  6238. <div
  6239. class="corOpen"
  6240. @click="contract(toolIndex)"
  6241. v-if="isCloseList[toolIndex].isClose == 1"
  6242. >
  6243. {{lang.ssExpand}}
  6244. </div>
  6245. </div>
  6246. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6247. </div>
  6248. <div>
  6249. <div
  6250. :id="'tool-' + toolIndex"
  6251. :style="{
  6252. height:
  6253. isCloseList[toolIndex].isClose == 1
  6254. ? retrnToolHeight('tool-' + toolIndex)
  6255. : 'auto',
  6256. overflow:
  6257. isCloseList[toolIndex].isClose == 1
  6258. ? 'hidden'
  6259. : 'unset'
  6260. }"
  6261. class="worksDetailBox"
  6262. v-if="
  6263. worksStudent.length &&
  6264. worksStudent[toolIndex].length > 0
  6265. "
  6266. >
  6267. <div
  6268. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6269. :key="wIndex"
  6270. class="isWorksName2"
  6271. @click="
  6272. openTools(
  6273. 45,
  6274. toolIndex,
  6275. taskCount,
  6276. w.works,
  6277. w.sName
  6278. )
  6279. "
  6280. >
  6281. {{ w.sName }}
  6282. <img
  6283. class="deleteImg deleteImg2"
  6284. src="../../assets/deleteworks.png"
  6285. v-if="
  6286. w.userid == userid || tType == 1 || tType == 4
  6287. "
  6288. @click.stop="deleteWorks(w.wid)"
  6289. alt
  6290. />
  6291. </div>
  6292. </div>
  6293. </div>
  6294. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6295. {{lang.ssNotSubmitted}}
  6296. </div>
  6297. <div
  6298. class="noWorksS"
  6299. v-if="noWorksS && noWorksS[toolIndex].length"
  6300. >
  6301. <div
  6302. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6303. :key="sIndex"
  6304. class="noWorksName"
  6305. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6306. >
  6307. <el-tooltip
  6308. effect="dark"
  6309. :content="s.student"
  6310. placement="top"
  6311. >
  6312. <span>{{ s.student }}</span>
  6313. </el-tooltip>
  6314. </div>
  6315. </div>
  6316. </div>
  6317. <div
  6318. v-if="
  6319. tType &&
  6320. ((tType == 2 && sIsOpen == true) ||
  6321. tType == 1 ||
  6322. tType == 4) &&
  6323. tool.tool.indexOf(69) != -1
  6324. "
  6325. class="worksBox"
  6326. >
  6327. <div
  6328. class="zuoyeYulan"
  6329. v-if="
  6330. worksStudent.length &&
  6331. worksStudent[toolIndex].length > 0
  6332. "
  6333. >
  6334. <div class="worksTop">
  6335. <div>{{lang.ssHomeworkPreview}}</div>
  6336. <div
  6337. class="corOpen"
  6338. @click="contract(toolIndex)"
  6339. v-if="
  6340. isCloseList[toolIndex].isCloseBoolean &&
  6341. isCloseList[toolIndex].isClose == 0
  6342. "
  6343. >
  6344. {{lang.ssFold}}
  6345. </div>
  6346. <div
  6347. class="corOpen"
  6348. @click="contract(toolIndex)"
  6349. v-if="isCloseList[toolIndex].isClose == 1"
  6350. >
  6351. {{lang.ssExpand}}
  6352. </div>
  6353. </div>
  6354. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6355. </div>
  6356. <div>
  6357. <div
  6358. :id="'tool-' + toolIndex"
  6359. :style="{
  6360. height:
  6361. isCloseList[toolIndex].isClose == 1
  6362. ? retrnToolHeight('tool-' + toolIndex)
  6363. : 'auto',
  6364. overflow:
  6365. isCloseList[toolIndex].isClose == 1
  6366. ? 'hidden'
  6367. : 'unset'
  6368. }"
  6369. class="worksDetailBox"
  6370. v-if="
  6371. worksStudent.length &&
  6372. worksStudent[toolIndex].length > 0
  6373. "
  6374. >
  6375. <div
  6376. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6377. :key="wIndex"
  6378. class="isWorksName2"
  6379. style="width: 160px;height: 65px;line-height: 65px;"
  6380. @click="
  6381. openTools(
  6382. 69,
  6383. toolIndex,
  6384. taskCount,
  6385. w.works,
  6386. w.sName,
  6387. w.wid
  6388. )
  6389. "
  6390. >
  6391. {{ w.sName }}
  6392. <img
  6393. class="deleteImg1"
  6394. src="../../assets/evaEnglish.png"
  6395. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6396. alt
  6397. v-if="
  6398. (courseDetail &&
  6399. (courseDetail.userid == userid ||
  6400. (courseDetail.course_teacher &&
  6401. courseDetail.course_teacher.indexOf(
  6402. userid
  6403. ) != -1))) ||
  6404. w.aiCode || w.teacherCode
  6405. "
  6406. />
  6407. <img
  6408. class="deleteImg deleteImg2"
  6409. src="../../assets/deleteworks.png"
  6410. v-if="
  6411. w.userid == userid || tType == 1 || tType == 4
  6412. "
  6413. @click.stop="deleteWorks(w.wid)"
  6414. alt
  6415. />
  6416. </div>
  6417. </div>
  6418. </div>
  6419. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6420. {{lang.ssNotSubmitted}}
  6421. </div>
  6422. <div
  6423. class="noWorksS"
  6424. v-if="noWorksS && noWorksS[toolIndex].length"
  6425. >
  6426. <div
  6427. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6428. :key="sIndex"
  6429. class="noWorksName"
  6430. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6431. >
  6432. <el-tooltip
  6433. effect="dark"
  6434. :content="s.student"
  6435. placement="top"
  6436. >
  6437. <span>{{ s.student }}</span>
  6438. </el-tooltip>
  6439. </div>
  6440. </div>
  6441. </div>
  6442. <div
  6443. v-if="
  6444. tType &&
  6445. ((tType == 2 && sIsOpen == true) ||
  6446. tType == 1 ||
  6447. tType == 4) &&
  6448. tool.tool.indexOf(15) != -1
  6449. "
  6450. class="worksBox"
  6451. >
  6452. <div
  6453. class="zuoyeYulan"
  6454. v-if="
  6455. (worksStudent.length &&
  6456. worksStudent[toolIndex].length > 0) ||
  6457. (courseGroup.group && courseGroup.group.length)
  6458. "
  6459. >
  6460. <div class="worksTop">
  6461. <div>{{lang.ssHomeworkPreview}}</div>
  6462. <div
  6463. class="corOpen"
  6464. @click="contract(toolIndex)"
  6465. v-if="
  6466. isCloseList[toolIndex].isCloseBoolean &&
  6467. isCloseList[toolIndex].isClose == 0
  6468. "
  6469. >
  6470. {{lang.ssFold}}
  6471. </div>
  6472. <div
  6473. class="corOpen"
  6474. @click="contract(toolIndex)"
  6475. v-if="isCloseList[toolIndex].isClose == 1"
  6476. >
  6477. {{lang.ssExpand}}
  6478. </div>
  6479. </div>
  6480. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6481. </div>
  6482. <div
  6483. class="group_workBox"
  6484. v-for="(g, gindex) in courseGroup.group"
  6485. :key="gindex"
  6486. >
  6487. <div class="group_box">
  6488. <div class="group_title">
  6489. <el-tooltip
  6490. class="item"
  6491. effect="light"
  6492. :content="g.name"
  6493. placement="top"
  6494. >
  6495. <div class="group_name">{{ g.name }}</div>
  6496. </el-tooltip>
  6497. </div>
  6498. <div
  6499. class="group_work"
  6500. v-if="
  6501. g.works &&
  6502. g.works.length &&
  6503. g.works[toolIndex].length
  6504. "
  6505. >
  6506. <div
  6507. class="works"
  6508. v-for="(w, wIndex) in g.works[toolIndex]"
  6509. :key="wIndex"
  6510. >
  6511. <div
  6512. class="workImg"
  6513. style="
  6514. border-radius: 15px;
  6515. box-shadow: 0px 0px 5px 5px #eee;
  6516. "
  6517. >
  6518. <div
  6519. class="answerBg"
  6520. style="border-radius: 15px 15px 0 0"
  6521. @click="
  6522. commentOther(w, toolIndex, wIndex, null, g.id)
  6523. "
  6524. >
  6525. <div class="answerContent">
  6526. {{ JSON.parse(w.works)[0].answer }}
  6527. </div>
  6528. <div
  6529. class="answerScore"
  6530. v-if="w.score"
  6531. @click.stop="openScore(w)"
  6532. :class="{
  6533. rightW:
  6534. w.userid == userid ||
  6535. tType == 1 ||
  6536. tType == 4
  6537. }"
  6538. >
  6539. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  6540. </div>
  6541. <div
  6542. class="answerScore"
  6543. @click.stop="openScore(w)"
  6544. v-else-if="
  6545. courseDetail.userid == userid &&
  6546. courseDetail.state != 5 &&
  6547. chapInfoList[courseType].chapterInfo[0]
  6548. .taskJson[taskCount].eList &&
  6549. chapInfoList[courseType].chapterInfo[0]
  6550. .taskJson[taskCount].eList.length
  6551. "
  6552. :class="{
  6553. rightW:
  6554. w.userid == userid ||
  6555. tType == 1 ||
  6556. tType == 4
  6557. }"
  6558. >
  6559. {{lang.ssMarkScore}}
  6560. </div>
  6561. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6562. <div
  6563. v-else-if="
  6564. (courseDetail.userid == userid ||
  6565. (courseDetail.course_teacher &&
  6566. courseDetail.course_teacher.indexOf(
  6567. userid
  6568. ) != -1) ||
  6569. (w.userid == userid && sIsOpen)) &&
  6570. courseDetail.state == 5 &&
  6571. ((chapInfoList[courseType].chapterInfo[0]
  6572. .taskJson[taskCount].eList &&
  6573. chapInfoList[courseType].chapterInfo[0]
  6574. .taskJson[taskCount].eList.length) ||
  6575. (tool.eList && tool.eList.length))
  6576. "
  6577. >
  6578. <el-popover
  6579. placement="top"
  6580. width="318"
  6581. :disabled="
  6582. AIloading[toolIndex][wIndex].loading
  6583. "
  6584. trigger="hover"
  6585. >
  6586. <markScore
  6587. :loading="
  6588. AIloading[toolIndex][wIndex].loading
  6589. "
  6590. :markScoreVisible="markScoreVisible"
  6591. :ref="`markSco${toolIndex}${wIndex}`"
  6592. @updateLoading="updateLoading"
  6593. @updateDocSco="updateDocSco"
  6594. @refreshOther="refreshOther"
  6595. @markScoreDig="markScoreDig"
  6596. :tool="tool"
  6597. :wIndex="wIndex"
  6598. :scoCon="w"
  6599. :toolIndex="toolIndex"
  6600. :key="refreshKey"
  6601. :stage="courseType"
  6602. :task="taskCount"
  6603. :scoTit="
  6604. chapInfoList[courseType].chapterInfo[0]
  6605. .taskJson[taskCount].eList
  6606. "
  6607. >
  6608. </markScore>
  6609. <div
  6610. class="answerScore"
  6611. @click.stop="
  6612. markScoreDig2(
  6613. w.sName,
  6614. worksStudent,
  6615. w.userid,
  6616. toolIndex,
  6617. chapInfoList[courseType]
  6618. .chapterInfo[0].taskJson[taskCount]
  6619. .eList,
  6620. AIloading[toolIndex][wIndex].loading,
  6621. tool
  6622. )
  6623. "
  6624. slot="reference"
  6625. :class="{
  6626. rightW:
  6627. w.userid == userid ||
  6628. tType == 1 ||
  6629. tType == 4 ||
  6630. w.ateacher == userid
  6631. }"
  6632. >
  6633. <span
  6634. v-if="AIloading[toolIndex][wIndex].sco"
  6635. >
  6636. {{
  6637. AIloading[toolIndex][wIndex].loading
  6638. ? lang.ssScoringIn
  6639. : AIloading[toolIndex][wIndex].sco +
  6640. lang.ssScore
  6641. }}
  6642. </span>
  6643. <span v-else>
  6644. {{
  6645. AIloading[toolIndex][wIndex].loading
  6646. ? lang.ssScoringIn
  6647. : lang.ssMarkScore
  6648. }}
  6649. </span>
  6650. </div>
  6651. </el-popover>
  6652. </div>
  6653. <img
  6654. class="deleteImg"
  6655. src="../../assets/deleteworks.png"
  6656. v-if="
  6657. w.userid == userid ||
  6658. tType == 1 ||
  6659. tType == 4
  6660. "
  6661. @click.stop="deleteWorks(w.wid)"
  6662. alt
  6663. />
  6664. </div>
  6665. <div class="comment">
  6666. <div class="worksName">
  6667. <div>{{ w.sName }}</div>
  6668. </div>
  6669. <div class="commentList">
  6670. <div
  6671. class="commentImg"
  6672. @click="
  6673. isLikes(
  6674. w.wid,
  6675. userid,
  6676. 1,
  6677. null,
  6678. w.isLikes,
  6679. w.sName
  6680. )
  6681. "
  6682. >
  6683. <img
  6684. :src="w.isLikes == true ? likes : noLikes"
  6685. alt=""
  6686. />
  6687. </div>
  6688. <div>{{ w.likesCount }}</div>
  6689. </div>
  6690. <div
  6691. class="commentList"
  6692. style="margin-right: 15px"
  6693. >
  6694. <div
  6695. class="commentImg"
  6696. @click="
  6697. commentOther(
  6698. w,
  6699. toolIndex,
  6700. wIndex,
  6701. null,
  6702. g.id
  6703. )
  6704. "
  6705. >
  6706. <img
  6707. src="../../assets/icon/comment/comment.png"
  6708. alt=""
  6709. />
  6710. </div>
  6711. <div>{{ w.commentCount }}</div>
  6712. </div>
  6713. </div>
  6714. </div>
  6715. </div>
  6716. </div>
  6717. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  6718. </div>
  6719. </div>
  6720. <div
  6721. :id="'tool-' + toolIndex"
  6722. :style="{
  6723. height:
  6724. isCloseList[toolIndex].isClose == 1
  6725. ? retrnToolHeight('tool-' + toolIndex)
  6726. : 'auto',
  6727. overflow:
  6728. isCloseList[toolIndex].isClose == 1
  6729. ? 'hidden'
  6730. : 'unset'
  6731. }"
  6732. class="worksDetailBox"
  6733. v-if="
  6734. worksStudent.length &&
  6735. worksStudent[toolIndex].length > 0
  6736. "
  6737. >
  6738. <div
  6739. class="works"
  6740. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6741. :key="wIndex"
  6742. >
  6743. <div
  6744. class="workImg"
  6745. style="
  6746. border-radius: 15px;
  6747. box-shadow: 0px 0px 5px 5px #eee;
  6748. "
  6749. >
  6750. <!-- <img
  6751. src="../../assets/icon/works/noImg.png"
  6752. @click="openTools(15, toolIndex, taskCount, w.works)"
  6753. alt=""
  6754. />-->
  6755. <div
  6756. class="answerBg"
  6757. style="border-radius: 15px 15px 0 0"
  6758. @click="commentOther(w, toolIndex, wIndex)"
  6759. >
  6760. <!-- <div>{{ w.sName }}</div> -->
  6761. <div class="answerContent">
  6762. {{ JSON.parse(w.works)[0].answer }}
  6763. </div>
  6764. <div
  6765. class="answerScore"
  6766. v-if="w.score"
  6767. @click.stop="openScore(w)"
  6768. :class="{
  6769. rightW:
  6770. w.userid == userid || tType == 1 || tType == 4
  6771. }"
  6772. >
  6773. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  6774. </div>
  6775. <div
  6776. class="answerScore"
  6777. @click.stop="openScore(w)"
  6778. v-else-if="
  6779. courseDetail.userid == userid &&
  6780. courseDetail.state != 5 &&
  6781. chapInfoList[courseType].chapterInfo[0]
  6782. .taskJson[taskCount].eList &&
  6783. chapInfoList[courseType].chapterInfo[0]
  6784. .taskJson[taskCount].eList.length
  6785. "
  6786. :class="{
  6787. rightW:
  6788. w.userid == userid || tType == 1 || tType == 4
  6789. }"
  6790. >
  6791. {{lang.ssMarkScore}}
  6792. </div>
  6793. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6794. <div
  6795. v-else-if="
  6796. (courseDetail.userid == userid ||
  6797. (courseDetail.course_teacher &&
  6798. courseDetail.course_teacher.indexOf(
  6799. userid
  6800. ) != -1) ||
  6801. (w.userid == userid && sIsOpen)) &&
  6802. courseDetail.state == 5 &&
  6803. ((chapInfoList[courseType].chapterInfo[0]
  6804. .taskJson[taskCount].eList &&
  6805. chapInfoList[courseType].chapterInfo[0]
  6806. .taskJson[taskCount].eList.length) ||
  6807. (tool.eList && tool.eList.length))
  6808. "
  6809. >
  6810. <el-popover
  6811. placement="top"
  6812. width="318"
  6813. :disabled="AIloading[toolIndex][wIndex].loading"
  6814. trigger="hover"
  6815. >
  6816. <markScore
  6817. :loading="
  6818. AIloading[toolIndex][wIndex].loading
  6819. "
  6820. :markScoreVisible="markScoreVisible"
  6821. :ref="`markSco${toolIndex}${wIndex}`"
  6822. @updateLoading="updateLoading"
  6823. @updateDocSco="updateDocSco"
  6824. @refreshOther="refreshOther"
  6825. @markScoreDig="markScoreDig"
  6826. :tool="tool"
  6827. :wIndex="wIndex"
  6828. :scoCon="w"
  6829. :toolIndex="toolIndex"
  6830. :key="refreshKey"
  6831. :stage="courseType"
  6832. :task="taskCount"
  6833. :scoTit="
  6834. chapInfoList[courseType].chapterInfo[0]
  6835. .taskJson[taskCount].eList
  6836. "
  6837. >
  6838. </markScore>
  6839. <div
  6840. class="answerScore"
  6841. @click.stop="
  6842. markScoreDig2(
  6843. w.sName,
  6844. worksStudent,
  6845. w.userid,
  6846. toolIndex,
  6847. chapInfoList[courseType].chapterInfo[0]
  6848. .taskJson[taskCount].eList,
  6849. AIloading[toolIndex][wIndex].loading,
  6850. tool
  6851. )
  6852. "
  6853. slot="reference"
  6854. :class="{
  6855. rightW:
  6856. w.userid == userid ||
  6857. tType == 1 ||
  6858. tType == 4 ||
  6859. w.ateacher == userid
  6860. }"
  6861. >
  6862. <span v-if="AIloading[toolIndex][wIndex].sco">
  6863. {{
  6864. AIloading[toolIndex][wIndex].loading
  6865. ? lang.ssScoringIn
  6866. : AIloading[toolIndex][wIndex].sco +
  6867. lang.ssScore
  6868. }}
  6869. </span>
  6870. <span v-else>
  6871. {{
  6872. AIloading[toolIndex][wIndex].loading
  6873. ? lang.ssScoringIn
  6874. : lang.ssMarkScore
  6875. }}
  6876. </span>
  6877. </div>
  6878. </el-popover>
  6879. </div>
  6880. <img
  6881. class="deleteImg"
  6882. src="../../assets/deleteworks.png"
  6883. v-if="
  6884. w.userid == userid || tType == 1 || tType == 4
  6885. "
  6886. @click.stop="deleteWorks(w.wid)"
  6887. alt
  6888. />
  6889. </div>
  6890. <div class="comment">
  6891. <div class="worksName">
  6892. <div>{{ w.sName }}</div>
  6893. </div>
  6894. <div class="commentList">
  6895. <div
  6896. class="commentImg"
  6897. @click="
  6898. isLikes(
  6899. w.wid,
  6900. userid,
  6901. 1,
  6902. null,
  6903. w.isLikes,
  6904. w.sName
  6905. )
  6906. "
  6907. >
  6908. <img
  6909. :src="w.isLikes == true ? likes : noLikes"
  6910. alt=""
  6911. />
  6912. </div>
  6913. <div>{{ w.likesCount }}</div>
  6914. </div>
  6915. <div class="commentList" style="margin-right: 15px">
  6916. <div
  6917. class="commentImg"
  6918. @click="commentOther(w, toolIndex, wIndex)"
  6919. >
  6920. <img
  6921. src="../../assets/icon/comment/comment.png"
  6922. alt=""
  6923. />
  6924. </div>
  6925. <div>{{ w.commentCount }}</div>
  6926. </div>
  6927. </div>
  6928. </div>
  6929. </div>
  6930. </div>
  6931. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6932. {{lang.ssNotSubmitted}}
  6933. </div>
  6934. <div
  6935. class="noWorksS"
  6936. v-if="noWorksS && noWorksS[toolIndex].length"
  6937. >
  6938. <div
  6939. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6940. :key="sIndex"
  6941. class="noWorksName"
  6942. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6943. >
  6944. <el-tooltip
  6945. effect="dark"
  6946. :content="s.student"
  6947. placement="top"
  6948. >
  6949. <span>{{ s.student }}</span>
  6950. </el-tooltip>
  6951. </div>
  6952. </div>
  6953. </div>
  6954. <div
  6955. v-if="
  6956. tType &&
  6957. ((tType == 2 && sIsOpen == true) ||
  6958. tType == 1 ||
  6959. tType == 4) &&
  6960. tool.tool.indexOf(1) != -1
  6961. "
  6962. class="worksBox"
  6963. >
  6964. <div
  6965. class="zuoyeYulan"
  6966. style="display: flex;justify-content: space-between;align-items: center;"
  6967. v-if="
  6968. (worksStudent.length &&
  6969. worksStudent[toolIndex].length > 0) ||
  6970. (courseGroup.group && courseGroup.group.length)
  6971. "
  6972. >
  6973. <div class="worksTop">
  6974. <div>{{lang.ssHomeworkPreview}}</div>
  6975. <div
  6976. class="corOpen"
  6977. @click="contract(toolIndex)"
  6978. v-if="
  6979. isCloseList[toolIndex].isCloseBoolean &&
  6980. isCloseList[toolIndex].isClose == 0
  6981. "
  6982. >
  6983. {{lang.ssFold}}
  6984. </div>
  6985. <div
  6986. class="corOpen"
  6987. @click="contract(toolIndex)"
  6988. v-if="isCloseList[toolIndex].isClose == 1"
  6989. >
  6990. {{lang.ssExpand}}
  6991. </div>
  6992. </div>
  6993. <div
  6994. style="display: flex;"
  6995. v-if="
  6996. (courseDetail.userid == userid ||
  6997. (courseDetail.course_teacher &&
  6998. courseDetail.course_teacher.indexOf(userid) !=
  6999. -1)) &&
  7000. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7001. taskCount
  7002. ].eList &&
  7003. chapInfoList[courseType].chapterInfo[0].taskJson[
  7004. taskCount
  7005. ].eList.length) ||
  7006. (tool.eList && tool.eList.length)) &&
  7007. courseDetail.state == 5
  7008. "
  7009. >
  7010. <div
  7011. style="margin-right:10px"
  7012. class="ScoreBtn"
  7013. @click="
  7014. resetLoopEva(
  7015. worksStudent[toolIndex],
  7016. chapInfoList[courseType].chapterInfo[0].taskJson[
  7017. taskCount
  7018. ].eList,
  7019. courseType,
  7020. taskCount,
  7021. toolIndex,
  7022. tool.toolDetail,
  7023. worksStudent
  7024. )
  7025. "
  7026. >
  7027. {{lang.ssReset}}
  7028. </div>
  7029. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7030. <img
  7031. src="../../assets/icon/newIcons/rootImg.png"
  7032. alt=""
  7033. />
  7034. {{lang.ssAiScore}}
  7035. </div>
  7036. <div
  7037. class="ScoreBtn"
  7038. v-else-if="!loopLoading[toolIndex].loading"
  7039. @click="
  7040. loopEva(
  7041. worksStudent[toolIndex],
  7042. chapInfoList[courseType].chapterInfo[0].taskJson[
  7043. taskCount
  7044. ].eList,
  7045. courseType,
  7046. taskCount,
  7047. toolIndex,
  7048. tool.toolDetail,
  7049. chapInfoList[courseType].chapterInfo[0].taskJson[
  7050. taskCount
  7051. ].taskDetail,
  7052. tool
  7053. )
  7054. "
  7055. >
  7056. <img
  7057. src="../../assets/icon/newIcons/rootImg.png"
  7058. alt=""
  7059. />
  7060. {{lang.ssAiScore}}
  7061. </div>
  7062. <div class="ScoreBtn" v-else>
  7063. <img
  7064. src="../../assets/icon/newIcons/rootImg.png"
  7065. alt=""
  7066. />
  7067. {{lang.ssScoring}}
  7068. </div>
  7069. </div>
  7070. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7071. </div>
  7072. <div
  7073. class="group_workBox"
  7074. v-for="(g, gindex) in courseGroup.group"
  7075. :key="gindex"
  7076. >
  7077. <div class="group_box">
  7078. <div class="group_title">
  7079. <el-tooltip
  7080. class="item"
  7081. effect="light"
  7082. :content="g.name"
  7083. placement="top"
  7084. >
  7085. <div class="group_name">{{ g.name }}</div>
  7086. </el-tooltip>
  7087. </div>
  7088. <div
  7089. class="group_work"
  7090. v-if="
  7091. g.works &&
  7092. g.works.length &&
  7093. g.works[toolIndex].length
  7094. "
  7095. >
  7096. <div
  7097. class="works"
  7098. style="
  7099. width: 200px;
  7100. height: 140px;
  7101. margin: 10px 10px 10px 0;
  7102. border-radius: 15px;
  7103. box-shadow: 0 0 6px 1px #dfdada;
  7104. "
  7105. v-for="(w, wIndex) in g.works[toolIndex]"
  7106. :key="wIndex"
  7107. :class="w.type == 1 ? 'isTypeOne' : ''"
  7108. >
  7109. <div class="workImg">
  7110. <img
  7111. :src="w.works"
  7112. @click="previewImg(w.works, w)"
  7113. alt
  7114. />
  7115. <div
  7116. class="answerScore"
  7117. v-if="w.score"
  7118. @click.stop="openScore(w)"
  7119. :class="{
  7120. rightW:
  7121. w.userid == userid ||
  7122. tType == 1 ||
  7123. tType == 4
  7124. }"
  7125. >
  7126. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  7127. </div>
  7128. <div
  7129. class="answerScore"
  7130. @click.stop="openScore(w)"
  7131. v-else-if="courseDetail.userid == userid"
  7132. :class="{
  7133. rightW:
  7134. w.userid == userid ||
  7135. tType == 1 ||
  7136. tType == 4
  7137. }"
  7138. >
  7139. {{lang.ssMarkScore}}
  7140. </div>
  7141. <img
  7142. class="deleteImg"
  7143. src="../../assets/deleteworks.png"
  7144. v-if="
  7145. w.userid == userid || tType == 1 || tType == 4
  7146. "
  7147. @click.stop="deleteWorks(w.wid)"
  7148. alt
  7149. />
  7150. </div>
  7151. <div class="comment" style="min-width: 200px">
  7152. <div class="worksName">
  7153. <div>{{ w.sName }}</div>
  7154. </div>
  7155. <div class="commentList">
  7156. <div class="commentList">
  7157. <div
  7158. class="commentImg"
  7159. @click="
  7160. isLikes(
  7161. w.wid,
  7162. userid,
  7163. 1,
  7164. null,
  7165. w.isLikes,
  7166. w.sName
  7167. )
  7168. "
  7169. >
  7170. <img
  7171. :src="w.isLikes == true ? likes : noLikes"
  7172. alt=""
  7173. />
  7174. </div>
  7175. <div>{{ w.likesCount }}</div>
  7176. </div>
  7177. <div
  7178. class="commentList"
  7179. style="margin-right: 15px"
  7180. >
  7181. <div
  7182. class="commentImg"
  7183. @click="
  7184. commentOther(
  7185. w,
  7186. toolIndex,
  7187. wIndex,
  7188. null,
  7189. g.id
  7190. )
  7191. "
  7192. >
  7193. <img
  7194. src="../../assets/icon/comment/comment.png"
  7195. alt=""
  7196. />
  7197. </div>
  7198. <div>{{ w.commentCount }}</div>
  7199. </div>
  7200. </div>
  7201. </div>
  7202. </div>
  7203. </div>
  7204. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  7205. </div>
  7206. </div>
  7207. <div
  7208. :id="'tool-' + toolIndex"
  7209. :style="{
  7210. height:
  7211. isCloseList[toolIndex].isClose == 1
  7212. ? retrnToolHeight('tool-' + toolIndex)
  7213. : 'auto',
  7214. overflow:
  7215. isCloseList[toolIndex].isClose == 1
  7216. ? 'hidden'
  7217. : 'unset'
  7218. }"
  7219. class="worksDetailBox"
  7220. v-if="
  7221. worksStudent.length &&
  7222. worksStudent[toolIndex].length > 0
  7223. "
  7224. >
  7225. <div
  7226. class="works"
  7227. style="
  7228. width: 200px;
  7229. height: 140px;
  7230. margin: 10px 10px 10px 0;
  7231. border-radius: 15px;
  7232. box-shadow: 0 0 6px 1px #dfdada;
  7233. "
  7234. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7235. :key="wIndex"
  7236. >
  7237. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7238. <div class="workImg">
  7239. <img
  7240. :src="w.works"
  7241. @click="previewImg(w.works, w)"
  7242. alt
  7243. />
  7244. <div
  7245. class="answerScore"
  7246. v-if="w.score"
  7247. @click.stop="openScore(w)"
  7248. :class="{
  7249. rightW:
  7250. w.userid == userid || tType == 1 || tType == 4
  7251. }"
  7252. >
  7253. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  7254. </div>
  7255. <div
  7256. class="answerScore"
  7257. @click.stop="openScore(w)"
  7258. v-else-if="
  7259. courseDetail.userid == userid &&
  7260. courseDetail.state != 5 &&
  7261. chapInfoList[courseType].chapterInfo[0]
  7262. .taskJson[taskCount].eList &&
  7263. chapInfoList[courseType].chapterInfo[0]
  7264. .taskJson[taskCount].eList.length
  7265. "
  7266. :class="{
  7267. rightW:
  7268. w.userid == userid || tType == 1 || tType == 4
  7269. }"
  7270. >
  7271. {{lang.ssMarkScore}}
  7272. </div>
  7273. <div
  7274. v-else-if="
  7275. (courseDetail.userid == userid ||
  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. (courseDetail.course_teacher &&
  7283. courseDetail.course_teacher.indexOf(userid) !=
  7284. -1) ||
  7285. (w.userid == userid && sIsOpen)) &&
  7286. courseDetail.state == 5 &&
  7287. ((chapInfoList[courseType].chapterInfo[0]
  7288. .taskJson[taskCount].eList &&
  7289. chapInfoList[courseType].chapterInfo[0]
  7290. .taskJson[taskCount].eList.length) ||
  7291. (tool.eList && tool.eList.length))
  7292. "
  7293. >
  7294. <el-popover
  7295. placement="top"
  7296. width="318"
  7297. :disabled="AIloading[toolIndex][wIndex].loading"
  7298. trigger="hover"
  7299. >
  7300. <markScore
  7301. :loading="AIloading[toolIndex][wIndex].loading"
  7302. :markScoreVisible="markScoreVisible"
  7303. :ref="`markSco${toolIndex}${wIndex}`"
  7304. @updateLoading="updateLoading"
  7305. @updateDocSco="updateDocSco"
  7306. @refreshOther="refreshOther"
  7307. @markScoreDig="markScoreDig"
  7308. :tool="tool"
  7309. :wIndex="wIndex"
  7310. :scoCon="w"
  7311. :toolIndex="toolIndex"
  7312. :key="refreshKey"
  7313. :stage="courseType"
  7314. :task="taskCount"
  7315. :scoTit="
  7316. chapInfoList[courseType].chapterInfo[0]
  7317. .taskJson[taskCount].eList
  7318. "
  7319. >
  7320. </markScore>
  7321. <div
  7322. class="answerScore"
  7323. @click="
  7324. markScoreDig2(
  7325. w.sName,
  7326. worksStudent,
  7327. w.userid,
  7328. toolIndex,
  7329. chapInfoList[courseType].chapterInfo[0]
  7330. .taskJson[taskCount].eList,
  7331. AIloading[toolIndex][wIndex].loading,
  7332. tool
  7333. )
  7334. "
  7335. slot="reference"
  7336. :class="{
  7337. rightW:
  7338. w.userid == userid ||
  7339. tType == 1 ||
  7340. tType == 4 ||
  7341. w.ateacher == userid
  7342. }"
  7343. >
  7344. <span v-if="AIloading[toolIndex][wIndex].sco">
  7345. {{
  7346. AIloading[toolIndex][wIndex].loading
  7347. ? lang.ssScoringIn
  7348. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  7349. }}
  7350. </span>
  7351. <span v-else>
  7352. {{
  7353. AIloading[toolIndex][wIndex].loading
  7354. ? lang.ssScoringIn
  7355. : lang.ssMarkScore
  7356. }}
  7357. </span>
  7358. </div>
  7359. </el-popover>
  7360. </div>
  7361. <img
  7362. class="deleteImg"
  7363. src="../../assets/deleteworks.png"
  7364. v-if="
  7365. w.userid == userid || tType == 1 || tType == 4
  7366. "
  7367. @click.stop="deleteWorks(w.wid)"
  7368. alt
  7369. />
  7370. </div>
  7371. <div class="comment" style="min-width: 200px">
  7372. <div class="worksName">
  7373. <div>{{ w.sName }}</div>
  7374. </div>
  7375. <div class="commentList">
  7376. <div class="commentList">
  7377. <div
  7378. class="commentImg"
  7379. @click="
  7380. isLikes(
  7381. w.wid,
  7382. userid,
  7383. 1,
  7384. null,
  7385. w.isLikes,
  7386. w.sName
  7387. )
  7388. "
  7389. >
  7390. <img
  7391. :src="w.isLikes == true ? likes : noLikes"
  7392. alt=""
  7393. />
  7394. </div>
  7395. <div>{{ w.likesCount }}</div>
  7396. </div>
  7397. <div class="commentList" style="margin-right: 15px">
  7398. <div
  7399. class="commentImg"
  7400. @click="commentOther(w, toolIndex, wIndex)"
  7401. >
  7402. <img
  7403. src="../../assets/icon/comment/comment.png"
  7404. alt=""
  7405. />
  7406. </div>
  7407. <div>{{ w.commentCount }}</div>
  7408. </div>
  7409. </div>
  7410. </div>
  7411. </div>
  7412. </div>
  7413. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7414. {{lang.ssNotSubmitted}}
  7415. </div>
  7416. <div
  7417. class="noWorksS"
  7418. v-if="noWorksS && noWorksS[toolIndex].length"
  7419. >
  7420. <div
  7421. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7422. :key="sIndex"
  7423. class="noWorksName"
  7424. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7425. >
  7426. <el-tooltip
  7427. effect="dark"
  7428. :content="s.student"
  7429. placement="top"
  7430. >
  7431. <span>{{ s.student }}</span>
  7432. </el-tooltip>
  7433. </div>
  7434. </div>
  7435. </div>
  7436. <div
  7437. v-if="
  7438. tType &&
  7439. ((tType == 2 && sIsOpen == true) ||
  7440. tType == 1 ||
  7441. tType == 4) &&
  7442. tool.tool.indexOf(3) != -1
  7443. "
  7444. class="worksBox"
  7445. >
  7446. <div
  7447. class="zuoyeYulan"
  7448. style="display: flex;justify-content: space-between;align-items: center;"
  7449. v-if="
  7450. (worksStudent.length &&
  7451. worksStudent[toolIndex].length > 0) ||
  7452. (courseGroup.group && courseGroup.group.length)
  7453. "
  7454. >
  7455. <div class="worksTop">
  7456. <div>{{lang.ssHomeworkPreview}}</div>
  7457. <div
  7458. class="corOpen"
  7459. @click="contract(toolIndex)"
  7460. v-if="
  7461. isCloseList[toolIndex].isCloseBoolean &&
  7462. isCloseList[toolIndex].isClose == 0
  7463. "
  7464. >
  7465. {{lang.ssFold}}
  7466. </div>
  7467. <div
  7468. class="corOpen"
  7469. @click="contract(toolIndex)"
  7470. v-if="isCloseList[toolIndex].isClose == 1"
  7471. >
  7472. {{lang.ssExpand}}
  7473. </div>
  7474. </div>
  7475. <div
  7476. style="display: flex;"
  7477. v-if="
  7478. (courseDetail.userid == userid ||
  7479. (courseDetail.course_teacher &&
  7480. courseDetail.course_teacher.indexOf(userid) !=
  7481. -1)) &&
  7482. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7483. taskCount
  7484. ].eList &&
  7485. chapInfoList[courseType].chapterInfo[0].taskJson[
  7486. taskCount
  7487. ].eList.length) ||
  7488. (tool.eList && tool.eList.length)) &&
  7489. courseDetail.state == 5
  7490. "
  7491. >
  7492. <div
  7493. style="margin-right:10px"
  7494. class="ScoreBtn"
  7495. @click="
  7496. resetLoopEva(
  7497. worksStudent[toolIndex],
  7498. chapInfoList[courseType].chapterInfo[0].taskJson[
  7499. taskCount
  7500. ].eList,
  7501. courseType,
  7502. taskCount,
  7503. toolIndex,
  7504. tool.toolDetail,
  7505. worksStudent
  7506. )
  7507. "
  7508. >
  7509. {{lang.ssReset}}
  7510. </div>
  7511. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7512. <img
  7513. src="../../assets/icon/newIcons/rootImg.png"
  7514. alt=""
  7515. />
  7516. {{lang.ssAiScore}}
  7517. </div>
  7518. <div
  7519. class="ScoreBtn"
  7520. v-else-if="!loopLoading[toolIndex].loading"
  7521. @click="
  7522. loopEva(
  7523. worksStudent[toolIndex],
  7524. chapInfoList[courseType].chapterInfo[0].taskJson[
  7525. taskCount
  7526. ].eList,
  7527. courseType,
  7528. taskCount,
  7529. toolIndex,
  7530. tool.toolDetail,
  7531. chapInfoList[courseType].chapterInfo[0].taskJson[
  7532. taskCount
  7533. ].taskDetail,
  7534. tool
  7535. )
  7536. "
  7537. >
  7538. <img
  7539. src="../../assets/icon/newIcons/rootImg.png"
  7540. alt=""
  7541. />
  7542. {{lang.ssAiScore}}
  7543. </div>
  7544. <div class="ScoreBtn" v-else>
  7545. <img
  7546. src="../../assets/icon/newIcons/rootImg.png"
  7547. alt=""
  7548. />
  7549. {{lang.ssScoring}}
  7550. </div>
  7551. </div>
  7552. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7553. </div>
  7554. <div
  7555. class="group_workBox"
  7556. v-for="(g, gindex) in courseGroup.group"
  7557. :key="gindex"
  7558. >
  7559. <div class="group_box">
  7560. <div class="group_title">
  7561. <el-tooltip
  7562. class="item"
  7563. effect="light"
  7564. :content="g.name"
  7565. placement="top"
  7566. >
  7567. <div class="group_name">{{ g.name }}</div>
  7568. </el-tooltip>
  7569. </div>
  7570. <div
  7571. class="group_work"
  7572. v-if="
  7573. g.works &&
  7574. g.works.length &&
  7575. g.works[toolIndex].length
  7576. "
  7577. >
  7578. <div
  7579. class="works"
  7580. style="
  7581. width: 200px;
  7582. height: 140px;
  7583. margin: 10px 10px 10px 0;
  7584. border-radius: 15px;
  7585. box-shadow: 0 0 6px 1px #dfdada;
  7586. "
  7587. v-for="(w, wIndex) in g.works[toolIndex]"
  7588. :key="wIndex"
  7589. :class="w.type == 1 ? 'isTypeOne' : ''"
  7590. >
  7591. <div class="workImg">
  7592. <img
  7593. :src="w.works"
  7594. @click="previewImg(w.works, w)"
  7595. alt
  7596. />
  7597. <div
  7598. class="answerScore"
  7599. v-if="w.score"
  7600. @click.stop="openScore(w)"
  7601. :class="{
  7602. rightW:
  7603. w.userid == userid ||
  7604. tType == 1 ||
  7605. tType == 4
  7606. }"
  7607. >
  7608. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  7609. </div>
  7610. <div
  7611. class="answerScore"
  7612. @click.stop="openScore(w)"
  7613. v-else-if="courseDetail.userid == userid"
  7614. :class="{
  7615. rightW:
  7616. w.userid == userid ||
  7617. tType == 1 ||
  7618. tType == 4
  7619. }"
  7620. >
  7621. {{lang.ssMarkScore}}
  7622. </div>
  7623. <img
  7624. class="deleteImg"
  7625. src="../../assets/deleteworks.png"
  7626. v-if="
  7627. w.userid == userid || tType == 1 || tType == 4
  7628. "
  7629. @click.stop="deleteWorks(w.wid)"
  7630. alt
  7631. />
  7632. </div>
  7633. <div class="comment" style="min-width: 200px">
  7634. <div class="worksName">
  7635. <div>{{ w.sName }}</div>
  7636. </div>
  7637. <div class="commentList">
  7638. <div class="commentList">
  7639. <div
  7640. class="commentImg"
  7641. @click="
  7642. isLikes(
  7643. w.wid,
  7644. userid,
  7645. 1,
  7646. null,
  7647. w.isLikes,
  7648. w.sName
  7649. )
  7650. "
  7651. >
  7652. <img
  7653. :src="w.isLikes == true ? likes : noLikes"
  7654. alt=""
  7655. />
  7656. </div>
  7657. <div>{{ w.likesCount }}</div>
  7658. </div>
  7659. <div
  7660. class="commentList"
  7661. style="margin-right: 15px"
  7662. >
  7663. <div
  7664. class="commentImg"
  7665. @click="
  7666. commentOther(
  7667. w,
  7668. toolIndex,
  7669. wIndex,
  7670. null,
  7671. g.id
  7672. )
  7673. "
  7674. >
  7675. <img
  7676. src="../../assets/icon/comment/comment.png"
  7677. alt=""
  7678. />
  7679. </div>
  7680. <div>{{ w.commentCount }}</div>
  7681. </div>
  7682. </div>
  7683. </div>
  7684. </div>
  7685. </div>
  7686. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  7687. </div>
  7688. </div>
  7689. <div
  7690. :id="'tool-' + toolIndex"
  7691. :style="{
  7692. height:
  7693. isCloseList[toolIndex].isClose == 1
  7694. ? retrnToolHeight('tool-' + toolIndex)
  7695. : 'auto',
  7696. overflow:
  7697. isCloseList[toolIndex].isClose == 1
  7698. ? 'hidden'
  7699. : 'unset'
  7700. }"
  7701. class="worksDetailBox"
  7702. v-if="
  7703. worksStudent.length &&
  7704. worksStudent[toolIndex].length > 0
  7705. "
  7706. >
  7707. <div
  7708. class="works"
  7709. style="
  7710. width: 200px;
  7711. height: 140px;
  7712. margin: 10px 10px 10px 0;
  7713. border-radius: 15px;
  7714. box-shadow: 0 0 6px 1px #dfdada;
  7715. "
  7716. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7717. :key="wIndex"
  7718. >
  7719. <!-- @click="previewImg(w.works)" -->
  7720. <div class="workImg">
  7721. <img
  7722. :src="w.works"
  7723. @click="previewImg(w.works, w)"
  7724. alt
  7725. />
  7726. <div
  7727. class="answerScore"
  7728. v-if="w.score"
  7729. @click.stop="openScore(w)"
  7730. :class="{
  7731. rightW:
  7732. w.userid == userid || tType == 1 || tType == 4
  7733. }"
  7734. >
  7735. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  7736. </div>
  7737. <div
  7738. class="answerScore"
  7739. @click.stop="openScore(w)"
  7740. v-else-if="
  7741. courseDetail.userid == userid &&
  7742. courseDetail.state != 5 &&
  7743. chapInfoList[courseType].chapterInfo[0]
  7744. .taskJson[taskCount].eList &&
  7745. chapInfoList[courseType].chapterInfo[0]
  7746. .taskJson[taskCount].eList.length
  7747. "
  7748. :class="{
  7749. rightW:
  7750. w.userid == userid || tType == 1 || tType == 4
  7751. }"
  7752. >
  7753. {{lang.ssMarkScore}}
  7754. </div>
  7755. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7756. <div
  7757. v-else-if="
  7758. (courseDetail.userid == userid ||
  7759. (courseDetail.course_teacher &&
  7760. courseDetail.course_teacher.indexOf(userid) !=
  7761. -1) ||
  7762. (w.userid == userid && sIsOpen)) &&
  7763. courseDetail.state == 5 &&
  7764. ((chapInfoList[courseType].chapterInfo[0]
  7765. .taskJson[taskCount].eList &&
  7766. chapInfoList[courseType].chapterInfo[0]
  7767. .taskJson[taskCount].eList.length) ||
  7768. (tool.eList && tool.eList.length))
  7769. "
  7770. >
  7771. <el-popover
  7772. placement="top"
  7773. width="318"
  7774. :disabled="AIloading[toolIndex][wIndex].loading"
  7775. trigger="hover"
  7776. >
  7777. <markScore
  7778. :loading="AIloading[toolIndex][wIndex].loading"
  7779. :markScoreVisible="markScoreVisible"
  7780. :ref="`markSco${toolIndex}${wIndex}`"
  7781. @updateLoading="updateLoading"
  7782. @updateDocSco="updateDocSco"
  7783. @refreshOther="refreshOther"
  7784. @markScoreDig="markScoreDig"
  7785. :tool="tool"
  7786. :wIndex="wIndex"
  7787. :scoCon="w"
  7788. :toolIndex="toolIndex"
  7789. :key="refreshKey"
  7790. :stage="courseType"
  7791. :task="taskCount"
  7792. :scoTit="
  7793. chapInfoList[courseType].chapterInfo[0]
  7794. .taskJson[taskCount].eList
  7795. "
  7796. >
  7797. </markScore>
  7798. <div
  7799. class="answerScore"
  7800. @click="
  7801. markScoreDig2(
  7802. w.sName,
  7803. worksStudent,
  7804. w.userid,
  7805. toolIndex,
  7806. chapInfoList[courseType].chapterInfo[0]
  7807. .taskJson[taskCount].eList,
  7808. AIloading[toolIndex][wIndex].loading,
  7809. tool
  7810. )
  7811. "
  7812. slot="reference"
  7813. :class="{
  7814. rightW:
  7815. w.userid == userid ||
  7816. tType == 1 ||
  7817. tType == 4 ||
  7818. w.ateacher == userid
  7819. }"
  7820. >
  7821. <span v-if="AIloading[toolIndex][wIndex].sco">
  7822. {{
  7823. AIloading[toolIndex][wIndex].loading
  7824. ? lang.ssScoringIn
  7825. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  7826. }}
  7827. </span>
  7828. <span v-else>
  7829. {{
  7830. AIloading[toolIndex][wIndex].loading
  7831. ? lang.ssScoringIn
  7832. : lang.ssMarkScore
  7833. }}
  7834. </span>
  7835. </div>
  7836. </el-popover>
  7837. </div>
  7838. <img
  7839. class="deleteImg"
  7840. src="../../assets/deleteworks.png"
  7841. v-if="
  7842. w.userid == userid || tType == 1 || tType == 4
  7843. "
  7844. @click.stop="deleteWorks(w.wid)"
  7845. alt
  7846. />
  7847. </div>
  7848. <div class="comment" style="min-width: 200px">
  7849. <div class="worksName">
  7850. <div>{{ w.sName }}</div>
  7851. </div>
  7852. <div class="commentList">
  7853. <div class="commentList">
  7854. <div
  7855. class="commentImg"
  7856. @click="
  7857. isLikes(
  7858. w.wid,
  7859. userid,
  7860. 1,
  7861. null,
  7862. w.isLikes,
  7863. w.sName
  7864. )
  7865. "
  7866. >
  7867. <img
  7868. :src="w.isLikes == true ? likes : noLikes"
  7869. alt=""
  7870. />
  7871. </div>
  7872. <div>{{ w.likesCount }}</div>
  7873. </div>
  7874. <div class="commentList" style="margin-right: 15px">
  7875. <div
  7876. class="commentImg"
  7877. @click="commentOther(w, toolIndex, wIndex)"
  7878. >
  7879. <img
  7880. src="../../assets/icon/comment/comment.png"
  7881. alt=""
  7882. />
  7883. </div>
  7884. <div>{{ w.commentCount }}</div>
  7885. </div>
  7886. </div>
  7887. </div>
  7888. </div>
  7889. </div>
  7890. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7891. {{lang.ssNotSubmitted}}
  7892. </div>
  7893. <div
  7894. class="noWorksS"
  7895. v-if="noWorksS && noWorksS[toolIndex].length"
  7896. >
  7897. <div
  7898. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7899. :key="sIndex"
  7900. class="noWorksName"
  7901. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7902. >
  7903. <el-tooltip
  7904. effect="dark"
  7905. :content="s.student"
  7906. placement="top"
  7907. >
  7908. <span>{{ s.student }}</span>
  7909. </el-tooltip>
  7910. </div>
  7911. </div>
  7912. </div>
  7913. <div
  7914. v-if="
  7915. tType &&
  7916. ((tType == 2 && sIsOpen == true) ||
  7917. tType == 1 ||
  7918. tType == 4) &&
  7919. tool.tool.indexOf(6) != -1
  7920. "
  7921. class="worksBox"
  7922. >
  7923. <div
  7924. class="zuoyeYulan"
  7925. v-if="
  7926. (worksStudent.length &&
  7927. worksStudent[toolIndex].length > 0) ||
  7928. (courseGroup.group && courseGroup.group.length)
  7929. "
  7930. >
  7931. <div class="worksTop">
  7932. <div>{{lang.ssHomeworkPreview}}</div>
  7933. <div
  7934. class="corOpen"
  7935. @click="contract(toolIndex)"
  7936. v-if="
  7937. isCloseList[toolIndex].isCloseBoolean &&
  7938. isCloseList[toolIndex].isClose == 0
  7939. "
  7940. >
  7941. {{lang.ssFold}}
  7942. </div>
  7943. <div
  7944. class="corOpen"
  7945. @click="contract(toolIndex)"
  7946. v-if="isCloseList[toolIndex].isClose == 1"
  7947. >
  7948. {{lang.ssExpand}}
  7949. </div>
  7950. </div>
  7951. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7952. </div>
  7953. <div
  7954. class="group_workBox"
  7955. v-for="(g, gindex) in courseGroup.group"
  7956. :key="gindex"
  7957. >
  7958. <div class="group_box">
  7959. <div class="group_title">
  7960. <el-tooltip
  7961. class="item"
  7962. effect="light"
  7963. :content="g.name"
  7964. placement="top"
  7965. >
  7966. <div class="group_name">{{ g.name }}</div>
  7967. </el-tooltip>
  7968. </div>
  7969. <div
  7970. class="group_work"
  7971. v-if="
  7972. g.works &&
  7973. g.works.length &&
  7974. g.works[toolIndex].length
  7975. "
  7976. >
  7977. <div
  7978. class="works"
  7979. style="
  7980. width: 200px;
  7981. height: 140px;
  7982. margin: 10px 10px 10px 0;
  7983. border-radius: 15px;
  7984. box-shadow: 0 0 6px 1px #dfdada;
  7985. "
  7986. v-for="(w, wIndex) in g.works[toolIndex]"
  7987. :key="wIndex"
  7988. :class="w.type == 1 ? 'isTypeOne' : ''"
  7989. >
  7990. <div class="workImg">
  7991. <img
  7992. :src="w.works"
  7993. @click="previewImg(w.works, w)"
  7994. alt
  7995. />
  7996. <div
  7997. class="answerScore"
  7998. v-if="w.score"
  7999. @click.stop="openScore(w)"
  8000. :class="{
  8001. rightW:
  8002. w.userid == userid ||
  8003. tType == 1 ||
  8004. tType == 4
  8005. }"
  8006. >
  8007. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  8008. </div>
  8009. <div
  8010. class="answerScore"
  8011. @click.stop="openScore(w)"
  8012. v-else-if="courseDetail.userid == userid"
  8013. :class="{
  8014. rightW:
  8015. w.userid == userid ||
  8016. tType == 1 ||
  8017. tType == 4
  8018. }"
  8019. >
  8020. {{lang.ssMarkScore}}
  8021. </div>
  8022. <img
  8023. class="deleteImg"
  8024. src="../../assets/deleteworks.png"
  8025. v-if="
  8026. w.userid == userid || tType == 1 || tType == 4
  8027. "
  8028. @click.stop="deleteWorks(w.wid)"
  8029. alt
  8030. />
  8031. </div>
  8032. <div class="comment" style="min-width: 200px">
  8033. <div class="worksName">
  8034. <div>{{ w.sName }}</div>
  8035. </div>
  8036. <div class="commentList">
  8037. <div class="commentList">
  8038. <div
  8039. class="commentImg"
  8040. @click="
  8041. isLikes(
  8042. w.wid,
  8043. userid,
  8044. 1,
  8045. null,
  8046. w.isLikes,
  8047. w.sName
  8048. )
  8049. "
  8050. >
  8051. <img
  8052. :src="w.isLikes == true ? likes : noLikes"
  8053. alt=""
  8054. />
  8055. </div>
  8056. <div>{{ w.likesCount }}</div>
  8057. </div>
  8058. <div
  8059. class="commentList"
  8060. style="margin-right: 15px"
  8061. >
  8062. <div
  8063. class="commentImg"
  8064. @click="
  8065. commentOther(
  8066. w,
  8067. toolIndex,
  8068. wIndex,
  8069. null,
  8070. g.id
  8071. )
  8072. "
  8073. >
  8074. <img
  8075. src="../../assets/icon/comment/comment.png"
  8076. alt=""
  8077. />
  8078. </div>
  8079. <div>{{ w.commentCount }}</div>
  8080. </div>
  8081. </div>
  8082. </div>
  8083. </div>
  8084. </div>
  8085. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  8086. </div>
  8087. </div>
  8088. <div
  8089. :id="'tool-' + toolIndex"
  8090. :style="{
  8091. height:
  8092. isCloseList[toolIndex].isClose == 1
  8093. ? retrnToolHeight('tool-' + toolIndex)
  8094. : 'auto',
  8095. overflow:
  8096. isCloseList[toolIndex].isClose == 1
  8097. ? 'hidden'
  8098. : 'unset'
  8099. }"
  8100. class="worksDetailBox"
  8101. v-if="
  8102. worksStudent.length &&
  8103. worksStudent[toolIndex].length > 0
  8104. "
  8105. >
  8106. <div
  8107. class="works"
  8108. style="
  8109. width: 200px;
  8110. height: 140px;
  8111. margin: 10px 10px 10px 0;
  8112. border-radius: 15px;
  8113. box-shadow: 0 0 6px 1px #dfdada;
  8114. "
  8115. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8116. :key="wIndex"
  8117. >
  8118. <!-- @click="previewImg(w.works)" -->
  8119. <div class="workImg">
  8120. <img
  8121. :src="w.works"
  8122. @click="previewImg(w.works, w)"
  8123. alt
  8124. />
  8125. <div
  8126. class="answerScore"
  8127. v-if="w.score"
  8128. @click.stop="openScore(w)"
  8129. :class="{
  8130. rightW:
  8131. w.userid == userid || tType == 1 || tType == 4
  8132. }"
  8133. >
  8134. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  8135. </div>
  8136. <div
  8137. class="answerScore"
  8138. @click.stop="openScore(w)"
  8139. v-else-if="courseDetail.userid == userid"
  8140. :class="{
  8141. rightW:
  8142. w.userid == userid || tType == 1 || tType == 4
  8143. }"
  8144. >
  8145. {{lang.ssMarkScore}}
  8146. </div>
  8147. <img
  8148. class="deleteImg"
  8149. src="../../assets/deleteworks.png"
  8150. v-if="
  8151. w.userid == userid || tType == 1 || tType == 4
  8152. "
  8153. @click.stop="deleteWorks(w.wid)"
  8154. alt
  8155. />
  8156. </div>
  8157. <div class="comment" style="min-width: 200px">
  8158. <div class="worksName">
  8159. <div>{{ w.sName }}</div>
  8160. </div>
  8161. <div class="commentList">
  8162. <div class="commentList">
  8163. <div
  8164. class="commentImg"
  8165. @click="
  8166. isLikes(
  8167. w.wid,
  8168. userid,
  8169. 1,
  8170. null,
  8171. w.isLikes,
  8172. w.sName
  8173. )
  8174. "
  8175. >
  8176. <img
  8177. :src="w.isLikes == true ? likes : noLikes"
  8178. alt=""
  8179. />
  8180. </div>
  8181. <div>{{ w.likesCount }}</div>
  8182. </div>
  8183. <div class="commentList" style="margin-right: 15px">
  8184. <div
  8185. class="commentImg"
  8186. @click="commentOther(w, toolIndex, wIndex)"
  8187. >
  8188. <img
  8189. src="../../assets/icon/comment/comment.png"
  8190. alt=""
  8191. />
  8192. </div>
  8193. <div>{{ w.commentCount }}</div>
  8194. </div>
  8195. </div>
  8196. </div>
  8197. </div>
  8198. </div>
  8199. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8200. {{lang.ssNotSubmitted}}
  8201. </div>
  8202. <div
  8203. class="noWorksS"
  8204. v-if="noWorksS && noWorksS[toolIndex].length"
  8205. >
  8206. <div
  8207. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8208. :key="sIndex"
  8209. class="noWorksName"
  8210. >
  8211. <el-tooltip
  8212. effect="dark"
  8213. :content="s.student"
  8214. placement="top"
  8215. >
  8216. <span>{{ s.student }}</span>
  8217. </el-tooltip>
  8218. </div>
  8219. </div>
  8220. </div>
  8221. <div
  8222. v-if="
  8223. tType &&
  8224. ((tType == 2 && sIsOpen == true) ||
  8225. tType == 1 ||
  8226. tType == 4) &&
  8227. tool.tool.indexOf(7) != -1
  8228. "
  8229. class="worksBox"
  8230. >
  8231. <div
  8232. class="zuoyeYulan"
  8233. style="display: flex;justify-content: space-between;align-items: center;"
  8234. v-if="
  8235. (worksStudent.length &&
  8236. worksStudent[toolIndex].length > 0) ||
  8237. (courseGroup.group && courseGroup.group.length)
  8238. "
  8239. >
  8240. <div class="worksTop">
  8241. <div>{{lang.ssHomeworkPreview}}</div>
  8242. <div
  8243. class="corOpen"
  8244. @click="contract(toolIndex)"
  8245. v-if="
  8246. isCloseList[toolIndex].isCloseBoolean &&
  8247. isCloseList[toolIndex].isClose == 0
  8248. "
  8249. >
  8250. {{lang.ssFold}}
  8251. </div>
  8252. <div
  8253. class="corOpen"
  8254. @click="contract(toolIndex)"
  8255. v-if="isCloseList[toolIndex].isClose == 1"
  8256. >
  8257. {{lang.ssExpand}}
  8258. </div>
  8259. </div>
  8260. <div
  8261. style="display: flex;"
  8262. v-if="
  8263. (courseDetail.userid == userid ||
  8264. (courseDetail.course_teacher &&
  8265. courseDetail.course_teacher.indexOf(userid) !=
  8266. -1)) &&
  8267. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8268. taskCount
  8269. ].eList &&
  8270. chapInfoList[courseType].chapterInfo[0].taskJson[
  8271. taskCount
  8272. ].eList.length) ||
  8273. (tool.eList && tool.eList.length)) &&
  8274. courseDetail.state == 5
  8275. "
  8276. >
  8277. <div
  8278. style="margin-right:10px"
  8279. class="ScoreBtn"
  8280. @click="
  8281. resetLoopEva(
  8282. worksStudent[toolIndex],
  8283. chapInfoList[courseType].chapterInfo[0].taskJson[
  8284. taskCount
  8285. ].eList,
  8286. courseType,
  8287. taskCount,
  8288. toolIndex,
  8289. tool.toolDetail,
  8290. worksStudent
  8291. )
  8292. "
  8293. >
  8294. {{lang.ssReset}}
  8295. </div>
  8296. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8297. <img
  8298. src="../../assets/icon/newIcons/rootImg.png"
  8299. alt=""
  8300. />
  8301. {{lang.ssAiScore}}
  8302. </div>
  8303. <div
  8304. class="ScoreBtn"
  8305. v-else-if="!loopLoading[toolIndex].loading"
  8306. @click="
  8307. loopEva(
  8308. worksStudent[toolIndex],
  8309. chapInfoList[courseType].chapterInfo[0].taskJson[
  8310. taskCount
  8311. ].eList,
  8312. courseType,
  8313. taskCount,
  8314. toolIndex,
  8315. tool.toolDetail,
  8316. chapInfoList[courseType].chapterInfo[0].taskJson[
  8317. taskCount
  8318. ].taskDetail,
  8319. tool
  8320. )
  8321. "
  8322. >
  8323. <img
  8324. src="../../assets/icon/newIcons/rootImg.png"
  8325. alt=""
  8326. />
  8327. {{lang.ssAiScore}}
  8328. </div>
  8329. <div class="ScoreBtn" v-else>
  8330. <img
  8331. src="../../assets/icon/newIcons/rootImg.png"
  8332. alt=""
  8333. />
  8334. {{lang.ssScoring}}
  8335. </div>
  8336. </div>
  8337. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8338. </div>
  8339. <div
  8340. class="group_workBox"
  8341. v-for="(g, gindex) in courseGroup.group"
  8342. :key="gindex"
  8343. >
  8344. <div class="group_box">
  8345. <div class="group_title">
  8346. <el-tooltip
  8347. class="item"
  8348. effect="light"
  8349. :content="g.name"
  8350. placement="top"
  8351. >
  8352. <div class="group_name">{{ g.name }}</div>
  8353. </el-tooltip>
  8354. </div>
  8355. <div
  8356. class="group_work"
  8357. v-if="
  8358. g.works &&
  8359. g.works.length &&
  8360. g.works[toolIndex].length
  8361. "
  8362. >
  8363. <div
  8364. class="works"
  8365. style="
  8366. width: 200px;
  8367. height: 140px;
  8368. margin: 10px 10px 10px 0;
  8369. border-radius: 15px;
  8370. box-shadow: 0 0 6px 1px #dfdada;
  8371. "
  8372. v-for="(w, wIndex) in g.works[toolIndex]"
  8373. :key="wIndex"
  8374. :class="w.type == 1 ? 'isTypeOne' : ''"
  8375. >
  8376. <div class="workImg">
  8377. <img
  8378. :src="w.works"
  8379. @click="previewImg(w.works, w)"
  8380. alt
  8381. />
  8382. <div
  8383. class="answerScore"
  8384. v-if="w.score"
  8385. @click.stop="openScore(w)"
  8386. :class="{
  8387. rightW:
  8388. w.userid == userid ||
  8389. tType == 1 ||
  8390. tType == 4
  8391. }"
  8392. >
  8393. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  8394. </div>
  8395. <div
  8396. class="answerScore"
  8397. @click.stop="openScore(w)"
  8398. v-else-if="courseDetail.userid == userid"
  8399. :class="{
  8400. rightW:
  8401. w.userid == userid ||
  8402. tType == 1 ||
  8403. tType == 4
  8404. }"
  8405. >
  8406. {{lang.ssMarkScore}}
  8407. </div>
  8408. <img
  8409. class="deleteImg"
  8410. src="../../assets/deleteworks.png"
  8411. v-if="
  8412. w.userid == userid || tType == 1 || tType == 4
  8413. "
  8414. @click.stop="deleteWorks(w.wid)"
  8415. alt
  8416. />
  8417. </div>
  8418. <div class="comment" style="min-width: 200px">
  8419. <div class="worksName">
  8420. <div>{{ w.sName }}</div>
  8421. </div>
  8422. <div class="commentList">
  8423. <div class="commentList">
  8424. <div
  8425. class="commentImg"
  8426. @click="
  8427. isLikes(
  8428. w.wid,
  8429. userid,
  8430. 1,
  8431. null,
  8432. w.isLikes,
  8433. w.sName
  8434. )
  8435. "
  8436. >
  8437. <img
  8438. :src="w.isLikes == true ? likes : noLikes"
  8439. alt=""
  8440. />
  8441. </div>
  8442. <div>{{ w.likesCount }}</div>
  8443. </div>
  8444. <div
  8445. class="commentList"
  8446. style="margin-right: 15px"
  8447. >
  8448. <div
  8449. class="commentImg"
  8450. @click="
  8451. commentOther(
  8452. w,
  8453. toolIndex,
  8454. wIndex,
  8455. null,
  8456. g.id
  8457. )
  8458. "
  8459. >
  8460. <img
  8461. src="../../assets/icon/comment/comment.png"
  8462. alt=""
  8463. />
  8464. </div>
  8465. <div>{{ w.commentCount }}</div>
  8466. </div>
  8467. </div>
  8468. </div>
  8469. </div>
  8470. </div>
  8471. <div class="group_work" v-else>{{lang.ssNoHomework}}</div>
  8472. </div>
  8473. </div>
  8474. <div
  8475. :id="'tool-' + toolIndex"
  8476. :style="{
  8477. height:
  8478. isCloseList[toolIndex].isClose == 1
  8479. ? retrnToolHeight('tool-' + toolIndex)
  8480. : 'auto',
  8481. overflow:
  8482. isCloseList[toolIndex].isClose == 1
  8483. ? 'hidden'
  8484. : 'unset'
  8485. }"
  8486. class="worksDetailBox"
  8487. v-if="
  8488. worksStudent.length &&
  8489. worksStudent[toolIndex].length > 0
  8490. "
  8491. >
  8492. <div
  8493. class="works"
  8494. style="
  8495. width: 200px;
  8496. height: 140px;
  8497. margin: 10px 10px 10px 0;
  8498. border-radius: 15px;
  8499. box-shadow: 0 0 6px 1px #dfdada;
  8500. "
  8501. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8502. :key="wIndex"
  8503. >
  8504. <!-- @click="previewImg(w.works)" -->
  8505. <div class="workImg">
  8506. <img
  8507. :src="w.works"
  8508. @click="previewImg(w.works, w)"
  8509. alt
  8510. />
  8511. <div
  8512. class="answerScore"
  8513. v-if="w.score"
  8514. @click.stop="openScore(w)"
  8515. :class="{
  8516. rightW:
  8517. w.userid == userid || tType == 1 || tType == 4
  8518. }"
  8519. >
  8520. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  8521. </div>
  8522. <div
  8523. class="answerScore"
  8524. @click.stop="openScore(w)"
  8525. v-else-if="
  8526. courseDetail.userid == userid &&
  8527. courseDetail.state != 5 &&
  8528. chapInfoList[courseType].chapterInfo[0]
  8529. .taskJson[taskCount].eList &&
  8530. chapInfoList[courseType].chapterInfo[0]
  8531. .taskJson[taskCount].eList.length
  8532. "
  8533. :class="{
  8534. rightW:
  8535. w.userid == userid || tType == 1 || tType == 4
  8536. }"
  8537. >
  8538. {{lang.ssMarkScore}}
  8539. </div>
  8540. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8541. <div
  8542. v-else-if="
  8543. (courseDetail.userid == userid ||
  8544. (courseDetail.course_teacher &&
  8545. courseDetail.course_teacher.indexOf(userid) !=
  8546. -1) ||
  8547. (w.userid == userid && sIsOpen)) &&
  8548. courseDetail.state == 5 &&
  8549. ((chapInfoList[courseType].chapterInfo[0]
  8550. .taskJson[taskCount].eList &&
  8551. chapInfoList[courseType].chapterInfo[0]
  8552. .taskJson[taskCount].eList.length) ||
  8553. (tool.eList && tool.eList.length))
  8554. "
  8555. >
  8556. <el-popover
  8557. placement="top"
  8558. width="318"
  8559. :disabled="AIloading[toolIndex][wIndex].loading"
  8560. trigger="hover"
  8561. >
  8562. <markScore
  8563. :loading="AIloading[toolIndex][wIndex].loading"
  8564. :markScoreVisible="markScoreVisible"
  8565. :ref="`markSco${toolIndex}${wIndex}`"
  8566. @updateLoading="updateLoading"
  8567. @updateDocSco="updateDocSco"
  8568. @refreshOther="refreshOther"
  8569. @markScoreDig="markScoreDig"
  8570. :tool="tool"
  8571. :wIndex="wIndex"
  8572. :scoCon="w"
  8573. :toolIndex="toolIndex"
  8574. :key="refreshKey"
  8575. :stage="courseType"
  8576. :task="taskCount"
  8577. :scoTit="
  8578. chapInfoList[courseType].chapterInfo[0]
  8579. .taskJson[taskCount].eList
  8580. "
  8581. >
  8582. </markScore>
  8583. <div
  8584. class="answerScore"
  8585. @click="
  8586. markScoreDig2(
  8587. w.sName,
  8588. worksStudent,
  8589. w.userid,
  8590. toolIndex,
  8591. chapInfoList[courseType].chapterInfo[0]
  8592. .taskJson[taskCount].eList,
  8593. AIloading[toolIndex][wIndex].loading,
  8594. tool
  8595. )
  8596. "
  8597. slot="reference"
  8598. :class="{
  8599. rightW:
  8600. w.userid == userid ||
  8601. tType == 1 ||
  8602. tType == 4 ||
  8603. w.ateacher == userid
  8604. }"
  8605. >
  8606. <span v-if="AIloading[toolIndex][wIndex].sco">
  8607. {{
  8608. AIloading[toolIndex][wIndex].loading
  8609. ? lang.ssScoringIn
  8610. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  8611. }}
  8612. </span>
  8613. <span v-else>
  8614. {{
  8615. AIloading[toolIndex][wIndex].loading
  8616. ? lang.ssScoringIn
  8617. : lang.ssMarkScore
  8618. }}
  8619. </span>
  8620. </div>
  8621. </el-popover>
  8622. </div>
  8623. <img
  8624. class="deleteImg"
  8625. src="../../assets/deleteworks.png"
  8626. v-if="
  8627. w.userid == userid || tType == 1 || tType == 4
  8628. "
  8629. @click.stop="deleteWorks(w.wid)"
  8630. alt
  8631. />
  8632. </div>
  8633. <div class="comment" style="min-width: 200px">
  8634. <div class="worksName">
  8635. <div>{{ w.sName }}</div>
  8636. </div>
  8637. <div class="commentList">
  8638. <div class="commentList">
  8639. <div
  8640. class="commentImg"
  8641. @click="
  8642. isLikes(
  8643. w.wid,
  8644. userid,
  8645. 1,
  8646. null,
  8647. w.isLikes,
  8648. w.sName
  8649. )
  8650. "
  8651. >
  8652. <img
  8653. :src="w.isLikes == true ? likes : noLikes"
  8654. alt=""
  8655. />
  8656. </div>
  8657. <div>{{ w.likesCount }}</div>
  8658. </div>
  8659. <div class="commentList" style="margin-right: 15px">
  8660. <div
  8661. class="commentImg"
  8662. @click="commentOther(w, toolIndex, wIndex)"
  8663. >
  8664. <img
  8665. src="../../assets/icon/comment/comment.png"
  8666. alt=""
  8667. />
  8668. </div>
  8669. <div>{{ w.commentCount }}</div>
  8670. </div>
  8671. </div>
  8672. </div>
  8673. </div>
  8674. </div>
  8675. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8676. {{lang.ssNotSubmitted}}
  8677. </div>
  8678. <div
  8679. class="noWorksS"
  8680. v-if="noWorksS && noWorksS[toolIndex].length"
  8681. >
  8682. <div
  8683. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8684. :key="sIndex"
  8685. class="noWorksName"
  8686. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8687. >
  8688. <el-tooltip
  8689. effect="dark"
  8690. :content="s.student"
  8691. placement="top"
  8692. >
  8693. <span>{{ s.student }}</span>
  8694. </el-tooltip>
  8695. </div>
  8696. </div>
  8697. </div>
  8698. <div
  8699. v-if="
  8700. tType &&
  8701. ((tType == 2 && sIsOpen == true) ||
  8702. tType == 1 ||
  8703. tType == 4) &&
  8704. tool.tool.indexOf(26) != -1
  8705. "
  8706. class="worksBox"
  8707. >
  8708. <div
  8709. class="zuoyeYulan"
  8710. v-if="
  8711. worksStudent.length &&
  8712. worksStudent[toolIndex].length > 0
  8713. "
  8714. >
  8715. <div class="worksTop">
  8716. <div>{{lang.ssHomeworkPreview}}</div>
  8717. <div
  8718. class="corOpen"
  8719. @click="contract(toolIndex)"
  8720. v-if="
  8721. isCloseList[toolIndex].isCloseBoolean &&
  8722. isCloseList[toolIndex].isClose == 0
  8723. "
  8724. >
  8725. {{lang.ssFold}}
  8726. </div>
  8727. <div
  8728. class="corOpen"
  8729. @click="contract(toolIndex)"
  8730. v-if="isCloseList[toolIndex].isClose == 1"
  8731. >
  8732. {{lang.ssExpand}}
  8733. </div>
  8734. </div>
  8735. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8736. </div>
  8737. <div
  8738. :id="'tool-' + toolIndex"
  8739. :style="{
  8740. height:
  8741. isCloseList[toolIndex].isClose == 1
  8742. ? retrnToolHeight('tool-' + toolIndex)
  8743. : 'auto',
  8744. overflow:
  8745. isCloseList[toolIndex].isClose == 1
  8746. ? 'hidden'
  8747. : 'unset'
  8748. }"
  8749. class="worksDetailBox"
  8750. v-if="
  8751. worksStudent.length &&
  8752. worksStudent[toolIndex].length > 0
  8753. "
  8754. >
  8755. <div
  8756. class="works"
  8757. style="width: 240px; height: 140px; overflow: hidden"
  8758. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8759. :key="wIndex"
  8760. :class="w.type == 1 ? 'isTypeOne' : ''"
  8761. >
  8762. <div class="workImg" v-if="w.type == 0">
  8763. <img
  8764. :src="w.works"
  8765. @click="previewImg(w.works, w)"
  8766. alt
  8767. />
  8768. <img
  8769. class="deleteImg"
  8770. src="../../assets/deleteworks.png"
  8771. v-if="
  8772. w.userid == userid || tType == 1 || tType == 4
  8773. "
  8774. @click.stop="deleteWorks(w.wid)"
  8775. alt
  8776. />
  8777. </div>
  8778. <div class="workImg" v-if="w.type == 1">
  8779. <img :src="word" @click="openFile(w.works)" alt />
  8780. <img
  8781. class="deleteImg"
  8782. src="../../assets/deleteworks.png"
  8783. v-if="
  8784. w.userid == userid || tType == 1 || tType == 4
  8785. "
  8786. @click.stop="deleteWorks(w.wid)"
  8787. alt
  8788. />
  8789. </div>
  8790. <div class="worksName">
  8791. <div>{{ w.sName }}</div>
  8792. </div>
  8793. </div>
  8794. </div>
  8795. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8796. {{lang.ssNotSubmitted}}
  8797. </div>
  8798. <div
  8799. class="noWorksS"
  8800. v-if="noWorksS && noWorksS[toolIndex].length"
  8801. >
  8802. <div
  8803. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8804. :key="sIndex"
  8805. class="noWorksName"
  8806. >
  8807. <el-tooltip
  8808. effect="dark"
  8809. :content="s.student"
  8810. placement="top"
  8811. >
  8812. <span>{{ s.student }}</span>
  8813. </el-tooltip>
  8814. </div>
  8815. </div>
  8816. </div>
  8817. <div
  8818. v-if="
  8819. tType &&
  8820. ((tType == 2 && sIsOpen == true) ||
  8821. tType == 1 ||
  8822. tType == 4) &&
  8823. tool.tool.indexOf(40) != -1
  8824. "
  8825. class="worksBox"
  8826. >
  8827. <div
  8828. class="zuoyeYulan"
  8829. v-if="
  8830. worksStudent.length &&
  8831. worksStudent[toolIndex].length > 0
  8832. "
  8833. >
  8834. <div class="worksTop">
  8835. <div>{{lang.ssHomeworkPreview}}</div>
  8836. <div
  8837. class="corOpen"
  8838. @click="contract(toolIndex)"
  8839. v-if="
  8840. isCloseList[toolIndex].isCloseBoolean &&
  8841. isCloseList[toolIndex].isClose == 0
  8842. "
  8843. >
  8844. {{lang.ssFold}}
  8845. </div>
  8846. <div
  8847. class="corOpen"
  8848. @click="contract(toolIndex)"
  8849. v-if="isCloseList[toolIndex].isClose == 1"
  8850. >
  8851. {{lang.ssExpand}}
  8852. </div>
  8853. </div>
  8854. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8855. </div>
  8856. <div
  8857. :id="'tool-' + toolIndex"
  8858. :style="{
  8859. height:
  8860. isCloseList[toolIndex].isClose == 1
  8861. ? retrnToolHeight('tool-' + toolIndex)
  8862. : 'auto',
  8863. overflow:
  8864. isCloseList[toolIndex].isClose == 1
  8865. ? 'hidden'
  8866. : 'unset'
  8867. }"
  8868. class="worksDetailBox"
  8869. v-if="
  8870. worksStudent.length &&
  8871. worksStudent[toolIndex].length > 0
  8872. "
  8873. >
  8874. <div
  8875. class="works"
  8876. style="
  8877. width: 200px;
  8878. height: 140px;
  8879. margin: 10px 10px 10px 0;
  8880. border-radius: 15px;
  8881. box-shadow: 0 0 6px 1px #dfdada;
  8882. "
  8883. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8884. :key="wIndex"
  8885. :class="w.type == 1 ? 'isTypeOne' : ''"
  8886. >
  8887. <div class="workImg">
  8888. <img
  8889. src="../../assets/icon/works/noImg.png"
  8890. @click="openPj(w.works, toolIndex)"
  8891. alt
  8892. />
  8893. <img
  8894. class="deleteImg"
  8895. src="../../assets/deleteworks.png"
  8896. v-if="
  8897. w.userid == userid || tType == 1 || tType == 4
  8898. "
  8899. @click.stop="deleteWorks(w.wid)"
  8900. alt
  8901. />
  8902. </div>
  8903. <div class="comment" style="min-width: 200px">
  8904. <div class="worksName">
  8905. <div>{{ w.sName }}</div>
  8906. </div>
  8907. <div class="commentList">
  8908. <div class="commentList">
  8909. <div
  8910. class="commentImg"
  8911. @click="
  8912. isLikes(
  8913. w.wid,
  8914. userid,
  8915. 1,
  8916. null,
  8917. w.isLikes,
  8918. w.sName
  8919. )
  8920. "
  8921. >
  8922. <img
  8923. :src="w.isLikes == true ? likes : noLikes"
  8924. alt=""
  8925. />
  8926. </div>
  8927. <div>{{ w.likesCount }}</div>
  8928. </div>
  8929. <div class="commentList" style="margin-right: 15px">
  8930. <div
  8931. class="commentImg"
  8932. @click="commentOther(w, toolIndex, wIndex)"
  8933. >
  8934. <img
  8935. src="../../assets/icon/comment/comment.png"
  8936. alt=""
  8937. />
  8938. </div>
  8939. <div>{{ w.commentCount }}</div>
  8940. </div>
  8941. </div>
  8942. </div>
  8943. </div>
  8944. </div>
  8945. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8946. {{lang.ssNotSubmitted}}
  8947. </div>
  8948. <div
  8949. class="noWorksS"
  8950. v-if="noWorksS && noWorksS[toolIndex].length"
  8951. >
  8952. <div
  8953. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8954. :key="sIndex"
  8955. class="noWorksName"
  8956. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8957. >
  8958. <el-tooltip
  8959. effect="dark"
  8960. :content="s.student"
  8961. placement="top"
  8962. >
  8963. <span>{{ s.student }}</span>
  8964. </el-tooltip>
  8965. </div>
  8966. </div>
  8967. </div>
  8968. <div
  8969. v-if="
  8970. tType &&
  8971. tType == 2 &&
  8972. !sIsOpen &&
  8973. tool.tool.indexOf(40) != -1
  8974. "
  8975. class="worksBox"
  8976. >
  8977. <div
  8978. class="zuoyeYulan"
  8979. v-if="workStudent[toolIndex].length > 0"
  8980. >
  8981. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  8982. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8983. </div>
  8984. <div
  8985. class="worksDetailBox"
  8986. v-if="workStudent[toolIndex].length > 0"
  8987. >
  8988. <div
  8989. class="works"
  8990. style="
  8991. width: 200px;
  8992. height: 140px;
  8993. margin: 10px 10px 10px 0;
  8994. "
  8995. v-for="(w, wIndex) in workStudent[toolIndex]"
  8996. :key="wIndex"
  8997. >
  8998. <div class="workImg">
  8999. <img
  9000. src="../../assets/icon/works/noImg.png"
  9001. @click="openPj(w.works, toolIndex)"
  9002. alt
  9003. />
  9004. <img
  9005. class="deleteImg"
  9006. src="../../assets/deleteworks.png"
  9007. v-if="
  9008. w.userid == userid || tType == 1 || tType == 4
  9009. "
  9010. @click.stop="deleteWorks(w.wid)"
  9011. alt
  9012. />
  9013. </div>
  9014. <div class="worksName">
  9015. <div>{{ w.sName }}</div>
  9016. </div>
  9017. </div>
  9018. </div>
  9019. </div>
  9020. <div
  9021. v-if="
  9022. tType &&
  9023. ((tType == 2 && sIsOpen == true) ||
  9024. tType == 1 ||
  9025. tType == 4) &&
  9026. tool.tool.indexOf(41) != -1
  9027. "
  9028. >
  9029. <AnswerData2
  9030. v-if="
  9031. worksStudent.length &&
  9032. worksStudent[toolIndex].length > 0
  9033. "
  9034. :problemJson="tool.selectJson.answer"
  9035. :people="worksStudent[toolIndex]"
  9036. ></AnswerData2>
  9037. </div>
  9038. <div
  9039. v-if="
  9040. tType &&
  9041. ((tType == 2 && sIsOpen == true) ||
  9042. tType == 1 ||
  9043. tType == 4) &&
  9044. tool.tool.indexOf(41) != -1
  9045. "
  9046. class="worksBox"
  9047. >
  9048. <div
  9049. class="zuoyeYulan"
  9050. v-if="
  9051. worksStudent.length &&
  9052. worksStudent[toolIndex].length > 0
  9053. "
  9054. >
  9055. <div class="worksTop">
  9056. <div>{{lang.ssHomeworkPreview}}</div>
  9057. <div
  9058. class="corOpen"
  9059. @click="contract(toolIndex)"
  9060. v-if="
  9061. isCloseList[toolIndex].isCloseBoolean &&
  9062. isCloseList[toolIndex].isClose == 0
  9063. "
  9064. >
  9065. {{lang.ssFold}}
  9066. </div>
  9067. <div
  9068. class="corOpen"
  9069. @click="contract(toolIndex)"
  9070. v-if="isCloseList[toolIndex].isClose == 1"
  9071. >
  9072. {{lang.ssExpand}}
  9073. </div>
  9074. </div>
  9075. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9076. </div>
  9077. <div
  9078. :id="'tool-' + toolIndex"
  9079. :style="{
  9080. height:
  9081. isCloseList[toolIndex].isClose == 1
  9082. ? retrnToolHeight('tool-' + toolIndex)
  9083. : 'auto',
  9084. overflow:
  9085. isCloseList[toolIndex].isClose == 1
  9086. ? 'hidden'
  9087. : 'unset'
  9088. }"
  9089. class="worksDetailBox"
  9090. v-if="
  9091. worksStudent.length &&
  9092. worksStudent[toolIndex].length > 0
  9093. "
  9094. >
  9095. <div
  9096. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9097. :key="wIndex"
  9098. class="isWorksName2"
  9099. @click="openXz(w, toolIndex)"
  9100. >
  9101. {{ w.sName }}
  9102. <img
  9103. class="deleteImg deleteImg2"
  9104. src="../../assets/deleteworks.png"
  9105. v-if="w.userid == userid || tType == 1 || tType == 4"
  9106. @click.stop="deleteWorks(w.wid)"
  9107. alt
  9108. />
  9109. </div>
  9110. <!-- <div
  9111. class="works"
  9112. style="
  9113. width: 200px;
  9114. height: 140px;
  9115. margin: 10px 10px 10px 0;
  9116. border-radius: 15px;
  9117. box-shadow: 0 0 6px 1px #dfdada;
  9118. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9119. :class="w.type == 5 ? 'isTypeOne' : ''">
  9120. <div class="workImg">
  9121. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9122. </div>
  9123. <div class="worksName">
  9124. <div>{{ w.sName }}</div>
  9125. </div>
  9126. </div> -->
  9127. </div>
  9128. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9129. {{lang.ssNotSubmitted}}
  9130. </div>
  9131. <div
  9132. class="noWorksS"
  9133. v-if="noWorksS && noWorksS[toolIndex].length"
  9134. >
  9135. <div
  9136. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9137. :key="sIndex"
  9138. class="noWorksName"
  9139. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9140. >
  9141. <el-tooltip
  9142. effect="dark"
  9143. :content="s.student"
  9144. placement="top"
  9145. >
  9146. <span>{{ s.student }}</span>
  9147. </el-tooltip>
  9148. </div>
  9149. </div>
  9150. </div>
  9151. <div
  9152. v-if="
  9153. tType &&
  9154. tType == 2 &&
  9155. !sIsOpen &&
  9156. tool.tool.indexOf(41) != -1
  9157. "
  9158. class="worksBox"
  9159. >
  9160. <div
  9161. class="zuoyeYulan"
  9162. v-if="workStudent[toolIndex].length > 0"
  9163. >
  9164. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  9165. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9166. </div>
  9167. <div
  9168. class="worksDetailBox"
  9169. v-if="workStudent[toolIndex].length > 0"
  9170. >
  9171. <div
  9172. class="works"
  9173. style="
  9174. width: 200px;
  9175. height: 140px;
  9176. margin: 10px 10px 10px 0;
  9177. "
  9178. v-for="(w, wIndex) in workStudent[toolIndex]"
  9179. :key="wIndex"
  9180. >
  9181. <div class="workImg">
  9182. <img
  9183. src="../../assets/icon/works/noImg.png"
  9184. @click="openXz(w, toolIndex)"
  9185. alt
  9186. />
  9187. <img
  9188. class="deleteImg"
  9189. src="../../assets/deleteworks.png"
  9190. v-if="
  9191. w.userid == userid || tType == 1 || tType == 4
  9192. "
  9193. @click.stop="deleteWorks(w.wid)"
  9194. alt
  9195. />
  9196. </div>
  9197. <div class="worksName">
  9198. <div>{{ w.sName }}</div>
  9199. </div>
  9200. </div>
  9201. </div>
  9202. </div>
  9203. <div v-if="false" class="xuan_right_box">
  9204. <div
  9205. class="tool_right_box"
  9206. v-for="(item, index) in tool.sentenceList"
  9207. :key="index"
  9208. >
  9209. <div>
  9210. <span
  9211. style="word-break: break-all; white-space: normal"
  9212. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9213. >
  9214. </div>
  9215. <div class="right_box_xuan">
  9216. <span>{{lang.ssCorrectRate}}</span>
  9217. <span>{{
  9218. (checkJson[toolIndex][index].right
  9219. ? checkJson[toolIndex][index].right
  9220. : 0) + "%"
  9221. }}</span>
  9222. </div>
  9223. <div class="right_box_xuan">
  9224. <span>{{lang.ssRightPerson}}</span>
  9225. <span>{{
  9226. checkJson[toolIndex][index].rightPerson.length
  9227. }}</span>
  9228. </div>
  9229. </div>
  9230. </div>
  9231. <div
  9232. v-if="
  9233. tType &&
  9234. ((tType == 2 && sIsOpen == true) ||
  9235. tType == 1 ||
  9236. tType == 4) &&
  9237. tool.tool.indexOf(47) != -1
  9238. "
  9239. >
  9240. <!-- <AnswerData
  9241. v-if="
  9242. checkJson[toolIndex].length &&
  9243. (tool.sentenceList || tool.sentenceList.length > 0)
  9244. "
  9245. :people="checkJson[toolIndex]"
  9246. ></AnswerData> -->
  9247. <sortToolWorkShow v-if="
  9248. worksStudent[toolIndex].length
  9249. "
  9250. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9251. </div>
  9252. <div
  9253. v-if="
  9254. tType &&
  9255. tType == 2 &&
  9256. !sIsOpen &&
  9257. tool.tool.indexOf(47) != -1
  9258. "
  9259. class="worksBox"
  9260. >
  9261. <div
  9262. class="zuoyeYulan"
  9263. v-if="workStudent[toolIndex].length > 0"
  9264. >
  9265. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  9266. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9267. </div>
  9268. <div
  9269. class="worksDetailBox"
  9270. v-if="workStudent[toolIndex].length > 0"
  9271. >
  9272. <div
  9273. class="works"
  9274. style="
  9275. width: 200px;
  9276. height: 140px;
  9277. margin: 10px 10px 10px 0;
  9278. "
  9279. v-for="(w, wIndex) in workStudent[toolIndex]"
  9280. :key="wIndex"
  9281. >
  9282. <!-- @click="openXz(w, toolIndex)" -->
  9283. <div class="workImg" @click="openSen(w, toolIndex)">
  9284. <img src="../../assets/icon/works/noImg.png" alt />
  9285. <img
  9286. class="deleteImg"
  9287. src="../../assets/deleteworks.png"
  9288. v-if="
  9289. w.userid == userid || tType == 1 || tType == 4
  9290. "
  9291. @click.stop="deleteWorks(w.wid)"
  9292. alt
  9293. />
  9294. </div>
  9295. <div class="worksName">
  9296. <div>
  9297. {{ w.sName }}
  9298. </div>
  9299. </div>
  9300. </div>
  9301. </div>
  9302. </div>
  9303. <div
  9304. v-if="
  9305. tType &&
  9306. ((tType == 2 && sIsOpen == true) ||
  9307. tType == 1 ||
  9308. tType == 4) &&
  9309. tool.tool.indexOf(47) != -1
  9310. "
  9311. class="worksBox"
  9312. >
  9313. <div
  9314. class="zuoyeYulan"
  9315. v-if="
  9316. worksStudent.length &&
  9317. worksStudent[toolIndex].length > 0
  9318. "
  9319. >
  9320. <div class="worksTop">
  9321. <div>{{lang.ssHomeworkPreview}}</div>
  9322. <div
  9323. class="corOpen"
  9324. @click="contract(toolIndex)"
  9325. v-if="
  9326. isCloseList[toolIndex].isCloseBoolean &&
  9327. isCloseList[toolIndex].isClose == 0
  9328. "
  9329. >
  9330. {{lang.ssFold}}
  9331. </div>
  9332. <div
  9333. class="corOpen"
  9334. @click="contract(toolIndex)"
  9335. v-if="isCloseList[toolIndex].isClose == 1"
  9336. >
  9337. {{lang.ssExpand}}
  9338. </div>
  9339. </div>
  9340. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9341. </div>
  9342. <div
  9343. :id="'tool-' + toolIndex"
  9344. :style="{
  9345. height:
  9346. isCloseList[toolIndex].isClose == 1
  9347. ? retrnToolHeight('tool-' + toolIndex)
  9348. : 'auto',
  9349. overflow:
  9350. isCloseList[toolIndex].isClose == 1
  9351. ? 'hidden'
  9352. : 'unset'
  9353. }"
  9354. class="worksDetailBox"
  9355. v-if="
  9356. worksStudent.length &&
  9357. worksStudent[toolIndex].length > 0
  9358. "
  9359. >
  9360. <!-- @click="openXz(w, toolIndex)" -->
  9361. <div
  9362. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9363. :key="wIndex"
  9364. class="isWorksName2"
  9365. @click="openSen(w, toolIndex)"
  9366. >
  9367. {{ w.sName }}
  9368. <img
  9369. class="deleteImg deleteImg2"
  9370. src="../../assets/deleteworks.png"
  9371. v-if="w.userid == userid || tType == 1 || tType == 4"
  9372. @click.stop="deleteWorks(w.wid)"
  9373. alt
  9374. />
  9375. </div>
  9376. </div>
  9377. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9378. {{lang.ssNotSubmitted}}
  9379. </div>
  9380. <div
  9381. class="noWorksS"
  9382. v-if="noWorksS && noWorksS[toolIndex].length"
  9383. >
  9384. <div
  9385. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9386. :key="sIndex"
  9387. class="noWorksName"
  9388. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9389. >
  9390. <el-tooltip
  9391. effect="dark"
  9392. :content="s.student"
  9393. placement="top"
  9394. >
  9395. <span>{{ s.student }}</span>
  9396. </el-tooltip>
  9397. </div>
  9398. </div>
  9399. </div>
  9400. <div
  9401. v-if="
  9402. tType &&
  9403. ((tType == 2 && sIsOpen == true) ||
  9404. tType == 1 ||
  9405. tType == 4) &&
  9406. tool.tool.indexOf(48) != -1
  9407. "
  9408. class="worksBox"
  9409. >
  9410. <div
  9411. class="zuoyeYulan"
  9412. style="display: flex;justify-content: space-between;align-items: center;"
  9413. v-if="
  9414. worksStudent.length &&
  9415. worksStudent[toolIndex].length > 0
  9416. "
  9417. >
  9418. <div class="worksTop">
  9419. <div>{{lang.ssHomeworkPreview}}</div>
  9420. <div
  9421. class="corOpen"
  9422. @click="contract(toolIndex)"
  9423. v-if="
  9424. isCloseList[toolIndex].isCloseBoolean &&
  9425. isCloseList[toolIndex].isClose == 0
  9426. "
  9427. >
  9428. {{lang.ssFold}}
  9429. </div>
  9430. <div
  9431. class="corOpen"
  9432. @click="contract(toolIndex)"
  9433. v-if="isCloseList[toolIndex].isClose == 1"
  9434. >
  9435. {{lang.ssExpand}}
  9436. </div>
  9437. </div>
  9438. <div
  9439. style="display: flex;"
  9440. v-if="
  9441. (courseDetail.userid == userid ||
  9442. (courseDetail.course_teacher &&
  9443. courseDetail.course_teacher.indexOf(userid) !=
  9444. -1)) &&
  9445. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9446. taskCount
  9447. ].eList &&
  9448. chapInfoList[courseType].chapterInfo[0].taskJson[
  9449. taskCount
  9450. ].eList.length) ||
  9451. (tool.eList && tool.eList.length)) &&
  9452. courseDetail.state == 5
  9453. "
  9454. >
  9455. <div
  9456. style="margin-right:10px"
  9457. class="ScoreBtn"
  9458. @click="
  9459. resetLoopEva(
  9460. worksStudent[toolIndex],
  9461. chapInfoList[courseType].chapterInfo[0].taskJson[
  9462. taskCount
  9463. ].eList,
  9464. courseType,
  9465. taskCount,
  9466. toolIndex,
  9467. tool.toolDetail,
  9468. worksStudent
  9469. )
  9470. "
  9471. >
  9472. {{lang.ssReset}}
  9473. </div>
  9474. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9475. <img
  9476. src="../../assets/icon/newIcons/rootImg.png"
  9477. alt=""
  9478. />
  9479. {{lang.ssAiScore}}
  9480. </div>
  9481. <div
  9482. class="ScoreBtn"
  9483. v-else-if="!loopLoading[toolIndex].loading"
  9484. @click="
  9485. loopEva(
  9486. worksStudent[toolIndex],
  9487. chapInfoList[courseType].chapterInfo[0].taskJson[
  9488. taskCount
  9489. ].eList,
  9490. courseType,
  9491. taskCount,
  9492. toolIndex,
  9493. tool.toolDetail,
  9494. chapInfoList[courseType].chapterInfo[0].taskJson[
  9495. taskCount
  9496. ].taskDetail,
  9497. tool
  9498. )
  9499. "
  9500. >
  9501. <img
  9502. src="../../assets/icon/newIcons/rootImg.png"
  9503. alt=""
  9504. />
  9505. {{lang.ssAiScore}}
  9506. </div>
  9507. <div class="ScoreBtn" v-else>
  9508. <img
  9509. src="../../assets/icon/newIcons/rootImg.png"
  9510. alt=""
  9511. />
  9512. {{lang.ssScoring}}
  9513. </div>
  9514. </div>
  9515. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9516. </div>
  9517. <div
  9518. :id="'tool-' + toolIndex"
  9519. :style="{
  9520. height:
  9521. isCloseList[toolIndex].isClose == 1
  9522. ? retrnToolHeight('tool-' + toolIndex)
  9523. : 'auto',
  9524. overflow:
  9525. isCloseList[toolIndex].isClose == 1
  9526. ? 'hidden'
  9527. : 'unset'
  9528. }"
  9529. class="worksDetailBox"
  9530. v-if="
  9531. worksStudent.length &&
  9532. worksStudent[toolIndex].length > 0
  9533. "
  9534. >
  9535. <div
  9536. class="works"
  9537. style="
  9538. width: 200px;
  9539. height: 140px;
  9540. margin: 10px 10px 10px 0;
  9541. border-radius: 15px;
  9542. box-shadow: 0 0 6px 1px #dfdada;
  9543. "
  9544. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9545. :key="wIndex"
  9546. :class="w.type == 1 ? 'isTypeOne' : ''"
  9547. >
  9548. <div class="workImg">
  9549. <img :src="word" @click="openTable(w)" alt />
  9550. <!-- @click="openFile(w.works)" -->
  9551. <div
  9552. class="answerScore"
  9553. v-if="w.score"
  9554. @click.stop="openScore(w)"
  9555. :class="{
  9556. rightW:
  9557. w.userid == userid ||
  9558. tType == 1 ||
  9559. tType == 4 ||
  9560. w.ateacher == userid
  9561. }"
  9562. >
  9563. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  9564. </div>
  9565. <div
  9566. class="answerScore"
  9567. @click.stop="openScore(w)"
  9568. v-else-if="
  9569. courseDetail.userid == userid &&
  9570. courseDetail.state != 5 &&
  9571. chapInfoList[courseType].chapterInfo[0]
  9572. .taskJson[taskCount].eList &&
  9573. chapInfoList[courseType].chapterInfo[0]
  9574. .taskJson[taskCount].eList.length
  9575. "
  9576. :class="{
  9577. rightW:
  9578. w.userid == userid ||
  9579. tType == 1 ||
  9580. tType == 4 ||
  9581. w.ateacher == userid
  9582. }"
  9583. >
  9584. {{lang.ssMarkScore}}
  9585. </div>
  9586. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9587. <div
  9588. v-else-if="
  9589. (courseDetail.userid == userid ||
  9590. (courseDetail.course_teacher &&
  9591. courseDetail.course_teacher.indexOf(userid) !=
  9592. -1) ||
  9593. (w.userid == userid && sIsOpen)) &&
  9594. courseDetail.state == 5 &&
  9595. ((chapInfoList[courseType].chapterInfo[0]
  9596. .taskJson[taskCount].eList &&
  9597. chapInfoList[courseType].chapterInfo[0]
  9598. .taskJson[taskCount].eList.length) ||
  9599. (tool.eList && tool.eList.length))
  9600. "
  9601. >
  9602. <el-popover
  9603. placement="top"
  9604. width="318"
  9605. :disabled="AIloading[toolIndex][wIndex].loading"
  9606. trigger="hover"
  9607. >
  9608. <markScore
  9609. :loading="AIloading[toolIndex][wIndex].loading"
  9610. :markScoreVisible="markScoreVisible"
  9611. :ref="`markSco${toolIndex}${wIndex}`"
  9612. @updateLoading="updateLoading"
  9613. @updateDocSco="updateDocSco"
  9614. @refreshOther="refreshOther"
  9615. @markScoreDig="markScoreDig"
  9616. :tool="tool"
  9617. :wIndex="wIndex"
  9618. :scoCon="w"
  9619. :toolIndex="toolIndex"
  9620. :key="refreshKey"
  9621. :stage="courseType"
  9622. :task="taskCount"
  9623. :scoTit="
  9624. chapInfoList[courseType].chapterInfo[0]
  9625. .taskJson[taskCount].eList
  9626. "
  9627. >
  9628. </markScore>
  9629. <div
  9630. class="answerScore"
  9631. @click="
  9632. markScoreDig2(
  9633. w.sName,
  9634. worksStudent,
  9635. w.userid,
  9636. toolIndex,
  9637. chapInfoList[courseType].chapterInfo[0]
  9638. .taskJson[taskCount].eList,
  9639. AIloading[toolIndex][wIndex].loading,
  9640. tool
  9641. )
  9642. "
  9643. slot="reference"
  9644. :class="{
  9645. rightW:
  9646. w.userid == userid ||
  9647. tType == 1 ||
  9648. tType == 4 ||
  9649. w.ateacher == userid
  9650. }"
  9651. >
  9652. <span v-if="AIloading[toolIndex][wIndex].sco">
  9653. {{
  9654. AIloading[toolIndex][wIndex].loading
  9655. ? lang.ssScoringIn
  9656. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  9657. }}
  9658. </span>
  9659. <span v-else>
  9660. {{
  9661. AIloading[toolIndex][wIndex].loading
  9662. ? lang.ssScoringIn
  9663. : lang.ssMarkScore
  9664. }}
  9665. </span>
  9666. </div>
  9667. </el-popover>
  9668. </div>
  9669. <img
  9670. class="deleteImg"
  9671. src="../../assets/deleteworks.png"
  9672. v-if="
  9673. w.userid == userid || tType == 1 || tType == 4
  9674. "
  9675. @click.stop="deleteWorks(w.wid)"
  9676. alt
  9677. />
  9678. </div>
  9679. <div class="comment" style="min-width: 200px">
  9680. <div class="worksName">
  9681. <div>{{ w.sName }}</div>
  9682. </div>
  9683. <div class="commentList">
  9684. <div class="commentList">
  9685. <div
  9686. class="commentImg"
  9687. @click="
  9688. isLikes(
  9689. w.wid,
  9690. userid,
  9691. 1,
  9692. null,
  9693. w.isLikes,
  9694. w.sName
  9695. )
  9696. "
  9697. >
  9698. <img
  9699. :src="w.isLikes == true ? likes : noLikes"
  9700. alt=""
  9701. />
  9702. </div>
  9703. <div>{{ w.likesCount }}</div>
  9704. </div>
  9705. <div class="commentList" style="margin-right: 15px">
  9706. <div
  9707. class="commentImg"
  9708. @click="commentOther(w, toolIndex, wIndex)"
  9709. >
  9710. <img
  9711. src="../../assets/icon/comment/comment.png"
  9712. alt=""
  9713. />
  9714. </div>
  9715. <div>{{ w.commentCount }}</div>
  9716. </div>
  9717. </div>
  9718. </div>
  9719. </div>
  9720. </div>
  9721. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9722. {{lang.ssNotSubmitted}}
  9723. </div>
  9724. <div
  9725. class="noWorksS"
  9726. v-if="noWorksS && noWorksS[toolIndex].length"
  9727. >
  9728. <div
  9729. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9730. :key="sIndex"
  9731. class="noWorksName"
  9732. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9733. >
  9734. <el-tooltip
  9735. effect="dark"
  9736. :content="s.student"
  9737. placement="top"
  9738. >
  9739. <span>{{ s.student }}</span>
  9740. </el-tooltip>
  9741. </div>
  9742. </div>
  9743. </div>
  9744. <div
  9745. v-if="
  9746. tType &&
  9747. tType == 2 &&
  9748. !sIsOpen &&
  9749. tool.tool.indexOf(48) != -1
  9750. "
  9751. class="worksBox"
  9752. >
  9753. <div
  9754. class="zuoyeYulan"
  9755. v-if="workStudent[toolIndex].length > 0"
  9756. >
  9757. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  9758. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9759. </div>
  9760. <div
  9761. class="worksDetailBox"
  9762. v-if="workStudent[toolIndex].length > 0"
  9763. >
  9764. <div
  9765. class="works"
  9766. style="
  9767. width: 200px;
  9768. height: 140px;
  9769. margin: 10px 10px 10px 0;
  9770. box-shadow: 0 0 6px 1px #dfdada;
  9771. "
  9772. v-for="(w, wIndex) in workStudent[toolIndex]"
  9773. :key="wIndex"
  9774. >
  9775. <div class="workImg">
  9776. <img :src="word" @click="openTable(w)" alt />
  9777. <div
  9778. class="answerScore"
  9779. v-if="w.score"
  9780. @click.stop="openScore(w)"
  9781. :class="{
  9782. rightW:
  9783. w.userid == userid || tType == 1 || tType == 4
  9784. }"
  9785. >
  9786. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  9787. </div>
  9788. <div
  9789. class="answerScore"
  9790. @click.stop="openScore(w)"
  9791. v-else-if="courseDetail.userid == userid"
  9792. :class="{
  9793. rightW:
  9794. w.userid == userid || tType == 1 || tType == 4
  9795. }"
  9796. >
  9797. {{lang.ssMarkScore}}
  9798. </div>
  9799. <div
  9800. class="stuLookScore"
  9801. v-if="
  9802. w.userid == userid ||
  9803. (tType == 1 &&
  9804. courseDetail.state == 5 &&
  9805. ((chapInfoList[courseType].chapterInfo[0]
  9806. .taskJson[taskCount].eList &&
  9807. chapInfoList[courseType].chapterInfo[0]
  9808. .taskJson[taskCount].eList.length) ||
  9809. (tool.eList && tool.eList.length)))
  9810. "
  9811. >
  9812. <el-popover
  9813. placement="top"
  9814. width="318"
  9815. trigger="hover"
  9816. >
  9817. <markScore
  9818. :loading="AIloading[toolIndex][wIndex].loading"
  9819. :markScoreVisible="markScoreVisible"
  9820. :ref="`markSco${toolIndex}${wIndex}`"
  9821. @updateLoading="updateLoading"
  9822. @updateDocSco="updateDocSco"
  9823. @refreshOther="refreshOther"
  9824. @markScoreDig="markScoreDig"
  9825. :tool="tool"
  9826. :wIndex="wIndex"
  9827. :scoCon="w"
  9828. :toolIndex="toolIndex"
  9829. :key="refreshKey"
  9830. :stage="courseType"
  9831. :task="taskCount"
  9832. :scoTit="
  9833. chapInfoList[courseType].chapterInfo[0]
  9834. .taskJson[taskCount].eList
  9835. "
  9836. >
  9837. </markScore>
  9838. <div
  9839. @click="
  9840. markScoreDig2(
  9841. w.sName,
  9842. worksStudent,
  9843. w.userid,
  9844. toolIndex,
  9845. chapInfoList[courseType].chapterInfo[0]
  9846. .taskJson[taskCount].eList,
  9847. AIloading[toolIndex][wIndex].loading,
  9848. tool
  9849. )
  9850. "
  9851. slot="reference"
  9852. >
  9853. <span v-if="AIloading[toolIndex][wIndex].sco">
  9854. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  9855. </span>
  9856. <span v-else>
  9857. {{lang.ssMarkScore}}
  9858. </span>
  9859. </div>
  9860. </el-popover>
  9861. </div>
  9862. <img
  9863. class="deleteImg"
  9864. src="../../assets/deleteworks.png"
  9865. v-if="
  9866. w.userid == userid || tType == 1 || tType == 4
  9867. "
  9868. @click.stop="deleteWorks(w.wid)"
  9869. alt
  9870. />
  9871. </div>
  9872. <div class="worksName">
  9873. <div>{{ w.sName }}</div>
  9874. </div>
  9875. </div>
  9876. </div>
  9877. </div>
  9878. <div
  9879. v-if="
  9880. tType &&
  9881. ((tType == 2 && sIsOpen == true) ||
  9882. tType == 1 ||
  9883. tType == 4) &&
  9884. tool.tool.indexOf(52) != -1
  9885. "
  9886. class="worksBox"
  9887. >
  9888. <div
  9889. class="zuoyeYulan"
  9890. style="display: flex;justify-content: space-between;align-items: center;"
  9891. v-if="
  9892. worksStudent.length &&
  9893. worksStudent[toolIndex].length > 0
  9894. "
  9895. >
  9896. <div class="worksTop">
  9897. <div>{{lang.ssHomeworkPreview}}</div>
  9898. <div
  9899. class="corOpen"
  9900. @click="contract(toolIndex)"
  9901. v-if="
  9902. isCloseList[toolIndex].isCloseBoolean &&
  9903. isCloseList[toolIndex].isClose == 0
  9904. "
  9905. >
  9906. {{lang.ssFold}}
  9907. </div>
  9908. <div
  9909. class="corOpen"
  9910. @click="contract(toolIndex)"
  9911. v-if="isCloseList[toolIndex].isClose == 1"
  9912. >
  9913. {{lang.ssExpand}}
  9914. </div>
  9915. </div>
  9916. <div
  9917. style="display: flex;"
  9918. v-if="
  9919. (courseDetail.userid == userid ||
  9920. (courseDetail.course_teacher &&
  9921. courseDetail.course_teacher.indexOf(userid) !=
  9922. -1)) &&
  9923. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9924. taskCount
  9925. ].eList &&
  9926. chapInfoList[courseType].chapterInfo[0].taskJson[
  9927. taskCount
  9928. ].eList.length) ||
  9929. (tool.eList && tool.eList.length)) &&
  9930. courseDetail.state == 5
  9931. "
  9932. >
  9933. <!-- <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 == 5"> -->
  9934. <div
  9935. @click="
  9936. resetLoopEva(
  9937. worksStudent[toolIndex],
  9938. chapInfoList[courseType].chapterInfo[0].taskJson[
  9939. taskCount
  9940. ].eList,
  9941. courseType,
  9942. taskCount,
  9943. toolIndex,
  9944. tool.toolDetail,
  9945. tool
  9946. )
  9947. "
  9948. style="margin-right:10px"
  9949. class="ScoreBtn"
  9950. >
  9951. {{lang.ssReset}}
  9952. </div>
  9953. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9954. <img
  9955. src="../../assets/icon/newIcons/rootImg.png"
  9956. alt=""
  9957. />
  9958. {{lang.ssAiScore}}
  9959. </div>
  9960. <div
  9961. class="ScoreBtn"
  9962. v-else-if="!loopLoading[toolIndex].loading"
  9963. @click="
  9964. loopEva(
  9965. worksStudent[toolIndex],
  9966. chapInfoList[courseType].chapterInfo[0].taskJson[
  9967. taskCount
  9968. ].eList,
  9969. courseType,
  9970. taskCount,
  9971. toolIndex,
  9972. tool.toolDetail,
  9973. chapInfoList[courseType].chapterInfo[0].taskJson[
  9974. taskCount
  9975. ].taskDetail,
  9976. tool
  9977. )
  9978. "
  9979. >
  9980. <img
  9981. src="../../assets/icon/newIcons/rootImg.png"
  9982. alt=""
  9983. />
  9984. {{lang.ssAiScore}}
  9985. </div>
  9986. <div class="ScoreBtn" v-else>
  9987. <img
  9988. src="../../assets/icon/newIcons/rootImg.png"
  9989. alt=""
  9990. />
  9991. {{lang.ssScoring}}
  9992. </div>
  9993. </div>
  9994. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9995. </div>
  9996. <div
  9997. :id="'tool-' + toolIndex"
  9998. :style="{
  9999. height:
  10000. isCloseList[toolIndex].isClose == 1
  10001. ? retrnToolHeight('tool-' + toolIndex)
  10002. : 'auto',
  10003. overflow:
  10004. isCloseList[toolIndex].isClose == 1
  10005. ? 'hidden'
  10006. : 'unset'
  10007. }"
  10008. class="worksDetailBox"
  10009. v-if="
  10010. worksStudent.length &&
  10011. worksStudent[toolIndex].length > 0
  10012. "
  10013. >
  10014. <div
  10015. class="works"
  10016. style="
  10017. width: 200px;
  10018. height: 140px;
  10019. margin: 10px 10px 10px 0;
  10020. border-radius: 15px;
  10021. box-shadow: 0 0 6px 1px #dfdada;
  10022. "
  10023. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10024. :key="wIndex"
  10025. :class="w.type == 1 ? 'isTypeOne' : ''"
  10026. >
  10027. <div class="workImg">
  10028. <img :src="word" @click="openWord(w)" alt />
  10029. <!-- @click="openFile(w.works)" -->
  10030. <div
  10031. class="answerScore"
  10032. v-if="w.score"
  10033. @click.stop="openScore(w)"
  10034. :class="{
  10035. rightW:
  10036. w.userid == userid ||
  10037. tType == 1 ||
  10038. tType == 4 ||
  10039. w.ateacher == userid
  10040. }"
  10041. >
  10042. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10043. </div>
  10044. <div
  10045. class="answerScore"
  10046. @click.stop="openScore(w)"
  10047. v-else-if="
  10048. courseDetail.userid == userid &&
  10049. courseDetail.state != 5 &&
  10050. chapInfoList[courseType].chapterInfo[0]
  10051. .taskJson[taskCount].eList &&
  10052. chapInfoList[courseType].chapterInfo[0]
  10053. .taskJson[taskCount].eList.length
  10054. "
  10055. :class="{
  10056. rightW:
  10057. w.userid == userid ||
  10058. tType == 1 ||
  10059. tType == 4 ||
  10060. w.ateacher == userid
  10061. }"
  10062. >
  10063. {{lang.ssMarkScore}}
  10064. </div>
  10065. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  10066. <div
  10067. v-else-if="
  10068. (courseDetail.userid == userid ||
  10069. (courseDetail.course_teacher &&
  10070. courseDetail.course_teacher.indexOf(userid) !=
  10071. -1) ||
  10072. (w.userid == userid && sIsOpen)) &&
  10073. courseDetail.state == 5 &&
  10074. ((chapInfoList[courseType].chapterInfo[0]
  10075. .taskJson[taskCount].eList &&
  10076. chapInfoList[courseType].chapterInfo[0]
  10077. .taskJson[taskCount].eList.length) ||
  10078. (tool.eList && tool.eList.length))
  10079. "
  10080. >
  10081. <!-- <div
  10082. class="answerScore"
  10083. @click="markScoreDig(w.userid,toolIndex)"
  10084. :class="{
  10085. rightW:
  10086. w.userid == userid ||
  10087. tType == 1 ||
  10088. tType == 4 ||
  10089. w.ateacher == userid,
  10090. }"
  10091. >
  10092. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'{{lang.ssMarkScore}}'}}
  10093. </div> -->
  10094. <!-- @show="handleShow(toolIndex,wIndex)"
  10095. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10096. <el-popover
  10097. placement="top"
  10098. width="318"
  10099. :disabled="AIloading[toolIndex][wIndex].loading"
  10100. trigger="hover"
  10101. >
  10102. <markScore
  10103. :loading="AIloading[toolIndex][wIndex].loading"
  10104. :markScoreVisible="markScoreVisible"
  10105. :ref="`markSco${toolIndex}${wIndex}`"
  10106. @updateLoading="updateLoading"
  10107. @updateDocSco="updateDocSco"
  10108. @refreshOther="refreshOther"
  10109. @markScoreDig="markScoreDig"
  10110. :tool="tool"
  10111. :wIndex="wIndex"
  10112. :scoCon="w"
  10113. :toolIndex="toolIndex"
  10114. :key="refreshKey"
  10115. :stage="courseType"
  10116. :task="taskCount"
  10117. :scoTit="
  10118. chapInfoList[courseType].chapterInfo[0]
  10119. .taskJson[taskCount].eList
  10120. "
  10121. >
  10122. </markScore>
  10123. <div
  10124. class="answerScore"
  10125. @click="
  10126. markScoreDig2(
  10127. w.sName,
  10128. worksStudent,
  10129. w.userid,
  10130. toolIndex,
  10131. chapInfoList[courseType].chapterInfo[0]
  10132. .taskJson[taskCount].eList,
  10133. AIloading[toolIndex][wIndex].loading,
  10134. tool
  10135. )
  10136. "
  10137. slot="reference"
  10138. :class="{
  10139. rightW:
  10140. w.userid == userid ||
  10141. tType == 1 ||
  10142. tType == 4 ||
  10143. w.ateacher == userid
  10144. }"
  10145. >
  10146. <span v-if="AIloading[toolIndex][wIndex].sco">
  10147. {{
  10148. AIloading[toolIndex][wIndex].loading
  10149. ? lang.ssScoringIn
  10150. : AIloading[toolIndex][wIndex].sco + lang.ssScore
  10151. }}
  10152. </span>
  10153. <span v-else>
  10154. {{
  10155. AIloading[toolIndex][wIndex].loading
  10156. ? lang.ssScoringIn
  10157. : lang.ssMarkScore
  10158. }}
  10159. </span>
  10160. </div>
  10161. </el-popover>
  10162. </div>
  10163. <img
  10164. class="deleteImg"
  10165. src="../../assets/deleteworks.png"
  10166. v-if="
  10167. w.userid == userid || tType == 1 || tType == 4
  10168. "
  10169. @click.stop="deleteWorks(w.wid)"
  10170. alt
  10171. />
  10172. </div>
  10173. <div class="comment" style="min-width: 200px">
  10174. <div class="worksName">
  10175. <div>{{ w.sName }}</div>
  10176. </div>
  10177. <div class="commentList">
  10178. <div class="commentList">
  10179. <div
  10180. class="commentImg"
  10181. @click="
  10182. isLikes(
  10183. w.wid,
  10184. userid,
  10185. 1,
  10186. null,
  10187. w.isLikes,
  10188. w.sName
  10189. )
  10190. "
  10191. >
  10192. <img
  10193. :src="w.isLikes == true ? likes : noLikes"
  10194. alt=""
  10195. />
  10196. </div>
  10197. <div>{{ w.likesCount }}</div>
  10198. </div>
  10199. <div class="commentList" style="margin-right: 15px">
  10200. <div
  10201. class="commentImg"
  10202. @click="commentOther(w, toolIndex, wIndex)"
  10203. >
  10204. <img
  10205. src="../../assets/icon/comment/comment.png"
  10206. alt=""
  10207. />
  10208. </div>
  10209. <div>{{ w.commentCount }}</div>
  10210. </div>
  10211. </div>
  10212. </div>
  10213. </div>
  10214. </div>
  10215. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10216. {{lang.ssNotSubmitted}}
  10217. </div>
  10218. <div
  10219. class="noWorksS"
  10220. v-if="noWorksS && noWorksS[toolIndex].length"
  10221. >
  10222. <div
  10223. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10224. :key="sIndex"
  10225. class="noWorksName"
  10226. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10227. >
  10228. <el-tooltip
  10229. effect="dark"
  10230. :content="s.student"
  10231. placement="top"
  10232. >
  10233. <span>{{ s.student }}</span>
  10234. </el-tooltip>
  10235. </div>
  10236. </div>
  10237. </div>
  10238. <div
  10239. v-if="
  10240. tType &&
  10241. tType == 2 &&
  10242. !sIsOpen &&
  10243. tool.tool.indexOf(52) != -1
  10244. "
  10245. class="worksBox"
  10246. >
  10247. <div
  10248. class="zuoyeYulan"
  10249. v-if="workStudent[toolIndex].length > 0"
  10250. >
  10251. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  10252. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10253. </div>
  10254. <div
  10255. class="worksDetailBox"
  10256. v-if="workStudent[toolIndex].length > 0"
  10257. >
  10258. <div
  10259. class="works"
  10260. style="
  10261. width: 200px;
  10262. height: 140px;
  10263. margin: 10px 10px 10px 0;
  10264. box-shadow: 0 0 6px 1px #dfdada;
  10265. "
  10266. v-for="(w, wIndex) in workStudent[toolIndex]"
  10267. :key="wIndex"
  10268. >
  10269. <div class="workImg">
  10270. <img :src="word" @click="openWord(w)" alt />
  10271. <div
  10272. class="answerScore"
  10273. v-if="w.score"
  10274. @click.stop="openScore(w)"
  10275. :class="{
  10276. rightW:
  10277. w.userid == userid || tType == 1 || tType == 4
  10278. }"
  10279. >
  10280. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10281. </div>
  10282. <div
  10283. class="answerScore"
  10284. @click.stop="openScore(w)"
  10285. v-else-if="courseDetail.userid == userid"
  10286. :class="{
  10287. rightW:
  10288. w.userid == userid || tType == 1 || tType == 4
  10289. }"
  10290. >
  10291. {{lang.ssMarkScore}}
  10292. </div>
  10293. <div
  10294. class="stuLookScore"
  10295. v-if="
  10296. w.userid == userid ||
  10297. (tType == 1 &&
  10298. courseDetail.state == 5 &&
  10299. ((chapInfoList[courseType].chapterInfo[0]
  10300. .taskJson[taskCount].eList &&
  10301. chapInfoList[courseType].chapterInfo[0]
  10302. .taskJson[taskCount].eList.length) ||
  10303. (tool.eList && tool.eList.length)))
  10304. "
  10305. >
  10306. <el-popover
  10307. placement="top"
  10308. width="318"
  10309. trigger="hover"
  10310. >
  10311. <markScore
  10312. :loading="AIloading[toolIndex][wIndex].loading"
  10313. :markScoreVisible="markScoreVisible"
  10314. :ref="`markSco${toolIndex}${wIndex}`"
  10315. @updateLoading="updateLoading"
  10316. @updateDocSco="updateDocSco"
  10317. @refreshOther="refreshOther"
  10318. @markScoreDig="markScoreDig"
  10319. :tool="tool"
  10320. :wIndex="wIndex"
  10321. :scoCon="w"
  10322. :toolIndex="toolIndex"
  10323. :key="refreshKey"
  10324. :stage="courseType"
  10325. :task="taskCount"
  10326. :scoTit="
  10327. chapInfoList[courseType].chapterInfo[0]
  10328. .taskJson[taskCount].eList
  10329. "
  10330. >
  10331. </markScore>
  10332. <div
  10333. @click="
  10334. markScoreDig2(
  10335. w.sName,
  10336. worksStudent,
  10337. w.userid,
  10338. toolIndex,
  10339. chapInfoList[courseType].chapterInfo[0]
  10340. .taskJson[taskCount].eList,
  10341. AIloading[toolIndex][wIndex].loading,
  10342. tool
  10343. )
  10344. "
  10345. slot="reference"
  10346. >
  10347. <span v-if="AIloading[toolIndex][wIndex].sco">
  10348. {{ AIloading[toolIndex][wIndex].sco + lang.ssScore }}
  10349. </span>
  10350. <span v-else>
  10351. {{lang.ssMarkScore}}
  10352. </span>
  10353. </div>
  10354. </el-popover>
  10355. </div>
  10356. <img
  10357. class="deleteImg"
  10358. src="../../assets/deleteworks.png"
  10359. v-if="
  10360. w.userid == userid || tType == 1 || tType == 4
  10361. "
  10362. @click.stop="deleteWorks(w.wid)"
  10363. alt
  10364. />
  10365. </div>
  10366. <div class="worksName">
  10367. <div>{{ w.sName }}</div>
  10368. </div>
  10369. </div>
  10370. </div>
  10371. </div>
  10372. <div
  10373. v-if="tool.tool.indexOf(49) != -1"
  10374. class="xuan_right_box"
  10375. style="margin: 0 15px 0 25px; width: 93%"
  10376. >
  10377. <div
  10378. v-if="courseDetail.userid == userid"
  10379. style="
  10380. display: flex;
  10381. justify-content: flex-end;
  10382. margin-right: 10px;
  10383. "
  10384. >
  10385. <el-button
  10386. type="primary"
  10387. size="small"
  10388. @click="addTools(49, toolIndex, taskCount)"
  10389. >{{lang.ssGroupSetting}}</el-button
  10390. >
  10391. </div>
  10392. <div
  10393. v-if="groupStudentUid[toolIndex]"
  10394. class="group_staic_box"
  10395. >
  10396. <div
  10397. v-for="(gp, gd) in tool.groupJson.group"
  10398. :key="gd"
  10399. class="group_staic"
  10400. >
  10401. <span> {{ gp.name }}</span>
  10402. <span>
  10403. {{ lang.ssCurrentCountNum.replace(/\*/g, groupStudentUid[toolIndex][gd].length) }}</span
  10404. >
  10405. </div>
  10406. </div>
  10407. </div>
  10408. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10409. <div
  10410. class="zuoyeYulan"
  10411. v-if="
  10412. worksStudent.length &&
  10413. worksStudent[toolIndex].length > 0
  10414. "
  10415. >
  10416. <span class="worksTitle">{{lang.ssHomeworkPreview}}</span>
  10417. </div>
  10418. <div>
  10419. <div
  10420. class="group_workBox"
  10421. v-for="(g, gindex) in tool.groupJson.group"
  10422. :key="gindex"
  10423. >
  10424. <div
  10425. class="group_box"
  10426. v-if="
  10427. groupStudentUid[toolIndex] &&
  10428. worksStudent[toolIndex] &&
  10429. (worksStudent[toolIndex][gindex].length ||
  10430. groupStudentUid[toolIndex][gindex].indexOf(
  10431. userid
  10432. ) != -1)
  10433. "
  10434. >
  10435. <div class="group_title">
  10436. <el-tooltip
  10437. class="item"
  10438. effect="light"
  10439. :content="g.name"
  10440. placement="top"
  10441. >
  10442. <div class="group_name">{{ g.name }}</div>
  10443. </el-tooltip>
  10444. <el-button
  10445. type="primary"
  10446. v-if="
  10447. groupStudentUid[toolIndex][gindex].indexOf(
  10448. userid
  10449. ) != -1
  10450. "
  10451. @click="groupUpload(toolIndex, taskCount, gindex)"
  10452. >{{lang.ssUploadHomework}}</el-button
  10453. >
  10454. </div>
  10455. <div class="group_work">
  10456. <div
  10457. class="works"
  10458. style="
  10459. width: 200px;
  10460. height: 140px;
  10461. margin: 10px 10px 10px 0;
  10462. border-radius: 15px;
  10463. box-shadow: 0 0 6px 1px #dfdada;
  10464. "
  10465. v-for="(w, wIndex) in worksStudent[toolIndex][
  10466. gindex
  10467. ]"
  10468. :key="wIndex"
  10469. :class="w.type == 1 ? 'isTypeOne' : ''"
  10470. >
  10471. <div class="workImg" v-if="w.type == 0">
  10472. <img
  10473. :src="w.works"
  10474. @click="previewImg(w.works, w)"
  10475. alt
  10476. />
  10477. <div
  10478. class="answerScore"
  10479. v-if="w.score"
  10480. @click.stop="openScore(w)"
  10481. :class="{
  10482. rightW:
  10483. w.userid == userid ||
  10484. tType == 1 ||
  10485. tType == 4 ||
  10486. w.ateacher == userid
  10487. }"
  10488. >
  10489. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10490. </div>
  10491. <div
  10492. class="answerScore"
  10493. @click.stop="openScore(w)"
  10494. v-else-if="courseDetail.userid == userid"
  10495. :class="{
  10496. rightW:
  10497. w.userid == userid ||
  10498. tType == 1 ||
  10499. tType == 4 ||
  10500. w.ateacher == userid
  10501. }"
  10502. >
  10503. {{lang.ssMarkScore}}
  10504. </div>
  10505. <!-- <div class="answerScore">1</div> -->
  10506. <!-- <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt=""> -->
  10507. <img
  10508. class="deleteImg"
  10509. src="../../assets/deleteworks.png"
  10510. v-if="
  10511. w.userid == userid ||
  10512. tType == 1 ||
  10513. tType == 4
  10514. "
  10515. @click.stop="deleteWorks(w.wid)"
  10516. alt
  10517. />
  10518. </div>
  10519. <div class="workImg" v-if="w.type == 1">
  10520. <img
  10521. :src="word"
  10522. @click="openFile(w.works)"
  10523. alt
  10524. />
  10525. <!-- @click="openFile(w.works)" -->
  10526. <div
  10527. class="answerScore"
  10528. style="right: 70px;"
  10529. v-if="w.score"
  10530. @click.stop="openScore(w)"
  10531. :class="{
  10532. rightW:
  10533. w.userid == userid ||
  10534. tType == 1 ||
  10535. tType == 4 ||
  10536. w.ateacher == userid
  10537. }"
  10538. >
  10539. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10540. </div>
  10541. <div
  10542. class="answerScore"
  10543. style="right: 70px;"
  10544. @click.stop="openScore(w)"
  10545. v-else-if="courseDetail.userid == userid"
  10546. :class="{
  10547. rightW:
  10548. w.userid == userid ||
  10549. tType == 1 ||
  10550. tType == 4 ||
  10551. w.ateacher == userid
  10552. }"
  10553. >
  10554. {{lang.ssMarkScore}}
  10555. </div>
  10556. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  10557. <img
  10558. class="deleteImg"
  10559. src="../../assets/deleteworks.png"
  10560. v-if="
  10561. w.userid == userid ||
  10562. tType == 1 ||
  10563. tType == 4
  10564. "
  10565. @click.stop="deleteWorks(w.wid)"
  10566. alt
  10567. />
  10568. </div>
  10569. <div class="workImg" v-if="w.type == 3">
  10570. <img
  10571. style="cursor: pointer"
  10572. :src="video"
  10573. @click="openVideo(w)"
  10574. alt
  10575. />
  10576. <!-- @click="openVideo(w.works)" -->
  10577. <div
  10578. class="answerScore"
  10579. style="right: 70px;"
  10580. v-if="w.score"
  10581. @click.stop="openScore(w)"
  10582. :class="{
  10583. rightW:
  10584. w.userid == userid ||
  10585. tType == 1 ||
  10586. tType == 4 ||
  10587. w.ateacher == userid
  10588. }"
  10589. >
  10590. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10591. </div>
  10592. <div
  10593. class="answerScore"
  10594. style="right: 70px;"
  10595. @click.stop="openScore(w)"
  10596. v-else-if="courseDetail.userid == userid"
  10597. :class="{
  10598. rightW:
  10599. w.userid == userid ||
  10600. tType == 1 ||
  10601. tType == 4 ||
  10602. w.ateacher == userid
  10603. }"
  10604. >
  10605. {{lang.ssMarkScore}}
  10606. </div>
  10607. <img class="xiaz" @click="downloadFile(w.works,w.userid)" style="right: 40px;" src="../../assets/icon/works/xiaz.png" alt="">
  10608. <img
  10609. class="deleteImg"
  10610. src="../../assets/deleteworks.png"
  10611. v-if="
  10612. w.userid == userid ||
  10613. tType == 1 ||
  10614. tType == 4
  10615. "
  10616. @click.stop="deleteWorks(w.wid)"
  10617. alt
  10618. />
  10619. </div>
  10620. <div class="workImg" v-if="w.type == 12">
  10621. <img
  10622. style="cursor: pointer"
  10623. :src="word2"
  10624. @click="downloadFile(w.works,w.userid)"
  10625. alt
  10626. />
  10627. <!-- @click="openVideo(w.works)" -->
  10628. <div
  10629. class="answerScore"
  10630. v-if="w.score"
  10631. @click.stop="openScore(w)"
  10632. :class="{
  10633. rightW:
  10634. w.userid == userid ||
  10635. tType == 1 ||
  10636. tType == 4 ||
  10637. w.ateacher == userid
  10638. }"
  10639. >
  10640. {{ JSON.parse(w.score).wScore }} {{ lang.ssScore }}
  10641. </div>
  10642. <div
  10643. class="answerScore"
  10644. @click.stop="openScore(w)"
  10645. v-else-if="courseDetail.userid == userid"
  10646. :class="{
  10647. rightW:
  10648. w.userid == userid ||
  10649. tType == 1 ||
  10650. tType == 4 ||
  10651. w.ateacher == userid
  10652. }"
  10653. >
  10654. {{lang.ssMarkScore}}
  10655. </div>
  10656. <img
  10657. class="deleteImg"
  10658. src="../../assets/deleteworks.png"
  10659. v-if="
  10660. w.userid == userid ||
  10661. tType == 1 ||
  10662. tType == 4
  10663. "
  10664. @click.stop="deleteWorks(w.wid)"
  10665. alt
  10666. />
  10667. </div>
  10668. <div class="comment" style="min-width: 200px">
  10669. <div class="worksName">
  10670. <div>{{ w.sName }}</div>
  10671. </div>
  10672. <div class="commentList">
  10673. <div class="commentList">
  10674. <div
  10675. class="commentImg"
  10676. @click="
  10677. isLikes(
  10678. w.wid,
  10679. userid,
  10680. 1,
  10681. null,
  10682. w.isLikes,
  10683. w.sName
  10684. )
  10685. "
  10686. >
  10687. <img
  10688. :src="
  10689. w.isLikes == true ? likes : noLikes
  10690. "
  10691. alt=""
  10692. />
  10693. </div>
  10694. <div>{{ w.likesCount }}</div>
  10695. </div>
  10696. <div
  10697. class="commentList"
  10698. style="margin-right: 15px"
  10699. >
  10700. <div
  10701. class="commentImg"
  10702. @click="
  10703. commentOther(
  10704. w,
  10705. toolIndex,
  10706. wIndex,
  10707. gindex
  10708. )
  10709. "
  10710. >
  10711. <img
  10712. src="../../assets/icon/comment/comment.png"
  10713. alt=""
  10714. />
  10715. </div>
  10716. <div>{{ w.commentCount }}</div>
  10717. </div>
  10718. </div>
  10719. </div>
  10720. </div>
  10721. </div>
  10722. </div>
  10723. </div>
  10724. </div>
  10725. </div>
  10726. <div
  10727. style="width:92%;margin: 0 0 0 40px;"
  10728. v-if="
  10729. courseDetail.state == 5 && tool.eList && tool.eList.length
  10730. "
  10731. >
  10732. <evaTable :eList="tool.eList"></evaTable>
  10733. </div>
  10734. </div>
  10735. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10736. 上传文件
  10737. <input
  10738. type="file"
  10739. accept="image/png, image/gif, image/jpeg"
  10740. style="display: none"
  10741. @change="beforeUpload1($event, 2, index)"
  10742. />
  10743. </div>-->
  10744. </div>
  10745. </div>
  10746. <div
  10747. class="vedioBox"
  10748. style="margin-top: 10px; border-radius: 20px"
  10749. v-if="
  10750. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10751. .eList &&
  10752. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10753. .eList.length &&
  10754. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10755. .eList.length > 0 &&
  10756. tType != 2
  10757. "
  10758. >
  10759. <div
  10760. class="queTop"
  10761. style="
  10762. font-size: 20px;
  10763. padding: 15px 0 15px 37px;
  10764. font-weight: bold;
  10765. "
  10766. >
  10767. <!-- <div class="question" style="width: 30px">
  10768. <img src="../assets/icon/toolIcon.png" alt />
  10769. </div>
  10770. <div class="queTitle">
  10771. <div>工具</div>
  10772. </div>-->
  10773. {{lang.ssEvaluate}}
  10774. </div>
  10775. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  10776. <div
  10777. class="elist_input"
  10778. :style="{
  10779. marginLeft: '20px',
  10780. width: evalua
  10781. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  10782. taskCount
  10783. ].isEvaFold2
  10784. ? '45%'
  10785. : 'calc(100% - 180px)'
  10786. : 'calc(100% - 20px)'
  10787. }"
  10788. >
  10789. <el-table
  10790. :data="
  10791. chapInfoList[courseType].chapterInfo[0].taskJson[
  10792. taskCount
  10793. ].eList
  10794. "
  10795. :header-cell-style="{ background: '#F0F4FA' }"
  10796. :row-class-name="tableRowClassName"
  10797. border
  10798. stripe
  10799. style="width: 100%"
  10800. >
  10801. <el-table-column
  10802. :width="courseDetail.state == 5 ? '230' : '150'"
  10803. :label="lang.ssTarget"
  10804. align="center"
  10805. >
  10806. <template slot-scope="scope">
  10807. <div
  10808. style="display:flex;justify-content: center;align-items: center;"
  10809. >
  10810. <img
  10811. class="blueRootCss"
  10812. v-if="
  10813. scope.row.isai == 1 ||
  10814. (!scope.row.isai && courseDetail.state == 5)
  10815. "
  10816. src="../../assets/icon/newIcons/blueRoot.png"
  10817. alt=""
  10818. />
  10819. <div v-if="courseDetail.state == 5">
  10820. {{ scope.row.target ? scope.row.target : "-" }}
  10821. </div>
  10822. <div v-else>
  10823. {{
  10824. scope.row.target
  10825. ? scope.row.target[scope.row.target.length - 1]
  10826. : "-"
  10827. }}
  10828. </div>
  10829. </div>
  10830. </template></el-table-column
  10831. >
  10832. <el-table-column
  10833. :label="lang.ssEvalDimension"
  10834. align="center"
  10835. v-if="courseDetail.state != 5"
  10836. >
  10837. <template slot-scope="scope"
  10838. ><div>{{ scope.row.value }}</div></template
  10839. >
  10840. </el-table-column>
  10841. <el-table-column
  10842. :label="courseDetail.state == 5 ? lang.ssEvalStandard : lang.ssDimensionDesc"
  10843. align="center"
  10844. >
  10845. <template slot-scope="scope"
  10846. ><div>
  10847. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  10848. </div></template
  10849. >
  10850. </el-table-column>
  10851. <el-table-column
  10852. :label="lang.ssDetail"
  10853. align="center"
  10854. v-if="courseDetail.state == 5"
  10855. >
  10856. <template slot-scope="scope"
  10857. ><div
  10858. style="display:flex;justify-content: space-around;margin:auto"
  10859. v-if="scope.row.rule"
  10860. >
  10861. <el-popover
  10862. placement="top"
  10863. width="350"
  10864. trigger="hover"
  10865. >
  10866. <div
  10867. v-html="scope.row.rule"
  10868. style="white-space:pre-wrap"
  10869. ></div>
  10870. <div
  10871. slot="reference"
  10872. style="color:#4383FF;cursor: pointer;"
  10873. >
  10874. {{lang.ssView}}
  10875. </div>
  10876. </el-popover>
  10877. </div>
  10878. <div v-else>-</div>
  10879. </template>
  10880. </el-table-column>
  10881. </el-table>
  10882. <!-- <div
  10883. v-for="(eItem, eIndex) in chapInfoList[courseType]
  10884. .chapterInfo[0].taskJson[taskCount].eList"
  10885. :key="eIndex"
  10886. class="elist_input_box"
  10887. >
  10888. <div style="width: 95%">
  10889. <div
  10890. style="
  10891. display: flex;
  10892. flex-direction: row;
  10893. flex-wrap: nowrap;
  10894. align-items: center;
  10895. "
  10896. >
  10897. <div style="max-width: calc(100% - 285px)">
  10898. <span>{{ eItem.value }}</span>
  10899. </div>
  10900. <div
  10901. style="
  10902. padding-left: 25px;
  10903. display: flex;
  10904. flex-direction: row;
  10905. align-items: center;
  10906. "
  10907. >
  10908. <el-rate
  10909. v-model="eItem.score"
  10910. :colors="colors"
  10911. disabled
  10912. ></el-rate>
  10913. </div>
  10914. </div>
  10915. <div class="elist_inptu_text" style="padding-left: 10px">
  10916. <span v-if="eItem.detail != ''">{{
  10917. eItem.detail
  10918. }}</span>
  10919. <span v-else style="color: #b2b1b3; font-size: 14px"
  10920. >{{ lang.ssNoDesc }}...</span
  10921. >
  10922. </div>
  10923. </div>
  10924. </div> -->
  10925. </div>
  10926. <div
  10927. v-if="evalua"
  10928. style="
  10929. border: 1px solid #e5e5e5;
  10930. max-width: 650px;
  10931. width: 100%;
  10932. margin-top: 20px;
  10933. box-shadow: 3px 1px 15px 3px #e0e0e0;
  10934. "
  10935. :style="{
  10936. width: chapInfoList[courseType].chapterInfo[0].taskJson[
  10937. taskCount
  10938. ].isEvaFold2
  10939. ? '100%'
  10940. : '116px'
  10941. }"
  10942. >
  10943. <div class="e_add_top">
  10944. <div class="e_add_title" style="width: 100%">
  10945. <!-- <span>目标管理名称</span> -->
  10946. <span
  10947. v-if="
  10948. chapInfoList[courseType].chapterInfo[0].taskJson[
  10949. taskCount
  10950. ].isEvaFold2
  10951. "
  10952. >{{ eTitle }}</span
  10953. >
  10954. <img
  10955. v-if="
  10956. chapInfoList[courseType].chapterInfo[0].taskJson[
  10957. taskCount
  10958. ].isEvaFold2
  10959. "
  10960. src="../../assets/line.png"
  10961. class="cru_line"
  10962. style="
  10963. width: 125px;
  10964. height: 20px;
  10965. bottom: -10px;
  10966. left: 5px;
  10967. "
  10968. />
  10969. <!-- <el-input
  10970. v-model="eTitle"
  10971. placeholder="请输入名称"
  10972. @change="setMindData"
  10973. ></el-input>-->
  10974. <div
  10975. v-show="
  10976. chapInfoList[courseType].chapterInfo[0].taskJson[
  10977. taskCount
  10978. ].isEvaFold2
  10979. "
  10980. class="show_taskD show"
  10981. style="margin:0 0 0 auto"
  10982. @click="foldEva()"
  10983. >
  10984. <img
  10985. src="../../assets/icon/newIcon/icon-slide.png"
  10986. />{{lang.ssCollapseTarget}}
  10987. </div>
  10988. <div
  10989. v-show="
  10990. !chapInfoList[courseType].chapterInfo[0].taskJson[
  10991. taskCount
  10992. ].isEvaFold2
  10993. "
  10994. style="margin:0 0 0 auto"
  10995. class="show_taskD"
  10996. @click="foldEva()"
  10997. >
  10998. <img
  10999. src="../../assets/icon/newIcon/icon-slide.png"
  11000. />{{lang.ssExpandTarget}}
  11001. </div>
  11002. </div>
  11003. </div>
  11004. <div
  11005. class="e_add_content"
  11006. v-if="
  11007. chapInfoList[courseType].chapterInfo[0].taskJson[
  11008. taskCount
  11009. ].isEvaFold2
  11010. "
  11011. >
  11012. <div class="e_add_list_pbox">
  11013. <div class="e_add_list_pbox_title">
  11014. <!-- <span class="type_title">切换模式</span> -->
  11015. <div class="type_content">
  11016. <span
  11017. :class="{ active: typeMode == 1 }"
  11018. @click="typeMode = 1"
  11019. >{{lang.ssTargetTree}}</span
  11020. >
  11021. <span
  11022. :class="{ active: typeMode == 2 }"
  11023. @click="typeMode = 2"
  11024. >{{lang.ssTargetCompass}}</span
  11025. >
  11026. <!-- <span
  11027. :class="{ active: typeMode == 3 }"
  11028. @click="typeMode = 3"
  11029. >目标看板</span
  11030. > -->
  11031. </div>
  11032. </div>
  11033. <div
  11034. class="e_add_list_pbox_content"
  11035. style="min-height: 200px;"
  11036. >
  11037. <Mind
  11038. :showBar="false"
  11039. :mindData="data"
  11040. style="width: 100%"
  11041. v-show="typeMode == 1"
  11042. ></Mind>
  11043. <Sunburst
  11044. :Josn="eJson"
  11045. :num="eJSONNum"
  11046. style="width: 100%"
  11047. v-if="typeMode == 2"
  11048. ></Sunburst>
  11049. <SeeBoard
  11050. :Josn="eJson"
  11051. :num="eJSONNum"
  11052. :ename="eTitle"
  11053. style="width: 100%"
  11054. v-if="typeMode == 3"
  11055. >
  11056. </SeeBoard>
  11057. </div>
  11058. </div>
  11059. </div>
  11060. </div>
  11061. </div>
  11062. </div>
  11063. <!-- <div
  11064. class="project_box"
  11065. style="margin-top: 15px; padding-bottom: 30px"
  11066. >
  11067. <div
  11068. style="
  11069. display: flex;
  11070. flex-wrap: nowrap;
  11071. flex-direction: column;
  11072. position: relative;
  11073. "
  11074. >
  11075. <div class="queTop">
  11076. <div class="question">
  11077. <img src="../../assets/icon/homeWork.png" alt="" />
  11078. </div>
  11079. <div class="queTitle">
  11080. <div>{{ lang.ssHomework }}<span>{{ lang.ssHomeworkDesc }}</span></div>
  11081. <div>{{ lang.ssTaskColon }}{{ task.task }}</div>
  11082. </div>
  11083. </div>
  11084. <div class="ediBottom">
  11085. <div
  11086. class="addEditor"
  11087. style="margin-top: 23px"
  11088. @click="openAddWork"
  11089. v-if="!isNoHomeWork"
  11090. >
  11091. {{ lang.ssSelectFile }}
  11092. </div>
  11093. <div
  11094. class="addEditor"
  11095. style="margin-top: 23px"
  11096. @click="openAddWork"
  11097. v-else
  11098. >
  11099. {{ lang.ssSubmitted }}
  11100. </div>
  11101. </div>
  11102. </div>
  11103. </div>-->
  11104. </div>
  11105. </div>
  11106. <el-dialog
  11107. :title="lang.ssHomework"
  11108. :visible.sync="dialogVisible"
  11109. :append-to-body="true"
  11110. width="500px"
  11111. :before-close="handleClose"
  11112. class="dialog_change"
  11113. >
  11114. <div class="marginT">
  11115. <div>{{lang.ssUpFile}}</div>
  11116. <div style="display: flex; gap: 10px">
  11117. <div
  11118. class="chapter_add"
  11119. @click="addImg($event)"
  11120. v-if="studyJuri[0].cover.length == 0"
  11121. >
  11122. <div class="up_photo">
  11123. <img src="../../assets/icon/uploadImg.png" alt />
  11124. </div>
  11125. <!-- <input
  11126. type="file"
  11127. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11128. style="display: none"
  11129. @change="beforeUpload1($event, 1)"
  11130. /> -->
  11131. <input
  11132. type="file"
  11133. accept="*"
  11134. style="display: none"
  11135. @change="beforeUpload1($event, 1)"
  11136. />
  11137. <!-- <input
  11138. type="file"
  11139. accept="image/*"
  11140. capture="camera"
  11141. style="display: none"
  11142. @change="beforeUpload1($event, 1)"
  11143. /> -->
  11144. </div>
  11145. <div
  11146. class="chapter_add"
  11147. @click="addImg($event)"
  11148. v-if="studyJuri[0].cover.length == 0"
  11149. >
  11150. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11151. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11152. </div>
  11153. <input
  11154. type="file"
  11155. accept="image/*"
  11156. capture="camera"
  11157. style="display: none"
  11158. @change="beforeUpload1($event, 1)"
  11159. />
  11160. </div>
  11161. </div>
  11162. <div
  11163. class="chapter_add"
  11164. style="
  11165. display: flex;
  11166. width: 100%;
  11167. flex-direction: row;
  11168. flex-wrap: wrap;
  11169. justify-content: flex-start;
  11170. padding: 15px 0;
  11171. "
  11172. v-if="studyJuri[0].cover.length > 0"
  11173. >
  11174. <div class="upCover">
  11175. <img
  11176. :src="studyJuri[0].cover[0].url"
  11177. alt
  11178. v-if="fileType == 0"
  11179. />
  11180. <img :src="word" alt v-else-if="fileType == 1" />
  11181. <img :src="video" alt v-else-if="fileType == 2" />
  11182. <img :src="word2" alt v-else-if="fileType == 3" />
  11183. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11184. <div class="deleteWord" @click="clean(1)">
  11185. <img src="../../assets/icon/deleteWorks.png" alt />
  11186. </div>
  11187. </div>
  11188. </div>
  11189. </div>
  11190. <div
  11191. class="upload_send"
  11192. @click="addCourseWorksCopy(taskCount)"
  11193. v-if="!proVisible"
  11194. >
  11195. {{lang.ssSubmit}}
  11196. </div>
  11197. </el-dialog>
  11198. </div>
  11199. </div>
  11200. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11201. <classRoomHelper
  11202. v-if="!['2'].includes(tType)"
  11203. @studentFreePreview="studentFreePreview"
  11204. @OpenJobPreview="OpenJobPreview"
  11205. :videoStart="videoStart"
  11206. :IsFollow="IsFollow"
  11207. :sIsOpen="sIsOpen"
  11208. :IsLookOpen="IsLookOpen"
  11209. :splitScreenData="splitScreenData"
  11210. @splitScreenBehavior="splitScreenBehavior"
  11211. @startRecording="startRecording"
  11212. @stopRecording="stopRecording"
  11213. :fileList="vChapterData[taskCount]"
  11214. :worksStudent="worksStudent"
  11215. :courseType="parseInt(courseType)"
  11216. :taskCount="taskCount"
  11217. :tcid="tcid"
  11218. :navList="navList"
  11219. v-show="orgArray.includes(org) || oidArray.includes(oid)"
  11220. ref="classRoomHelperRef"
  11221. :courseDetail="courseDetail"
  11222. :tType="tType"
  11223. @setWidth="setClassRoomHelperWidth"
  11224. @refresh="refreshCourse"
  11225. @goStep="nextOrpreSteps"
  11226. @authority="juriVisible = true"
  11227. @review="setPz"
  11228. @backPage="
  11229. goTo(
  11230. '/courseDetail?userid=' +
  11231. userid +
  11232. '&oid=' +
  11233. oid +
  11234. '&org=' +
  11235. org +
  11236. '&cid=' +
  11237. classId +
  11238. '&courseId=' +
  11239. id +
  11240. '&tType=' +
  11241. tType +
  11242. '&screenType=' +
  11243. screenType+
  11244. '&role=' +
  11245. role
  11246. )
  11247. "
  11248. ></classRoomHelper>
  11249. <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(
  11250. '/courseDetail?userid=' +
  11251. userid +
  11252. '&oid=' +
  11253. oid +
  11254. '&org=' +
  11255. org +
  11256. '&cid=' +
  11257. classId +
  11258. '&courseId=' +
  11259. id +
  11260. '&tType=' +
  11261. tType +
  11262. '&screenType=' +
  11263. screenType+
  11264. '&role=' +
  11265. role
  11266. )"></studentClassRoomHelper>
  11267. <div
  11268. class="pButton"
  11269. @click="(pzDialog = true), selectPz()"
  11270. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11271. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11272. >
  11273. <!-- 批 -->
  11274. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11275. </div>
  11276. <div
  11277. v-if="pzDialog == true"
  11278. class="newDialogCss"
  11279. :style="`right:${commentRight}`"
  11280. >
  11281. <div class="pzTop2">
  11282. <!-- <div>评论</div>
  11283. <div @click="pzDialog = false">
  11284. <img src="../../assets/close1.png" alt="" />
  11285. </div> -->
  11286. <div class="checkbox">
  11287. <!-- <div class="check" style="font-size: 25px; position: unset">
  11288. 评论
  11289. </div> -->
  11290. <div class="cb-tabList">
  11291. <div
  11292. :class="[commentTagShow == 0 ? 'cb-tabItem' : '']"
  11293. @click="commentTagShow = 0"
  11294. >
  11295. {{lang.ssComment}}
  11296. </div>
  11297. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">{{lang.ssMarkScore}}</div> -->
  11298. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11299. <div
  11300. :class="[commentTagShow == 2 ? 'cb-tabItem' : '']"
  11301. @click="commentTagShow = 2"
  11302. >
  11303. {{lang.ssTotalEval}}
  11304. </div>
  11305. </div>
  11306. <el-select
  11307. v-model="pzStype"
  11308. @change="selectPz"
  11309. class="selectBox"
  11310. v-show="commentTagShow == 0"
  11311. >
  11312. <el-option :label="lang.ssTimeDesc" :value="1"></el-option>
  11313. <el-option :label="lang.ssTimeAsc" :value="2"></el-option>
  11314. <el-option :label="lang.ssMyComment" :value="3"></el-option>
  11315. </el-select>
  11316. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11317. </div>
  11318. </div>
  11319. <div
  11320. :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'"
  11321. v-if="commentTagShow == 0"
  11322. >
  11323. <div class="pzListBox" v-if="pzList && pzList.length">
  11324. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11325. <div class="pzNavTop">
  11326. <div>{{lang.ssEval}}</div>
  11327. <div>
  11328. {{ lang.ssCommentOfUser.replace(/\*/g, pz.username && pz.username.length > 5 ? pz.username.substring(0, 5) + "..." : pz.username) }}
  11329. </div>
  11330. <div
  11331. class="pzDelete"
  11332. v-if="pz.userid == userid"
  11333. @click="deletePz(pz.id)"
  11334. >
  11335. {{lang.ssDelete}}
  11336. </div>
  11337. </div>
  11338. <div
  11339. @click="checkImg(getImgList(pz.content))"
  11340. class="pzContent cont"
  11341. v-html="pz.content"
  11342. v-if="pz.type == '1'"
  11343. ></div>
  11344. <div class="pzContent" v-if="pz.type == '2'">
  11345. <audio :src="pz.content" controls="controls" ref="audio">
  11346. Your browser does not support the audio element.
  11347. </audio>
  11348. </div>
  11349. <div class="pzContent" v-if="pz.type == '3'">
  11350. <img
  11351. :src="pz.content"
  11352. style="width: 90%; margin: 0 auto; display: block"
  11353. @click="previewImg(pz.content)"
  11354. />
  11355. </div>
  11356. <div class="timeAndReply">
  11357. <div class="time">
  11358. {{ pz.time }}
  11359. </div>
  11360. <div @click="setReplyIndex(pz.id, pzIndex)">{{ lang.ssReply }}</div>
  11361. </div>
  11362. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11363. <div
  11364. v-for="(h, hIndex) in pz.hfList"
  11365. :key="hIndex"
  11366. class="hfItem"
  11367. >
  11368. <div class="whoReplyWho">
  11369. <div class="hfName">{{ h.username }}</div>
  11370. <div class="hfImg">
  11371. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11372. </div>
  11373. <div class="hfName">{{ pz.username }}</div>
  11374. </div>
  11375. <div class="hfContent" v-html="h.content"></div>
  11376. <div class="hfBottom">
  11377. <div class="hfTime">{{ h.time }}</div>
  11378. <div
  11379. class="deleteHfItem"
  11380. @click="deleteReply(h.id)"
  11381. v-if="userid == h.userid"
  11382. >
  11383. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11384. </div>
  11385. </div>
  11386. </div>
  11387. </div>
  11388. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11389. <div class="replyInput">
  11390. <el-input v-model="reply[pzIndex]"></el-input>
  11391. </div>
  11392. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11393. </div> -->
  11394. </div>
  11395. </div>
  11396. <div class="noPz" v-else>
  11397. <img src="../../assets/icon/noPz.png" alt="" />
  11398. </div>
  11399. <div class="addPzButton">
  11400. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11401. {{lang.ssAddComment}}
  11402. </div>
  11403. <!-- <div class="img1">
  11404. <div @click="(addPzDialog = true), (pzType = 2)">
  11405. <img src="../../assets/audio.png" /><span>音频</span>
  11406. </div>
  11407. </div> -->
  11408. </div>
  11409. </div>
  11410. <div class="scoreList" v-if="commentTagShow == 1">
  11411. <scoreItem
  11412. v-for="item in scoreList.datalist"
  11413. @refresh="getScoreList"
  11414. :data="item"
  11415. :isScore="
  11416. scoreList.isScoreList.filter(
  11417. i => i.userid == item.userid && i.courseid == item.courseId
  11418. )
  11419. "
  11420. :key="item.courseId"
  11421. />
  11422. </div>
  11423. <div
  11424. class="scoreList"
  11425. v-if="commentTagShow == 2"
  11426. style="position: relative"
  11427. >
  11428. <scoreZong
  11429. :courseid="id"
  11430. :userid="userid"
  11431. @insertMemorandum="insertMemorandum"
  11432. ></scoreZong>
  11433. </div>
  11434. </div>
  11435. <div
  11436. v-if="toolDialogVisible == true"
  11437. class="toolMask"
  11438. @click="toolDialogVisible = false"
  11439. ></div>
  11440. <div v-if="toolDialogVisible == true" class="addToolCss">
  11441. <div class="toolTop">
  11442. <div style="font-weight: bold">{{lang.ssNewTool}}</div>
  11443. <div @click="toolDialogVisible = false">
  11444. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11445. </div>
  11446. </div>
  11447. <div class="tool_box">
  11448. <div class="tool_type_box">
  11449. <div class="chooseWho">
  11450. <div
  11451. :class="toolType == 0 ? 'isChooseActive' : ''"
  11452. @click="(toolType = 0), $forceUpdate()"
  11453. >
  11454. {{lang.ssInteract}}
  11455. </div>
  11456. <div
  11457. :class="toolType == 1 ? 'isChooseActive' : ''"
  11458. @click="(toolType = 1), $forceUpdate()"
  11459. >
  11460. {{lang.ssThinking}}
  11461. </div>
  11462. <div
  11463. :class="toolType == 2 ? 'isChooseActive' : ''"
  11464. @click="(toolType = 2), $forceUpdate()"
  11465. >
  11466. {{lang.ssEvalType}}
  11467. </div>
  11468. <div
  11469. :class="toolType == 3 ? 'isChooseActive' : ''"
  11470. @click="(toolType = 3), $forceUpdate()"
  11471. >
  11472. {{lang.ssProgram}}
  11473. </div>
  11474. <div
  11475. :class="toolType == 5 ? 'isChooseActive' : ''"
  11476. @click="(toolType = 5), $forceUpdate()"
  11477. >
  11478. {{lang.ssSubject}}
  11479. </div>
  11480. </div>
  11481. </div>
  11482. <div>
  11483. <div class="toolSort" v-if="toolType == 0">
  11484. <div
  11485. class="tool"
  11486. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11487. @click="addTools2(10)"
  11488. >
  11489. <div class="whiteBIcon">
  11490. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11491. <div style="margin: 5px 0">{{lang.ssCountdown}}</div>
  11492. </div>
  11493. <div class="check">
  11494. <div
  11495. v-if="checktoolArray.indexOf(10) == -1"
  11496. class="noChoose"
  11497. ></div>
  11498. <div v-else class="isChoose"></div>
  11499. </div>
  11500. </div>
  11501. <div
  11502. class="tool"
  11503. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11504. @click="addTools2(65)"
  11505. >
  11506. <div class="whiteBIcon">
  11507. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11508. <div style="margin: 5px 0">{{lang.ssPickPerson}}</div>
  11509. </div>
  11510. <div class="check">
  11511. <div
  11512. v-if="checktoolArray.indexOf(65) == -1"
  11513. class="noChoose"
  11514. ></div>
  11515. <div v-else class="isChoose"></div>
  11516. </div>
  11517. </div>
  11518. </div>
  11519. <div class="toolSort" v-if="toolType == 1">
  11520. <div
  11521. class="tool"
  11522. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11523. @click="addTools2(7)"
  11524. >
  11525. <div class="whiteBIcon">
  11526. <img
  11527. src="../../assets/icon/secondToolList/mindNetwork.png"
  11528. alt
  11529. />
  11530. <div style="margin: 5px 0">{{lang.ssMindGrid}}</div>
  11531. </div>
  11532. <div class="check">
  11533. <div
  11534. v-if="checktoolArray.indexOf(7) == -1"
  11535. class="noChoose"
  11536. ></div>
  11537. <div v-else class="isChoose"></div>
  11538. </div>
  11539. </div>
  11540. <div
  11541. class="tool"
  11542. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11543. @click="addTools2(1)"
  11544. >
  11545. <div class="whiteBIcon">
  11546. <img
  11547. src="../../assets/icon/secondToolList/whiteBoard.png"
  11548. alt
  11549. />
  11550. <div style="margin: 5px 0">{{lang.ssWhiteboard}}</div>
  11551. </div>
  11552. <div class="check">
  11553. <div
  11554. v-if="checktoolArray.indexOf(1) == -1"
  11555. class="noChoose"
  11556. ></div>
  11557. <div v-else class="isChoose"></div>
  11558. </div>
  11559. </div>
  11560. <div
  11561. class="tool"
  11562. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11563. @click="addTools2(52)"
  11564. >
  11565. <div class="whiteBIcon">
  11566. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11567. <div style="margin: 5px 0">{{lang.ssDocument}}</div>
  11568. </div>
  11569. <div class="check">
  11570. <div
  11571. v-if="checktoolArray.indexOf(52) == -1"
  11572. class="noChoose"
  11573. ></div>
  11574. <div v-else class="isChoose"></div>
  11575. </div>
  11576. </div>
  11577. <div
  11578. class="tool"
  11579. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11580. @click="addTools2(3)"
  11581. >
  11582. <div class="whiteBIcon">
  11583. <img
  11584. src="../../assets/icon/secondToolList/mindMapping.png"
  11585. alt
  11586. />
  11587. <div style="margin: 5px 0">{{lang.ssMindMap}}</div>
  11588. </div>
  11589. <div class="check">
  11590. <div
  11591. v-if="checktoolArray.indexOf(3) == -1"
  11592. class="noChoose"
  11593. ></div>
  11594. <div v-else class="isChoose"></div>
  11595. </div>
  11596. </div>
  11597. <div
  11598. class="tool"
  11599. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11600. @click="addTools2(48)"
  11601. >
  11602. <div class="whiteBIcon">
  11603. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11604. <div style="margin: 5px 0">{{lang.ssTable}}</div>
  11605. </div>
  11606. <div class="check">
  11607. <div
  11608. v-if="checktoolArray.indexOf(48) == -1"
  11609. class="noChoose"
  11610. ></div>
  11611. <div v-else class="isChoose"></div>
  11612. </div>
  11613. </div>
  11614. </div>
  11615. <div class="toolSort" v-if="toolType == 6">
  11616. <div v-show="tooC == 49">
  11617. <img
  11618. @click="addTools(tooC, toolIndex, taskCount)"
  11619. src="../../assets/icon/fourthToolList/group.png"
  11620. alt
  11621. />
  11622. <div style="margin: 5px 0">{{lang.ssStudentGroup}}</div>
  11623. </div>
  11624. </div>
  11625. <div class="toolSort" v-if="toolType == 2">
  11626. <div
  11627. class="tool"
  11628. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11629. @click="addTools2(16)"
  11630. >
  11631. <div class="whiteBIcon">
  11632. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11633. <div style="margin: 5px 0">{{lang.ssHomework}}</div>
  11634. </div>
  11635. <div class="check">
  11636. <div
  11637. v-if="checktoolArray.indexOf(16) == -1"
  11638. class="noChoose"
  11639. ></div>
  11640. <div v-else class="isChoose"></div>
  11641. </div>
  11642. </div>
  11643. <div
  11644. class="tool"
  11645. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11646. @click="addTools2(50)"
  11647. >
  11648. <div class="whiteBIcon">
  11649. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11650. <div style="margin: 5px 0">{{lang.ssBatchUpload}}</div>
  11651. </div>
  11652. <div class="check">
  11653. <div
  11654. v-if="checktoolArray.indexOf(50) == -1"
  11655. class="noChoose"
  11656. ></div>
  11657. <div v-else class="isChoose"></div>
  11658. </div>
  11659. </div>
  11660. </div>
  11661. <div class="toolSort" v-if="toolType == 3">
  11662. <div
  11663. class="tool"
  11664. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11665. @click="addTools2(18)"
  11666. >
  11667. <div class="whiteBIcon">
  11668. <img
  11669. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11670. alt
  11671. />
  11672. <div style="margin: 5px 0">{{lang.ssTraining}}</div>
  11673. </div>
  11674. <div class="check">
  11675. <div
  11676. v-if="checktoolArray.indexOf(18) == -1"
  11677. class="noChoose"
  11678. ></div>
  11679. <div v-else class="isChoose"></div>
  11680. </div>
  11681. </div>
  11682. <div
  11683. class="tool"
  11684. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11685. @click="addTools2(21)"
  11686. >
  11687. <div class="whiteBIcon">
  11688. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11689. <div style="margin: 5px 0">AIoT Blockly</div>
  11690. </div>
  11691. <div class="check">
  11692. <div
  11693. v-if="checktoolArray.indexOf(21) == -1"
  11694. class="noChoose"
  11695. ></div>
  11696. <div v-else class="isChoose"></div>
  11697. </div>
  11698. </div>
  11699. <div
  11700. class="tool"
  11701. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11702. @click="addTools2(23)"
  11703. >
  11704. <div class="whiteBIcon">
  11705. <img
  11706. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11707. alt
  11708. />
  11709. <div style="margin: 5px 0">AI Python</div>
  11710. </div>
  11711. <div class="check">
  11712. <div
  11713. v-if="checktoolArray.indexOf(23) == -1"
  11714. class="noChoose"
  11715. ></div>
  11716. <div v-else class="isChoose"></div>
  11717. </div>
  11718. </div>
  11719. <div
  11720. class="tool"
  11721. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11722. @click="addTools2(24)"
  11723. >
  11724. <div class="whiteBIcon">
  11725. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11726. <div style="margin: 5px 0">AI Blockly</div>
  11727. </div>
  11728. <div class="check">
  11729. <div
  11730. v-if="checktoolArray.indexOf(24) == -1"
  11731. class="noChoose"
  11732. ></div>
  11733. <div v-else class="isChoose"></div>
  11734. </div>
  11735. </div>
  11736. <div
  11737. class="tool"
  11738. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11739. @click="addTools2(32)"
  11740. >
  11741. <div class="whiteBIcon">
  11742. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11743. <div style="margin: 5px 0">{{lang.ssCodeEdit}}</div>
  11744. </div>
  11745. <div class="check">
  11746. <div
  11747. v-if="checktoolArray.indexOf(32) == -1"
  11748. class="noChoose"
  11749. ></div>
  11750. <div v-else class="isChoose"></div>
  11751. </div>
  11752. </div>
  11753. <div
  11754. class="tool"
  11755. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11756. @click="addTools2(57)"
  11757. >
  11758. <div class="whiteBIcon">
  11759. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11760. <div style="margin: 5px 0">CocoPi</div>
  11761. </div>
  11762. <div class="check">
  11763. <div
  11764. v-if="checktoolArray.indexOf(57) == -1"
  11765. class="noChoose"
  11766. ></div>
  11767. <div v-else class="isChoose"></div>
  11768. </div>
  11769. </div>
  11770. <div
  11771. class="tool"
  11772. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11773. @click="addTools2(63)"
  11774. >
  11775. <div class="whiteBIcon">
  11776. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11777. <div style="margin: 5px 0">{{lang.ssTurtle}}</div>
  11778. </div>
  11779. <div class="check">
  11780. <div
  11781. v-if="checktoolArray.indexOf(63) == -1"
  11782. class="noChoose"
  11783. ></div>
  11784. <div v-else class="isChoose"></div>
  11785. </div>
  11786. </div>
  11787. <div
  11788. class="tool"
  11789. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11790. @click="addTools2(71)"
  11791. >
  11792. <div class="whiteBIcon">
  11793. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11794. <div style="margin: 5px 0">{{lang.ssAiAgent}}</div>
  11795. </div>
  11796. <div class="check">
  11797. <div
  11798. v-if="checktoolArray.indexOf(71) == -1"
  11799. class="noChoose"
  11800. ></div>
  11801. <div v-else class="isChoose"></div>
  11802. </div>
  11803. </div>
  11804. </div>
  11805. <div class="toolSort" v-if="toolType == 7">
  11806. <div
  11807. class="tool"
  11808. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11809. @click="addTools2(40)"
  11810. >
  11811. <div class="whiteBIcon">
  11812. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11813. <div style="margin: 5px 0">{{lang.ssPersonalEval}}</div>
  11814. </div>
  11815. <div class="check">
  11816. <div
  11817. v-if="checktoolArray.indexOf(40) == -1"
  11818. class="noChoose"
  11819. ></div>
  11820. <div v-else class="isChoose"></div>
  11821. </div>
  11822. </div>
  11823. </div>
  11824. <div class="toolSort" v-if="toolType == 5">
  11825. <div
  11826. class="tool"
  11827. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11828. @click="addTools2(28)"
  11829. >
  11830. <div class="whiteBIcon">
  11831. <img
  11832. src="../../assets/icon/secondToolList/translation.png"
  11833. alt
  11834. />
  11835. <div style="margin: 5px 0">{{lang.ssTranslate}}</div>
  11836. </div>
  11837. <div class="check">
  11838. <div
  11839. v-if="checktoolArray.indexOf(28) == -1"
  11840. class="noChoose"
  11841. ></div>
  11842. <div v-else class="isChoose"></div>
  11843. </div>
  11844. </div>
  11845. <div
  11846. class="tool"
  11847. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11848. @click="addTools2(31)"
  11849. >
  11850. <div class="whiteBIcon">
  11851. <img
  11852. src="../../assets/icon/secondToolList/networkPanel.png"
  11853. alt
  11854. />
  11855. <div style="margin: 5px 0">{{lang.ssDigitalBoard}}</div>
  11856. </div>
  11857. <div class="check">
  11858. <div
  11859. v-if="checktoolArray.indexOf(31) == -1"
  11860. class="noChoose"
  11861. ></div>
  11862. <div v-else class="isChoose"></div>
  11863. </div>
  11864. </div>
  11865. <div
  11866. class="tool"
  11867. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11868. @click="addTools2(39)"
  11869. >
  11870. <div class="whiteBIcon">
  11871. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11872. <div style="margin: 5px 0">GeoGebra</div>
  11873. </div>
  11874. <div class="check">
  11875. <div
  11876. v-if="checktoolArray.indexOf(39) == -1"
  11877. class="noChoose"
  11878. ></div>
  11879. <div v-else class="isChoose"></div>
  11880. </div>
  11881. </div>
  11882. <div
  11883. class="tool"
  11884. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  11885. @click="addTools2(66)"
  11886. >
  11887. <div class="whiteBIcon">
  11888. <img
  11889. src="../../assets/icon/secondToolList/formulaEdi.png"
  11890. alt
  11891. />
  11892. <div style="margin: 5px 0">{{lang.ssFormula}}</div>
  11893. </div>
  11894. <div class="check">
  11895. <div
  11896. v-if="checktoolArray.indexOf(66) == -1"
  11897. class="noChoose"
  11898. ></div>
  11899. <div v-else class="isChoose"></div>
  11900. </div>
  11901. </div>
  11902. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  11903. <div class="whiteBIcon" @click="addTools2(67)">
  11904. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  11905. <div style="margin: 5px 0">{{ lang.ssMolecule }}</div>
  11906. </div>
  11907. <div class="check" @click="addTools2(67)">
  11908. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  11909. <div v-else class="isChoose"></div>
  11910. </div>
  11911. </div> -->
  11912. <div
  11913. class="tool"
  11914. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  11915. @click="addTools2(68)"
  11916. >
  11917. <div class="whiteBIcon">
  11918. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  11919. <div style="margin: 5px 0">{{lang.ssTimeline}}</div>
  11920. </div>
  11921. <div class="check">
  11922. <div
  11923. v-if="checktoolArray.indexOf(68) == -1"
  11924. class="noChoose"
  11925. ></div>
  11926. <div v-else class="isChoose"></div>
  11927. </div>
  11928. </div>
  11929. <!-- <div
  11930. class="tool"
  11931. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  11932. @click="addTools2(69)"
  11933. >
  11934. <div class="whiteBIcon">
  11935. <img src="../../assets/icon/secondToolList/english.png" alt />
  11936. <div style="margin: 5px 0">{{ lang.ssEnglishWrite }}</div>
  11937. </div>
  11938. <div class="check">
  11939. <div
  11940. v-if="checktoolArray.indexOf(69) == -1"
  11941. class="noChoose"
  11942. ></div>
  11943. <div v-else class="isChoose"></div>
  11944. </div>
  11945. </div> -->
  11946. </div>
  11947. <div class="toolSort" v-if="toolType == 4">
  11948. <div
  11949. class="tool"
  11950. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  11951. @click="addTools2(26)"
  11952. >
  11953. <div class="whiteBIcon">
  11954. <img
  11955. src="../../assets/icon/thirdToolList/courseDesign.png"
  11956. alt
  11957. />
  11958. <div style="margin: 5px 0">{{lang.ssCourseDesign}}</div>
  11959. </div>
  11960. <div class="check">
  11961. <div
  11962. v-if="checktoolArray.indexOf(26) == -1"
  11963. class="noChoose"
  11964. ></div>
  11965. <div v-else class="isChoose"></div>
  11966. </div>
  11967. </div>
  11968. <div
  11969. class="tool"
  11970. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  11971. @click="addTools2(25)"
  11972. >
  11973. <div class="whiteBIcon">
  11974. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  11975. <div style="margin: 5px 0">{{lang.ssGoalManage}}</div>
  11976. </div>
  11977. <div class="check">
  11978. <div
  11979. v-if="checktoolArray.indexOf(25) == -1"
  11980. class="noChoose"
  11981. ></div>
  11982. <div v-else class="isChoose"></div>
  11983. </div>
  11984. </div>
  11985. </div>
  11986. </div>
  11987. </div>
  11988. <span
  11989. slot="footer"
  11990. class="dialog-footer"
  11991. style="display: block; text-align: center; padding: 0 0 10px 0"
  11992. >
  11993. <el-button @click="toolDialogVisible = false">{{lang.ssCancel}}</el-button>
  11994. <el-button type="primary" @click.stop="addToolChoose">{{lang.ssConfirm}}</el-button>
  11995. </span>
  11996. </div>
  11997. <div
  11998. v-if="replyDialogVisible == true"
  11999. class="addDialogCss"
  12000. v-el-drag-dialog
  12001. >
  12002. <div class="pzTop">
  12003. <div class="teacherPz">
  12004. <div class="teacherPzImg">
  12005. <img src="../../assets/icon/teacherPz.png" alt="" />
  12006. </div>
  12007. <div style="margin-left: 10px; height: 25px">{{lang.ssAddReply}}</div>
  12008. </div>
  12009. <div @click="replyDialogVisible = false">
  12010. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12011. </div>
  12012. </div>
  12013. <div class="addPzBox">
  12014. <!-- <div class="addPzCheck">
  12015. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12016. >文本</span
  12017. >
  12018. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12019. >音频</span
  12020. >
  12021. </div> -->
  12022. <div style="height: calc(100% - 50px)">
  12023. <editor-bar
  12024. class="binfo_input pzConText"
  12025. style="width: 100% !important; margin: 0 auto"
  12026. :placeholder="lang.ssEnterReply"
  12027. v-model="reply"
  12028. @change="change"
  12029. ></editor-bar>
  12030. </div>
  12031. <div class="addTextCss" @click="addHf">{{lang.ssConfirm}}</div>
  12032. </div>
  12033. </div>
  12034. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12035. <div class="pzTop">
  12036. <div class="teacherPz">
  12037. <div class="teacherPzImg">
  12038. <img src="../../assets/icon/teacherPz.png" alt="" />
  12039. </div>
  12040. <div style="margin-left: 10px; height: 25px">{{lang.ssTeacherComment}}</div>
  12041. </div>
  12042. <div @click="addPzDialog = false">
  12043. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12044. </div>
  12045. </div>
  12046. <div class="addPzBox">
  12047. <div class="addPzCheck">
  12048. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12049. >{{lang.ssText}}</span
  12050. >
  12051. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12052. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12053. >{{lang.ssAudio}}</span
  12054. >
  12055. </div>
  12056. <div style="height: calc(100% - 95px)">
  12057. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12058. v-if="pzType == 1"></textarea> -->
  12059. <editor-bar
  12060. class="binfo_input pzConText"
  12061. style="width: 100% !important"
  12062. :placeholder="lang.ssEnterTaskDesc"
  12063. v-model="pzConText"
  12064. @change="change"
  12065. v-if="pzType == 1"
  12066. ></editor-bar>
  12067. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12068. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12069. <div @click="addImg($event)">
  12070. <el-button type="primary">上传图片</el-button>
  12071. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12072. @change="beforeUpload1($event, 4)" />
  12073. </div>
  12074. </div> -->
  12075. </div>
  12076. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12077. {{lang.ssConfirm}}
  12078. </div>
  12079. </div>
  12080. </div>
  12081. <div v-if="proVisible" class="mask">
  12082. <div class="progressBox">
  12083. <!-- <div id="closePro" class="closeCss">
  12084. <img src="../../assets/icon/close.png" alt />
  12085. </div> -->
  12086. <div class="lbox">
  12087. <img src="../../assets/loading.gif" />{{lang.ssUploading}}
  12088. </div>
  12089. <div style="margin-bottom: 10px">
  12090. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12091. </div>
  12092. <el-progress
  12093. :text-inside="true"
  12094. :stroke-width="20"
  12095. :percentage="progress"
  12096. style="width: 80%"
  12097. ></el-progress>
  12098. </div>
  12099. </div>
  12100. <div v-if="proVisible2" class="mask">
  12101. <div class="progressBox">
  12102. <div class="lbox">
  12103. <img src="../../assets/loading.gif" />{{lang.ssUploading}}
  12104. </div>
  12105. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12106. </div>
  12107. </div>
  12108. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12109. <img width="100%" :src="dialogImageUrl" alt />
  12110. </el-dialog>
  12111. <el-dialog
  12112. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  12113. :visible.sync="dialogVisible5"
  12114. :append-to-body="true"
  12115. width="1000px"
  12116. :before-close="handleClose"
  12117. class="dialog_diy dialog_diy3"
  12118. >
  12119. <div>
  12120. <div
  12121. class="a_add_title"
  12122. style="
  12123. display: flex;
  12124. flex-direction: row;
  12125. align-items: center;
  12126. justify-content: center;
  12127. "
  12128. >
  12129. <div style="margin-right: 20px; font-size: 20px">{{lang.ssTitle}}:</div>
  12130. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12131. </div>
  12132. <div class="a_addBox">
  12133. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12134. {{lang.ssQuestionContent}}
  12135. </div>
  12136. <div
  12137. class="a_add_box"
  12138. v-for="(item1, index1) in askJson.askCount"
  12139. :key="index1"
  12140. >
  12141. <div class="a_add_head">
  12142. <div style="display: flex">
  12143. <span class="askIndex"> {{ index1 + 1 }}</span>
  12144. <div>{{lang.ssQuestion}}:{{ askJson.askJson[index1].askstitle }}</div>
  12145. </div>
  12146. <img
  12147. v-if="askJson.askJson[index1].img"
  12148. :src="askJson.askJson[index1].img"
  12149. style="height: 300px; margin-top: 10px; max-width: 100%"
  12150. />
  12151. </div>
  12152. <div class="a_add_body">
  12153. <div class="a_add_input">
  12154. <el-radio-group
  12155. v-model="radio[index1]"
  12156. v-if="
  12157. askJson.askJson[index1].type == '1' ||
  12158. !askJson.askJson[index1].type
  12159. "
  12160. >
  12161. <el-radio
  12162. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12163. .checkList"
  12164. :key="checkIndex"
  12165. :label="checkIndex"
  12166. :disabled="isAnswer"
  12167. class="redioStyle"
  12168. ><span v-html="item2"></span
  12169. ></el-radio>
  12170. </el-radio-group>
  12171. <el-checkbox-group
  12172. v-model="radio[index1]"
  12173. v-if="askJson.askJson[index1].type == '2'"
  12174. >
  12175. <el-checkbox
  12176. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12177. .checkList"
  12178. :key="checkIndex1"
  12179. :label="checkIndex1"
  12180. :disabled="isAnswer"
  12181. class="redioStyle"
  12182. ><span v-html="item2"></span>
  12183. </el-checkbox>
  12184. </el-checkbox-group>
  12185. </div>
  12186. </div>
  12187. </div>
  12188. </div>
  12189. </div>
  12190. <span slot="footer" class="dialog-footer">
  12191. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12192. >{{lang.ssCancel}}</el-button
  12193. >
  12194. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12195. >{{lang.ssConfirm}}</el-button
  12196. >
  12197. </span>
  12198. </el-dialog>
  12199. <el-dialog
  12200. :title="noteName != '' ? noteName : lang.ssViewSurvey"
  12201. :visible.sync="dialogVisible5Teacher"
  12202. :append-to-body="true"
  12203. width="1000px"
  12204. :before-close="handleClose"
  12205. class="dialog_diy dialog_diy3"
  12206. >
  12207. <div>
  12208. <div class="w_name">
  12209. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  12210. </div>
  12211. <div
  12212. class="a_add_title"
  12213. style="
  12214. display: flex;
  12215. flex-direction: row;
  12216. align-items: center;
  12217. justify-content: center;
  12218. "
  12219. >
  12220. <div style="margin-right: 20px; font-size: 20px">{{lang.ssTitle}}:</div>
  12221. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12222. </div>
  12223. <div class="a_addBox">
  12224. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12225. {{lang.ssQuestionContent}}
  12226. </div>
  12227. <div
  12228. class="a_add_box"
  12229. v-for="(item1, index1) in askJson.askCount"
  12230. :key="index1"
  12231. >
  12232. <div class="a_add_head">
  12233. <div style="display: flex">
  12234. <span class="askIndex">{{ index1 + 1 }}</span>
  12235. <div>{{lang.ssQuestion}}:{{ askJson.askJson[index1].askstitle }}</div>
  12236. </div>
  12237. <img
  12238. v-if="askJson.askJson[index1].img"
  12239. :src="askJson.askJson[index1].img"
  12240. style="height: 300px; margin-top: 10px; max-width: 100%"
  12241. />
  12242. </div>
  12243. <div class="a_add_body">
  12244. <div class="a_add_input">
  12245. <el-radio-group
  12246. v-model="radio[index1]"
  12247. v-if="
  12248. askJson.askJson[index1].type == '1' ||
  12249. !askJson.askJson[index1].type
  12250. "
  12251. >
  12252. <el-radio
  12253. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12254. .checkList"
  12255. :key="checkIndex"
  12256. :label="checkIndex"
  12257. :disabled="isAnswer"
  12258. class="redioStyle"
  12259. ><span v-html="item2"></span
  12260. ></el-radio>
  12261. </el-radio-group>
  12262. <el-checkbox-group
  12263. v-model="radio[index1]"
  12264. v-if="askJson.askJson[index1].type == '2'"
  12265. >
  12266. <el-checkbox
  12267. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12268. .checkList"
  12269. :key="checkIndex1"
  12270. :label="checkIndex1"
  12271. :disabled="isAnswer"
  12272. class="redioStyle"
  12273. ><span v-html="item2"></span>
  12274. </el-checkbox>
  12275. </el-checkbox-group>
  12276. </div>
  12277. </div>
  12278. </div>
  12279. </div>
  12280. </div>
  12281. <span slot="footer" class="dialog-footer">
  12282. <el-button
  12283. @click="dialogVisible5Teacher = false"
  12284. v-show="noteName == ''"
  12285. >{{lang.ssCancel}}</el-button
  12286. >
  12287. <el-button
  12288. type="primary"
  12289. @click="addStudentAskTeacher"
  12290. v-show="noteName == ''"
  12291. >{{lang.ssConfirm}}</el-button
  12292. >
  12293. </span>
  12294. </el-dialog>
  12295. <el-dialog
  12296. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12297. :visible.sync="dialogVisibleChoice"
  12298. :append-to-body="true"
  12299. width="1000px"
  12300. :before-close="handleClose"
  12301. class="dialog_diy dialog_diy3"
  12302. >
  12303. <div>
  12304. <!-- <div class="a_add_title" style="
  12305. display: flex;
  12306. flex-direction: row;
  12307. align-items: center;
  12308. justify-content: center;
  12309. ">
  12310. <div style="margin-right: 20px; font-size: 20px">{{lang.ssTitle}}:</div>
  12311. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12312. </div> -->
  12313. <div class="a_addBox">
  12314. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12315. {{lang.ssQuestionContent}}
  12316. </div>
  12317. <div
  12318. class="a_add_box"
  12319. v-for="(item1, index1) in testJson.testCount"
  12320. :key="index1"
  12321. >
  12322. <div class="a_add_head">
  12323. <div style="display: flex;">
  12324. <span class="askIndex">{{ index1 + 1 }}</span>
  12325. <div
  12326. v-if="testJson.testJson[index1].type == '1'"
  12327. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12328. >
  12329. ({{lang.ssSingleChoice}})
  12330. </div>
  12331. <div
  12332. v-if="testJson.testJson[index1].type == '2'"
  12333. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12334. >
  12335. ({{lang.ssMultiChoice}})
  12336. </div>
  12337. <div class="renderedFor">{{lang.ssQuestion}}:<span v-html="testJson.testJson[index1].teststitle"></span></div>
  12338. </div>
  12339. <img
  12340. v-if="testJson.testJson[index1].img"
  12341. :src="testJson.testJson[index1].img"
  12342. style="height: 300px; margin-top: 10px; max-width: 100%"
  12343. />
  12344. </div>
  12345. <div
  12346. class="timuImgBox"
  12347. v-if="
  12348. testJson.testJson[index1].timuList &&
  12349. testJson.testJson[index1].timuList.length
  12350. "
  12351. >
  12352. <div
  12353. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12354. :key="tIndex"
  12355. class="timuImg"
  12356. @click.stop="previewImg(timg.src)"
  12357. >
  12358. <img :src="timg.src" alt="" />
  12359. </div>
  12360. </div>
  12361. <div class="a_add_body">
  12362. <div class="a_add_input">
  12363. <el-radio-group
  12364. v-model="radio[index1]"
  12365. v-if="testJson.testJson[index1].type == '1'"
  12366. >
  12367. <div class="radioBox">
  12368. <el-radio
  12369. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12370. .checkList"
  12371. :key="checkIndex"
  12372. :label="checkIndex"
  12373. :disabled="isAnswer"
  12374. class="redioStyle"
  12375. >
  12376. <div
  12377. style="margin-right: 10px"
  12378. v-if="item2 && item2.imgType && item2.imgType == 1"
  12379. >
  12380. <div class="inImg" @click.stop="previewImg(item2.src)">
  12381. <img :src="item2.src" alt="" />
  12382. </div>
  12383. </div>
  12384. <span v-else v-html="item2"></span>
  12385. </el-radio>
  12386. </div>
  12387. </el-radio-group>
  12388. <el-checkbox-group
  12389. v-model="radio[index1]"
  12390. v-if="testJson.testJson[index1].type == '2'"
  12391. >
  12392. <div class="radioBox">
  12393. <el-checkbox
  12394. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12395. .checkList"
  12396. :key="checkIndex"
  12397. :label="checkIndex"
  12398. :disabled="isAnswer"
  12399. class="redioStyle"
  12400. >
  12401. <div
  12402. style="margin-right: 10px"
  12403. v-if="item2 && item2.imgType && item2.imgType == 1"
  12404. >
  12405. <div class="inImg" @click.stop="previewImg(item2.src)">
  12406. <img :src="item2.src" alt="" />
  12407. </div>
  12408. </div>
  12409. <span v-else v-html="item2"></span>
  12410. </el-checkbox>
  12411. </div>
  12412. </el-checkbox-group>
  12413. </div>
  12414. </div>
  12415. </div>
  12416. </div>
  12417. </div>
  12418. <span slot="footer" class="dialog-footer">
  12419. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12420. >{{lang.ssCancel}}</el-button
  12421. >
  12422. <el-button
  12423. type="primary"
  12424. @click="addStudentTest"
  12425. v-show="noteName == ''"
  12426. >{{lang.ssConfirm}}</el-button
  12427. >
  12428. </span>
  12429. </el-dialog>
  12430. <el-dialog
  12431. :title="noteName != '' ? noteName : lang.ssViewChoice"
  12432. :visible.sync="dialogVisibleChoiceTeacher"
  12433. :append-to-body="true"
  12434. width="1000px"
  12435. :before-close="handleClose"
  12436. class="dialog_diy dialog_diy3"
  12437. >
  12438. <div>
  12439. <div class="w_name">
  12440. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  12441. </div>
  12442. <div class="a_addBox">
  12443. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12444. {{lang.ssQuestionContent}}
  12445. </div>
  12446. <div
  12447. class="a_add_box"
  12448. v-for="(item1, index1) in testJson.testCount"
  12449. :key="index1"
  12450. >
  12451. <div class="a_add_head">
  12452. <div style="display: flex">
  12453. <span class="askIndex">{{ index1 + 1 }}</span>
  12454. <div
  12455. v-if="testJson.testJson[index1].type == '1'"
  12456. style="margin-right: 5px; min-width: 70px"
  12457. >
  12458. ({{lang.ssSingleChoice}})
  12459. </div>
  12460. <div
  12461. v-if="testJson.testJson[index1].type == '2'"
  12462. style="margin-right: 5px; min-width: 70px"
  12463. >
  12464. ({{lang.ssMultiChoice}})
  12465. </div>
  12466. <div>{{lang.ssQuestion}}:{{ testJson.testJson[index1].teststitle }}</div>
  12467. </div>
  12468. <img
  12469. v-if="testJson.testJson[index1].img"
  12470. :src="testJson.testJson[index1].img"
  12471. style="height: 300px; margin-top: 10px; max-width: 100%"
  12472. />
  12473. </div>
  12474. <div
  12475. class="timuImgBox"
  12476. v-if="
  12477. testJson.testJson[index1].timuList &&
  12478. testJson.testJson[index1].timuList.length
  12479. "
  12480. >
  12481. <div
  12482. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12483. :key="tIndex"
  12484. class="timuImg"
  12485. @click.stop="previewImg(timg.src)"
  12486. >
  12487. <img :src="timg.src" alt="" />
  12488. </div>
  12489. </div>
  12490. <div class="a_add_body">
  12491. <div class="a_add_input">
  12492. <el-radio-group
  12493. v-model="radio[index1]"
  12494. v-if="testJson.testJson[index1].type == '1'"
  12495. >
  12496. <div class="radioBox">
  12497. <el-radio
  12498. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12499. .checkList"
  12500. :key="checkIndex"
  12501. :label="checkIndex"
  12502. :disabled="isAnswer"
  12503. class="redioStyle"
  12504. >
  12505. <div
  12506. style="margin-right: 10px"
  12507. v-if="item2 && item2.imgType && item2.imgType == 1"
  12508. >
  12509. <div class="inImg" @click.stop="previewImg(item2.src)">
  12510. <img :src="item2.src" alt="" />
  12511. </div>
  12512. </div>
  12513. <span v-else v-html="item2"></span>
  12514. </el-radio>
  12515. </div>
  12516. </el-radio-group>
  12517. <el-checkbox-group
  12518. v-model="radio[index1]"
  12519. v-if="testJson.testJson[index1].type == '2'"
  12520. >
  12521. <div class="radioBox">
  12522. <el-checkbox
  12523. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12524. .checkList"
  12525. :key="checkIndex"
  12526. :label="checkIndex"
  12527. :disabled="isAnswer"
  12528. class="redioStyle"
  12529. >
  12530. <div
  12531. style="margin-right: 10px"
  12532. v-if="item2 && item2.imgType && item2.imgType == 1"
  12533. >
  12534. <div class="inImg" @click.stop="previewImg(item2.src)">
  12535. <img :src="item2.src" alt="" />
  12536. </div>
  12537. </div>
  12538. <span v-else v-html="item2"></span>
  12539. </el-checkbox>
  12540. </div>
  12541. </el-checkbox-group>
  12542. </div>
  12543. </div>
  12544. </div>
  12545. </div>
  12546. </div>
  12547. <span slot="footer" class="dialog-footer">
  12548. <el-button
  12549. @click="dialogVisibleChoiceTeacher = false"
  12550. v-show="noteName == ''"
  12551. >{{lang.ssCancel}}</el-button
  12552. >
  12553. <el-button
  12554. type="primary"
  12555. @click="addStudentTestTeacher"
  12556. v-show="noteName == ''"
  12557. >{{lang.ssConfirm}}</el-button
  12558. >
  12559. </span>
  12560. </el-dialog>
  12561. <el-dialog
  12562. :title="lang.ssViewRichText"
  12563. :visible.sync="dialogVisible1"
  12564. :append-to-body="true"
  12565. width="500px"
  12566. :before-close="handleClose"
  12567. class="dialog_diy textCss"
  12568. >
  12569. <el-form style="font-size: 20px">
  12570. <el-form-item :label="lang.ssTextTitle" class="textTitle">
  12571. <div style="font-size: 20px">{{ text.name }}</div>
  12572. </el-form-item>
  12573. <div>{{lang.ssRichTextContent}}</div>
  12574. <div
  12575. v-html="text.url"
  12576. style="font-size: 18px; padding: 40px 0 0 0"
  12577. ></div>
  12578. </el-form>
  12579. <span slot="footer" class="dialog-footer">
  12580. <el-button type="primary" @click="dialogVisible1 = false"
  12581. >{{lang.ssConfirm}}</el-button
  12582. >
  12583. </span>
  12584. </el-dialog>
  12585. <el-dialog
  12586. :title="lang.ssFilePreview"
  12587. :visible.sync="dialogVisible3"
  12588. width="50%"
  12589. :before-close="handleClose"
  12590. class="dialog_diy"
  12591. :class="{ fullStyle: full }"
  12592. >
  12593. <div slot="title" class="header-title">
  12594. <div style="color: #fff">{{lang.ssFilePreview}}</div>
  12595. <div style="position: absolute; top: 19px; right: 50px">
  12596. <img
  12597. src="../../assets/full.png"
  12598. style="height: 16px; cursor: pointer"
  12599. alt=""
  12600. @click="fullTools"
  12601. />
  12602. </div>
  12603. </div>
  12604. <pdf
  12605. v-if="showPDF"
  12606. :pdfUrl="pptImgUrl"
  12607. style="width: 100%; height: 520px; overflow: auto"
  12608. :class="{ fullStyle: full }"
  12609. ></pdf>
  12610. <iframe
  12611. v-else
  12612. :src="pptImgUrl"
  12613. frameborder="0"
  12614. width="100%"
  12615. height="600"
  12616. :class="{ fullStyle: full }"
  12617. ></iframe>
  12618. </el-dialog>
  12619. <el-dialog
  12620. :title="lang.ssFilePreview"
  12621. :visible.sync="dialogVisible6"
  12622. width="50%"
  12623. :before-close="handleClose"
  12624. class="dialog_diy"
  12625. >
  12626. <iframe
  12627. :src="pptImgUrl1"
  12628. frameborder="0"
  12629. width="100%"
  12630. height="600"
  12631. ></iframe>
  12632. </el-dialog>
  12633. <el-dialog
  12634. :title="lang.ssPrompt"
  12635. :visible.sync="dialogVisible4"
  12636. :append-to-body="true"
  12637. width="800px"
  12638. :before-close="handleClose"
  12639. class="dialog_diy notice"
  12640. >
  12641. <div>{{ lang.ssFeatureNotAvail }}</div>
  12642. <el-button type="primary" @click="dialogVisible4 = false">{{ lang.ssConfirm }}</el-button>
  12643. </el-dialog>
  12644. <el-dialog
  12645. :title="lang.ssQa"
  12646. :visible.sync="answerDialogVisible"
  12647. :append-to-body="true"
  12648. width="800px"
  12649. :before-close="handleClose"
  12650. class="dialog_diy"
  12651. >
  12652. <div>
  12653. <div
  12654. style="
  12655. display: flex;
  12656. flex-wrap: nowrap;
  12657. flex-direction: column;
  12658. position: relative;
  12659. "
  12660. >
  12661. <div class="queTop" style="padding: 20px 0 20px 0">
  12662. <div class="question">
  12663. <img src="../../assets/icon/question.png" alt />
  12664. </div>
  12665. <div class="queTitle">
  12666. <div style="min-width: 90px">{{ lang.ssQuestionTitleColon }}</div>
  12667. <div>{{ answerQ }}</div>
  12668. </div>
  12669. </div>
  12670. <div class="ediBottom">
  12671. <textarea
  12672. rows="6"
  12673. class="binfo_input"
  12674. cols
  12675. style="width: 95%; height: 120px"
  12676. v-model="questionAnswer"
  12677. ></textarea>
  12678. </div>
  12679. </div>
  12680. </div>
  12681. <div slot="footer">
  12682. <el-button @click="answerDialogVisible = false">{{ lang.ssCancel }}</el-button>
  12683. <el-button type="primary" @click="addQuestion">{{ lang.ssSubmit }}</el-button>
  12684. </div>
  12685. </el-dialog>
  12686. <el-dialog
  12687. :title="lang.ssQa"
  12688. :visible.sync="answerDialogVisibleTeacher"
  12689. :append-to-body="true"
  12690. width="800px"
  12691. :before-close="handleClose"
  12692. class="dialog_diy"
  12693. >
  12694. <div>
  12695. <div class="w_name">
  12696. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  12697. </div>
  12698. <div
  12699. style="
  12700. display: flex;
  12701. flex-wrap: nowrap;
  12702. flex-direction: column;
  12703. position: relative;
  12704. "
  12705. >
  12706. <div class="queTop" style="padding: 20px 0 20px 0">
  12707. <div class="question">
  12708. <img src="../../assets/icon/question.png" alt />
  12709. </div>
  12710. <div class="queTitle">
  12711. <div style="min-width: 90px">{{ lang.ssAsk }}</div>
  12712. <div>{{ answerQ }}</div>
  12713. </div>
  12714. </div>
  12715. <div class="ediBottom">
  12716. <textarea
  12717. rows="6"
  12718. class="binfo_input"
  12719. cols
  12720. style="width: 95%; height: 120px"
  12721. v-model="questionAnswer"
  12722. ></textarea>
  12723. </div>
  12724. </div>
  12725. </div>
  12726. <div slot="footer">
  12727. <el-button @click="answerDialogVisibleTeacher = false">{{ lang.ssCancel }}</el-button>
  12728. <el-button type="primary" @click="addQuestionTeacher">{{ lang.ssSubmit }}</el-button>
  12729. </div>
  12730. </el-dialog>
  12731. <el-dialog
  12732. :title="lang.ssCountdown"
  12733. :visible.sync="timeDialogVisible"
  12734. :append-to-body="true"
  12735. width="800px"
  12736. :before-close="handleClose"
  12737. class="dialog_diy"
  12738. >
  12739. <div>
  12740. <div style="margin-bottom: 20px; color: #999">
  12741. {{ lang.ssCountdownHint }}
  12742. </div>
  12743. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12744. </div>
  12745. <div slot="footer">
  12746. <el-button @click="timeDialogVisible = false">{{ lang.ssClose }}</el-button>
  12747. </div>
  12748. </el-dialog>
  12749. <el-dialog
  12750. :title="lang.ssPermissionSettings"
  12751. :visible.sync="juriVisible"
  12752. :append-to-body="true"
  12753. width="400px"
  12754. :before-close="handleClose"
  12755. class="dialog_diy"
  12756. >
  12757. <div>
  12758. <div class="open_box">
  12759. <div class="switch_box">
  12760. <span>{{ lang.ssAllowViewAllHomework }}</span>
  12761. <el-switch
  12762. v-model="sIsOpen"
  12763. active-text=""
  12764. class="switchCss"
  12765. @change="updateSLook"
  12766. ></el-switch>
  12767. </div>
  12768. <div
  12769. class="switch_box"
  12770. v-if="
  12771. (courseDetail.userid == userid ||
  12772. (courseDetail.course_teacher &&
  12773. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  12774. "
  12775. >
  12776. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12777. <span>{{ lang.ssProhibitViewStage }}</span>
  12778. <el-switch
  12779. v-model="IsLookOpen"
  12780. active-text=""
  12781. class="switchCss"
  12782. @change="updateLookOpen"
  12783. ></el-switch>
  12784. </div>
  12785. <div class="switch_box" v-if="(courseDetail.userid == userid ||
  12786. (courseDetail.course_teacher &&
  12787. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen">
  12788. <span>{{ lang.ssEnableFollowMode }}</span>
  12789. <el-switch
  12790. v-model="IsFollow"
  12791. active-text=""
  12792. class="switchCss"
  12793. @change="updateFollow"
  12794. ></el-switch>
  12795. </div>
  12796. <div class="switch_box" v-if="courseDetail.userid == userid">
  12797. <span>{{lang.ssAllowViewContent}}</span>
  12798. <el-switch
  12799. v-model="IsStulook"
  12800. active-text=""
  12801. class="switchCss"
  12802. @change="updateIsStulook"
  12803. ></el-switch>
  12804. </div>
  12805. </div>
  12806. </div>
  12807. <div slot="footer">
  12808. <el-button
  12809. style="background: #409efe; color: #fff"
  12810. @click="juriVisible = false"
  12811. >{{lang.ssCloseBtn}}</el-button
  12812. >
  12813. </div>
  12814. </el-dialog>
  12815. <el-dialog
  12816. :title="lang.ssViewVideo"
  12817. :visible.sync="videoVisible"
  12818. :append-to-body="true"
  12819. width="1000px"
  12820. :before-close="handleClose"
  12821. class="dialog_diy1"
  12822. >
  12823. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12824. <video-player
  12825. class="video-player vjs-custom-skin"
  12826. :playsinline="true"
  12827. :options="videoDetail"
  12828. @play="onPlayerPlay($event)"
  12829. style="width: 100%; height: 100%"
  12830. ></video-player>
  12831. </div>
  12832. <div slot="footer">
  12833. <el-button
  12834. style="background: #409efe; color: #fff"
  12835. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12836. >
  12837. {{lang.ssCloseBtn}}</el-button
  12838. >
  12839. </div>
  12840. </el-dialog>
  12841. <el-dialog
  12842. :title="lang.ssViewDetails"
  12843. :visible.sync="commentDialogVisible"
  12844. :append-to-body="true"
  12845. width="800px"
  12846. :before-close="handleClose"
  12847. class="dialog_diy"
  12848. >
  12849. <div class="commentTop">
  12850. <div class="studentDetail">
  12851. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12852. <div class="nameAndTime">
  12853. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12854. <div>{{ commentDetail.time }}</div>
  12855. </div>
  12856. <div
  12857. class="returnBtn"
  12858. style="margin-left: auto; width: 80px"
  12859. v-if="
  12860. commentDetail.works &&
  12861. commentDetail.type == 0 &&
  12862. (tType == 1 || tType == 4)
  12863. "
  12864. @click="
  12865. showPicturePaint(
  12866. commentDetail.img ? commentDetail.img : commentDetail.works
  12867. )
  12868. "
  12869. >
  12870. {{lang.ssTeacherAnnotation}}
  12871. </div>
  12872. </div>
  12873. <div
  12874. class="worksAnswer"
  12875. v-if="commentDetail.works && commentDetail.type == 2"
  12876. >
  12877. {{ JSON.parse(commentDetail.works)[0].answer }}
  12878. </div>
  12879. <div
  12880. class="worksAnswer"
  12881. v-if="commentDetail.works && commentDetail.type == 1"
  12882. >
  12883. <img
  12884. src="../../assets/teacherWork.png"
  12885. v-if="commentDetail.ateacher"
  12886. class="w_teachert"
  12887. />
  12888. <pdf
  12889. v-if="showPDF"
  12890. :pdfUrl="pptImgUrl"
  12891. style="width: 100%; height: 520px; overflow: auto"
  12892. :class="{ fullStyle: full }"
  12893. ></pdf>
  12894. <iframe
  12895. v-else
  12896. :src="pptImgUrl"
  12897. frameborder="0"
  12898. width="100%"
  12899. height="600"
  12900. :class="{ fullStyle: full }"
  12901. ></iframe>
  12902. </div>
  12903. <div
  12904. class="worksAnswer"
  12905. v-if="commentDetail.works && commentDetail.type == 0"
  12906. >
  12907. <img
  12908. src="../../assets/teacherWork.png"
  12909. v-if="commentDetail.ateacher"
  12910. class="w_teachert"
  12911. style="right: 105px"
  12912. />
  12913. <img
  12914. :src="commentDetail.works"
  12915. alt=""
  12916. @click="previewImg(commentDetail.works)"
  12917. />
  12918. </div>
  12919. <div
  12920. class="worksAnswer"
  12921. v-if="commentDetail.works && commentDetail.type == 3"
  12922. >
  12923. <img
  12924. src="../../assets/teacherWork.png"
  12925. v-if="commentDetail.ateacher"
  12926. class="w_teachert"
  12927. />
  12928. <video-player
  12929. class="video-player vjs-custom-skin"
  12930. :playsinline="true"
  12931. :options="videoDetail"
  12932. @play="onPlayerPlay($event)"
  12933. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  12934. ></video-player>
  12935. </div>
  12936. <div
  12937. class="worksAnswer"
  12938. v-if="commentDetail.works && commentDetail.type == 10"
  12939. >
  12940. <div class="cont" v-html="commentDetail.works.text"></div>
  12941. </div>
  12942. <div v-if="commentDetail.works && commentDetail.type == 12">
  12943. <!-- class="worksAnswer codeFileBox" -->
  12944. <!-- @click="downloadFile(commentDetail.works)" -->
  12945. <!-- <img src="../../assets/icon/codeFile.png" />
  12946. <div>{{lang.ssClickDownloadFile}}</div> -->
  12947. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  12948. </div>
  12949. <div
  12950. class="worksAnswer codeFileBox"
  12951. v-if="commentDetail.works && commentDetail.type == 15"
  12952. @click="
  12953. openCocoPi(
  12954. 57,
  12955. commentIndexJson.toolIndex,
  12956. commentDetail.userid,
  12957. commentDetail.sName
  12958. )
  12959. "
  12960. >
  12961. <img src="../../assets/icon/codeFile.png" />
  12962. <div>{{lang.ssClickOpenCocoPi}}</div>
  12963. </div>
  12964. <div
  12965. class="worksAnswer"
  12966. v-if="commentDetail.works && commentDetail.type == 13"
  12967. >
  12968. <div v-html="JSON.parse(commentDetail.works).text"></div>
  12969. </div>
  12970. <div
  12971. class="worksAnswer"
  12972. v-if="commentDetail.works && commentDetail.type == 4"
  12973. >
  12974. <div class="evalCss">
  12975. <div class="nav">{{lang.ssSelectStarsForRating}}</div>
  12976. <div class="middleBox" v-if="eScore.eStar">
  12977. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  12978. <div class="nameAndrate">
  12979. <div>{{ e.value }}</div>
  12980. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  12981. </div>
  12982. <div v-if="e.detail">{{ e.detail }}</div>
  12983. </div>
  12984. <div class="bz">
  12985. <textarea
  12986. disabled
  12987. rows="4"
  12988. class="pj"
  12989. style="
  12990. padding: 10px 5px;
  12991. width: 70%;
  12992. background: #f7f6f9;
  12993. font-size: 14px;
  12994. text-indent: 10px;
  12995. color: #000;
  12996. "
  12997. cols
  12998. v-model="eScore.eBzText"
  12999. :placeholder="lang.ssEnterEvalContent"
  13000. ></textarea>
  13001. </div>
  13002. </div>
  13003. </div>
  13004. </div>
  13005. <div class="comment">
  13006. <div class="commentList">
  13007. <div class="commentImg">
  13008. <img
  13009. @click="
  13010. isLikes(
  13011. commentDetail.wid,
  13012. userid,
  13013. 1,
  13014. null,
  13015. commentDetail.isLikes,
  13016. commentDetail.sName
  13017. )
  13018. "
  13019. :src="commentDetail.isLikes == true ? likes : noLikes"
  13020. alt=""
  13021. />
  13022. </div>
  13023. <div>{{ commentDetail.likesCount }}</div>
  13024. </div>
  13025. <div class="commentList">
  13026. <div class="commentImg">
  13027. <img src="../../assets/icon/comment/comment.png" alt="" />
  13028. </div>
  13029. <div>{{ commentDetail.commentCount }}</div>
  13030. </div>
  13031. </div>
  13032. <div class="drawPBox" v-if="commentDetail.img">
  13033. <span>{{lang.ssTeacherAnnotation}}</span>
  13034. <img
  13035. :src="commentDetail.img"
  13036. alt=""
  13037. @click="previewImg(commentDetail.img)"
  13038. />
  13039. <span
  13040. class="deleteImg"
  13041. v-if="tType == 1 || tType == 4"
  13042. @click.stop="deletePicturePaint(commentDetail.wid)"
  13043. style="
  13044. font-size: 14px;
  13045. width: auto !important;
  13046. color: #b4b4b4;
  13047. top: unset;
  13048. bottom: 0;
  13049. border: none;
  13050. padding: 0;
  13051. height: auto !important;
  13052. margin: 0;
  13053. "
  13054. >{{lang.ssDelete}}</span
  13055. >
  13056. </div>
  13057. </div>
  13058. <div class="commentBox">
  13059. <div class="pl">{{lang.ssCommentColon}}</div>
  13060. <div style="max-height: 200px; overflow: auto">
  13061. <div
  13062. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13063. style="padding: 10px 0 0 0"
  13064. >
  13065. <div
  13066. class="studentDetail"
  13067. style="padding-top: 10px"
  13068. v-for="(co, coIndex) in commentDetail.commentJson"
  13069. :key="coIndex"
  13070. >
  13071. <div class="tx" style="min-width: 50px">
  13072. <img src="../../assets/avatar.png" alt="" />
  13073. </div>
  13074. <div class="plPerson">
  13075. <div class="plName">
  13076. <div>{{ co.commentPeople }}</div>
  13077. <div style="margin-left: 5px">
  13078. {{ co.commentTime }}
  13079. </div>
  13080. <div
  13081. class="deleteComment"
  13082. v-if="userid == co.userid"
  13083. @click="deleteComment(co.wid)"
  13084. >
  13085. {{lang.ssDelete}}
  13086. </div>
  13087. </div>
  13088. <div class="plContent">{{ co.commentText }}</div>
  13089. </div>
  13090. </div>
  13091. </div>
  13092. <div v-else style="padding: 10px 0 0 0">{{lang.ssNoComments}}</div>
  13093. </div>
  13094. </div>
  13095. <div style="margin-top: 10px">
  13096. <div class="displayBox">
  13097. <div
  13098. style="
  13099. color: #556db4;
  13100. font-size: 14px;
  13101. font-weight: bold;
  13102. padding-bottom: 10px;
  13103. "
  13104. >
  13105. {{lang.ssEvaluation}}
  13106. </div>
  13107. <div class="easy_comment" v-if="false">
  13108. <div
  13109. v-for="(p, pIndex) in PlTextList"
  13110. :key="pIndex"
  13111. @click="fastText(p, 1)"
  13112. >
  13113. {{ p }}
  13114. </div>
  13115. </div>
  13116. </div>
  13117. <div>
  13118. <textarea
  13119. rows="3"
  13120. class="pj"
  13121. style="padding: 10px 5px"
  13122. cols
  13123. v-model="commentText"
  13124. :placeholder="lang.ssEnterComment"
  13125. ></textarea>
  13126. </div>
  13127. </div>
  13128. <div slot="footer">
  13129. <el-button
  13130. @click="
  13131. (commentDialogVisible = false),
  13132. (commentIndexJson = {}),
  13133. videoDetail.sources && videoDetail.sources[0]
  13134. ? (videoDetail.sources[0].src = '')
  13135. : ''
  13136. "
  13137. >{{lang.ssCancel}}</el-button
  13138. >
  13139. <el-button
  13140. type="primary"
  13141. @click="addComment(commentDetail.wid, userid, 2, commentDetail)"
  13142. >{{lang.ssConfirm}}</el-button
  13143. >
  13144. </div>
  13145. </el-dialog>
  13146. <el-dialog
  13147. :visible.sync="fullDialogVisible"
  13148. :append-to-body="true"
  13149. width="100%"
  13150. :before-close="handleClose"
  13151. :show-close="false"
  13152. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13153. >
  13154. <div slot="title" class="header-title">
  13155. <div v-if="fulltype == 4" style="color: #fff">{{lang.ssAIApplication}}</div>
  13156. <div v-else style="color: #fff">{{lang.ssViewDoc}}</div>
  13157. <div
  13158. @click="
  13159. () => {
  13160. (fullDialogVisible = false),
  13161. changeSplitScreenBehavior({ code: 99 });
  13162. }
  13163. "
  13164. style="
  13165. cursor: pointer;
  13166. position: absolute;
  13167. top: 20px;
  13168. right: 20px;
  13169. color: #fff;
  13170. "
  13171. >
  13172. {{lang.ssExitFullscreen}}
  13173. </div>
  13174. </div>
  13175. <div style="height: 100%;position: relative;">
  13176. <el-button
  13177. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13178. size="medium"
  13179. type="primary"
  13180. @click="
  13181. () => {
  13182. (fullDialogVisible = false),
  13183. changeSplitScreenBehavior({ code: 99 });
  13184. }
  13185. "
  13186. style="
  13187. cursor: pointer;
  13188. position: absolute;
  13189. top: 10px;
  13190. right: 20px;
  13191. color: #fff;
  13192. "
  13193. >
  13194. {{lang.ssExitFullscreen}}
  13195. </el-button>
  13196. <div
  13197. class="wheel"
  13198. v-if="fulltype == 1"
  13199. style="
  13200. box-shadow: 0 0 6px 1px #f2f2f2;
  13201. height:100%;
  13202. width: 100%;
  13203. background: #f1f1f1;
  13204. "
  13205. >
  13206. <div class="title" style="width: 100%; box-sizing: border-box">
  13207. {{lang.ssViewDoc}}
  13208. </div>
  13209. <el-form class="textBox" style="height: 90%">
  13210. <el-form-item class="textTitle">
  13211. <div style="font-size: 22px">
  13212. {{ fullUrl.name }}
  13213. </div>
  13214. </el-form-item>
  13215. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13216. <div
  13217. v-html="fullUrl.url"
  13218. class="textContent"
  13219. style="height: auto"
  13220. ></div>
  13221. </el-form>
  13222. </div>
  13223. <div
  13224. class="wheel"
  13225. v-else-if="
  13226. (fulltype == 2 || fulltype == 4) &&
  13227. fullUrl.indexOf(
  13228. 'https://view.officeapps.live.com/op/view.aspx?src='
  13229. ) != -1
  13230. "
  13231. style="width: 100%;height:100%; margin: 0 auto"
  13232. >
  13233. <iframe
  13234. style="width: 100%; height: 100%; border: none"
  13235. :src="fullUrl"
  13236. ></iframe>
  13237. </div>
  13238. <iframe
  13239. style="width: 100%; height: 100%; border: none"
  13240. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13241. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo')!=-1)"
  13242. :src="fullUrl"
  13243. ></iframe>
  13244. <iframe
  13245. style="width: 100%; height: 100%; border: none"
  13246. security="restricted"
  13247. v-else-if="(fulltype == 2 || fulltype == 4)"
  13248. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13249. :src="fullUrl"
  13250. ></iframe>
  13251. <pdf
  13252. v-else-if="fulltype == 3"
  13253. :pdfUrl="fullUrl"
  13254. style="width: 100%; height: 100%; overflow: auto"
  13255. ></pdf>
  13256. <iframe
  13257. style="width: 100%; height: 100%; border: none"
  13258. security="restricted"
  13259. v-if="(fulltype == 16) && (fullUrl.indexOf('cocorobo')!=-1)"
  13260. :src="fullUrl"
  13261. ></iframe>
  13262. <iframe
  13263. style="width: 100%; height: 100%; border: none"
  13264. security="restricted"
  13265. v-else
  13266. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13267. :src="fullUrl"
  13268. ></iframe>
  13269. </div>
  13270. <!-- <div slot="footer">
  13271. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13272. </div> -->
  13273. </el-dialog>
  13274. <el-dialog
  13275. :title="lang.ssPersonalEval"
  13276. :visible.sync="studentEvalDialogVisible"
  13277. :append-to-body="true"
  13278. width="800px"
  13279. :before-close="handleClose"
  13280. class="dialog_diy"
  13281. >
  13282. <div class="evalCss">
  13283. <div class="nav">{{lang.ssSelectStarsForRating}}</div>
  13284. <div class="middleBox" v-if="eScore.eStar">
  13285. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13286. <div class="nameAndrate">
  13287. <div>{{ e.value }}</div>
  13288. <el-rate
  13289. v-model="eScore.eStar[eIndex]"
  13290. :disabled="isStar"
  13291. ></el-rate>
  13292. </div>
  13293. <div v-if="e.detail">{{ e.detail }}</div>
  13294. </div>
  13295. <div class="easy_comment" v-if="false">
  13296. <div
  13297. v-for="(p, pIndex) in PlTextList"
  13298. :key="pIndex"
  13299. @click="fastText(p, 2)"
  13300. >
  13301. {{ p }}
  13302. </div>
  13303. </div>
  13304. <div class="bz">
  13305. <textarea
  13306. :disabled="isStar"
  13307. rows="4"
  13308. class="pj"
  13309. style="
  13310. padding: 10px 5px;
  13311. width: 70%;
  13312. background: #f7f6f9;
  13313. font-size: 14px;
  13314. text-indent: 10px;
  13315. "
  13316. cols
  13317. v-model="eScore.eBzText"
  13318. :placeholder="lang.ssEnterEvalContent"
  13319. ></textarea>
  13320. </div>
  13321. </div>
  13322. </div>
  13323. <div slot="footer">
  13324. <el-button @click="studentEvalDialogVisible = false">{{lang.ssCancel}}</el-button>
  13325. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13326. >{{lang.ssConfirm}}</el-button
  13327. >
  13328. </div>
  13329. </el-dialog>
  13330. <el-dialog
  13331. :title="lang.ssPersonalEval"
  13332. :visible.sync="studentEvalDialogVisibleTeacher"
  13333. :append-to-body="true"
  13334. width="800px"
  13335. :before-close="handleClose"
  13336. class="dialog_diy"
  13337. >
  13338. <div class="w_name">
  13339. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  13340. </div>
  13341. <div class="evalCss">
  13342. <div class="nav">{{lang.ssSelectStarsForRating}}</div>
  13343. <div class="middleBox" v-if="eScore.eStar">
  13344. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13345. <div class="nameAndrate">
  13346. <div>{{ e.value }}</div>
  13347. <el-rate
  13348. v-model="eScore.eStar[eIndex]"
  13349. :disabled="isStar"
  13350. ></el-rate>
  13351. </div>
  13352. <div v-if="e.detail">{{ e.detail }}</div>
  13353. </div>
  13354. <div class="easy_comment" v-if="false">
  13355. <div
  13356. v-for="(p, pIndex) in PlTextList"
  13357. :key="pIndex"
  13358. @click="fastText(p, 2)"
  13359. >
  13360. {{ p }}
  13361. </div>
  13362. </div>
  13363. <div class="bz">
  13364. <textarea
  13365. :disabled="isStar"
  13366. rows="4"
  13367. class="pj"
  13368. style="
  13369. padding: 10px 5px;
  13370. width: 70%;
  13371. background: #f7f6f9;
  13372. font-size: 14px;
  13373. text-indent: 10px;
  13374. "
  13375. cols
  13376. v-model="eScore.eBzText"
  13377. :placeholder="lang.ssEnterEvalContent"
  13378. ></textarea>
  13379. </div>
  13380. </div>
  13381. </div>
  13382. <div slot="footer">
  13383. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13384. >{{lang.ssCancel}}</el-button
  13385. >
  13386. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13387. >{{lang.ssConfirm}}</el-button
  13388. >
  13389. </div>
  13390. </el-dialog>
  13391. <el-dialog
  13392. :title="lang.ssMatch"
  13393. :visible.sync="dialogVisibleSelect"
  13394. :append-to-body="true"
  13395. width="90%"
  13396. :before-close="handleClose"
  13397. class="dialog_diy dialog_diy3"
  13398. >
  13399. <div v-if="selectJson">
  13400. <div class="select_box2">
  13401. <div class="select_box2_title">
  13402. <div>{{lang.ssMatch}}</div>
  13403. <div>{{lang.ssSelectCorrespondingAnswer}}</div>
  13404. </div>
  13405. <div class="select_box2_box">
  13406. <div class="select_box2_img">
  13407. <img
  13408. :src="selectJson.url"
  13409. @click="previewImg(selectJson.url)"
  13410. alt=""
  13411. />
  13412. </div>
  13413. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13414. <div style="padding-top: 15px">
  13415. <div class="select_answer_title" v-if="isSelect">
  13416. {{ selectAnswer.stu }}
  13417. </div>
  13418. <div class="select_answer_title" v-else>
  13419. {{lang.ssSelectAnswerByQuestion}}
  13420. </div>
  13421. <div
  13422. class="select_box2_answer_box"
  13423. v-for="(item2, checkIndex) in selectJson.select"
  13424. :key="checkIndex"
  13425. >
  13426. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13427. <el-select
  13428. :disabled="isSelect"
  13429. v-model="selectAnswer.answer[checkIndex]"
  13430. :placeholder="lang.ssSelectCorrectAnswer"
  13431. >
  13432. <el-option
  13433. v-for="(e, eIndex) in selectJson.select"
  13434. :key="eIndex"
  13435. :label="e"
  13436. :value="eIndex"
  13437. >
  13438. </el-option>
  13439. </el-select>
  13440. </div>
  13441. </div>
  13442. <div
  13443. class="rightAnswerCss"
  13444. v-if="isSelect && (tType == 1 || tType == 4)"
  13445. >
  13446. <div
  13447. v-for="(a, aIndex) in selectJson.answer"
  13448. :key="aIndex"
  13449. class="rightAnswer"
  13450. >
  13451. <div
  13452. v-if="selectAnswer.answer[aIndex] === a"
  13453. style="color: #767de1"
  13454. >
  13455. {{lang.ssAnswerCorrect}}
  13456. </div>
  13457. <div v-else>{{lang.ssAnswerWrong}}</div>
  13458. <div
  13459. style="margin-left: 10px"
  13460. v-if="selectAnswer.answer[aIndex] !== a"
  13461. >
  13462. {{lang.ssCorrectAnswer}}
  13463. </div>
  13464. <div
  13465. :class="
  13466. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13467. "
  13468. >
  13469. {{ selectJson.select[a] }}
  13470. </div>
  13471. </div>
  13472. </div>
  13473. </div>
  13474. <div class="upAnswerCss">
  13475. <el-button
  13476. type="primary"
  13477. @click="addSelectAnswer"
  13478. v-if="!isSelect"
  13479. >{{lang.ssSubmitAnswer}}</el-button
  13480. >
  13481. </div>
  13482. </div>
  13483. </div>
  13484. </div>
  13485. </el-dialog>
  13486. <el-dialog
  13487. :title="lang.ssMatch"
  13488. :visible.sync="dialogVisibleSelectTeacher"
  13489. :append-to-body="true"
  13490. width="90%"
  13491. :before-close="handleClose"
  13492. class="dialog_diy dialog_diy3"
  13493. >
  13494. <div v-if="selectJson">
  13495. <div class="w_name">
  13496. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  13497. </div>
  13498. <div class="select_box2">
  13499. <div class="select_box2_title">
  13500. <div>{{lang.ssMatch}}</div>
  13501. <div>{{lang.ssSelectCorrespondingAnswer}}</div>
  13502. </div>
  13503. <div class="select_box2_box">
  13504. <div class="select_box2_img">
  13505. <img
  13506. :src="selectJson.url"
  13507. @click="previewImg(selectJson.url)"
  13508. alt=""
  13509. />
  13510. </div>
  13511. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13512. <div style="padding-top: 15px">
  13513. <div class="select_answer_title" v-if="isSelect">
  13514. {{ selectAnswer.stu }}
  13515. </div>
  13516. <div class="select_answer_title" v-else>
  13517. {{lang.ssSelectAnswerByQuestion}}
  13518. </div>
  13519. <div
  13520. class="select_box2_answer_box"
  13521. v-for="(item2, checkIndex) in selectJson.select"
  13522. :key="checkIndex"
  13523. >
  13524. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13525. <el-select
  13526. :disabled="isSelect"
  13527. v-model="selectAnswer.answer[checkIndex]"
  13528. :placeholder="lang.ssSelectCorrectAnswer"
  13529. >
  13530. <el-option
  13531. v-for="(e, eIndex) in selectJson.select"
  13532. :key="eIndex"
  13533. :label="e"
  13534. :value="eIndex"
  13535. >
  13536. </el-option>
  13537. </el-select>
  13538. </div>
  13539. </div>
  13540. <div
  13541. class="rightAnswerCss"
  13542. v-if="isSelect && (tType == 1 || tType == 4)"
  13543. >
  13544. <div
  13545. v-for="(a, aIndex) in selectJson.answer"
  13546. :key="aIndex"
  13547. class="rightAnswer"
  13548. >
  13549. <div
  13550. v-if="selectAnswer.answer[aIndex] === a"
  13551. style="color: #767de1"
  13552. >
  13553. {{lang.ssAnswerCorrect}}
  13554. </div>
  13555. <div v-else>{{lang.ssAnswerWrong}}</div>
  13556. <div
  13557. style="margin-left: 10px"
  13558. v-if="selectAnswer.answer[aIndex] !== a"
  13559. >
  13560. {{lang.ssCorrectAnswer}}
  13561. </div>
  13562. <div
  13563. :class="
  13564. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13565. "
  13566. >
  13567. {{ selectJson.select[a] }}
  13568. </div>
  13569. </div>
  13570. </div>
  13571. </div>
  13572. <div class="upAnswerCss">
  13573. <el-button
  13574. type="primary"
  13575. @click="addSelectAnswerTeacher"
  13576. v-if="!isSelect"
  13577. >{{lang.ssSubmitAnswer}}</el-button
  13578. >
  13579. </div>
  13580. </div>
  13581. </div>
  13582. </div>
  13583. </el-dialog>
  13584. <el-dialog
  13585. :title="lang.ssTeacherScoring"
  13586. :visible.sync="dialogVisibleScore"
  13587. :append-to-body="true"
  13588. width="800px"
  13589. :before-close="handleClose"
  13590. class="dialog_diy"
  13591. >
  13592. <div>
  13593. <div class="studentDetail">
  13594. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13595. <div class="nameAndTime">
  13596. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13597. <div>{{ commentDetail.time }}</div>
  13598. </div>
  13599. </div>
  13600. <div
  13601. class="worksAnswer"
  13602. v-if="commentDetail.works && commentDetail.type == 2"
  13603. >
  13604. {{ JSON.parse(commentDetail.works)[0].answer }}
  13605. </div>
  13606. <div
  13607. class="worksAnswer"
  13608. v-if="commentDetail.works && commentDetail.type == 1"
  13609. >
  13610. <pdf
  13611. v-if="showPDF"
  13612. :pdfUrl="pptImgUrl"
  13613. style="width: 100%; height: 520px; overflow: auto"
  13614. :class="{ fullStyle: full }"
  13615. ></pdf>
  13616. <iframe
  13617. v-else
  13618. :src="pptImgUrl"
  13619. frameborder="0"
  13620. width="100%"
  13621. height="600"
  13622. :class="{ fullStyle: full }"
  13623. ></iframe>
  13624. </div>
  13625. <div
  13626. class="worksAnswer"
  13627. v-if="commentDetail.works && commentDetail.type == 0"
  13628. >
  13629. <img
  13630. :src="commentDetail.works"
  13631. alt=""
  13632. @click="previewImg(commentDetail.works)"
  13633. />
  13634. </div>
  13635. <div
  13636. class="worksAnswer"
  13637. v-if="commentDetail.works && commentDetail.type == 3"
  13638. >
  13639. <video-player
  13640. class="video-player vjs-custom-skin"
  13641. :playsinline="true"
  13642. :options="videoDetail"
  13643. @play="onPlayerPlay($event)"
  13644. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13645. ></video-player>
  13646. </div>
  13647. <div
  13648. class="worksAnswer codeFileBox"
  13649. v-if="commentDetail.works && commentDetail.type == 12"
  13650. @click="downloadFile(commentDetail.works,w.userid)"
  13651. >
  13652. <img src="../../assets/icon/codeFile.png" />
  13653. <div>{{lang.ssClickDownloadFile}}</div>
  13654. </div>
  13655. <div
  13656. class="worksAnswer codeFileBox"
  13657. v-if="commentDetail.works && commentDetail.type == 15"
  13658. @click="
  13659. openCocoPi(
  13660. 57,
  13661. commentIndexJson.toolIndex,
  13662. commentDetail.userid,
  13663. commentDetail.sName
  13664. )
  13665. "
  13666. >
  13667. <img src="../../assets/icon/codeFile.png" />
  13668. <div>{{lang.ssClickOpenCocoPi}}</div>
  13669. </div>
  13670. <div
  13671. class="worksAnswer"
  13672. v-if="commentDetail.works && commentDetail.type == 13"
  13673. >
  13674. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13675. </div>
  13676. <div class="scoreBox">
  13677. <span class="t">{{lang.ssEnterScore}}</span>
  13678. <el-input-number
  13679. :disabled="courseDetail.userid != userid"
  13680. v-model="wScore"
  13681. :controls="false"
  13682. :min="0"
  13683. :max="100"
  13684. ></el-input-number>
  13685. </div>
  13686. <div class="scoreDetailBox">
  13687. <span class="t">{{lang.ssScoringComment}}</span>
  13688. <el-input
  13689. type="textarea"
  13690. :rows="5"
  13691. :disabled="courseDetail.userid != userid"
  13692. resize="none"
  13693. v-model="scoreDetail"
  13694. :placeholder="lang.ssEnterStudentEvaluation"
  13695. >
  13696. </el-input>
  13697. </div>
  13698. </div>
  13699. <span slot="footer" class="dialog-footer">
  13700. <el-button
  13701. @click="
  13702. (dialogVisibleScore = false),
  13703. (commentIndexJson = {}),
  13704. videoDetail.sources && videoDetail.sources[0]
  13705. ? (videoDetail.sources[0].src = '')
  13706. : ''
  13707. "
  13708. >{{lang.ssCancel}}</el-button
  13709. >
  13710. <el-button
  13711. type="primary"
  13712. v-if="courseDetail.userid == userid"
  13713. @click="scoreWork(commentDetail.wid, commentDetail.sName)"
  13714. >{{lang.ssConfirm}}
  13715. </el-button>
  13716. </span>
  13717. </el-dialog>
  13718. <el-dialog
  13719. :title="lang.ssSort"
  13720. :visible.sync="dialogVisibleSentence"
  13721. :append-to-body="true"
  13722. width="1000px"
  13723. :before-close="handleClose"
  13724. class="dialog_diy dialog_diy3"
  13725. >
  13726. <div>
  13727. <div class="sentenBox">
  13728. <div
  13729. v-for="(st, stIndex) in sentenceList"
  13730. :key="stIndex"
  13731. style="padding-bottom: 20px"
  13732. >
  13733. <div
  13734. style="padding: 15px 0 10px 20px"
  13735. class="sentenceTitle"
  13736. :index="stIndex + 1"
  13737. >
  13738. {{lang.ssQuestion}}{{ stIndex + 1 }}:{{lang.ssSelectCorrectOrder}}
  13739. </div>
  13740. <div class="cardList" v-if="st.chooseSenList">
  13741. <div class="cardBox">
  13742. <div
  13743. v-for="(r, rIndex) in st.chooseSenList"
  13744. :key="rIndex"
  13745. @click="returnCard(r, stIndex, rIndex)"
  13746. >
  13747. <el-tooltip
  13748. class="item"
  13749. effect="light"
  13750. :content="r"
  13751. placement="top"
  13752. v-if="r != '' && r != undefined"
  13753. >
  13754. <div
  13755. :class="{
  13756. isCard: r,
  13757. isChooseCard: r == '' || r == undefined
  13758. }"
  13759. >
  13760. <div>{{ r }}</div>
  13761. </div>
  13762. </el-tooltip>
  13763. <div
  13764. :class="{
  13765. isCard: r,
  13766. isChooseCard: r == '' || r == undefined
  13767. }"
  13768. v-else
  13769. >
  13770. <div>{{ r }}</div>
  13771. </div>
  13772. </div>
  13773. </div>
  13774. </div>
  13775. <div class="cardList" v-if="st.addChangeSen">
  13776. <div class="cardBox">
  13777. <div
  13778. v-for="(s, sIndex) in st.addChangeSen"
  13779. :key="sIndex"
  13780. @click="setRightAnswer(s, stIndex, sIndex)"
  13781. >
  13782. <el-tooltip
  13783. class="item"
  13784. effect="light"
  13785. :content="s"
  13786. placement="top"
  13787. v-if="s != '' && s != undefined"
  13788. >
  13789. <div
  13790. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13791. >
  13792. <div>{{ s }}</div>
  13793. </div>
  13794. </el-tooltip>
  13795. <div
  13796. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13797. v-else
  13798. >
  13799. <div>{{ s }}</div>
  13800. </div>
  13801. </div>
  13802. </div>
  13803. </div>
  13804. </div>
  13805. </div>
  13806. </div>
  13807. <span slot="footer" class="dialog-footer">
  13808. <el-button @click="dialogVisibleSentence = false">{{lang.ssCancel}}</el-button>
  13809. <el-button type="primary" @click="addSenWorks">{{lang.ssConfirm}}</el-button>
  13810. </span>
  13811. </el-dialog>
  13812. <el-dialog
  13813. :title="lang.ssSort"
  13814. :visible.sync="dialogVisibleSentenceTeacher"
  13815. :append-to-body="true"
  13816. width="1000px"
  13817. :before-close="handleClose"
  13818. class="dialog_diy dialog_diy3"
  13819. >
  13820. <div>
  13821. <div class="w_name">
  13822. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  13823. </div>
  13824. <div class="sentenBox">
  13825. <div
  13826. v-for="(st, stIndex) in sentenceList"
  13827. :key="stIndex"
  13828. style="padding-bottom: 20px"
  13829. >
  13830. <div
  13831. style="padding: 15px 0 10px 20px"
  13832. class="sentenceTitle"
  13833. :index="stIndex + 1"
  13834. >
  13835. {{lang.ssQuestion}}{{ stIndex + 1 }}:{{lang.ssSelectCorrectOrder}}
  13836. </div>
  13837. <div class="cardList" v-if="st.chooseSenList">
  13838. <div class="cardBox">
  13839. <div
  13840. v-for="(r, rIndex) in st.chooseSenList"
  13841. :key="rIndex"
  13842. @click="returnCard(r, stIndex, rIndex)"
  13843. >
  13844. <el-tooltip
  13845. class="item"
  13846. effect="light"
  13847. :content="r"
  13848. placement="top"
  13849. v-if="r != '' && r != undefined"
  13850. >
  13851. <div
  13852. :class="{
  13853. isCard: r,
  13854. isChooseCard: r == '' || r == undefined
  13855. }"
  13856. >
  13857. <div>{{ r }}</div>
  13858. </div>
  13859. </el-tooltip>
  13860. <div
  13861. :class="{
  13862. isCard: r,
  13863. isChooseCard: r == '' || r == undefined
  13864. }"
  13865. v-else
  13866. >
  13867. <div>{{ r }}</div>
  13868. </div>
  13869. </div>
  13870. </div>
  13871. </div>
  13872. <div class="cardList" v-if="st.addChangeSen">
  13873. <div class="cardBox">
  13874. <div
  13875. v-for="(s, sIndex) in st.addChangeSen"
  13876. :key="sIndex"
  13877. @click="setRightAnswer(s, stIndex, sIndex)"
  13878. >
  13879. <el-tooltip
  13880. class="item"
  13881. effect="light"
  13882. :content="s"
  13883. placement="top"
  13884. v-if="s != '' && s != undefined"
  13885. >
  13886. <div
  13887. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13888. >
  13889. <div>{{ s }}</div>
  13890. </div>
  13891. </el-tooltip>
  13892. <div
  13893. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13894. v-else
  13895. >
  13896. <div>{{ s }}</div>
  13897. </div>
  13898. </div>
  13899. </div>
  13900. </div>
  13901. </div>
  13902. </div>
  13903. </div>
  13904. <span slot="footer" class="dialog-footer">
  13905. <el-button @click="dialogVisibleSentenceTeacher = false"
  13906. >{{lang.ssCancel}}</el-button
  13907. >
  13908. <el-button type="primary" @click="addSenWorksTeacher">{{lang.ssConfirm}}</el-button>
  13909. </span>
  13910. </el-dialog>
  13911. <el-dialog
  13912. :title="lang.ssSort"
  13913. :visible.sync="dialogVisibleSentence1"
  13914. :append-to-body="true"
  13915. width="1000px"
  13916. :before-close="handleClose"
  13917. class="dialog_diy dialog_diy3"
  13918. >
  13919. <div>
  13920. <div class="sentenBox">
  13921. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13922. {{ sentenceList1.stuName }}{{lang.ssHomeworkOf}}
  13923. </div>
  13924. <div
  13925. v-for="(st, stIndex) in sentenceList1"
  13926. :key="stIndex"
  13927. style="padding-bottom: 20px"
  13928. >
  13929. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  13930. {{lang.ssQuestionNum.replace(/\*/g, stIndex + 1)}}
  13931. </div>
  13932. <div class="isWrong">
  13933. <div class="cardList1" v-if="st.chooseSenList">
  13934. <div class="cardBox">
  13935. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  13936. <el-tooltip
  13937. class="item"
  13938. effect="light"
  13939. :content="s"
  13940. placement="top"
  13941. >
  13942. <div class="isCard">
  13943. <div>{{ s }}</div>
  13944. </div>
  13945. </el-tooltip>
  13946. </div>
  13947. </div>
  13948. <div class="cardAnswerBox">
  13949. {{lang.ssFormSentence}}{{ st.chooseSenList.join(" ") }}
  13950. </div>
  13951. </div>
  13952. <div v-if="tType == 2" class="isTj">
  13953. <div class="isTjImg">
  13954. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13955. </div>
  13956. <div>{{lang.ssSubmitted}}</div>
  13957. </div>
  13958. <div
  13959. class="answerRight isTj"
  13960. v-if="
  13961. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  13962. (tType == 1 || tType == 4)
  13963. "
  13964. >
  13965. <div class="isTjImg">
  13966. <img src="../../assets/icon/conSentences/right.png" alt="" />
  13967. </div>
  13968. <div>{{lang.ssAnswerCorrect}}</div>
  13969. </div>
  13970. <div
  13971. class="answerRight isTj"
  13972. v-if="
  13973. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13974. (tType == 1 || tType == 4)
  13975. "
  13976. >
  13977. <div class="isTjImg">
  13978. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  13979. </div>
  13980. <div>{{lang.ssAnswerWrong}}</div>
  13981. </div>
  13982. </div>
  13983. <div
  13984. v-if="
  13985. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  13986. (tType == 1 || tType == 4)
  13987. "
  13988. >
  13989. <div style="padding: 15px 0 10px 20px">{{lang.ssCorrectAnswerBelow}}</div>
  13990. <div
  13991. class="cardList"
  13992. v-if="st.rightAnswer"
  13993. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  13994. >
  13995. <div class="cardBox">
  13996. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  13997. <el-tooltip
  13998. class="item"
  13999. effect="light"
  14000. :content="r"
  14001. placement="top"
  14002. >
  14003. <div class="isCard1">
  14004. <div>{{ r }}</div>
  14005. </div>
  14006. </el-tooltip>
  14007. </div>
  14008. </div>
  14009. <div class="cardAnswerBox">
  14010. {{lang.ssFormSentence}}{{ st.rightAnswer.join(" ") }}
  14011. </div>
  14012. </div>
  14013. </div>
  14014. </div>
  14015. </div>
  14016. </div>
  14017. <span slot="footer" class="dialog-footer">
  14018. <el-button @click="dialogVisibleSentence1 = false">{{lang.ssCancel}}</el-button>
  14019. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14020. >{{lang.ssConfirm}}</el-button
  14021. >
  14022. </span>
  14023. </el-dialog>
  14024. <el-dialog
  14025. :title="lang.ssTeacherSubmitWork"
  14026. :visible.sync="dialogVisibleWorks"
  14027. :append-to-body="true"
  14028. width="500px"
  14029. :before-close="handleClose"
  14030. class="dialog_change"
  14031. >
  14032. <div class="marginT">
  14033. <div class="w_name">
  14034. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  14035. </div>
  14036. <div>{{lang.ssUpFile}}</div>
  14037. <div style="display: flex; gap: 10px">
  14038. <div
  14039. class="chapter_add"
  14040. @click="addImg($event)"
  14041. v-if="studyJuri[0].cover.length == 0"
  14042. >
  14043. <div class="up_photo">
  14044. <img src="../../assets/icon/uploadImg.png" alt />
  14045. </div>
  14046. <!-- <input
  14047. type="file"
  14048. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14049. style="display: none"
  14050. @change="beforeUpload1($event, 1)"
  14051. /> -->
  14052. <input
  14053. type="file"
  14054. accept="*"
  14055. style="display: none"
  14056. @change="beforeUpload1($event, 1)"
  14057. />
  14058. <!-- <input
  14059. type="file"
  14060. accept="image/*"
  14061. capture="camera"
  14062. style="display: none"
  14063. @change="beforeUpload1($event, 1)"
  14064. /> -->
  14065. </div>
  14066. <div
  14067. class="chapter_add"
  14068. @click="addImg($event)"
  14069. v-if="studyJuri[0].cover.length == 0"
  14070. >
  14071. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14072. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14073. </div>
  14074. <input
  14075. type="file"
  14076. accept="image/*"
  14077. capture="camera"
  14078. style="display: none"
  14079. @change="beforeUpload1($event, 1)"
  14080. />
  14081. </div>
  14082. </div>
  14083. <!-- capture="camera" -->
  14084. <div
  14085. class="chapter_add"
  14086. style="
  14087. display: flex;
  14088. width: 100%;
  14089. flex-direction: row;
  14090. flex-wrap: wrap;
  14091. justify-content: flex-start;
  14092. padding: 15px 0;
  14093. "
  14094. v-if="studyJuri[0].cover.length > 0"
  14095. >
  14096. <div class="upCover">
  14097. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14098. <img :src="word" alt v-else-if="fileType == 1" />
  14099. <img :src="video" alt v-else-if="fileType == 2" />
  14100. <img :src="word2" alt v-else-if="fileType == 3" />
  14101. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14102. <div class="deleteWord" @click="clean(1)">
  14103. <img src="../../assets/icon/deleteWorks.png" alt />
  14104. </div>
  14105. </div>
  14106. </div>
  14107. </div>
  14108. <div
  14109. class="upload_send"
  14110. @click="addCourseWorksTeacher(taskCount)"
  14111. v-if="!proVisible"
  14112. >
  14113. {{lang.ssSubmit}}
  14114. </div>
  14115. </el-dialog>
  14116. <ImgDraw
  14117. :drawShow="drawShow"
  14118. @closeDraw="closeDraw"
  14119. @addImgDraw="addImgDraw"
  14120. :bg="bg"
  14121. ></ImgDraw>
  14122. <el-dialog
  14123. :title="lang.ssTable"
  14124. :visible.sync="dialogVisibleTable"
  14125. :append-to-body="true"
  14126. width="95%"
  14127. :before-close="handleClose"
  14128. class="dialog_diy"
  14129. >
  14130. <el-form>
  14131. <div
  14132. style="
  14133. display: flex;
  14134. align-items: center;
  14135. justify-content: space-between;
  14136. "
  14137. >
  14138. <span>{{lang.ssTableContent}}</span>
  14139. <el-button type="primary" size="small" @click="returnTableText"
  14140. >{{lang.ssRestoreTemplate}}</el-button
  14141. >
  14142. </div>
  14143. <Table
  14144. v-model="tableJson.text"
  14145. @change="change"
  14146. v-if="dialogVisibleTable"
  14147. ></Table>
  14148. </el-form>
  14149. <span slot="footer" class="dialog-footer">
  14150. <el-button @click="dialogVisibleTable = false">{{lang.ssCancel}}</el-button>
  14151. <el-button type="primary" @click="addTableWorks">{{ lang.ssConfirm }}</el-button>
  14152. </span>
  14153. </el-dialog>
  14154. <el-dialog
  14155. :title="lang.ssTable"
  14156. :visible.sync="dialogVisibleTableTeacher"
  14157. :append-to-body="true"
  14158. width="95%"
  14159. :before-close="handleClose"
  14160. class="dialog_diy"
  14161. >
  14162. <el-form>
  14163. <div class="w_name">
  14164. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  14165. </div>
  14166. <div>{{lang.ssTableContent}}</div>
  14167. <Table
  14168. v-model="tableJson.text"
  14169. @change="change"
  14170. v-if="dialogVisibleTableTeacher"
  14171. ></Table>
  14172. </el-form>
  14173. <span slot="footer" class="dialog-footer">
  14174. <el-button @click="dialogVisibleTableTeacher = false">{{lang.ssCancel}}</el-button>
  14175. <el-button type="primary" @click="addTableWorksTeacher">{{ lang.ssConfirm }}</el-button>
  14176. </span>
  14177. </el-dialog>
  14178. <el-dialog
  14179. :title="lang.ssDocument"
  14180. :visible.sync="dialogVisibleWord"
  14181. :append-to-body="true"
  14182. width="95%"
  14183. :before-close="handleClose"
  14184. class="dialog_diy"
  14185. >
  14186. <el-form>
  14187. <div
  14188. style="
  14189. display: flex;
  14190. align-items: center;
  14191. justify-content: space-between;
  14192. "
  14193. >
  14194. <span>{{lang.ssDocumentContent}}</span>
  14195. <el-button type="primary" size="small" @click="returnWordText"
  14196. >{{lang.ssRestoreTemplate}}</el-button
  14197. >
  14198. </div>
  14199. <editor-bar
  14200. v-model="wordJson.text"
  14201. v-if="dialogVisibleWord"
  14202. ></editor-bar>
  14203. </el-form>
  14204. <span slot="footer" class="dialog-footer">
  14205. <el-button @click="dialogVisibleWord = false">{{lang.ssCancel}}</el-button>
  14206. <el-button type="primary" @click="addWordWorks">{{ lang.ssConfirm }}</el-button>
  14207. </span>
  14208. </el-dialog>
  14209. <el-dialog
  14210. :title="lang.ssDocument"
  14211. :visible.sync="dialogVisibleWordTeacher"
  14212. :append-to-body="true"
  14213. width="95%"
  14214. :before-close="handleClose"
  14215. class="dialog_diy"
  14216. >
  14217. <el-form>
  14218. <div class="w_name">
  14219. {{lang.ssStudentName}}:<span>{{ sStudent.student }}</span>
  14220. </div>
  14221. <div>{{ lang.ssDocumentContent }}</div>
  14222. <editor-bar
  14223. v-model="wordJson.text"
  14224. v-if="dialogVisibleWordTeacher"
  14225. ></editor-bar>
  14226. </el-form>
  14227. <span slot="footer" class="dialog-footer">
  14228. <el-button @click="dialogVisibleWordTeacher = false">{{lang.ssCancel}}</el-button>
  14229. <el-button type="primary" @click="addWordWorksTeacher">{{ lang.ssConfirm }}</el-button>
  14230. </span>
  14231. </el-dialog>
  14232. <el-dialog
  14233. :title="lang.ssTable"
  14234. :visible.sync="dialogVisibleTable2"
  14235. :append-to-body="true"
  14236. width="95%"
  14237. :before-close="handleClose"
  14238. class="dialog_diy"
  14239. >
  14240. <el-form>
  14241. <div class="cont" v-html="tableJson.text"></div>
  14242. </el-form>
  14243. <span slot="footer" class="dialog-footer">
  14244. <el-button @click="dialogVisibleTable2 = false">{{lang.ssCloseBtn}}</el-button>
  14245. </span>
  14246. </el-dialog>
  14247. <el-dialog
  14248. :title="lang.ssDocument"
  14249. :visible.sync="dialogVisibleTable3"
  14250. :append-to-body="true"
  14251. width="95%"
  14252. :before-close="handleClose"
  14253. class="dialog_diy"
  14254. >
  14255. <el-form>
  14256. <div class="cont" v-html="tableJson.text"></div>
  14257. </el-form>
  14258. <span slot="footer" class="dialog-footer">
  14259. <el-button @click="dialogVisibleTable3 = false">{{lang.ssCloseBtn}}</el-button>
  14260. </span>
  14261. </el-dialog>
  14262. <el-dialog
  14263. :title="lang.ssGroupSetting"
  14264. :visible.sync="dialogVisibleGroup"
  14265. :append-to-body="true"
  14266. width="95%"
  14267. :before-close="handleClose"
  14268. class="dialog_diy"
  14269. >
  14270. <div v-if="dialogVisibleGroup">
  14271. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14272. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14273. {{ lang.ssOpenSeatTip }}
  14274. </div>
  14275. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14276. @click="lockChair">
  14277. {{ lang.ssLockPosition }}
  14278. </div>
  14279. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14280. {{ lang.ssUnlockPosition }}
  14281. </div> -->
  14282. <div class="group_switch">
  14283. <span>{{ lang.ssOpenSeat }}</span>
  14284. <el-switch
  14285. v-model="islock"
  14286. active-text=""
  14287. class="switchCss"
  14288. @change="lockChair"
  14289. ></el-switch>
  14290. </div>
  14291. <div
  14292. type="primary"
  14293. @click="updateGroup"
  14294. class="returnBtn"
  14295. style="background-color: #225bc7"
  14296. >
  14297. {{lang.ssGroupSetting}}
  14298. </div>
  14299. </div>
  14300. <div>
  14301. <div
  14302. class="g_d_box"
  14303. v-if="groupJson.group && groupStudent[toolindex]"
  14304. >
  14305. <div
  14306. class="g_d_group"
  14307. v-for="(g, gindex) in groupJson.group"
  14308. :key="gindex"
  14309. >
  14310. <div class="g_d_group_chair">
  14311. <div v-if="groupJson.number > 1">
  14312. <span
  14313. :class="{
  14314. isChair:
  14315. groupStudent[toolindex][gindex] &&
  14316. groupStudent[toolindex][gindex][0],
  14317. updateChair:
  14318. courseDetail.userid == userid &&
  14319. groupStudent[toolindex][gindex] &&
  14320. groupStudent[toolindex][gindex][0] &&
  14321. groupJson.islock == 2
  14322. }"
  14323. ><span
  14324. class="updateChairBtn"
  14325. @click="
  14326. updateGroupChair(
  14327. groupStudent[toolindex][gindex] &&
  14328. groupStudent[toolindex][gindex][0]
  14329. )
  14330. "
  14331. >{{lang.ssModify}}</span
  14332. ></span
  14333. ><span>{{
  14334. groupStudent[toolindex][gindex] &&
  14335. groupStudent[toolindex][gindex][0]
  14336. ? groupStudent[toolindex][gindex] &&
  14337. groupStudent[toolindex][gindex][0].name
  14338. : lang.ssEmptyPosition
  14339. }}</span>
  14340. </div>
  14341. <div v-if="groupJson.number > 4">
  14342. <span
  14343. :class="{
  14344. isChair:
  14345. groupStudent[toolindex][gindex] &&
  14346. groupStudent[toolindex][gindex][4],
  14347. updateChair:
  14348. courseDetail.userid == userid &&
  14349. groupStudent[toolindex][gindex] &&
  14350. groupStudent[toolindex][gindex][4] &&
  14351. groupJson.islock == 2
  14352. }"
  14353. ><span
  14354. class="updateChairBtn"
  14355. @click="
  14356. updateGroupChair(
  14357. groupStudent[toolindex][gindex] &&
  14358. groupStudent[toolindex][gindex][4]
  14359. )
  14360. "
  14361. >{{lang.ssModify}}</span
  14362. ></span
  14363. ><span>{{
  14364. groupStudent[toolindex][gindex] &&
  14365. groupStudent[toolindex][gindex][4]
  14366. ? groupStudent[toolindex][gindex] &&
  14367. groupStudent[toolindex][gindex][4].name
  14368. : lang.ssEmptyPosition
  14369. }}</span>
  14370. </div>
  14371. <div v-if="groupJson.number > 8">
  14372. <span
  14373. :class="{
  14374. isChair:
  14375. groupStudent[toolindex][gindex] &&
  14376. groupStudent[toolindex][gindex][8],
  14377. updateChair:
  14378. courseDetail.userid == userid &&
  14379. groupStudent[toolindex][gindex] &&
  14380. groupStudent[toolindex][gindex][8] &&
  14381. groupJson.islock == 2
  14382. }"
  14383. ><span
  14384. class="updateChairBtn"
  14385. @click="
  14386. updateGroupChair(
  14387. groupStudent[toolindex][gindex] &&
  14388. groupStudent[toolindex][gindex][8]
  14389. )
  14390. "
  14391. >{{lang.ssModify}}</span
  14392. ></span
  14393. ><span>{{
  14394. groupStudent[toolindex][gindex] &&
  14395. groupStudent[toolindex][gindex][8]
  14396. ? groupStudent[toolindex][gindex] &&
  14397. groupStudent[toolindex][gindex][8].name
  14398. : lang.ssEmptyPosition
  14399. }}</span>
  14400. </div>
  14401. </div>
  14402. <div class="g_d_group_tableBox">
  14403. <div class="g_d_group_chair2">
  14404. <div v-if="groupJson.number > 2">
  14405. <span
  14406. :class="{
  14407. isChair:
  14408. groupStudent[toolindex][gindex] &&
  14409. groupStudent[toolindex][gindex][2],
  14410. updateChair:
  14411. courseDetail.userid == userid &&
  14412. groupStudent[toolindex][gindex] &&
  14413. groupStudent[toolindex][gindex][2] &&
  14414. groupJson.islock == 2
  14415. }"
  14416. ><span
  14417. class="updateChairBtn"
  14418. @click="
  14419. updateGroupChair(
  14420. groupStudent[toolindex][gindex] &&
  14421. groupStudent[toolindex][gindex][2]
  14422. )
  14423. "
  14424. >{{lang.ssModify}}</span
  14425. ></span
  14426. ><span>{{
  14427. groupStudent[toolindex][gindex] &&
  14428. groupStudent[toolindex][gindex][2]
  14429. ? groupStudent[toolindex][gindex] &&
  14430. groupStudent[toolindex][gindex][2].name
  14431. : lang.ssEmptyPosition
  14432. }}</span>
  14433. </div>
  14434. <div v-if="groupJson.number > 6">
  14435. <span
  14436. :class="{
  14437. isChair:
  14438. groupStudent[toolindex][gindex] &&
  14439. groupStudent[toolindex][gindex][6],
  14440. updateChair:
  14441. courseDetail.userid == userid &&
  14442. groupStudent[toolindex][gindex] &&
  14443. groupStudent[toolindex][gindex][6] &&
  14444. groupJson.islock == 2
  14445. }"
  14446. ><span
  14447. class="updateChairBtn"
  14448. @click="
  14449. updateGroupChair(
  14450. groupStudent[toolindex][gindex] &&
  14451. groupStudent[toolindex][gindex][6]
  14452. )
  14453. "
  14454. >{{lang.ssModify}}</span
  14455. ></span
  14456. ><span>{{
  14457. groupStudent[toolindex][gindex] &&
  14458. groupStudent[toolindex][gindex][6]
  14459. ? groupStudent[toolindex][gindex] &&
  14460. groupStudent[toolindex][gindex][6].name
  14461. : lang.ssEmptyPosition
  14462. }}</span>
  14463. </div>
  14464. </div>
  14465. <div class="g_d_group_table">
  14466. <div>
  14467. {{ g.name }}
  14468. </div>
  14469. <div>
  14470. <div
  14471. v-if="
  14472. courseDetail.userid == userid && groupJson.islock == 2
  14473. "
  14474. @click="deleteGroupChair(gindex)"
  14475. >
  14476. {{lang.ssRemoveMember}}
  14477. </div>
  14478. <div
  14479. @click="selectGroup(gindex)"
  14480. v-else-if="
  14481. groupStudentUid[toolindex] &&
  14482. groupStudentUid[toolindex][gindex].indexOf(userid) ==
  14483. -1
  14484. "
  14485. >
  14486. {{lang.ssJoinGroup}}
  14487. </div>
  14488. <div
  14489. @click="
  14490. exitGroup(
  14491. groupStudent[toolindex][gindex] &&
  14492. groupStudent[toolindex][gindex][
  14493. groupStudentUid[toolindex][gindex].indexOf(userid)
  14494. ].id
  14495. )
  14496. "
  14497. v-else-if="
  14498. groupStudentUid[toolindex] &&
  14499. groupStudentUid[toolindex][gindex].indexOf(userid) !=
  14500. -1
  14501. "
  14502. >
  14503. {{lang.ssExitGroup}}
  14504. </div>
  14505. </div>
  14506. </div>
  14507. <div class="g_d_group_chair2">
  14508. <div v-if="groupJson.number > 3">
  14509. <span
  14510. :class="{
  14511. isChair:
  14512. groupStudent[toolindex][gindex] &&
  14513. groupStudent[toolindex][gindex][3],
  14514. updateChair:
  14515. courseDetail.userid == userid &&
  14516. groupStudent[toolindex][gindex] &&
  14517. groupStudent[toolindex][gindex][3] &&
  14518. groupJson.islock == 2
  14519. }"
  14520. ><span
  14521. class="updateChairBtn"
  14522. @click="
  14523. updateGroupChair(
  14524. groupStudent[toolindex][gindex] &&
  14525. groupStudent[toolindex][gindex][3]
  14526. )
  14527. "
  14528. >{{lang.ssModify}}</span
  14529. ></span
  14530. ><span>{{
  14531. groupStudent[toolindex][gindex] &&
  14532. groupStudent[toolindex][gindex][3]
  14533. ? groupStudent[toolindex][gindex] &&
  14534. groupStudent[toolindex][gindex][3].name
  14535. : lang.ssEmptyPosition
  14536. }}</span>
  14537. </div>
  14538. <div v-if="groupJson.number > 7">
  14539. <span
  14540. :class="{
  14541. isChair:
  14542. groupStudent[toolindex][gindex] &&
  14543. groupStudent[toolindex][gindex][7],
  14544. updateChair:
  14545. courseDetail.userid == userid &&
  14546. groupStudent[toolindex][gindex] &&
  14547. groupStudent[toolindex][gindex][7] &&
  14548. groupJson.islock == 2
  14549. }"
  14550. ><span
  14551. class="updateChairBtn"
  14552. @click="
  14553. updateGroupChair(
  14554. groupStudent[toolindex][gindex] &&
  14555. groupStudent[toolindex][gindex][7]
  14556. )
  14557. "
  14558. >{{lang.ssModify}}</span
  14559. ></span
  14560. ><span>{{
  14561. groupStudent[toolindex][gindex] &&
  14562. groupStudent[toolindex][gindex][7]
  14563. ? groupStudent[toolindex][gindex] &&
  14564. groupStudent[toolindex][gindex][7].name
  14565. : lang.ssEmptyPosition
  14566. }}</span>
  14567. </div>
  14568. </div>
  14569. </div>
  14570. <div class="g_d_group_chair">
  14571. <div v-if="groupJson.number > 1">
  14572. <span
  14573. :class="{
  14574. isChair:
  14575. groupStudent[toolindex][gindex] &&
  14576. groupStudent[toolindex][gindex][1],
  14577. updateChair:
  14578. courseDetail.userid == userid &&
  14579. groupStudent[toolindex][gindex] &&
  14580. groupStudent[toolindex][gindex][1] &&
  14581. groupJson.islock == 2
  14582. }"
  14583. ><span
  14584. class="updateChairBtn"
  14585. @click="
  14586. updateGroupChair(
  14587. groupStudent[toolindex][gindex] &&
  14588. groupStudent[toolindex][gindex][1]
  14589. )
  14590. "
  14591. >{{lang.ssModify}}</span
  14592. ></span
  14593. ><span>{{
  14594. groupStudent[toolindex][gindex] &&
  14595. groupStudent[toolindex][gindex][1]
  14596. ? groupStudent[toolindex][gindex] &&
  14597. groupStudent[toolindex][gindex][1].name
  14598. : lang.ssEmptyPosition
  14599. }}</span>
  14600. </div>
  14601. <div v-if="groupJson.number > 5">
  14602. <span
  14603. :class="{
  14604. isChair:
  14605. groupStudent[toolindex][gindex] &&
  14606. groupStudent[toolindex][gindex][5],
  14607. updateChair:
  14608. courseDetail.userid == userid &&
  14609. groupStudent[toolindex][gindex] &&
  14610. groupStudent[toolindex][gindex][5] &&
  14611. groupJson.islock == 2
  14612. }"
  14613. ><span
  14614. class="updateChairBtn"
  14615. @click="
  14616. updateGroupChair(
  14617. groupStudent[toolindex][gindex] &&
  14618. groupStudent[toolindex][gindex][5]
  14619. )
  14620. "
  14621. >{{lang.ssModify}}</span
  14622. ></span
  14623. ><span>{{
  14624. groupStudent[toolindex][gindex] &&
  14625. groupStudent[toolindex][gindex][5]
  14626. ? groupStudent[toolindex][gindex] &&
  14627. groupStudent[toolindex][gindex][5].name
  14628. : lang.ssEmptyPosition
  14629. }}</span>
  14630. </div>
  14631. <div v-if="groupJson.number > 9">
  14632. <span
  14633. :class="{
  14634. isChair:
  14635. groupStudent[toolindex][gindex] &&
  14636. groupStudent[toolindex][gindex][9],
  14637. updateChair:
  14638. courseDetail.userid == userid &&
  14639. groupStudent[toolindex][gindex] &&
  14640. groupStudent[toolindex][gindex][9] &&
  14641. groupJson.islock == 2
  14642. }"
  14643. ><span
  14644. class="updateChairBtn"
  14645. @click="
  14646. updateGroupChair(
  14647. groupStudent[toolindex][gindex] &&
  14648. groupStudent[toolindex][gindex][9]
  14649. )
  14650. "
  14651. >{{lang.ssModify}}</span
  14652. ></span
  14653. ><span>{{
  14654. groupStudent[toolindex][gindex] &&
  14655. groupStudent[toolindex][gindex][9]
  14656. ? groupStudent[toolindex][gindex] &&
  14657. groupStudent[toolindex][gindex][9].name
  14658. : lang.ssEmptyPosition
  14659. }}</span>
  14660. </div>
  14661. </div>
  14662. </div>
  14663. </div>
  14664. </div>
  14665. </div>
  14666. <span slot="footer" class="dialog-footer">
  14667. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14668. </span>
  14669. </el-dialog>
  14670. <el-dialog
  14671. :title="lang.ssGroupSetting"
  14672. :visible.sync="dialogVisibleGroup2"
  14673. :append-to-body="true"
  14674. width="650px"
  14675. :before-close="handleClose"
  14676. class="dialog_diy"
  14677. >
  14678. <div class="groupBox">
  14679. <div v-if="groupJson2.group" class="groupContent">
  14680. <div class="groupTitle">{{lang.ssSetGroupCountAndName}}</div>
  14681. <div
  14682. v-for="(item, index) in groupJson2.group"
  14683. :key="index"
  14684. class="groupName"
  14685. >
  14686. <span class="groupn">{{ lang.ssGroupNameFormat.replace(/\*/g, index + 1) }}</span>
  14687. <el-input
  14688. v-model="item.name"
  14689. :placeholder="lang.ssEnterName"
  14690. style="width: 250px"
  14691. ></el-input>
  14692. <!-- <div class="groupBtn">
  14693. <el-button type="primary" size="small" @click="addGroup(index)">
  14694. 添加</el-button>
  14695. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14696. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14697. </div> -->
  14698. </div>
  14699. </div>
  14700. <div class="groupContent">
  14701. <div class="groupTitle">{{lang.ssSetGroupMemberCount}}</div>
  14702. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14703. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14704. <el-input
  14705. v-model="groupJson2.number"
  14706. style="width: 150px"
  14707. :placeholder="lang.ssEnterNumber2To10"
  14708. @change="numberPan"
  14709. ></el-input>
  14710. </div>
  14711. </div>
  14712. <span slot="footer" class="dialog-footer">
  14713. <el-button @click="dialogVisibleGroup2 = false">{{lang.ssCancel}}</el-button>
  14714. <el-button type="primary" @click="updateGroupJson">{{ lang.ssConfirm }}</el-button>
  14715. </span>
  14716. </el-dialog>
  14717. <el-dialog
  14718. :title="lang.ssHomework"
  14719. :visible.sync="dialogVisibleGroupWork"
  14720. :append-to-body="true"
  14721. width="500px"
  14722. :before-close="handleClose"
  14723. class="dialog_change"
  14724. >
  14725. <div class="marginT">
  14726. <div>{{lang.ssUpFile}}</div>
  14727. <div
  14728. class="chapter_add"
  14729. @click="addImg($event)"
  14730. v-if="studyJuri[0].cover.length == 0"
  14731. >
  14732. <div class="up_photo">
  14733. <img src="../../assets/icon/uploadImg.png" alt />
  14734. </div>
  14735. <!-- <input
  14736. type="file"
  14737. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14738. style="display: none"
  14739. @change="beforeUpload1($event, 1)"
  14740. /> -->
  14741. <input
  14742. type="file"
  14743. accept="*"
  14744. style="display: none"
  14745. @change="beforeUpload1($event, 1)"
  14746. />
  14747. </div>
  14748. <!-- capture="camera" -->
  14749. <div
  14750. class="chapter_add"
  14751. style="
  14752. display: flex;
  14753. width: 100%;
  14754. flex-direction: row;
  14755. flex-wrap: wrap;
  14756. justify-content: flex-start;
  14757. padding: 15px 0;
  14758. "
  14759. v-if="studyJuri[0].cover.length > 0"
  14760. >
  14761. <div class="upCover">
  14762. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14763. <img :src="word" alt v-else-if="fileType == 1" />
  14764. <img :src="video" alt v-else-if="fileType == 2" />
  14765. <img :src="word2" alt v-else-if="fileType == 3" />
  14766. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14767. <div class="deleteWord" @click="clean(1)">
  14768. <img src="../../assets/icon/deleteWorks.png" alt />
  14769. </div>
  14770. </div>
  14771. </div>
  14772. </div>
  14773. <div
  14774. class="upload_send"
  14775. @click="addCourseWorks2(taskCount)"
  14776. v-if="!proVisible"
  14777. >
  14778. {{lang.ssSubmit}}
  14779. </div>
  14780. </el-dialog>
  14781. <el-dialog
  14782. :title="lang.ssModifyGroup"
  14783. :visible.sync="dialogVisibleUpdateGroup"
  14784. :append-to-body="true"
  14785. width="350px"
  14786. :before-close="handleClose"
  14787. class="dialog_diy"
  14788. >
  14789. <div>
  14790. <h2>
  14791. {{ this.updateGroupUser.name }}
  14792. </h2>
  14793. <div style="color: rgb(171 171 171); margin-top: 10px">
  14794. {{lang.ssSelectGroupToJoin}}
  14795. </div>
  14796. <el-radio-group v-model="checkChair">
  14797. <el-radio
  14798. style="display: block; margin-top: 20px"
  14799. v-for="(item, index) in updateGroupArray"
  14800. :label="item.label"
  14801. :key="index"
  14802. >{{ item.name }}</el-radio
  14803. >
  14804. </el-radio-group>
  14805. </div>
  14806. <span slot="footer" class="dialog-footer">
  14807. <el-button @click="dialogVisibleUpdateGroup = false">{{lang.ssCancel}}</el-button>
  14808. <el-button type="primary" @click="updateChair">{{ lang.ssConfirm }}</el-button>
  14809. </span>
  14810. </el-dialog>
  14811. <el-dialog
  14812. :title="lang.ssRemoveGroupMember"
  14813. :visible.sync="dialogVisibleDeleteGroup"
  14814. :append-to-body="true"
  14815. width="350px"
  14816. :before-close="handleClose"
  14817. class="dialog_diy"
  14818. >
  14819. <div>
  14820. <h2>
  14821. {{ this.deleteGroupArray.name }}
  14822. </h2>
  14823. <div style="color: rgb(171 171 171); margin-top: 10px">
  14824. {{lang.ssSelectMemberToDelete}}
  14825. </div>
  14826. <el-checkbox-group v-model="checkDeleteGroup">
  14827. <el-checkbox
  14828. style="display: flex; margin-top: 20px"
  14829. v-for="(item, index) in deleteGroupUser"
  14830. :label="item.userid"
  14831. :key="index"
  14832. >{{ item.name }}</el-checkbox
  14833. >
  14834. </el-checkbox-group>
  14835. </div>
  14836. <span slot="footer" class="dialog-footer">
  14837. <el-button @click="dialogVisibleDeleteGroup = false">{{lang.ssCancel}}</el-button>
  14838. <el-button type="primary" @click="deleteChair">{{ lang.ssConfirm }}</el-button>
  14839. </span>
  14840. </el-dialog>
  14841. <el-dialog
  14842. :title="lang.ssBatchUpload"
  14843. :visible.sync="dialogVisiblePl"
  14844. :append-to-body="true"
  14845. width="700px"
  14846. :before-close="handleClose"
  14847. class="dialog_change"
  14848. >
  14849. <div class="marginT">
  14850. <div class="plworkBox">
  14851. <div
  14852. class="chapter_add"
  14853. style="
  14854. display: flex;
  14855. width: 150px;
  14856. flex-direction: row;
  14857. flex-wrap: wrap;
  14858. justify-content: flex-start;
  14859. margin: 0 10px 10px 0;
  14860. "
  14861. v-for="(item, index) in plworkFile"
  14862. :key="index"
  14863. >
  14864. <div class="upCover2">
  14865. <img
  14866. :src="item.url"
  14867. alt
  14868. v-if="item.fileType == 1"
  14869. @click="previewImg(item.url)"
  14870. />
  14871. <img :src="word" alt v-else-if="item.fileType == 4" />
  14872. <img :src="video" alt v-else />
  14873. <!-- <span class="picName">{{ item.name }}</span> -->
  14874. <!-- <el-input
  14875. v-model="item.username"
  14876. placeholder="请输入学生名字"
  14877. style="margin-top: 10px"
  14878. ></el-input> -->
  14879. <div
  14880. class="pl_select_box"
  14881. @click="
  14882. getUpdateMore(true, checkUpload(), item.username, index)
  14883. "
  14884. >
  14885. {{ getSName(item.username) }}
  14886. </div>
  14887. <!-- <el-select
  14888. style="margin-top: 10px"
  14889. v-model="item.username"
  14890. filterable
  14891. allow-create
  14892. :placeholder="lang.ssSelectStudentPlaceholder"
  14893. >
  14894. <el-option
  14895. v-for="item1 in checkUpload()"
  14896. :key="item1.userid"
  14897. :label="item1.name ? item1.name : item1.username"
  14898. :value="item1.userid"
  14899. >
  14900. </el-option>
  14901. </el-select> -->
  14902. <div class="deleteWord" @click="clean2(index)">
  14903. <img src="../../assets/icon/deleteWorks.png" alt />
  14904. </div>
  14905. </div>
  14906. </div>
  14907. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14908. <div class="up_photo2">
  14909. <img src="../../assets/icon/plwork.png" alt />
  14910. <span>{{lang.ssClickUploadFile}}</span>
  14911. </div>
  14912. <input
  14913. type="file"
  14914. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14915. multiple="multiple"
  14916. style="display: none"
  14917. @change="beforeUpload3($event, 6)"
  14918. />
  14919. </div>
  14920. </div>
  14921. </div>
  14922. <!-- capture="camera" -->
  14923. <div
  14924. class="upload_send"
  14925. @click="addCourseWorksPl(taskCount)"
  14926. v-if="!proVisible2"
  14927. >
  14928. {{lang.ssSubmit}}
  14929. </div>
  14930. </el-dialog>
  14931. <el-dialog
  14932. :title="lang.ssModifyName"
  14933. :visible.sync="dialogVisibleSname"
  14934. width="500px"
  14935. :before-close="handleClose"
  14936. class="dialog_diy"
  14937. center
  14938. >
  14939. <div
  14940. style="
  14941. text-align: center;
  14942. display: flex;
  14943. align-items: center;
  14944. justify-content: center;
  14945. "
  14946. >
  14947. <span class="tian1">{{lang.ssName}}</span>
  14948. <div
  14949. class="pl_select_box"
  14950. style="margin-left: 10px; width: 200px"
  14951. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  14952. >
  14953. {{ getSName(worksSName) }}
  14954. </div>
  14955. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  14956. placeholder="请选择学生">
  14957. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  14958. :value="item.userid">
  14959. </el-option>
  14960. </el-select> -->
  14961. <!-- <el-input
  14962. v-model="worksSName"
  14963. style="width: 250px; margin: 15px 0px"
  14964. ></el-input> -->
  14965. </div>
  14966. <span slot="footer" class="dialog-footer">
  14967. <el-button @click="dialogVisibleSname = false">{{lang.ssCancel}}</el-button>
  14968. <el-button type="primary" @click="updateName">{{ lang.ssConfirmBtn }}</el-button>
  14969. </span>
  14970. </el-dialog>
  14971. <el-dialog
  14972. :title="lang.ssEnglishWrite"
  14973. :visible.sync="engDialogVisible"
  14974. :append-to-body="true"
  14975. width="800px"
  14976. :before-close="handleClose"
  14977. class="dialog_diy"
  14978. >
  14979. <onlineWrite
  14980. v-if="engDialogVisible"
  14981. :englishList="englishList"
  14982. :myAnswerList1="myAnswerList1"
  14983. ref="engJson"
  14984. ></onlineWrite>
  14985. <span slot="footer" class="dialog-footer" style="text-align: center;">
  14986. <el-button @click="engDialogVisible = false">{{lang.ssCancel}}</el-button>
  14987. <el-button type="primary" @click="addEnglishWork">{{ lang.ssConfirmBtn }}</el-button>
  14988. </span>
  14989. </el-dialog>
  14990. <el-dialog
  14991. :title="lang.ssEnglishWrite"
  14992. :visible.sync="engUpdateDialogVisible"
  14993. :append-to-body="true"
  14994. width="800px"
  14995. :before-close="handleClose"
  14996. class="dialog_diy fullStyle"
  14997. >
  14998. <div class="engUpBox">
  14999. <div class="engUpTop">
  15000. <div class="engTitle">
  15001. <div>{{lang.ssEssayTitle}}</div>
  15002. <div>{{ englishList1.engTitle }}</div>
  15003. </div>
  15004. <div class="engText">
  15005. <div>{{lang.ssEssayContent}}</div>
  15006. <div
  15007. class="cont"
  15008. v-html="englishList1.englishText"
  15009. style="white-space: pre-line;"
  15010. @click="checkImg(getImgList(englishList1.englishText))"
  15011. ></div>
  15012. </div>
  15013. </div>
  15014. <div
  15015. class="correctBox"
  15016. :style="{ height: `calc(100% - ${topHeight}px)` }"
  15017. >
  15018. <div class="oldBox">
  15019. <div class="oldMes">{{lang.ssOriginalAuthor}}{{ noteName }} )</div>
  15020. <div class="oldText">
  15021. <div class="detailBox">
  15022. <div class="oldDetail">
  15023. <div>{{lang.ssTitleColon}}</div>
  15024. <div>{{ oldEnglishJson.engTitle }}</div>
  15025. </div>
  15026. <div class="oldDetail1">
  15027. <div>{{lang.ssContentColon}}</div>
  15028. <div
  15029. v-html="oldEnglishJson.engText"
  15030. style="white-space: pre-line;"
  15031. ></div>
  15032. </div>
  15033. <div
  15034. class="oldDetail"
  15035. v-if="
  15036. oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0
  15037. "
  15038. >
  15039. <div>{{lang.ssImageColon}}</div>
  15040. <div class="oldImg">
  15041. <img :src="oldEnglishJson.imgList[0].url" alt="" />
  15042. </div>
  15043. </div>
  15044. </div>
  15045. </div>
  15046. </div>
  15047. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15048. <div class="oldMes" style="background: #aacaff;">
  15049. {{ userMes[0].username }}
  15050. </div>
  15051. <div class="oldText">
  15052. <div class="detailBox" style="position: relative;">
  15053. <div class="oldDetail">
  15054. <div>{{lang.ssTitleColon}}</div>
  15055. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15056. <div v-else v-html="newEnglishList.engTitle"></div>
  15057. </div>
  15058. <div class="oldDetail">
  15059. <div>{{lang.ssContentColon}}</div>
  15060. <el-input
  15061. v-if="greyType"
  15062. type="textarea"
  15063. :rows="10"
  15064. resize="none"
  15065. v-model="newEnglishList.engText"
  15066. @input="gx"
  15067. />
  15068. <correctText
  15069. :newText="newEnglishList.engText"
  15070. :oldData="oldEnglishJson.engText"
  15071. />
  15072. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  15073. </div>
  15074. <div style="position: absolute;bottom: -25px;">
  15075. {{lang.ssNoteRedDeleteGreenAdd}}
  15076. </div>
  15077. <el-button
  15078. @click="isUpdateCorrect(newEnglishList.engText, 1)"
  15079. class="correctCss"
  15080. :style="{ right: greyType == false ? '0' : '80px' }"
  15081. >{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button
  15082. >
  15083. <el-button
  15084. @click="aiCorrect(newEnglishList.engText, 1)"
  15085. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15086. v-if="!greyType"
  15087. >{{lang.ssAIAnnotation}}</el-button
  15088. >
  15089. <el-button
  15090. @click="addCorrect"
  15091. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15092. v-if="greyType"
  15093. >{{lang.ssConfirm}}</el-button
  15094. >
  15095. </div>
  15096. </div>
  15097. </div>
  15098. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15099. <div
  15100. class="oldMes"
  15101. style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;"
  15102. v-if="newEnglishList1.length > 0"
  15103. >
  15104. <div
  15105. v-if="isNoUserid"
  15106. class="allName"
  15107. :style="{
  15108. minWidth: `calc(100% / ${engListLength})`,
  15109. background: newEngIndex == -1 ? '#aacaff' : ''
  15110. }"
  15111. @click="setEngText(-1)"
  15112. style="background: #aacaff;"
  15113. >
  15114. {{ userMes[0].username }}
  15115. </div>
  15116. <div
  15117. v-for="(item, index) in newEnglishList1"
  15118. :key="index"
  15119. class="allName"
  15120. :style="{
  15121. minWidth: `calc(100% / ${engListLength})`,
  15122. background: index == newEngIndex ? '#aacaff' : ''
  15123. }"
  15124. @click="setEngText(index)"
  15125. >
  15126. {{ item.username }}
  15127. </div>
  15128. </div>
  15129. <div class="oldMes" style="background: #aacaff;" v-else>
  15130. {{ userMes[0].username }}
  15131. </div>
  15132. <div
  15133. class="oldText"
  15134. v-if="
  15135. newEngIndex == -1 &&
  15136. isNoUserid == true &&
  15137. newEnglishList1.length
  15138. "
  15139. >
  15140. <div class="detailBox" style="position: relative;">
  15141. <div class="oldDetail">
  15142. <div>{{lang.ssTitleColon}}</div>
  15143. <el-input
  15144. v-if="greyType"
  15145. v-model="oldEnglishJson1.engTitle"
  15146. />
  15147. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15148. </div>
  15149. <div class="oldDetail">
  15150. <div>{{lang.ssContentColon}}</div>
  15151. <el-input
  15152. v-if="greyType"
  15153. type="textarea"
  15154. :rows="10"
  15155. resize="none"
  15156. v-model="oldEnglishJson1.engText"
  15157. @input="gx"
  15158. />
  15159. <correctText
  15160. v-else
  15161. :newText="oldEnglishJson1.engText"
  15162. :oldData="oldEnglishJson.engText"
  15163. />
  15164. </div>
  15165. <div style="position: absolute;bottom: -25px;">
  15166. {{lang.ssNoteRedDeleteGreenAdd}}
  15167. </div>
  15168. <el-button
  15169. @click="isUpdateCorrect(oldEnglishJson1.engText, 2)"
  15170. class="correctCss"
  15171. :style="{ right: greyType == false ? '0' : '80px' }"
  15172. >{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button
  15173. >
  15174. <el-button
  15175. @click="aiCorrect(oldEnglishJson1.engText, 2)"
  15176. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15177. v-if="!greyType"
  15178. >{{lang.ssAIAnnotation}}</el-button
  15179. >
  15180. <el-button
  15181. @click="addCorrect"
  15182. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15183. v-if="greyType"
  15184. >{{lang.ssConfirm}}</el-button
  15185. >
  15186. </div>
  15187. </div>
  15188. <div class="oldText" v-else-if="newEngIndex == -1">
  15189. <div class="detailBox" style="position: relative;">
  15190. <div class="oldDetail">
  15191. <div>{{lang.ssTitleColon}}</div>
  15192. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15193. <div v-else v-html="newEnglishList.engTitle"></div>
  15194. </div>
  15195. <div class="oldDetail">
  15196. <div>{{lang.ssContentColon}}</div>
  15197. <el-input
  15198. v-if="greyType"
  15199. type="textarea"
  15200. :rows="10"
  15201. resize="none"
  15202. v-model="newEnglishList.engText"
  15203. @input="gx"
  15204. />
  15205. <correctText
  15206. v-else
  15207. :newText="newEnglishList.engText"
  15208. :oldData="oldEnglishJson.engText"
  15209. />
  15210. </div>
  15211. <div style="position: absolute;bottom: -25px;">
  15212. {{lang.ssNoteRedDeleteGreenAdd}}
  15213. </div>
  15214. <el-button
  15215. @click="isUpdateCorrect(newEnglishList.engText, 3)"
  15216. class="correctCss"
  15217. :style="{ right: greyType == false ? '0' : '80px' }"
  15218. >{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button
  15219. >
  15220. <el-button
  15221. @click="aiCorrect(newEnglishList.engText, 3)"
  15222. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15223. v-if="!greyType"
  15224. >{{lang.ssAIAnnotation}}</el-button
  15225. >
  15226. <el-button
  15227. @click="addCorrect"
  15228. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15229. v-if="greyType"
  15230. >{{lang.ssConfirm}}</el-button
  15231. >
  15232. </div>
  15233. </div>
  15234. <div
  15235. class="oldText"
  15236. v-else-if="newEngIndex > -1 && newEnglishList1.length > 0"
  15237. >
  15238. <div class="detailBox" style="position: relative;">
  15239. <div class="oldDetail">
  15240. <div>{{lang.ssTitleColon}}</div>
  15241. <div
  15242. v-if="
  15243. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15244. "
  15245. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15246. ></div>
  15247. <div v-else>
  15248. <el-input
  15249. v-if="greyType"
  15250. v-model="newEnglishList1[newEngIndex].cWork.engTitle"
  15251. />
  15252. <div
  15253. v-else
  15254. v-html="newEnglishList1[newEngIndex].cWork.engTitle"
  15255. ></div>
  15256. </div>
  15257. </div>
  15258. <div class="oldDetail">
  15259. <div>{{lang.ssContentColon}}</div>
  15260. <correctText
  15261. v-if="
  15262. userMes[0].userid != newEnglishList1[newEngIndex].correct
  15263. "
  15264. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15265. :oldData="oldEnglishJson.engText"
  15266. />
  15267. <div v-else>
  15268. <el-input
  15269. v-if="greyType"
  15270. type="textarea"
  15271. :rows="10"
  15272. resize="none"
  15273. v-model="newEnglishList1[newEngIndex].cWork.engText"
  15274. @input="gx"
  15275. />
  15276. <correctText
  15277. v-else
  15278. :newText="newEnglishList1[newEngIndex].cWork.engText"
  15279. :oldData="oldEnglishJson.engText"
  15280. />
  15281. </div>
  15282. </div>
  15283. <div style="position: absolute;bottom: -25px;">
  15284. {{lang.ssNoteRedDeleteGreenAdd}}
  15285. </div>
  15286. <el-button
  15287. @click="
  15288. isUpdateCorrect(
  15289. newEnglishList1[newEngIndex].cWork.engText,
  15290. 4
  15291. )
  15292. "
  15293. class="correctCss"
  15294. :style="{ right: greyType == false ? '0' : '80px' }"
  15295. v-if="
  15296. !greyType &&
  15297. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15298. "
  15299. >{{ greyType == false ? lang.ssAddAnnotation : lang.ssCancelAdd }}</el-button
  15300. >
  15301. <el-button
  15302. @click="
  15303. aiCorrect(newEnglishList1[newEngIndex].cWork.engText, 4)
  15304. "
  15305. style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;"
  15306. v-if="
  15307. !greyType &&
  15308. userMes[0].userid == newEnglishList1[newEngIndex].correct
  15309. "
  15310. >{{lang.ssAIAnnotation}}</el-button
  15311. >
  15312. <el-button
  15313. @click="addCorrect"
  15314. style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;"
  15315. v-if="greyType"
  15316. >{{lang.ssConfirm}}</el-button
  15317. >
  15318. </div>
  15319. </div>
  15320. </div>
  15321. </div>
  15322. </div>
  15323. <span slot="footer" class="dialog-footer">
  15324. <el-button @click="engUpdateDialogVisible = false">{{lang.ssCancel}}</el-button>
  15325. <el-button type="primary" @click="addCorrect">{{ lang.ssConfirmBtn }}</el-button>
  15326. </span>
  15327. </el-dialog>
  15328. <englishEva
  15329. :evaEngJson="evaEngJson"
  15330. :engEvaDialogVisible.sync="engEvaDialogVisible"
  15331. :uid="userid"
  15332. :tType="tType"
  15333. :courseDetail="courseDetail"
  15334. ></englishEva>
  15335. <interVideo
  15336. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15337. :videoJson="videoJson"
  15338. :userid="userid"
  15339. :id="id"
  15340. :courseType="courseType"
  15341. :taskCount="taskCount"
  15342. :toolindex="toolindex"
  15343. :videoType="videoType"
  15344. ></interVideo>
  15345. <UpdateMore
  15346. :dialogVisibleMember.sync="dialogVisibleMember"
  15347. :cList="uploadStudentJuri"
  15348. :userid="userid"
  15349. :searchTN="worksSName2"
  15350. @setPlname="setPlname"
  15351. ></UpdateMore>
  15352. <!-- <wordCloud
  15353. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15354. :data="wordCloudData"
  15355. ></wordCloud> -->
  15356. <el-dialog
  15357. :title="lang.ssWordCloud"
  15358. :visible.sync="dialogVisibleWordCloud"
  15359. width="30%"
  15360. class="dialog_diy"
  15361. :before-close="handleClose">
  15362. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15363. </el-dialog>
  15364. <el-dialog
  15365. :title="lang.ssPickPerson"
  15366. :visible.sync="dialogVisiblePickPeople"
  15367. width="650px"
  15368. :before-close="handleClose"
  15369. class="dialog_diy"
  15370. center
  15371. >
  15372. <div class="pick_box">
  15373. <div
  15374. class="noWorksName"
  15375. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15376. v-for="(item, index) in uploadStudentJuri"
  15377. :key="index"
  15378. @click="pickStudent(item)"
  15379. >
  15380. {{ item.name }}
  15381. </div>
  15382. </div>
  15383. </el-dialog>
  15384. <EnglishVoice
  15385. :EnglishVoiceDialog.sync="EnglishVoiceDialog"
  15386. :englishVoiceJson="englishVoiceJson"
  15387. :userid="userid"
  15388. :id="id"
  15389. :courseType="courseType"
  15390. :taskCount="taskCount"
  15391. :toolindex="toolindex"
  15392. @selectSWorks="selectSWorks"
  15393. @selectStudent="selectStudent"
  15394. :englishVoiceJsonWork="englishVoiceJsonWork"
  15395. ></EnglishVoice>
  15396. <checkEnglishVoice
  15397. :englishVoiceJson="englishVoiceJson"
  15398. :userid="userid"
  15399. :dialogVisibleENScore.sync="dialogVisibleENScore"
  15400. :commentDetail="commentDetail"
  15401. :courseDetail="courseDetail"
  15402. :wScore="wScore"
  15403. :scoreDetail="scoreDetail"
  15404. @selectSWorks="selectSWorks"
  15405. @selectStudent="selectStudent"
  15406. ></checkEnglishVoice>
  15407. <el-dialog
  15408. :title="lang.ssTeacherScoring"
  15409. :visible.sync="markScoreVisible"
  15410. :append-to-body="true"
  15411. width="1000px"
  15412. :fullscreen="markfullscreen"
  15413. :before-close="markScorehandleClose"
  15414. class="markScore_diy"
  15415. >
  15416. <div slot="title">
  15417. <div class="markScore_diyTit">
  15418. <div>{{ tType == 1 ? lang.ssTeacherScoring : lang.ssHomework }}</div>
  15419. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15420. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15421. </div>
  15422. </div>
  15423. </div>
  15424. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15425. <!-- @updateDocSco="updateDocSco" -->
  15426. <markDialog
  15427. :key="markScoreVisible.toString()"
  15428. :uid="markScoreUid"
  15429. :toolIndex="markScoretoolIndex"
  15430. :stage="courseType"
  15431. :task="taskCount"
  15432. :taskDetail="
  15433. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15434. "
  15435. :tool="toolListS"
  15436. :languageSetting="languageSetting"
  15437. :scoTit="markScoreTit"
  15438. :tType="tType"
  15439. :sIsOpen="sIsOpen"
  15440. :markScoreworksStudent="markScoreworksStudent"
  15441. :markScoreVisible="markScoreVisible"
  15442. ></markDialog>
  15443. </el-dialog>
  15444. <!-- 查看Txt,md等文件 -->
  15445. <el-dialog
  15446. :title="lang.ssFilePreview"
  15447. :visible.sync="dialogVisibleTxt"
  15448. width="50%"
  15449. :before-close="handleCloseTxt"
  15450. class="dialog_diy"
  15451. :class="{ fullStyle: full }"
  15452. >
  15453. <div slot="title" class="header-title">
  15454. <div style="color: #fff">{{lang.ssFilePreview}}</div>
  15455. <div style="position: absolute; top: 19px; right: 50px">
  15456. <img
  15457. src="../../assets/full.png"
  15458. style="height: 16px; cursor: pointer"
  15459. alt=""
  15460. @click="fullTools"
  15461. />
  15462. </div>
  15463. </div>
  15464. <div>{{ TxtMd }}</div>
  15465. </el-dialog>
  15466. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15467. <choseWorksDetailDialog
  15468. ref="choseWorksDetailDialogRef"
  15469. :worksStudentData="worksStudent"
  15470. :noWorksSData="noWorksS"
  15471. :chapInfoListData="chapInfoList"
  15472. :courseType="courseType"
  15473. :taskCount="taskCount"
  15474. :tType="tType"
  15475. :sIsOpen="sIsOpen"
  15476. :courseDetail="courseDetail"
  15477. :groupStudent2="groupStudent"
  15478. :groupStudentUid2="groupStudentUid"
  15479. :oid="oid"
  15480. :org="org"
  15481. @getCourseDetail="getCourseDetail"
  15482. @selectSLook="selectSLook"
  15483. @selectSWorks="selectSWorks"
  15484. @selectStudent="selectStudent"
  15485. @deleteWorks="deleteWorks"
  15486. @openTools="openTools"
  15487. @openWord="openWord"
  15488. @openScore="openScore"
  15489. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15490. />
  15491. <el-dialog
  15492. :visible.sync="confirmOpenDig"
  15493. width="500px"
  15494. :modal="false"
  15495. class="confirmOpenDigCss dialog_diyCopy"
  15496. :before-close="handleClose">
  15497. <div style="display: flex;align-items: center;">
  15498. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15499. <span>"{{ courseDetail.title }}"{{ lang.ssCourseStarted }}</span>
  15500. </div>
  15501. <div style="margin: 20px 0 35px;">
  15502. <div style="margin-bottom: 10px;">{{ lang.ssFollowTeacherLearning }}</div>
  15503. <div>{{ lang.ssStudyHard }}</div>
  15504. </div>
  15505. <div style="text-align: center;">
  15506. <el-button type="primary" style="width: 95%;" @click="confirmOpen">{{ lang.ssStartLearningBtn }}</el-button>
  15507. </div>
  15508. </el-dialog>
  15509. <appStoreC ref="appStoreC"
  15510. :sStudent="sStudent"
  15511. :courseType="courseType"
  15512. :taskCount="taskCount"
  15513. :toolindex="toolindex"
  15514. @selectSWorks="selectSWorks"
  15515. @selectStudent="selectStudent"
  15516. ></appStoreC>
  15517. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15518. </div>
  15519. </template>
  15520. <script>
  15521. import "../../common/aws-sdk-2.235.1.min.js";
  15522. // import pdf from "../components/pdf3";
  15523. import pdf from "../components/vpdf";
  15524. import AskStatic from "../components/askStatic";
  15525. import AskStatic2 from "../components/askStatic2";
  15526. import AnswerData2 from "../components/answerData2";
  15527. import AnswerData from "../components/answerData";
  15528. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15529. import EditorBar from "../tools/wangEnduit.vue";
  15530. import Table from "../tools/table.vue";
  15531. import Time from "../tools/time.vue";
  15532. import Mind from "../tools/jsmind.vue";
  15533. import Sunburst from "../tools/sunburst";
  15534. import SeeBoard from "../tools/seeBoard";
  15535. import * as imageConversion from "image-conversion";
  15536. import Audio from "../components/audio.vue";
  15537. import ImgDraw from "../tools/imgDraw/imgDraw";
  15538. import { Empty } from "element-ui";
  15539. import RecordRTC from "recordrtc";
  15540. import interVideo from "../interVideo/index.vue";
  15541. import UpdateMore from "../updateMore/updateMore.vue";
  15542. import wordCloud from "../wordCloud/index.vue";
  15543. import axios from "axios";
  15544. import JSZip from "jszip";
  15545. import FileSaver from "file-saver";
  15546. import onlineWrite from "./commpont/onlineWrite";
  15547. import englishEva from "../components/englishEva";
  15548. import * as Diff from "diff";
  15549. import EnglishVoice from "../EnglishVoice2/index.vue";
  15550. import checkEnglishVoice from "../checkEnglishVoice/index.vue";
  15551. import correctText from "../components/correctText.vue";
  15552. import scoreItem from "../scoreList/scoreItem.vue";
  15553. import scoreZong from "../scoreZong/index.vue";
  15554. import classRoomHelper from "../classRoomHelper/index.vue";
  15555. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15556. import markScore from "./commpont/markScore";
  15557. import markDialog from "./commpont/markDialog";
  15558. import evaTable from "./commpont/evaTable";
  15559. import { v4 as uuidv4 } from "uuid";
  15560. import statisticalAnalysis from "../components/statisticalAnalysis.vue";
  15561. import choseWorksDetailDialog from "../components/choseWorksDetailDialog.vue";
  15562. import appStoreC from "../components/appStoreC.vue";
  15563. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15564. import katex from 'katex'
  15565. import 'katex/dist/katex.min.css'
  15566. import choseWordCloud from '../components/choseWordCloud.vue'
  15567. import { myMixin } from "@/mixins/mixin.js"
  15568. import { tools as toolsList } from "@/common/tools2.js";
  15569. var OpenCC = require("opencc-js");
  15570. let converter = OpenCC.Converter({
  15571. from: "hk",
  15572. to: "cn"
  15573. });
  15574. const getFile = url => {
  15575. return new Promise((resolve, reject) => {
  15576. var credentials = {
  15577. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15578. secretAccessKey: "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"
  15579. }; //秘钥形式的登录上传
  15580. window.AWS.config.update(credentials);
  15581. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15582. let url2 = url;
  15583. let _url2 = "";
  15584. if (
  15585. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15586. ) {
  15587. _url2 = url2.split(
  15588. "https://view.officeapps.live.com/op/view.aspx?src="
  15589. )[1];
  15590. } else {
  15591. _url2 = url2;
  15592. }
  15593. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15594. let name = decodeURIComponent(
  15595. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  15596. );
  15597. var params = {
  15598. Bucket: "ccrb",
  15599. Key: name
  15600. };
  15601. s3.getObject(params, function(err, data) {
  15602. if (err) {
  15603. console.log(err, err.stack);
  15604. resolve({ data: 1 });
  15605. } else {
  15606. resolve({ data: data.Body });
  15607. console.log(data);
  15608. } // sxuccessful response
  15609. });
  15610. // axios({
  15611. // method: "get",
  15612. // url,
  15613. // responseType: "blob",
  15614. // })
  15615. // .then((data) => {
  15616. // resolve({ data: data.data });
  15617. // })
  15618. // .catch((error) => {
  15619. // resolve({ data: 1 });
  15620. // // reject(error.toString());
  15621. // });
  15622. });
  15623. };
  15624. export default {
  15625. mixins: [ myMixin ],
  15626. components: {
  15627. choseWordCloud,
  15628. EditorBar,
  15629. Time,
  15630. pdf,
  15631. AskStatic,
  15632. AskStatic2,
  15633. Mind,
  15634. Sunburst,
  15635. SeeBoard,
  15636. AnswerData2,
  15637. AnswerData,
  15638. sortToolWorkShow,
  15639. Audio,
  15640. ImgDraw,
  15641. Table,
  15642. interVideo,
  15643. UpdateMore,
  15644. wordCloud,
  15645. onlineWrite,
  15646. englishEva,
  15647. EnglishVoice,
  15648. checkEnglishVoice,
  15649. correctText,
  15650. scoreItem,
  15651. classRoomHelper,
  15652. scoreZong,
  15653. markScore,
  15654. markDialog,
  15655. evaTable,
  15656. statisticalAnalysis,
  15657. choseWorksDetailDialog,
  15658. appStoreC,
  15659. cocoFlowDia,
  15660. studentClassRoomHelper
  15661. },
  15662. data() {
  15663. return {
  15664. // 学校或者组织随机码
  15665. Code2:'',
  15666. startTime: "",
  15667. // 是否允许学生查看内容资料 2不可以 1可以
  15668. IsStulook:false,
  15669. homeWorkLoading:false,
  15670. wordCloudKey: 0,
  15671. bg: null,
  15672. drawShow: false,
  15673. dialogVisible: false,
  15674. dialogVisiblePl: false,
  15675. commentDialogVisible: false,
  15676. dialogVisibleMember: false,
  15677. dialogVisibleWordCloud: false,
  15678. videoVisible: false,
  15679. isStar: false,
  15680. studentEvalDialogVisible: false,
  15681. studentEvalDialogVisibleTeacher: false,
  15682. dialogVisibleSelect: false,
  15683. dialogVisibleSelectTeacher: false,
  15684. dialogVisibleScore: false,
  15685. dialogVisibleENScore: false,
  15686. dialogVisibleSentence: false,
  15687. dialogVisibleSentenceTeacher: false,
  15688. dialogVisibleSentence1: false,
  15689. dialogVisibleWorks: false,
  15690. dialogVisibleTable: false,
  15691. dialogVisibleTableTeacher: false,
  15692. dialogVisibleWord: false,
  15693. dialogVisibleWordTeacher: false,
  15694. dialogVisibleTable2: false,
  15695. dialogVisibleTable3: false,
  15696. dialogVisibleGroupWork: false,
  15697. dialogVisibleUpdateGroup: false,
  15698. dialogVisibleDeleteGroup: false,
  15699. dialogVisibleSname: false,
  15700. dialogVisibleVideo: false,
  15701. dialogVisiblePickPeople: false,
  15702. engDialogVisible: false,
  15703. engUpdateDialogVisible: false,
  15704. engEvaDialogVisible: false,
  15705. evaEngJson: {
  15706. teacherJson: {},
  15707. studentJson: {},
  15708. message: {}
  15709. },
  15710. isNoUserid: false,
  15711. engListLength: 0,
  15712. engWid: "",
  15713. newEnglishList: {
  15714. engTitle: "",
  15715. engText: ""
  15716. },
  15717. toolsList: toolsList,
  15718. newEnglishList1: [],
  15719. oldEnglishJson: {},
  15720. oldEnglishJson1: {},
  15721. englishList1: {},
  15722. englishList: {},
  15723. myAnswerList1: {},
  15724. topHeight: 0,
  15725. newEngIndex: -1,
  15726. englishToolIndex: 0,
  15727. userMes: {},
  15728. englishToolIndex: 0,
  15729. worksSName: "",
  15730. classJuri: [],
  15731. uploadStudentJuri: [],
  15732. uploadCid: "",
  15733. snameWid: "",
  15734. sStudent: {},
  15735. sTool: "",
  15736. bzText: "",
  15737. commentDetail: [],
  15738. selectAnswer: [],
  15739. videoDetail: {},
  15740. selectJson: {},
  15741. englishList: {},
  15742. topHeight: 0,
  15743. eScore: { eBzText: "", eStar: [] },
  15744. id: this.$route.query.courseId,
  15745. userid: this.$route.query.userid,
  15746. classId: this.$route.query.cid,
  15747. role: this.$route.query.role,
  15748. // courseTypeLine: this.$route.query.type,
  15749. oid: this.$route.query.oid,
  15750. org: this.$route.query.org,
  15751. tType: this.$route.query.tType,
  15752. courseType: this.$route.query.type,
  15753. screenType: this.$route.query.screenType,
  15754. tcid2: this.$route.query.tcid,
  15755. tcid: "",
  15756. pptImgUrl: "",
  15757. pptImgUrl1: "",
  15758. commentText: "",
  15759. full: false,
  15760. sIsOpen: false, //允许学生查看所有作业
  15761. IsLookOpen: false, //禁止学生查看所有阶段
  15762. IsFollow: false, //开启跟随模式
  15763. pzDialog: false,
  15764. contentDialog: false,
  15765. mlDialog: false,
  15766. type: 1,
  15767. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15768. sentenceList1: [],
  15769. tableJson: [],
  15770. tableJsonO: [],
  15771. wordJson: [],
  15772. wordJsonO: [],
  15773. vedio: [],
  15774. text: [],
  15775. textList: [],
  15776. line: [],
  15777. lineList: [],
  15778. chapTools: [],
  15779. chapToolList: [],
  15780. file: [],
  15781. fileC: [],
  15782. vedioTime: [],
  15783. upToolImg: "",
  15784. preTime: 0,
  15785. rateList: {
  15786. ca: 0
  15787. },
  15788. rateParams: [],
  15789. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15790. studyJuri: [
  15791. {
  15792. content: "",
  15793. cover: [],
  15794. upVedio: [],
  15795. upFile: []
  15796. }
  15797. ],
  15798. isClose: 0,
  15799. plworkFile: [],
  15800. mr: require("../../assets/vedioPic.png"),
  15801. word: require("../../assets/icon/isWord.png"),
  15802. word2: require("../../assets/icon/word2.png"),
  15803. video: require("../../assets/icon/isVideo.png"),
  15804. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15805. likes: require("../../assets/icon/comment/likes.png"),
  15806. scoreImg: require("../../assets/score.png"),
  15807. courseDetail: {},
  15808. reply: "",
  15809. isSelect: false,
  15810. chapInfo: [],
  15811. chapInfoList: [],
  15812. taskCount: 0,
  15813. imgList: [],
  15814. noImgList: [],
  15815. pzList: [],
  15816. timeWorkList: [],
  15817. PlTextList: [
  15818. "Excellent!",
  15819. "nice!",
  15820. this.lang.ssVeryCreative,
  15821. this.lang.ssNotBad,
  15822. this.lang.ssKeepTrying
  15823. ],
  15824. isClickNav: "",
  15825. navId: "",
  15826. playerOptions: {
  15827. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15828. autoplay: false, //如果true,浏览器准备好时开始回放。
  15829. muted: false, // 默认情况下将会消除任何音频。
  15830. loop: false, // 导致视频一结束就重新开始。
  15831. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15832. language: "zh-CN",
  15833. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15834. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15835. sources: [
  15836. {
  15837. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15838. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15839. }
  15840. ],
  15841. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15842. // poster: dataRes.imgUrl, //你的封面地址
  15843. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15844. controlBar: {
  15845. timeDivider: true, //当前时间和持续时间的分隔符
  15846. durationDisplay: true, //显示持续时间
  15847. remainingTimeDisplay: false, //是否显示剩余时间功能
  15848. fullscreenToggle: true //全屏按钮
  15849. }
  15850. },
  15851. playerOptions1: {
  15852. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15853. autoplay: false, //如果true,浏览器准备好时开始回放。
  15854. muted: false, // 默认情况下将会消除任何音频。
  15855. loop: false, // 导致视频一结束就重新开始。
  15856. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15857. language: "zh-CN",
  15858. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15859. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15860. sources: [
  15861. {
  15862. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15863. src: "" //url地址require("../../../assets/media/aaa.mp4")
  15864. }
  15865. ],
  15866. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15867. // poster: dataRes.imgUrl, //你的封面地址
  15868. notSupportedMessage: this.lang.ssVideoNotSupported, //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15869. controlBar: {
  15870. timeDivider: true, //当前时间和持续时间的分隔符
  15871. durationDisplay: true, //显示持续时间
  15872. remainingTimeDisplay: false, //是否显示剩余时间功能
  15873. fullscreenToggle: true //全屏按钮
  15874. }
  15875. },
  15876. playerO: {},
  15877. noneBtnImg: false,
  15878. proVisible: false,
  15879. proVisible2: false,
  15880. progress: 0,
  15881. isFinishSize: 0,
  15882. isAllSize: 0,
  15883. questionAnswer: "",
  15884. answerQ: "", //问答标题
  15885. rateJson: [],
  15886. wbCount: 0,
  15887. wordCount: 0,
  15888. mindCount: 0,
  15889. askCount: 0,
  15890. noteCount: 0,
  15891. mindNetWorkCount: 0,
  15892. libraryCount: 0,
  15893. workCount: 0,
  15894. timeCount: 0,
  15895. answerCount: 0,
  15896. trainCount: 0,
  15897. evalCount: 0,
  15898. dialogImageUrl: "",
  15899. pictureDialog: false,
  15900. toolTypeList: [],
  15901. dialogVisible1: false,
  15902. dialogVisible2: false,
  15903. dialogVisible3: false,
  15904. dialogVisible6: false,
  15905. dialogVisible4: false,
  15906. isNoHomeWork: false,
  15907. dialogVisible5: false,
  15908. dialogVisible5Teacher: false,
  15909. dialogVisibleChoice: false,
  15910. dialogVisibleChoiceTeacher: false,
  15911. answerDialogVisible: false,
  15912. answerDialogVisibleTeacher: false,
  15913. juriVisible: false,
  15914. timeDialogVisible: false,
  15915. replyDialogVisible: false,
  15916. toolDialogVisible: false,
  15917. replyIndex: 0,
  15918. replyPid: "",
  15919. radio: [],
  15920. isAsk: false,
  15921. askJson: {
  15922. askCount: 1,
  15923. askTitle: "",
  15924. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  15925. },
  15926. testJson: {},
  15927. videoType: 0,
  15928. checkJson: [],
  15929. askList: [],
  15930. answerList: [],
  15931. navList: [],
  15932. addPzDialog: false,
  15933. pzConText: "",
  15934. worksStudent: [],
  15935. isCloseList: [],
  15936. workStudent: [],
  15937. groupStudent: [],
  15938. groupStudentUid: [],
  15939. noWorksS: [],
  15940. isWorksS: [],
  15941. noWorksStudent: [],
  15942. toolindex: 0,
  15943. toolDetailIndex: null,
  15944. groupIndex: 0,
  15945. workTypeB: false,
  15946. workTypeC: false,
  15947. isAnswer: false,
  15948. isHovered: false,
  15949. isHovered1: false,
  15950. isHovered2: false,
  15951. commentTagShow: 0,
  15952. timer: null,
  15953. timer2: null,
  15954. opertimer: null,
  15955. showType: '',
  15956. fileType: 0,
  15957. showPDF: false,
  15958. noteName: "",
  15959. evaJuri: [],
  15960. evalua: "",
  15961. eTitle: "",
  15962. eName: "",
  15963. eJson: {},
  15964. fid: "", //一级
  15965. sid: "", //二级
  15966. tid: "", //二级
  15967. typeMode: 1,
  15968. eJSONNum: 0,
  15969. Etype: 1,
  15970. data: {
  15971. meta: {
  15972. name: "example",
  15973. author: "dd@163.com",
  15974. version: "0.2"
  15975. },
  15976. format: "node_array",
  15977. data: [{ id: "root", isroot: true, topic: "" }]
  15978. },
  15979. fullDialogVisible: false,
  15980. fulltype: "",
  15981. fullUrl: "",
  15982. commentIndexJson: {},
  15983. Stbodywidth: 0,
  15984. ispzType: 0,
  15985. pzType: 1,
  15986. wScore: 0,
  15987. scoreDetail: "",
  15988. videoStart: false,
  15989. recorder: null,
  15990. groupJson: {},
  15991. islock: false,
  15992. groupJson2: {},
  15993. dialogVisibleGroup: false,
  15994. dialogVisibleGroup2: false,
  15995. updateGroupArray: [],
  15996. updateGroupUser: {},
  15997. deleteGroupUser: [],
  15998. deleteGroupArray: {},
  15999. checkChair: "",
  16000. checkDeleteGroup: [],
  16001. inviteCode: "",
  16002. courseGroupStudent: [],
  16003. courseGroupStudentUid: [],
  16004. courseGroup: {},
  16005. isGroup: false,
  16006. toolIndex: null,
  16007. tool: {},
  16008. isWorkTool: [
  16009. 16,
  16010. 32,
  16011. 57,
  16012. 4,
  16013. 45,
  16014. 15,
  16015. 1,
  16016. 3,
  16017. 6,
  16018. 7,
  16019. 26,
  16020. 41,
  16021. 47,
  16022. 48,
  16023. 52,
  16024. 50,
  16025. 40
  16026. ], //, 40
  16027. videoJson: {},
  16028. toolType: 0,
  16029. checktoolArray: [],
  16030. vChapterData: [],
  16031. isUpdateToolDetail: false,
  16032. isUpdateToolDetail1: false,
  16033. updateToolDetailInner: "",
  16034. checkboxList: [],
  16035. plIndex: "",
  16036. worksSName2: "",
  16037. worksSid: "",
  16038. wordCloudData: [],
  16039. isPickStudent: [],
  16040. pzStype: 1,
  16041. downLoading: false,
  16042. greyType: false,
  16043. correctWord: [],
  16044. EnglishVoiceDialog: false,
  16045. englishVoiceJson: {},
  16046. englishVoiceJsonWork: [],
  16047. scoreList: {
  16048. listdata: [],
  16049. isScoreList: []
  16050. },
  16051. classRoomHelperWidth: "85px",
  16052. orgArray: [],
  16053. oidArray: [],
  16054. refreshKey: 0,
  16055. AIloading: [],
  16056. // 为了刷新ai评分loading的时候用的
  16057. worksStudentCopy: [],
  16058. loopLoading: [],
  16059. markScoreVisible: false,
  16060. markScoretoolIndex: 0,
  16061. markScoreUid: "",
  16062. markScoreTit: {},
  16063. markfullscreen: false,
  16064. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16065. markScoreworksStudent: [],
  16066. finalMarkList: -1,
  16067. isaiNum: 0,
  16068. dialogVisibleTxt: false,
  16069. TxtMd: "",
  16070. languageSetting: 0, //0中文 1繁体 2英文
  16071. toolListS: [],
  16072. commentDetailCopy: "",
  16073. splitScreenData: {
  16074. isOpen: false,
  16075. userId: "",
  16076. uid: "",
  16077. myUid: "",
  16078. loading: false,
  16079. behavior: null
  16080. },
  16081. confirmOpenDig:false,
  16082. confirmOpenDigData:'',
  16083. diffKey:"1",
  16084. getCourseGroupLoading: false,
  16085. selectSWorksLoading:false,
  16086. selectStudentLoading:false,
  16087. selectSLookLoading:false,
  16088. getPickLoading:false,
  16089. selectPzLoading:false,
  16090. getSplitScreenDataLoading:false,
  16091. };
  16092. },
  16093. watch:{
  16094. taskCount(newVal) {
  16095. console.log('newVal',newVal);
  16096. this.AIloading = [];
  16097. this.loopLoading = [];
  16098. this.worksStudent.forEach((e, index) => {
  16099. this.loopLoading.push({ loading: false });
  16100. this.AIloading.push([]);
  16101. e.forEach(k => {
  16102. this.AIloading[index].push({ loading: false, sco: 0 });
  16103. });
  16104. });
  16105. if(this.tType == 1){
  16106. this.refreshAssembly();
  16107. }
  16108. },
  16109. worksStudent: {
  16110. handler(newVal, oldVal) {
  16111. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16112. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16113. // console.log('worksStudent',sum1,sum2);
  16114. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  16115. this.AIloading = [];
  16116. this.loopLoading = [];
  16117. this.worksStudent.forEach((e, index) => {
  16118. this.loopLoading.push({ loading: false });
  16119. this.AIloading.push([]);
  16120. e.forEach(k => {
  16121. this.AIloading[index].push({ loading: false, sco: 0 });
  16122. });
  16123. });
  16124. if(this.tType == 1){
  16125. this.refreshAssembly();
  16126. }
  16127. }
  16128. },
  16129. deep:true,
  16130. }
  16131. },
  16132. methods: {
  16133. // 获取学校或组织随机码
  16134. getCode2(){
  16135. let params = {
  16136. oid: this.oid,
  16137. org: this.org
  16138. };
  16139. this.ajax
  16140. .get(this.$store.state.api + "getCode2", params)
  16141. .then(res => {
  16142. this.Code2 = res.data[0] && res.data[0][0] && res.data[0][0].code2 ? res.data[0][0].code2 : ''
  16143. })
  16144. .catch(err => {
  16145. console.error(err);
  16146. });
  16147. },
  16148. getAIJ() {
  16149. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16150. let oid = res.data[0];
  16151. let org = res.data[1];
  16152. let oidArray = [];
  16153. let orgArray = [];
  16154. oid.forEach(i => oidArray.push(i.oid));
  16155. org.forEach(i => orgArray.push(i.oid));
  16156. this.orgArray = orgArray;
  16157. this.oidArray = oidArray;
  16158. });
  16159. },
  16160. //查看应用中心作业
  16161. openCocoFlow(w){
  16162. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16163. },
  16164. // 评分弹框全屏
  16165. markFullScreenBtn() {
  16166. this.markfullscreen = !this.markfullscreen;
  16167. },
  16168. insertMemorandum(_html) {
  16169. //保存行为操作
  16170. //variable
  16171. //btn
  16172. let params = [
  16173. {
  16174. uid: this.userid,
  16175. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16176. content: _html
  16177. }
  16178. ];
  16179. console.log(params);
  16180. this.ajax
  16181. .post(
  16182. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16183. params
  16184. )
  16185. .then(res => {
  16186. if (res.data == 1) {
  16187. console.log("保存操作成功");
  16188. } else {
  16189. console.log("保存操作失败");
  16190. }
  16191. })
  16192. .catch(e => {
  16193. console.log("保存操作失败");
  16194. console.log(e);
  16195. });
  16196. },
  16197. // 获取文档id
  16198. createFileid(url) {
  16199. let _this = this;
  16200. return new Promise((resolve, reject) => {
  16201. try {
  16202. _this.ajax
  16203. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16204. url: url
  16205. })
  16206. .then(res => {
  16207. let _data = res.data.FunctionResponse;
  16208. if (_data.result && _data.result.id) {
  16209. resolve(_data.result.id);
  16210. } else {
  16211. resolve(1);
  16212. }
  16213. })
  16214. .catch(function(error) {
  16215. resolve(1);
  16216. });
  16217. } catch (e) {
  16218. resolve(1);
  16219. }
  16220. });
  16221. },
  16222. // 一键重置
  16223. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16224. let jude = false;
  16225. this.AIloading.forEach((e, index) => {
  16226. if (index == toolIndex) {
  16227. e.forEach(k => {
  16228. if (k.loading == true) jude = true;
  16229. });
  16230. }
  16231. });
  16232. if (jude) return this.$message.info(this.lang.ssAIScoringInProgress);
  16233. this.$confirm(this.lang.ssConfirmReset)
  16234. .then(_ => {
  16235. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16236. })
  16237. .catch(_ => {});
  16238. },
  16239. // 一键重置
  16240. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16241. for (let index = 0; index < con.length; index++) {
  16242. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16243. }
  16244. this.$message.success(this.lang.ssResetCompleted);
  16245. this.worksStudent.forEach((e, index) => {
  16246. if (toolIndex == index) {
  16247. console.log("6666");
  16248. e.forEach((i, inx) => {
  16249. let mk = `markSco${index}${inx}`;
  16250. this.$refs[mk][0].getData();
  16251. });
  16252. }
  16253. });
  16254. },
  16255. // 一键重置
  16256. allEmptySco(uid, stage, task, toolIndex) {
  16257. let params = [
  16258. {
  16259. cid: this.id,
  16260. uid: uid,
  16261. s: stage,
  16262. t: task,
  16263. tool: toolIndex ? toolIndex : ""
  16264. }
  16265. ];
  16266. return new Promise(resolve => {
  16267. this.ajax
  16268. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16269. .then(res => {
  16270. resolve(1);
  16271. })
  16272. .catch(err => {
  16273. console.error(err);
  16274. });
  16275. }).catch(error => {
  16276. console.log(error);
  16277. });
  16278. },
  16279. // AI评分循环打分
  16280. async loopEva(
  16281. con,
  16282. tit,
  16283. stage,
  16284. task,
  16285. toolIndex,
  16286. toolDetail,
  16287. taskDetail,
  16288. toolList
  16289. ) {
  16290. let jude = false;
  16291. this.AIloading.forEach((e, index) => {
  16292. if (index == toolIndex) {
  16293. e.forEach(k => {
  16294. if (k.loading == true) jude = true;
  16295. });
  16296. }
  16297. });
  16298. if (jude) return this.$message.info(this.lang.ssNoConcurrentAIScoring);
  16299. this.AIloading.forEach((e, index) => {
  16300. if (index == toolIndex) {
  16301. e.forEach(k => {
  16302. k.loading = true;
  16303. });
  16304. }
  16305. });
  16306. this.loopLoading[toolIndex].loading = true;
  16307. let laws = "";
  16308. let std = "";
  16309. let text = "";
  16310. if (toolList && toolList.eList && toolList.eList.length) {
  16311. for (let i = 0; i < toolList.eList.length; i++) {
  16312. if (toolList.eList[i].isai == 1) {
  16313. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16314. }
  16315. }
  16316. for (let i = 0; i < toolList.eList.length; i++) {
  16317. if (toolList.eList[i].isai == 1) {
  16318. let a = toolList.eList[i].detail;
  16319. if (isNaN(parseFloat(a)) && a) {
  16320. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16321. } else {
  16322. var result = a;
  16323. }
  16324. std += `纬度${i}:“${result}”, \n`;
  16325. }
  16326. }
  16327. for (let i = 0; i < toolList.eList.length; i++) {
  16328. if (toolList.eList[i].isai == 1) {
  16329. let a = toolList.eList[i].detail;
  16330. if (isNaN(parseFloat(a)) && a) {
  16331. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16332. } else {
  16333. var result = a;
  16334. }
  16335. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16336. }
  16337. }
  16338. } else {
  16339. let titRule = 0;
  16340. let titRule2 = 0;
  16341. tit.forEach((e, index) => {
  16342. if (!e.isai) {
  16343. e.isai = 1;
  16344. }
  16345. });
  16346. tit.forEach((e, index) => {
  16347. if (e.isai == 1) {
  16348. titRule2++;
  16349. if (e.rule) {
  16350. titRule++;
  16351. }
  16352. }
  16353. });
  16354. if (titRule != titRule2) {
  16355. this.AIloading.forEach((e, index) => {
  16356. if (index == toolIndex) {
  16357. e.forEach(k => {
  16358. k.loading = false;
  16359. });
  16360. }
  16361. });
  16362. this.loopLoading[toolIndex].loading = false;
  16363. this.$message.info(this.lang.ssDetailGenerating);
  16364. return;
  16365. }
  16366. for (let i = 0; i < tit.length; i++) {
  16367. if (tit[i].isai == 1) {
  16368. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16369. }
  16370. }
  16371. for (let i = 0; i < tit.length; i++) {
  16372. if (tit[i].isai == 1) {
  16373. let a = tit[i].detail;
  16374. if (isNaN(parseFloat(a)) && a) {
  16375. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16376. } else {
  16377. var result = a;
  16378. }
  16379. std += `纬度${i}:“${result}”, \n`;
  16380. }
  16381. }
  16382. for (let i = 0; i < tit.length; i++) {
  16383. if (tit[i].isai == 1) {
  16384. let a = tit[i].detail;
  16385. if (isNaN(parseFloat(a)) && a) {
  16386. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16387. } else {
  16388. var result = a;
  16389. }
  16390. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16391. }
  16392. }
  16393. }
  16394. let forAllList = [];
  16395. // console.log('con',con)
  16396. for (let i = 0; i < con.length; i++) {
  16397. let _fileid = "";
  16398. let wok = con[i].works;
  16399. // console.log('con[i].type',con[i].type);
  16400. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16401. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16402. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16403. _fileid = await this.createFileid(con[i].works);
  16404. } else {
  16405. this.AIloading[toolIndex][i].loading = false;
  16406. continue;
  16407. }
  16408. }
  16409. // console.log('con[i].type',con[i])
  16410. console.log('con[i].type',con[i].type)
  16411. if (_fileid == 1 || con[i].type == 3) {
  16412. this.AIloading[toolIndex][i].loading = false;
  16413. continue;
  16414. }
  16415. let msg = ''
  16416. if(con[i].type == 20){
  16417. msg = `#NOTICE#
  16418. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16419. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16420. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16421. - 拥有客观公正的态度,确保评分结果公平合理。
  16422. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16423. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16424. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16425. Language: ${this.getLang()}
  16426. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16427. Instruction: Based on the context, follow "Format example", write content.
  16428. #目标#
  16429. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16430. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16431. #评分资料#
  16432. 评价标准:${std}
  16433. 评价细则:${laws}
  16434. 等级:${text}
  16435. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16436. 具体你步骤如下:
  16437. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16438. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16439. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16440. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16441. ### 理论框架
  16442. ### 教育目标分类理论
  16443. 1. 基本原理:
  16444. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16445. - 有助于明确教学活动期望达成的目标类型。
  16446. - 为评价教学成果提供了分类框架。
  16447. 2. 具体应用:
  16448. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16449. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16450. - 对比不同对话内容在目标达成度上的差异进行评分。
  16451. ### 教学评价理论
  16452. 1. 基本原理:
  16453. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16454. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16455. - 强调评价的客观性、全面性和发展性。
  16456. 2. 具体应用:
  16457. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16458. - 考量对话对学生学习效果的影响来给出评分。
  16459. - 根据评价结果提出改进和发展的建议。
  16460. ### 对话分析理论
  16461. 1. 基本原理:
  16462. - 着重对对话结构、话语功能、交互模式等进行分析。
  16463. - 揭示对话中的信息流动、话语权分配等情况。
  16464. - 有助于理解对话参与者之间的关系和互动效果。
  16465. 2. 具体应用:
  16466. - 剖析“小可ai助手”与学生对话的结构合理性。
  16467. - 分析话语功能是否有助于学习和评价目的。
  16468. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16469. #输出格式#
  16470. [${text}{'comment':'评语(150个汉字左右)'}]
  16471. 注意检查输出评语不超过50字`
  16472. }else{
  16473. msg = `NOTICE
  16474. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16475. Language: ${this.getLang()}
  16476. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16477. Instruction: Based on the context, follow "Format example", write content.
  16478. #目标#
  16479. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16480. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16481. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16482. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16483. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16484. #评分资料#
  16485. 评价标准:${std}
  16486. 评价细则:${laws}
  16487. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16488. 任务描述:${taskDetail}
  16489. 工具描述:${toolDetail}
  16490. #输出要求#
  16491. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16492. “评语”控制在150字左右。
  16493. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16494. #输出格式#
  16495. [${text}{'comment':'评语(150个汉字左右)'}]
  16496. `;
  16497. }
  16498. let mk = `markSco${toolIndex}${i}`;
  16499. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16500. msg,
  16501. con[i].userid,
  16502. stage,
  16503. task,
  16504. _fileid,
  16505. con[i].type
  16506. );
  16507. forAllList.push(mkAwit);
  16508. }
  16509. Promise.all(forAllList)
  16510. .then(values => {
  16511. console.log("values", values);
  16512. this.$message({
  16513. message: this.lang.ssEvaluationSuccess,
  16514. type: "success"
  16515. });
  16516. // this.refreshKey++
  16517. // this.worksStudent.forEach((e,index)=>{
  16518. // if(toolIndex == index){
  16519. // e.forEach((i,inx)=>{
  16520. // let mk = `markSco${index}${inx}`
  16521. // this.$refs[mk][0].getData()
  16522. // })
  16523. // }
  16524. // })
  16525. this.AIloading[toolIndex].forEach(e => {
  16526. e.loading = false;
  16527. });
  16528. this.loopLoading[toolIndex].loading = false;
  16529. })
  16530. .catch(reason => {
  16531. console.error("reasonreasonreasonreasonreason", reason);
  16532. // 输出“失败原因”
  16533. });
  16534. },
  16535. // 获取评价细则
  16536. againEva(i, k) {
  16537. let msg = `NOTICE
  16538. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16539. Language: ${this.getLang()}
  16540. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16541. Instruction: Based on the context, follow "Format example", write content.
  16542. #Context
  16543. ##要求
  16544. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16545. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16546. ##制定标准资料
  16547. 评价维度:${
  16548. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16549. }
  16550. 维度描述:${
  16551. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16552. }
  16553. # Format example
  16554. ==
  16555. 0 星,作业内容与作业要求无关;
  16556. 1 星,没有识别问题和需求;
  16557. 2 星,问题或需求没有被清晰理解或准确识别;
  16558. 3 星,问题或需求的一部分被识别;
  16559. 4 星,问题或需求的大部分被识别;
  16560. 5 星,问题或需求都被识别。
  16561. ==
  16562. `;
  16563. let params = {
  16564. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16565. message: [
  16566. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16567. ],
  16568. session_name: uuidv4(),
  16569. userId: this.userid,
  16570. file_ids: [],
  16571. model: "gpt-4o-2024-11-20"
  16572. };
  16573. // console.log('params',params);
  16574. this.ajax
  16575. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16576. .then(response => {
  16577. let data = response.data.FunctionResponse;
  16578. // console.log("data", data);
  16579. if (data.message) {
  16580. let content = data.message;
  16581. var regex = new RegExp("==([^=]+)==");
  16582. let match = content.match(regex);
  16583. if (match) {
  16584. content = match[1].trim().replaceAll(" ", "");
  16585. // 获取匹配到的内容并去除两端空格
  16586. // console.log('contentInsideDoubleEquals', content);
  16587. if (
  16588. content.indexOf(this.lang.ssStar0) == -1 ||
  16589. content.indexOf(this.lang.ssStar2) == -1 ||
  16590. content.indexOf(this.lang.ssStar3) == -1 ||
  16591. content.indexOf(this.lang.ssStar4) == -1 ||
  16592. content.indexOf(this.lang.ssStar5) == -1
  16593. ) {
  16594. console.log("未有星级。");
  16595. this.againEva(i, k);
  16596. return;
  16597. }
  16598. // return
  16599. } else {
  16600. console.log("未找到匹配的内容。");
  16601. this.againEva(i, k);
  16602. return;
  16603. }
  16604. let elist = JSON.parse(
  16605. JSON.stringify(
  16606. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16607. )
  16608. );
  16609. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16610. elist.rule = JSON.parse(
  16611. JSON.stringify(content.replaceAll("#", ""))
  16612. );
  16613. this.$set(
  16614. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16615. k,
  16616. elist
  16617. );
  16618. this.$forceUpdate();
  16619. let params2 = [
  16620. {
  16621. cid: this.id,
  16622. chapters: JSON.stringify(this.chapInfoList),
  16623. uid: this.userid,
  16624. unitIndex: this.courseType
  16625. }
  16626. ];
  16627. this.ajax
  16628. .post(this.$store.state.api + "updateWorkNew4", params2)
  16629. .then(res => {
  16630. this.getCourseDetail(2);
  16631. this.$forceUpdate();
  16632. })
  16633. .catch(err => {
  16634. this.$message.error(this.lang.ssNetworkPoor);
  16635. console.error(err);
  16636. });
  16637. // 进行进一步处理或解析outputContent
  16638. // } else {
  16639. // console.log("No match found for # Output section.");
  16640. // }
  16641. }
  16642. })
  16643. .catch(error => {
  16644. console.log(error);
  16645. });
  16646. },
  16647. // 关闭评分弹框
  16648. markScorehandleClose(done) {
  16649. // this.refreshKey++
  16650. this.worksStudent.forEach((e, index) => {
  16651. if (this.markScoretoolIndex == index) {
  16652. e.forEach((i, inx) => {
  16653. let mk = `markSco${index}${inx}`;
  16654. if (this.$refs[mk] && this.$refs[mk][0]) {
  16655. this.$refs[mk][0].getData();
  16656. }
  16657. });
  16658. }
  16659. });
  16660. done();
  16661. },
  16662. // 关闭txtMd预览弹框
  16663. handleCloseTxt(done) {
  16664. this.TxtMd = "";
  16665. done();
  16666. },
  16667. // Txt,Md作业查看
  16668. lookTxt(val) {
  16669. this.dialogVisibleTxt = true;
  16670. this.TxtMd = "";
  16671. getFile(val).then(res => {
  16672. this.TxtMd = res.data;
  16673. });
  16674. },
  16675. // 组件刷新
  16676. refreshAssembly() {
  16677. this.refreshKey++;
  16678. },
  16679. updateLoading(payload) {
  16680. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16681. },
  16682. handleShow(toolIndex, val) {
  16683. let mk = `markSco${toolIndex}${val}`;
  16684. // console.log(mk);
  16685. this.$refs[mk][0].getData();
  16686. },
  16687. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16688. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16689. // console.log('this.AIloading',this.AIloading)
  16690. let jude = false;
  16691. this.AIloading.forEach((e, index) => {
  16692. if (index == tidx) {
  16693. e.forEach(k => {
  16694. if (k.loading == true) jude = true;
  16695. });
  16696. }
  16697. });
  16698. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16699. if (val) return;
  16700. // console.log(uname,worksStudent,uid,tidx,titlist)
  16701. this.markScoreTit = titlist;
  16702. this.markScoreUid = uid;
  16703. this.toolListS = toolList;
  16704. this.markScoretoolIndex = tidx;
  16705. this.markScoreworksStudent = worksStudent;
  16706. this.markfullscreen = false;
  16707. this.markScoreVisible = true;
  16708. if (this.tType == 1) {
  16709. this.insertMemorandum(
  16710. `查看<span class="variable">${uname}</span>的作业`
  16711. );
  16712. }
  16713. },
  16714. // 点击markScore显示评分框
  16715. markScoreDig(data) {
  16716. // console.log('data',data)
  16717. let jude = false;
  16718. this.AIloading.forEach((e, index) => {
  16719. if (index == data.val2) {
  16720. e.forEach(k => {
  16721. if (k.loading == true) jude = true;
  16722. });
  16723. }
  16724. });
  16725. if (jude) return this.$message.info(this.lang.ssAIEvaluatingInProgress);
  16726. this.markScoreTit = data.tit;
  16727. this.markScoreUid = data.val;
  16728. this.markScoretoolIndex = data.val2;
  16729. this.markfullscreen = false;
  16730. this.markScoreVisible = true;
  16731. this.insertMemorandum(
  16732. `查看<span class="variable">${data.uname}</span>的作业`
  16733. );
  16734. },
  16735. // 刷新其他组件分数
  16736. refreshOther(v) {
  16737. // console.log('v',v)
  16738. this.AIloading[v.tid].forEach((e, i) => {
  16739. if (i == v.wid) {
  16740. e.loading = false;
  16741. }
  16742. });
  16743. // this.worksStudent.forEach((e,index)=>{
  16744. // if(toolIndex != index){
  16745. // e.forEach((i,inx)=>{
  16746. // let mk = `markSco${index}${inx}`
  16747. // this.$refs[mk][0].getData()
  16748. // })
  16749. // }
  16750. // })
  16751. },
  16752. updateDocSco(payload) {
  16753. // console.log('payload',payload)
  16754. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16755. },
  16756. gx() {
  16757. this.$forceUpdate();
  16758. },
  16759. isUpdateCorrect(t, p) {
  16760. if (this.greyType == false) {
  16761. this.isUpdateText = t;
  16762. this.greyType = true;
  16763. } else {
  16764. if (p == 1) {
  16765. this.newEnglishList.engText = this.isUpdateText;
  16766. } else if (p == 2) {
  16767. this.oldEnglishJson1.engText = this.isUpdateText;
  16768. } else if (p == 3) {
  16769. this.newEnglishList.engText = this.isUpdateText;
  16770. } else {
  16771. this.newEnglishList1[
  16772. this.newEngIndex
  16773. ].cWork.engText = this.isUpdateText;
  16774. }
  16775. this.greyType = false;
  16776. }
  16777. },
  16778. aiCorrect(t, p) {
  16779. let aiText = "";
  16780. const loading = this.$loading.service({
  16781. background: "rgba(255, 255, 255)",
  16782. target: document.querySelectorAll(".loadingText")[0]
  16783. });
  16784. let param = {
  16785. model: "gpt-3.5-turbo",
  16786. temperature: 0,
  16787. max_tokens: 2048,
  16788. top_p: 1,
  16789. frequency_penalty: 0,
  16790. presence_penalty: 0,
  16791. messages: [
  16792. {
  16793. role: "user",
  16794. content: `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`
  16795. }
  16796. ],
  16797. uid: this.userid,
  16798. stream: false
  16799. };
  16800. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16801. res => {
  16802. if (
  16803. res.data.FunctionResponse &&
  16804. res.data.FunctionResponse.result &&
  16805. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16806. ) {
  16807. this.$message.error(this.lang.ssEssayTooLongForAI);
  16808. return;
  16809. }
  16810. aiText = res.data.FunctionResponse.choices[0].message.content;
  16811. aiText = aiText.replace(/%/g, "%25");
  16812. // let w = "";
  16813. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16814. // for(var k = 0;k<a.length;k++){
  16815. // //diffWordsWithSpace
  16816. // if(a.length > 1){
  16817. // if(a[k].added == true){
  16818. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16819. // }else if(a[k].removed == true){
  16820. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16821. // }else{
  16822. // w += '<span>' + a[k].value + '</span>';
  16823. // }
  16824. // }else{
  16825. // if(p == 1){
  16826. // w = this.newEnglishList.engText;
  16827. // }else if(p == 2){
  16828. // w = this.oldEnglishJson1.engText;
  16829. // }else if(p == 3){
  16830. // w = this.newEnglishList.engText;
  16831. // }else{
  16832. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16833. // }
  16834. // }
  16835. // }
  16836. if (p == 1) {
  16837. this.newEnglishList.engText = aiText;
  16838. } else if (p == 2) {
  16839. this.oldEnglishJson1.engText = aiText;
  16840. } else if (p == 3) {
  16841. this.newEnglishList.engText = aiText;
  16842. } else {
  16843. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16844. }
  16845. loading.close();
  16846. },
  16847. err => {
  16848. console.log(err);
  16849. loading.close();
  16850. }
  16851. );
  16852. },
  16853. addToolChoose() {
  16854. if (!this.checktoolArray.length) {
  16855. this.$message.error(this.lang.ssSelectTaskToAdd);
  16856. return;
  16857. }
  16858. if (
  16859. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16860. this.taskCount
  16861. ].toolChoose[0].tool.length
  16862. ) {
  16863. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16864. this.taskCount
  16865. ].toolChoose[0].tool = this.checktoolArray;
  16866. } else {
  16867. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16868. this.taskCount
  16869. ].toolChoose.push({
  16870. tool: this.checktoolArray,
  16871. toolDetail: "",
  16872. toolType: 0,
  16873. askCount: 1,
  16874. askTitle: "",
  16875. askJson: [{ askstitle: "", askItem: 1, checkList: [] }]
  16876. });
  16877. }
  16878. let params = [
  16879. {
  16880. cid: this.id,
  16881. chapters: JSON.stringify(this.chapInfoList),
  16882. uid: this.userid,
  16883. unitIndex: this.courseType
  16884. }
  16885. ];
  16886. this.ajax
  16887. .post(this.$store.state.api + "updateWorkNew4", params)
  16888. .then(res => {
  16889. this.$message({
  16890. message: this.lang.ssAddSuccess,
  16891. type: "success"
  16892. });
  16893. this.checktoolArray = [];
  16894. this.getCourseDetail(2);
  16895. this.checkBz(
  16896. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16897. this.taskCount
  16898. ].toolChoose.length - 1
  16899. );
  16900. this.toolDialogVisible = false;
  16901. this.refreshCourse();
  16902. this.$forceUpdate();
  16903. })
  16904. .catch(err => {
  16905. console.error(err);
  16906. });
  16907. },
  16908. checkBz(index) {
  16909. this.isUpdateToolDetail = false;
  16910. this.$forceUpdate();
  16911. setTimeout(() => {
  16912. document.scrollingElement.scrollTop =
  16913. document.querySelectorAll(".filebox")[index].offsetTop +
  16914. document.querySelector(".student_body").offsetTop;
  16915. }, 500);
  16916. },
  16917. updateToolDetail(i, type) {
  16918. if (
  16919. !this.isUpdateToolDetail1 &&
  16920. type == 2 &&
  16921. (this.courseDetail.userid == this.userid ||
  16922. (this.courseDetail.course_teacher &&
  16923. this.courseDetail.course_teacher.indexOf(this.userid) != -1))
  16924. ) {
  16925. this.toolDetailIndex = i;
  16926. this.isUpdateToolDetail1 = true;
  16927. setTimeout(() => {
  16928. this.updateToolDetailInner = JSON.parse(
  16929. JSON.stringify(
  16930. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16931. this.taskCount
  16932. ].toolChoose[i].toolDetail
  16933. )
  16934. );
  16935. document.querySelector(".checkTextArea").focus();
  16936. }, 0);
  16937. } else if (this.isUpdateToolDetail1 && type != 2) {
  16938. // this.toolDetailIndex = i;
  16939. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16940. this.taskCount
  16941. ].toolChoose[i].toolDetail = JSON.parse(
  16942. JSON.stringify(this.updateToolDetailInner)
  16943. );
  16944. let params = [
  16945. {
  16946. cid: this.id,
  16947. chapters: JSON.stringify(this.chapInfoList),
  16948. uid: this.userid,
  16949. unitIndex: this.courseType
  16950. }
  16951. ];
  16952. this.ajax
  16953. .post(this.$store.state.api + "updateWorkNew4", params)
  16954. .then(res => {
  16955. this.isUpdateToolDetail1 = false;
  16956. this.$message({
  16957. message: this.lang.ssModifySuccess,
  16958. type: "success"
  16959. });
  16960. this.toolDetailIndex = null;
  16961. this.updateToolDetailInner = "";
  16962. this.getCourseDetail(2);
  16963. this.$forceUpdate();
  16964. })
  16965. .catch(err => {
  16966. console.error(err);
  16967. });
  16968. } else if (this.isUpdateToolDetail1 && type == 2) {
  16969. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16970. this.taskCount
  16971. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16972. JSON.stringify(this.updateToolDetailInner)
  16973. );
  16974. let params = [
  16975. {
  16976. cid: this.id,
  16977. chapters: JSON.stringify(this.chapInfoList),
  16978. uid: this.userid,
  16979. unitIndex: this.courseType
  16980. }
  16981. ];
  16982. this.ajax
  16983. .post(this.$store.state.api + "updateWorkNew4", params)
  16984. .then(res => {
  16985. this.$message({
  16986. message: this.lang.ssModifySuccess,
  16987. type: "success"
  16988. });
  16989. this.toolDetailIndex = i;
  16990. this.isUpdateToolDetail1 = true;
  16991. setTimeout(() => {
  16992. this.updateToolDetailInner = JSON.parse(
  16993. JSON.stringify(
  16994. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16995. this.taskCount
  16996. ].toolChoose[i].toolDetail
  16997. )
  16998. );
  16999. document.querySelector(".checkTextArea").focus();
  17000. }, 0);
  17001. this.getCourseDetail(2);
  17002. this.$forceUpdate();
  17003. })
  17004. .catch(err => {
  17005. console.error(err);
  17006. });
  17007. }
  17008. },
  17009. jumpGj(i, j, k, l) {
  17010. // this.refreshAssembly();
  17011. for (var z = 0; z < this.navList.length; z++) {
  17012. for (var q = 0; q < this.navList[z].task.length; q++) {
  17013. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17014. this.navList[z].task[q].tool[w].isTool = false;
  17015. }
  17016. }
  17017. }
  17018. console.log('6666');
  17019. this.navList[i].task[j].tool[k].isTool = !this.navList[i].task[j].tool[k]
  17020. .isTool;
  17021. var a = document.scrollingElement;
  17022. let target = document.querySelector(`#gj${k}`);
  17023. if (target) {
  17024. // target.scrollIntoView(true);
  17025. // setTimeout(() => {
  17026. // a.scrollTop = a.scrollTop - 150;
  17027. // }, 0);
  17028. target.scrollIntoView();
  17029. setTimeout(()=>{
  17030. let scrollBody = document.querySelector('.body_student').parentElement
  17031. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17032. }, 0);
  17033. }
  17034. this.navId = "";
  17035. let flag = this.courseType == i;
  17036. let flag2 = this.taskCount == j;
  17037. if (l) {
  17038. this.courseType = i;
  17039. // this.navId = l;
  17040. this.taskCount = j;
  17041. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17042. this.selectPz();
  17043. this.getHomeWork();
  17044. this.getCourseDetail(2);
  17045. if (flag) {
  17046. if (flag2) {
  17047. this.insertMemorandum(
  17048. `选择<span class="variable">工具${k + 1}:${
  17049. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17050. }</span>`
  17051. );
  17052. } else {
  17053. this.insertMemorandum(
  17054. `选择<span class="variable">任务${j + 1}${
  17055. this.navList[i].task[j].taskName
  17056. ? ":" + this.navList[i].task[j].taskName
  17057. : ""
  17058. }</span>→<span class="variable">工具${k + 1}:${
  17059. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17060. }</span>`
  17061. );
  17062. }
  17063. } else {
  17064. this.insertMemorandum(
  17065. `选择<span class="variable">阶段${i + 1}${
  17066. this.navList[i].dyName ? ":" + this.navList[i].dyName : ""
  17067. }</span>→<span class="variable">任务${j + 1}${
  17068. this.navList[i].task[j].taskName
  17069. ? ":" + this.navList[i].task[j].taskName
  17070. : ""
  17071. }</span>→<span class="variable">工具${k + 1}:${
  17072. this.toolsList[this.navList[i].task[j].tool[k].tool]
  17073. }</span>`
  17074. );
  17075. }
  17076. }
  17077. if ((this.courseDetail.userid == this.userid ||
  17078. (this.courseDetail.course_teacher &&
  17079. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  17080. this.IsFollow) {
  17081. this.setCTask();
  17082. }
  17083. },
  17084. addTools2(i) {
  17085. if (i == 4) {
  17086. // this.openTools2(4);
  17087. this.$message.error(this.lang.ssNotAvailable);
  17088. return;
  17089. }
  17090. if (i == 45) {
  17091. // this.openTools2(45);
  17092. this.$message.error(this.lang.ssNotAvailable);
  17093. return;
  17094. }
  17095. if (i == 47) {
  17096. // this.openTools2(47);
  17097. this.$message.error(this.lang.ssNotAvailable);
  17098. return;
  17099. }
  17100. if (i == 49) {
  17101. // this.openTools2(49);
  17102. this.$message.error(this.lang.ssNotAvailable);
  17103. return;
  17104. }
  17105. if (i == 62) {
  17106. // this.openTools(itemTaskIndex, 62, toolIndex);
  17107. this.$message.error(this.lang.ssNotAvailable);
  17108. return;
  17109. }
  17110. if (i == 15) {
  17111. // this.openTools(itemTaskIndex, 15, toolIndex);
  17112. this.$message.error(this.lang.ssNotAvailable);
  17113. return;
  17114. }
  17115. if (i == 40) {
  17116. // this.openTools(itemTaskIndex, 40, toolIndex);
  17117. this.$message.error(this.lang.ssNotAvailable);
  17118. return;
  17119. }
  17120. if (i == 41) {
  17121. // this.openTools(itemTaskIndex, 41, toolIndex);
  17122. this.$message.error(this.lang.ssNotAvailable);
  17123. return;
  17124. }
  17125. if (i == 42) {
  17126. // this.openTools(itemTaskIndex, 42, toolIndex);
  17127. this.$message.error(this.lang.ssNotAvailable);
  17128. return;
  17129. }
  17130. if (this.checktoolArray.length > 0) {
  17131. if (this.checktoolArray.indexOf(i) != -1) {
  17132. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17133. } else {
  17134. this.checktoolArray = [];
  17135. this.checktoolArray.push(i);
  17136. }
  17137. } else {
  17138. this.checktoolArray.push(i);
  17139. }
  17140. this.$forceUpdate();
  17141. },
  17142. jump() {
  17143. window.topU.postMessage({ tools: "43" }, "*");
  17144. },
  17145. getUpdateMore(f, checkboxList, searchTN, index) {
  17146. this.dialogVisibleMember = f;
  17147. this.checkboxList = checkboxList;
  17148. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17149. this.plIndex = index;
  17150. },
  17151. setPlname(a) {
  17152. if (this.plworkFile.length) {
  17153. this.plworkFile[this.plIndex].username = a;
  17154. } else {
  17155. this.worksSName = a;
  17156. }
  17157. this.dialogVisibleMember = false;
  17158. },
  17159. previewImg(url, w) {
  17160. this.$hevueImgPreview(url);
  17161. if (w) {
  17162. this.insertMemorandum(
  17163. `查看<span class="variable">${w.sName}</span>的作业`
  17164. );
  17165. }
  17166. },
  17167. checkImg(list) {
  17168. if (!list.length) {
  17169. return;
  17170. }
  17171. this.$hevueImgPreview({
  17172. multiple: true, // 开启多图预览模式
  17173. imgList: list // 需要预览的多图数组
  17174. });
  17175. },
  17176. change(val) {
  17177. console.log(val);
  17178. },
  17179. goTo(path) {
  17180. this.$router.push(path);
  17181. },
  17182. handlePictureCardPreview(url) {
  17183. this.dialogImageUrl = url;
  17184. this.pictureDialog = true;
  17185. },
  17186. clean(type) {
  17187. if (type == 1) {
  17188. this.studyJuri[0].cover.splice(0, 1);
  17189. } else if (type == 2) {
  17190. this.studyJuri[0].upVedio.splice(0, 1);
  17191. } else {
  17192. this.studyJuri[0].upFile.splice(0, 1);
  17193. }
  17194. },
  17195. clean2(index) {
  17196. this.plworkFile.splice(index, 1);
  17197. },
  17198. handleClose(done) {
  17199. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17200. this.videoDetail.sources[0].src = "";
  17201. }
  17202. this.commentIndexJson = {};
  17203. done();
  17204. },
  17205. fullTools() {
  17206. this.full = !this.full;
  17207. },
  17208. imgChange(file, fileList, type) {
  17209. if (type == 1) {
  17210. var _tmp = this.studyJuri[0].cover;
  17211. } else if (type == 2) {
  17212. var _tmp = this.studyJuri[0].upVedio;
  17213. } else {
  17214. var _tmp = this.studyJuri[0].upFile;
  17215. }
  17216. this.noneBtnImg = _tmp.length >= 1;
  17217. },
  17218. setContent(bool) {
  17219. this.contentDialog = bool;
  17220. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17221. document.querySelector(".workd_media").style.height = "650px";
  17222. } else if (document.querySelector(".workd_media")) {
  17223. document.querySelector(".workd_media").style.height = "auto";
  17224. }
  17225. },
  17226. setContent2(bool) {
  17227. this.mlDialog = bool;
  17228. if (
  17229. bool &&
  17230. this.contentDialog &&
  17231. document.querySelector(".workd_media")
  17232. ) {
  17233. document.querySelector(".workd_media").style.height = "650px";
  17234. } else if (document.querySelector(".workd_media")) {
  17235. document.querySelector(".workd_media").style.height = "auto";
  17236. }
  17237. },
  17238. openToolAll() {
  17239. this.toolDialogVisible = true;
  17240. },
  17241. addImg(e) {
  17242. var el = e.currentTarget;
  17243. // this.$message.success('触发上传')
  17244. el.getElementsByTagName("input")[0].click();
  17245. e.target.value = "";
  17246. },
  17247. addSelectAnswer() {
  17248. let params = [
  17249. {
  17250. uid: this.userid,
  17251. cid: this.id,
  17252. stage: this.courseType,
  17253. task: this.taskCount,
  17254. tool: this.toolindex,
  17255. content: this.selectAnswer.answer,
  17256. type: 7
  17257. }
  17258. ];
  17259. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17260. this.homeWorkLoading = true
  17261. this.ajax
  17262. .post(this.$store.state.api + "addCourseWorks", params)
  17263. .then(res => {
  17264. this.$message({
  17265. message: this.lang.ssSubmitSuccess,
  17266. type: "success"
  17267. });
  17268. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17269. setTimeout(() => {
  17270. this.homeWorkLoading = false
  17271. }, 500);
  17272. this.dialogVisibleSelect = false;
  17273. // this.selectAnswer = {};
  17274. this.selectSWorks();
  17275. this.selectStudent();
  17276. })
  17277. .catch(err => {
  17278. this.$message.error(this.lang.ssSubmitFailed);
  17279. console.error(err);
  17280. setTimeout(() => {
  17281. this.homeWorkLoading = false
  17282. }, 500);
  17283. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17284. });
  17285. },
  17286. addSelectAnswerTeacher() {
  17287. let params = [
  17288. {
  17289. uid: this.sStudent.userid,
  17290. cid: this.id,
  17291. stage: this.courseType,
  17292. task: this.taskCount,
  17293. tool: this.toolindex,
  17294. content: this.selectAnswer.answer,
  17295. type: 7
  17296. }
  17297. ];
  17298. this.ajax
  17299. .post(this.$store.state.api + "addCourseWorks", params)
  17300. .then(res => {
  17301. this.$message({
  17302. message: this.lang.ssSubmitSuccess,
  17303. type: "success"
  17304. });
  17305. this.dialogVisibleSelectTeacher = false;
  17306. // this.selectAnswer = {};
  17307. this.selectSWorks();
  17308. this.selectStudent();
  17309. })
  17310. .catch(err => {
  17311. this.$message.error(this.lang.ssSubmitFailed);
  17312. console.error(err);
  17313. });
  17314. },
  17315. addSenWorks() {
  17316. for (var i = 0; i < this.sentenceList.length; i++) {
  17317. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17318. if (
  17319. this.sentenceList[i].chooseSenList[j] == undefined ||
  17320. this.sentenceList[i].chooseSenList[j] == ""
  17321. ) {
  17322. this.$message.error(this.lang.ssFillAnswersComplete);
  17323. return;
  17324. }
  17325. }
  17326. }
  17327. let params = [
  17328. {
  17329. uid: this.userid,
  17330. cid: this.id,
  17331. stage: this.courseType,
  17332. task: this.taskCount,
  17333. tool: this.toolindex,
  17334. content: JSON.stringify(this.sentenceList),
  17335. type: 9
  17336. }
  17337. ];
  17338. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17339. this.homeWorkLoading = true
  17340. this.ajax
  17341. .post(this.$store.state.api + "addCourseWorks", params)
  17342. .then(res => {
  17343. this.$message({
  17344. message: this.lang.ssSubmitSuccess,
  17345. type: "success"
  17346. });
  17347. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17348. setTimeout(() => {
  17349. this.homeWorkLoading = false
  17350. }, 500);
  17351. this.dialogVisibleSentence = false;
  17352. // this.selectAnswer = {};
  17353. this.selectSWorks();
  17354. this.selectStudent();
  17355. })
  17356. .catch(err => {
  17357. this.$message.error(this.lang.ssSubmitFailed);
  17358. console.error(err);
  17359. setTimeout(() => {
  17360. this.homeWorkLoading = false
  17361. }, 500);
  17362. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17363. });
  17364. },
  17365. addSenWorksTeacher() {
  17366. for (var i = 0; i < this.sentenceList.length; i++) {
  17367. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17368. if (
  17369. this.sentenceList[i].chooseSenList[j] == undefined ||
  17370. this.sentenceList[i].chooseSenList[j] == ""
  17371. ) {
  17372. this.$message.error(this.lang.ssFillAnswersComplete);
  17373. return;
  17374. }
  17375. }
  17376. }
  17377. let params = [
  17378. {
  17379. uid: this.sStudent.userid,
  17380. cid: this.id,
  17381. stage: this.courseType,
  17382. task: this.taskCount,
  17383. tool: this.toolindex,
  17384. content: JSON.stringify(this.sentenceList),
  17385. type: 9
  17386. }
  17387. ];
  17388. this.ajax
  17389. .post(this.$store.state.api + "addCourseWorks", params)
  17390. .then(res => {
  17391. this.$message({
  17392. message: this.lang.ssSubmitSuccess,
  17393. type: "success"
  17394. });
  17395. this.dialogVisibleSentenceTeacher = false;
  17396. // this.selectAnswer = {};
  17397. this.selectSWorks();
  17398. this.selectStudent();
  17399. })
  17400. .catch(err => {
  17401. this.$message.error(this.lang.ssSubmitFailed);
  17402. console.error(err);
  17403. });
  17404. },
  17405. returnTableText() {
  17406. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  17407. confirmButtonText: this.lang.ssConfirm,
  17408. cancelButtonText: this.lang.ssCancel,
  17409. type: "warning"
  17410. })
  17411. .then(() => {
  17412. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17413. })
  17414. .catch(() => {});
  17415. },
  17416. addTableWorks() {
  17417. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17418. this.homeWorkLoading = true
  17419. let params = [
  17420. {
  17421. uid: this.userid,
  17422. cid: this.id,
  17423. stage: this.courseType,
  17424. task: this.taskCount,
  17425. tool: this.toolindex,
  17426. content: JSON.stringify(this.tableJson),
  17427. type: 10
  17428. }
  17429. ];
  17430. this.ajax
  17431. .post(this.$store.state.api + "addCourseWorks", params)
  17432. .then(res => {
  17433. this.$message({
  17434. message: this.lang.ssSubmitSuccess,
  17435. type: "success"
  17436. });
  17437. setTimeout(() => {
  17438. this.homeWorkLoading = false
  17439. }, 500);
  17440. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17441. this.dialogVisibleTable = false;
  17442. // this.selectAnswer = {};
  17443. this.selectSWorks();
  17444. this.selectStudent();
  17445. })
  17446. .catch(err => {
  17447. this.$message.error(this.lang.ssSubmitFailed);
  17448. console.error(err);
  17449. setTimeout(() => {
  17450. this.homeWorkLoading = false
  17451. }, 500);
  17452. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17453. });
  17454. },
  17455. tableRowClassName({ row, rowIndex }) {
  17456. if ((rowIndex + 1) % 2 === 0) {
  17457. return "even_row";
  17458. } else {
  17459. return "";
  17460. }
  17461. },
  17462. addTableWorksTeacher() {
  17463. let params = [
  17464. {
  17465. uid: this.sStudent.userid,
  17466. cid: this.id,
  17467. stage: this.courseType,
  17468. task: this.taskCount,
  17469. tool: this.toolindex,
  17470. content: JSON.stringify(this.tableJson),
  17471. type: 10
  17472. }
  17473. ];
  17474. this.ajax
  17475. .post(this.$store.state.api + "addCourseWorks", params)
  17476. .then(res => {
  17477. this.$message({
  17478. message: this.lang.ssSubmitSuccess,
  17479. type: "success"
  17480. });
  17481. this.dialogVisibleTableTeacher = false;
  17482. // this.selectAnswer = {};
  17483. this.selectSWorks();
  17484. this.selectStudent();
  17485. })
  17486. .catch(err => {
  17487. this.$message.error(this.lang.ssSubmitFailed);
  17488. console.error(err);
  17489. });
  17490. },
  17491. returnWordText() {
  17492. this.$confirm(this.lang.ssConfirmRestoreTemplate, this.lang.ssPrompt, {
  17493. confirmButtonText: this.lang.ssConfirm,
  17494. cancelButtonText: this.lang.ssCancel,
  17495. type: "warning"
  17496. })
  17497. .then(() => {
  17498. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17499. })
  17500. .catch(() => {});
  17501. },
  17502. addWordWorks() {
  17503. let params = [
  17504. {
  17505. uid: this.userid,
  17506. cid: this.id,
  17507. stage: this.courseType,
  17508. task: this.taskCount,
  17509. tool: this.toolindex,
  17510. content: JSON.stringify(this.wordJson),
  17511. type: 13,
  17512. atool: 52
  17513. }
  17514. ];
  17515. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17516. this.homeWorkLoading = true
  17517. this.ajax
  17518. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17519. .then(res => {
  17520. this.$message({
  17521. message: this.lang.ssSubmitSuccess,
  17522. type: "success"
  17523. });
  17524. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17525. setTimeout(() => {
  17526. this.homeWorkLoading = false
  17527. }, 500);
  17528. this.dialogVisibleWord = false;
  17529. // this.selectAnswer = {};
  17530. this.selectSWorks();
  17531. this.selectStudent();
  17532. })
  17533. .catch(err => {
  17534. this.$message.error(this.lang.ssSubmitFailed);
  17535. console.error(err);
  17536. setTimeout(() => {
  17537. this.homeWorkLoading = false
  17538. }, 500);
  17539. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17540. });
  17541. },
  17542. addWordWorksTeacher() {
  17543. let params = [
  17544. {
  17545. uid: this.sStudent.userid,
  17546. cid: this.id,
  17547. stage: this.courseType,
  17548. task: this.taskCount,
  17549. tool: this.toolindex,
  17550. content: JSON.stringify(this.wordJson),
  17551. type: 13,
  17552. atool: 52
  17553. }
  17554. ];
  17555. this.ajax
  17556. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17557. .then(res => {
  17558. this.$message({
  17559. message: this.lang.ssSubmitSuccess,
  17560. type: "success"
  17561. });
  17562. this.dialogVisibleWordTeacher = false;
  17563. // this.selectAnswer = {};
  17564. this.selectSWorks();
  17565. this.selectStudent();
  17566. })
  17567. .catch(err => {
  17568. this.$message.error(this.lang.ssSubmitFailed);
  17569. console.error(err);
  17570. });
  17571. },
  17572. addCourseWorksCopy(i) {
  17573. let arr = this.workStudent[this.toolindex].filter(e => {
  17574. return (e.userid = this.userid);
  17575. });
  17576. if (arr.length > 0) {
  17577. this.$confirm(this.lang.ssConfirmSubmitAgain, this.lang.ssPrompt, {
  17578. confirmButtonText: this.lang.ssConfirm,
  17579. cancelButtonText: this.lang.ssCancel,
  17580. type: "warning"
  17581. })
  17582. .then(() => {
  17583. this.addCourseWorks(i);
  17584. })
  17585. .catch(() => {});
  17586. } else {
  17587. this.addCourseWorks(i);
  17588. }
  17589. },
  17590. addCourseWorks(i) {
  17591. var typesql;
  17592. if (this.fileType === 0) {
  17593. typesql = 1;
  17594. } else if (this.fileType === 1) {
  17595. typesql = 4;
  17596. } else if (this.fileType === 2) {
  17597. typesql = 5;
  17598. } else if (this.fileType === 3) {
  17599. typesql = 12;
  17600. }
  17601. if (!this.studyJuri[0].cover[0].url) {
  17602. this.$message.error(this.lang.ssUploadFileRequired);
  17603. return;
  17604. }
  17605. let params = [
  17606. {
  17607. uid: this.userid,
  17608. cid: this.id,
  17609. stage: this.courseType,
  17610. task: i,
  17611. tool: this.toolindex,
  17612. content: this.studyJuri[0].cover[0].url,
  17613. type: typesql
  17614. }
  17615. ];
  17616. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17617. this.homeWorkLoading = true
  17618. this.ajax
  17619. .post(this.$store.state.api + "addCourseWorksR1", params)
  17620. .then(res => {
  17621. this.$message({
  17622. message: this.lang.ssSubmitSuccess,
  17623. type: "success"
  17624. });
  17625. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17626. setTimeout(() => {
  17627. this.homeWorkLoading = false
  17628. }, 500);
  17629. this.studyJuri[0].cover = [];
  17630. this.dialogVisible = false;
  17631. this.getCourseDetail(2);
  17632. })
  17633. .catch(err => {
  17634. this.$message.error(this.lang.ssSubmitFailed);
  17635. console.error(err);
  17636. setTimeout(() => {
  17637. this.homeWorkLoading = false
  17638. }, 500);
  17639. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17640. });
  17641. },
  17642. addCourseWorksPl(i) {
  17643. let _files = this.plworkFile;
  17644. var c = 1;
  17645. for (var k = 0; k < _files.length; k++) {
  17646. if (!_files[k].username) {
  17647. c = 2;
  17648. }
  17649. }
  17650. if (c == 2) {
  17651. this.$message.error(this.lang.ssEnterStudentName);
  17652. return;
  17653. }
  17654. let params = [
  17655. {
  17656. ateacher: this.userid,
  17657. cid: this.id,
  17658. stage: this.courseType,
  17659. task: i,
  17660. tool: this.toolindex,
  17661. content: JSON.stringify(_files)
  17662. }
  17663. ];
  17664. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17665. this.homeWorkLoading = true
  17666. this.ajax
  17667. .post(this.$store.state.api + "addCourseWorksPl", params)
  17668. .then(res => {
  17669. this.$message({
  17670. message: this.lang.ssSubmitSuccess,
  17671. type: "success"
  17672. });
  17673. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17674. setTimeout(() => {
  17675. this.homeWorkLoading = false
  17676. }, 500);
  17677. this.plworkFile = [];
  17678. this.dialogVisiblePl = false;
  17679. this.getCourseDetail(2);
  17680. })
  17681. .catch(err => {
  17682. this.$message.error(this.lang.ssSubmitFailed);
  17683. console.error(err);
  17684. setTimeout(() => {
  17685. this.homeWorkLoading = false
  17686. }, 500);
  17687. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17688. });
  17689. },
  17690. addCourseWorks2(i) {
  17691. var typesql;
  17692. if (this.fileType === 0) {
  17693. typesql = 0;
  17694. } else if (this.fileType === 1) {
  17695. typesql = 1;
  17696. } else if (this.fileType === 2) {
  17697. typesql = 3;
  17698. } else if (this.fileType === 3) {
  17699. typesql = 12;
  17700. }
  17701. if (!this.studyJuri[0].cover[0].url) {
  17702. this.$message.error(this.lang.ssUploadFileRequired);
  17703. return;
  17704. }
  17705. let params = [
  17706. {
  17707. uid: this.userid,
  17708. cid: this.id,
  17709. stage: this.courseType,
  17710. task: i,
  17711. tool: this.toolindex,
  17712. content: JSON.stringify({
  17713. type: typesql,
  17714. groupIndex: this.groupIndex,
  17715. url: this.studyJuri[0].cover[0].url
  17716. }),
  17717. type: 11,
  17718. atool: 49,
  17719. text: ""
  17720. }
  17721. ];
  17722. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17723. this.homeWorkLoading = true
  17724. this.ajax
  17725. .post(this.$store.state.api + "addCourseWorks5", params)
  17726. .then(res => {
  17727. this.$message({
  17728. message: this.lang.ssSubmitSuccess,
  17729. type: "success"
  17730. });
  17731. setTimeout(() => {
  17732. this.homeWorkLoading = false
  17733. }, 500);
  17734. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17735. type: typesql,
  17736. groupIndex: this.groupIndex,
  17737. url: this.studyJuri[0].cover[0].url,
  17738. }),type: "course_tool_sub" }, "success")
  17739. this.studyJuri[0].cover = [];
  17740. this.dialogVisibleGroupWork = false;
  17741. this.getCourseDetail(2);
  17742. })
  17743. .catch(err => {
  17744. this.$message.error(this.lang.ssSubmitFailed);
  17745. console.error(err);
  17746. setTimeout(() => {
  17747. this.homeWorkLoading = false
  17748. }, 500);
  17749. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17750. type: typesql,
  17751. groupIndex: this.groupIndex,
  17752. url: this.studyJuri[0].cover[0].url,
  17753. }),type: "course_tool_sub" }, err)
  17754. });
  17755. },
  17756. addEnglishWork() {
  17757. this.myAnList = this.$refs["engJson"].myAnswerList;
  17758. if (
  17759. !this.myAnList.engTitle ||
  17760. !this.myAnList.engText ||
  17761. this.myAnList.engTitle == "" ||
  17762. this.myAnList.engText == ""
  17763. ) {
  17764. this.$message.error(this.lang.ssEnterEssayContent);
  17765. return;
  17766. }
  17767. let params = [
  17768. {
  17769. uid: this.userid,
  17770. cid: this.id,
  17771. stage: this.courseType,
  17772. task: this.taskCount,
  17773. tool: this.englishToolIndex,
  17774. content: JSON.stringify(this.myAnList),
  17775. type: 16,
  17776. atool: 69,
  17777. text: ""
  17778. }
  17779. ];
  17780. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  17781. this.homeWorkLoading = true
  17782. this.ajax
  17783. .post(this.$store.state.api + "addCourseWorks5", params)
  17784. .then(res => {
  17785. this.$message({
  17786. message: this.lang.ssSubmitSuccess,
  17787. type: "success"
  17788. });
  17789. setTimeout(() => {
  17790. this.homeWorkLoading = false
  17791. }, 500);
  17792. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17793. data: JSON.stringify(this.myAnList),
  17794. type: "course_tool_sub" }, "success")
  17795. this.myAnList = {};
  17796. this.englishList = {};
  17797. this.englishToolIndex = 0;
  17798. this.engDialogVisible = false;
  17799. this.selectSWorks();
  17800. this.selectStudent();
  17801. })
  17802. .catch(err => {
  17803. this.$message.error(this.lang.ssSubmitFailed);
  17804. setTimeout(() => {
  17805. this.homeWorkLoading = false
  17806. }, 500);
  17807. console.error(err);
  17808. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17809. data: JSON.stringify(this.myAnList),
  17810. type: "course_tool_sub" }, err)
  17811. });
  17812. },
  17813. addCourseWorksGong(i, data, tool) {
  17814. let params = [
  17815. {
  17816. uid: this.userid,
  17817. cid: this.id,
  17818. stage: this.courseType,
  17819. task: this.taskCount,
  17820. tool: i,
  17821. content: data,
  17822. type: 12,
  17823. atool: tool,
  17824. text: ""
  17825. }
  17826. ];
  17827. this.ajax
  17828. .post(this.$store.state.api + "addCourseWorks5", params)
  17829. .then(res => {
  17830. this.$message({
  17831. message: this.lang.ssSubmitSuccess,
  17832. type: "success"
  17833. });
  17834. this.studyJuri[0].cover = [];
  17835. this.selectSWorks();
  17836. this.selectStudent();
  17837. })
  17838. .catch(err => {
  17839. this.$message.error(this.lang.ssSubmitFailed);
  17840. console.error(err);
  17841. });
  17842. },
  17843. addCourseWorksGongTeacher(i, data, tool) {
  17844. let params = [
  17845. {
  17846. uid: this.sStudent.userid,
  17847. cid: this.id,
  17848. stage: this.courseType,
  17849. task: this.taskCount,
  17850. tool: i,
  17851. content: data,
  17852. type: 12,
  17853. atool: tool,
  17854. text: ""
  17855. }
  17856. ];
  17857. this.ajax
  17858. .post(this.$store.state.api + "addCourseWorks5", params)
  17859. .then(res => {
  17860. this.$message({
  17861. message: this.lang.ssSubmitSuccess,
  17862. type: "success"
  17863. });
  17864. this.studyJuri[0].cover = [];
  17865. this.dialogVisibleWorks = false;
  17866. this.selectSWorks();
  17867. this.selectStudent();
  17868. })
  17869. .catch(err => {
  17870. this.$message.error(this.lang.ssSubmitFailed);
  17871. console.error(err);
  17872. });
  17873. },
  17874. addCourseWorksGongPl(i, data, tool, type) {
  17875. let params = [
  17876. {
  17877. uid: this.sStudent.userid,
  17878. cid: this.id,
  17879. stage: this.courseType,
  17880. task: this.taskCount,
  17881. tool: i,
  17882. content: data,
  17883. type: type,
  17884. atool: tool,
  17885. text: ""
  17886. }
  17887. ];
  17888. this.ajax
  17889. .post(this.$store.state.api + "addCourseWorks5", params)
  17890. .then(res => {
  17891. this.$message({
  17892. message: this.lang.ssSubmitSuccess,
  17893. type: "success"
  17894. });
  17895. this.studyJuri[0].cover = [];
  17896. this.dialogVisibleWorks = false;
  17897. this.selectSWorks();
  17898. this.selectStudent();
  17899. })
  17900. .catch(err => {
  17901. this.$message.error(this.lang.ssSubmitFailed);
  17902. console.error(err);
  17903. });
  17904. },
  17905. addCourseWorksTeacher(i) {
  17906. var typesql;
  17907. if (this.sTool == 32) {
  17908. this.addCourseWorksGongTeacher(
  17909. this.toolindex,
  17910. this.studyJuri[0].cover[0].url,
  17911. this.sTool
  17912. );
  17913. return;
  17914. }
  17915. if (this.fileType === 0) {
  17916. typesql = 1;
  17917. } else if (this.fileType === 1) {
  17918. typesql = 4;
  17919. } else if (this.fileType === 2) {
  17920. typesql = 5;
  17921. } else if (this.fileType === 3) {
  17922. typesql = 12;
  17923. }
  17924. if (this.sTool == 50) {
  17925. this.addCourseWorksGongPl(
  17926. this.toolindex,
  17927. this.studyJuri[0].cover[0].url,
  17928. this.sTool,
  17929. typesql
  17930. );
  17931. return;
  17932. }
  17933. if (!this.studyJuri[0].cover[0].url) {
  17934. this.$message.error(this.lang.ssUploadFileRequired);
  17935. return;
  17936. }
  17937. let params = [
  17938. {
  17939. uid: this.sStudent.userid,
  17940. cid: this.id,
  17941. stage: this.courseType,
  17942. task: i,
  17943. tool: this.toolindex,
  17944. content: this.studyJuri[0].cover[0].url,
  17945. type: typesql,
  17946. ateacher: this.userid
  17947. }
  17948. ];
  17949. this.ajax
  17950. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17951. .then(res => {
  17952. this.$message({
  17953. message: this.lang.ssSubmitSuccess,
  17954. type: "success"
  17955. });
  17956. this.studyJuri[0].cover = [];
  17957. this.dialogVisibleWorks = false;
  17958. this.getCourseDetail(2);
  17959. })
  17960. .catch(err => {
  17961. this.$message.error(this.lang.ssSubmitFailed);
  17962. console.error(err);
  17963. });
  17964. },
  17965. selectUploadStudent(type) {
  17966. const loading = this.$loading.service({
  17967. background: "rgba(255, 255, 255, 0.7)",
  17968. target: document.body
  17969. });
  17970. let params = {
  17971. cid: this.uploadCid,
  17972. oid: this.oid,
  17973. cn: ""
  17974. };
  17975. this.ajax
  17976. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17977. .then(res => {
  17978. loading.close();
  17979. var studentK = [];
  17980. if (this.isWorksS[this.toolindex].length > 0) {
  17981. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17982. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17983. }
  17984. studentK = studentK.join(",");
  17985. }
  17986. this.uploadStudentJuri = res.data[0].filter(el => {
  17987. return studentK.indexOf(el.userid) == -1;
  17988. });
  17989. if (this.worksSName && this.worksSid) {
  17990. this.uploadStudentJuri.push({
  17991. userid: this.worksSid,
  17992. name: this.worksSName
  17993. });
  17994. }
  17995. if (type == 1) {
  17996. this.plworkFile = [];
  17997. this.dialogVisibleSname = true;
  17998. } else if (type == 2) {
  17999. this.dialogVisiblePl = true;
  18000. }
  18001. })
  18002. .catch(err => {
  18003. loading.close();
  18004. console.error(err);
  18005. });
  18006. },
  18007. selectPickStudent() {
  18008. const loading = this.$loading.service({
  18009. background: "rgba(255, 255, 255, 0.7)",
  18010. target: document.body
  18011. });
  18012. let params = {
  18013. cid: this.uploadCid,
  18014. oid: this.oid,
  18015. cn: ""
  18016. };
  18017. this.ajax
  18018. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18019. .then(res => {
  18020. loading.close();
  18021. this.uploadStudentJuri = res.data[0];
  18022. this.dialogVisiblePickPeople = true;
  18023. })
  18024. .catch(err => {
  18025. loading.close();
  18026. console.error(err);
  18027. });
  18028. },
  18029. arrayToArray(arrayo, arrayt) {
  18030. let array1 = arrayo;
  18031. let array2 = arrayt;
  18032. let commonElements = [];
  18033. for (let i = 0; i < array1.length; i++) {
  18034. for (let j = 0; j < array2.length; j++) {
  18035. if (array1[i] === array2[j]) {
  18036. commonElements.push(array1[i]);
  18037. }
  18038. }
  18039. }
  18040. return commonElements;
  18041. },
  18042. selectWorksStudent() {
  18043. let params = {
  18044. oid: this.oid,
  18045. cid: this.courseDetail.juri
  18046. };
  18047. this.ajax
  18048. .get(this.$store.state.api + "selectWorksStudent", params)
  18049. .then(res => {
  18050. var a = res.data[0];
  18051. for (var i = 0; i < this.isWorksS.length; i++) {
  18052. this.noWorksS[i] = [];
  18053. var studentK = [];
  18054. if (this.isWorksS[i].length > 0) {
  18055. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18056. studentK.push(this.isWorksS[i][z].uid);
  18057. }
  18058. studentK = studentK.join(",");
  18059. for (var j = 0; j < a.length; j++) {
  18060. if (studentK.indexOf(a[j].userid) == -1) {
  18061. if (this.tcid) {
  18062. // a[j].classid.indexOf(this.tcid) != -1
  18063. if (
  18064. this.arrayToArray(
  18065. a[j].classid.split(","),
  18066. this.tcid.split(",")
  18067. ).length
  18068. ) {
  18069. this.noWorksS[i].push({
  18070. student: a[j].name,
  18071. userid: a[j].userid
  18072. });
  18073. }
  18074. } else {
  18075. this.noWorksS[i].push({
  18076. student: a[j].name,
  18077. userid: a[j].userid
  18078. });
  18079. }
  18080. }
  18081. }
  18082. } else {
  18083. for (var k = 0; k < a.length; k++) {
  18084. if (this.tcid) {
  18085. if (
  18086. this.arrayToArray(
  18087. a[k].classid.split(","),
  18088. this.tcid.split(",")
  18089. ).length
  18090. ) {
  18091. this.noWorksS[i].push({
  18092. student: a[k].name,
  18093. userid: a[k].userid
  18094. });
  18095. }
  18096. } else {
  18097. this.noWorksS[i].push({
  18098. student: a[k].name,
  18099. userid: a[k].userid
  18100. });
  18101. }
  18102. }
  18103. }
  18104. }
  18105. this.$forceUpdate();
  18106. if (
  18107. Object.keys(this.commentDetail).length &&
  18108. Object.keys(this.commentIndexJson).length &&
  18109. !this.dialogVisibleScore &&
  18110. !this.dialogVisibleENScore
  18111. ) {
  18112. let a = 1;
  18113. let c = this.commentIndexJson;
  18114. if (
  18115. this.commentIndexJson.gindex ||
  18116. this.commentIndexJson.gindex === 0
  18117. ) {
  18118. for (
  18119. var i = 0;
  18120. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18121. i++
  18122. ) {
  18123. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18124. groupA: for (var k = 0; k < _el.length; k++) {
  18125. let el = _el[k];
  18126. if (el.wid == this.commentDetail.wid) {
  18127. a = 2;
  18128. this.commentOther(
  18129. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18130. this.commentIndexJson.toolIndex,
  18131. k,
  18132. this.commentIndexJson.gindex
  18133. );
  18134. break groupA;
  18135. }
  18136. }
  18137. }
  18138. if (a === 1) {
  18139. this.commentDetail = [];
  18140. this.commentIndexJson = {};
  18141. this.commentDialogVisible = false;
  18142. this.$message(this.lang.ssHomeworkDeleted);
  18143. }
  18144. } else {
  18145. if (this.isGroup && this.commentIndexJson.gid) {
  18146. groupA: for (
  18147. var i = 0;
  18148. i < this.courseGroup.group.length;
  18149. i++
  18150. ) {
  18151. let _group = this.courseGroup.group[i];
  18152. if (_group.id == this.commentIndexJson.gid) {
  18153. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18154. for (var k = 0; k < _el2.length; k++) {
  18155. let el2 = _el2[k];
  18156. if (el2.wid == this.commentDetail.wid) {
  18157. a = 2;
  18158. this.commentOther(
  18159. _el2[k],
  18160. this.commentIndexJson.toolIndex,
  18161. k,
  18162. null,
  18163. this.commentIndexJson.gid
  18164. );
  18165. break groupA;
  18166. }
  18167. }
  18168. }
  18169. }
  18170. }
  18171. if (a == 1) {
  18172. for (
  18173. var i = 0;
  18174. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18175. i++
  18176. ) {
  18177. let el = this.worksStudent[this.commentIndexJson.toolIndex][
  18178. i
  18179. ];
  18180. if (el.wid == this.commentDetail.wid) {
  18181. a = 2;
  18182. this.commentOther(
  18183. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18184. this.commentIndexJson.toolIndex,
  18185. i
  18186. );
  18187. break;
  18188. }
  18189. }
  18190. }
  18191. if (a === 1) {
  18192. this.commentDetail = [];
  18193. this.commentIndexJson = {};
  18194. this.commentDialogVisible = false;
  18195. this.$message(this.lang.ssHomeworkDeleted);
  18196. }
  18197. }
  18198. }
  18199. })
  18200. .catch(err => {
  18201. console.error(err);
  18202. });
  18203. },
  18204. selectStudent() {
  18205. if (this.selectStudentLoading) return
  18206. this.selectStudentLoading = true
  18207. //学生查看自己作业
  18208. let params = {
  18209. uid: this.userid,
  18210. cid: this.id,
  18211. s: this.courseType,
  18212. t: this.taskCount
  18213. };
  18214. this.ajax
  18215. .get(this.$store.state.api + "selectStudentWorks", params)
  18216. .then(res => {
  18217. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18218. this.taskCount
  18219. ].toolChoose;
  18220. var b = res.data[0];
  18221. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18222. var y = [
  18223. "AVI",
  18224. "NAVI",
  18225. "MPEG",
  18226. "ASF",
  18227. "MOV",
  18228. "WMV",
  18229. "3GP",
  18230. "RM",
  18231. "RMVB",
  18232. "FLV",
  18233. "F4V",
  18234. "H.264",
  18235. "H.265",
  18236. "REAL VIDEO",
  18237. "MKV",
  18238. "WebM",
  18239. "HDDVD",
  18240. "MP4",
  18241. "MPG",
  18242. "M4V",
  18243. "MGV",
  18244. "OGV",
  18245. "QTM",
  18246. "STR",
  18247. "AMC",
  18248. "DVX",
  18249. "EVO",
  18250. "DAT",
  18251. "OGG",
  18252. "OGM"
  18253. ];
  18254. for (var i = 0; i < a.length; i++) {
  18255. this.workStudent[i] = [];
  18256. for (var j = 0; j < b.length; j++) {
  18257. if (i == b[j].tool) {
  18258. if (
  18259. (b[j].type == 1 ||
  18260. b[j].type == 4 ||
  18261. b[j].type == 5 ||
  18262. b[j].type == 6 ||
  18263. b[j].type == 12 ||
  18264. b[j].type == 7) &&
  18265. a[i].tool[0] != 15 &&
  18266. a[i].tool[0] != 4 &&
  18267. a[i].tool[0] != 45 &&
  18268. a[i].tool[0] != 50 &&
  18269. a[i].tool[0] != 32 &&
  18270. a[i].tool[0] != 57 &&
  18271. a[i].tool[0] != 52 &&
  18272. a[i].tool[0] != 69
  18273. ) {
  18274. if (
  18275. c.indexOf(
  18276. b[j].content
  18277. .split(".")
  18278. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18279. ) != -1 &&
  18280. a[i].tool[0] == 16 &&
  18281. b[j].atool != 50
  18282. ) {
  18283. this.workStudent[i].push({
  18284. works: b[j].content,
  18285. sName: b[j].name,
  18286. score: b[j].score,
  18287. img: b[j].img,
  18288. type: 1,
  18289. time: b[j].time,
  18290. userid: b[j].userid,
  18291. wid: b[j].id
  18292. });
  18293. } else if (
  18294. y.indexOf(
  18295. b[j].content
  18296. .split(".")
  18297. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18298. ) != -1 &&
  18299. a[i].tool[0] == 16 &&
  18300. b[j].atool != 50
  18301. ) {
  18302. this.workStudent[i].push({
  18303. userid: b[j].userid,
  18304. wid: b[j].id,
  18305. works: b[j].content,
  18306. sName: b[j].name,
  18307. score: b[j].score,
  18308. img: b[j].img,
  18309. type: 3,
  18310. time: b[j].time
  18311. });
  18312. } else if (b[j].type == 6 && b[j].atool != 50) {
  18313. this.workStudent[i].push({
  18314. userid: b[j].userid,
  18315. wid: b[j].id,
  18316. works: b[j].content,
  18317. sName: b[j].name,
  18318. score: b[j].score,
  18319. img: b[j].img,
  18320. type: 4,
  18321. time: b[j].time
  18322. });
  18323. } else if (b[j].type == 7 && b[j].atool != 50) {
  18324. this.workStudent[i].push({
  18325. userid: b[j].userid,
  18326. wid: b[j].id,
  18327. works: b[j].content,
  18328. sName: b[j].name,
  18329. score: b[j].score,
  18330. img: b[j].img,
  18331. type: 5,
  18332. time: b[j].time
  18333. });
  18334. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18335. this.workStudent[i].push({
  18336. works: b[j].content,
  18337. sName: b[j].name,
  18338. score: b[j].score,
  18339. img: b[j].img,
  18340. type: 12,
  18341. time: b[j].time,
  18342. userid: b[j].userid,
  18343. wid: b[j].id
  18344. });
  18345. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18346. this.workStudent[i].push({
  18347. works: b[j].content,
  18348. sName: b[j].name,
  18349. score: b[j].score,
  18350. img: b[j].img,
  18351. type: 0,
  18352. time: b[j].time,
  18353. userid: b[j].userid,
  18354. wid: b[j].id
  18355. });
  18356. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18357. this.workStudent[i].push({
  18358. works: b[j].content,
  18359. sName: b[j].name,
  18360. score: b[j].score,
  18361. img: b[j].img,
  18362. type: 0,
  18363. time: b[j].time,
  18364. userid: b[j].userid,
  18365. wid: b[j].id
  18366. });
  18367. }
  18368. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18369. this.workStudent[i].push({
  18370. works: b[j].content,
  18371. sName: b[j].name,
  18372. score: b[j].score,
  18373. img: b[j].img,
  18374. type: 2,
  18375. time: b[j].time,
  18376. userid: b[j].userid,
  18377. wid: b[j].id
  18378. });
  18379. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18380. this.workStudent[i].push({
  18381. works: b[j].content,
  18382. sName: b[j].name,
  18383. score: b[j].score,
  18384. img: b[j].img,
  18385. type: 20,
  18386. time: b[j].time,
  18387. userid: b[j].userid,
  18388. wid: b[j].id
  18389. });
  18390. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18391. //问卷
  18392. this.workStudent[i].push({
  18393. works: b[j].content,
  18394. sName: b[j].name,
  18395. score: b[j].score,
  18396. img: b[j].img,
  18397. type: 2,
  18398. time: b[j].time,
  18399. userid: b[j].userid,
  18400. wid: b[j].id
  18401. });
  18402. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18403. //选择题
  18404. this.workStudent[i].push({
  18405. works: b[j].content,
  18406. sName: b[j].name,
  18407. score: b[j].score,
  18408. img: b[j].img,
  18409. type: 8,
  18410. time: b[j].time,
  18411. userid: b[j].userid,
  18412. wid: b[j].id
  18413. });
  18414. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18415. //选择题
  18416. this.workStudent[i].push({
  18417. works: b[j].content,
  18418. sName: b[j].name,
  18419. score: b[j].score,
  18420. img: b[j].img,
  18421. type: 9,
  18422. time: b[j].time,
  18423. userid: b[j].userid,
  18424. wid: b[j].id
  18425. });
  18426. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18427. //选择题
  18428. this.workStudent[i].push({
  18429. works: b[j].content,
  18430. sName: b[j].name,
  18431. score: b[j].score,
  18432. img: b[j].img,
  18433. type: 10,
  18434. time: b[j].time,
  18435. userid: b[j].userid,
  18436. wid: b[j].id
  18437. });
  18438. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18439. //选择题
  18440. this.workStudent[i].push({
  18441. works: b[j].content,
  18442. sName: b[j].name,
  18443. score: b[j].score,
  18444. img: b[j].img,
  18445. type: 13,
  18446. time: b[j].time,
  18447. userid: b[j].userid,
  18448. wid: b[j].id
  18449. });
  18450. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18451. //选择题
  18452. this.workStudent[i].push({
  18453. works: b[j].content,
  18454. sName: b[j].name,
  18455. score: b[j].score,
  18456. img: b[j].img,
  18457. type: 12,
  18458. time: b[j].time,
  18459. userid: b[j].userid,
  18460. wid: b[j].id
  18461. });
  18462. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18463. //选择题
  18464. this.workStudent[i].push({
  18465. works: b[j].content,
  18466. sName: b[j].name,
  18467. score: b[j].score,
  18468. img: b[j].img,
  18469. type: 12,
  18470. time: b[j].time,
  18471. userid: b[j].userid,
  18472. wid: b[j].id
  18473. });
  18474. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18475. //选择题
  18476. this.workStudent[i].push({
  18477. works: b[j].content,
  18478. sName: b[j].name,
  18479. score: b[j].score,
  18480. img: b[j].img,
  18481. type: 15,
  18482. time: b[j].time,
  18483. userid: b[j].userid,
  18484. wid: b[j].id
  18485. });
  18486. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18487. //英语写作
  18488. this.workStudent[i].push({
  18489. works: b[j].content,
  18490. sName: b[j].name,
  18491. score: b[j].score,
  18492. img: b[j].img,
  18493. type: 16,
  18494. time: b[j].time,
  18495. userid: b[j].userid,
  18496. wid: b[j].id,
  18497. aiCode: b[j].aiCode,
  18498. teacherCode: b[j].teacherCode
  18499. });
  18500. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18501. //英语写作
  18502. this.workStudent[i].push({
  18503. works: b[j].content,
  18504. sName: b[j].name,
  18505. score: b[j].score,
  18506. img: b[j].img,
  18507. type: 17,
  18508. time: b[j].time,
  18509. userid: b[j].userid,
  18510. wid: b[j].id
  18511. });
  18512. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18513. //英语口语
  18514. this.workStudent[i].push({
  18515. works: b[j].content,
  18516. sName: b[j].name,
  18517. score: b[j].score,
  18518. img: b[j].img,
  18519. type: 14,
  18520. time: b[j].time,
  18521. userid: b[j].userid,
  18522. wid: b[j].id
  18523. });
  18524. }
  18525. }
  18526. }
  18527. }
  18528. this.selectStudentLoading = false
  18529. })
  18530. .catch(err => {
  18531. this.selectStudentLoading = false
  18532. console.error(err);
  18533. });
  18534. },
  18535. openVideo(w) {
  18536. this.videoDetail = {};
  18537. this.playerOptions1.sources[0].src = w.works;
  18538. this.videoDetail = this.playerOptions1;
  18539. this.videoVisible = true;
  18540. },
  18541. isLikes(wid, uid, t, c, isLikes, sName) {
  18542. if (isLikes == false) {
  18543. let params = [
  18544. {
  18545. wid: wid,
  18546. lid: uid,
  18547. t: t,
  18548. c: c
  18549. }
  18550. ];
  18551. this.ajax
  18552. .post(this.$store.state.api + "insertComment", params)
  18553. .then(res => {
  18554. this.$message({
  18555. message: this.lang.ssLikeSuccess,
  18556. type: "success"
  18557. });
  18558. this.selectSWorks();
  18559. this.selectStudent();
  18560. if(this.tType!=2){
  18561. this.insertMemorandum(
  18562. `对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`
  18563. );
  18564. }
  18565. })
  18566. .catch(err => {
  18567. this.$message.error(this.lang.ssLikeFailed);
  18568. console.error(err);
  18569. });
  18570. } else {
  18571. let params = {
  18572. wid: wid,
  18573. lid: uid,
  18574. type: t
  18575. };
  18576. this.ajax
  18577. .get(this.$store.state.api + "deleteComment", params)
  18578. .then(res => {
  18579. this.$message({
  18580. message: this.lang.ssCancelLikeSuccess,
  18581. type: "success"
  18582. });
  18583. this.selectSWorks();
  18584. this.selectStudent();
  18585. })
  18586. .catch(err => {
  18587. console.error(err);
  18588. });
  18589. }
  18590. },
  18591. deleteComment(wid) {
  18592. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  18593. confirmButtonText: this.lang.ssConfirm,
  18594. cancelButtonText: this.lang.ssCancel,
  18595. type: "warning"
  18596. })
  18597. .then(() => {
  18598. let params = {
  18599. id: wid
  18600. };
  18601. this.ajax
  18602. .get(this.$store.state.api + "deleteComment2", params)
  18603. .then(res => {
  18604. this.$message({
  18605. message: this.lang.ssDeleteCommentSuccess,
  18606. type: "success"
  18607. });
  18608. this.selectSWorks();
  18609. this.selectStudent();
  18610. })
  18611. .catch(err => {
  18612. console.error(err);
  18613. });
  18614. })
  18615. .catch(() => {});
  18616. },
  18617. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18618. this.commentIndexJson = {
  18619. toolIndex: toolIndex,
  18620. wIndex: wIndex,
  18621. gindex: gindex,
  18622. gid: gid
  18623. };
  18624. this.commentDialogVisible = true;
  18625. // console.log('wwwwww',w)
  18626. // if (JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works))
  18627. // return;
  18628. this.commentDetailCopy = w.works;
  18629. this.commentDetail = [];
  18630. this.commentDetail = w;
  18631. if (w.works && w.type == 1) {
  18632. // this.pptImgUrl = "";
  18633. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18634. if (
  18635. a.indexOf(
  18636. w.works
  18637. .split(".")
  18638. [w.works.split(".").length - 1].toLocaleUpperCase()
  18639. ) != -1
  18640. ) {
  18641. let _uuurl = await this.checkLink(w.works);
  18642. this.pptImgUrl =
  18643. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18644. encodeURIComponent(_uuurl);
  18645. this.showPDF = false;
  18646. } else if (
  18647. w.works
  18648. .split(".")
  18649. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18650. ) {
  18651. this.pptImgUrl = w.works;
  18652. this.showPDF = true;
  18653. }
  18654. } else if (w.works && w.type == 3) {
  18655. this.videoDetail = {};
  18656. this.playerOptions1.sources[0].src = w.works;
  18657. this.videoDetail = this.playerOptions1;
  18658. // this.videoVisible = true;
  18659. } else if (w.works && w.type == 4) {
  18660. this.eScore = JSON.parse(w.works);
  18661. this.rateJson = this.chapInfoList[
  18662. this.courseType
  18663. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18664. toolIndex
  18665. ].rateJson;
  18666. } else if (w.works && w.type == 10) {
  18667. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18668. } else if (w.works && w.type == 12) {
  18669. getFile(this.commentDetail.works).then(res => {
  18670. this.commentDetail.works = res.data;
  18671. });
  18672. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18673. } else if (w.works && w.type == 13) {
  18674. this.wordJson = this.chapInfoList[
  18675. this.courseType
  18676. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[
  18677. toolIndex
  18678. ].wordJson;
  18679. }
  18680. this.$forceUpdate();
  18681. },
  18682. async openScore(w, index) {
  18683. this.wScore = 0;
  18684. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18685. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18686. this.commentDetail = [];
  18687. if (w.type == 17) {
  18688. this.dialogVisibleENScore = true;
  18689. } else {
  18690. this.dialogVisibleScore = true;
  18691. }
  18692. this.commentDetail = w;
  18693. if (w.works && w.type == 1) {
  18694. this.pptImgUrl = "";
  18695. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18696. if (
  18697. a.indexOf(
  18698. w.works
  18699. .split(".")
  18700. [w.works.split(".").length - 1].toLocaleUpperCase()
  18701. ) != -1
  18702. ) {
  18703. let _uuurl = await this.checkLink(w.works);
  18704. this.pptImgUrl =
  18705. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18706. encodeURIComponent(_uuurl);
  18707. this.showPDF = false;
  18708. } else if (
  18709. w.works
  18710. .split(".")
  18711. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18712. ) {
  18713. this.pptImgUrl = w.works;
  18714. this.showPDF = true;
  18715. }
  18716. } else if (w.works && w.type == 3) {
  18717. this.videoDetail = {};
  18718. this.playerOptions1.sources[0].src = w.works;
  18719. this.videoDetail = this.playerOptions1;
  18720. } else if (w.type == 17) {
  18721. let englishVoiceJson = {};
  18722. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18723. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18724. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18725. this.taskCount
  18726. ].toolChoose[index].englishVoiceJson
  18727. : {};
  18728. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18729. }
  18730. this.insertMemorandum(
  18731. `查看<span class="variable">${w.sName}</span>的作业`
  18732. );
  18733. },
  18734. addComment(wid, uid, t, detail) {
  18735. if (this.commentText == "") {
  18736. this.$message.error(this.lang.ssEnterComment);
  18737. return;
  18738. }
  18739. let params2 = [
  18740. {
  18741. wid: wid,
  18742. lid: uid,
  18743. t: t
  18744. }
  18745. ];
  18746. this.ajax
  18747. .post(this.$store.state.api + "getComment", params2)
  18748. .then(res => {
  18749. if (res.data[0].length > 0) {
  18750. this.$message.error(this.lang.ssOnlyOneCommentPerHomework);
  18751. } else {
  18752. let params = [
  18753. {
  18754. wid: wid,
  18755. lid: uid,
  18756. t: t,
  18757. c: this.commentText
  18758. }
  18759. ];
  18760. this.ajax
  18761. .post(this.$store.state.api + "insertComment", params)
  18762. .then(res => {
  18763. this.$message({
  18764. message: this.lang.ssCommentSuccess,
  18765. type: "success"
  18766. });
  18767. this.commentText = "";
  18768. this.selectSWorks();
  18769. this.selectStudent();
  18770. if(this.tType!=2){
  18771. this.insertMemorandum(
  18772. `对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`
  18773. );
  18774. }
  18775. })
  18776. .catch(err => {
  18777. this.$message.error(this.lang.ssCommentFailed);
  18778. console.error(err);
  18779. });
  18780. }
  18781. })
  18782. .catch(err => {
  18783. // this.$message.error("评论失败");
  18784. console.error(err);
  18785. });
  18786. },
  18787. scoreWork(wid, sName) {
  18788. if (this.wScore == 0) {
  18789. this.$message.error(this.lang.ssPleaseRate);
  18790. return;
  18791. }
  18792. let params = [
  18793. {
  18794. wid: wid,
  18795. score: JSON.stringify({
  18796. wScore: this.wScore,
  18797. detail: this.scoreDetail
  18798. })
  18799. }
  18800. ];
  18801. this.ajax
  18802. .post(this.$store.state.api + "scoreWork", params)
  18803. .then(res => {
  18804. this.$message({
  18805. message: this.lang.ssRatingSuccess,
  18806. type: "success"
  18807. });
  18808. this.wScore = 0;
  18809. this.scoreDetail = "";
  18810. this.dialogVisibleScore = false;
  18811. this.selectSWorks();
  18812. this.selectStudent();
  18813. if(this.tType!=2){
  18814. this.insertMemorandum(
  18815. `对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`
  18816. );
  18817. }
  18818. })
  18819. .catch(err => {
  18820. this.$message.error(this.lang.ssRatingFailed);
  18821. console.error(err);
  18822. });
  18823. },
  18824. openXz(w, i) {
  18825. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18826. .taskJson[this.taskCount].toolChoose[i].selectJson
  18827. ? JSON.parse(
  18828. JSON.stringify(
  18829. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18830. this.taskCount
  18831. ].toolChoose[i].selectJson
  18832. )
  18833. )
  18834. : { url: "", select: [], answer: [] };
  18835. var a = w.works.split(",");
  18836. for (var k = 0; k < a.length; k++) {
  18837. a[k] = parseInt(a[k]);
  18838. }
  18839. this.selectAnswer = { answer: a, stu: w.sName };
  18840. this.isSelect = true;
  18841. this.dialogVisibleSelect = true;
  18842. this.insertMemorandum(
  18843. `查看<span class="variable">${w.sName}</span>的作业`
  18844. );
  18845. },
  18846. openSen(w, i) {
  18847. this.sentenceList1 = JSON.parse(w.works);
  18848. this.sentenceList1.stuName = w.sName;
  18849. this.dialogVisibleSentence1 = true;
  18850. },
  18851. openPj(w, toolindex) {
  18852. this.isStar = true;
  18853. this.eScore = JSON.parse(w);
  18854. this.rateJson = this.chapInfoList[
  18855. this.courseType
  18856. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[toolindex].rateJson;
  18857. this.studentEvalDialogVisible = true;
  18858. },
  18859. openEnglishEva(id, i) {
  18860. let params = {
  18861. wid: id
  18862. };
  18863. this.ajax
  18864. .get(this.$store.state.api + "selectEngWork", params)
  18865. .then(res => {
  18866. this.evaEngJson.message = res.data[0][0];
  18867. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18868. this.evaEngJson.teacherJson = this.chapInfoList[
  18869. this.courseType
  18870. ].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].englishList;
  18871. this.engEvaDialogVisible = true;
  18872. })
  18873. .catch(err => {
  18874. console.error(err);
  18875. });
  18876. },
  18877. deleteWorks(id) {
  18878. this.$confirm(this.lang.ssConfirmDeleteWork, this.lang.ssPrompt, {
  18879. confirmButtonText: this.lang.ssConfirm,
  18880. cancelButtonText: this.lang.ssCancel,
  18881. type: "warning"
  18882. })
  18883. .then(() => {
  18884. let params = [
  18885. {
  18886. id: id
  18887. }
  18888. ];
  18889. this.ajax
  18890. .post(this.$store.state.api + "deleteCourseWork", params)
  18891. .then(res => {
  18892. this.$message({
  18893. message: this.lang.ssDeleteSuccess,
  18894. type: "success"
  18895. });
  18896. this.selectStudent();
  18897. this.selectSWorks();
  18898. this.selectSLook();
  18899. })
  18900. .catch(err => {
  18901. this.$message.error(this.lang.ssNetworkError);
  18902. console.error(err);
  18903. });
  18904. })
  18905. .catch(() => {});
  18906. },
  18907. // deleteWorksTwo(w,stage,task) {
  18908. // // let mk = `markSco${toolIndex}${wIndex}`
  18909. // // console.log(this.$refs[mk][0].homeworkVal)
  18910. // // let wid = this.$refs[mk][0].homeworkVal.id
  18911. // // console.log('wid',wid);
  18912. // this.$confirm("确定删除此作业吗?", "提示", {
  18913. // confirmButtonText: "确定",
  18914. // cancelButtonText: "取消",
  18915. // type: "warning",
  18916. // })
  18917. // .then(() => {
  18918. // let params = [
  18919. // {
  18920. // id: w.wid,
  18921. // cid: this.id,
  18922. // uid:w.userid,
  18923. // s:stage,
  18924. // t:task
  18925. // },
  18926. // ];
  18927. // // return console.log(params)
  18928. // this.ajax
  18929. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  18930. // .then((res) => {
  18931. // this.$message({
  18932. // message: "删除成功",
  18933. // type: "success",
  18934. // });
  18935. // this.selectStudent();
  18936. // this.selectSWorks();
  18937. // this.selectSLook();
  18938. // })
  18939. // .catch((err) => {
  18940. // this.$message.error("网络异常");
  18941. // console.error(err);
  18942. // });
  18943. // })
  18944. // .catch(() => {});
  18945. // },
  18946. noIsAi() {
  18947. this.$message.info(this.lang.ssNoAISetting);
  18948. },
  18949. getLang() {
  18950. let lang = "";
  18951. if (this.languageSetting == 0) {
  18952. lang = "Chinese.";
  18953. } else if (this.languageSetting == 1) {
  18954. lang = "Traditional Chinese.";
  18955. } else if (this.languageSetting == 2) {
  18956. lang = "English.";
  18957. }
  18958. return lang;
  18959. },
  18960. selectSWorks(gindex) {
  18961. if (this.selectSWorksLoading) return
  18962. this.selectSWorksLoading = true
  18963. //教师查看全部作业
  18964. let params = {
  18965. cid: this.id,
  18966. s: this.courseType,
  18967. t: this.taskCount
  18968. };
  18969. this.ajax
  18970. .get(this.$store.state.api + "selectSWorks", params)
  18971. .then(res => {
  18972. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18973. this.taskCount
  18974. ].toolChoose;
  18975. var b = res.data[0];
  18976. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18977. var y = [
  18978. "AVI",
  18979. "NAVI",
  18980. "MPEG",
  18981. "ASF",
  18982. "MOV",
  18983. "WMV",
  18984. "3GP",
  18985. "RM",
  18986. "RMVB",
  18987. "FLV",
  18988. "F4V",
  18989. "H.264",
  18990. "H.265",
  18991. "REAL VIDEO",
  18992. "MKV",
  18993. "WebM",
  18994. "HDDVD",
  18995. "MP4",
  18996. "MPG",
  18997. "M4V",
  18998. "MGV",
  18999. "OGV",
  19000. "QTM",
  19001. "STR",
  19002. "AMC",
  19003. "DVX",
  19004. "EVO",
  19005. "DAT",
  19006. "OGG",
  19007. "OGM"
  19008. ];
  19009. var d = res.data[1];
  19010. var e = res.data[2];
  19011. var f = res.data[3];
  19012. let _worksStudent = [];
  19013. var _worksStudent2 = [];
  19014. for (var i = 0; i < a.length; i++) {
  19015. _worksStudent[i] = [];
  19016. _worksStudent2[i] = [];
  19017. if (
  19018. !this.isCloseList[i] ||
  19019. this.isCloseList[i].isClose == undefined
  19020. ) {
  19021. this.isCloseList[i] = { isClose: 0 };
  19022. }
  19023. this.groupStudent[i] = [];
  19024. this.groupStudentUid[i] = [];
  19025. if (this.isGroup) {
  19026. for (
  19027. var groupI = 0;
  19028. groupI < this.courseGroup.group.length;
  19029. groupI++
  19030. ) {
  19031. this.courseGroup.group[groupI].works[i] = [];
  19032. }
  19033. }
  19034. this.isWorksS[i] = [];
  19035. this.checkJson[i] = [];
  19036. if (a[i].tool[0] == 49) {
  19037. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19038. this.groupStudent[i][gA] = [];
  19039. this.groupStudentUid[i][gA] = [];
  19040. _worksStudent[i][gA] = [];
  19041. _worksStudent2[i][gA] = [];
  19042. this.isCloseList[i][gA] = [];
  19043. for (var g = 0; g < f.length; g++) {
  19044. if (
  19045. f[g].ttype == 2 &&
  19046. this.tcid &&
  19047. this.arrayToArray(
  19048. f[g].classid ? f[g].classid.split(",") : [],
  19049. this.tcid.split(",")
  19050. ).length == 0
  19051. ) {
  19052. continue;
  19053. }
  19054. let _classId = this.arrayToArray(
  19055. this.courseDetail.juri
  19056. ? this.courseDetail.juri.split(",")
  19057. : [],
  19058. this.classId ? this.classId.split(",") : []
  19059. );
  19060. if (
  19061. gA == f[g].group &&
  19062. f[g].tool == i &&
  19063. (this.arrayToArray(
  19064. f[g].classid ? f[g].classid.split(",") : [],
  19065. this.tcid.split(",")
  19066. ).length !== 0 ||
  19067. this.arrayToArray(
  19068. f[g].classid ? f[g].classid.split(",") : [],
  19069. _classId
  19070. ).length !== 0 ||
  19071. (!this.tcid && this.tType == "1") ||
  19072. this.courseDetail.juri === "" ||
  19073. f[g].ttype == 1)
  19074. ) {
  19075. this.groupStudent[i][gA].push(f[g]);
  19076. this.groupStudentUid[i][gA].push(f[g].userid);
  19077. }
  19078. }
  19079. }
  19080. this.$forceUpdate();
  19081. }
  19082. for (var j = 0; j < b.length; j++) {
  19083. if (
  19084. b[j].ttype == 2 &&
  19085. this.tcid &&
  19086. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19087. .length == 0
  19088. ) {
  19089. continue;
  19090. }
  19091. var likesCount = 0;
  19092. var commentCount = 0;
  19093. var isLikes = false;
  19094. var commentJson = [];
  19095. var likeJson = [];
  19096. var data = b[j];
  19097. if (i == b[j].tool) {
  19098. if (data.type == 2 && a[i].tool[0] == 4) {
  19099. // if(JSON.parse(data.content)[0].anwer){
  19100. var checkL =
  19101. JSON.parse(data.content)[0].anwer instanceof Array
  19102. ? JSON.parse(data.content)[0].anwer
  19103. : JSON.parse(data.content)[0].anwer.split(",");
  19104. for (var z = 0; z < checkL.length; z++) {
  19105. if (!this.checkJson[i][z]) {
  19106. this.checkJson[i].push({
  19107. checkCount: [],
  19108. checkPerson: [],
  19109. rightPerson: []
  19110. });
  19111. }
  19112. if (!this.checkJson[i][z].checkCount.length) {
  19113. this.checkJson[i][z].checkCount = [];
  19114. let _askItemCount = JSON.parse(data.content)[0].askJson
  19115. .askJson[z].askItem;
  19116. for (var aic = 0; aic < _askItemCount; aic++) {
  19117. this.checkJson[i][z].checkCount.push(0);
  19118. }
  19119. }
  19120. if (checkL[z] instanceof Array) {
  19121. if (
  19122. JSON.parse(data.content)[0]
  19123. .anwer.sort()
  19124. .join(",") == checkL[z].sort().join(",")
  19125. ) {
  19126. this.checkJson[i][z].rightPerson.push(data.name);
  19127. }
  19128. for (var q = 0; q < checkL[z].length; q++) {
  19129. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19130. ? this.checkJson[i][z].checkPerson[
  19131. parseInt(checkL[z][q])
  19132. ].push(data.name)
  19133. : (this.checkJson[i][z].checkPerson[
  19134. parseInt(checkL[z][q])
  19135. ] = [data.name]);
  19136. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19137. ? this.checkJson[i][z].checkCount[
  19138. parseInt(checkL[z][q])
  19139. ]++
  19140. : (this.checkJson[i][z].checkCount[
  19141. parseInt(checkL[z][q])
  19142. ] = 1);
  19143. }
  19144. } else {
  19145. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19146. this.checkJson[i][z].rightPerson.push(data.name);
  19147. }
  19148. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19149. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19150. ? this.checkJson[i][z].checkPerson[
  19151. parseInt(checkL[z])
  19152. ].push(data.name)
  19153. : (this.checkJson[i][z].checkPerson[
  19154. parseInt(checkL[z])
  19155. ] = [data.name]);
  19156. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19157. ? this.checkJson[i][z].checkCount[
  19158. parseInt(checkL[z])
  19159. ]++
  19160. : (this.checkJson[i][z].checkCount[
  19161. parseInt(checkL[z])
  19162. ] = 1);
  19163. }
  19164. }
  19165. }
  19166. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19167. var checkL = JSON.parse(data.content)[0].anwer;
  19168. if(a[i].testJson.testCount != JSON.parse(data.content)[0].testJson.testCount){
  19169. continue
  19170. }
  19171. console.log(this.lang.ssChoice)
  19172. for (var z = 0; z < checkL.length; z++) {
  19173. if (!this.checkJson[i][z]) {
  19174. this.checkJson[i].push({
  19175. checkCount: [],
  19176. checkPerson: [],
  19177. rightPerson: []
  19178. });
  19179. }
  19180. if (!this.checkJson[i][z].checkCount.length) {
  19181. this.checkJson[i][z].checkCount = [];
  19182. let _askItemCount = JSON.parse(data.content)[0].testJson
  19183. .testJson[z].testItem;
  19184. for (var aic = 0; aic < _askItemCount; aic++) {
  19185. this.checkJson[i][z].checkCount.push(0);
  19186. }
  19187. }
  19188. if (checkL[z] instanceof Array) {
  19189. if (
  19190. JSON.parse(data.content)[0]
  19191. .testJson.testJson[z].answer.sort()
  19192. .join(",") == checkL[z].sort().join(",")
  19193. ) {
  19194. this.checkJson[i][z].rightPerson.push(data.name);
  19195. }
  19196. for (var q = 0; q < checkL[z].length; q++) {
  19197. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19198. ? this.checkJson[i][z].checkPerson[
  19199. parseInt(checkL[z][q])
  19200. ].push(data.name)
  19201. : (this.checkJson[i][z].checkPerson[
  19202. parseInt(checkL[z][q])
  19203. ] = [data.name]);
  19204. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19205. ? this.checkJson[i][z].checkCount[
  19206. parseInt(checkL[z][q])
  19207. ]++
  19208. : (this.checkJson[i][z].checkCount[
  19209. parseInt(checkL[z][q])
  19210. ] = 1);
  19211. }
  19212. } else {
  19213. if (
  19214. JSON.parse(data.content)[0].testJson.testJson[z]
  19215. .answer == checkL[z]
  19216. ) {
  19217. this.checkJson[i][z].rightPerson.push(data.name);
  19218. }
  19219. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19220. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19221. ? this.checkJson[i][z].checkPerson[
  19222. parseInt(checkL[z])
  19223. ].push(data.name)
  19224. : (this.checkJson[i][z].checkPerson[
  19225. parseInt(checkL[z])
  19226. ] = [data.name]);
  19227. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19228. ? this.checkJson[i][z].checkCount[
  19229. parseInt(checkL[z])
  19230. ]++
  19231. : (this.checkJson[i][z].checkCount[
  19232. parseInt(checkL[z])
  19233. ] = 1);
  19234. }
  19235. }
  19236. }
  19237. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19238. var checkL = JSON.parse(data.content);
  19239. for (var z = 0; z < checkL.length; z++) {
  19240. if (!this.checkJson[i][z]) {
  19241. this.checkJson[i].push({
  19242. checkCount: [],
  19243. checkPerson: [],
  19244. rightPerson: []
  19245. });
  19246. }
  19247. this.checkJson[i][z].checkPerson.push(data.name);
  19248. if (
  19249. checkL[z].chooseSenList.toString() ==
  19250. checkL[z].rightAnswer.toString()
  19251. ) {
  19252. this.checkJson[i][z].rightPerson.push(data.name);
  19253. }
  19254. }
  19255. }
  19256. for (var k = 0; k < d.length; k++) {
  19257. //点赞
  19258. if (d[k].workId == b[j].id) {
  19259. likesCount++;
  19260. likeJson.push(d[k]);
  19261. if (d[k].likesId == this.userid) {
  19262. isLikes = true;
  19263. }
  19264. }
  19265. }
  19266. for (var l = 0; l < e.length; l++) {
  19267. //评论
  19268. if (e[l].workId == b[j].id) {
  19269. if (e[l].comment != "") {
  19270. commentCount++;
  19271. commentJson.push({
  19272. commentText: e[l].comment,
  19273. commentTime: e[l].commentTime,
  19274. commentPeople: e[l].commentPeople,
  19275. userid: e[l].userid,
  19276. wid: e[l].id
  19277. });
  19278. }
  19279. }
  19280. }
  19281. if (
  19282. (b[j].type == 1 ||
  19283. b[j].type == 4 ||
  19284. b[j].type == 5 ||
  19285. b[j].type == 6 ||
  19286. b[j].type == 12 ||
  19287. b[j].type == 7) &&
  19288. a[i].tool[0] != 15 &&
  19289. a[i].tool[0] != 4 &&
  19290. a[i].tool[0] != 45 &&
  19291. a[i].tool[0] != 50 &&
  19292. a[i].tool[0] != 32 &&
  19293. a[i].tool[0] != 57 &&
  19294. a[i].tool[0] != 52
  19295. ) {
  19296. if (
  19297. c.indexOf(
  19298. b[j].content
  19299. .split(".")
  19300. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19301. ) != -1 &&
  19302. a[i].tool[0] == 16 &&
  19303. b[j].atool != 50
  19304. ) {
  19305. let _works = {
  19306. userid: b[j].userid,
  19307. ateacher: b[j].ateacher,
  19308. wid: b[j].id,
  19309. works: b[j].content,
  19310. sName: b[j].name,
  19311. type: 1,
  19312. ttype: b[j].ttype,
  19313. time: b[j].time,
  19314. score: b[j].score,
  19315. img: b[j].img,
  19316. likesCount: likesCount,
  19317. commentCount: commentCount,
  19318. isLikes: isLikes,
  19319. commentJson: commentJson,
  19320. likeJson: likeJson
  19321. };
  19322. if (this.isGroup) {
  19323. let isGw = 1;
  19324. for (
  19325. var groupI = 0;
  19326. groupI < this.courseGroup.group.length;
  19327. groupI++
  19328. ) {
  19329. let gid = this.courseGroup.group[groupI].id;
  19330. if (
  19331. this.courseGroupStudentUid[gid].indexOf(
  19332. b[j].userid
  19333. ) != -1
  19334. ) {
  19335. isGw = 2;
  19336. this.courseGroup.group[groupI].works[i].push(_works);
  19337. break;
  19338. }
  19339. }
  19340. if (isGw == 1) {
  19341. _worksStudent[i].push(_works);
  19342. }
  19343. } else {
  19344. _worksStudent[i].push(_works);
  19345. }
  19346. _worksStudent2[i].push(_works);
  19347. this.isWorksS[i].push({
  19348. uid: b[j].userid,
  19349. sName: b[j].name
  19350. });
  19351. } else if (
  19352. y.indexOf(
  19353. b[j].content
  19354. .split(".")
  19355. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19356. ) != -1 &&
  19357. a[i].tool[0] == 16 &&
  19358. b[j].atool != 50
  19359. ) {
  19360. let _works = {
  19361. userid: b[j].userid,
  19362. ateacher: b[j].ateacher,
  19363. wid: b[j].id,
  19364. works: b[j].content,
  19365. sName: b[j].name,
  19366. type: 3,
  19367. ttype: b[j].ttype,
  19368. time: b[j].time,
  19369. score: b[j].score,
  19370. img: b[j].img,
  19371. likesCount: likesCount,
  19372. commentCount: commentCount,
  19373. isLikes: isLikes,
  19374. commentJson: commentJson,
  19375. likeJson: likeJson
  19376. };
  19377. if (this.isGroup) {
  19378. let isGw = 1;
  19379. for (
  19380. var groupI = 0;
  19381. groupI < this.courseGroup.group.length;
  19382. groupI++
  19383. ) {
  19384. let gid = this.courseGroup.group[groupI].id;
  19385. if (
  19386. this.courseGroupStudentUid[gid].indexOf(
  19387. b[j].userid
  19388. ) != -1
  19389. ) {
  19390. isGw = 2;
  19391. this.courseGroup.group[groupI].works[i].push(_works);
  19392. break;
  19393. }
  19394. }
  19395. if (isGw == 1) {
  19396. _worksStudent[i].push(_works);
  19397. }
  19398. } else {
  19399. _worksStudent[i].push(_works);
  19400. }
  19401. _worksStudent2[i].push(_works);
  19402. this.isWorksS[i].push({
  19403. uid: b[j].userid,
  19404. sName: b[j].name
  19405. });
  19406. } else if (b[j].type == 6 && b[j].atool != 50) {
  19407. let _works = {
  19408. userid: b[j].userid,
  19409. ateacher: b[j].ateacher,
  19410. wid: b[j].id,
  19411. works: b[j].content,
  19412. sName: b[j].name,
  19413. type: 4,
  19414. ttype: b[j].ttype,
  19415. time: b[j].time,
  19416. score: b[j].score,
  19417. img: b[j].img,
  19418. likesCount: likesCount,
  19419. commentCount: commentCount,
  19420. isLikes: isLikes,
  19421. commentJson: commentJson,
  19422. likeJson: likeJson
  19423. };
  19424. _worksStudent[i].push(_works);
  19425. _worksStudent2[i].push(_works);
  19426. this.isWorksS[i].push({
  19427. uid: b[j].userid,
  19428. sName: b[j].name
  19429. });
  19430. } else if (b[j].type == 7 && b[j].atool != 50) {
  19431. let _work = {
  19432. userid: b[j].userid,
  19433. ateacher: b[j].ateacher,
  19434. wid: b[j].id,
  19435. works: b[j].content,
  19436. sName: b[j].name,
  19437. type: 5,
  19438. ttype: b[j].ttype,
  19439. time: b[j].time,
  19440. score: b[j].score,
  19441. img: b[j].img,
  19442. likesCount: likesCount,
  19443. commentCount: commentCount,
  19444. isLikes: isLikes,
  19445. commentJson: commentJson,
  19446. likeJson: likeJson
  19447. };
  19448. _worksStudent[i].push(_work);
  19449. _worksStudent2[i].push(_work);
  19450. this.isWorksS[i].push({
  19451. uid: b[j].userid,
  19452. sName: b[j].name
  19453. });
  19454. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19455. let _works = {
  19456. userid: b[j].userid,
  19457. ateacher: b[j].ateacher,
  19458. wid: b[j].id,
  19459. works: b[j].content,
  19460. sName: b[j].name,
  19461. type: 12,
  19462. ttype: b[j].ttype,
  19463. time: b[j].time,
  19464. score: b[j].score,
  19465. img: b[j].img,
  19466. likesCount: likesCount,
  19467. commentCount: commentCount,
  19468. isLikes: isLikes,
  19469. commentJson: commentJson,
  19470. likeJson: likeJson
  19471. };
  19472. if (this.isGroup) {
  19473. let isGw = 1;
  19474. for (
  19475. var groupI = 0;
  19476. groupI < this.courseGroup.group.length;
  19477. groupI++
  19478. ) {
  19479. let gid = this.courseGroup.group[groupI].id;
  19480. if (
  19481. this.courseGroupStudentUid[gid].indexOf(
  19482. b[j].userid
  19483. ) != -1
  19484. ) {
  19485. isGw = 2;
  19486. this.courseGroup.group[groupI].works[i].push(_works);
  19487. break;
  19488. }
  19489. }
  19490. if (isGw == 1) {
  19491. _worksStudent[i].push(_works);
  19492. }
  19493. } else {
  19494. _worksStudent[i].push(_works);
  19495. }
  19496. _worksStudent2[i].push(_works);
  19497. this.isWorksS[i].push({
  19498. uid: b[j].userid,
  19499. sName: b[j].name
  19500. });
  19501. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19502. let _works = {
  19503. userid: b[j].userid,
  19504. ateacher: b[j].ateacher,
  19505. wid: b[j].id,
  19506. works: b[j].content,
  19507. sName: b[j].name,
  19508. type: 0,
  19509. ttype: b[j].ttype,
  19510. time: b[j].time,
  19511. score: b[j].score,
  19512. img: b[j].img,
  19513. likesCount: likesCount,
  19514. commentCount: commentCount,
  19515. isLikes: isLikes,
  19516. commentJson: commentJson,
  19517. likeJson: likeJson
  19518. };
  19519. if (this.isGroup) {
  19520. let isGw = 1;
  19521. for (
  19522. var groupI = 0;
  19523. groupI < this.courseGroup.group.length;
  19524. groupI++
  19525. ) {
  19526. let gid = this.courseGroup.group[groupI].id;
  19527. if (
  19528. this.courseGroupStudentUid[gid].indexOf(
  19529. b[j].userid
  19530. ) != -1
  19531. ) {
  19532. isGw = 2;
  19533. this.courseGroup.group[groupI].works[i].push(_works);
  19534. break;
  19535. }
  19536. }
  19537. if (isGw == 1) {
  19538. _worksStudent[i].push(_works);
  19539. }
  19540. } else {
  19541. _worksStudent[i].push(_works);
  19542. }
  19543. _worksStudent2[i].push(_works);
  19544. this.isWorksS[i].push({
  19545. uid: b[j].userid,
  19546. sName: b[j].name
  19547. });
  19548. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19549. let _works = {
  19550. userid: b[j].userid,
  19551. ateacher: b[j].ateacher,
  19552. wid: b[j].id,
  19553. works: b[j].content,
  19554. sName: b[j].name,
  19555. type: 0,
  19556. ttype: b[j].ttype,
  19557. time: b[j].time,
  19558. score: b[j].score,
  19559. img: b[j].img,
  19560. likesCount: likesCount,
  19561. commentCount: commentCount,
  19562. isLikes: isLikes,
  19563. commentJson: commentJson,
  19564. likeJson: likeJson
  19565. };
  19566. if (this.isGroup) {
  19567. let isGw = 1;
  19568. for (
  19569. var groupI = 0;
  19570. groupI < this.courseGroup.group.length;
  19571. groupI++
  19572. ) {
  19573. let gid = this.courseGroup.group[groupI].id;
  19574. if (
  19575. this.courseGroupStudentUid[gid].indexOf(
  19576. b[j].userid
  19577. ) != -1
  19578. ) {
  19579. isGw = 2;
  19580. this.courseGroup.group[groupI].works[i].push(_works);
  19581. break;
  19582. }
  19583. }
  19584. if (isGw == 1) {
  19585. _worksStudent[i].push(_works);
  19586. }
  19587. } else {
  19588. _worksStudent[i].push(_works);
  19589. }
  19590. _worksStudent2[i].push(_works);
  19591. this.isWorksS[i].push({
  19592. uid: b[j].userid,
  19593. sName: b[j].name
  19594. });
  19595. }
  19596. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19597. let _works = {
  19598. userid: b[j].userid,
  19599. ateacher: b[j].ateacher,
  19600. wid: b[j].id,
  19601. works: b[j].content,
  19602. sName: b[j].name,
  19603. type: 2,
  19604. ttype: b[j].ttype,
  19605. time: b[j].time,
  19606. score: b[j].score,
  19607. img: b[j].img,
  19608. likesCount: likesCount,
  19609. commentCount: commentCount,
  19610. isLikes: isLikes,
  19611. commentJson: commentJson,
  19612. likeJson: likeJson
  19613. };
  19614. if (this.isGroup) {
  19615. let isGw = 1;
  19616. for (
  19617. var groupI = 0;
  19618. groupI < this.courseGroup.group.length;
  19619. groupI++
  19620. ) {
  19621. let gid = this.courseGroup.group[groupI].id;
  19622. if (
  19623. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19624. -1
  19625. ) {
  19626. isGw = 2;
  19627. this.courseGroup.group[groupI].works[i].push(_works);
  19628. break;
  19629. }
  19630. }
  19631. if (isGw == 1) {
  19632. _worksStudent[i].push(_works);
  19633. }
  19634. } else {
  19635. _worksStudent[i].push(_works);
  19636. }
  19637. _worksStudent2[i].push(_works);
  19638. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19639. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19640. let _works = {
  19641. userid: b[j].userid,
  19642. ateacher: b[j].ateacher,
  19643. wid: b[j].id,
  19644. works: b[j].content,
  19645. sName: b[j].name,
  19646. type: 20,
  19647. ttype: b[j].ttype,
  19648. time: b[j].time,
  19649. score: b[j].score,
  19650. img: b[j].img,
  19651. likesCount: likesCount,
  19652. commentCount: commentCount,
  19653. isLikes: isLikes,
  19654. commentJson: commentJson,
  19655. likeJson: likeJson
  19656. };
  19657. if (this.isGroup) {
  19658. let isGw = 1;
  19659. for (
  19660. var groupI = 0;
  19661. groupI < this.courseGroup.group.length;
  19662. groupI++
  19663. ) {
  19664. let gid = this.courseGroup.group[groupI].id;
  19665. if (
  19666. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19667. -1
  19668. ) {
  19669. isGw = 2;
  19670. this.courseGroup.group[groupI].works[i].push(_works);
  19671. break;
  19672. }
  19673. }
  19674. if (isGw == 1) {
  19675. _worksStudent[i].push(_works);
  19676. }
  19677. } else {
  19678. _worksStudent[i].push(_works);
  19679. }
  19680. _worksStudent2[i].push(_works);
  19681. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19682. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19683. //问卷
  19684. let _work = {
  19685. userid: b[j].userid,
  19686. ateacher: b[j].ateacher,
  19687. wid: b[j].id,
  19688. works: b[j].content,
  19689. sName: b[j].name,
  19690. type: 2,
  19691. ttype: b[j].ttype,
  19692. time: b[j].time,
  19693. score: b[j].score,
  19694. img: b[j].img,
  19695. likesCount: likesCount,
  19696. commentCount: commentCount,
  19697. isLikes: isLikes,
  19698. commentJson: commentJson,
  19699. likeJson: likeJson
  19700. };
  19701. _worksStudent[i].push(_work);
  19702. _worksStudent2[i].push(_work);
  19703. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19704. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19705. //选择题
  19706. let _work = {
  19707. userid: b[j].userid,
  19708. ateacher: b[j].ateacher,
  19709. wid: b[j].id,
  19710. works: b[j].content,
  19711. sName: b[j].name,
  19712. type: 8,
  19713. ttype: b[j].ttype,
  19714. time: b[j].time,
  19715. score: b[j].score,
  19716. img: b[j].img,
  19717. likesCount: likesCount,
  19718. commentCount: commentCount,
  19719. isLikes: isLikes,
  19720. commentJson: commentJson,
  19721. likeJson: likeJson
  19722. };
  19723. _worksStudent[i].push(_work);
  19724. _worksStudent2[i].push(_work);
  19725. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19726. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19727. //选择题
  19728. let _work = {
  19729. userid: b[j].userid,
  19730. ateacher: b[j].ateacher,
  19731. wid: b[j].id,
  19732. works: b[j].content,
  19733. sName: b[j].name,
  19734. type: 9,
  19735. ttype: b[j].ttype,
  19736. time: b[j].time,
  19737. score: b[j].score,
  19738. img: b[j].img,
  19739. likesCount: likesCount,
  19740. commentCount: commentCount,
  19741. isLikes: isLikes,
  19742. commentJson: commentJson,
  19743. likeJson: likeJson
  19744. };
  19745. _worksStudent[i].push(_work);
  19746. _worksStudent2[i].push(_work);
  19747. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19748. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19749. //选择题
  19750. let _work = {
  19751. userid: b[j].userid,
  19752. ateacher: b[j].ateacher,
  19753. wid: b[j].id,
  19754. works: b[j].content,
  19755. sName: b[j].name,
  19756. type: 10,
  19757. ttype: b[j].ttype,
  19758. time: b[j].time,
  19759. score: b[j].score,
  19760. img: b[j].img,
  19761. likesCount: likesCount,
  19762. commentCount: commentCount,
  19763. isLikes: isLikes,
  19764. commentJson: commentJson,
  19765. likeJson: likeJson
  19766. };
  19767. _worksStudent[i].push(_work);
  19768. _worksStudent2[i].push(_work);
  19769. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19770. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19771. //选择题
  19772. let _work = {
  19773. userid: b[j].userid,
  19774. ateacher: b[j].ateacher,
  19775. wid: b[j].id,
  19776. works: b[j].content,
  19777. sName: b[j].name,
  19778. type: 13,
  19779. ttype: b[j].ttype,
  19780. time: b[j].time,
  19781. score: b[j].score,
  19782. img: b[j].img,
  19783. likesCount: likesCount,
  19784. commentCount: commentCount,
  19785. isLikes: isLikes,
  19786. commentJson: commentJson,
  19787. likeJson: likeJson
  19788. };
  19789. _worksStudent[i].push(_work);
  19790. _worksStudent2[i].push(_work);
  19791. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19792. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19793. //选择题
  19794. let _work = {
  19795. userid: b[j].userid,
  19796. ateacher: b[j].ateacher,
  19797. wid: b[j].id,
  19798. works: b[j].content,
  19799. sName: b[j].name,
  19800. type: 16,
  19801. ttype: b[j].ttype,
  19802. time: b[j].time,
  19803. score: b[j].score,
  19804. img: b[j].img,
  19805. likesCount: likesCount,
  19806. commentCount: commentCount,
  19807. isLikes: isLikes,
  19808. commentJson: commentJson,
  19809. aiCode: b[j].aiCode,
  19810. teacherCode: b[j].teacherCode,
  19811. likeJson: likeJson
  19812. };
  19813. _worksStudent[i].push(_work);
  19814. _worksStudent2[i].push(_work);
  19815. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19816. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19817. //选择题
  19818. let _work = {
  19819. userid: b[j].userid,
  19820. ateacher: b[j].ateacher,
  19821. wid: b[j].id,
  19822. works: b[j].content,
  19823. sName: b[j].name,
  19824. type: 17,
  19825. ttype: b[j].ttype,
  19826. time: b[j].time,
  19827. score: b[j].score,
  19828. img: b[j].img,
  19829. likesCount: likesCount,
  19830. commentCount: commentCount,
  19831. isLikes: isLikes,
  19832. commentJson: commentJson,
  19833. likeJson: likeJson
  19834. };
  19835. _worksStudent[i].push(_work);
  19836. _worksStudent2[i].push(_work);
  19837. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19838. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19839. //交互视频
  19840. let _work = {
  19841. userid: b[j].userid,
  19842. ateacher: b[j].ateacher,
  19843. wid: b[j].id,
  19844. works: b[j].content,
  19845. sName: b[j].name,
  19846. type: 14,
  19847. ttype: b[j].ttype,
  19848. time: b[j].time,
  19849. score: b[j].score,
  19850. img: b[j].img,
  19851. likesCount: likesCount,
  19852. commentCount: commentCount,
  19853. isLikes: isLikes,
  19854. commentJson: commentJson,
  19855. likeJson: likeJson
  19856. };
  19857. _worksStudent[i].push(_work);
  19858. _worksStudent2[i].push(_work);
  19859. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19860. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19861. let _gindex = JSON.parse(b[j].content);
  19862. if (
  19863. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19864. b[j].userid
  19865. ) != -1
  19866. ) {
  19867. let _work = {
  19868. userid: b[j].userid,
  19869. ateacher: b[j].ateacher,
  19870. wid: b[j].id,
  19871. works: _gindex.url,
  19872. sName: b[j].name,
  19873. type: _gindex.type,
  19874. ttype: b[j].ttype,
  19875. time: b[j].time,
  19876. score: b[j].score,
  19877. img: b[j].img,
  19878. likesCount: likesCount,
  19879. commentCount: commentCount,
  19880. isLikes: isLikes,
  19881. commentJson: commentJson,
  19882. likeJson: likeJson
  19883. };
  19884. _worksStudent[i][_gindex.groupIndex].push(_work);
  19885. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19886. }
  19887. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19888. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19889. let _work = {
  19890. userid: b[j].userid,
  19891. ateacher: b[j].ateacher,
  19892. wid: b[j].id,
  19893. works: b[j].content,
  19894. sName: b[j].name ? b[j].name : b[j].userid,
  19895. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19896. ttype: b[j].ttype,
  19897. time: b[j].time,
  19898. score: b[j].score,
  19899. img: b[j].img,
  19900. likesCount: likesCount,
  19901. commentCount: commentCount,
  19902. isLikes: isLikes,
  19903. commentJson: commentJson,
  19904. likeJson: likeJson
  19905. };
  19906. _worksStudent[i].push(_work);
  19907. _worksStudent2[i].push(_work);
  19908. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19909. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19910. let _work = {
  19911. userid: b[j].userid,
  19912. ateacher: b[j].ateacher,
  19913. wid: b[j].id,
  19914. works: b[j].content,
  19915. sName: b[j].name ? b[j].name : b[j].userid,
  19916. type: 12,
  19917. ttype: b[j].ttype,
  19918. time: b[j].time,
  19919. score: b[j].score,
  19920. img: b[j].img,
  19921. likesCount: likesCount,
  19922. commentCount: commentCount,
  19923. isLikes: isLikes,
  19924. commentJson: commentJson,
  19925. likeJson: likeJson
  19926. };
  19927. _worksStudent[i].push(_work);
  19928. _worksStudent2[i].push(_work);
  19929. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19930. } else if (
  19931. a[i].tool[0] == 57 &&
  19932. b[j].atool == 57 &&
  19933. b[j].type == 12
  19934. ) {
  19935. let _work = {
  19936. userid: b[j].userid,
  19937. ateacher: b[j].ateacher,
  19938. wid: b[j].id,
  19939. works: b[j].content,
  19940. sName: b[j].name ? b[j].name : b[j].userid,
  19941. type: 12,
  19942. ttype: b[j].ttype,
  19943. time: b[j].time,
  19944. score: b[j].score,
  19945. img: b[j].img,
  19946. likesCount: likesCount,
  19947. commentCount: commentCount,
  19948. isLikes: isLikes,
  19949. commentJson: commentJson,
  19950. likeJson: likeJson
  19951. };
  19952. _worksStudent[i].push(_work);
  19953. _worksStudent2[i].push(_work);
  19954. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19955. } else if (
  19956. a[i].tool[0] == 57 &&
  19957. b[j].atool == 57 &&
  19958. b[j].type == 15
  19959. ) {
  19960. let _work = {
  19961. userid: b[j].userid,
  19962. ateacher: b[j].ateacher,
  19963. wid: b[j].id,
  19964. works: b[j].content,
  19965. sName: b[j].name ? b[j].name : b[j].userid,
  19966. type: 15,
  19967. ttype: b[j].ttype,
  19968. time: b[j].time,
  19969. score: b[j].score,
  19970. img: b[j].img,
  19971. likesCount: likesCount,
  19972. commentCount: commentCount,
  19973. isLikes: isLikes,
  19974. commentJson: commentJson,
  19975. likeJson: likeJson
  19976. };
  19977. _worksStudent[i].push(_work);
  19978. _worksStudent2[i].push(_work);
  19979. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19980. }
  19981. }
  19982. }
  19983. if (_worksStudent[i] && _worksStudent[i].length) {
  19984. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19985. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19986. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19987. var scoreA = parseFloat(jscoreA);
  19988. var scoreB = parseFloat(jscoreB);
  19989. if (scoreA == scoreB) {
  19990. return b.likesCount - a.likesCount;
  19991. }
  19992. return scoreB - scoreA;
  19993. });
  19994. if (this.isGroup) {
  19995. for (
  19996. var groupI = 0;
  19997. groupI < this.courseGroup.group.length;
  19998. groupI++
  19999. ) {
  20000. this.courseGroup.group[groupI].works[
  20001. i
  20002. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20003. a,
  20004. b
  20005. ) {
  20006. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20007. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20008. var scoreA = parseFloat(jscoreA);
  20009. var scoreB = parseFloat(jscoreB);
  20010. if (scoreA == scoreB) {
  20011. return b.likesCount - a.likesCount;
  20012. }
  20013. return scoreB - scoreA;
  20014. });
  20015. }
  20016. }
  20017. }
  20018. }
  20019. this.timeWorkList = _worksStudent2;
  20020. for (var i = 0; i < a.length; i++) {
  20021. for (var j = 0; j < b.length; j++) {
  20022. var data = b[j];
  20023. if (i == b[j].tool) {
  20024. if (data.type == 2 || data.type == 8) {
  20025. for (var z = 0; z < this.checkJson[i].length; z++) {
  20026. this.checkJson[i][z].checkPerent = [];
  20027. this.checkJson[i][z].right = Math.round(
  20028. (this.checkJson[i][z].rightPerson.length /
  20029. parseInt(_worksStudent[i].length)) *
  20030. 100
  20031. );
  20032. let aaaa = this.checkJson[i][z];
  20033. for (
  20034. var k = 0;
  20035. k < this.checkJson[i][z].checkCount.length;
  20036. k++
  20037. ) {
  20038. this.checkJson[i][z].checkPerent.push(
  20039. Math.round(
  20040. (this.checkJson[i][z].checkCount[k] /
  20041. parseInt(_worksStudent[i].length)) *
  20042. 100
  20043. )
  20044. );
  20045. }
  20046. }
  20047. } else if (data.type == 9) {
  20048. for (var z = 0; z < this.checkJson[i].length; z++) {
  20049. this.checkJson[i][z].checkPerent = [];
  20050. this.checkJson[i][z].right = Math.round(
  20051. (this.checkJson[i][z].rightPerson.length /
  20052. this.checkJson[i][z].checkPerson.length) *
  20053. 100
  20054. );
  20055. }
  20056. }
  20057. }
  20058. }
  20059. }
  20060. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20061. this.joinGroup(gindex);
  20062. }
  20063. this.worksStudent = _worksStudent;
  20064. // if (((this.worksStudentCopy.length == 0) &&
  20065. // (this.worksStudent.length != 0)) ||
  20066. // (this.worksStudentCopy[this.taskCount].length != this.worksStudent[this.taskCount].length)
  20067. // ) {
  20068. // this.worksStudentCopy = this.worksStudent;
  20069. // }
  20070. this.selectWorksStudent();
  20071. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20072. this.$nextTick(() => {
  20073. setTimeout(() => {
  20074. setTimeout(() => {
  20075. this.panToolHeight("tool-" + ci);
  20076. }, 500);
  20077. }, 0);
  20078. });
  20079. }
  20080. this.selectSWorksLoading = false
  20081. })
  20082. .catch(err => {
  20083. this.selectSWorksLoading = false
  20084. console.error(err);
  20085. });
  20086. },
  20087. pngToWhiteBg(file) {
  20088. const _file = file;
  20089. let read = new FileReader();
  20090. read.readAsDataURL(file); // 文件转base64
  20091. return new Promise((resolve, reject) => {
  20092. read.onload = e => {
  20093. let img = new Image();
  20094. img.src = e.target.result;
  20095. img.onload = async () => {
  20096. // 生成canvas
  20097. let canvas = document.createElement("canvas");
  20098. let context = canvas.getContext("2d");
  20099. // 绘制图片到canvas上
  20100. canvas.width = img.width;
  20101. canvas.height = img.height;
  20102. // 在canvas绘制前填充白色背景
  20103. context.fillStyle = "#fff";
  20104. context.fillRect(0, 0, canvas.width, canvas.height);
  20105. context.drawImage(img, 0, 0);
  20106. let base64 = canvas.toDataURL(file["type"], 1);
  20107. let newFile = this.dataUrlToFile(base64, _file);
  20108. resolve(newFile);
  20109. };
  20110. };
  20111. });
  20112. },
  20113. dataUrlToFile(dataurl, file) {
  20114. let arr = dataurl.split(","),
  20115. mime = arr[0].match(/:(.*?);/)[1],
  20116. bstr = atob(arr[1]),
  20117. n = bstr.length,
  20118. u8arr = new Uint8Array(n);
  20119. while (n--) {
  20120. u8arr[n] = bstr.charCodeAt(n);
  20121. }
  20122. // return new Blob([u8arr], { type: mime });
  20123. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20124. type: mime
  20125. });
  20126. },
  20127. async beforeUpload1(event, type, i) {
  20128. // this.$message.success('进入上传')
  20129. var file = "";
  20130. if (type == 5) {
  20131. file = event;
  20132. } else {
  20133. file = event.target.files[0];
  20134. }
  20135. var credentials = {
  20136. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20137. secretAccessKey: "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"
  20138. }; //秘钥形式的登录上传
  20139. window.AWS.config.update(credentials);
  20140. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20141. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20142. var _this = this;
  20143. _this.progress = 0;
  20144. _this.proVisible = true;
  20145. _this.isFinishSize = 0;
  20146. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20147. var b = [
  20148. "DOC",
  20149. "DOCX",
  20150. "DOCM",
  20151. "DOTM",
  20152. "DOTX",
  20153. "PPTX",
  20154. "PPSX",
  20155. "PPT",
  20156. "PPS",
  20157. "PPTM",
  20158. "POTM",
  20159. "PPAM",
  20160. "POTX",
  20161. "PPSM"
  20162. ];
  20163. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20164. var photoA = [
  20165. "BMP",
  20166. "GIF",
  20167. "PNG",
  20168. "JPEG",
  20169. "JPEG",
  20170. "JPG",
  20171. "TIF",
  20172. "PCX",
  20173. "TGA",
  20174. "EXIF",
  20175. "FPX",
  20176. "SVG",
  20177. "APNG"
  20178. ];
  20179. // if (
  20180. // b.indexOf(
  20181. // file.name
  20182. // .split(".")
  20183. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20184. // ) != -1
  20185. // ) {
  20186. // if (file.size / 1024 / 1024 > 10) {
  20187. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20188. // return;
  20189. // }
  20190. // } else if (
  20191. // excelA.indexOf(
  20192. // file.name
  20193. // .split(".")
  20194. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20195. // ) != "-1"
  20196. // ) {
  20197. // if (file.size / 1024 / 1024 > 5) {
  20198. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20199. // return;
  20200. // }
  20201. // }
  20202. if (
  20203. photoA.indexOf(
  20204. file.name
  20205. .split(".")
  20206. [file.name.split(".").length - 1].toLocaleUpperCase()
  20207. ) != -1 &&
  20208. type != 4
  20209. ) {
  20210. // const blob = await imageConversion.compress(file, 0.8)
  20211. file = await this.pngToWhiteBg(file);
  20212. const blob = await imageConversion.compressAccurately(file, 256);
  20213. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20214. file = new File([blob], file.name, { type: file.type });
  20215. }
  20216. if (file) {
  20217. var params = {
  20218. Key:
  20219. file.name.split(".")[0] +
  20220. new Date().getTime() +
  20221. "." +
  20222. file.name.split(".")[file.name.split(".").length - 1],
  20223. ContentType: file.type,
  20224. Body: file,
  20225. "Access-Control-Allow-Credentials": "*",
  20226. ACL: "public-read"
  20227. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20228. var options = {
  20229. // partSize: 2048 * 1024 * 1024,
  20230. partSize: 1024 * 1024 * 1024,
  20231. queueSize: 2,
  20232. leavePartsOnError: true
  20233. };
  20234. bucket
  20235. .upload(params, options)
  20236. .on("httpUploadProgress", function(evt) {
  20237. //这里可以写进度条
  20238. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20239. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20240. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20241. })
  20242. .send(function(err, data) {
  20243. _this.progress = 100;
  20244. _this.isFinishSize = _this.isAllSize;
  20245. setTimeout(() => {
  20246. _this.proVisible = false;
  20247. }, 1000);
  20248. if (err) {
  20249. var a = _this.$refs.upload1.uploadFiles;
  20250. a.splice(a.length - 1, a.length);
  20251. _this.$message.error(this.lang.ssUploadFailed);
  20252. } else {
  20253. // _this.$message.success('上传成功')
  20254. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20255. var c = [
  20256. "AVI",
  20257. "NAVI",
  20258. "MPEG",
  20259. "ASF",
  20260. "MOV",
  20261. "WMV",
  20262. "3GP",
  20263. "RM",
  20264. "RMVB",
  20265. "FLV",
  20266. "F4V",
  20267. "H.264",
  20268. "H.265",
  20269. "REAL VIDEO",
  20270. "MKV",
  20271. "WebM",
  20272. "HDDVD",
  20273. "MP4",
  20274. "MPG",
  20275. "M4V",
  20276. "MGV",
  20277. "OGV",
  20278. "QTM",
  20279. "STR",
  20280. "AMC",
  20281. "DVX",
  20282. "EVO",
  20283. "DAT",
  20284. "OGG",
  20285. "OGM"
  20286. ];
  20287. if (type == 1) {
  20288. _this.studyJuri[0].cover.push({
  20289. name: file.name,
  20290. url: data.Location,
  20291. uid: file.uid
  20292. });
  20293. if (
  20294. c.indexOf(
  20295. _this.studyJuri[0].cover[0].url
  20296. .split(".")
  20297. [
  20298. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20299. ].toLocaleUpperCase()
  20300. ) != -1
  20301. ) {
  20302. _this.fileType = 2;
  20303. } else if (
  20304. b.indexOf(
  20305. _this.studyJuri[0].cover[0].url
  20306. .split(".")
  20307. [
  20308. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20309. ].toLocaleUpperCase()
  20310. ) != -1
  20311. ) {
  20312. _this.fileType = 1;
  20313. } else if (
  20314. photoA.indexOf(
  20315. _this.studyJuri[0].cover[0].url
  20316. .split(".")
  20317. [
  20318. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20319. ].toLocaleUpperCase()
  20320. ) != -1
  20321. ) {
  20322. _this.fileType = 0;
  20323. } else {
  20324. _this.fileType = 3;
  20325. }
  20326. _this.imgChange(null, null, type);
  20327. } else if (type == 2) {
  20328. _this.upToolImg = data.Location;
  20329. _this.imgChange(null, null, type);
  20330. _this.addCourseWorks(i);
  20331. } else if (type == 4) {
  20332. _this.addPz("3", data.Location);
  20333. } else if (type == 5) {
  20334. _this.addImgDrawImG(data.Location);
  20335. } else if (type == 6) {
  20336. var _ftype = 1;
  20337. if (
  20338. c.indexOf(
  20339. data.Location.split(".")[
  20340. data.Location.split(".").length - 1
  20341. ].toLocaleUpperCase()
  20342. ) != -1
  20343. ) {
  20344. _ftype = 5;
  20345. } else if (
  20346. b.indexOf(
  20347. data.Location.split(".")[
  20348. data.Location.split(".").length - 1
  20349. ].toLocaleUpperCase()
  20350. ) != -1
  20351. ) {
  20352. _ftype = 4;
  20353. } else {
  20354. _ftype = 1;
  20355. }
  20356. _this.plworkFile.push({
  20357. name: file.name,
  20358. url: data.Location,
  20359. uid: file.uid,
  20360. fileType: _ftype,
  20361. username:
  20362. _this.plworkFile.length > 10
  20363. ? _this.plworkFile.length + 1
  20364. : "0" + (_this.plworkFile.length + 1)
  20365. });
  20366. } else if (type == 7) {
  20367. _this.addCourseWorksGong(i, data.Location, 32);
  20368. } else if (type == 8) {
  20369. _this.addCourseWorksGong(i, data.Location, 57);
  20370. }
  20371. _this.imgChange(null, null, type);
  20372. console.log(data.Location);
  20373. // _this.$message.success('上传成功'+data.Location)
  20374. }
  20375. });
  20376. }
  20377. },
  20378. async beforeUpload3(event, type, i) {
  20379. // this.$message.success('进入上传')
  20380. let file = "";
  20381. let cfindex2 = 0;
  20382. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20383. file = event.target.files[cfindex];
  20384. var credentials = {
  20385. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20386. secretAccessKey: "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"
  20387. }; //秘钥形式的登录上传
  20388. window.AWS.config.update(credentials);
  20389. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20390. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20391. var _this = this;
  20392. // _this.progress = 0;
  20393. _this.proVisible2 = true;
  20394. var b = [
  20395. "DOC",
  20396. "DOCX",
  20397. "DOCM",
  20398. "DOTM",
  20399. "DOTX",
  20400. "PPTX",
  20401. "PPSX",
  20402. "PPT",
  20403. "PPS",
  20404. "PPTM",
  20405. "POTM",
  20406. "PPAM",
  20407. "POTX",
  20408. "PPSM"
  20409. ];
  20410. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20411. var photoA = [
  20412. "BMP",
  20413. "GIF",
  20414. "PNG",
  20415. "JPEG",
  20416. "JPG",
  20417. "TIF",
  20418. "PCX",
  20419. "TGA",
  20420. "EXIF",
  20421. "FPX",
  20422. "SVG",
  20423. "APNG"
  20424. ];
  20425. if (
  20426. photoA.indexOf(
  20427. file.name
  20428. .split(".")
  20429. [file.name.split(".").length - 1].toLocaleUpperCase()
  20430. ) != -1 &&
  20431. type != 4
  20432. ) {
  20433. // const blob = await imageConversion.compress(file, 0.8)
  20434. file = await this.pngToWhiteBg(file);
  20435. const blob = await imageConversion.compressAccurately(file, 256);
  20436. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20437. file = new File([blob], file.name, { type: file.type });
  20438. }
  20439. if (file) {
  20440. var params = {
  20441. Key:
  20442. file.name.split(".")[0] +
  20443. new Date().getTime() +
  20444. "." +
  20445. file.name.split(".")[file.name.split(".").length - 1],
  20446. ContentType: file.type,
  20447. Body: file,
  20448. "Access-Control-Allow-Credentials": "*",
  20449. ACL: "public-read"
  20450. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20451. var options = {
  20452. // partSize: 2048 * 1024 * 1024,
  20453. partSize: 1024 * 1024 * 1024,
  20454. queueSize: 2,
  20455. leavePartsOnError: true
  20456. };
  20457. bucket
  20458. .upload(params, options)
  20459. .on("httpUploadProgress", function(evt) {
  20460. //这里可以写进度条
  20461. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20462. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20463. })
  20464. .send(function(err, data) {
  20465. // _this.progress = 100;
  20466. cfindex2++;
  20467. setTimeout(() => {
  20468. if (
  20469. cfindex2 == event.target.files.length - 1 ||
  20470. cfindex2 > event.target.files.length - 1
  20471. ) {
  20472. _this.proVisible2 = false;
  20473. }
  20474. }, 1000);
  20475. if (err) {
  20476. var a = _this.$refs.upload1.uploadFiles;
  20477. a.splice(a.length - 1, a.length);
  20478. _this.$message.error(this.lang.ssUploadFailed);
  20479. } else {
  20480. // _this.$message.success('上传成功')
  20481. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20482. var c = [
  20483. "AVI",
  20484. "NAVI",
  20485. "MPEG",
  20486. "ASF",
  20487. "MOV",
  20488. "WMV",
  20489. "3GP",
  20490. "RM",
  20491. "RMVB",
  20492. "FLV",
  20493. "F4V",
  20494. "H.264",
  20495. "H.265",
  20496. "REAL VIDEO",
  20497. "MKV",
  20498. "WebM",
  20499. "HDDVD",
  20500. "MP4",
  20501. "MPG",
  20502. "M4V",
  20503. "MGV",
  20504. "OGV",
  20505. "QTM",
  20506. "STR",
  20507. "AMC",
  20508. "DVX",
  20509. "EVO",
  20510. "DAT",
  20511. "OGG",
  20512. "OGM"
  20513. ];
  20514. if (type == 1) {
  20515. _this.studyJuri[0].cover.push({
  20516. name: file.name,
  20517. url: data.Location,
  20518. uid: file.uid
  20519. });
  20520. if (
  20521. c.indexOf(
  20522. _this.studyJuri[0].cover[0].url
  20523. .split(".")
  20524. [
  20525. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20526. ].toLocaleUpperCase()
  20527. ) != -1
  20528. ) {
  20529. _this.fileType = 2;
  20530. } else if (
  20531. b.indexOf(
  20532. _this.studyJuri[0].cover[0].url
  20533. .split(".")
  20534. [
  20535. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20536. ].toLocaleUpperCase()
  20537. ) != -1
  20538. ) {
  20539. _this.fileType = 1;
  20540. } else {
  20541. _this.fileType = 0;
  20542. }
  20543. _this.imgChange(null, null, type);
  20544. } else if (type == 2) {
  20545. _this.upToolImg = data.Location;
  20546. _this.imgChange(null, null, type);
  20547. _this.addCourseWorks(i);
  20548. } else if (type == 4) {
  20549. _this.addPz("3", data.Location);
  20550. } else if (type == 5) {
  20551. _this.addImgDrawImG(data.Location);
  20552. } else if (type == 6) {
  20553. var _ftype = 1;
  20554. if (
  20555. c.indexOf(
  20556. data.Location.split(".")[
  20557. data.Location.split(".").length - 1
  20558. ].toLocaleUpperCase()
  20559. ) != -1
  20560. ) {
  20561. _ftype = 5;
  20562. } else if (
  20563. b.indexOf(
  20564. data.Location.split(".")[
  20565. data.Location.split(".").length - 1
  20566. ].toLocaleUpperCase()
  20567. ) != -1
  20568. ) {
  20569. _ftype = 4;
  20570. } else {
  20571. _ftype = 1;
  20572. }
  20573. _this.plworkFile.push({
  20574. name: file.name,
  20575. url: data.Location,
  20576. uid: file.uid,
  20577. fileType: _ftype,
  20578. username:
  20579. _this.plworkFile.length + 1 > 9
  20580. ? _this.plworkFile.length + 1
  20581. : "0" + (_this.plworkFile.length + 1)
  20582. });
  20583. }
  20584. _this.imgChange(null, null, type);
  20585. console.log(data.Location);
  20586. // _this.$message.success('上传成功'+data.Location)
  20587. }
  20588. });
  20589. }
  20590. }
  20591. },
  20592. beforeUpload2(event, type) {
  20593. var file = event.target.files[0];
  20594. var credentials = {
  20595. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20596. secretAccessKey: "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"
  20597. }; //秘钥形式的登录上传
  20598. window.AWS.config.update(credentials);
  20599. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20600. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20601. var _this = this;
  20602. _this.progress = 0;
  20603. _this.proVisible = true;
  20604. if (file) {
  20605. var params = {
  20606. Key:
  20607. file.name.split(".")[0] +
  20608. new Date().getTime() +
  20609. "." +
  20610. file.name.split(".")[file.name.split(".").length - 1],
  20611. ContentType: file.type,
  20612. Body: file,
  20613. "Access-Control-Allow-Credentials": "*",
  20614. ACL: "public-read"
  20615. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20616. var options = {
  20617. partSize: 2048 * 1024 * 1024,
  20618. queueSize: 2,
  20619. leavePartsOnError: true
  20620. };
  20621. bucket
  20622. .upload(params, options)
  20623. .on("httpUploadProgress", function(evt) {
  20624. //这里可以写进度条
  20625. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20626. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20627. })
  20628. .send(function(err, data) {
  20629. _this.progress = 100;
  20630. setTimeout(() => {
  20631. _this.proVisible = false;
  20632. }, 1000);
  20633. if (err) {
  20634. var a = _this.$refs.upload1.uploadFiles;
  20635. a.splice(a.length - 1, a.length);
  20636. _this.$message.error(this.lang.ssUploadFailed);
  20637. } else {
  20638. if (type == 2) {
  20639. _this.studyJuri[0].upVedio.push({
  20640. name: file.name,
  20641. url: data.Location,
  20642. uid: file.uid
  20643. });
  20644. _this.imgChange(null, null, type);
  20645. } else if (type == 3) {
  20646. _this.studyJuri[0].upFile.push({
  20647. name: file.name,
  20648. url: data.Location,
  20649. uid: file.uid
  20650. });
  20651. _this.imgChange(null, null, type);
  20652. }
  20653. console.log(data.Location);
  20654. }
  20655. });
  20656. }
  20657. },
  20658. allScrell() {
  20659. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20660. },
  20661. // 0上一步 1下一步
  20662. nextOrpreSteps(t) {
  20663. if (this.IsFollow && this.tType == 2) {
  20664. this.$message.error(this.lang.ssFollowModeOn);
  20665. return;
  20666. }
  20667. var b = this.chapInfoList.length - 1;
  20668. if (t == 0) {
  20669. if (this.courseType == 0) {
  20670. if (this.taskCount == 0) {
  20671. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20672. if (this.IsLookOpen) {
  20673. if (
  20674. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20675. ) {
  20676. if (
  20677. this.courseDetail.userid != this.userid &&
  20678. (!this.courseDetail.course_teacher ||
  20679. (this.courseDetail.course_teacher &&
  20680. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20681. -1))
  20682. ) {
  20683. this.$message.error(this.lang.ssTaskLocked);
  20684. } else {
  20685. this.$message.error(this.lang.ssPrevTaskLocked);
  20686. }
  20687. return;
  20688. }
  20689. }
  20690. this.navList[this.courseType].isOpen = false;
  20691. this.courseType = b;
  20692. this.taskCount =
  20693. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20694. .length - 1;
  20695. this.navList[this.courseType].isOpen = true;
  20696. } else {
  20697. this.taskCount--;
  20698. }
  20699. } else {
  20700. if (this.taskCount == 0) {
  20701. this.navList[this.courseType].isOpen = false;
  20702. this.courseType--;
  20703. this.taskCount =
  20704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20705. .length - 1;
  20706. this.navList[this.courseType].isOpen = true;
  20707. } else {
  20708. this.taskCount--;
  20709. }
  20710. }
  20711. } else {
  20712. if (this.courseType == b) {
  20713. if (
  20714. this.taskCount ==
  20715. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20716. 1
  20717. ) {
  20718. this.navList[this.courseType].isOpen = false;
  20719. this.courseType = 0;
  20720. this.taskCount = 0;
  20721. this.navList[this.courseType].isOpen = true;
  20722. } else {
  20723. var bbb = parseInt(this.taskCount) + 1;
  20724. if (
  20725. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20726. .isLook &&
  20727. this.courseDetail.userid != this.userid &&
  20728. (!this.courseDetail.course_teacher ||
  20729. (this.courseDetail.course_teacher &&
  20730. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20731. -1)) &&
  20732. this.IsLookOpen
  20733. ) {
  20734. this.$message.error(this.lang.ssTaskLocked);
  20735. return;
  20736. }
  20737. this.taskCount++;
  20738. if (this.IsLookOpen) {
  20739. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20740. this.taskCount
  20741. ].isLook = true;
  20742. this.addCourseState(3);
  20743. }
  20744. }
  20745. } else {
  20746. if (
  20747. this.taskCount ==
  20748. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20749. 1
  20750. ) {
  20751. var bbb = parseInt(this.courseType) + 1;
  20752. if (
  20753. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20754. this.courseDetail.userid != this.userid &&
  20755. (!this.courseDetail.course_teacher ||
  20756. (this.courseDetail.course_teacher &&
  20757. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20758. -1)) &&
  20759. this.IsLookOpen
  20760. ) {
  20761. this.$message.error(this.lang.ssTaskLocked);
  20762. return;
  20763. }
  20764. this.navList[this.courseType].isOpen = false;
  20765. this.courseType++;
  20766. this.taskCount = 0;
  20767. this.navList[this.courseType].isOpen = true;
  20768. } else {
  20769. var bbb = parseInt(this.taskCount) + 1;
  20770. if (
  20771. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20772. .isLook &&
  20773. this.courseDetail.userid != this.userid &&
  20774. (!this.courseDetail.course_teacher ||
  20775. (this.courseDetail.course_teacher &&
  20776. this.courseDetail.course_teacher.indexOf(this.userid) ==
  20777. -1)) &&
  20778. this.IsLookOpen
  20779. ) {
  20780. this.$message.error(this.lang.ssTaskLocked);
  20781. return;
  20782. }
  20783. this.taskCount++;
  20784. }
  20785. if (this.IsLookOpen) {
  20786. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20787. this.taskCount
  20788. ].isLook = true;
  20789. this.addCourseState(3);
  20790. }
  20791. }
  20792. // if (
  20793. // this.taskCount ==
  20794. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20795. // ) {
  20796. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20797. // } else {
  20798. // this.taskCount++;
  20799. // }
  20800. }
  20801. document.scrollingElement.scrollTop = 0;
  20802. this.showType = 7;
  20803. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20804. // if (this.vedio[this.taskCount].length > 0) {
  20805. // var a =
  20806. // document.getElementsByClassName("box_course")[this.taskCount]
  20807. // .offsetHeight;
  20808. // document.getElementsByClassName("vedioList")[
  20809. // this.taskCount
  20810. // ].style.height = a + "px";
  20811. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20812. // a - 40 + "px";
  20813. // }
  20814. this.isNoHomeWork = false;
  20815. (this.studyJuri = [
  20816. {
  20817. content: "",
  20818. cover: [],
  20819. upVedio: [],
  20820. upFile: []
  20821. }
  20822. ]),
  20823. (this.radio = []);
  20824. this.isClickNav = "";
  20825. this.selectPz();
  20826. this.getHomeWork();
  20827. this.getCourseDetail(2);
  20828. this.$forceUpdate();
  20829. if ((this.courseDetail.userid == this.userid ||
  20830. (this.courseDetail.course_teacher &&
  20831. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) &&
  20832. this.IsFollow) {
  20833. this.setCTask();
  20834. }
  20835. },
  20836. openTask(s, n, i) {
  20837. if (this.IsFollow && this.tType == 2) {
  20838. this.$message.error(this.lang.ssFollowModeOn);
  20839. return;
  20840. }
  20841. if (this.IsLookOpen &&
  20842. this.courseDetail.userid != this.userid &&
  20843. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20844. if (
  20845. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20846. this.courseDetail.userid != this.userid &&
  20847. (!this.courseDetail.course_teacher ||
  20848. (this.courseDetail.course_teacher &&
  20849. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20850. ) {
  20851. this.$message.error(this.lang.ssTaskLocked);
  20852. return;
  20853. }
  20854. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20855. if (
  20856. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20857. .isLook
  20858. ) {
  20859. this.$message.error(this.lang.ssPrevTaskLocked);
  20860. return;
  20861. }
  20862. } else if (s > this.courseType) {
  20863. if (n > 0) {
  20864. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20865. this.$message.error(this.lang.ssPrevTaskLocked);
  20866. return;
  20867. }
  20868. } else {
  20869. if (
  20870. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20871. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20872. ].isLook
  20873. ) {
  20874. this.$message.error(this.lang.ssPrevTaskLocked);
  20875. return;
  20876. }
  20877. }
  20878. }
  20879. }
  20880. if (this.navList[s].task[n].isOpen == true) {
  20881. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20882. return;
  20883. }
  20884. let flag = this.courseType == s;
  20885. this.courseType = s;
  20886. this.navId = i;
  20887. this.taskCount = n;
  20888. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20889. this.navList[this.courseType].task[this.taskCount].isOpen = !this.navList[
  20890. this.courseType
  20891. ].task[this.taskCount].isOpen;
  20892. if (this.IsLookOpen) {
  20893. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20894. this.taskCount
  20895. ].isLook = true;
  20896. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20897. this.addCourseState(3,yym);
  20898. }
  20899. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20900. this.isCloseList[ci].isClose = 0;
  20901. this.isCloseList[ci].isCloseBoolean = false;
  20902. this.$nextTick(() => {
  20903. setTimeout(() => {
  20904. setTimeout(() => {
  20905. this.panToolHeight("tool-" + ci);
  20906. }, 0);
  20907. }, 0);
  20908. });
  20909. }
  20910. this.showType = 7;
  20911. this.isNoHomeWork = false;
  20912. (this.studyJuri = [
  20913. {
  20914. content: "",
  20915. cover: [],
  20916. upVedio: [],
  20917. upFile: []
  20918. }
  20919. ]),
  20920. (this.radio = []);
  20921. document.scrollingElement.scrollTop = 0;
  20922. // setTimeout(() => {
  20923. // let a = document.getElementById(i);
  20924. // if (a.offsetTop - 110 == 0) {
  20925. // window.scrollTo(0, 0);
  20926. // } else {
  20927. // window.scrollTo(0, a.offsetTop);
  20928. // }
  20929. // }, 0);
  20930. for (var z = 0; z < this.navList.length; z++) {
  20931. for (var q = 0; q < this.navList[z].task.length; q++) {
  20932. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20933. this.navList[z].task[q].tool[w].isTool = false;
  20934. }
  20935. }
  20936. }
  20937. this.selectPz();
  20938. this.getHomeWork();
  20939. this.getCourseDetail(2);
  20940. if (flag) {
  20941. this.insertMemorandum(
  20942. `进入<span class="variable">任务${n + 1}${
  20943. this.navList[s].task[n].taskName
  20944. ? ":" + this.navList[s].task[n].taskName
  20945. : ""
  20946. }</span>`
  20947. );
  20948. } else {
  20949. this.insertMemorandum(
  20950. `进入<span class="variable">阶段${s + 1}${
  20951. this.navList[s].dyName ? ":" + this.navList[s].dyName : ""
  20952. }</span>→<span class="variable">任务${n + 1}${
  20953. this.navList[s].task[n].taskName
  20954. ? ":" + this.navList[s].task[n].taskName
  20955. : ""
  20956. }</span>`
  20957. );
  20958. }
  20959. if ((this.courseDetail.userid == this.userid ||
  20960. (this.courseDetail.course_teacher &&
  20961. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  20962. this.setCTask();
  20963. }
  20964. },
  20965. get(i) {
  20966. if (this.IsFollow && this.tType == 2) {
  20967. this.$message.error(this.lang.ssFollowModeOn);
  20968. return;
  20969. }
  20970. // for(var k=0;k<this.navList.length;k++){
  20971. // this.navList[k].isOpen = false;
  20972. // }
  20973. // this.navList[i].isOpen = true;
  20974. this.navList[i].isOpen = !this.navList[i].isOpen;
  20975. if (this.navList[i].isOpen) {
  20976. this.openTask(i, 0, i + "-0");
  20977. }
  20978. },
  20979. addQuestion() {
  20980. this.answerList.push({
  20981. answerTitle: this.answerQ,
  20982. answer: this.questionAnswer
  20983. });
  20984. let params = [
  20985. {
  20986. uid: this.userid,
  20987. cid: this.id,
  20988. stage: this.courseType,
  20989. task: this.taskCount,
  20990. tool: this.toolindex,
  20991. content: JSON.stringify(this.answerList),
  20992. type: 3
  20993. }
  20994. ];
  20995. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  20996. this.homeWorkLoading = true
  20997. this.ajax
  20998. .post(this.$store.state.api + "addCourseWorks", params)
  20999. .then(res => {
  21000. this.$message({
  21001. message: this.lang.ssSubmitSuccess,
  21002. type: "success"
  21003. });
  21004. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21005. setTimeout(() => {
  21006. this.homeWorkLoading = false
  21007. }, 500);
  21008. this.answerList = [];
  21009. this.answerDialogVisible = false;
  21010. this.selectStudent();
  21011. this.selectSWorks();
  21012. this.selectSLook();
  21013. })
  21014. .catch(err => {
  21015. this.$message.error(this.lang.ssSubmitFailed);
  21016. setTimeout(() => {
  21017. this.homeWorkLoading = false
  21018. }, 500);
  21019. console.error(err);
  21020. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21021. });
  21022. },
  21023. addQuestionTeacher() {
  21024. this.answerList.push({
  21025. answerTitle: this.answerQ,
  21026. answer: this.questionAnswer
  21027. });
  21028. let params = [
  21029. {
  21030. uid: this.sStudent.userid,
  21031. cid: this.id,
  21032. stage: this.courseType,
  21033. task: this.taskCount,
  21034. tool: this.toolindex,
  21035. content: JSON.stringify(this.answerList),
  21036. type: 3,
  21037. ateacher: this.userid
  21038. }
  21039. ];
  21040. this.ajax
  21041. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21042. .then(res => {
  21043. this.$message({
  21044. message: this.lang.ssSubmitSuccess,
  21045. type: "success"
  21046. });
  21047. this.answerList = [];
  21048. this.questionAnswer = "";
  21049. this.answerDialogVisibleTeacher = false;
  21050. this.selectStudent();
  21051. this.selectSWorks();
  21052. this.selectSLook();
  21053. })
  21054. .catch(err => {
  21055. this.$message.error(this.lang.ssSubmitFailed);
  21056. console.error(err);
  21057. });
  21058. },
  21059. refreshCourse() {
  21060. // window.location.reload();
  21061. this.navList = [];
  21062. this.getCourseDetail(1);
  21063. },
  21064. getCourseDetail(type, gindex) {
  21065. let loading;
  21066. if (type != 2) {
  21067. loading = this.$loading.service({
  21068. background: "rgba(255, 255, 255, 0.7)",
  21069. target: document.querySelector(".student_table")
  21070. });
  21071. }
  21072. this.downLoading = false;
  21073. // this.navList[0].isOpen = false;
  21074. // this.navList[this.courseType].isOpen = true;
  21075. // this.courseType = this.courseTypeLine;
  21076. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21077. let params = {
  21078. courseId: this.id
  21079. };
  21080. this.ajax
  21081. .get(this.$store.state.api + "selectCourseDetail3", params)
  21082. .then(res => {
  21083. if ((this.courseDetail.userid == this.userid ||
  21084. (this.courseDetail.course_teacher &&
  21085. this.courseDetail.course_teacher.indexOf(this.userid) != -1)) && this.IsFollow) {
  21086. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21087. }
  21088. if (type != 2) {
  21089. loading.close();
  21090. if (
  21091. this.courseType >
  21092. JSON.parse(res.data[0][0].chapters).length - 1
  21093. ) {
  21094. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21095. }
  21096. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21097. .chapterInfo[0].taskJson;
  21098. var b = [
  21099. "AVI",
  21100. "NAVI",
  21101. "MPEG",
  21102. "ASF",
  21103. "MOV",
  21104. "WMV",
  21105. "3GP",
  21106. "RM",
  21107. "RMVB",
  21108. "FLV",
  21109. "F4V",
  21110. "H.264",
  21111. "H.265",
  21112. "REAL VIDEO",
  21113. "MKV",
  21114. "WebM",
  21115. "HDDVD",
  21116. "MP4",
  21117. "MPG",
  21118. "M4V",
  21119. "MGV",
  21120. "OGV",
  21121. "QTM",
  21122. "STR",
  21123. "AMC",
  21124. "DVX",
  21125. "EVO",
  21126. "DAT",
  21127. "OGG",
  21128. "OGM",
  21129. "MP3"
  21130. ];
  21131. let _chapterData = [];
  21132. for (var i = 0; i < a.length; i++) {
  21133. var c = a[i].chapterData;
  21134. this.vedio[i] = [];
  21135. this.textList[i] = [];
  21136. this.lineList[i] = [];
  21137. this.chapToolList[i] = [];
  21138. this.file[i] = [];
  21139. this.fileC[i] = [];
  21140. _chapterData[i] = c.filter(el => {
  21141. return el.type != 12;
  21142. });
  21143. this.fileC[i] = c.filter(el => {
  21144. return el.type == 12;
  21145. });
  21146. if (this.tType == 2) {
  21147. if (this.fileC[i].length) {
  21148. let yym1 = this.fileC[i].filter(e=>{
  21149. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  21150. return e
  21151. }
  21152. })
  21153. this.fileC[i] = yym1
  21154. }
  21155. }
  21156. // else if (c[j].type == 12) {
  21157. // this.fileC[i].push(c[j]);
  21158. // }
  21159. for (var j = 0; j < c.length; j++) {
  21160. if (c[j].type == 7) {
  21161. this.chapToolList[i].push(c[j]);
  21162. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21163. this.lineList[i].push(c[j]);
  21164. } else if (c[j].type == 6) {
  21165. this.textList[i].push(c[j]);
  21166. } else {
  21167. if (
  21168. b.indexOf(
  21169. c[j].url
  21170. .split(".")
  21171. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21172. ) != -1
  21173. ) {
  21174. this.vedio[i].push(c[j]);
  21175. } else {
  21176. this.file[i].push(c[j]);
  21177. }
  21178. }
  21179. }
  21180. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21181. d.sources[0].src =
  21182. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21183. this.playerO[i] = d;
  21184. }
  21185. this.courseDetail = res.data[0][0];
  21186. if(this.tType == 2){
  21187. this.tcid = this.arrayToArray(
  21188. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21189. this.classId ? this.classId.split(",") : []
  21190. ).join(",");
  21191. }else{
  21192. this.tcid = this.arrayToArray(
  21193. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21194. this.tcid2 ? this.tcid2.split(",") : []
  21195. ).join(",");
  21196. }
  21197. this.evalua = res.data[0][0].evaId;
  21198. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21199. this.courseType
  21200. ];
  21201. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21202. if (this.tcid && res.data[1].length) {
  21203. let _inviteA = [];
  21204. for (var ik = 0; ik < res.data[1].length; ik++) {
  21205. _inviteA.push({
  21206. cid: res.data[1][ik].classid,
  21207. ic: res.data[1][ik].code
  21208. });
  21209. }
  21210. for (var ik = 0; ik < _inviteA.length; ik++) {
  21211. if (
  21212. this.arrayToArray(
  21213. _inviteA[ik].cid.split(","),
  21214. this.tcid.split(",")
  21215. ).length
  21216. ) {
  21217. this.inviteCode = _inviteA[ik].ic;
  21218. break;
  21219. }
  21220. }
  21221. }
  21222. for (var l = 0; l < this.chapInfoList.length; l++) {
  21223. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21224. for (var m = 0; m < w.length; m++) {
  21225. w[m].id = l + "-" + m;
  21226. }
  21227. }
  21228. if (
  21229. _chapterData[this.taskCount].length &&
  21230. _chapterData[this.taskCount][0].type == 2
  21231. ) {
  21232. this.showType = 0;
  21233. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21234. } else {
  21235. if (_chapterData[this.taskCount].length > 0) {
  21236. let _url = _chapterData[this.taskCount][0].url;
  21237. if (
  21238. _chapterData[this.taskCount][0].type == 8 ||
  21239. _chapterData[this.taskCount][0].type == 14 ||
  21240. _chapterData[this.taskCount][0].type == 15
  21241. ) {
  21242. this.showType = 2;
  21243. if (
  21244. _url.indexOf("https://") == -1 &&
  21245. _url.indexOf("http://") == -1
  21246. ) {
  21247. _url = "https://" + _url;
  21248. }
  21249. this.pptImgUrl1 = _url;
  21250. } else if (_chapterData[this.taskCount][0].type == 3) {
  21251. if (
  21252. _url
  21253. .split(".")
  21254. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21255. ) {
  21256. this.showType = 3;
  21257. this.pptImgUrl1 = _url;
  21258. } else if (
  21259. this.isAssetTypeAnImage(
  21260. _url
  21261. .split(".")
  21262. [_url.split(".").length - 1].toLocaleLowerCase()
  21263. )
  21264. ) {
  21265. this.showType = 4;
  21266. this.pptImgUrl1 = _url;
  21267. } else {
  21268. this.showType = 2;
  21269. this.pptImgUrl1 =
  21270. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21271. encodeURIComponent(_url);
  21272. }
  21273. } else if (_chapterData[this.taskCount][0].type == 13) {
  21274. this.showType = 4;
  21275. this.pptImgUrl1 = _url;
  21276. } else if (_chapterData[this.taskCount][0].type == 6) {
  21277. this.showType = 1;
  21278. this.text = this.textList[this.taskCount][0];
  21279. } else if (_chapterData[this.taskCount][0].type == 16) {
  21280. this.showType = 16;
  21281. this.pptImgUrl1 = _url;
  21282. } else if (_chapterData[this.taskCount][0].type == 17) {
  21283. this.showType = 16;
  21284. this.pptImgUrl1 = _url;
  21285. }
  21286. }
  21287. }
  21288. this.isClickNav = 0;
  21289. if (
  21290. !_chapterData[this.taskCount].length ||
  21291. _chapterData[this.taskCount][0].type == 12
  21292. ) {
  21293. this.isClickNav = "";
  21294. this.showType = "";
  21295. }
  21296. if (this.tType == 2) {
  21297. _chapterData.forEach((e,i)=>{
  21298. if (e.length) {
  21299. let yym = e.filter(k=>{
  21300. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  21301. return k
  21302. }
  21303. })
  21304. _chapterData[i] = yym
  21305. }
  21306. })
  21307. }
  21308. this.vChapterData = _chapterData;
  21309. } else {
  21310. this.showType = 0;
  21311. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21312. .chapterInfo[0].taskJson;
  21313. var b = [
  21314. "AVI",
  21315. "NAVI",
  21316. "MPEG",
  21317. "ASF",
  21318. "MOV",
  21319. "WMV",
  21320. "3GP",
  21321. "RM",
  21322. "RMVB",
  21323. "FLV",
  21324. "F4V",
  21325. "H.264",
  21326. "H.265",
  21327. "REAL VIDEO",
  21328. "MKV",
  21329. "WebM",
  21330. "HDDVD",
  21331. "MP4",
  21332. "MPG",
  21333. "M4V",
  21334. "MGV",
  21335. "OGV",
  21336. "QTM",
  21337. "STR",
  21338. "AMC",
  21339. "DVX",
  21340. "EVO",
  21341. "DAT",
  21342. "OGG",
  21343. "OGM",
  21344. "MP3"
  21345. ];
  21346. let _chapterData = [];
  21347. for (var i = 0; i < a.length; i++) {
  21348. var c = a[i].chapterData;
  21349. this.vedio[i] = [];
  21350. this.textList[i] = [];
  21351. this.lineList[i] = [];
  21352. this.chapToolList[i] = [];
  21353. this.file[i] = [];
  21354. this.fileC[i] = [];
  21355. _chapterData[i] = c.filter(el => {
  21356. return el.type != 12;
  21357. });
  21358. this.fileC[i] = c.filter(el => {
  21359. return el.type == 12;
  21360. });
  21361. if (this.tType == 2) {
  21362. if (this.fileC[i].length) {
  21363. let yym1 = this.fileC[i].filter(e=>{
  21364. if(!converter(e.name).includes(converter(this.lang.ssTeachingPlan))){
  21365. return e
  21366. }
  21367. })
  21368. this.fileC[i] = yym1
  21369. }
  21370. }
  21371. for (var j = 0; j < c.length; j++) {
  21372. if (c[j].type == 7) {
  21373. this.chapToolList[i].push(c[j]);
  21374. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21375. this.lineList[i].push(c[j]);
  21376. } else if (c[j].type == 6) {
  21377. this.textList[i].push(c[j]);
  21378. } else {
  21379. if (
  21380. b.indexOf(
  21381. c[j].url
  21382. .split(".")
  21383. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21384. ) != -1
  21385. ) {
  21386. this.vedio[i].push(c[j]);
  21387. } else {
  21388. this.file[i].push(c[j]);
  21389. }
  21390. }
  21391. }
  21392. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21393. d.sources[0].src =
  21394. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21395. this.playerO[i] = d;
  21396. }
  21397. if (
  21398. _chapterData[this.taskCount].length &&
  21399. _chapterData[this.taskCount][0].type == 2
  21400. ) {
  21401. this.showType = 0;
  21402. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  21403. } else {
  21404. if (_chapterData[this.taskCount].length > 0) {
  21405. let _url = _chapterData[this.taskCount][0].url;
  21406. if (
  21407. _chapterData[this.taskCount][0].type == 8 ||
  21408. _chapterData[this.taskCount][0].type == 14 ||
  21409. _chapterData[this.taskCount][0].type == 15
  21410. ) {
  21411. this.showType = 2;
  21412. if (
  21413. _url.indexOf("https://") == -1 &&
  21414. _url.indexOf("http://") == -1
  21415. ) {
  21416. _url = "https://" + _url;
  21417. }
  21418. this.pptImgUrl1 = _url;
  21419. } else if (_chapterData[this.taskCount][0].type == 3) {
  21420. if (
  21421. _url
  21422. .split(".")
  21423. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21424. ) {
  21425. this.showType = 3;
  21426. this.pptImgUrl1 = _url;
  21427. } else if (
  21428. this.isAssetTypeAnImage(
  21429. _url
  21430. .split(".")
  21431. [_url.split(".").length - 1].toLocaleLowerCase()
  21432. )
  21433. ) {
  21434. this.showType = 4;
  21435. this.pptImgUrl1 = _url;
  21436. } else {
  21437. this.showType = 2;
  21438. this.pptImgUrl1 =
  21439. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21440. encodeURIComponent(_url);
  21441. }
  21442. } else if (_chapterData[this.taskCount][0].type == 13) {
  21443. this.showType = 4;
  21444. this.pptImgUrl1 = _url;
  21445. } else if (_chapterData[this.taskCount][0].type == 6) {
  21446. this.showType = 1;
  21447. this.text = this.textList[this.taskCount][0];
  21448. } else if (_chapterData[this.taskCount][0].type == 16) {
  21449. this.showType = 16;
  21450. this.pptImgUrl1 = _url;
  21451. } else if (_chapterData[this.taskCount][0].type == 17) {
  21452. this.showType = 16;
  21453. this.pptImgUrl1 = _url;
  21454. }
  21455. }
  21456. }
  21457. this.isClickNav = 0;
  21458. if (
  21459. !_chapterData[this.taskCount].length ||
  21460. _chapterData[this.taskCount][0].type == 12
  21461. ) {
  21462. this.isClickNav = "";
  21463. this.showType = "";
  21464. }
  21465. if (this.tType == 2) {
  21466. _chapterData.forEach((e,i)=>{
  21467. if (e.length) {
  21468. let yym = e.filter(k=>{
  21469. if(!converter(k.name).includes(converter(this.lang.ssTeachingPlan))){
  21470. return k
  21471. }
  21472. })
  21473. _chapterData[i] = yym
  21474. }
  21475. })
  21476. }
  21477. this.vChapterData = _chapterData;
  21478. this.$forceUpdate();
  21479. }
  21480. // console.log('this.chapInfoList22222',JS);
  21481. if (res.data[0][0].setting) {
  21482. try {
  21483. this.languageSetting =
  21484. JSON.parse(res.data[0][0].setting).languageSetting ||
  21485. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21486. ? JSON.parse(res.data[0][0].setting).languageSetting
  21487. : 0;
  21488. } catch (error) {
  21489. console.error(error);
  21490. }
  21491. }
  21492. // finalMarkList用来判断哪个工具为评分工具
  21493. if (this.courseDetail.state == 5) {
  21494. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21495. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21496. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21497. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21498. // // 没有的话在选其他工具为评分工具
  21499. // if(adc.length > 0){
  21500. // for (let k = chap.length - 1; k >= 0; k--) {
  21501. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21502. // this.finalMarkList = k;
  21503. // break;
  21504. // }
  21505. // }
  21506. // }else{
  21507. // for (let k = chap.length - 1; k >= 0; k--) {
  21508. // 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) {
  21509. // this.finalMarkList = k;
  21510. // break;
  21511. // }
  21512. // }
  21513. // }
  21514. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21515. // 不然会无限循环报错,会很难受
  21516. let aiSNum = 0;
  21517. if (
  21518. chapInfoListCopy[this.taskCount].eList &&
  21519. chapInfoListCopy[this.taskCount].eList.length
  21520. ) {
  21521. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21522. if (e.isai == 2) {
  21523. aiSNum++;
  21524. }
  21525. });
  21526. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21527. this.isaiNum = aiSNum;
  21528. } else {
  21529. this.isaiNum = 0;
  21530. }
  21531. // for (
  21532. // let k = 0;
  21533. // k < chapInfoListCopy[this.taskCount].eList.length;
  21534. // k++
  21535. // ) {
  21536. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21537. // this.againEva(this.taskCount, k);
  21538. // }
  21539. // }
  21540. }
  21541. }
  21542. // else {
  21543. // this.courseDetail = res.data[0][0];
  21544. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21545. // }
  21546. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21547. if (type == 10) {
  21548. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21549. console.log('this.userid',this.userid);
  21550. if (this.courseDetail.userid == this.userid) {
  21551. // 开局关闭学生查看内容
  21552. this.StulookMode(true)
  21553. // 开局打开跟随模式
  21554. this.followingMode(true)
  21555. }
  21556. }
  21557. let _this = this;
  21558. if (_this.timer) {
  21559. clearInterval(_this.timer);
  21560. _this.timer = null;
  21561. }
  21562. if (_this.tcid) {
  21563. _this.getCourseGroup(gindex);
  21564. } else {
  21565. _this.selectSWorks(gindex);
  21566. }
  21567. _this.selectStudent();
  21568. _this.selectSLook();
  21569. _this.getPick();
  21570. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21571. // _this.setCTask();
  21572. // }
  21573. if (_this.dialogVisibleGroup) {
  21574. _this.groupJson =
  21575. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21576. _this.taskCount
  21577. ].toolChoose[_this.toolindex].groupJson;
  21578. }
  21579. _this.$nextTick(() => {
  21580. setTimeout(() => {
  21581. _this.checkEva();
  21582. }, 1000);
  21583. });
  21584. _this.timer = setInterval(function() {
  21585. // _this.getCourseDetail(2);
  21586. if (_this.tcid) {
  21587. _this.getCourseGroup();
  21588. } else {
  21589. _this.selectSWorks();
  21590. }
  21591. _this.selectStudent();
  21592. _this.selectSLook();
  21593. _this.getPick();
  21594. // _this.getSplitScreenData();
  21595. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21596. // _this.setCTask();
  21597. // }
  21598. if (_this.dialogVisibleGroup) {
  21599. _this.groupJson =
  21600. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21601. _this.taskCount
  21602. ].toolChoose[_this.toolindex].groupJson;
  21603. }
  21604. if (_this.tType == 4 || _this.ispzType == 4) {
  21605. _this.selectPz();
  21606. }
  21607. }, 5000);
  21608. if (_this.timer2 == null) {
  21609. _this.timer2 = setInterval(()=> {
  21610. _this.getSplitScreenData();//获取分屏数据
  21611. }, 5000);
  21612. }
  21613. _this.$nextTick(function() {
  21614. setTimeout(() => {
  21615. const element = document.getElementsByClassName("pb_body")[0];
  21616. if (element) {
  21617. element.style.minHeight = 'unset'
  21618. // 或者:element.style.removeProperty("min-height");
  21619. }
  21620. // var a =
  21621. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21622. // document.getElementsByClassName("vedioList")[0].style.height =
  21623. // a + "px";
  21624. // document.getElementsByClassName("navBox")[0].style.height =
  21625. // a - 40 + "px";
  21626. // if (_this.vedio[_this.taskCount].length > 0) {
  21627. // _this.vedioTime = [];
  21628. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21629. // _this.vedioTime[i] = document.getElementsByClassName(
  21630. // "vjs-duration-display"
  21631. // )[i].textContent;
  21632. // }
  21633. // }
  21634. }, 1000);
  21635. });
  21636. })
  21637. .catch(err => {
  21638. loading.close();
  21639. console.error(err);
  21640. });
  21641. },
  21642. getCourseGroup(gindex) {
  21643. if(this.getCourseGroupLoading) return
  21644. this.getCourseGroupLoading = true
  21645. let params = {
  21646. cid: this.id,
  21647. classid: this.tcid ? this.tcid : "1"
  21648. };
  21649. this.ajax
  21650. .get(this.$store.state.api + "getCourseGroup", params)
  21651. .then(res => {
  21652. if (res.data && res.data[0].length) {
  21653. if (!this.isGroup) {
  21654. let courseGroup = JSON.parse(res.data[0][0].group);
  21655. courseGroup.group = courseGroup.group.filter(el => {
  21656. el.works = [];
  21657. return el;
  21658. });
  21659. if (courseGroup.isopen == 2) {
  21660. this.isGroup = false;
  21661. this.selectSWorks(gindex);
  21662. return;
  21663. }
  21664. this.courseGroup = courseGroup;
  21665. let groupPerson = res.data[1];
  21666. let group = JSON.parse(res.data[0][0].group).group;
  21667. let courseGroupStudent = {};
  21668. let courseGroupStudentUid = {};
  21669. for (var i = 0; i < group.length; i++) {
  21670. courseGroupStudent[group[i].id] = [];
  21671. courseGroupStudentUid[group[i].id] = [];
  21672. for (var j = 0; j < groupPerson.length; j++) {
  21673. if (groupPerson[j].groupCid == group[i].id) {
  21674. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21675. courseGroupStudentUid[group[i].id].push(
  21676. groupPerson[j].userid
  21677. );
  21678. }
  21679. }
  21680. }
  21681. this.courseGroupStudent = courseGroupStudent;
  21682. this.courseGroupStudentUid = courseGroupStudentUid;
  21683. }
  21684. if (this.courseGroup.isopen == 2) {
  21685. this.isGroup = false;
  21686. } else {
  21687. this.isGroup = true;
  21688. }
  21689. this.selectSWorks(gindex);
  21690. } else {
  21691. this.selectSWorks(gindex);
  21692. this.isGroup = false;
  21693. }
  21694. this.getCourseGroupLoading = false
  21695. })
  21696. .catch(err => {
  21697. this.getCourseGroupLoading = false
  21698. // this.$message.error("网络不佳");
  21699. console.error(err);
  21700. });
  21701. },
  21702. setOperationTime() {
  21703. let _this = this;
  21704. if (_this.opertimer) {
  21705. clearInterval(_this.opertimer);
  21706. _this.opertimer = null;
  21707. }
  21708. _this.opertimer = setInterval(() => {
  21709. _this.setoTime("600");
  21710. }, 600000);
  21711. },
  21712. setoTime(time) {
  21713. this.doSyncClassData();
  21714. let params = [
  21715. {
  21716. uid: this.userid,
  21717. cid: this.id + (this.tcid2 || ''),
  21718. type: "2",
  21719. time: time
  21720. }
  21721. ];
  21722. this.ajax
  21723. .post(this.$store.state.api + "addOperationTimeT2", params)
  21724. .then(res => {})
  21725. .catch(err => {
  21726. console.error(err);
  21727. });
  21728. },
  21729. addPz(type, content) {
  21730. if (type == "1" && this.pzConText == "") {
  21731. this.$message.error(this.lang.ssCommentEmpty);
  21732. return;
  21733. }
  21734. let params = [
  21735. {
  21736. cid: this.id,
  21737. uid: this.userid,
  21738. s: this.courseType,
  21739. t: this.taskCount,
  21740. c: type == "1" ? this.pzConText : content,
  21741. type: type
  21742. }
  21743. ];
  21744. this.ajax
  21745. .post(this.$store.state.api + "addPz2", params)
  21746. .then(res => {
  21747. this.$message({
  21748. message: this.lang.ssAddSuccess,
  21749. type: "success"
  21750. });
  21751. this.pzConText = "";
  21752. this.addPzDialog = false;
  21753. this.selectPz();
  21754. if(this.tType!=2){
  21755. this.insertMemorandum(
  21756. `使用<span class="btn">评论</span>功能,添加评论`
  21757. );
  21758. }
  21759. })
  21760. .catch(err => {
  21761. this.$message.error(this.lang.ssAddFailed);
  21762. console.error(err);
  21763. });
  21764. },
  21765. setReplyIndex(id, i) {
  21766. this.replyIndex = i;
  21767. this.replyPid = id;
  21768. this.replyDialogVisible = true;
  21769. },
  21770. addHf() {
  21771. if (this.reply == "") {
  21772. this.$message.error(this.lang.ssReplyEmpty);
  21773. return;
  21774. }
  21775. let params = [
  21776. {
  21777. cid: this.id,
  21778. uid: this.userid,
  21779. s: this.courseType,
  21780. t: this.taskCount,
  21781. type: "1",
  21782. ct: 2,
  21783. pid: this.replyPid,
  21784. c: this.reply
  21785. }
  21786. ];
  21787. this.ajax
  21788. .post(this.$store.state.api + "addHf", params)
  21789. .then(res => {
  21790. this.reply = "";
  21791. this.$message({
  21792. message: this.lang.ssReplySuccess,
  21793. type: "success"
  21794. });
  21795. this.replyDialogVisible = false;
  21796. this.selectPz();
  21797. })
  21798. .catch(err => {
  21799. this.$message.error(this.lang.ssReplyFailed);
  21800. console.error(err);
  21801. });
  21802. },
  21803. deletePz(id) {
  21804. this.$confirm(this.lang.ssConfirmDeleteComment, this.lang.ssPrompt, {
  21805. confirmButtonText: this.lang.ssConfirm,
  21806. cancelButtonText: this.lang.ssCancel,
  21807. type: "warning"
  21808. })
  21809. .then(() => {
  21810. let params = [
  21811. {
  21812. id: id
  21813. }
  21814. ];
  21815. this.ajax
  21816. .post(this.$store.state.api + "deletePz", params)
  21817. .then(res => {
  21818. this.$message({
  21819. message: this.lang.ssDeleteSuccess,
  21820. type: "success"
  21821. });
  21822. this.selectPz();
  21823. })
  21824. .catch(err => {
  21825. this.$message.error(this.lang.ssNetworkError);
  21826. console.error(err);
  21827. });
  21828. })
  21829. .catch(() => {});
  21830. },
  21831. deleteReply(id) {
  21832. this.$confirm(this.lang.ssConfirmDeleteReply, this.lang.ssPrompt, {
  21833. confirmButtonText: this.lang.ssConfirm,
  21834. cancelButtonText: this.lang.ssCancel,
  21835. type: "warning"
  21836. })
  21837. .then(() => {
  21838. let params = [
  21839. {
  21840. id: id
  21841. }
  21842. ];
  21843. this.ajax
  21844. .post(this.$store.state.api + "deleteReply", params)
  21845. .then(res => {
  21846. this.$message({
  21847. message: this.lang.ssDeleteSuccess,
  21848. type: "success"
  21849. });
  21850. this.selectPz();
  21851. })
  21852. .catch(err => {
  21853. this.$message.error(this.lang.ssNetworkError);
  21854. console.error(err);
  21855. });
  21856. })
  21857. .catch(() => {});
  21858. },
  21859. setPz() {
  21860. if (this.ispzType == 4) {
  21861. this.ispzType = 0;
  21862. this.pzDialog = false;
  21863. return;
  21864. }
  21865. this.ispzType = 4;
  21866. this.pzDialog = true;
  21867. this.selectPz();
  21868. },
  21869. selectPz() {
  21870. if(this.selectPzLoading) return
  21871. this.selectPzLoading = true
  21872. let params = {
  21873. cid: this.id,
  21874. s: this.courseType,
  21875. t: this.taskCount,
  21876. type: this.pzStype,
  21877. uid: this.userid
  21878. };
  21879. this.ajax
  21880. .get(this.$store.state.api + "selectPzListType", params)
  21881. .then(res => {
  21882. this.pzList = res.data[0];
  21883. var a = res.data[1];
  21884. for (var i = 0; i < a.length; i++) {
  21885. for (var j = 0; j < this.pzList.length; j++) {
  21886. if (!this.pzList[j].hfList) {
  21887. this.pzList[j].hfList = [];
  21888. }
  21889. if (a[i].pid == this.pzList[j].id) {
  21890. this.pzList[j].hfList.push(a[i]);
  21891. }
  21892. }
  21893. }
  21894. this.selectPzLoading = false
  21895. })
  21896. .catch(err => {
  21897. this.selectPzLoading = false
  21898. console.error(err);
  21899. });
  21900. },
  21901. // selectHf() {
  21902. // let params = {
  21903. // cid: this.id,
  21904. // s: this.courseType,
  21905. // t: this.taskCount,
  21906. // };
  21907. // this.ajax
  21908. // .get(this.$store.state.api + "selectHfList", params)
  21909. // .then((res) => {
  21910. // var a = res.data[0];
  21911. // for (var i = 0; i < a.length; i++) {
  21912. // for (var j = 0; j < this.pzList.length; j++) {
  21913. // if (!this.pzList[i].hfList) {
  21914. // this.pzList[i].hfList = [];
  21915. // }
  21916. // if (a[i].pid == this.pzList[j].id) {
  21917. // this.pzList[i].hfList.push(a[i]);
  21918. // }
  21919. // }
  21920. // }
  21921. // })
  21922. // .catch((err) => {
  21923. // console.error(err);
  21924. // });
  21925. // },
  21926. updateSLook() {
  21927. let params = {
  21928. sopen: this.sIsOpen == false ? 1 : 2,
  21929. cid: this.id
  21930. };
  21931. this.ajax
  21932. .get(this.$store.state.api + "updateCourseSLook", params)
  21933. .then(res => {
  21934. if (this.sIsOpen == true) {
  21935. this.$message({
  21936. message: this.lang.ssPermSetSuccess,
  21937. type: "success"
  21938. });
  21939. } else {
  21940. this.$message({
  21941. message: this.lang.ssPermClosedOk,
  21942. type: "success"
  21943. });
  21944. }
  21945. })
  21946. .catch(err => {
  21947. console.error(err);
  21948. });
  21949. },
  21950. updateIsStulook(){
  21951. let params = [
  21952. {
  21953. sopen: this.IsStulook == false ? 2 : 1,
  21954. cid: this.id
  21955. }
  21956. ];
  21957. this.ajax
  21958. .post(this.$store.state.api + "updateCourseStulook", params)
  21959. .then(res => {
  21960. if (this.IsStulook == true) {
  21961. this.$message({
  21962. message: this.lang.ssStuViewPermOn,
  21963. type: "success"
  21964. });
  21965. } else {
  21966. this.$message({
  21967. message: this.lang.ssStuViewPermOff,
  21968. type: "success"
  21969. });
  21970. }
  21971. // this.setCTask();
  21972. })
  21973. .catch(err => {
  21974. console.error(err);
  21975. });
  21976. },
  21977. updateFollow() {
  21978. let params = [
  21979. {
  21980. sopen: this.IsFollow == false ? 1 : 2,
  21981. cid: this.id
  21982. }
  21983. ];
  21984. this.ajax
  21985. .post(this.$store.state.api + "updateCourseFollow", params)
  21986. .then(res => {
  21987. if (this.IsFollow == true) {
  21988. this.$message({
  21989. message: this.lang.ssFollowModeOn2,
  21990. type: "success"
  21991. });
  21992. } else {
  21993. this.$message({
  21994. message: this.lang.ssFollowModeOff,
  21995. type: "success"
  21996. });
  21997. }
  21998. this.setCTask();
  21999. })
  22000. .catch(err => {
  22001. console.error(err);
  22002. });
  22003. },
  22004. setCTask() {
  22005. let params = [
  22006. {
  22007. sopen: this.courseType + "-" + this.taskCount,
  22008. cid: this.id
  22009. }
  22010. ];
  22011. this.ajax
  22012. .post(this.$store.state.api + "updateCourseFollowC", params)
  22013. .then(res => {})
  22014. .catch(err => {
  22015. console.error(err);
  22016. });
  22017. },
  22018. updateLookOpen() {
  22019. let params = [
  22020. {
  22021. sopen: this.IsLookOpen == false ? 1 : 2,
  22022. cid: this.id
  22023. }
  22024. ];
  22025. this.ajax
  22026. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22027. .then(res => {
  22028. if (this.IsLookOpen == true) {
  22029. // if (this.courseType != 0 && this.taskCount != 0) {
  22030. // this.openTask(0, 0, "0-0");
  22031. // }
  22032. this.$message({
  22033. message: this.lang.ssPermSetSuccess,
  22034. type: "success"
  22035. });
  22036. } else {
  22037. this.$message({
  22038. message: this.lang.ssPermClosedOk,
  22039. type: "success"
  22040. });
  22041. }
  22042. this.getCourseState(2);
  22043. })
  22044. .catch(err => {
  22045. console.error(err);
  22046. });
  22047. },
  22048. selectSLook() {
  22049. if(this.selectSLookLoading) return
  22050. this.selectSLookLoading = true
  22051. let params = {
  22052. cid: this.id
  22053. };
  22054. this.ajax
  22055. .get(this.$store.state.api + "selectCourseSLook", params)
  22056. .then(res => {
  22057. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22058. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22059. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22060. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22061. if (!this.IsLookOpen) {
  22062. this.setNavList();
  22063. }else {
  22064. this.getCourseState(1);
  22065. }
  22066. // || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)
  22067. if ((this.IsFollow && this.tType == 2)) {
  22068. this.setContent2(false);
  22069. let _followC = res.data[0][0].followC.split("-");
  22070. if (
  22071. this.courseType != _followC[0] ||
  22072. this.taskCount != _followC[1]
  22073. ) {
  22074. this.navList[this.courseType].isOpen = false;
  22075. this.courseType = _followC[0];
  22076. this.navList[this.courseType].isOpen = true;
  22077. this.taskCount = parseInt(_followC[1]);
  22078. this.navId = res.data[0][0].followC;
  22079. document.scrollingElement.scrollTop = 0;
  22080. this.getCourseDetail(2);
  22081. }
  22082. }
  22083. this.selectSLookLoading = false
  22084. })
  22085. .catch(err => {
  22086. this.selectSLookLoading = false
  22087. console.error(err);
  22088. });
  22089. },
  22090. setNavList() {
  22091. if (this.navList.length == 0) {
  22092. this.navList = [];
  22093. var copyList = [];
  22094. for (var l = 0; l < this.chapInfoList.length; l++) {
  22095. var q = this.chapInfoList[l].dyName;
  22096. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22097. var e;
  22098. copyList.push({
  22099. dyName: q,
  22100. isOpen: l === 0 ? true : false,
  22101. task: []
  22102. });
  22103. for (var r = 0; r < w.length; r++) {
  22104. e = w[r].task;
  22105. if (this.chapInfoList[l].easy == 1) {
  22106. copyList[l].task.push({
  22107. taskName: q,
  22108. id: l + "-" + r,
  22109. isLook: w[r].isLook,
  22110. isOpen: r === 0 ? true : false,
  22111. tool: []
  22112. });
  22113. } else {
  22114. copyList[l].task.push({
  22115. taskName: e,
  22116. id: l + "-" + r,
  22117. isLook: w[r].isLook,
  22118. isOpen: r === 0 ? true : false,
  22119. tool: []
  22120. });
  22121. }
  22122. var t = w[r].toolChoose;
  22123. for (var k = 0; k < t.length; k++) {
  22124. var tool = t[k].tool[0];
  22125. copyList[l].task[r].tool.push({
  22126. tool: tool,
  22127. isTool: false
  22128. });
  22129. }
  22130. // this.navId = this.navId ? this.navId : l + "-" + r;
  22131. // this.navId = l + "-" + r;
  22132. }
  22133. }
  22134. this.navList = copyList;
  22135. this.navList[0].isOpen = false;
  22136. this.navList[this.courseType].isOpen = true;
  22137. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22138. } else {
  22139. this.setNavList2();
  22140. }
  22141. },
  22142. setNavList2() {
  22143. for (var l = 0; l < this.chapInfoList.length; l++) {
  22144. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22145. for (var r = 0; r < w.length; r++) {
  22146. this.navList[l].task[r].isLook = w[r].isLook;
  22147. }
  22148. }
  22149. if (
  22150. this.IsLookOpen &&
  22151. !this.navList[this.courseType].task[this.taskCount].isLook
  22152. ) {
  22153. this.openTask(0, 0, "0-0");
  22154. }
  22155. this.$forceUpdate();
  22156. },
  22157. getCourseState(type) {
  22158. let params = {
  22159. cid: this.id
  22160. };
  22161. this.ajax
  22162. .get(this.$store.state.api + "getCourseState", params)
  22163. .then(res => {
  22164. // if (res.data[0].length > 0) {
  22165. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22166. // }
  22167. if (res.data[0].length > 0 && type == 1) {
  22168. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22169. console.log("this.chapInfoList", this.chapInfoList);
  22170. this.setNavList();
  22171. this.$forceUpdate();
  22172. } else if (res.data[0].length > 0 && type == 2) {
  22173. this.addCourseState(2);
  22174. } else {
  22175. // this.addCourseState(1);
  22176. console.log('99999')
  22177. }
  22178. })
  22179. .catch(err => {
  22180. console.error(err);
  22181. });
  22182. },
  22183. addCourseState(type,val = '') {
  22184. let _state = val ? val : this.chapInfoList;
  22185. // this.courseType this.taskCount
  22186. if (type == 1 || type == 2) {
  22187. for (var i = 0; i < _state.length; i++) {
  22188. let el = _state[i].chapterInfo[0].taskJson;
  22189. for (var j = 0; j < el.length; j++) {
  22190. // if (i == 0 && j == 0) {
  22191. // el[j].isLook = true;
  22192. // } else {
  22193. // el[j].isLook = false;
  22194. // }
  22195. if (
  22196. this.courseType > i ||
  22197. (this.courseType == i && this.taskCount + 1 > j)
  22198. ) {
  22199. el[j].isLook = true;
  22200. } else {
  22201. el[j].isLook = false;
  22202. }
  22203. }
  22204. }
  22205. }
  22206. let params = [
  22207. {
  22208. cid: this.id,
  22209. state: JSON.stringify(_state)
  22210. }
  22211. ];
  22212. this.ajax
  22213. .post(
  22214. this.$store.state.api +
  22215. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22216. params
  22217. )
  22218. .then(res => {
  22219. if (this.IsLookOpen) {
  22220. this.setNavList();
  22221. }
  22222. if (type == 3 && type == 2) {
  22223. this.getCourseState(1);
  22224. }
  22225. })
  22226. .catch(err => {
  22227. console.error(err);
  22228. });
  22229. },
  22230. getHomeWork() {
  22231. let params = {
  22232. cid: this.id,
  22233. stage: this.courseType,
  22234. task: this.taskCount,
  22235. uid: this.userid
  22236. };
  22237. this.ajax
  22238. .get(this.$store.state.api + "selectWork", params)
  22239. .then(res => {
  22240. if (res.data[0].length > 0) {
  22241. this.studyJuri = JSON.parse(res.data[0][0].content);
  22242. this.isNoHomeWork = true;
  22243. }
  22244. })
  22245. .catch(err => {
  22246. console.error(err);
  22247. });
  22248. },
  22249. isAssetTypeAnImage(ext) {
  22250. return (
  22251. [
  22252. "png",
  22253. "jpg",
  22254. "jpeg",
  22255. "bmp",
  22256. "gif",
  22257. "webp",
  22258. "psd",
  22259. "svg",
  22260. "tiff"
  22261. ].indexOf(ext) !== -1
  22262. );
  22263. },
  22264. switchVideo(media) {
  22265. this.playerO = {};
  22266. this.playerOptions.poster = "";
  22267. this.playerOptions.sources[0].src = media;
  22268. this.playerO = this.playerOptions;
  22269. },
  22270. onPlayerPlay() {},
  22271. onPlayerTimeupdate(player) {
  22272. let gklog = player.cache_.currentTime; //当前播放的秒数
  22273. let a = player.cache_.duration; //视频的总时长
  22274. let gklog2 = parseInt(gklog);
  22275. // if(gklog2 == '3'){
  22276. // player.pause()
  22277. // setTimeout(()=>{
  22278. // player.currentTime(gklog2+1)
  22279. // player.play()
  22280. // },1000)
  22281. // }
  22282. console.log(" onPlayerTimeupdate!", gklog);
  22283. console.log(" onPlayerTimeupdate!", gklog2);
  22284. },
  22285. lookVedio(u, i) {
  22286. this.isClickNav = "";
  22287. // this.playerOptions.sources[0].src = u;
  22288. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22289. d.sources[0].src = u;
  22290. this.playerO[this.taskCount] = d;
  22291. this.showType = 0;
  22292. // this.isClickNav = "video" + i;
  22293. this.isClickNav = i;
  22294. this.$forceUpdate();
  22295. this.insertMemorandum(
  22296. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22297. this.vChapterData[this.taskCount].find(i => i.url == u).name
  22298. }</span>`
  22299. );
  22300. },
  22301. lookText(i, t) {
  22302. this.isClickNav = "";
  22303. // this.text = this.textList[i][t];
  22304. this.text = this.vChapterData[i][t];
  22305. // this.dialogVisible1 = true;
  22306. this.showType = 1;
  22307. // this.isClickNav = "text" + t;
  22308. this.isClickNav = t;
  22309. this.insertMemorandum(
  22310. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22311. this.vChapterData[this.taskCount][t].name
  22312. }.doc</span>`
  22313. );
  22314. },
  22315. lookTools(i, t) {
  22316. this.chapTools = this.chapToolList[i][t];
  22317. this.dialogVisible2 = true;
  22318. },
  22319. async openFile(f) {
  22320. this.pptImgUrl = "";
  22321. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22322. if (
  22323. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22324. -1
  22325. ) {
  22326. let _uuurl = await this.checkLink(f);
  22327. this.pptImgUrl =
  22328. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22329. encodeURIComponent(_uuurl);
  22330. this.showPDF = false;
  22331. this.dialogVisible3 = true;
  22332. } else if (
  22333. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22334. ) {
  22335. this.pptImgUrl = f;
  22336. this.showPDF = true;
  22337. this.dialogVisible3 = true;
  22338. }
  22339. this.insertMemorandum(
  22340. `查看<span class="variable">${w.sName}</span>的作业`
  22341. );
  22342. },
  22343. openTable(f) {
  22344. this.tableJson = JSON.parse(f.works);
  22345. this.dialogVisibleTable2 = true;
  22346. this.insertMemorandum(
  22347. `查看<span class="variable">${f.sName}的作业</span>`
  22348. );
  22349. },
  22350. openWord(f) {
  22351. this.tableJson = JSON.parse(f.works);
  22352. this.dialogVisibleTable3 = true;
  22353. this.insertMemorandum(
  22354. `查看<span class="variable">${f.sName}的作业</span>`
  22355. );
  22356. },
  22357. doUrl(url, i) {
  22358. this.isClickNav = "";
  22359. this.pptImgUrl1 = "";
  22360. this.showType = 2;
  22361. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22362. url = "https://" + url;
  22363. }
  22364. this.pptImgUrl1 = "";
  22365. this.diffKey = new Date().getTime();
  22366. setTimeout(() => {
  22367. this.pptImgUrl1 = url;
  22368. }, 500);
  22369. // this.isClickNav = "line" + i;
  22370. this.isClickNav = i;
  22371. this.$forceUpdate();
  22372. },
  22373. checkPhoto(f, i) {
  22374. this.showType = 4;
  22375. this.pptImgUrl1 = f.url;
  22376. this.isClickNav = i;
  22377. this.$forceUpdate();
  22378. this.insertMemorandum(
  22379. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22380. this.vChapterData[this.taskCount][i].name
  22381. }</span>`
  22382. );
  22383. },
  22384. checkHtml(f, i){
  22385. console.log('checkHtml',f, i);
  22386. this.showType = 16;
  22387. this.pptImgUrl1 = f.url;
  22388. this.isClickNav = i;
  22389. this.$forceUpdate();
  22390. },
  22391. async downFile(f, i) {
  22392. this.isClickNav = "";
  22393. this.pptImgUrl1 = "";
  22394. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22395. if (
  22396. a.indexOf(
  22397. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22398. ) != -1
  22399. ) {
  22400. let _uuurl = await this.checkLink(f.url);
  22401. this.pptImgUrl1 =
  22402. "https://view.officeapps.live.com/op/view.aspx?src=" +
  22403. encodeURIComponent(_uuurl);
  22404. // this.dialogVisible3 = true;
  22405. this.showType = 2;
  22406. } else if (
  22407. this.isAssetTypeAnImage(
  22408. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22409. )
  22410. ) {
  22411. this.showType = 4;
  22412. this.pptImgUrl1 = f.url;
  22413. } else if (
  22414. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22415. "PDF"
  22416. ) {
  22417. this.pptImgUrl1 = f.url;
  22418. // this.dialogVisible3 = true;
  22419. this.showType = 3;
  22420. } else {
  22421. window.open(this.file[i].url);
  22422. }
  22423. // this.isClickNav = "word" + i;
  22424. this.isClickNav = i;
  22425. this.insertMemorandum(
  22426. `查看文件<span class="variable">任务${this.taskCount + 1}:${
  22427. this.vChapterData[this.taskCount][i].name
  22428. }</span>`
  22429. );
  22430. },
  22431. downFileList(i) {
  22432. window.open(this.noImgList[i].url);
  22433. },
  22434. openAddWork() {
  22435. this.dialogVisible = true;
  22436. },
  22437. addBzWorks() {
  22438. let params = [
  22439. {
  22440. uid: this.userid,
  22441. cid: this.id,
  22442. stage: this.courseType,
  22443. task: this.taskCount,
  22444. tool: this.toolindex,
  22445. content: JSON.stringify(this.eScore),
  22446. type: 6
  22447. }
  22448. ];
  22449. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  22450. this.homeWorkLoading = true
  22451. this.ajax
  22452. .post(this.$store.state.api + "addCourseWorks", params)
  22453. .then(res => {
  22454. this.$message({
  22455. message: this.lang.ssSubmitSuccess,
  22456. type: "success"
  22457. });
  22458. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22459. setTimeout(() => {
  22460. this.homeWorkLoading = false
  22461. }, 500);
  22462. this.eScore = { eBzText: "", eStar: [] };
  22463. this.studentEvalDialogVisible = false;
  22464. this.selectSWorks();
  22465. })
  22466. .catch(err => {
  22467. this.$message.error(this.lang.ssSubmitFailed);
  22468. console.error(err);
  22469. setTimeout(() => {
  22470. this.homeWorkLoading = false
  22471. }, 500);
  22472. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22473. });
  22474. },
  22475. addBzWorksTeacher() {
  22476. let params = [
  22477. {
  22478. uid: this.sStudent.userid,
  22479. cid: this.id,
  22480. stage: this.courseType,
  22481. task: this.taskCount,
  22482. tool: this.toolindex,
  22483. content: JSON.stringify(this.eScore),
  22484. type: 6
  22485. }
  22486. ];
  22487. this.ajax
  22488. .post(this.$store.state.api + "addCourseWorks", params)
  22489. .then(res => {
  22490. this.$message({
  22491. message: this.lang.ssSubmitSuccess,
  22492. type: "success"
  22493. });
  22494. this.eScore = { eBzText: "", eStar: [] };
  22495. this.studentEvalDialogVisibleTeacher = false;
  22496. this.selectSWorks();
  22497. })
  22498. .catch(err => {
  22499. this.$message.error(this.lang.ssSubmitFailed);
  22500. console.error(err);
  22501. });
  22502. },
  22503. addStudentAsk() {
  22504. if (!this.radio.length) {
  22505. this.$message.error(this.lang.ssPleaseSelectOption);
  22506. return;
  22507. }
  22508. for (var i = 0; i < this.askJson.askCount; i++) {
  22509. if (
  22510. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22511. (this.radio[i] !== 0 && !this.radio[i])
  22512. ) {
  22513. this.$message.error(this.lang.ssPleaseSelectOption);
  22514. return;
  22515. }
  22516. }
  22517. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22518. let params = [
  22519. {
  22520. uid: this.userid,
  22521. cid: this.id,
  22522. stage: this.courseType,
  22523. task: this.taskCount,
  22524. tool: this.toolindex,
  22525. content: JSON.stringify(this.askList),
  22526. type: 2
  22527. }
  22528. ];
  22529. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  22530. this.homeWorkLoading = true
  22531. this.ajax
  22532. .post(this.$store.state.api + "addCourseWorks", params)
  22533. .then(res => {
  22534. this.$message({
  22535. message: this.lang.ssSubmitSuccess,
  22536. type: "success"
  22537. });
  22538. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22539. setTimeout(() => {
  22540. this.homeWorkLoading = false
  22541. }, 500);
  22542. this.askList = [];
  22543. this.dialogVisible5 = false;
  22544. this.selectStudent();
  22545. this.selectSWorks();
  22546. this.selectSLook();
  22547. })
  22548. .catch(err => {
  22549. this.$message.error(this.lang.ssSubmitFailed);
  22550. console.error(err);
  22551. setTimeout(() => {
  22552. this.homeWorkLoading = false
  22553. }, 500);
  22554. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22555. });
  22556. },
  22557. addStudentAskTeacher() {
  22558. if (!this.radio.length) {
  22559. this.$message.error(this.lang.ssPleaseSelectOption);
  22560. return;
  22561. }
  22562. for (var i = 0; i < this.askJson.askCount; i++) {
  22563. if (
  22564. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22565. (this.radio[i] !== 0 && !this.radio[i])
  22566. ) {
  22567. this.$message.error(this.lang.ssPleaseSelectOption);
  22568. return;
  22569. }
  22570. }
  22571. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22572. let params = [
  22573. {
  22574. uid: this.sStudent.userid,
  22575. cid: this.id,
  22576. stage: this.courseType,
  22577. task: this.taskCount,
  22578. tool: this.toolindex,
  22579. content: JSON.stringify(this.askList),
  22580. type: 2
  22581. }
  22582. ];
  22583. this.ajax
  22584. .post(this.$store.state.api + "addCourseWorks", params)
  22585. .then(res => {
  22586. this.$message({
  22587. message: this.lang.ssSubmitSuccess,
  22588. type: "success"
  22589. });
  22590. this.askList = [];
  22591. this.dialogVisible5Teacher = false;
  22592. this.selectStudent();
  22593. this.selectSWorks();
  22594. this.selectSLook();
  22595. })
  22596. .catch(err => {
  22597. this.$message.error(this.lang.ssSubmitFailed);
  22598. console.error(err);
  22599. });
  22600. },
  22601. addStudentTest() {
  22602. if (!this.radio.length) {
  22603. this.$message.error(this.lang.ssPleaseSelectOption);
  22604. return;
  22605. }
  22606. for (var i = 0; i < this.testJson.testCount; i++) {
  22607. if (
  22608. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22609. (this.radio[i] !== 0 && !this.radio[i])
  22610. ) {
  22611. this.$message.error(this.lang.ssPleaseSelectOption);
  22612. return;
  22613. }
  22614. }
  22615. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22616. let params = [
  22617. {
  22618. uid: this.userid,
  22619. cid: this.id,
  22620. stage: this.courseType,
  22621. task: this.taskCount,
  22622. tool: this.toolindex,
  22623. content: JSON.stringify(this.askList),
  22624. type: 8
  22625. }
  22626. ];
  22627. if (this.homeWorkLoading) return this.$message.info(this.lang.ssClickTooFast)
  22628. this.homeWorkLoading = true
  22629. this.ajax
  22630. .post(this.$store.state.api + "addCourseWorks", params)
  22631. .then(res => {
  22632. this.$message({
  22633. message: this.lang.ssSubmitSuccess,
  22634. type: "success"
  22635. });
  22636. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22637. setTimeout(() => {
  22638. this.homeWorkLoading = false
  22639. }, 500);
  22640. this.askList = [];
  22641. this.dialogVisibleChoice = false;
  22642. this.selectStudent();
  22643. this.selectSWorks();
  22644. this.selectSLook();
  22645. })
  22646. .catch(err => {
  22647. this.$message.error(this.lang.ssSubmitFailed);
  22648. console.error(err);
  22649. setTimeout(() => {
  22650. this.homeWorkLoading = false
  22651. }, 500);
  22652. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22653. });
  22654. },
  22655. addStudentTestTeacher() {
  22656. if (!this.radio.length) {
  22657. this.$message.error(this.lang.ssPleaseSelectOption);
  22658. return;
  22659. }
  22660. for (var i = 0; i < this.testJson.testCount; i++) {
  22661. if (
  22662. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22663. (this.radio[i] !== 0 && !this.radio[i])
  22664. ) {
  22665. this.$message.error(this.lang.ssPleaseSelectOption);
  22666. return;
  22667. }
  22668. }
  22669. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22670. let params = [
  22671. {
  22672. uid: this.sStudent.userid,
  22673. cid: this.id,
  22674. stage: this.courseType,
  22675. task: this.taskCount,
  22676. tool: this.toolindex,
  22677. content: JSON.stringify(this.askList),
  22678. type: 8
  22679. }
  22680. ];
  22681. this.ajax
  22682. .post(this.$store.state.api + "addCourseWorks", params)
  22683. .then(res => {
  22684. this.$message({
  22685. message: this.lang.ssSubmitSuccess,
  22686. type: "success"
  22687. });
  22688. this.askList = [];
  22689. this.dialogVisibleChoiceTeacher = false;
  22690. this.selectStudent();
  22691. this.selectSWorks();
  22692. this.selectSLook();
  22693. })
  22694. .catch(err => {
  22695. this.$message.error(this.lang.ssSubmitFailed);
  22696. console.error(err);
  22697. });
  22698. },
  22699. addWork() {
  22700. if (this.studyJuri[0].content == "") {
  22701. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22702. return;
  22703. } else if (this.studyJuri[0].cover.length == 0) {
  22704. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22705. return;
  22706. } else if (this.studyJuri[0].upVedio.length == 0) {
  22707. this.$message.error(this.lang.ssPleaseFillCompleteInfo);
  22708. return;
  22709. }
  22710. if (this.isNoHomeWork) {
  22711. this.$confirm(
  22712. this.lang.ssAlreadySubmittedHomework,
  22713. this.lang.ssPrompt,
  22714. {
  22715. confirmButtonText: this.lang.ssConfirm,
  22716. cancelButtonText: this.lang.ssCancel,
  22717. type: "warning"
  22718. }
  22719. )
  22720. .then(() => {
  22721. let params = [
  22722. {
  22723. uid: this.userid,
  22724. cid: this.id,
  22725. stage: this.courseType,
  22726. task: this.taskCount,
  22727. content: JSON.stringify(this.studyJuri)
  22728. }
  22729. ];
  22730. this.ajax
  22731. .post(this.$store.state.api + "addWorks", params)
  22732. .then(res => {
  22733. this.$message({
  22734. message: this.lang.ssSubmitSuccess,
  22735. type: "success"
  22736. });
  22737. this.isNoHomeWork = true;
  22738. this.dialogVisible = false;
  22739. })
  22740. .catch(err => {
  22741. this.$message.error(this.lang.ssSubmitFailed);
  22742. console.error(err);
  22743. });
  22744. })
  22745. .catch(() => {});
  22746. } else {
  22747. let params = [
  22748. {
  22749. uid: this.userid,
  22750. cid: this.id,
  22751. stage: this.courseType,
  22752. task: this.taskCount,
  22753. content: JSON.stringify(this.studyJuri)
  22754. }
  22755. ];
  22756. this.ajax
  22757. .post(this.$store.state.api + "addWorks", params)
  22758. .then(res => {
  22759. this.$message({
  22760. message: this.lang.ssSubmitSuccess,
  22761. type: "success"
  22762. });
  22763. this.isNoHomeWork = true;
  22764. this.dialogVisible = false;
  22765. })
  22766. .catch(err => {
  22767. this.$message.error(this.lang.ssSubmitFailed);
  22768. console.error(err);
  22769. });
  22770. }
  22771. },
  22772. selectCount() {
  22773. let params = {
  22774. cid: this.id,
  22775. chid: this.courseType,
  22776. uid: this.userid
  22777. };
  22778. this.ajax
  22779. .get(this.$store.state.api + "selectToolsCount", params)
  22780. .then(res => {
  22781. for (var i = 0; i < res.data[0].length; i++) {
  22782. if (res.data[0][i].tools == 1) {
  22783. this.wbCount = res.data[0][i].count;
  22784. } else if (res.data[0][i].tools == 2) {
  22785. this.wordCount = res.data[0][i].count;
  22786. } else if (res.data[0][i].tools == 3) {
  22787. this.mindCount = res.data[0][i].count;
  22788. } else if (res.data[0][i].tools == 4) {
  22789. this.askCount = res.data[0][i].count;
  22790. } else if (res.data[0][i].tools == 6) {
  22791. this.noteCount = res.data[0][i].count;
  22792. } else if (res.data[0][i].tools == 7) {
  22793. this.mindNetWorkCount = res.data[0][i].count;
  22794. } else if (res.data[0][i].tools == 8) {
  22795. this.libraryCount = res.data[0][i].count;
  22796. } else if (res.data[0][i].tools == 16) {
  22797. this.workCount = res.data[0][i].count;
  22798. } else if (res.data[0][i].tools == 10) {
  22799. this.timeCount = res.data[0][i].count;
  22800. } else if (res.data[0][i].tools == 15) {
  22801. this.answerCount = res.data[0][i].count;
  22802. } else if (res.data[0][i].tools == 18) {
  22803. this.trainCount = res.data[0][i].count;
  22804. }
  22805. }
  22806. })
  22807. .catch(err => {
  22808. console.error(err);
  22809. });
  22810. },
  22811. openTools(t, i, index, c, sName, id) {
  22812. var z = JSON.parse(c);
  22813. this.noteName = sName;
  22814. if (t == 4) {
  22815. this.radio = [];
  22816. this.isAnswer = false;
  22817. let b = z[0].anwer;
  22818. this.radio = b;
  22819. this.askJson = z[0].askJson;
  22820. this.isAnswer = true;
  22821. this.dialogVisible5 = true;
  22822. } else if (t == 45) {
  22823. this.radio = [];
  22824. this.isAnswer = false;
  22825. let b = z[0].anwer;
  22826. this.radio = b;
  22827. this.testJson = z[0].testJson;
  22828. this.isAnswer = true;
  22829. this.dialogVisibleChoice = true;
  22830. } else if (t == 69) {
  22831. this.oldEnglishJson1 = {};
  22832. this.oldEnglishJson = {};
  22833. this.englishList1 = {};
  22834. this.newEngIndex = -1;
  22835. this.isNoUserid = false;
  22836. this.englishList1 = this.chapInfoList[
  22837. this.courseType
  22838. ].chapterInfo[0].taskJson[index].toolChoose[i].englishList;
  22839. this.oldEnglishJson = z;
  22840. this.engWid = id;
  22841. this.newEnglishList = { engTitle: "", engText: "" };
  22842. this.newEnglishList1 = [];
  22843. this.selectEngC(id, z);
  22844. } else if (t == 62) {
  22845. this.videoType = 1;
  22846. this.videoJson = {};
  22847. this.videoJson = JSON.parse(c);
  22848. // this.videoJson =
  22849. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22850. // index
  22851. // ].toolChoose[i].videoJson;
  22852. this.dialogVisibleVideo = true;
  22853. }
  22854. // else if (t == 15) {
  22855. // this.answerQ = "";
  22856. // this.questionAnswer = "";
  22857. // this.answerQ = z[0].answerTitle;
  22858. // this.questionAnswer = z[0].answer;
  22859. // this.answerDialogVisible = true;
  22860. // }
  22861. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`);
  22862. },
  22863. fastText(p, t) {
  22864. if (t == 1) {
  22865. this.commentText += p;
  22866. } else {
  22867. this.eScore.eBzText += p;
  22868. }
  22869. },
  22870. addTools(t, i, index) {
  22871. var a = 0;
  22872. // this.taskCount = index;
  22873. this.toolindex = i;
  22874. if (t == 1) {
  22875. if (this.wbCount > 0) {
  22876. this.updateCount(this.wbCount, t);
  22877. } else {
  22878. this.wbCount++;
  22879. a = this.wbCount;
  22880. this.toolsCount(a, t);
  22881. }
  22882. window.topU.postMessage(
  22883. {
  22884. tools: "1",
  22885. cid: this.id,
  22886. stage: this.courseType,
  22887. task: this.taskCount,
  22888. tool: i
  22889. },
  22890. "*"
  22891. );
  22892. } else if (t == 2) {
  22893. if (this.wordCount > 0) {
  22894. this.updateCount(this.wordCount, t);
  22895. } else {
  22896. this.wordCount++;
  22897. a = this.wordCount;
  22898. this.toolsCount(a, t);
  22899. }
  22900. window.topU.postMessage({ tools: "2" }, "*");
  22901. } else if (t == 3) {
  22902. if (this.mindCount > 0) {
  22903. this.updateCount(this.mindCount, t);
  22904. } else {
  22905. this.mindCount++;
  22906. a = this.mindCount;
  22907. this.toolsCount(a, t);
  22908. }
  22909. window.topU.postMessage(
  22910. {
  22911. tools: "3",
  22912. cid: this.id,
  22913. stage: this.courseType,
  22914. task: this.taskCount,
  22915. tool: i
  22916. },
  22917. "*"
  22918. );
  22919. } else if (t == 4) {
  22920. this.radio = [];
  22921. this.noteName = "";
  22922. this.isAnswer = false;
  22923. if (this.askCount > 0) {
  22924. this.updateCount(this.askCount, t);
  22925. } else {
  22926. this.askCount++;
  22927. a = this.askCount;
  22928. this.toolsCount(a, t);
  22929. }
  22930. if (!this.dialogVisible2) {
  22931. this.askJson.askJson = this.chapInfoList[
  22932. this.courseType
  22933. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  22934. this.askJson.askTitle = this.chapInfoList[
  22935. this.courseType
  22936. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  22937. this.askJson.askCount = this.chapInfoList[
  22938. this.courseType
  22939. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  22940. } else {
  22941. this.askJson.askJson = this.chapTools.askJson.askJson;
  22942. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22943. this.askJson.askCount = this.chapTools.askJson.askCount;
  22944. }
  22945. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22946. if (this.askJson.askJson[k].type == "2") {
  22947. this.radio.push([]);
  22948. } else {
  22949. this.radio.push("");
  22950. }
  22951. }
  22952. this.dialogVisible5 = true;
  22953. // window.topU.postMessage({ tools: "4" }, "*");
  22954. } else if (t == 45) {
  22955. this.noteName = "";
  22956. this.radio = [];
  22957. this.isAnswer = false;
  22958. if (this.askCount > 0) {
  22959. this.updateCount(this.askCount, t);
  22960. } else {
  22961. this.askCount++;
  22962. a = this.askCount;
  22963. this.toolsCount(a, t);
  22964. }
  22965. this.testJson = this.chapInfoList[
  22966. this.courseType
  22967. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  22968. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22969. if (this.testJson.testJson[k].type == "2") {
  22970. this.radio.push([]);
  22971. } else {
  22972. this.radio.push("");
  22973. }
  22974. }
  22975. this.dialogVisibleChoice = true;
  22976. // window.topU.postMessage({ tools: "4" }, "*");
  22977. } else if (t == 5) {
  22978. if (this.scoreCount > 0) {
  22979. this.updateCount(this.scoreCount, t);
  22980. } else {
  22981. this.scoreCount++;
  22982. a = this.scoreCount;
  22983. this.toolsCount(a, t);
  22984. }
  22985. this.dialogVisible4 = true;
  22986. // window.topU.postMessage({ tools: "5" }, "*");
  22987. } else if (t == 6) {
  22988. if (this.noteCount > 0) {
  22989. this.updateCount(this.noteCount, t);
  22990. } else {
  22991. this.noteCount++;
  22992. a = this.noteCount;
  22993. this.toolsCount(a, t);
  22994. }
  22995. window.topU.postMessage(
  22996. {
  22997. tools: "6",
  22998. cid: this.id,
  22999. stage: this.courseType,
  23000. task: this.taskCount,
  23001. tool: i
  23002. },
  23003. "*"
  23004. );
  23005. } else if (t == 7) {
  23006. if (this.mindNetWorkCount > 0) {
  23007. this.updateCount(this.mindNetWorkCount, t);
  23008. } else {
  23009. this.mindNetWorkCount++;
  23010. a = this.mindNetWorkCount;
  23011. this.toolsCount(a, t);
  23012. }
  23013. window.topU.postMessage(
  23014. {
  23015. tools: "7",
  23016. cid: this.id,
  23017. stage: this.courseType,
  23018. task: this.taskCount,
  23019. tool: i
  23020. },
  23021. "*"
  23022. );
  23023. } else if (t == 16) {
  23024. if (this.workCount > 0) {
  23025. this.updateCount(this.workCount, t);
  23026. } else {
  23027. this.workCount++;
  23028. a = this.workCount;
  23029. this.toolsCount(a, t);
  23030. }
  23031. this.dialogVisible = true;
  23032. } else if (t == 50) {
  23033. if (this.tType == 2) {
  23034. this.$message.error(this.lang.ssNotSupportedForStudents);
  23035. return;
  23036. }
  23037. this.plworkFile = [];
  23038. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23039. if (!this.uploadCid) {
  23040. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  23041. return;
  23042. }
  23043. // this.uploadCid =
  23044. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23045. // index
  23046. // ].toolChoose[i].uploadJson[0];
  23047. this.selectUploadStudent(2);
  23048. } else if (t == 8) {
  23049. if (this.libraryCount > 0) {
  23050. this.updateCount(this.libraryCount, t);
  23051. } else {
  23052. this.libraryCount++;
  23053. a = this.libraryCount;
  23054. this.toolsCount(a, t);
  23055. }
  23056. window.topU.postMessage({ tools: "8" }, "*");
  23057. } else if (t == 17) {
  23058. if (this.libraryCount > 0) {
  23059. this.updateCount(this.libraryCount, t);
  23060. } else {
  23061. this.libraryCount++;
  23062. a = this.libraryCount;
  23063. this.toolsCount(a, t);
  23064. }
  23065. window.topU.postMessage({ tools: "17" }, "*");
  23066. } else if (t == 18) {
  23067. if (this.trainCount > 0) {
  23068. this.updateCount(this.trainCount, t);
  23069. } else {
  23070. this.trainCount++;
  23071. a = this.trainCount;
  23072. this.toolsCount(a, t);
  23073. }
  23074. window.topU.postMessage({ tools: "18" }, "*");
  23075. } else if (t == 10) {
  23076. if (this.timeCount > 0) {
  23077. this.updateCount(this.timeCount, t);
  23078. } else {
  23079. this.timeCount++;
  23080. a = this.timeCount;
  23081. this.toolsCount(a, t);
  23082. }
  23083. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23084. .taskJson[index].toolChoose[i].preTime
  23085. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23086. .toolChoose[i].preTime
  23087. : "";
  23088. this.timeDialogVisible = true;
  23089. } else if (t == 15) {
  23090. this.answerQ = "";
  23091. this.questionAnswer = "";
  23092. if (this.answerCount > 0) {
  23093. this.updateCount(this.answerCount, t);
  23094. } else {
  23095. this.answerCount++;
  23096. a = this.answerCount;
  23097. this.toolsCount(a, t);
  23098. }
  23099. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23100. .taskJson[index].toolChoose[i].answerQ
  23101. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23102. .toolChoose[i].answerQ
  23103. : "";
  23104. this.answerDialogVisible = true;
  23105. } else if (t == 21) {
  23106. window.topU.postMessage({ tools: "21" }, "*");
  23107. } else if (t == 22) {
  23108. window.topU.postMessage({ tools: "22" }, "*");
  23109. } else if (t == 23) {
  23110. window.topU.postMessage({ tools: "23" }, "*");
  23111. } else if (t == 24) {
  23112. window.topU.postMessage({ tools: "24" }, "*");
  23113. } else if (t == 25) {
  23114. window.topU.postMessage({ tools: "25" }, "*");
  23115. } else if (t == 31) {
  23116. window.topU.postMessage({ tools: "31" }, "*");
  23117. } else if (t == 28) {
  23118. window.topU.postMessage({ tools: "28" }, "*");
  23119. } else if (t == 37) {
  23120. window.topU.postMessage({ tools: "37" }, "*");
  23121. } else if (t == 38) {
  23122. window.topU.postMessage({ tools: "38" }, "*");
  23123. } else if (t == 39) {
  23124. window.topU.postMessage({ tools: "39" }, "*");
  23125. } else if (t == 32) {
  23126. window.topU.postMessage({ tools: "32" }, "*");
  23127. } else if (t == 66) {
  23128. window.topU.postMessage({ tools: "66" }, "*");
  23129. } else if (t == 67) {
  23130. window.topU.postMessage({ tools: "67" }, "*");
  23131. } else if (t == 68) {
  23132. window.topU.postMessage({ tools: "68" }, "*");
  23133. } else if (t == 57) {
  23134. // window.topU.postMessage({ tools: "57" }, "*");
  23135. window.topU.postMessage(
  23136. {
  23137. tools: "57u",
  23138. cid: this.id,
  23139. stage: this.courseType,
  23140. task: this.taskCount,
  23141. tool: i
  23142. },
  23143. "*"
  23144. );
  23145. } else if (t == 58) {
  23146. window.topU.postMessage({ tools: "58" }, "*");
  23147. } else if (t == 59) {
  23148. window.topU.postMessage({ tools: "59" }, "*");
  23149. } else if (t == 60) {
  23150. window.topU.postMessage({ tools: "60" }, "*");
  23151. } else if (t == 61) {
  23152. window.topU.postMessage({ tools: "61" }, "*");
  23153. } else if (t == 63) {
  23154. window.topU.postMessage({ tools: "63" }, "*");
  23155. } else if (t == 71) {
  23156. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23157. // this.$message.error("该工具不可使用");
  23158. // return
  23159. // }
  23160. window.topU.postMessage({ tools: "71" }, "*");
  23161. } else if (t == 72) {
  23162. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23163. .taskJson[index].toolChoose[i].appJson
  23164. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23165. .toolChoose[i].appJson
  23166. : "";
  23167. console.log('item.url',item.url);
  23168. if(!item || !item.url){
  23169. this.$message.error(this.lang.ssAppConnectionEmpty);
  23170. return;
  23171. }
  23172. if (!document.fullscreenElement) {
  23173. this.enterFullScreen();
  23174. }
  23175. this.$refs.appStoreC.getData(item.url,this.userid)
  23176. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23177. // window.open(item.url, "_blank");
  23178. } else if (t == 69) {
  23179. if (this.worksStudent[i].length) {
  23180. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23181. if (this.userid == this.worksStudent[i][k].userid) {
  23182. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works);
  23183. break;
  23184. } else {
  23185. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23186. }
  23187. }
  23188. } else {
  23189. this.myAnswerList1 = { engTitle: "", engText: "", imgList: [] };
  23190. }
  23191. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23192. .taskJson[index].toolChoose[i].englishList
  23193. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23194. .toolChoose[i].englishList
  23195. : {};
  23196. this.englishToolIndex = i;
  23197. this.myAnList = this.myAnswerList1;
  23198. this.engDialogVisible = true;
  23199. } else if (t == 70) {
  23200. if (this.worksStudent[i].length) {
  23201. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23202. if (
  23203. this.userid == this.worksStudent[i][k].userid &&
  23204. this.worksStudent[i][k].type == 17
  23205. ) {
  23206. this.englishVoiceJsonWork = JSON.parse(
  23207. this.worksStudent[i][k].works
  23208. );
  23209. break;
  23210. } else {
  23211. this.englishVoiceJsonWork = [];
  23212. }
  23213. }
  23214. } else {
  23215. this.englishVoiceJsonWork = [];
  23216. }
  23217. let englishVoiceJson = {};
  23218. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23219. .taskJson[index].toolChoose[i].englishVoiceJson
  23220. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23221. .toolChoose[i].englishVoiceJson
  23222. : {};
  23223. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23224. this.EnglishVoiceDialog = true;
  23225. } else if (t == 65) {
  23226. if (this.tType == 2) {
  23227. this.$message.error(this.lang.ssNotSupportedForStudents);
  23228. return;
  23229. }
  23230. this.uploadCid = this.tcid;
  23231. if (!this.uploadCid) {
  23232. this.$message.error(this.lang.ssNoClassPermission);
  23233. return;
  23234. }
  23235. this.selectPickStudent();
  23236. } else if (t == 26) {
  23237. window.topU.postMessage(
  23238. {
  23239. tools: "26",
  23240. cid: this.id,
  23241. stage: this.courseType,
  23242. task: this.taskCount,
  23243. tool: i
  23244. },
  23245. "*"
  23246. );
  23247. } else if (t == 40) {
  23248. if (this.evalCount > 0) {
  23249. this.updateCount(this.evalCount, t);
  23250. } else {
  23251. this.evalCount++;
  23252. a = this.evalCount;
  23253. this.toolsCount(a, t);
  23254. }
  23255. this.eScore = { eBzText: "", eStar: [] };
  23256. if (this.worksStudent[i].length) {
  23257. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23258. if (this.userid == this.worksStudent[i][k].userid) {
  23259. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23260. this.rateJson = this.chapInfoList[
  23261. this.courseType
  23262. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23263. break;
  23264. } else {
  23265. this.rateJson = this.chapInfoList[
  23266. this.courseType
  23267. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23268. }
  23269. }
  23270. } else {
  23271. this.rateJson = this.chapInfoList[
  23272. this.courseType
  23273. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23274. }
  23275. this.isStar = false;
  23276. this.studentEvalDialogVisible = true;
  23277. } else if (t == 41) {
  23278. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23279. .taskJson[index].toolChoose[i].selectJson
  23280. ? JSON.parse(
  23281. JSON.stringify(
  23282. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23283. index
  23284. ].toolChoose[i].selectJson
  23285. )
  23286. )
  23287. : { url: "", select: [], answer: [] };
  23288. if (this.worksStudent[i].length) {
  23289. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23290. if (this.userid == this.worksStudent[i][k].userid) {
  23291. var a = this.worksStudent[i][k].works.split(",");
  23292. for (var ki = 0; ki < a.length; ki++) {
  23293. a[ki] = parseInt(a[ki]);
  23294. }
  23295. this.selectAnswer = {
  23296. answer: a,
  23297. stu: this.worksStudent[i][k].sName
  23298. };
  23299. break;
  23300. } else {
  23301. this.selectAnswer = { answer: [], stu: "" };
  23302. }
  23303. }
  23304. } else {
  23305. this.selectAnswer = { answer: [], stu: "" };
  23306. }
  23307. this.isSelect = false;
  23308. this.dialogVisibleSelect = true;
  23309. } else if (t == 44) {
  23310. window.topU.postMessage({ tools: "44" }, "*");
  23311. } else if (t == 47) {
  23312. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23313. .taskJson[index].toolChoose[i].sentenceList
  23314. ? JSON.parse(
  23315. JSON.stringify(
  23316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23317. index
  23318. ].toolChoose[i].sentenceList
  23319. )
  23320. )
  23321. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23322. for (var q = 0; q < this.sentenceList.length; q++) {
  23323. this.sentenceList[q].chooseSenList = [];
  23324. this.sentenceList[q].addChangeSen = [];
  23325. this.sentenceList[q].addChangeSen = JSON.parse(
  23326. JSON.stringify(this.sentenceList[q].addSentence)
  23327. );
  23328. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23329. q
  23330. ].rightAnswer.length;
  23331. }
  23332. this.dialogVisibleSentence = true;
  23333. } else if (t == 48) {
  23334. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23335. .taskJson[index].toolChoose[i].tableJson
  23336. ? JSON.parse(
  23337. JSON.stringify(
  23338. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23339. index
  23340. ].toolChoose[i].tableJson
  23341. )
  23342. )
  23343. : { text: "" };
  23344. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23345. if (this.worksStudent[i].length) {
  23346. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23347. if (this.userid == this.worksStudent[i][k].userid) {
  23348. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23349. break;
  23350. }
  23351. }
  23352. }
  23353. this.dialogVisibleTable = true;
  23354. } else if (t == 52) {
  23355. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23356. .taskJson[index].toolChoose[i].wordJson
  23357. ? JSON.parse(
  23358. JSON.stringify(
  23359. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23360. index
  23361. ].toolChoose[i].wordJson
  23362. )
  23363. )
  23364. : { text: "" };
  23365. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23366. if (this.worksStudent[i].length) {
  23367. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23368. if (this.userid == this.worksStudent[i][k].userid) {
  23369. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23370. break;
  23371. }
  23372. }
  23373. }
  23374. this.dialogVisibleWord = true;
  23375. } else if (t == 49) {
  23376. if (!this.tcid2 && this.courseDetail.juri != "" && this.tType == "1") {
  23377. return;
  23378. }
  23379. this.groupJson = this.chapInfoList[
  23380. this.courseType
  23381. ].chapterInfo[0].taskJson[index].toolChoose[i].groupJson;
  23382. this.islock = this.groupJson.islock == 1 ? true : false;
  23383. this.dialogVisibleGroup = true;
  23384. } else if (t == 62) {
  23385. this.videoType = 0;
  23386. this.videoJson = {};
  23387. this.videoJson = this.chapInfoList[
  23388. this.courseType
  23389. ].chapterInfo[0].taskJson[index].toolChoose[i].videoJson;
  23390. this.dialogVisibleVideo = true;
  23391. }
  23392. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23393. this.insertMemorandum(
  23394. `点击工作区<span class="variable">工具${index + 1}:${
  23395. this.toolsList[t]
  23396. }</span>`
  23397. );
  23398. },
  23399. teacherWorkSubmit(t, i, index, s) {
  23400. console.log('t',t);
  23401. if(t == 72) return
  23402. this.sStudent = s;
  23403. this.toolindex = i;
  23404. this.sTool = t;
  23405. if (this.tType !== "1" && this.tType !== "4") {
  23406. return;
  23407. }
  23408. if (t == 16 || t == 32 || t == 50) {
  23409. this.dialogVisibleWorks = true;
  23410. } else if (t == 15) {
  23411. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23412. .taskJson[index].toolChoose[i].answerQ
  23413. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23414. .toolChoose[i].answerQ
  23415. : "";
  23416. this.questionAnswer = "";
  23417. this.answerDialogVisibleTeacher = true; //问答
  23418. } else if (t == 52) {
  23419. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23420. .taskJson[index].toolChoose[i].wordJson
  23421. ? JSON.parse(
  23422. JSON.stringify(
  23423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23424. index
  23425. ].toolChoose[i].wordJson
  23426. )
  23427. )
  23428. : { text: "" };
  23429. if (this.worksStudent[i].length) {
  23430. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23431. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23432. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23433. break;
  23434. }
  23435. }
  23436. }
  23437. this.dialogVisibleWordTeacher = true; //文档
  23438. } else if (t == 4) {
  23439. this.radio = [];
  23440. this.noteName = "";
  23441. this.isAnswer = false;
  23442. if (this.askCount > 0) {
  23443. this.updateCount(this.askCount, t);
  23444. } else {
  23445. this.askCount++;
  23446. a = this.askCount;
  23447. this.toolsCount(a, t);
  23448. }
  23449. if (!this.dialogVisible2) {
  23450. this.askJson.askJson = this.chapInfoList[
  23451. this.courseType
  23452. ].chapterInfo[0].taskJson[index].toolChoose[i].askJson;
  23453. this.askJson.askTitle = this.chapInfoList[
  23454. this.courseType
  23455. ].chapterInfo[0].taskJson[index].toolChoose[i].askTitle;
  23456. this.askJson.askCount = this.chapInfoList[
  23457. this.courseType
  23458. ].chapterInfo[0].taskJson[index].toolChoose[i].askCount;
  23459. } else {
  23460. this.askJson.askJson = this.chapTools.askJson.askJson;
  23461. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23462. this.askJson.askCount = this.chapTools.askJson.askCount;
  23463. }
  23464. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23465. if (this.askJson.askJson[k].type == "2") {
  23466. this.radio.push([]);
  23467. } else {
  23468. this.radio.push("");
  23469. }
  23470. }
  23471. this.dialogVisible5Teacher = true;
  23472. } else if (t == 45) {
  23473. this.noteName = "";
  23474. this.radio = [];
  23475. this.isAnswer = false;
  23476. if (this.askCount > 0) {
  23477. this.updateCount(this.askCount, t);
  23478. } else {
  23479. this.askCount++;
  23480. a = this.askCount;
  23481. this.toolsCount(a, t);
  23482. }
  23483. this.testJson = this.chapInfoList[
  23484. this.courseType
  23485. ].chapterInfo[0].taskJson[index].toolChoose[i].testJson;
  23486. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23487. if (this.testJson.testJson[k].type == "2") {
  23488. this.radio.push([]);
  23489. } else {
  23490. this.radio.push("");
  23491. }
  23492. }
  23493. this.dialogVisibleChoiceTeacher = true;
  23494. } else if (t == 41) {
  23495. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23496. .taskJson[index].toolChoose[i].selectJson
  23497. ? JSON.parse(
  23498. JSON.stringify(
  23499. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23500. index
  23501. ].toolChoose[i].selectJson
  23502. )
  23503. )
  23504. : { url: "", select: [], answer: [] };
  23505. if (this.worksStudent[i].length) {
  23506. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23507. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23508. var a = this.worksStudent[i][k].works.split(",");
  23509. for (var ki = 0; ki < a.length; ki++) {
  23510. a[ki] = parseInt(a[ki]);
  23511. }
  23512. this.selectAnswer = {
  23513. answer: a,
  23514. stu: this.worksStudent[i][k].sName
  23515. };
  23516. break;
  23517. } else {
  23518. this.selectAnswer = { answer: [], stu: "" };
  23519. }
  23520. }
  23521. } else {
  23522. this.selectAnswer = { answer: [], stu: "" };
  23523. }
  23524. this.isSelect = false;
  23525. this.dialogVisibleSelectTeacher = true;
  23526. } else if (t == 47) {
  23527. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23528. .taskJson[index].toolChoose[i].sentenceList
  23529. ? JSON.parse(
  23530. JSON.stringify(
  23531. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23532. index
  23533. ].toolChoose[i].sentenceList
  23534. )
  23535. )
  23536. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23537. for (var q = 0; q < this.sentenceList.length; q++) {
  23538. this.sentenceList[q].chooseSenList = [];
  23539. this.sentenceList[q].addChangeSen = [];
  23540. this.sentenceList[q].addChangeSen = JSON.parse(
  23541. JSON.stringify(this.sentenceList[q].addSentence)
  23542. );
  23543. this.sentenceList[q].chooseSenList.length = this.sentenceList[
  23544. q
  23545. ].rightAnswer.length;
  23546. }
  23547. this.dialogVisibleSentenceTeacher = true;
  23548. } else if (t == 48) {
  23549. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23550. .taskJson[index].toolChoose[i].tableJson
  23551. ? JSON.parse(
  23552. JSON.stringify(
  23553. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23554. index
  23555. ].toolChoose[i].tableJson
  23556. )
  23557. )
  23558. : { text: "" };
  23559. if (this.worksStudent[i].length) {
  23560. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23561. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23562. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23563. break;
  23564. }
  23565. }
  23566. }
  23567. this.dialogVisibleTableTeacher = true;
  23568. } else if (t == 40) {
  23569. if (this.evalCount > 0) {
  23570. this.updateCount(this.evalCount, t);
  23571. } else {
  23572. this.evalCount++;
  23573. a = this.evalCount;
  23574. this.toolsCount(a, t);
  23575. }
  23576. this.eScore = { eBzText: "", eStar: [] };
  23577. if (this.worksStudent[i].length) {
  23578. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23579. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23580. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23581. this.rateJson = this.chapInfoList[
  23582. this.courseType
  23583. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23584. break;
  23585. } else {
  23586. this.rateJson = this.chapInfoList[
  23587. this.courseType
  23588. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23589. }
  23590. }
  23591. } else {
  23592. this.rateJson = this.chapInfoList[
  23593. this.courseType
  23594. ].chapterInfo[0].taskJson[index].toolChoose[i].rateJson;
  23595. }
  23596. this.isStar = false;
  23597. this.studentEvalDialogVisibleTeacher = true;
  23598. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23599. window.topU.postMessage(
  23600. {
  23601. tools: t + "teacher",
  23602. cid: this.id,
  23603. stage: this.courseType,
  23604. task: this.taskCount,
  23605. tool: i,
  23606. student: this.sStudent
  23607. },
  23608. "*"
  23609. );
  23610. }else if (t == 72) {
  23611. if (!document.fullscreenElement) {
  23612. this.enterFullScreen();
  23613. }
  23614. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23615. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23616. }
  23617. },
  23618. openCocoPi(tool, i, uid, uname) {
  23619. let student = {
  23620. userid: uid,
  23621. student: uname
  23622. };
  23623. if (tool == 57) {
  23624. window.topU.postMessage(
  23625. {
  23626. tools: tool + "teacher",
  23627. cid: this.id,
  23628. stage: this.courseType,
  23629. task: this.taskCount,
  23630. tool: i,
  23631. student: student
  23632. },
  23633. "*"
  23634. );
  23635. }
  23636. },
  23637. setRightAnswer(s, i, j) {
  23638. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23639. if (
  23640. this.sentenceList[i].chooseSenList[q] == undefined ||
  23641. this.sentenceList[i].chooseSenList[q] == ""
  23642. ) {
  23643. this.sentenceList[i].chooseSenList[q] = s;
  23644. this.sentenceList[i].addChangeSen[j] = "";
  23645. break;
  23646. }
  23647. }
  23648. this.$forceUpdate();
  23649. },
  23650. returnCard(r, i, j) {
  23651. var a = this.sentenceList[i].addSentence.indexOf(r);
  23652. this.sentenceList[i].chooseSenList[j] = "";
  23653. this.sentenceList[i].addChangeSen[a] = r;
  23654. this.$forceUpdate();
  23655. },
  23656. // addSentenceTool() {
  23657. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23658. // this.taskCount
  23659. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23660. // this.sentenceList = [
  23661. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23662. // ];
  23663. // this.dialogVisibleSentence = false;
  23664. // },
  23665. toolsCount(a, t) {
  23666. let params = {
  23667. cid: this.id,
  23668. chid: this.courseType,
  23669. uid: this.userid,
  23670. tid: t,
  23671. count: a
  23672. };
  23673. this.ajax
  23674. .get(this.$store.state.api + "insertToolsCount", params)
  23675. .then(res => {
  23676. this.selectCount();
  23677. })
  23678. .catch(err => {
  23679. console.error(err);
  23680. });
  23681. },
  23682. updateCount(c, t) {
  23683. c++;
  23684. let params = {
  23685. cid: this.id,
  23686. chid: this.courseType,
  23687. uid: this.userid,
  23688. tid: t,
  23689. count: c
  23690. };
  23691. this.ajax
  23692. .get(this.$store.state.api + "updateToolsCount", params)
  23693. .then(res => {
  23694. this.selectCount();
  23695. })
  23696. .catch(err => {
  23697. console.error(err);
  23698. });
  23699. },
  23700. checkEva() {
  23701. if (this.evalua != "") {
  23702. for (var i = 0; i < this.evaJuri.length; i++) {
  23703. if (this.evalua == this.evaJuri[i].id) {
  23704. this.eTitle = this.evaJuri[i].title;
  23705. this.eJson = JSON.parse(this.evaJuri[i].content);
  23706. }
  23707. }
  23708. this.$forceUpdate();
  23709. setTimeout(() => {
  23710. this.setMindData();
  23711. }, 0);
  23712. }
  23713. },
  23714. selectEva() {
  23715. let params = {
  23716. oid: this.oid
  23717. };
  23718. this.ajax
  23719. .get(this.$store.state.api + "selectAllEvaluation", params)
  23720. .then(res => {
  23721. this.evaJuri = res.data[0];
  23722. })
  23723. .catch(err => {
  23724. console.error(err);
  23725. });
  23726. },
  23727. setMindData() {
  23728. this.data.data = [];
  23729. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23730. let _eJson = Object.keys(this.eJson);
  23731. let _e = this.eJson;
  23732. for (let i = 0; i < _eJson.length; i++) {
  23733. let element = _e[_eJson[i]];
  23734. this.data.data.push({
  23735. id: element.id,
  23736. parentid: "root",
  23737. topic: element.name
  23738. });
  23739. let _eJsonc = Object.keys(element.child);
  23740. let _e2 = element.child;
  23741. for (let j = 0; j < _eJsonc.length; j++) {
  23742. let _ec = _e2[_eJsonc[j]];
  23743. this.data.data.push({
  23744. id: _ec.id,
  23745. parentid: element.id,
  23746. topic: _ec.name
  23747. });
  23748. let _eJsonz = Object.keys(_ec.child);
  23749. let _e3 = _ec.child;
  23750. for (let z = 0; z < _eJsonz.length; z++) {
  23751. let _ez = _e3[_eJsonz[z]];
  23752. this.data.data.push({
  23753. id: _ez.id,
  23754. parentid: _ec.id,
  23755. topic: _ez.name
  23756. });
  23757. }
  23758. }
  23759. }
  23760. this.$forceUpdate();
  23761. },
  23762. checkFileFull(type, url) {
  23763. this.fullDialogVisible = true;
  23764. this.fulltype = type;
  23765. this.fullUrl = url;
  23766. },
  23767. async checkFileFull1(t, f) {
  23768. this.fullDialogVisible = true;
  23769. if (t == 6) {
  23770. this.fulltype = 1;
  23771. this.fullUrl = JSON.parse(JSON.stringify(f));
  23772. } else if (t == 8) {
  23773. this.fulltype = 2;
  23774. this.fullUrl = f.url;
  23775. }else if (t == 15) {
  23776. this.fulltype = 4;
  23777. this.fullUrl = f.url;
  23778. } else if (t == 16) {
  23779. this.fulltype = 16;
  23780. this.fullUrl = f.url;
  23781. } else if (
  23782. t == 3 &&
  23783. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23784. "PDF"
  23785. ) {
  23786. this.fulltype = 3;
  23787. this.fullUrl = f.url;
  23788. } else if (t == 3) {
  23789. this.fulltype = 2;
  23790. let _uuurl = await this.checkLink(f.url);
  23791. this.fullUrl =
  23792. "https://view.officeapps.live.com/op/view.aspx?src=" +
  23793. encodeURIComponent(_uuurl);
  23794. }
  23795. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23796. },
  23797. openSname(n, id, i, uid) {
  23798. this.snameWid = id;
  23799. this.worksSName = n;
  23800. this.worksSid = uid == n ? "" : uid;
  23801. this.toolindex = i;
  23802. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23803. if (!this.uploadCid) {
  23804. this.$message.error(this.lang.ssBatchUploadNoClassPermission);
  23805. return;
  23806. }
  23807. this.selectUploadStudent(1);
  23808. },
  23809. updateName() {
  23810. let params = {
  23811. n: this.worksSName,
  23812. cid: this.snameWid
  23813. };
  23814. this.ajax
  23815. .get(this.$store.state.api + "updateCourseWorksName", params)
  23816. .then(res => {
  23817. this.$message({
  23818. message: this.lang.ssModifySuccess,
  23819. type: "success"
  23820. });
  23821. this.dialogVisibleSname = false;
  23822. this.getCourseDetail(2);
  23823. this.snameWid = "";
  23824. this.worksSName = "";
  23825. })
  23826. .catch(err => {
  23827. console.error(err);
  23828. });
  23829. },
  23830. downloadFile2(f) {
  23831. // const loading = this.$loading.service({
  23832. // background: "rgba(255, 255, 255, 0.7)",
  23833. // target: document.body,
  23834. // text: "文件加载中...",
  23835. // });
  23836. // let url2 = f.url;
  23837. // let _url2 = "";
  23838. // if (
  23839. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23840. // ) {
  23841. // _url2 = url2.split(
  23842. // "https://view.officeapps.live.com/op/view.aspx?src="
  23843. // )[1];
  23844. // } else {
  23845. // _url2 = url2;
  23846. // }
  23847. // let params = {
  23848. // url: _url2,
  23849. // name: f.name,
  23850. // };
  23851. // this.ajax
  23852. // .get(this.$store.state.api + "download", params)
  23853. // .then((res) => {
  23854. // loading.close();
  23855. // let content = res.data.data.data;
  23856. // let ab = new ArrayBuffer(content.length);
  23857. // let view = new Uint8Array(ab);
  23858. // for (var i = 0; i < content.length; ++i) {
  23859. // view[i] = content[i];
  23860. // }
  23861. // let elink = document.createElement("a");
  23862. // elink.download = f.name;
  23863. // elink.style.display = "none";
  23864. // let blob = new Blob([ab], {
  23865. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23866. // });
  23867. // elink.href = URL.createObjectURL(blob);
  23868. // document.body.appendChild(elink);
  23869. // elink.click();
  23870. // document.body.removeChild(elink);
  23871. // })
  23872. // .catch((err) => {
  23873. // loading.close();
  23874. // console.error(err);
  23875. // });
  23876. var credentials = {
  23877. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23878. secretAccessKey: "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"
  23879. }; //秘钥形式的登录上传
  23880. window.AWS.config.update(credentials);
  23881. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23882. let url2 = f.url;
  23883. let _url2 = "";
  23884. if (
  23885. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23886. ) {
  23887. _url2 = url2.split(
  23888. "https://view.officeapps.live.com/op/view.aspx?src="
  23889. )[1];
  23890. } else {
  23891. _url2 = url2;
  23892. }
  23893. let _this = this;
  23894. _this.downLoading = true;
  23895. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23896. let name = decodeURIComponent(
  23897. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23898. );
  23899. var params = {
  23900. Bucket: "ccrb",
  23901. Key: name
  23902. };
  23903. s3.getObject(params, function(err, data) {
  23904. _this.downLoading = false;
  23905. if (err) console.log(err, err.stack);
  23906. // an error occurred
  23907. else {
  23908. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23909. let a = document.createElement("a");
  23910. a.name = f.name;
  23911. a.href = url;
  23912. a.download = f.name;
  23913. a.click();
  23914. console.log(data);
  23915. } // sxuccessful response
  23916. });
  23917. return;
  23918. // let url = f.url;
  23919. // let _url = "";
  23920. // if (
  23921. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23922. // ) {
  23923. // _url = url.split(
  23924. // "https://view.officeapps.live.com/op/view.aspx?src="
  23925. // )[1];
  23926. // } else {
  23927. // _url = url;
  23928. // }
  23929. // _this.downLoading = true;
  23930. // // const loading = _this.$loading.service({
  23931. // // background: "rgba(255, 255, 255, 0.7)",
  23932. // // target: document.body,
  23933. // // text: "文件加载中...",
  23934. // // });
  23935. // let x = new XMLHttpRequest();
  23936. // x.open("GET", _url, true);
  23937. // x.responseType = "blob";
  23938. // x.onload = function() {
  23939. // _this.downLoading = false;
  23940. // // loading.close();
  23941. // let url = window.URL.createObjectURL(new Blob([x.response]));
  23942. // let a = document.createElement("a");
  23943. // a.name = f.name;
  23944. // a.href = url;
  23945. // a.download = f.name;
  23946. // a.click();
  23947. // };
  23948. // x.send();
  23949. },
  23950. downloadFile(url,uid) {
  23951. if (this.tType == 1 || this.userid == uid) {
  23952. let hz = url.substring(url.lastIndexOf(".") + 1);
  23953. if (hz == "txt" || hz == "md") {
  23954. this.lookTxt(url);
  23955. return;
  23956. }
  23957. var credentials = {
  23958. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23959. secretAccessKey: "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"
  23960. }; //秘钥形式的登录上传
  23961. window.AWS.config.update(credentials);
  23962. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23963. let url2 = url;
  23964. let _url2 = "";
  23965. if (
  23966. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23967. ) {
  23968. _url2 = url2.split(
  23969. "https://view.officeapps.live.com/op/view.aspx?src="
  23970. )[1];
  23971. } else {
  23972. _url2 = url2;
  23973. }
  23974. const loading2 = this.$loading.service({
  23975. background: "rgba(255, 255, 255, 0.7)",
  23976. target: document.body,
  23977. text: this.lang.ssFileLoading
  23978. });
  23979. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23980. let name = decodeURIComponent(
  23981. _url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23982. );
  23983. var params = {
  23984. Bucket: "ccrb",
  23985. Key: name
  23986. };
  23987. s3.getObject(params, function(err, data) {
  23988. loading2.close();
  23989. if (err) console.log(err, err.stack);
  23990. // an error occurred
  23991. else {
  23992. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23993. let a = document.createElement("a");
  23994. a.name = name;
  23995. a.href = url;
  23996. a.download = name;
  23997. a.click();
  23998. console.log(data);
  23999. } // sxuccessful response
  24000. });
  24001. }
  24002. return;
  24003. // let _this = this;
  24004. // let _url = "";
  24005. // if (
  24006. // url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24007. // ) {
  24008. // _url = url.split(
  24009. // "https://view.officeapps.live.com/op/view.aspx?src="
  24010. // )[1];
  24011. // } else {
  24012. // _url = url;
  24013. // }
  24014. // const x = new XMLHttpRequest();
  24015. // x.open("GET", _url, true);
  24016. // x.responseType = "blob";
  24017. // const loading = _this.$loading.service({
  24018. // background: "rgba(255, 255, 255, 0.7)",
  24019. // target: document.body,
  24020. // text: "文件加载中..."
  24021. // });
  24022. // // _this.$message.success("{{ lang.ssFileDownload }}中...");
  24023. // x.onload = function(e) {
  24024. // loading.close();
  24025. // let content = x.response;
  24026. // let elink = document.createElement("a");
  24027. // elink.download = decodeURI(
  24028. // _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24029. // );
  24030. // elink.style.display = "none";
  24031. // let blob = new Blob([content]);
  24032. // elink.href = URL.createObjectURL(blob);
  24033. // document.body.appendChild(elink);
  24034. // elink.click();
  24035. // document.body.removeChild(elink);
  24036. // };
  24037. // x.send();
  24038. },
  24039. openLine(url) {
  24040. window.open(url);
  24041. },
  24042. resize() {
  24043. if (document.getElementsByClassName("box_course").length) {
  24044. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24045. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24046. if (this.showType == 2 || this.showType == 3) {
  24047. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24048. document.getElementsByClassName("navBox")[0].style.height =
  24049. a - 40 + 0 + "px";
  24050. }
  24051. } else {
  24052. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24053. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24054. }
  24055. }
  24056. }
  24057. this.Stbodywidth =
  24058. document.getElementsByClassName("student_body").length &&
  24059. document.getElementsByClassName("student_body")[0].offsetWidth;
  24060. },
  24061. closeDraw() {
  24062. this.bg = null;
  24063. this.drawShow = false;
  24064. },
  24065. showPicturePaint(url) {
  24066. let params = {
  24067. img: url
  24068. };
  24069. this.ajax
  24070. .get(this.$store.state.api + "imgToBase64", params)
  24071. .then(res => {
  24072. this.drawShow = true;
  24073. this.bg = res.data[0].img;
  24074. })
  24075. .catch(err => {
  24076. console.error(err);
  24077. });
  24078. },
  24079. addImgDraw(base64) {
  24080. let file = { name: this.lang.ssAnnotationImage };
  24081. let img = this.dataUrlToFile(base64, file);
  24082. this.beforeUpload1(img, 5);
  24083. },
  24084. addImgDrawImG(url) {
  24085. // console.log(url);
  24086. let params = [
  24087. {
  24088. wid: this.commentDetail.wid,
  24089. img: url
  24090. }
  24091. ];
  24092. this.ajax
  24093. .post(this.$store.state.api + "updateCourseWorks", params)
  24094. .then(res => {
  24095. this.$message({
  24096. message: this.lang.ssSubmitSuccess,
  24097. type: "success"
  24098. });
  24099. this.drawShow = false;
  24100. this.bg = "";
  24101. this.selectSWorks();
  24102. this.selectStudent();
  24103. })
  24104. .catch(err => {
  24105. this.$message.error(this.lang.ssSubmitFailed);
  24106. console.error(err);
  24107. });
  24108. },
  24109. deletePicturePaint() {
  24110. this.$confirm(this.lang.ssConfirmDeleteAnnotation, this.lang.ssPrompt, {
  24111. confirmButtonText: this.lang.ssConfirm,
  24112. cancelButtonText: this.lang.ssCancel,
  24113. type: "warning"
  24114. })
  24115. .then(() => {
  24116. let params = [
  24117. {
  24118. wid: this.commentDetail.wid,
  24119. img: ""
  24120. }
  24121. ];
  24122. this.ajax
  24123. .post(this.$store.state.api + "updateCourseWorks", params)
  24124. .then(res => {
  24125. this.$message({
  24126. message: this.lang.ssDeleteSuccess,
  24127. type: "success"
  24128. });
  24129. this.selectSWorks();
  24130. this.selectStudent();
  24131. })
  24132. .catch(err => {
  24133. this.$message.error(this.lang.ssDeleteFailed);
  24134. console.error(err);
  24135. });
  24136. })
  24137. .catch(() => {});
  24138. },
  24139. getAudioVideo(constraintsData) {
  24140. if (navigator.mediaDevices === undefined) {
  24141. navigator.mediaDevices = {};
  24142. }
  24143. if (navigator.mediaDevices.getUserMedia === undefined) {
  24144. navigator.mediaDevices.getUserMedia = function(constraints) {
  24145. // 首先,如果有getUserMedia的话,就获得它
  24146. var getUserMedia =
  24147. navigator.getUserMedia ||
  24148. navigator.webkitGetUserMedia ||
  24149. navigator.mozGetUserMedia ||
  24150. navigator.msGetUserMedia;
  24151. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24152. if (!getUserMedia) {
  24153. return Promise.reject({ code: 404 });
  24154. }
  24155. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24156. return new Promise(function(resolve, reject) {
  24157. getUserMedia.call(navigator, constraints, resolve, reject);
  24158. });
  24159. };
  24160. }
  24161. return navigator.mediaDevices.getUserMedia(constraintsData);
  24162. },
  24163. /**
  24164. * 开始录制
  24165. */
  24166. startRecording(callback) {
  24167. let _function = screenStream => {
  24168. this.addStreamStopListener(screenStream, () => {
  24169. console.log(this.lang.ssStreamStopListening);
  24170. this.stopRecording();
  24171. this.$emit("streamStop", {});
  24172. // this.stopRecording();
  24173. });
  24174. var options = {
  24175. type: "video",
  24176. mimeType: "video/webm",
  24177. disableLogs: false,
  24178. getNativeBlob: false, // enable it for longer recordings
  24179. ignoreMutedMedia: false
  24180. };
  24181. // this.video.srcObject = screenStream;
  24182. this.recorder = RecordRTC(screenStream, options);
  24183. this.recorder.startRecording();
  24184. this.recorder.screen = screenStream;
  24185. this.videoStart = true;
  24186. // callback(true);
  24187. };
  24188. this.getAudioVideo({ audio: true })
  24189. .then(res => {
  24190. this.captureScreen(_function, true);
  24191. console.log(this.lang.ssPermissionGrantedSuccess);
  24192. })
  24193. .catch(err => {
  24194. // console.log('浏览器不支持,请更换浏览器')
  24195. // } else {
  24196. this.captureScreen(_function, false);
  24197. console.log(this.lang.ssCheckMicrophone);
  24198. });
  24199. },
  24200. /**
  24201. * 停止录制
  24202. */
  24203. stopRecording(callback) {
  24204. this.recorder.stopRecording(() => {
  24205. // this.video.src = this.video.srcObject = null;
  24206. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24207. const url = URL.createObjectURL(this.recorder.getBlob());
  24208. const a = document.createElement("a"); //this.fileName+
  24209. let videoFile = new File(
  24210. [this.recorder.getBlob()],
  24211. this.courseDetail.title + this.lang.ssScreenRecording + ".mp4",
  24212. {
  24213. type: "video/mp4"
  24214. }
  24215. );
  24216. let downloadUrl = URL.createObjectURL(videoFile);
  24217. if (this.$refs.classRoomHelperRef) {
  24218. this.$refs.classRoomHelperRef.checkUploadFile(videoFile);
  24219. }
  24220. document.body.appendChild(a);
  24221. a.style.display = "none";
  24222. a.href = url;
  24223. a.download = this.courseDetail.title + this.lang.ssScreenRecording + ".mp4"; //this.fileName +
  24224. a.click();
  24225. this.recorder.screen.stop();
  24226. this.recorder.destroy();
  24227. this.recorder = null;
  24228. this.videoStart = false;
  24229. // callback(false);
  24230. });
  24231. },
  24232. //初始化
  24233. captureScreen(callback, type) {
  24234. if (navigator.getDisplayMedia) {
  24235. //录制结束,文件下载
  24236. navigator
  24237. .getDisplayMedia({
  24238. video: true
  24239. })
  24240. .then(screenStream => {
  24241. if (type) {
  24242. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24243. screenStream.addTrack(mic.getTracks()[0]);
  24244. callback(screenStream);
  24245. });
  24246. } else {
  24247. callback(screenStream);
  24248. }
  24249. })
  24250. .catch(function(error) {
  24251. console.log("error", error);
  24252. });
  24253. } else if (navigator.mediaDevices.getDisplayMedia) {
  24254. navigator.mediaDevices
  24255. .getDisplayMedia({
  24256. video: true
  24257. })
  24258. .then(screenStream => {
  24259. if (type) {
  24260. navigator.mediaDevices.getUserMedia({ audio: true }).then(mic => {
  24261. screenStream.addTrack(mic.getTracks()[0]);
  24262. callback(screenStream);
  24263. });
  24264. } else {
  24265. callback(screenStream);
  24266. }
  24267. })
  24268. .catch(function(error) {
  24269. console.log("error", error);
  24270. });
  24271. } else {
  24272. var error = "getDisplayMedia API are not supported in this browser.";
  24273. console.log("error", error);
  24274. alert(error);
  24275. }
  24276. },
  24277. //流监听
  24278. addStreamStopListener(stream, callback) {
  24279. stream.addEventListener(
  24280. "ended",
  24281. function() {
  24282. callback();
  24283. callback = function() {};
  24284. },
  24285. false
  24286. );
  24287. stream.addEventListener(
  24288. "inactive",
  24289. function() {
  24290. callback();
  24291. callback = function() {};
  24292. },
  24293. false
  24294. );
  24295. stream.getTracks().forEach(function(track) {
  24296. track.addEventListener(
  24297. "ended",
  24298. function() {
  24299. callback();
  24300. callback = function() {};
  24301. },
  24302. false
  24303. );
  24304. track.addEventListener(
  24305. "inactive",
  24306. function() {
  24307. callback();
  24308. callback = function() {};
  24309. },
  24310. false
  24311. );
  24312. });
  24313. },
  24314. updateGroup() {
  24315. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24316. this.dialogVisibleGroup2 = true;
  24317. },
  24318. numberPan() {
  24319. if (
  24320. /[^\d]/.test(this.groupJson.number) ||
  24321. this.groupJson.number < 2 ||
  24322. this.groupJson.number > 10
  24323. ) {
  24324. this.$message.error(this.lang.ssEnterNumber2To10);
  24325. this.groupJson.number = "";
  24326. }
  24327. },
  24328. updateGroupJson() {
  24329. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24330. if (
  24331. this.groupStudentUid[this.toolindex][i].length >
  24332. this.groupJson2.number
  24333. ) {
  24334. this.$message.error(this.lang.ssGroupLargerThanSet);
  24335. return;
  24336. }
  24337. }
  24338. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24339. this.islock = this.groupJson.islock == 1 ? true : false;
  24340. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24341. this.taskCount
  24342. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24343. let params = [
  24344. {
  24345. cid: this.id,
  24346. chapters: JSON.stringify(this.chapInfoList),
  24347. uid: this.userid,
  24348. unitIndex: this.courseType
  24349. }
  24350. ];
  24351. this.ajax
  24352. .post(this.$store.state.api + "updateWorkNew4", params)
  24353. .then(res => {
  24354. this.$message.success(this.lang.ssSettingSuccess);
  24355. this.getCourseDetail(2);
  24356. this.dialogVisibleGroup2 = false;
  24357. this.groupJson2 = {};
  24358. this.$forceUpdate();
  24359. })
  24360. .catch(err => {
  24361. this.$message.error(this.lang.ssNetworkPoor);
  24362. console.error(err);
  24363. });
  24364. },
  24365. lockChair() {
  24366. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24367. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24368. this.updateGroupJson();
  24369. },
  24370. selectGroup(index) {
  24371. this.getCourseDetail(2, index);
  24372. },
  24373. joinGroup(index) {
  24374. if (this.groupJson.islock == 2) {
  24375. this.$message.error(this.lang.ssPositionLocked.replace(/\*/g, '加入'));
  24376. return;
  24377. }
  24378. if (
  24379. this.groupStudent[this.toolindex][index].length >
  24380. this.groupJson.number ||
  24381. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24382. ) {
  24383. this.$message.error(this.lang.ssPositionFull);
  24384. return;
  24385. }
  24386. let params = [
  24387. {
  24388. cid: this.id,
  24389. stage: this.courseType,
  24390. task: this.taskCount,
  24391. tool: this.toolindex,
  24392. g: index,
  24393. uid: this.userid
  24394. }
  24395. ];
  24396. this.ajax
  24397. .post(this.$store.state.api + "joinGroup", params)
  24398. .then(res => {
  24399. this.$message.success(this.lang.ssJoinSuccess);
  24400. this.getCourseDetail(2);
  24401. })
  24402. .catch(err => {
  24403. this.$message.error(this.lang.ssNetworkPoor);
  24404. console.error(err);
  24405. });
  24406. },
  24407. exitGroup(id) {
  24408. if (this.groupJson.islock == 2) {
  24409. this.$message.error(this.lang.ssPositionLocked);
  24410. return;
  24411. }
  24412. let params = [
  24413. {
  24414. gid: id
  24415. }
  24416. ];
  24417. this.ajax
  24418. .post(this.$store.state.api + "exitGroup", params)
  24419. .then(res => {
  24420. this.$message.success(this.lang.ssExitSuccess);
  24421. this.getCourseDetail(2);
  24422. })
  24423. .catch(err => {
  24424. this.$message.error(this.lang.ssNetworkPoor);
  24425. console.error(err);
  24426. });
  24427. },
  24428. groupUpload(index, task, gindex) {
  24429. this.taskCount = task;
  24430. this.toolindex = index;
  24431. this.groupIndex = gindex;
  24432. this.dialogVisibleGroupWork = true;
  24433. },
  24434. updateGroupChair(user) {
  24435. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24436. el.label = index;
  24437. return index != user.group;
  24438. });
  24439. this.updateGroupUser = user;
  24440. this.dialogVisibleUpdateGroup = true;
  24441. },
  24442. updateChair() {
  24443. if (
  24444. this.groupStudent[this.toolindex][this.checkChair].length >
  24445. this.groupJson.number ||
  24446. this.groupStudent[this.toolindex][this.checkChair].length ==
  24447. this.groupJson.number
  24448. ) {
  24449. this.$message.error(this.lang.ssPositionFull);
  24450. return;
  24451. }
  24452. let params = [
  24453. {
  24454. cid: this.id,
  24455. stage: this.courseType,
  24456. task: this.taskCount,
  24457. tool: this.toolindex,
  24458. g: this.checkChair,
  24459. uid: this.updateGroupUser.userid
  24460. }
  24461. ];
  24462. this.ajax
  24463. .post(this.$store.state.api + "joinGroup", params)
  24464. .then(res => {
  24465. this.$message.success(this.lang.ssModifySuccess);
  24466. this.updateGroupUser = {};
  24467. this.checkChair = "";
  24468. this.updateGroupArray = {};
  24469. this.dialogVisibleUpdateGroup = false;
  24470. this.getCourseDetail(2);
  24471. })
  24472. .catch(err => {
  24473. this.$message.error(this.lang.ssNetworkPoor);
  24474. console.error(err);
  24475. });
  24476. },
  24477. deleteGroupChair(gindex) {
  24478. this.checkDeleteGroup = [];
  24479. this.deleteGroupUser = JSON.parse(
  24480. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24481. );
  24482. this.deleteGroupArray = this.groupJson.group[gindex];
  24483. this.groupIndex = gindex;
  24484. this.dialogVisibleDeleteGroup = true;
  24485. },
  24486. async deleteChair() {
  24487. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24488. const gid = this.groupStudent[this.toolindex][this.groupIndex][
  24489. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24490. this.checkDeleteGroup[i]
  24491. )
  24492. ];
  24493. let params = [
  24494. {
  24495. gid: gid.id
  24496. }
  24497. ];
  24498. var a = await this.deleteChairA(params);
  24499. if (i == this.checkDeleteGroup.length - 1) {
  24500. this.$message.success(this.lang.ssExitSuccess);
  24501. this.dialogVisibleDeleteGroup = false;
  24502. this.deleteGroupUser = [];
  24503. this.deleteGroupArray = {};
  24504. this.groupIndex = "";
  24505. this.checkDeleteGroup = [];
  24506. this.getCourseDetail(2);
  24507. }
  24508. }
  24509. },
  24510. deleteChairA(params) {
  24511. return new Promise((resolve, reject) => {
  24512. this.ajax
  24513. .post(this.$store.state.api + "exitGroup", params)
  24514. .then(res => {
  24515. resolve(1);
  24516. })
  24517. .catch(err => {
  24518. this.$message.error(this.lang.ssNetworkPoor);
  24519. console.error(err);
  24520. });
  24521. });
  24522. },
  24523. contract(i) {
  24524. if (this.isCloseList[i].isClose == 0) {
  24525. this.isCloseList[i].isClose = 1;
  24526. } else {
  24527. this.isCloseList[i].isClose = 0;
  24528. }
  24529. this.$forceUpdate();
  24530. },
  24531. openWordCloud(toolindex) {
  24532. this.wordCloudData = '';
  24533. let array = [];
  24534. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24535. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24536. array.push({ name: works });
  24537. }
  24538. if (this.isGroup) {
  24539. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24540. let works = this.courseGroup.group[i].works[toolindex];
  24541. for (var j = 0; j < works.length; j++) {
  24542. let answer = JSON.parse(works[j].works)[0].answer;
  24543. array.push({ name: answer });
  24544. }
  24545. }
  24546. }
  24547. let _result = ''
  24548. array.forEach(e=>{
  24549. _result +=e.name+','
  24550. })
  24551. this.wordCloudData = _result;
  24552. this.dialogVisibleWordCloud = true;
  24553. this.wordCloudKey += 1;
  24554. },
  24555. openTips(i) {
  24556. this.tipsIndex = i;
  24557. this.downDialogVisible = true;
  24558. },
  24559. uploadWorks(i) {
  24560. this.$confirm(this.lang.ssConfirmExportHomework, this.lang.ssPrompt, {
  24561. confirmButtonText: this.lang.ssConfirm,
  24562. cancelButtonText: this.lang.ssCancel,
  24563. type: "warning"
  24564. })
  24565. .then(() => {
  24566. const loading = this.$loading.service({
  24567. background: "rgba(255, 255, 255, 0.7)",
  24568. target: document.body,
  24569. text: this.lang.ssFileLoading
  24570. });
  24571. const _worksStudent = this.worksStudent;
  24572. let url = [];
  24573. var counts = {};
  24574. for (var l = 0; l < _worksStudent[i].length; l++) {
  24575. var item = _worksStudent[i][l];
  24576. var name = item.sName;
  24577. if (!counts.hasOwnProperty(name)) {
  24578. counts[name] = 0;
  24579. } else {
  24580. counts[name]++;
  24581. }
  24582. if (counts[name] > 0) {
  24583. item.sName += " (" + counts[name] + ")";
  24584. }
  24585. }
  24586. for (var l = 0; l < _worksStudent[i].length; l++) {
  24587. var item = _worksStudent[i][l];
  24588. if (
  24589. item.works.indexOf(
  24590. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24591. ) !== -1 &&
  24592. item.works.indexOf("img") === -1
  24593. ) {
  24594. url.push({ name: item.sName, url: item.works });
  24595. }
  24596. }
  24597. // var toolList = [
  24598. // { name: "电子白板", tool: 1 },
  24599. // { name: "思维导图", tool: 3 },
  24600. // { name: "协同文档", tool: 6 },
  24601. // { name: "思维网格", tool: 7 },
  24602. // { name: "素材库", tool: 8 },
  24603. // { name: "学习资料", tool: 17 },
  24604. // { name: "便签", tool: 2 },
  24605. // { name: "问卷调查", tool: 4 },
  24606. // { name: "选择题", tool: 45 },
  24607. // { name: "倒计时", tool: 10 },
  24608. // { name: "问答", tool: 15 },
  24609. // { name: "课程设计", tool: 26 },
  24610. // { name: "训练服务器", tool: 18 },
  24611. // { name: "作业提交", tool: 16 },
  24612. // { name: "批量上传", tool: 50 },
  24613. // { name: "AIoT Blockly", tool: 21 },
  24614. // { name: "AI Python", tool: 23 },
  24615. // { name: "AI Blockly", tool: 24 },
  24616. // { name: "目标管理", tool: 25 },
  24617. // { name: "数学画板", tool: 31 },
  24618. // { name: "翻译", tool: 28 },
  24619. // { name: "魔盒识字", tool: 37 },
  24620. // { name: "数学画板", tool: 31 },
  24621. // { name: "24点", tool: 38 },
  24622. // { name: "GeoGebra", tool: 39 },
  24623. // { name: "源码编辑", tool: 32 },
  24624. // { name: "个人评价", tool: 40 },
  24625. // { name: "选择匹配", tool: 41 },
  24626. // { name: "汉字宫", tool: 44 },
  24627. // { name: "排序", tool: 47 },
  24628. // { name: "表格", tool: 48 },
  24629. // { name: "文档", tool: 52 },
  24630. // { name: "学生分组", tool: 49 },
  24631. // { name: "CocoPi", tool: 57 },
  24632. // { name: "模拟驾驶", tool: 58 },
  24633. // { name: "路径搜索", tool: 59 },
  24634. // { name: "深度学习", tool: 60 },
  24635. // { name: "全历史", tool: 61 },
  24636. // { name: "交互视频", tool: 62 },
  24637. // { name: "海龟编程", tool: 63 },
  24638. // { name: "挑人", tool: 65 },
  24639. // { name: "公式编辑", tool: 66 },
  24640. // { name: "分子结构", tool: 67 },
  24641. // { name: "时间轴", tool: 68 },
  24642. // ];
  24643. // var toolName = "";
  24644. // for(var w = 0;w<toolList.length;w++){
  24645. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24646. // toolName = toolList[w].name;
  24647. // }
  24648. // }
  24649. console.log(url);
  24650. this.downLoadAll(url, loading);
  24651. })
  24652. .catch(() => {});
  24653. },
  24654. downLoadAll(url, loading) {
  24655. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24656. const zip = new JSZip();
  24657. const cache = {};
  24658. const promises = [];
  24659. data.forEach(item => {
  24660. const promise = getFile(item.url).then(data => {
  24661. if (data.data != 1) {
  24662. // 下载文件, 并存成ArrayBuffer对象
  24663. const file_name =
  24664. item.name +
  24665. "." +
  24666. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24667. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24668. cache[file_name] = data.data;
  24669. }
  24670. });
  24671. promises.push(promise);
  24672. });
  24673. Promise.all(promises).then(() => {
  24674. zip.generateAsync({ type: "blob" }).then(content => {
  24675. // 生成二进制流
  24676. FileSaver.saveAs(
  24677. content,
  24678. this.courseDetail.title + "-" + this.lang.ssHomeworkSubmissionTool + ".zip"
  24679. ); // 利用file-saver保存文件 自定义文件名
  24680. setTimeout(() => {
  24681. loading.close();
  24682. }, 2000);
  24683. });
  24684. });
  24685. },
  24686. pickStudent(stu) {
  24687. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24688. return;
  24689. }
  24690. this.$confirm(`${this.lang.ssAskStudentToAnswer.replace(/\*/g, stu.name)}`, this.lang.ssPrompt, {
  24691. confirmButtonText: this.lang.ssConfirm,
  24692. cancelButtonText: this.lang.ssCancel,
  24693. type: "warning"
  24694. })
  24695. .then(() => {
  24696. let params = [
  24697. {
  24698. uid: stu.userid,
  24699. cid: this.id,
  24700. stage: this.courseType,
  24701. task: this.taskCount,
  24702. tool: this.toolindex
  24703. }
  24704. ];
  24705. this.ajax
  24706. .post(this.$store.state.api + "updateCoursePick", params)
  24707. .then(res => {
  24708. this.$message.success(this.lang.ssOperationSuccess);
  24709. this.getPick();
  24710. })
  24711. .catch(err => {
  24712. this.$message.error(this.lang.ssNetworkPoor);
  24713. console.error(err);
  24714. });
  24715. })
  24716. .catch(() => {});
  24717. },
  24718. selectUser() {
  24719. let params = {
  24720. userid: this.userid
  24721. };
  24722. this.ajax
  24723. .get(this.$store.state.api + "selectUser", params)
  24724. .then(res => {
  24725. this.userMes = res.data[0];
  24726. })
  24727. .catch(err => {
  24728. console.error(err);
  24729. });
  24730. },
  24731. setEngText(i) {
  24732. this.newEngIndex = i;
  24733. this.$forceUpdate();
  24734. },
  24735. addCorrect() {
  24736. this.$confirm(this.lang.ssConfirmSubmitCorrection, this.lang.ssPrompt, {
  24737. confirmButtonText: this.lang.ssConfirm,
  24738. showCancelButton: false,
  24739. closeOnClickModal: false,
  24740. type: "warning"
  24741. })
  24742. .then(() => {
  24743. let params = {
  24744. cid: this.id,
  24745. s: parseInt(this.courseType),
  24746. t: this.taskCount,
  24747. tool: this.toolindex,
  24748. wid: this.engWid,
  24749. c: this.userid,
  24750. w:
  24751. this.userMes[0].type == 2
  24752. ? JSON.parse(this.newEnglishList)
  24753. : this.newEngIndex == -1 &&
  24754. this.isNoUserid == true &&
  24755. this.newEnglishList1.length
  24756. ? JSON.stringify(this.oldEnglishJson1)
  24757. : this.newEngIndex == -1
  24758. ? JSON.stringify(this.newEnglishList)
  24759. : this.newEngIndex > -1 && this.newEnglishList1.length > 0
  24760. ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork)
  24761. : ""
  24762. };
  24763. this.ajax
  24764. .get(this.$store.state.api + "addEngC", params)
  24765. .then(res => {
  24766. this.$message.success(this.lang.ssSubmitSuccess);
  24767. this.engUpdateDialogVisible = false;
  24768. })
  24769. .catch(err => {
  24770. console.error(err);
  24771. });
  24772. })
  24773. .catch(() => {});
  24774. },
  24775. selectEngC(id, z) {
  24776. let params = {
  24777. workid: id
  24778. };
  24779. this.ajax
  24780. .get(this.$store.state.api + "selectEngC", params)
  24781. .then(res => {
  24782. if (res.data[0].length == 0) {
  24783. this.newEnglishList.engTitle = z.engTitle;
  24784. this.newEnglishList.engText = z.engText;
  24785. } else {
  24786. var a = res.data[0];
  24787. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24788. if (this.userMes[0].type == 2) {
  24789. var snum = 0;
  24790. for (var i = 0; i < a.length; i++) {
  24791. if (this.userMes[0].userid == a[i].correct) {
  24792. this.newEnglishList = JSON.parse(a[i].cWork);
  24793. snum = 1;
  24794. }
  24795. }
  24796. if (snum == 0) {
  24797. this.newEnglishList = { engTitle: "", engText: "" };
  24798. this.newEnglishList.engTitle = z.engTitle;
  24799. this.newEnglishList.engText = z.engText;
  24800. }
  24801. } else if (this.userMes[0].type == 1) {
  24802. var num = 0;
  24803. for (var w = 0; w < a.length; w++) {
  24804. if (this.userMes[0].userid == a[w].correct) {
  24805. num = 1;
  24806. }
  24807. }
  24808. if (num == 0) {
  24809. this.isNoUserid = true;
  24810. var c = JSON.parse(JSON.stringify(z));
  24811. this.oldEnglishJson1 = c;
  24812. } else {
  24813. this.isNoUserid = false;
  24814. }
  24815. var b = a.sort((item, index) => {
  24816. console.log(item);
  24817. if (item.correct === this.userMes[0].userid) {
  24818. return -1; // 将a移到前面
  24819. } else if (index.correct === this.userMes[0].userid) {
  24820. return 1; // 将b移到前面
  24821. } else {
  24822. return 0; // 保持默认顺序
  24823. }
  24824. });
  24825. for (var p = 0; p < b.length; p++) {
  24826. for (var y = 0; y < ppp.length; y++) {
  24827. if (b[p].id == ppp[y].id) {
  24828. b[p].cWork = JSON.parse(ppp[y].cWork);
  24829. break;
  24830. }
  24831. }
  24832. }
  24833. this.newEnglishList1 = b;
  24834. }
  24835. }
  24836. this.greyType = false;
  24837. setTimeout(() => {
  24838. this.topHeight = document.querySelectorAll(
  24839. ".engUpTop"
  24840. )[0].offsetHeight;
  24841. if (this.newEnglishList1.length > 0) {
  24842. if (this.isNoUserid == true) {
  24843. this.engListLength = this.newEnglishList1.length + 1;
  24844. this.newEngIndex = -1;
  24845. } else {
  24846. this.engListLength = this.newEnglishList1.length;
  24847. this.newEngIndex = 0;
  24848. }
  24849. }
  24850. if (this.userMes[0].type == 2) {
  24851. this.correctWord = Diff.diffWordsWithSpace(
  24852. this.oldEnglishJson.engText,
  24853. this.newEnglishList.engText
  24854. );
  24855. } else if (
  24856. this.newEngIndex == -1 &&
  24857. this.isNoUserid == true &&
  24858. this.newEnglishList1.length
  24859. ) {
  24860. this.correctWord = Diff.diffWordsWithSpace(
  24861. this.oldEnglishJson.engText,
  24862. this.oldEnglishJson1.engText
  24863. );
  24864. } else if (this.newEngIndex == -1) {
  24865. this.correctWord = Diff.diffWordsWithSpace(
  24866. this.oldEnglishJson.engText,
  24867. this.newEnglishList.engText
  24868. );
  24869. } else if (
  24870. this.newEngIndex > -1 &&
  24871. this.newEnglishList1.length > 0
  24872. ) {
  24873. this.correctWord = Diff.diffWordsWithSpace(
  24874. this.oldEnglishJson.engText,
  24875. this.newEnglishList1[this.newEngIndex].cWork.engText
  24876. );
  24877. }
  24878. }, 500);
  24879. this.engUpdateDialogVisible = true;
  24880. this.$forceUpdate();
  24881. })
  24882. .catch(err => {
  24883. console.error(err);
  24884. });
  24885. },
  24886. getPick() {
  24887. if(this.getPickLoading) return
  24888. this.getPickLoading = true
  24889. let params = {
  24890. cid: this.id
  24891. };
  24892. this.ajax
  24893. .get(this.$store.state.api + "getPick", params)
  24894. .then(res => {
  24895. let array = [];
  24896. for (var i = 0; i < res.data[0].length; i++) {
  24897. array.push(res.data[0][i].userid);
  24898. }
  24899. this.isPickStudent = array;
  24900. if (array.indexOf(this.userid) !== -1) {
  24901. this.$confirm(this.lang.ssSelectedByTeacher, this.lang.ssPrompt, {
  24902. confirmButtonText: this.lang.ssConfirm,
  24903. showCancelButton: false,
  24904. closeOnClickModal: false,
  24905. type: "warning"
  24906. })
  24907. .then(() => {
  24908. let pa = [
  24909. {
  24910. uid: this.userid,
  24911. cid: this.id
  24912. }
  24913. ];
  24914. this.ajax
  24915. .post(this.$store.state.api + "deletePick", pa)
  24916. .then(res => {
  24917. this.getPick();
  24918. })
  24919. .catch(err => {
  24920. this.$message.error(this.lang.ssNetworkPoor);
  24921. console.error(err);
  24922. });
  24923. })
  24924. .catch(() => {});
  24925. }
  24926. this.getPickLoading = false
  24927. })
  24928. .catch(err => {
  24929. this.getPickLoading = false
  24930. this.$message.error(this.lang.ssNetworkPoor);
  24931. console.error(err);
  24932. });
  24933. },
  24934. foldEva() {
  24935. if (
  24936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24937. this.taskCount
  24938. ].isEvaFold2
  24939. ) {
  24940. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24941. this.taskCount
  24942. ].isEvaFold2 = false;
  24943. } else {
  24944. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24945. this.taskCount
  24946. ].isEvaFold2 = true;
  24947. setTimeout(() => {
  24948. this.checkEva();
  24949. setTimeout(() => {
  24950. this.checkEva();
  24951. }, 500);
  24952. }, 0);
  24953. }
  24954. this.$forceUpdate();
  24955. },
  24956. panToolHeight(tool) {
  24957. var _tool = document.querySelectorAll("#" + tool)[0];
  24958. var _toolA = _tool ? _tool.offsetHeight : 0;
  24959. var _toolC = 0;
  24960. var _toolC =
  24961. _tool && _tool.children && _tool.children[0]
  24962. ? _tool.children[0].offsetHeight + 50
  24963. : 0;
  24964. let boolean2 = _toolA > _toolC ? true : false;
  24965. this.isCloseList[tool.split("-")[1]].isCloseBoolean = boolean2;
  24966. this.$forceUpdate();
  24967. },
  24968. async checkLink(url) {
  24969. // console.log(url)
  24970. let _url = url;
  24971. try {
  24972. const response = await fetch(url);
  24973. if (!response.ok) {
  24974. _url = await this.checkLink(
  24975. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24976. encodeURIComponent(
  24977. _url.split(
  24978. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/"
  24979. )[1]
  24980. )
  24981. );
  24982. }
  24983. // console.log(response.ok)
  24984. } catch (error) {
  24985. console.error("Error checking link:", error);
  24986. // console.log(false)
  24987. _url = await this.checkLink(
  24988. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" +
  24989. encodeURIComponent(
  24990. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24991. )
  24992. );
  24993. }
  24994. // console.log(_url)
  24995. return _url;
  24996. },
  24997. setClassRoomHelperWidth(width) {
  24998. this.classRoomHelperWidth = width;
  24999. },
  25000. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25001. this.$refs.choseWorksDetailDialogRef.open({
  25002. toolType:tooc,
  25003. tType: this.tType,
  25004. toolIndex: toolIndex
  25005. });
  25006. this.changeSplitScreenBehavior({
  25007. code: 1,
  25008. form: {
  25009. toolType:tooc,
  25010. toolIndex: toolIndex,
  25011. courseType: this.courseType,
  25012. taskCount: this.taskCount,
  25013. type: 0
  25014. }
  25015. });
  25016. },
  25017. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25018. this.$refs.statisticalAnalysisRef.open({
  25019. worksStudent: this.worksStudent[toolIndex],
  25020. tType: this.tType,
  25021. toolIndex: toolIndex
  25022. });
  25023. this.changeSplitScreenBehavior({
  25024. code: 2,
  25025. form: {
  25026. toolType:4,
  25027. courseType: this.courseType,
  25028. taskCount: this.taskCount,
  25029. toolIndex: toolIndex,
  25030. type: 0
  25031. }
  25032. });
  25033. },
  25034. statisticalAnalysisRefresh(toolIndex) {
  25035. this.$refs.statisticalAnalysisRef.refreshData({
  25036. worksStudent: this.worksStudent[toolIndex],
  25037. tType: this.tType,
  25038. toolIndex: toolIndex
  25039. });
  25040. },
  25041. async splitScreenBehavior(type = 0) {
  25042. // return;
  25043. if (this.splitScreenData.loading)
  25044. return this.$message.info(this.lang.ssOperationTooFast);
  25045. if (type == 0) {
  25046. //关闭分屏
  25047. this.splitScreenData.isOpen = false;
  25048. // this.splitScreenData.userId = "";
  25049. // this.splitScreenData.uid = "";
  25050. this.splitScreenData.behavior = null;
  25051. await this.updateSplitScreenData(1);
  25052. this.$message.success(this.lang.ssSplitScreenClosed);
  25053. this.studentFreePreview(false);
  25054. this.OpenJobPreview(false);
  25055. // this.followingMode(false);
  25056. } else if (type == 1) {
  25057. //开启分屏
  25058. this.splitScreenData.isOpen = true;
  25059. this.splitScreenData.userId = this.userid;
  25060. this.splitScreenData.uid = this.splitScreenData.myUid;
  25061. this.splitScreenData.behavior = null;
  25062. let status = await this.updateSplitScreenData(0);
  25063. if (status == 1) {
  25064. this.$message.success(this.lang.ssSplitScreenOpened);
  25065. this.studentFreePreview(false);
  25066. this.OpenJobPreview(true);
  25067. this.changeSplitScreenBehavior({form:{}})
  25068. // this.followingMode(true);
  25069. } else {
  25070. this.splitScreenData.isOpen = false;
  25071. this.splitScreenData.userId = "";
  25072. this.splitScreenData.uid = "";
  25073. this.splitScreenData.behavior = null;
  25074. this.$message.success(this.lang.ssSplitScreenOpenFailed);
  25075. }
  25076. }
  25077. },
  25078. enterFullScreen() {
  25079. let element = document.documentElement;
  25080. if (element.requestFullscreen) {
  25081. element.requestFullscreen();
  25082. } else if (element.mozRequestFullScreen) { /* Firefox */
  25083. element.mozRequestFullScreen();
  25084. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25085. element.webkitRequestFullscreen();
  25086. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25087. element.msRequestFullscreen();
  25088. }
  25089. },
  25090. exitFullScreen() {
  25091. if (document.exitFullscreen) {
  25092. document.exitFullscreen();
  25093. } else if (document.mozCancelFullScreen) { /* Firefox */
  25094. document.mozCancelFullScreen();
  25095. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25096. document.webkitExitFullscreen();
  25097. } else if (document.msExitFullscreen) { /* IE/Edge */
  25098. document.msExitFullscreen();
  25099. }
  25100. },
  25101. confirmOpen(){
  25102. this.splitScreenData.isOpen = true;
  25103. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25104. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25105. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25106. this.confirmOpenDig = false
  25107. if (!document.fullscreenElement) {
  25108. this.enterFullScreen();
  25109. }
  25110. // if (this.timer2) {
  25111. // clearInterval(this.timer2);
  25112. // this.timer2 = null;
  25113. // console.log('清除定时器');
  25114. // }
  25115. // this.timer2 = setInterval(()=> {
  25116. // this.getSplitScreenData();//获取分屏数据
  25117. // }, 1000);
  25118. this.IsLookOpen = flase
  25119. this.$message.success(this.lang.ssSplitScreenEnabled);
  25120. },
  25121. getSplitScreenData() {
  25122. // return;
  25123. // if (this.tType != 1) return;
  25124. if(this.getSplitScreenDataLoading) return
  25125. this.getSplitScreenDataLoading = true
  25126. let params = {
  25127. cid: this.id
  25128. };
  25129. this.ajax
  25130. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25131. .then(async res => {
  25132. let data = res.data[0][0]["splitScreenData"];
  25133. console.log(this.lang.ssSplitScreenDataRetrieved, data);
  25134. if (data) {
  25135. data = JSON.parse(data);
  25136. if (
  25137. !this.splitScreenData.isOpen &&
  25138. data.isOpen &&
  25139. this.splitScreenData.myUid == data.uid
  25140. ) {
  25141. this.splitScreenData.isOpen = false;
  25142. this.splitScreenData.userId = "";
  25143. this.splitScreenData.uid = "";
  25144. this.splitScreenData.behavior = null;
  25145. await this.updateSplitScreenData(1);
  25146. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25147. this.confirmOpenDig = true
  25148. this.confirmOpenDigData = data
  25149. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25150. this.splitScreenData.isOpen = false;
  25151. this.splitScreenData.userId = "";
  25152. this.splitScreenData.uid = "";
  25153. this.splitScreenData.behavior = null;
  25154. this.$message.error(this.lang.ssSplitScreenEnded);
  25155. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25156. this.splitScreenData.isOpen = true;
  25157. this.splitScreenData.uid = data.uid;
  25158. this.splitScreenData.userId = data.userId;
  25159. this.splitScreenData.behavior = data.behavior;
  25160. }
  25161. this.doSplitScreenBehavior();
  25162. } else {
  25163. if (this.splitScreenData.isOpen) {
  25164. this.splitScreenData.isOpen = false;
  25165. this.splitScreenData.userId = "";
  25166. this.splitScreenData.uid = "";
  25167. this.splitScreenData.behavior = null;
  25168. this.$message.error(this.lang.ssSplitScreenEnded);
  25169. // if (this.timer2) {
  25170. // clearInterval(this.timer2);
  25171. // this.timer2 = null;
  25172. // }
  25173. // this.timer2 = setInterval(()=> {
  25174. // this.getSplitScreenData();//获取分屏数据
  25175. // }, 5000);
  25176. this.$confirm(this.lang.ssTeacherEndedSplitScreen, this.lang.ssPrompt, {
  25177. confirmButtonText: '确定', //确认按钮的文字
  25178. showCancelButton: false, //是否显示取消按钮
  25179. showClose: false, //是否显示关闭按钮
  25180. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25181. type: "warning",
  25182. })
  25183. .then(() => {
  25184. if (document.fullscreenElement) {
  25185. this.exitFullScreen();
  25186. }
  25187. })
  25188. .catch(() => {});
  25189. }
  25190. }
  25191. this.getSplitScreenDataLoading = false
  25192. })
  25193. .catch(e => {
  25194. this.getSplitScreenDataLoading = false
  25195. console.log("获取分屏数出错:", e);
  25196. });
  25197. },
  25198. doSplitScreenBehavior() {
  25199. if (
  25200. this.splitScreenData.isOpen &&
  25201. this.splitScreenData.uid != this.splitScreenData.myUid
  25202. ) {
  25203. let behavior = this.splitScreenData.behavior;
  25204. if (behavior) {
  25205. if (behavior.code === 99) {
  25206. //初始化
  25207. this.fullDialogVisible = false;
  25208. if(this.$refs.choseWorksDetailDialogRef.show){
  25209. this.$refs.choseWorksDetailDialogRef.close();
  25210. }
  25211. if(this.$refs.statisticalAnalysisRef.show){
  25212. this.$refs.statisticalAnalysisRef.close();
  25213. }
  25214. }
  25215. if (behavior.code === 0) {
  25216. //开启内容列表弹窗
  25217. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25218. }else{
  25219. this.fullDialogVisible = false;
  25220. }
  25221. if (behavior.code === 1) {
  25222. //关于选择题的作业详细的操作
  25223. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25224. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25225. this.courseType = behavior.form.courseType;
  25226. this.taskCount = behavior.form.taskCount;
  25227. }
  25228. this.$nextTick(() => {
  25229. if (this.$refs.choseWorksDetailDialogRef.show) {
  25230. //已经打开了
  25231. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25232. } else {
  25233. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25234. }
  25235. });
  25236. }else{
  25237. this.$refs.choseWorksDetailDialogRef.close()
  25238. }
  25239. if(behavior.code === 2){
  25240. if(this.$refs.statisticalAnalysisRef.show){
  25241. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25242. }else{
  25243. this.$refs.statisticalAnalysisRef.open({
  25244. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25245. tType: this.tType,
  25246. toolIndex: behavior.form.toolIndex
  25247. });
  25248. }
  25249. }else{
  25250. this.$refs.statisticalAnalysisRef.close();
  25251. }
  25252. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25253. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25254. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25255. if (behavior.form.courseType != this.courseType ||
  25256. behavior.form.taskCount != this.taskCount ||
  25257. behavior.form.toolType != this.toolindex
  25258. ) {
  25259. var a = document.scrollingElement;
  25260. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25261. if (target) {
  25262. target.scrollIntoView(true);
  25263. setTimeout(()=>{
  25264. let scrollBody = document.querySelector('.body_student').parentElement
  25265. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25266. }, 0);
  25267. // setTimeout(() => {
  25268. // a.scrollTop = 0
  25269. // }, 0);
  25270. }
  25271. }
  25272. if(this.courseType !=behavior.form.courseType){
  25273. this.courseType = behavior.form.courseType;
  25274. }
  25275. if(this.taskCount !=behavior.form.taskCount){
  25276. this.taskCount = behavior.form.taskCount;
  25277. }
  25278. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25279. this.toolindex = behavior.form.toolType;
  25280. }
  25281. // if(behavior.form.navId){
  25282. // this.navId = behavior.form.navId
  25283. // }
  25284. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25285. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25286. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25287. this.getCourseDetail()
  25288. }
  25289. this.setContent2(false)
  25290. }
  25291. } else {
  25292. }
  25293. }
  25294. },
  25295. updateSplitScreenData(empty = 0) {
  25296. return new Promise(resolve => {
  25297. if(this.userid!==this.courseDetail.userid){
  25298. if(!this.courseDetail.userid){
  25299. return setTimeout(()=>{
  25300. this.updateSplitScreenData(empty)
  25301. },2000)
  25302. }
  25303. return;
  25304. };
  25305. if (
  25306. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25307. this.splitScreenData.userId == this.userid
  25308. ) {
  25309. this.splitScreenData.loading = true;
  25310. let params = [
  25311. {
  25312. cid: this.id,
  25313. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25314. }
  25315. ];
  25316. this.ajax
  25317. .post(
  25318. this.$store.state.api + "update_courseSplitScreenData",
  25319. params
  25320. )
  25321. .then(res => {
  25322. this.splitScreenData.loading = false;
  25323. if (res.data == 1) {
  25324. resolve(1);
  25325. console.log("修改分屏数据成功");
  25326. }
  25327. })
  25328. .catch(e => {
  25329. this.splitScreenData.loading = false;
  25330. console.log("修改分屏数据失败", e);
  25331. resoleve(0);
  25332. });
  25333. } else if (empty == 2 && this.tType == 1) {
  25334. let params = [
  25335. {
  25336. cid: this.id,
  25337. nData: ""
  25338. }
  25339. ];
  25340. return this.ajax
  25341. .post(
  25342. this.$store.state.api + "update_courseSplitScreenData",
  25343. params
  25344. )
  25345. .then(_ => resolve(1))
  25346. .catch(_ => resolve(0));
  25347. } else {
  25348. return resolve(0);
  25349. }
  25350. });
  25351. },
  25352. changeSplitScreenBehavior(newValue) {
  25353. if (
  25354. this.splitScreenData.isOpen &&
  25355. this.splitScreenData.uid == this.splitScreenData.myUid
  25356. ) {
  25357. let _behavior = null;
  25358. if(!newValue){
  25359. _behavior = {}
  25360. }else{
  25361. _behavior = newValue
  25362. }
  25363. if(_behavior.form){
  25364. _behavior.form.taskCount = this.taskCount;
  25365. _behavior.form.courseType = this.courseType
  25366. }else{
  25367. _behavior.form = {
  25368. taskCount:this.taskCount,
  25369. courseType:this.courseType
  25370. }
  25371. }
  25372. this.splitScreenData.behavior = _behavior;
  25373. this.updateSplitScreenData(0);
  25374. }
  25375. },
  25376. studentFreePreview(flag) {
  25377. this.IsLookOpen = flag;
  25378. this.followingMode(flag)
  25379. this.updateLookOpen();
  25380. },
  25381. OpenJobPreview(flag) {
  25382. this.sIsOpen = flag;
  25383. this.updateSLook();
  25384. },
  25385. followingMode(flag) {
  25386. this.IsFollow = flag;
  25387. this.updateFollow();
  25388. },
  25389. StulookMode(flag) {
  25390. this.IsStulook = flag;
  25391. this.updateIsStulook();
  25392. },
  25393. getScoreList() {
  25394. let params = {
  25395. cid: this.id
  25396. };
  25397. this.ajax
  25398. .get(this.$store.state.api + "selectTestCourseByCid", params)
  25399. .then(res => {
  25400. let result = res.data;
  25401. this.scoreList.datalist = result[0];
  25402. this.scoreList.isScoreList = result[1];
  25403. })
  25404. .catch(err => {
  25405. console.error(err);
  25406. });
  25407. },
  25408. doSyncClassData(){
  25409. if(this.courseDetail.userid == this.userid && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  25410. let endTime = new Date().toLocaleString("zh-CN", {
  25411. hour12: false,
  25412. timeZone: "Asia/Shanghai"
  25413. }).replace(/\//g, "-")
  25414. let courseTime = Math.floor((new Date(endTime) - new Date(this.startTime)) / (1000 * 60))
  25415. this.syncClassData({
  25416. courseId: this.id,
  25417. title: this.courseDetail.title,
  25418. courseGrade: this.tcid2 ? this.tcid2 : '',
  25419. courseTime: courseTime,
  25420. startTime: this.startTime,
  25421. endTime: endTime,
  25422. })
  25423. console.log('同步数据')
  25424. }
  25425. },
  25426. },
  25427. directives: {
  25428. // 使用局部注册指令的方式
  25429. resize: {
  25430. // 指令的名称
  25431. bind(el, binding) {
  25432. // el为绑定的元素,binding为绑定给指令的对象
  25433. let width = "",
  25434. height = "";
  25435. function isReize() {
  25436. const style = document.defaultView.getComputedStyle(el);
  25437. if (width !== style.width || height !== style.height) {
  25438. binding.value(); // 关键
  25439. }
  25440. width = style.width;
  25441. height = style.height;
  25442. }
  25443. el.__vueSetInterval__ = setInterval(isReize, 300);
  25444. },
  25445. unbind(el) {
  25446. clearInterval(el.__vueSetInterval__);
  25447. }
  25448. },
  25449. autoHeight: {
  25450. update(el, binding) {
  25451. const { value } = binding;
  25452. if (value && typeof value === "number") {
  25453. el.style.height = `${value}px`;
  25454. } else {
  25455. el.style.height = "auto";
  25456. }
  25457. },
  25458. componentUpdated(el) {
  25459. el.style.height = `${el.scrollHeight + 5}px`;
  25460. }
  25461. }
  25462. },
  25463. beforeDestroy() {
  25464. window.onresize = null;
  25465. clearInterval(this.timer);
  25466. this.timer = null;
  25467. clearInterval(this.timer2);
  25468. this.timer2 = null;
  25469. clearInterval(this.opertimer);
  25470. this.opertimer = null;
  25471. this.updateSplitScreenData(1);
  25472. this.doSyncClassData();
  25473. },
  25474. computed: {
  25475. renderedFormula2() {
  25476. return function(val){
  25477. // 处理换行符和HTML实体
  25478. const normalized = val
  25479. .replace(/&amp;/g, '&')
  25480. .replace(/<br\/?>/g, '\n');
  25481. // 匹配行内公式($...$)和块级公式($$...$$)
  25482. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  25483. try {
  25484. return katex.renderToString(expr.trim(), {
  25485. displayMode: false,
  25486. throwOnError: false,
  25487. macros: {
  25488. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  25489. }
  25490. });
  25491. } catch (e) {
  25492. console.warn('KaTeX渲染失败:', e);
  25493. return `<span style="color:red">${expr}</span>`;
  25494. }
  25495. })
  25496. }
  25497. },
  25498. renderedFormula() {
  25499. return function(val){
  25500. try {
  25501. // 判断是否含有HTML标签,<tag ...>...</tag>
  25502. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  25503. if (!hasTag) {
  25504. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25505. // 纯文本,整体渲染
  25506. try {
  25507. return katex.renderToString(val.trim(), {
  25508. throwOnError: false,
  25509. strict: false,
  25510. output: "htmlAndMathml"
  25511. });
  25512. } catch (e) {
  25513. return val; // 渲染失败原样输出
  25514. }
  25515. } else {
  25516. // 有标签,对每个标签内容渲染
  25517. return val.replace(
  25518. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  25519. (match, tag, attrs, inner) => {
  25520. let html;
  25521. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25522. try {
  25523. html = katex.renderToString(inner.trim(), {
  25524. throwOnError: false,
  25525. strict: false,
  25526. output: "htmlAndMathml"
  25527. });
  25528. } catch (e) {
  25529. html = inner;
  25530. }
  25531. return `<${tag}${attrs}>${html}</${tag}>`;
  25532. }
  25533. );
  25534. }
  25535. } catch (e) {
  25536. console.error('KaTeX渲染错误:', e);
  25537. return val;
  25538. }
  25539. }
  25540. },
  25541. isAndroid() {
  25542. return /Android/i.test(navigator.userAgent);
  25543. },
  25544. getHeight() {
  25545. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25546. },
  25547. contentConvent() {
  25548. return function(c) {
  25549. return c
  25550. ? c
  25551. .replaceAll(/\r\n/g, "<br/>")
  25552. .replaceAll(/\n/g, "<br/>")
  25553. .replaceAll(/\s/g, " &nbsp")
  25554. : "";
  25555. };
  25556. },
  25557. commentRight() {
  25558. if (
  25559. !this.orgArray.includes(this.org) &&
  25560. !this.oidArray.includes(this.oid)
  25561. ) {
  25562. return "35px";
  25563. }
  25564. return `calc(${this.classRoomHelperWidth} + 5px)`;
  25565. // if(this.$refs["classRoomHelperRef"].type==0){
  25566. // return "100px";
  25567. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25568. // return "502px"
  25569. // }else{
  25570. // return "0px"
  25571. // }
  25572. },
  25573. checkUpload() {
  25574. return function() {
  25575. var studentK = [];
  25576. if (this.plworkFile.length > 0) {
  25577. for (var z = 0; z < this.plworkFile.length; z++) {
  25578. studentK.push(this.plworkFile[z].username);
  25579. }
  25580. studentK = studentK.join(",");
  25581. }
  25582. var a = this.uploadStudentJuri.filter(el => {
  25583. return studentK.indexOf(el.userid) == -1;
  25584. });
  25585. return a;
  25586. };
  25587. },
  25588. getSName() {
  25589. return function(name) {
  25590. var check = name;
  25591. this.uploadStudentJuri.forEach(el => {
  25592. if (el.userid == check) {
  25593. check = el.name ? el.name : el.username;
  25594. }
  25595. });
  25596. return check;
  25597. };
  25598. },
  25599. getImgList() {
  25600. return function(val) {
  25601. let srcList = []; // 定义一个数组用来接收后面的img地址
  25602. val.replace(/<img [^>]*src=['"]([^'"]+)[^>]*>/g, function(
  25603. match,
  25604. capture
  25605. ) {
  25606. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25607. srcList.push(capture);
  25608. });
  25609. return srcList;
  25610. };
  25611. },
  25612. retrnToolHeight() {
  25613. return function(tool) {
  25614. var _tool = document.querySelectorAll("#" + tool)[0];
  25615. return _tool
  25616. ? document.querySelectorAll("#" + tool)[0].children[0].offsetHeight +
  25617. 30 +
  25618. "px"
  25619. : 0;
  25620. };
  25621. },
  25622. Correct() {
  25623. return function(c) {
  25624. let w = "";
  25625. let a = this.correctWord;
  25626. for (var k = 0; k < a.length; k++) {
  25627. //diffWordsWithSpace
  25628. if (a.length > 1) {
  25629. if (a[k].added == true) {
  25630. w +=
  25631. '<span style="background-color: green;color:#fff">' +
  25632. a[k].value +
  25633. "</span>";
  25634. } else if (a[k].removed == true) {
  25635. w +=
  25636. '<span style="text-decoration: line-through;color:red">' +
  25637. a[k].value +
  25638. "</span>";
  25639. } else {
  25640. w += "<span>" + a[k].value + "</span>";
  25641. }
  25642. } else {
  25643. w = c;
  25644. }
  25645. //diffChars方法
  25646. // if(w == ""){
  25647. // if(a.length > 1){
  25648. // if(a[k].added == true){
  25649. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25650. // }else if(a[k].removed == true){
  25651. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25652. // }
  25653. // }else{
  25654. // w = c
  25655. // }
  25656. // }else{
  25657. // if(k == a.length - 1){
  25658. // if(a[k].added == true){
  25659. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25660. // }else if(a[k].removed == true){
  25661. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25662. // }
  25663. // }else{
  25664. // if(a[k].added == true){
  25665. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25666. // }else if(a[k].removed == true){
  25667. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25668. // }
  25669. // }
  25670. // }
  25671. }
  25672. c = w;
  25673. return c;
  25674. };
  25675. },
  25676. },
  25677. mounted() {
  25678. this.setoTime("1");
  25679. this.startTime = new Date().toLocaleString("zh-CN", {
  25680. hour12: false,
  25681. timeZone: "Asia/Shanghai"
  25682. }).replace(/\//g, "-")
  25683. this.updateSplitScreenData(2);
  25684. this.splitScreenData.myUid = uuidv4();
  25685. document.body.addEventListener("click", e => {
  25686. if (this.isUpdateToolDetail1) {
  25687. this.updateToolDetail(this.toolDetailIndex);
  25688. }
  25689. });
  25690. try {
  25691. if (this.screenType == 2) {
  25692. window.topU.postMessage({ allScreen: 4 }, "*");
  25693. } else if (this.screenType == 3) {
  25694. window.topU.postMessage({ allScreen: 5 }, "*");
  25695. } else if (this.screenType == 1) {
  25696. window.topU.postMessage({ allScreen: 6 }, "*");
  25697. }
  25698. } catch (error) {
  25699. console.log(error)
  25700. }
  25701. setTimeout(() => {
  25702. this.doSyncClassData();
  25703. }, 1000);
  25704. this.getCode2()
  25705. this.setOperationTime();
  25706. this.selectEva();
  25707. this.getCourseDetail(10);
  25708. this.selectCount();
  25709. this.getHomeWork();
  25710. this.selectUser();
  25711. this.getAIJ();
  25712. this.contentDialog = false;
  25713. this.setContent2(true);
  25714. if (this.tType == 4) {
  25715. this.pzDialog = true;
  25716. this.selectPz();
  25717. }
  25718. // 获取评分列表
  25719. this.getScoreList();
  25720. document.scrollingElement.scrollTop = 0;
  25721. window.addEventListener("resize", () => {
  25722. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25723. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25724. if (this.showType == 2 || this.showType == 3) {
  25725. document.getElementsByClassName("navBox")[0].style.height =
  25726. a - 40 + 0 + "px";
  25727. } else {
  25728. document.getElementsByClassName("navBox")[0].style.height =
  25729. a - 40 + "px";
  25730. }
  25731. });
  25732. // let _this = this;
  25733. // setTimeout(() => {
  25734. // _this.vedioTime = [];
  25735. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25736. // _this.vedioTime[i] = document.getElementsByClassName(
  25737. // "vjs-duration-display"
  25738. // )[i].textContent;
  25739. // }
  25740. // }, 1000);
  25741. }
  25742. };
  25743. </script>
  25744. <style scoped>
  25745. @media screen and (max-width: 1280px) {
  25746. /* .courseIndex > div:first-child(2) {
  25747. width: 15% !important;
  25748. } */
  25749. /* .navText {
  25750. width: 120px !important;
  25751. } */
  25752. .evaCss {
  25753. flex-direction: column !important;
  25754. align-items: center !important;
  25755. }
  25756. .elist_input {
  25757. width: 90% !important;
  25758. }
  25759. .dialog_diy1 >>> .el-dialog {
  25760. width: 100% !important;
  25761. }
  25762. .rightWidthCss {
  25763. width: 100% !important;
  25764. }
  25765. .dialog_diy3 >>> .el-dialog {
  25766. width: 100% !important;
  25767. }
  25768. .addToolCss {
  25769. right: 0 !important;
  25770. width: 100% !important;
  25771. min-width: unset !important;
  25772. }
  25773. }
  25774. .evaCssMax {
  25775. flex-direction: column !important;
  25776. align-items: center !important;
  25777. }
  25778. .dialog_diy >>> .el-dialog {
  25779. margin-top: 10vh !important;
  25780. }
  25781. .body_student {
  25782. width: 77%;
  25783. height: 100%;
  25784. position: absolute;
  25785. left: 22%;
  25786. top: 0;
  25787. }
  25788. .student_head {
  25789. width: 100%;
  25790. margin: 20px auto 0;
  25791. padding-bottom: 20px;
  25792. display: flex;
  25793. flex-direction: column;
  25794. flex-wrap: nowrap;
  25795. align-items: flex-start;
  25796. justify-content: flex-start;
  25797. }
  25798. .pb_left {
  25799. width: 15%;
  25800. margin-right: 10px;
  25801. background: rgb(255, 255, 255);
  25802. position: fixed;
  25803. height: calc(100% - 40px);
  25804. border-radius: 20px;
  25805. padding-bottom: 15px;
  25806. box-sizing: border-box;
  25807. }
  25808. .wheel > img,
  25809. .project > img,
  25810. .star > img,
  25811. .evaluate > img,
  25812. .up_photo > img,
  25813. .chapter_add > img,
  25814. .deleteWord > img,
  25815. .question > img,
  25816. .homework > img {
  25817. width: 100%;
  25818. height: 100%;
  25819. }
  25820. .upCover > img {
  25821. width: 131px;
  25822. height: 69px;
  25823. object-fit: cover;
  25824. }
  25825. .upCover {
  25826. width: calc(100% / 3.5);
  25827. position: relative;
  25828. margin: 0 15px 10px 0;
  25829. display: flex;
  25830. flex-direction: column;
  25831. flex-wrap: nowrap;
  25832. justify-content: center;
  25833. align-content: center;
  25834. align-items: center;
  25835. height: fit-content;
  25836. }
  25837. .upCover2 {
  25838. width: 100%;
  25839. position: relative;
  25840. margin: 0 15px 10px 0;
  25841. display: flex;
  25842. flex-direction: column;
  25843. flex-wrap: nowrap;
  25844. justify-content: center;
  25845. align-content: center;
  25846. align-items: center;
  25847. }
  25848. .upCover2 > img {
  25849. width: 100%;
  25850. height: 90px;
  25851. object-fit: contain;
  25852. }
  25853. .chapter_add {
  25854. width: 120px;
  25855. position: relative;
  25856. text-align: center;
  25857. }
  25858. .isAddThings {
  25859. margin-top: 20px;
  25860. position: relative;
  25861. text-align: center;
  25862. background: #f7f8fa;
  25863. height: 90px;
  25864. width: 90px;
  25865. display: flex;
  25866. flex-direction: column;
  25867. justify-content: center;
  25868. }
  25869. .deleteWord {
  25870. width: 22px;
  25871. height: 22px;
  25872. position: absolute;
  25873. right: -5px;
  25874. top: -5px;
  25875. cursor: pointer;
  25876. }
  25877. .box_course {
  25878. /* width: 60%; */
  25879. width: calc(100% - 300px);
  25880. }
  25881. .wheel {
  25882. width: 100%;
  25883. /* height: 100%; */
  25884. height: 650px;
  25885. }
  25886. .right_box {
  25887. display: flex;
  25888. flex-direction: column;
  25889. margin-left: 30px;
  25890. justify-content: space-around;
  25891. }
  25892. .right_box_title {
  25893. font-size: 23px;
  25894. }
  25895. .people {
  25896. display: flex;
  25897. }
  25898. .student_body {
  25899. width: 100%;
  25900. margin: 0 auto;
  25901. margin-top: 10px;
  25902. padding: 0 0 20px;
  25903. }
  25904. .study_top {
  25905. margin-top: 100px;
  25906. width: 100%;
  25907. height: auto;
  25908. padding-bottom: 20px;
  25909. margin-left: 2px;
  25910. min-height: 90%;
  25911. }
  25912. .study_top .checkbox {
  25913. display: flex;
  25914. align-items: center;
  25915. padding: 15px 0 15px 30px;
  25916. flex: 0 0 auto;
  25917. font-weight: bold;
  25918. border-bottom: 1px solid #eee;
  25919. }
  25920. .study_top .check {
  25921. padding-bottom: 5px;
  25922. text-align: center;
  25923. cursor: pointer;
  25924. height: 30px;
  25925. box-sizing: border-box;
  25926. display: flex;
  25927. }
  25928. .study_top .checked {
  25929. border-bottom: 4px solid #3fc6a0;
  25930. padding-bottom: 5px;
  25931. color: #3fc6a0;
  25932. display: flex;
  25933. height: 35px;
  25934. }
  25935. .study_top .checked > div,
  25936. .study_top .check > div {
  25937. margin-right: 5px;
  25938. }
  25939. .videoTop {
  25940. display: flex;
  25941. flex-direction: row;
  25942. justify-content: space-between;
  25943. background: #fff;
  25944. align-items: center;
  25945. width: 95%;
  25946. padding: 20px;
  25947. }
  25948. .filebox {
  25949. display: flex;
  25950. flex-wrap: wrap;
  25951. flex-direction: column;
  25952. padding: 0 0 5px;
  25953. position: relative;
  25954. }
  25955. .filebox:before {
  25956. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25957. position: absolute;
  25958. top: 20px;
  25959. left: 13px;
  25960. border-left: 2px dotted #cad1dc;
  25961. height: calc(100% - 15px);
  25962. }
  25963. .toolHeng2 > div:last-child::before {
  25964. height: calc(100% - 43px);
  25965. }
  25966. .filebox .tooldetail {
  25967. width: calc(100%);
  25968. margin: 0px 12px;
  25969. padding: 12px;
  25970. line-height: 30px;
  25971. word-break: break-word;
  25972. background: #ffffff;
  25973. border-radius: 8px 8px 8px 8px;
  25974. opacity: 1;
  25975. border: 1px solid #cad1dc;
  25976. overflow: hidden;
  25977. box-sizing: border-box;
  25978. }
  25979. .file {
  25980. display: flex;
  25981. flex-direction: column;
  25982. align-items: center;
  25983. justify-content: center;
  25984. cursor: pointer;
  25985. width: 200px;
  25986. }
  25987. .file div {
  25988. margin-top: 10px;
  25989. width: 150px;
  25990. text-align: center;
  25991. overflow: hidden;
  25992. white-space: nowrap;
  25993. text-overflow: ellipsis;
  25994. }
  25995. .media {
  25996. display: flex;
  25997. flex-direction: column;
  25998. align-items: center;
  25999. justify-content: center;
  26000. margin: 0 20px 20px 0;
  26001. cursor: pointer;
  26002. margin: 12px 0 5px 15px;
  26003. overflow: hidden;
  26004. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  26005. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  26006. box-sizing: border-box;
  26007. }
  26008. .media img {
  26009. height: 90px;
  26010. width: 160px;
  26011. object-fit: cover;
  26012. }
  26013. .media .title {
  26014. padding: 5px;
  26015. text-align: left;
  26016. width: 100%;
  26017. box-sizing: border-box;
  26018. }
  26019. .media .btn {
  26020. width: 100%;
  26021. height: 35px;
  26022. line-height: 35px;
  26023. color: #fff;
  26024. background: #606060;
  26025. text-align: center;
  26026. overflow: hidden;
  26027. white-space: nowrap;
  26028. text-overflow: ellipsis;
  26029. }
  26030. .detail_content_top {
  26031. width: 100%;
  26032. padding: 25px 0 25px 0;
  26033. }
  26034. .detail_title {
  26035. text-align: center;
  26036. font-size: 24px;
  26037. }
  26038. .detail_time {
  26039. font-size: 13px;
  26040. padding: 15px 0 0 40px;
  26041. }
  26042. .detail_content {
  26043. line-height: 2pc;
  26044. width: 90%;
  26045. margin: 0 auto;
  26046. padding-top: 30px;
  26047. text-indent: 30px;
  26048. overflow: auto;
  26049. height: 200px;
  26050. }
  26051. .score_box >>> .el-rate {
  26052. margin-left: 10px;
  26053. }
  26054. .dialog_change >>> .el-dialog {
  26055. border-radius: 5px;
  26056. }
  26057. .dialog_change >>> .el-dialog__header {
  26058. background: #f2f2f2;
  26059. text-align: center;
  26060. }
  26061. .dialog_change >>> .el-dialog__title {
  26062. line-height: 5px;
  26063. }
  26064. .dialog_change >>> .el-dialog__body {
  26065. background: #fff;
  26066. padding: 10px 20px;
  26067. }
  26068. .score_box {
  26069. display: flex;
  26070. align-items: center;
  26071. margin-bottom: 18px;
  26072. margin-top: 20px;
  26073. }
  26074. .up_photo {
  26075. width: 120px;
  26076. cursor: pointer;
  26077. margin-top: 10px;
  26078. }
  26079. .up_photo2 {
  26080. width: 180px;
  26081. box-sizing: border-box;
  26082. min-width: 180px;
  26083. height: 180px;
  26084. max-height: 180px;
  26085. min-height: 180px;
  26086. cursor: pointer;
  26087. display: flex;
  26088. flex-direction: column;
  26089. align-items: center;
  26090. justify-content: center;
  26091. background: rgb(242, 246, 255);
  26092. /* padding: 25px; */
  26093. margin-bottom: 10px;
  26094. }
  26095. .up_photo2 img {
  26096. width: 50%;
  26097. height: auto;
  26098. }
  26099. .up_photo2 span {
  26100. color: #898989;
  26101. }
  26102. .plworkBox {
  26103. display: flex;
  26104. align-items: center;
  26105. margin-top: 10px;
  26106. flex-wrap: wrap;
  26107. }
  26108. .upload_send {
  26109. margin: 30px auto 30px;
  26110. width: 60%;
  26111. background: #3681fc;
  26112. text-align: center;
  26113. height: 35px;
  26114. line-height: 35px;
  26115. color: #fff;
  26116. border-radius: 5px;
  26117. cursor: pointer;
  26118. }
  26119. .marginT {
  26120. margin-top: 20px;
  26121. }
  26122. .cd_content_steps {
  26123. display: flex;
  26124. width: 90%;
  26125. justify-content: space-around;
  26126. border-top: 1px solid #eeeeee;
  26127. }
  26128. .cd_steps_box {
  26129. display: flex;
  26130. justify-content: center;
  26131. align-items: center;
  26132. flex-direction: column;
  26133. cursor: pointer;
  26134. }
  26135. .first {
  26136. display: flex;
  26137. align-items: center;
  26138. margin: 15px 0 20px 0;
  26139. font-size: 20px;
  26140. }
  26141. .first > div:nth-child(2) {
  26142. font-size: 16px !important;
  26143. padding-left: 10px;
  26144. line-height: 26px;
  26145. box-sizing: border-box;
  26146. }
  26147. .blue_box_one {
  26148. text-align: center;
  26149. color: #fff;
  26150. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26151. border-radius: 7px;
  26152. margin: 10px;
  26153. cursor: pointer;
  26154. width: 95%;
  26155. height: 45px;
  26156. display: flex;
  26157. flex-direction: row;
  26158. justify-content: flex-start;
  26159. align-items: center;
  26160. }
  26161. .blue_box_one > div:nth-child(1) {
  26162. line-height: 30px;
  26163. margin: 0 5px 0 10px;
  26164. width: 30%;
  26165. min-width: 70px;
  26166. border-radius: 4px;
  26167. }
  26168. .blue_box_one > div:nth-child(2) {
  26169. white-space: nowrap;
  26170. text-overflow: ellipsis;
  26171. overflow: hidden;
  26172. word-break: break-all;
  26173. width: 70%;
  26174. text-align: left;
  26175. margin-right: 10px;
  26176. max-width: calc(100% - 85px);
  26177. }
  26178. .blue_box_one > div:nth-child(2):hover {
  26179. overflow: hidden;
  26180. text-overflow: ellipsis;
  26181. white-space: nowrap;
  26182. cursor: pointer;
  26183. }
  26184. .upFile {
  26185. margin: 0 auto;
  26186. width: 120px;
  26187. background: #3681fc;
  26188. color: #fff;
  26189. height: 30px;
  26190. text-align: center;
  26191. line-height: 30px;
  26192. border-radius: 5px;
  26193. font-size: 14px;
  26194. cursor: pointer;
  26195. }
  26196. .courseTitle {
  26197. width: 85%;
  26198. margin: 10px auto 26px auto;
  26199. display: flex;
  26200. flex-direction: row;
  26201. align-items: center;
  26202. justify-content: space-between;
  26203. text-align: center;
  26204. }
  26205. .courseTitle .ctitle {
  26206. font-size: 20px;
  26207. font-weight: bold;
  26208. color: #0e1e33;
  26209. white-space: nowrap;
  26210. overflow: hidden;
  26211. text-overflow: ellipsis;
  26212. }
  26213. .inviteBox {
  26214. font-size: 14px;
  26215. /* margin-top: 5px; */
  26216. color: #00000099;
  26217. text-align: center;
  26218. }
  26219. .courseTitle >>> .el-tooltip {
  26220. width: 100%;
  26221. white-space: nowrap;
  26222. overflow: hidden;
  26223. text-overflow: ellipsis;
  26224. word-break: break-word;
  26225. }
  26226. .ml {
  26227. margin-left: 20px;
  26228. color: #5b7dba;
  26229. border-left: 3px solid #5b7dba;
  26230. padding-left: 5px;
  26231. font-weight: bold;
  26232. }
  26233. .return {
  26234. width: 2rem;
  26235. height: 2rem;
  26236. cursor: pointer;
  26237. }
  26238. .return > img {
  26239. width: 100%;
  26240. height: 100%;
  26241. }
  26242. .returnBtn {
  26243. width: 86px;
  26244. height: 36px;
  26245. background: #3681fc;
  26246. border-radius: 4px;
  26247. color: #fff;
  26248. text-align: center;
  26249. line-height: 36px;
  26250. margin-right: 20px;
  26251. cursor: pointer;
  26252. font-size: 14px;
  26253. font-weight: 400;
  26254. display: flex;
  26255. flex-direction: row;
  26256. flex-wrap: nowrap;
  26257. align-items: center;
  26258. justify-content: center;
  26259. }
  26260. .reBtnIcon,
  26261. .commentIcon,
  26262. .vedioIcon,
  26263. .vedioIcon1 {
  26264. /* width: 36px; */
  26265. height: 36px;
  26266. border-radius: 4px;
  26267. position: relative;
  26268. /* background: #e0eafb; */
  26269. background: #0061ff;
  26270. cursor: pointer;
  26271. margin-right: 12px;
  26272. display: flex;
  26273. align-items: center;
  26274. padding: 0 10px;
  26275. box-sizing: border-box;
  26276. font-size: 14px;
  26277. color: #fff;
  26278. }
  26279. .reBtnIcon::before,
  26280. .commentIcon::before,
  26281. .vedioIcon::before,
  26282. .vedioIcon1::before {
  26283. content: "";
  26284. display: block;
  26285. background-size: 100% 100%;
  26286. background-repeat: no-repeat;
  26287. width: 20px;
  26288. height: 20px;
  26289. margin-right: 5px;
  26290. /* position: absolute; */
  26291. /* top: 8px;
  26292. left: 8px; */
  26293. }
  26294. .vedioIcon1 {
  26295. background: #f63564;
  26296. }
  26297. .reBtnIcon::before {
  26298. background-image: url("../../assets/icon/newIcons/refresh.png");
  26299. }
  26300. .commentIcon::before {
  26301. background-image: url("../../assets/icon/newIcons/comment.png");
  26302. }
  26303. .vedioIcon::before {
  26304. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26305. }
  26306. .vedioIcon1::before {
  26307. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26308. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26309. }
  26310. .tool {
  26311. display: flex;
  26312. flex-direction: column;
  26313. flex-wrap: nowrap;
  26314. width: 13%;
  26315. margin: 0 30px;
  26316. align-items: center;
  26317. position: relative;
  26318. padding: 10px 25px;
  26319. cursor: pointer;
  26320. }
  26321. .whiteBIcon {
  26322. width: 150px;
  26323. }
  26324. .whiteBIcon > img {
  26325. width: 100%;
  26326. height: 100%;
  26327. }
  26328. .mask {
  26329. background-color: rgba(0, 0, 0, 0);
  26330. position: fixed;
  26331. top: 0;
  26332. left: 0;
  26333. width: 100%;
  26334. height: 100%;
  26335. z-index: 20000;
  26336. display: flex;
  26337. align-items: center;
  26338. justify-content: center;
  26339. }
  26340. .progressBox {
  26341. width: 500px;
  26342. height: 180px;
  26343. background: #fff;
  26344. border-radius: 10px;
  26345. box-shadow: 0 0 6px 1px #bfbfbf;
  26346. display: flex;
  26347. align-items: center;
  26348. justify-content: center;
  26349. flex-direction: column;
  26350. position: relative;
  26351. color: #6c6c6c;
  26352. }
  26353. .progressBox >>> .el-progress-bar__outer {
  26354. background-color: #d1dfff !important;
  26355. }
  26356. .progressBox .lbox {
  26357. height: 50px;
  26358. font-size: 19px;
  26359. display: flex;
  26360. align-items: center;
  26361. color: #747474;
  26362. }
  26363. .progressBox .lbox img {
  26364. width: 40px;
  26365. margin-right: 20px;
  26366. }
  26367. .closeCss {
  26368. position: absolute;
  26369. top: 8px;
  26370. right: 8px;
  26371. cursor: pointer;
  26372. width: 20px;
  26373. height: 20px;
  26374. }
  26375. .closeCss > img {
  26376. width: 100%;
  26377. height: 100%;
  26378. }
  26379. .uploadVedio {
  26380. display: flex;
  26381. flex-direction: column;
  26382. flex-wrap: nowrap;
  26383. justify-content: center;
  26384. align-items: center;
  26385. margin: 0 15px 10px 0;
  26386. }
  26387. .uploadVedio > img {
  26388. width: 30px;
  26389. height: 30px;
  26390. }
  26391. .uploadVedio > span {
  26392. white-space: nowrap;
  26393. overflow: hidden;
  26394. text-overflow: ellipsis;
  26395. width: 75px;
  26396. margin-top: 7px;
  26397. }
  26398. .picName {
  26399. white-space: nowrap;
  26400. overflow: hidden;
  26401. text-overflow: ellipsis;
  26402. width: 75px;
  26403. margin-top: 7px;
  26404. }
  26405. .new_top {
  26406. display: flex;
  26407. background: #fff;
  26408. flex-direction: row;
  26409. justify-content: flex-start;
  26410. align-items: center;
  26411. height: 60px;
  26412. position: fixed;
  26413. top: 20px;
  26414. left: 22%;
  26415. width: 77%;
  26416. z-index: 999;
  26417. border-radius: 12px 12px 0 0;
  26418. border-bottom: 1px solid #cad1dc;
  26419. padding: 10px 0;
  26420. }
  26421. .new_topFixed {
  26422. width: 100%;
  26423. height: 40px;
  26424. position: fixed;
  26425. top: 0px;
  26426. display: block;
  26427. background: #f2f2f2;
  26428. z-index: 998;
  26429. }
  26430. .before {
  26431. position: absolute;
  26432. background: #c3dad4;
  26433. width: 6px;
  26434. height: 100%;
  26435. }
  26436. .courseIndex {
  26437. display: flex;
  26438. flex-direction: row;
  26439. align-items: center;
  26440. width: calc(100% - 745px);
  26441. }
  26442. .courseIndex > div:nth-child(1) {
  26443. margin: 0 0 0 10px;
  26444. font-size: 20px;
  26445. min-width: 100px;
  26446. font-weight: bold;
  26447. border-left: 4px solid #3363b9;
  26448. height: 32px;
  26449. text-align: center;
  26450. line-height: 35px;
  26451. }
  26452. .courseIndex > div:nth-child(2) {
  26453. font-size: 20px;
  26454. /* width: 300px; */
  26455. max-width: calc(100% - 105px);
  26456. white-space: nowrap;
  26457. overflow: hidden;
  26458. text-overflow: ellipsis;
  26459. }
  26460. .courseIndex > div:nth-child(3) {
  26461. border-bottom: 1px solid #d7d7d7;
  26462. padding-bottom: 5px;
  26463. background: #3681fc;
  26464. width: 55px;
  26465. min-width: 55px;
  26466. border-radius: 5px;
  26467. color: #fff;
  26468. text-align: center;
  26469. height: 20px;
  26470. line-height: 26px;
  26471. font-size: 14px;
  26472. margin: 0 0 0 10px;
  26473. }
  26474. .course_text {
  26475. padding: 20px 0 0 15px;
  26476. text-indent: 30px;
  26477. width: 80%;
  26478. min-height: 20px;
  26479. }
  26480. .vedioList {
  26481. background: #f2f2f2;
  26482. border: 1px solid #ececec;
  26483. /* width: 38.8%; */
  26484. /* width: 300px; */
  26485. width: 100%;
  26486. height: 445px;
  26487. border-radius: 10px;
  26488. overflow: hidden;
  26489. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26490. }
  26491. .vedioNav {
  26492. margin: 10px 0 0 15px;
  26493. border-bottom: 1px solid #d7d7d7;
  26494. padding-bottom: 5px;
  26495. background: #3681fc;
  26496. width: 55px;
  26497. min-width: 55px;
  26498. border-radius: 5px;
  26499. color: #fff;
  26500. text-align: center;
  26501. height: 20px;
  26502. line-height: 26px;
  26503. font-size: 14px;
  26504. }
  26505. .queTop {
  26506. display: flex;
  26507. padding: 20px 0 20px 30px;
  26508. width: 100%;
  26509. flex-direction: row;
  26510. justify-content: flex-start;
  26511. align-items: center;
  26512. box-sizing: border-box;
  26513. }
  26514. .queTopTitle {
  26515. display: flex;
  26516. flex-direction: row;
  26517. flex-wrap: nowrap;
  26518. align-items: center;
  26519. font-weight: bold;
  26520. font-size: 20px;
  26521. color: rgb(14, 30, 51);
  26522. }
  26523. .queTopTitle::before {
  26524. content: "";
  26525. width: 2px;
  26526. height: 22px;
  26527. background: #3681fc;
  26528. border-radius: 3px;
  26529. display: block;
  26530. margin: 2px 6px 0 0;
  26531. }
  26532. .queTopRight {
  26533. display: flex;
  26534. flex-direction: row;
  26535. flex-wrap: nowrap;
  26536. align-items: center;
  26537. }
  26538. .queTopClose {
  26539. margin-right: 20px;
  26540. cursor: pointer;
  26541. position: relative;
  26542. display: flex;
  26543. }
  26544. .closeImg,
  26545. .openImg {
  26546. width: 25px;
  26547. height: 25px;
  26548. position: absolute;
  26549. left: -20px;
  26550. top: -1px;
  26551. }
  26552. .closeImg > img,
  26553. .openImg > img {
  26554. width: 100%;
  26555. height: 100%;
  26556. }
  26557. .question {
  26558. width: 40px;
  26559. flex-shrink: 0;
  26560. margin-right: 10px;
  26561. margin-top: 7px;
  26562. }
  26563. .queTitle {
  26564. margin-left: 5px;
  26565. font-size: 25px;
  26566. display: flex;
  26567. align-items: center;
  26568. }
  26569. .queTitle > div:nth-child(1){
  26570. width: 120px;
  26571. flex-shrink: 0;
  26572. }
  26573. .addEditor {
  26574. width: 100px;
  26575. height: 30px;
  26576. background: #42cda6;
  26577. color: #fff;
  26578. border-radius: 5px;
  26579. text-align: center;
  26580. line-height: 30px;
  26581. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26582. cursor: pointer;
  26583. }
  26584. /* .vedioName {
  26585. cursor: pointer;
  26586. margin: 0px 0px 10px 5px;
  26587. white-space: nowrap;
  26588. overflow: hidden;
  26589. text-overflow: ellipsis;
  26590. width: 100%;
  26591. } */
  26592. .vedioTime {
  26593. width: 35px;
  26594. position: absolute;
  26595. color: #fff;
  26596. bottom: 0px;
  26597. right: 0px;
  26598. text-align: center;
  26599. background: #46411f;
  26600. height: 20px;
  26601. font-size: 14px;
  26602. line-height: 20px;
  26603. }
  26604. .homework {
  26605. width: 200px;
  26606. display: flex;
  26607. flex-direction: column;
  26608. flex-wrap: nowrap;
  26609. align-items: center;
  26610. cursor: pointer;
  26611. }
  26612. .homebox {
  26613. display: flex;
  26614. flex-wrap: wrap;
  26615. flex-direction: row;
  26616. justify-content: flex-start;
  26617. align-items: center;
  26618. padding: 15px 0;
  26619. }
  26620. .isChooseActive {
  26621. color: #3681fc !important;
  26622. font-weight: bold !important;
  26623. }
  26624. .chooseWho {
  26625. display: flex;
  26626. width: 100%;
  26627. flex-direction: row;
  26628. flex-wrap: nowrap;
  26629. justify-content: flex-start;
  26630. padding-bottom: 10px;
  26631. }
  26632. .chooseWho > div {
  26633. cursor: pointer;
  26634. padding-bottom: 10px;
  26635. margin: 0 30px 0 0;
  26636. font-weight: 400;
  26637. color: #0e1e33;
  26638. }
  26639. .addPoint > div > img {
  26640. cursor: pointer;
  26641. width: 85px;
  26642. border-radius: 15px;
  26643. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26644. }
  26645. .addPoint > div {
  26646. display: flex;
  26647. width: 85px;
  26648. flex-direction: column;
  26649. flex-wrap: nowrap;
  26650. align-items: center;
  26651. }
  26652. .isBorder > div {
  26653. margin: 0 0 10px 0;
  26654. align-items: flex-start !important;
  26655. }
  26656. .noiframeBox {
  26657. display: flex;
  26658. flex-wrap: wrap;
  26659. }
  26660. .iframeBox iframe {
  26661. width: 100%;
  26662. height: 800px;
  26663. border: none;
  26664. margin-bottom: 20px;
  26665. border: 1px solid #ccc;
  26666. }
  26667. .upload_toolBtn {
  26668. background: #3681fc;
  26669. color: #fff;
  26670. width: 110px;
  26671. text-align: center;
  26672. height: 35px;
  26673. line-height: 35px;
  26674. font-size: 14px;
  26675. border-radius: 5px;
  26676. cursor: pointer;
  26677. position: absolute;
  26678. right: 10px;
  26679. bottom: 0;
  26680. }
  26681. .binfo_input,
  26682. .pj {
  26683. font: inherit;
  26684. color: currentColor;
  26685. width: 100%;
  26686. margin: 0;
  26687. padding: 15px 14px;
  26688. display: block;
  26689. min-width: 0;
  26690. outline: none;
  26691. box-sizing: content-box;
  26692. background: none;
  26693. -webkit-tap-highlight-color: transparent;
  26694. border: 1px solid rgba(0, 0, 0, 0.23);
  26695. border-radius: 4px;
  26696. box-sizing: border-box;
  26697. resize: none;
  26698. }
  26699. .binfo_input:focus-visible {
  26700. border: 1px solid rgba(61, 103, 188);
  26701. }
  26702. .dialog_diyCopy >>> .el-dialog__header {
  26703. display: none !important;
  26704. }
  26705. .dialog_diyCopy >>> .el-dialog__body {
  26706. padding: 0 !important;
  26707. height: 100% !important;
  26708. }
  26709. .confirmOpenDigCss > div{
  26710. font-size: 14px;
  26711. color: rgba(0, 0, 0, 0.6);
  26712. }
  26713. .confirmOpenDigCss >>> .el-dialog{
  26714. border-radius: 6px;
  26715. }
  26716. .confirmOpenDigCss >>> .el-dialog__body{
  26717. padding: 25px !important;
  26718. }
  26719. .confirmOpenDigCss > span{
  26720. font-size: 16px;
  26721. font-weight: 600;
  26722. color: rgba(0, 0, 0, 0.8);
  26723. }
  26724. .dialog_diy >>> .el-dialog__header,
  26725. .dialog_diy1 >>> .el-dialog__header {
  26726. background: #454545 !important;
  26727. padding: 15px 20px;
  26728. }
  26729. .dialog_diy >>> .el-dialog__title,
  26730. .dialog_diy1 >>> .el-dialog__title {
  26731. color: #fff;
  26732. }
  26733. .dialog_diy >>> .el-dialog__headerbtn,
  26734. .dialog_diy1 >>> .el-dialog__headerbtn {
  26735. top: 19px;
  26736. }
  26737. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26738. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26739. color: #fff;
  26740. }
  26741. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26742. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26743. color: #fff;
  26744. }
  26745. .dialog_diy1 >>> .el-dialog__body {
  26746. padding: 0;
  26747. }
  26748. .dialog_diy >>> .el-dialog__body,
  26749. .dialog_diy >>> .el-dialog__footer,
  26750. .dialog_diy1 >>> .el-dialog__footer {
  26751. background: #fafafa;
  26752. }
  26753. .markScore_diy >>> .el-dialog {
  26754. border-radius: 10px;
  26755. }
  26756. .markScore_diy >>> .el-dialog__body {
  26757. padding: 0;
  26758. height: 621px;
  26759. min-height: calc(100% - 60px);
  26760. }
  26761. .markScore_diy >>> .el-dialog__header {
  26762. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26763. }
  26764. .markScore_diy >>> .markScore_diyTit {
  26765. width: calc(100% - 60px);
  26766. display: flex;
  26767. justify-content: space-between;
  26768. align-items: center;
  26769. }
  26770. .a_addBox {
  26771. padding: 0 0 0 15px;
  26772. }
  26773. .a_add_box {
  26774. padding: 10px;
  26775. background: #fff;
  26776. margin-bottom: 10px;
  26777. border-radius: 5px;
  26778. box-shadow: 0 0 5px 0 #d5d5d5;
  26779. }
  26780. .a_add_head {
  26781. display: flex;
  26782. align-items: flex-start;
  26783. /* justify-content: space-between; */
  26784. flex-direction: column;
  26785. /* flex-direction: row; */
  26786. margin: 10px 0 20px 0;
  26787. font-size: 18px;
  26788. width: 100%;
  26789. }
  26790. .askIndex {
  26791. background: #3681fc;
  26792. border-radius: 50%;
  26793. color: #fff;
  26794. width: 25px;
  26795. height: 25px;
  26796. min-width: 25px;
  26797. min-height: 25px;
  26798. text-align: center;
  26799. line-height: 25px;
  26800. margin-right: 5px;
  26801. }
  26802. .a_add_head .a_add_head_input {
  26803. width: 300px;
  26804. }
  26805. .a_add_head .a_add_head_div {
  26806. display: flex;
  26807. align-items: center;
  26808. justify-content: space-between;
  26809. }
  26810. .a_add_body {
  26811. display: flex;
  26812. align-items: center;
  26813. }
  26814. .a_add_input {
  26815. display: flex;
  26816. align-items: center;
  26817. flex-wrap: wrap;
  26818. width: 100%;
  26819. }
  26820. .a_add_input >>> .el-radio-group,
  26821. .a_add_input >>> .el-checkbox-group {
  26822. width: 100%;
  26823. }
  26824. .a_add_input >>> .el-radio,
  26825. .a_add_input >>> .el-checkbox {
  26826. display: flex;
  26827. flex-direction: row;
  26828. flex-wrap: nowrap;
  26829. align-items: center;
  26830. padding: 15px 0;
  26831. }
  26832. .a_add_input >>> .el-radio:not(:last-child),
  26833. .a_add_input >>> .el-checkbox:not(:last-child) {
  26834. width: 100%;
  26835. border-bottom: 1px solid #efefef;
  26836. }
  26837. .redioStyle >>> .el-radio__label {
  26838. font-size: 18px;
  26839. }
  26840. .redioStyle >>> .el-radio__label > span,
  26841. .redioStyle >>> .el-checkbox__label > span {
  26842. word-break: break-all;
  26843. white-space: normal;
  26844. }
  26845. .redioStyle >>> .el-checkbox__label {
  26846. font-size: 18px;
  26847. }
  26848. .toolHeng2 {
  26849. width: 100%;
  26850. padding-left: 15px;
  26851. box-sizing: border-box;
  26852. }
  26853. .workNav {
  26854. font-size: 20px;
  26855. font-weight: bold;
  26856. color: #0e1e33;
  26857. display: flex;
  26858. flex-direction: row;
  26859. flex-wrap: nowrap;
  26860. align-items: center;
  26861. padding: 15px 0 15px 0;
  26862. }
  26863. .workNav::before {
  26864. content: "";
  26865. width: 2px;
  26866. height: 22px;
  26867. background: #3681fc;
  26868. border-radius: 3px;
  26869. display: block;
  26870. margin: 2px 6px 0 0;
  26871. }
  26872. .toolHeng {
  26873. display: flex;
  26874. flex-direction: row;
  26875. flex-wrap: wrap;
  26876. justify-content: flex-start;
  26877. align-items: center;
  26878. width: 100%;
  26879. }
  26880. .toolHeng > div {
  26881. padding-left: 20px;
  26882. }
  26883. .isWidth {
  26884. width: 20%;
  26885. }
  26886. .textTitle {
  26887. display: flex;
  26888. flex-direction: row;
  26889. flex-wrap: nowrap;
  26890. align-items: center;
  26891. width: 95%;
  26892. }
  26893. .textTitle >>> .el-form-item__label {
  26894. font-size: 22px;
  26895. color: #918f8f;
  26896. width: 100px;
  26897. }
  26898. .textTitle >>> .el-form-item__content {
  26899. width: calc(100% - 100px);
  26900. }
  26901. .textCss >>> .el-dialog {
  26902. width: 800px !important;
  26903. height: 400px;
  26904. background: #fafafa;
  26905. }
  26906. .textCss >>> .el-dialog__body {
  26907. margin: 55px 8% 0 8%;
  26908. padding: 0 !important;
  26909. }
  26910. .textCss >>> .el-dialog__footer {
  26911. padding-top: 38px;
  26912. }
  26913. .toolsCss >>> .el-dialog__body {
  26914. padding: 20px;
  26915. }
  26916. .lineCss >>> .el-dialog__body {
  26917. display: flex;
  26918. flex-direction: row;
  26919. align-items: center;
  26920. justify-content: center;
  26921. }
  26922. .newNav {
  26923. display: flex;
  26924. flex-direction: row;
  26925. align-items: baseline;
  26926. justify-content: flex-start;
  26927. }
  26928. .navListItem {
  26929. width: calc(100% - 20px);
  26930. height: 50px;
  26931. margin: 0px auto 10px;
  26932. display: flex;
  26933. flex-direction: row;
  26934. flex-wrap: nowrap;
  26935. align-items: center;
  26936. justify-content: space-between;
  26937. background: #f0f4fa;
  26938. border-radius: 6px 6px 6px 6px;
  26939. }
  26940. .navText {
  26941. cursor: pointer;
  26942. white-space: nowrap;
  26943. overflow: hidden;
  26944. text-overflow: ellipsis;
  26945. width: 220px;
  26946. padding: 0 10px;
  26947. font-weight: 400;
  26948. color: #0e1e33;
  26949. }
  26950. .downIcon {
  26951. width: 20px;
  26952. min-width: 20px;
  26953. height: 20px;
  26954. margin-right: 15px;
  26955. cursor: pointer;
  26956. }
  26957. .downIcon > img {
  26958. width: 100%;
  26959. height: 100%;
  26960. }
  26961. .noVedio {
  26962. display: flex;
  26963. flex-direction: row;
  26964. justify-content: center;
  26965. align-content: center;
  26966. }
  26967. .noNavText {
  26968. cursor: pointer;
  26969. margin: 0px 0px 10px 5px;
  26970. width: 112px;
  26971. }
  26972. .listNoVedio {
  26973. margin: 0 0 0 30px;
  26974. width: 97%;
  26975. }
  26976. .video-player >>> .video-js {
  26977. height: 100%;
  26978. }
  26979. .hangVedioList {
  26980. width: 90% !important;
  26981. height: 150px !important;
  26982. margin: 20px 0 0 30px;
  26983. }
  26984. .hangVedio {
  26985. width: 100%;
  26986. height: 170px !important;
  26987. align-items: flex-start !important;
  26988. }
  26989. .hangHand {
  26990. height: 150px !important;
  26991. }
  26992. .twoChild {
  26993. width: 95%;
  26994. margin: 10px;
  26995. border-radius: 5px;
  26996. background: #f2f2f2;
  26997. display: flex;
  26998. flex-direction: column;
  26999. flex-wrap: nowrap;
  27000. justify-content: flex-start;
  27001. align-items: flex-start;
  27002. transition: all 0.5s;
  27003. overflow: hidden;
  27004. height: 0;
  27005. background: #e7f3ff;
  27006. }
  27007. .twoChild > div:nth-child(1) {
  27008. margin-top: 5px;
  27009. }
  27010. .navChild {
  27011. width: 100%;
  27012. cursor: pointer;
  27013. margin-bottom: 10px;
  27014. position: relative;
  27015. }
  27016. .navChild img {
  27017. position: absolute;
  27018. right: 11px;
  27019. width: 15px;
  27020. top: 50%;
  27021. transform: translateY(-50%);
  27022. }
  27023. .navActive,
  27024. .toolActive {
  27025. height: auto !important;
  27026. overflow: auto !important;
  27027. /* // padding-bottom: 16px; */
  27028. }
  27029. .toolActive {
  27030. padding: 0;
  27031. }
  27032. .navTask {
  27033. display: flex;
  27034. flex-direction: row;
  27035. flex-wrap: nowrap;
  27036. align-items: center;
  27037. align-content: flex-start;
  27038. height: 40px;
  27039. justify-content: flex-start;
  27040. padding: 0 10px;
  27041. width: 100%;
  27042. box-sizing: border-box;
  27043. }
  27044. .navTaskname {
  27045. white-space: nowrap;
  27046. text-overflow: ellipsis;
  27047. overflow: hidden;
  27048. word-break: break-all;
  27049. padding-left: 5px;
  27050. }
  27051. .openTaskActive {
  27052. /* background-color: #e0eafb !important;
  27053. color: #0061ff; */
  27054. color: #fff;
  27055. background: rgb(55, 129, 252) !important;
  27056. }
  27057. .iframeName {
  27058. margin: 5px 0;
  27059. border-left: 4px solid #41c4a4;
  27060. padding-left: 4px;
  27061. }
  27062. .toolTitle {
  27063. margin: 0px 0px 20px;
  27064. font-size: 20px;
  27065. font-weight: 500;
  27066. border-left: 4px solid #41c4a4;
  27067. padding-left: 4px;
  27068. }
  27069. .cru_selectBox {
  27070. overflow: auto;
  27071. width: 95%;
  27072. margin: 17px auto 0;
  27073. height: calc(100% - 40px - 21px - 20px - 17px);
  27074. background: #fff;
  27075. border-radius: 8px;
  27076. }
  27077. .cru_selectBox::-webkit-scrollbar,
  27078. .study_top::-webkit-scrollbar,
  27079. .textContent::-webkit-scrollbar {
  27080. /*滚动条整体样式*/
  27081. width: 6px;
  27082. /*高宽分别对应横竖滚动条的尺寸*/
  27083. height: 6px;
  27084. }
  27085. /*定义滚动条轨道 内阴影+圆角*/
  27086. .cru_selectBox::-webkit-scrollbar-track,
  27087. .study_top::-webkit-scrollbar-track,
  27088. .textContent::-webkit-scrollbar {
  27089. border-radius: 10px;
  27090. background-color: #b8bdc9;
  27091. }
  27092. /*定义滑块 内阴影+圆角*/
  27093. .cru_selectBox::-webkit-scrollbar-thumb,
  27094. .study_top::-webkit-scrollbar-thumb,
  27095. .textContent::-webkit-scrollbar-thumb {
  27096. border-radius: 10px;
  27097. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27098. background-color: #2c5ab3;
  27099. }
  27100. .vedioBox {
  27101. border-radius: 0 0 20px 20px;
  27102. background: #fff;
  27103. overflow: auto;
  27104. }
  27105. .taskBox {
  27106. width: 98%;
  27107. background: #f0f4fa;
  27108. margin: 10px auto;
  27109. padding: 0 10px;
  27110. border-radius: 4px;
  27111. box-sizing: border-box;
  27112. }
  27113. .vedioTaskBox {
  27114. width: 100%;
  27115. display: flex;
  27116. flex-direction: row;
  27117. flex-wrap: nowrap;
  27118. align-items: flex-start;
  27119. position: relative;
  27120. }
  27121. .toolBox {
  27122. margin: 15px 0 0 25px;
  27123. display: flex;
  27124. position: relative;
  27125. padding: 18px 20px;
  27126. border-top-left-radius: 5px;
  27127. border-top-right-radius: 5px;
  27128. width: 90%;
  27129. }
  27130. .btnAll {
  27131. position: absolute;
  27132. right: 0;
  27133. display: flex;
  27134. flex-direction: row;
  27135. flex-wrap: nowrap;
  27136. align-items: center;
  27137. }
  27138. .btnLeft,
  27139. .btnRight {
  27140. display: flex;
  27141. flex-direction: row;
  27142. flex-wrap: nowrap;
  27143. align-items: center;
  27144. padding: 5px 0;
  27145. }
  27146. .btnLeft {
  27147. border-right: 1px solid #cad1dc;
  27148. }
  27149. .btnLeft > .custom-tooltip {
  27150. background: #3681fc;
  27151. color: #fff;
  27152. }
  27153. .last:hover {
  27154. background: #3383fa !important;
  27155. color: #fff;
  27156. border: 1px solid #3383fa !important;
  27157. }
  27158. .last,
  27159. .returnBtn1 {
  27160. width: 90px;
  27161. height: 36px;
  27162. background: #ffffff;
  27163. border-radius: 4px;
  27164. border: 1px solid #0061ff;
  27165. color: #0061ff;
  27166. cursor: pointer;
  27167. display: flex;
  27168. flex-direction: row;
  27169. flex-wrap: nowrap;
  27170. align-items: center;
  27171. justify-content: center;
  27172. margin-left: 12px;
  27173. }
  27174. .returnBtn1 {
  27175. background: #f0f4fa;
  27176. border-radius: 4px;
  27177. border: 1px solid #cad1dc;
  27178. margin: 0 12px;
  27179. }
  27180. .lastImg {
  27181. min-width: 15px;
  27182. width: 15px;
  27183. height: 15px;
  27184. display: flex;
  27185. }
  27186. .lastText {
  27187. padding: 0 5px 0 5px;
  27188. box-sizing: border-box;
  27189. font-size: 14px;
  27190. }
  27191. .lastImg > img {
  27192. width: 100%;
  27193. height: 100%;
  27194. }
  27195. /* .vedioTimeBox {
  27196. display: flex;
  27197. flex-direction: row;
  27198. align-items: center;
  27199. flex-wrap: nowrap;
  27200. position: relative;
  27201. } */
  27202. .navBox {
  27203. background: #fff;
  27204. height: calc(100% - 40px);
  27205. overflow-y: auto;
  27206. overflow-x: hidden;
  27207. }
  27208. .worksBox {
  27209. margin: 0 0 10px 25px;
  27210. border-bottom: 1px solid #eeeeee;
  27211. padding: 18px 20px;
  27212. border-radius: 4px;
  27213. width: 90%;
  27214. }
  27215. .worksBTitle {
  27216. font-size: 20px;
  27217. padding-bottom: 15px;
  27218. border-bottom: 1px solid #eeeeee;
  27219. display: flex;
  27220. align-items: center;
  27221. }
  27222. .greenBox {
  27223. width: 5px;
  27224. height: 30px;
  27225. background: #63b6fa;
  27226. margin-right: 5px;
  27227. }
  27228. .worksDetailBox {
  27229. display: flex;
  27230. width: 100%;
  27231. flex-direction: row;
  27232. flex-wrap: wrap;
  27233. align-items: flex-end;
  27234. justify-content: flex-start;
  27235. padding: 15px 5px;
  27236. box-sizing: border-box;
  27237. }
  27238. .works {
  27239. display: flex;
  27240. flex-direction: column;
  27241. flex-wrap: nowrap;
  27242. align-items: flex-start;
  27243. justify-content: flex-start;
  27244. align-content: center;
  27245. max-width: 240px;
  27246. width: calc(100% / 3 - 10px);
  27247. height: auto;
  27248. margin-right: 10px;
  27249. margin-bottom: 10px;
  27250. overflow: hidden;
  27251. height: 140px;
  27252. box-shadow: 0 0 6px 1px #dfdada;
  27253. border-radius: 15px;
  27254. }
  27255. .workImg {
  27256. width: 100%;
  27257. /* height: calc(100% - 40px); */
  27258. height: 105px;
  27259. position: relative;
  27260. }
  27261. .workImg > img {
  27262. width: 100%;
  27263. height: 100%;
  27264. object-fit: contain;
  27265. cursor: pointer;
  27266. }
  27267. .worksName {
  27268. height: 40px;
  27269. line-height: 40px;
  27270. display: flex;
  27271. width: 100%;
  27272. flex-direction: row;
  27273. flex-wrap: nowrap;
  27274. justify-content: space-between;
  27275. align-items: center;
  27276. margin: 0 0 0 10px;
  27277. }
  27278. .worksName > div:nth-child(1) {
  27279. width: 110px;
  27280. white-space: nowrap;
  27281. overflow: hidden;
  27282. text-overflow: ellipsis;
  27283. }
  27284. .worksName > div:nth-child(2) {
  27285. color: #b7b4b5;
  27286. }
  27287. .noWorksS {
  27288. padding: 15px 0;
  27289. display: flex;
  27290. flex-direction: row;
  27291. flex-wrap: wrap;
  27292. align-items: center;
  27293. justify-content: flex-start;
  27294. }
  27295. .noWorksName,
  27296. .isWorksName,
  27297. .isWorksName2 {
  27298. background: #ddebf8;
  27299. color: #000;
  27300. width: 90px;
  27301. height: 25px;
  27302. text-align: center;
  27303. line-height: 25px;
  27304. border-radius: 4px;
  27305. margin: 10px 15px 10px 0;
  27306. white-space: nowrap;
  27307. overflow: hidden;
  27308. padding: 5px;
  27309. text-overflow: ellipsis;
  27310. cursor: pointer;
  27311. border: 1px solid #ddebf8;
  27312. }
  27313. .noWorksName {
  27314. background: #fff;
  27315. color: #0061ff;
  27316. border: 1px solid #0061ff;
  27317. }
  27318. .noWorksName > span {
  27319. max-width: 100%;
  27320. display: block;
  27321. overflow: hidden;
  27322. text-overflow: ellipsis;
  27323. white-space: nowrap;
  27324. }
  27325. .noWorksName2 {
  27326. background: #fff;
  27327. color: #0061ff;
  27328. width: 90px;
  27329. height: 25px;
  27330. text-align: center;
  27331. line-height: 25px;
  27332. border-radius: 4px;
  27333. margin: 10px 15px 10px 0;
  27334. white-space: nowrap;
  27335. overflow: hidden;
  27336. padding: 5px;
  27337. text-overflow: ellipsis;
  27338. cursor: pointer;
  27339. border: 1px solid #0061ff;
  27340. }
  27341. .noWorksName2 > span {
  27342. max-width: 100%;
  27343. display: block;
  27344. overflow: hidden;
  27345. text-overflow: ellipsis;
  27346. white-space: nowrap;
  27347. }
  27348. .isWorksName2 {
  27349. width: 100px;
  27350. height: 40px;
  27351. line-height: 40px;
  27352. position: relative;
  27353. background: #dae6f9;
  27354. }
  27355. .isWorksName {
  27356. background: #e7ebf1 !important;
  27357. width: 100px;
  27358. height: 40px;
  27359. line-height: 40px;
  27360. position: relative;
  27361. color: #acb4bf;
  27362. border: 1px solid #cad1dc !important;
  27363. }
  27364. .isSelectName,
  27365. .noWorksName:hover {
  27366. background: #3383fa !important;
  27367. color: #fff !important;
  27368. border: 1px solid #3383fa !important;
  27369. }
  27370. .title {
  27371. background: #1e5cc9;
  27372. /* width: 98%; */
  27373. height: 45px;
  27374. color: #fff;
  27375. line-height: 45px;
  27376. padding-left: 20px;
  27377. box-sizing: border-box;
  27378. }
  27379. .textBox {
  27380. font-size: 20px;
  27381. width: 90%;
  27382. display: flex;
  27383. flex-direction: column;
  27384. align-items: center;
  27385. margin: 20px auto 0;
  27386. max-height: calc(100% - 75px);
  27387. overflow: auto;
  27388. }
  27389. .textContent {
  27390. font-size: 18px;
  27391. width: 95%;
  27392. max-width: 95%;
  27393. }
  27394. .answerBg {
  27395. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27396. background-size: 100% 100%;
  27397. width: 100%;
  27398. height: 100%;
  27399. color: #fff;
  27400. text-align: center;
  27401. display: flex;
  27402. flex-direction: column;
  27403. flex-wrap: nowrap;
  27404. align-items: center;
  27405. position: relative;
  27406. justify-content: center;
  27407. }
  27408. /* .answerBg > div:nth-child(1) { */
  27409. /* font-size: 22px;
  27410. padding: 25px 0 10px; */
  27411. /* } */
  27412. .answerContent {
  27413. width: 215px;
  27414. max-height: 60px;
  27415. word-break: break-all;
  27416. text-align: center;
  27417. /* white-space: nowrap; */
  27418. overflow: hidden;
  27419. text-overflow: ellipsis;
  27420. /* padding: 23px 0 0; */
  27421. -webkit-line-clamp: 3;
  27422. -webkit-box-orient: vertical;
  27423. display: -webkit-box;
  27424. font-size: 15px;
  27425. cursor: pointer;
  27426. }
  27427. .elist_input_box {
  27428. display: flex;
  27429. align-items: flex-start;
  27430. flex-wrap: nowrap;
  27431. padding: 10px 0 15px 30px;
  27432. flex-direction: column;
  27433. }
  27434. .elist_input {
  27435. /* width: 40%; */
  27436. width: 45%;
  27437. padding: 20px;
  27438. /* margin: 20px; */
  27439. box-sizing: border-box;
  27440. }
  27441. .elist_input .elist_input_box input {
  27442. font: inherit;
  27443. color: currentColor;
  27444. width: 200px;
  27445. padding: 8px 14px;
  27446. display: block;
  27447. min-width: 0;
  27448. outline: none;
  27449. border: 1px solid rgba(0, 0, 0, 0.23);
  27450. border-radius: 4px;
  27451. box-sizing: border-box;
  27452. background: #fff;
  27453. margin: 0 20px 0 0;
  27454. }
  27455. .elist_input .elist_input_box span {
  27456. height: 36px;
  27457. line-height: 36px;
  27458. color: rgb(82, 82, 82);
  27459. }
  27460. .elist_input .elist_input_box .remove {
  27461. height: 20px;
  27462. width: 20px;
  27463. background-size: 100% 100%;
  27464. background-position: unset;
  27465. margin-left: 5px;
  27466. }
  27467. .elist_input_box >>> .el-rate {
  27468. display: flex;
  27469. height: 36px;
  27470. align-items: center;
  27471. }
  27472. .elist_input_box .elist_inptu_text {
  27473. min-height: 50px;
  27474. /* width: 500px;
  27475. max-height: 150px; */
  27476. width: 100%;
  27477. line-height: 50px;
  27478. color: rgb(82, 82, 82);
  27479. overflow: auto;
  27480. text-indent: 5px;
  27481. background: #f7f6f9;
  27482. border-radius: 10px;
  27483. }
  27484. .elist_input_box .elist_inptu_text input {
  27485. width: 500px;
  27486. }
  27487. .elist_input_box >>> .el-rate__icon {
  27488. font-size: 24px;
  27489. }
  27490. .isClick {
  27491. background: #4d9def;
  27492. }
  27493. .bzBox {
  27494. display: flex;
  27495. flex-direction: row;
  27496. align-items: center;
  27497. }
  27498. .bzBox .yCss {
  27499. width: 7px;
  27500. height: 7px;
  27501. background: #fff;
  27502. margin: 0 16px 0 6px;
  27503. border-radius: 50%;
  27504. border: 5px solid #3681fc;
  27505. z-index: 99;
  27506. }
  27507. .bzBox > div:nth-child(2) {
  27508. font-size: 18px;
  27509. font-weight: bold;
  27510. color: #0e1e33;
  27511. }
  27512. .navTitile {
  27513. padding: 0 0px 0 15px;
  27514. font-size: 16px;
  27515. font-weight: bold;
  27516. color: #0e1e33;
  27517. height: 40px;
  27518. line-height: 40px;
  27519. }
  27520. .isTypeOne {
  27521. width: 240px;
  27522. height: 170px;
  27523. /* border: 1px solid #f8f8f8; */
  27524. border-radius: 10px;
  27525. box-shadow: 0 0 6px 1px #dfdada;
  27526. }
  27527. .e_add_top {
  27528. display: flex;
  27529. justify-content: space-between;
  27530. padding: 10px 20px;
  27531. border-radius: 3px;
  27532. background: #fff;
  27533. }
  27534. .e_add_title2 {
  27535. display: flex;
  27536. align-items: center;
  27537. }
  27538. .e_add_title2 span {
  27539. width: 40px;
  27540. }
  27541. .e_add_title {
  27542. display: flex;
  27543. align-items: center;
  27544. color: #b8b8b8;
  27545. font-size: 18px;
  27546. position: relative;
  27547. height: 40px;
  27548. }
  27549. .e_add_title span {
  27550. margin-right: 10px;
  27551. }
  27552. .e_add_title .el_input {
  27553. width: 300px;
  27554. }
  27555. .e_add_title >>> .el-input__inner {
  27556. width: 400px;
  27557. }
  27558. /* .e_add_btn {
  27559. } */
  27560. .e_add_content {
  27561. display: flex;
  27562. width: 100%;
  27563. max-width: 650px;
  27564. height: 550px;
  27565. }
  27566. .e_add_list {
  27567. background: #fff;
  27568. height: 500px;
  27569. width: 210px;
  27570. position: relative;
  27571. margin: 15px 5px 0 0;
  27572. flex-shrink: 0;
  27573. display: flex;
  27574. flex-direction: column;
  27575. }
  27576. .e_add_list_title {
  27577. font-size: 20px;
  27578. width: 100%;
  27579. box-sizing: border-box;
  27580. padding: 15px 40px;
  27581. text-align: center;
  27582. border-bottom: 1px solid #eaeaea;
  27583. position: relative;
  27584. display: flex;
  27585. align-items: center;
  27586. justify-content: center;
  27587. height: 57px;
  27588. background: #f6f6f6;
  27589. }
  27590. .e_add_list_title span {
  27591. overflow: hidden;
  27592. white-space: nowrap;
  27593. text-overflow: ellipsis;
  27594. }
  27595. .e_add_list_title img {
  27596. position: absolute;
  27597. right: 15px;
  27598. width: 25px;
  27599. cursor: pointer;
  27600. top: 50%;
  27601. transform: translateY(-50%);
  27602. }
  27603. .e_add_list_body {
  27604. height: calc(100% - 187px);
  27605. overflow: auto;
  27606. }
  27607. .e_add_list_child {
  27608. width: 100%;
  27609. display: flex;
  27610. align-items: center;
  27611. justify-content: center;
  27612. position: relative;
  27613. box-sizing: border-box;
  27614. padding: 15px 40px;
  27615. text-align: center;
  27616. }
  27617. .e_add_list_child span {
  27618. overflow: hidden;
  27619. white-space: nowrap;
  27620. text-overflow: ellipsis;
  27621. cursor: pointer;
  27622. }
  27623. .e_add_list_child img {
  27624. position: absolute;
  27625. right: 10px;
  27626. width: 21px;
  27627. cursor: pointer;
  27628. top: 50%;
  27629. transform: translateY(-50%);
  27630. }
  27631. .e_add_list_child + .e_add_list_child {
  27632. border-top: 1px solid #eaeaea;
  27633. }
  27634. .e_add_list_child .active {
  27635. color: #409eff;
  27636. }
  27637. .e_add_list_btn {
  27638. position: absolute;
  27639. bottom: 0;
  27640. height: 50px;
  27641. background: rgb(120, 120, 254);
  27642. width: 100%;
  27643. color: #fff;
  27644. font-size: 16px;
  27645. text-align: center;
  27646. line-height: 50px;
  27647. cursor: pointer;
  27648. }
  27649. .e_add_list_detail {
  27650. position: absolute;
  27651. bottom: 0;
  27652. height: 130px;
  27653. background: rgb(120, 120, 254);
  27654. width: 100%;
  27655. color: #fff;
  27656. font-size: 16px;
  27657. display: flex;
  27658. align-items: center;
  27659. justify-content: center;
  27660. }
  27661. .e_add_list_detail textarea {
  27662. height: 90%;
  27663. width: 95%;
  27664. border: none;
  27665. resize: none;
  27666. outline: none;
  27667. padding: 5px;
  27668. box-sizing: border-box;
  27669. }
  27670. .e_add_list_pbox {
  27671. width: 100%;
  27672. max-width: 650px;
  27673. /* height: 600px; */
  27674. }
  27675. .e_add_list_pbox_title {
  27676. height: 50px;
  27677. background: #fff;
  27678. display: flex;
  27679. align-items: center;
  27680. width: 100%;
  27681. box-sizing: border-box;
  27682. padding: 0 20px;
  27683. }
  27684. .type_title {
  27685. font-size: 18px;
  27686. font-weight: 700;
  27687. }
  27688. .type_content {
  27689. font-size: 16px;
  27690. /* margin-left: 30px; */
  27691. }
  27692. .type_content span + span {
  27693. margin-left: 20px;
  27694. }
  27695. .type_content span {
  27696. cursor: pointer;
  27697. padding-bottom: 5px;
  27698. box-sizing: border-box;
  27699. }
  27700. .type_content .active {
  27701. color: #409eff;
  27702. border-bottom: 2px solid #409eff;
  27703. }
  27704. .e_add_list_pbox_content {
  27705. height: calc(100% - 50px);
  27706. display: flex;
  27707. align-items: center;
  27708. width: 100%;
  27709. background: #fff;
  27710. }
  27711. .evaCss {
  27712. display: flex;
  27713. flex-direction: row;
  27714. flex-wrap: nowrap;
  27715. align-items: flex-start;
  27716. padding: 0 0 20px;
  27717. }
  27718. .evaCss >>> .cell {
  27719. position: relative;
  27720. overflow: visible;
  27721. }
  27722. .evaCss >>> .el-table__body-wrapper {
  27723. overflow: visible;
  27724. }
  27725. .evaCss >>> .el-table {
  27726. overflow: visible;
  27727. }
  27728. .blueRootCss {
  27729. position: absolute;
  27730. top: 50%;
  27731. left: 0;
  27732. transform: translate(-20px, -50%);
  27733. }
  27734. .cru_line {
  27735. position: absolute;
  27736. bottom: 0px;
  27737. transition: all 0.5s;
  27738. left: 0px;
  27739. width: 125px;
  27740. margin-left: -25px;
  27741. }
  27742. .isNoMessage {
  27743. width: 20%;
  27744. margin: 25% auto 0;
  27745. }
  27746. .isNoMessage > img {
  27747. width: 100%;
  27748. height: 100%;
  27749. }
  27750. .fullStyle >>> .el-dialog__body {
  27751. height: 100% !important;
  27752. }
  27753. .fullStyle >>> .el-dialog,
  27754. .fullStyle {
  27755. width: 100% !important;
  27756. max-width: 100% !important;
  27757. height: 100% !important;
  27758. margin: 0 !important;
  27759. }
  27760. .full_diy >>> .el-dialog {
  27761. margin: 0 !important;
  27762. height: 100%;
  27763. padding: 4px;
  27764. }
  27765. .full_diy >>> .el-dialog__body {
  27766. height: calc(100% - 100px);
  27767. }
  27768. .full_diy2 >>> .el-dialog__body {
  27769. height: calc(100% - 50px);
  27770. padding: 0;
  27771. }
  27772. .switchCss {
  27773. /* width: 100%; */
  27774. display: flex;
  27775. flex-direction: row;
  27776. flex-wrap: nowrap;
  27777. align-items: center;
  27778. /* justify-content: center; */
  27779. }
  27780. .isClickNav {
  27781. /* color: #499eef; */
  27782. color: #000;
  27783. }
  27784. .commentImg {
  27785. width: 25px;
  27786. height: 25px;
  27787. cursor: pointer;
  27788. }
  27789. .commentImg > img {
  27790. width: 100%;
  27791. height: 100%;
  27792. }
  27793. .comment {
  27794. background: #f9f9f9;
  27795. border-radius: 0 0 4px 4px;
  27796. display: flex;
  27797. flex-direction: row;
  27798. flex-wrap: nowrap;
  27799. align-items: center;
  27800. justify-content: flex-end;
  27801. height: 35px;
  27802. }
  27803. .commentList {
  27804. display: flex;
  27805. flex-direction: row;
  27806. flex-wrap: nowrap;
  27807. align-items: center;
  27808. justify-content: center;
  27809. align-content: center;
  27810. /* margin-left: 15px; */
  27811. /* margin-left: 8px; */
  27812. }
  27813. .scoreImg {
  27814. width: 17px;
  27815. height: 17px;
  27816. }
  27817. .studentDetail {
  27818. display: flex;
  27819. flex-direction: row;
  27820. flex-wrap: nowrap;
  27821. /* align-items: center; */
  27822. align-items: flex-start;
  27823. }
  27824. .tx {
  27825. width: 50px;
  27826. }
  27827. .tx > img {
  27828. width: 100%;
  27829. height: 100%;
  27830. }
  27831. .nameAndTime {
  27832. display: flex;
  27833. flex-direction: column;
  27834. flex-wrap: nowrap;
  27835. align-items: flex-start;
  27836. margin-left: 10px;
  27837. }
  27838. .worksAnswer {
  27839. color: #4078dd;
  27840. margin: 10px 0;
  27841. font-size: 16px;
  27842. position: relative;
  27843. }
  27844. .worksAnswer > img {
  27845. width: 500px;
  27846. height: 300px;
  27847. object-fit: contain;
  27848. margin: 0 auto;
  27849. display: block;
  27850. }
  27851. .commentTop {
  27852. border-bottom: 1px solid #eaeaea;
  27853. padding-bottom: 10px;
  27854. }
  27855. .commentBox {
  27856. padding-top: 15px;
  27857. }
  27858. .pl {
  27859. font-size: 18px;
  27860. }
  27861. .plPerson {
  27862. width: 100%;
  27863. }
  27864. .plName {
  27865. display: flex;
  27866. flex-direction: row;
  27867. flex-wrap: nowrap;
  27868. align-items: baseline;
  27869. color: #78787a;
  27870. width: 100%;
  27871. }
  27872. .deleteComment {
  27873. cursor: pointer;
  27874. margin-left: auto;
  27875. color: #237ade;
  27876. }
  27877. .plContent {
  27878. margin-top: 5px;
  27879. }
  27880. .evalCss {
  27881. background: #fff;
  27882. font-size: 18px;
  27883. }
  27884. .nav {
  27885. color: #9d9d9d;
  27886. padding: 5px 0 15px 20px;
  27887. }
  27888. .middleBox {
  27889. padding: 5px 0 15px 20px;
  27890. }
  27891. .pfBox {
  27892. padding-bottom: 30px;
  27893. }
  27894. .nameAndrate {
  27895. display: flex;
  27896. flex-direction: row;
  27897. flex-wrap: nowrap;
  27898. align-items: center;
  27899. padding-bottom: 10px;
  27900. height: 30px;
  27901. line-height: 30px;
  27902. }
  27903. .nameAndrate > div {
  27904. margin-left: 10px;
  27905. color: #000;
  27906. height: 30px;
  27907. }
  27908. .nameAndrate >>> .el-rate__icon {
  27909. font-size: 28px !important;
  27910. }
  27911. .pfBox > div:nth-child(2) {
  27912. background: #f7f6f9;
  27913. width: 400px;
  27914. min-height: 45px;
  27915. border-radius: 10px;
  27916. font-size: 16px;
  27917. display: flex;
  27918. flex-wrap: wrap;
  27919. align-items: center;
  27920. padding: 10px 20px;
  27921. box-sizing: border-box;
  27922. color: #000;
  27923. }
  27924. .bz {
  27925. display: flex;
  27926. flex-direction: row;
  27927. flex-wrap: nowrap;
  27928. align-items: flex-start;
  27929. }
  27930. .bz > div {
  27931. padding: 0 10px;
  27932. }
  27933. .select_box2_title {
  27934. background: #fff;
  27935. border-radius: 5px;
  27936. padding: 15px 10px;
  27937. box-sizing: border-box;
  27938. margin-bottom: 10px;
  27939. display: flex;
  27940. flex-direction: row;
  27941. flex-wrap: nowrap;
  27942. align-items: center;
  27943. }
  27944. .select_box2_title > div:nth-child(2) {
  27945. margin-left: 10px;
  27946. color: #c4c4c4;
  27947. }
  27948. .select_box2_box {
  27949. display: flex;
  27950. height: 500px;
  27951. }
  27952. .select_box2_img {
  27953. width: calc(100% - 310px);
  27954. height: 100%;
  27955. overflow: auto;
  27956. background: #fff;
  27957. border-radius: 5px;
  27958. }
  27959. .select_box2_img img {
  27960. width: 100%;
  27961. }
  27962. .select_box2_answer {
  27963. background: #fff;
  27964. margin-left: 10px;
  27965. border-radius: 5px;
  27966. width: 300px;
  27967. overflow: auto;
  27968. height: 90%;
  27969. display: flex;
  27970. flex-direction: column;
  27971. align-items: flex-start;
  27972. padding-top: 10px;
  27973. box-sizing: border-box;
  27974. position: relative;
  27975. }
  27976. .select_answer_title {
  27977. padding: 0 0 15px 20px;
  27978. color: #c4c4c4;
  27979. }
  27980. .select_box2_answer_box {
  27981. margin: 0 0 10px 20px;
  27982. width: 85%;
  27983. display: flex;
  27984. flex-direction: row;
  27985. flex-wrap: nowrap;
  27986. align-items: center;
  27987. }
  27988. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27989. color: #000;
  27990. }
  27991. .upAnswerCss {
  27992. position: absolute;
  27993. bottom: 15px;
  27994. right: 15px;
  27995. }
  27996. .upAnswerCss >>> .el-button {
  27997. width: 95px;
  27998. height: 35px;
  27999. line-height: 35px;
  28000. padding: 0;
  28001. }
  28002. .rightWidthCss {
  28003. width: 60%;
  28004. display: flex;
  28005. flex-direction: row;
  28006. align-items: flex-start;
  28007. }
  28008. .rightAnswer {
  28009. display: flex;
  28010. flex-direction: row;
  28011. flex-wrap: nowrap;
  28012. align-items: center;
  28013. color: red;
  28014. margin-bottom: 31px;
  28015. }
  28016. .rightAnswerCss {
  28017. display: flex;
  28018. flex-direction: column;
  28019. flex-wrap: nowrap;
  28020. padding-top: 60px;
  28021. }
  28022. .blueCss {
  28023. color: #767de1;
  28024. margin-left: 10px;
  28025. }
  28026. .redCss {
  28027. color: red;
  28028. }
  28029. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  28030. color: rgb(0 123 255) !important;
  28031. }
  28032. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  28033. color: rgb(0 123 255) !important;
  28034. }
  28035. .zuoyeYulan {
  28036. padding-top: 0;
  28037. font-size: 18px;
  28038. display: flex;
  28039. align-items: flex-end;
  28040. }
  28041. .buttonA {
  28042. margin-left: 10px;
  28043. padding: 0;
  28044. }
  28045. .displayBox {
  28046. margin-bottom: 10px;
  28047. display: block;
  28048. border-bottom: 3px solid #eee;
  28049. display: flex;
  28050. align-items: center;
  28051. }
  28052. .easy_comment {
  28053. width: calc(100% - 90px);
  28054. margin-left: 10px;
  28055. display: flex;
  28056. flex-wrap: wrap;
  28057. }
  28058. .easy_comment > div {
  28059. border: 1px solid #4a4a4a;
  28060. color: #666;
  28061. border-radius: 15px;
  28062. padding: 5px 10px;
  28063. font-size: 16px;
  28064. margin-bottom: 10px;
  28065. margin-right: 5px;
  28066. cursor: pointer;
  28067. }
  28068. .easy_comment div:hover {
  28069. border: 1px solid #f7ba2a;
  28070. color: #c69217;
  28071. }
  28072. .xuan_right_box {
  28073. padding: 10px 0;
  28074. background: #f0f4fa;
  28075. margin: 0 15px 0 25px;
  28076. border-bottom-left-radius: 5px;
  28077. border-bottom-right-radius: 5px;
  28078. width: 91.5%;
  28079. }
  28080. .tool_right_box {
  28081. display: flex;
  28082. align-items: center;
  28083. }
  28084. .tool_right_box >>> .katex {
  28085. font-size: 16px;
  28086. }
  28087. .tool_right_box + .tool_right_box {
  28088. margin-top: 10px;
  28089. }
  28090. .right_box_xuan {
  28091. border-radius: 5px;
  28092. padding: 5px;
  28093. margin-left: 10px;
  28094. min-width: 85px;
  28095. background: #fff;
  28096. color: #0061ff;
  28097. border: 1px solid #0061ff;
  28098. font-size: 14px;
  28099. }
  28100. .pButton:hover {
  28101. opacity: 1 !important;
  28102. }
  28103. .pButton {
  28104. position: fixed;
  28105. text-align: center;
  28106. cursor: pointer;
  28107. z-index: 999;
  28108. right: 20px;
  28109. top: 110px;
  28110. width: 50px;
  28111. height: 50px;
  28112. display: flex;
  28113. align-items: center;
  28114. justify-content: center;
  28115. border-radius: 5px;
  28116. }
  28117. .pzClass {
  28118. width: calc(100% - 340px);
  28119. }
  28120. .newDialogCss {
  28121. /* position: fixed;
  28122. right: 5%;
  28123. top: 50%;
  28124. width: 340px;
  28125. transform: translateY(-50%);
  28126. height: 60%;
  28127. box-shadow: 0px 0 8px 0px #555555;
  28128. border-radius: 15px;
  28129. z-index: 999; */
  28130. position: fixed;
  28131. right: 20px;
  28132. top: 101px;
  28133. width: 330px;
  28134. height: calc(100% - 80px);
  28135. z-index: 999;
  28136. background: #fff;
  28137. border-top-right-radius: 0px;
  28138. border-bottom-right-radius: 0px;
  28139. overflow: hidden;
  28140. }
  28141. .newDialogCss > .scoreList {
  28142. width: 100%;
  28143. height: 100%;
  28144. box-sizing: border-box;
  28145. padding: 10px 15px;
  28146. overflow: auto;
  28147. padding-bottom: 80px;
  28148. }
  28149. .pzTop {
  28150. color: #fff;
  28151. background: #000;
  28152. display: flex;
  28153. flex-direction: row;
  28154. flex-wrap: nowrap;
  28155. align-items: center;
  28156. justify-content: space-between;
  28157. height: 40px;
  28158. border-radius: 15px 15px 0 0;
  28159. user-select: none;
  28160. }
  28161. .pzTop2 .checkbox {
  28162. display: flex;
  28163. align-items: center;
  28164. padding: 5px 10px;
  28165. flex: 0 0 auto;
  28166. font-weight: bold;
  28167. border-bottom: 1px solid #eee;
  28168. justify-content: space-between;
  28169. }
  28170. .checkbox > .cb-tabList {
  28171. display: flex;
  28172. align-items: center;
  28173. }
  28174. .cb-tabList > div {
  28175. margin-right: 20px;
  28176. font-weight: 400;
  28177. cursor: pointer;
  28178. }
  28179. .cb-tabList > .cb-tabItem {
  28180. color: #1684fc;
  28181. position: relative;
  28182. }
  28183. .cb-tabItem::after {
  28184. content: "";
  28185. width: 100%;
  28186. height: 2px;
  28187. background: #1684fc;
  28188. position: absolute;
  28189. bottom: -5px;
  28190. left: 0;
  28191. }
  28192. .pzTop2 .check {
  28193. text-align: center;
  28194. cursor: pointer;
  28195. box-sizing: border-box;
  28196. display: flex;
  28197. }
  28198. .pzTop2 img {
  28199. width: 25px;
  28200. cursor: pointer;
  28201. }
  28202. .pzTop > div:nth-child(1) {
  28203. padding-left: 10px;
  28204. }
  28205. .pzTop > div:nth-child(2) {
  28206. width: 15px;
  28207. height: 15px;
  28208. padding-right: 10px;
  28209. cursor: pointer;
  28210. }
  28211. .pzTop > div:nth-child(2) > img {
  28212. width: 100%;
  28213. height: 100%;
  28214. }
  28215. .pzBox,
  28216. .noPzBox {
  28217. height: calc(100% - 60px);
  28218. /* background: #ededed; */
  28219. background: #fff;
  28220. /* border-radius: 0 0 15px 15px; */
  28221. }
  28222. .noPzBox {
  28223. display: flex;
  28224. flex-direction: column;
  28225. flex-wrap: nowrap;
  28226. justify-content: center;
  28227. align-items: center;
  28228. }
  28229. .pzList {
  28230. background: #f7f7f7;
  28231. width: 90%;
  28232. margin: 0 auto 15px;
  28233. border-radius: 5px;
  28234. }
  28235. .pzNavTop {
  28236. display: flex;
  28237. flex-direction: row;
  28238. flex-wrap: nowrap;
  28239. padding: 10px 10px 0 10px;
  28240. align-items: center;
  28241. }
  28242. .pzDelete {
  28243. cursor: pointer;
  28244. margin-left: auto;
  28245. font-size: 14px;
  28246. color: #afafaf;
  28247. }
  28248. .pzNavTop > div:nth-child(1) {
  28249. background: #3760af;
  28250. width: 35px;
  28251. height: 35px;
  28252. color: #fff;
  28253. text-align: center;
  28254. line-height: 35px;
  28255. border-radius: 50%;
  28256. font-size: 14px;
  28257. }
  28258. .pzNavTop > div:nth-child(2) {
  28259. font-size: 18px;
  28260. color: #959595;
  28261. margin-left: 5px;
  28262. }
  28263. .pzContent {
  28264. padding: 10px;
  28265. word-break: break-word;
  28266. }
  28267. .pzContent audio {
  28268. width: 100%;
  28269. }
  28270. .pzContent audio::-webkit-media-controls-panel {
  28271. background: #fff;
  28272. }
  28273. .pzContent >>> img {
  28274. max-width: 100%;
  28275. }
  28276. .pzListBox {
  28277. padding-top: 15px;
  28278. height: calc(100% - 110px);
  28279. overflow: auto;
  28280. }
  28281. .addPzButton {
  28282. position: relative;
  28283. margin-top: 3px;
  28284. width: 100%;
  28285. }
  28286. .addPzButton .img1 {
  28287. position: absolute;
  28288. top: 50%;
  28289. right: 25px;
  28290. transform: translateY(-50%);
  28291. height: 100%;
  28292. display: flex;
  28293. align-items: center;
  28294. }
  28295. .addPzButton .img1 div {
  28296. display: flex;
  28297. }
  28298. .addPzButton .img1 div img {
  28299. width: 28px;
  28300. margin-left: 10px;
  28301. cursor: pointer;
  28302. }
  28303. .addPzButton .img1 div span {
  28304. font-size: 14px;
  28305. margin: 4px 0 0 3px;
  28306. color: #afafaf;
  28307. }
  28308. .addPz {
  28309. background: #4b79ce;
  28310. width: 100px;
  28311. color: #fff;
  28312. font-size: 12px;
  28313. height: 30px;
  28314. margin: 0 auto;
  28315. text-align: center;
  28316. line-height: 30px;
  28317. border-radius: 10px;
  28318. cursor: pointer;
  28319. }
  28320. .addDialogCss {
  28321. position: fixed;
  28322. width: 600px;
  28323. height: 70%;
  28324. min-height: 450px;
  28325. box-shadow: 0px 0 8px 0px #555555;
  28326. border-radius: 15px;
  28327. z-index: 999;
  28328. left: 50%;
  28329. top: 50%;
  28330. margin: -18% 0 0 -300px;
  28331. }
  28332. .teacherPz {
  28333. display: flex;
  28334. flex-direction: row;
  28335. align-items: center;
  28336. flex-wrap: nowrap;
  28337. }
  28338. .teacherPzImg {
  28339. width: 30px;
  28340. height: 30px;
  28341. }
  28342. .teacherPzImg > img {
  28343. width: 100%;
  28344. height: 100%;
  28345. }
  28346. .addPzBox {
  28347. height: calc(100% - 40px);
  28348. background: #ededed;
  28349. border-bottom-left-radius: 15px;
  28350. border-bottom-right-radius: 15px;
  28351. }
  28352. .pzAudioClass {
  28353. margin: 15px 14px;
  28354. background: #fff;
  28355. height: 100%;
  28356. display: flex;
  28357. justify-content: center;
  28358. align-items: center;
  28359. }
  28360. .pzConText {
  28361. width: 95%;
  28362. height: 100%;
  28363. margin: 10px auto 0;
  28364. border: none;
  28365. background: #fff;
  28366. border-radius: 0px;
  28367. }
  28368. .pzConText >>> .text {
  28369. height: calc(100% - 82px);
  28370. }
  28371. .addTextCss {
  28372. background: #4b79ce;
  28373. width: 80px;
  28374. height: 30px;
  28375. text-align: center;
  28376. color: #fff;
  28377. line-height: 30px;
  28378. border-radius: 10px;
  28379. margin: 10px auto 0;
  28380. cursor: pointer;
  28381. }
  28382. .pzConText:focus-visible {
  28383. border: none !important;
  28384. }
  28385. .maxWidth {
  28386. width: 1000px;
  28387. }
  28388. .noPz {
  28389. width: 150px;
  28390. margin: 0 auto 20%;
  28391. }
  28392. .noPz > img {
  28393. width: 100%;
  28394. height: 100%;
  28395. }
  28396. .timeAndReply {
  28397. display: flex;
  28398. flex-direction: row;
  28399. flex-wrap: nowrap;
  28400. justify-content: space-between;
  28401. align-items: center;
  28402. font-size: 14px;
  28403. box-sizing: border-box;
  28404. padding: 0 10px 10px 0px;
  28405. }
  28406. .timeAndReply .time {
  28407. color: #bfbfbf;
  28408. padding: 0 0 0 10px;
  28409. box-sizing: border-box;
  28410. }
  28411. .timeAndReply > div:last-child {
  28412. cursor: pointer;
  28413. color: #777;
  28414. }
  28415. /* table 样式 */
  28416. .cont >>> table {
  28417. border-top: 1px solid #ccc;
  28418. border-left: 1px solid #ccc;
  28419. }
  28420. .cont >>> table td,
  28421. .cont >>> table th {
  28422. border-bottom: 1px solid #ccc;
  28423. border-right: 1px solid #ccc;
  28424. /* padding: 20px 5px; */
  28425. padding: 5px 10px;
  28426. max-width: 0px;
  28427. height: 30px;
  28428. vertical-align: baseline;
  28429. box-sizing: border-box;
  28430. }
  28431. .cont >>> table th {
  28432. border-bottom: 2px solid #ccc;
  28433. text-align: center;
  28434. }
  28435. /* blockquote 样式 */
  28436. .cont >>> blockquote {
  28437. display: block;
  28438. border-left: 8px solid #d0e5f2;
  28439. padding: 5px 10px;
  28440. margin: 10px 0;
  28441. line-height: 1.4;
  28442. font-size: 100%;
  28443. background-color: #f1f1f1;
  28444. }
  28445. /* code 样式 */
  28446. .cont >>> code {
  28447. display: inline-block;
  28448. /* *display: inline; */
  28449. zoom: 1;
  28450. background-color: #f1f1f1;
  28451. border-radius: 3px;
  28452. padding: 3px 5px;
  28453. margin: 0 3px;
  28454. }
  28455. .cont >>> pre code {
  28456. display: block;
  28457. }
  28458. /* ul ol 样式 */
  28459. .cont >>> ul,
  28460. ol {
  28461. margin: 10px 0 10px 20px;
  28462. }
  28463. .addPzCheck {
  28464. display: flex;
  28465. flex-direction: row;
  28466. flex-wrap: nowrap;
  28467. padding: 10px 15px 0;
  28468. }
  28469. .addPzCheck span {
  28470. cursor: pointer;
  28471. padding-bottom: 5px;
  28472. font-weight: bold;
  28473. }
  28474. .addPzCheck span + span {
  28475. margin-left: 10px;
  28476. }
  28477. .addPzCheck .isChooseActive {
  28478. color: #3e88f4;
  28479. border-bottom: 2px solid #2f80f3;
  28480. }
  28481. /* code 样式 */
  28482. .cont {
  28483. /* -webkit-user-modify: read-write; */
  28484. overflow-wrap: break-word;
  28485. -webkit-line-break: after-white-space;
  28486. word-break: break-word;
  28487. white-space: pre-line;
  28488. }
  28489. .scoreBox,
  28490. .scoreDetailBox {
  28491. display: flex;
  28492. align-items: center;
  28493. justify-content: flex-start;
  28494. margin-top: 20px;
  28495. font-size: 18px;
  28496. width: 100%;
  28497. }
  28498. .scoreBox .t,
  28499. .scoreDetailBox .t {
  28500. margin-right: 10px;
  28501. width: 100px;
  28502. text-align: right;
  28503. }
  28504. .scoreDetailBox {
  28505. align-items: flex-start;
  28506. }
  28507. .scoreDetailBox >>> .el-textarea {
  28508. width: calc(100% - 200px);
  28509. }
  28510. .scoreBox >>> .el-input {
  28511. width: 130px;
  28512. font-size: 38px;
  28513. }
  28514. .scoreBox >>> .el-input__inner {
  28515. height: 60px;
  28516. }
  28517. .answerScore {
  28518. position: absolute;
  28519. top: 10px;
  28520. right: 10px;
  28521. background: #0000008f;
  28522. border-radius: 5px;
  28523. padding: 3px 5px;
  28524. font-size: 14px;
  28525. color: #fff;
  28526. cursor: pointer;
  28527. }
  28528. .open_box .switch_box {
  28529. width: 100%;
  28530. margin: 0 auto;
  28531. display: flex;
  28532. justify-content: space-between;
  28533. }
  28534. .open_box .switch_box + .switch_box {
  28535. margin-top: 10px;
  28536. }
  28537. .deleteImg,
  28538. .deleteImg1 {
  28539. width: 25px !important;
  28540. height: 25px !important;
  28541. cursor: pointer;
  28542. position: absolute;
  28543. top: 10px;
  28544. right: 10px;
  28545. }
  28546. .deleteImg2 {
  28547. width: 23px !important;
  28548. height: 23px !important;
  28549. top: 5px;
  28550. right: 5px;
  28551. }
  28552. .deleteImg1 {
  28553. width: 23px !important;
  28554. height: 23px !important;
  28555. top: 5px !important;
  28556. right: 30px !important;
  28557. }
  28558. .rightW {
  28559. right: 40px;
  28560. }
  28561. .drawPBox {
  28562. display: flex;
  28563. flex-direction: column;
  28564. position: relative;
  28565. }
  28566. .drawPBox span {
  28567. font-size: 18px;
  28568. color: #606266;
  28569. padding-bottom: 10px;
  28570. margin: 10px 0;
  28571. border-bottom: 1px solid #eaeaea;
  28572. }
  28573. .drawPBox img {
  28574. width: 500px;
  28575. height: 300px;
  28576. object-fit: contain;
  28577. cursor: pointer;
  28578. margin: 0 auto;
  28579. }
  28580. .sentenBox {
  28581. background: #fff;
  28582. height: 450px;
  28583. overflow: auto;
  28584. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28585. background-position: 102%;
  28586. background-repeat: no-repeat;
  28587. background-size: 60%;
  28588. }
  28589. .addSen {
  28590. background: #409efe;
  28591. width: 90px;
  28592. color: #fff;
  28593. height: 35px;
  28594. text-align: center;
  28595. line-height: 35px;
  28596. border-radius: 5px;
  28597. float: right;
  28598. margin: 10px 20px 0 0;
  28599. cursor: pointer;
  28600. }
  28601. .sentenTop {
  28602. display: flex;
  28603. flex-direction: row;
  28604. flex-wrap: nowrap;
  28605. align-items: center;
  28606. padding: 55px 0 0 20px;
  28607. box-sizing: border-box;
  28608. }
  28609. .sentenTop > div:nth-child(2) {
  28610. width: 300px;
  28611. margin: 0 15px;
  28612. }
  28613. .sentenTop > div:nth-child(3) {
  28614. background: #409efe;
  28615. color: #fff;
  28616. width: 65px;
  28617. height: 35px;
  28618. text-align: center;
  28619. line-height: 35px;
  28620. border-radius: 5px;
  28621. cursor: pointer;
  28622. }
  28623. .cardList,
  28624. .cardList1 {
  28625. padding: 10px 0 10px 0;
  28626. display: flex;
  28627. flex-direction: row;
  28628. flex-wrap: wrap;
  28629. align-items: center;
  28630. box-sizing: border-box;
  28631. border-bottom: 1px solid #f4f4f4;
  28632. width: 98%;
  28633. margin: 0 auto;
  28634. min-width: 60%;
  28635. max-width: 85%;
  28636. }
  28637. .cardList1 {
  28638. padding: 10px 0 10px 10px !important;
  28639. margin: 0 !important;
  28640. }
  28641. .cardBox {
  28642. display: flex;
  28643. flex-direction: row;
  28644. flex-wrap: wrap;
  28645. align-items: center;
  28646. align-content: center;
  28647. }
  28648. .cardBox > div {
  28649. margin-bottom: 10px;
  28650. }
  28651. .isCard,
  28652. .isChooseCard,
  28653. .noCard,
  28654. .isCard1 {
  28655. min-width: 130px;
  28656. width: auto;
  28657. height: 60px;
  28658. text-align: center;
  28659. line-height: 60px;
  28660. font-size: 20px;
  28661. cursor: pointer;
  28662. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28663. background-size: cover;
  28664. transition: all 2s;
  28665. margin-right: 20px;
  28666. background-size: 100% 100%;
  28667. padding: 0 20px;
  28668. box-sizing: border-box;
  28669. }
  28670. .isCard > div,
  28671. .noCard > div,
  28672. .isCard1 > div {
  28673. white-space: nowrap;
  28674. overflow: hidden;
  28675. text-overflow: ellipsis;
  28676. width: 100%;
  28677. margin: 0 auto;
  28678. }
  28679. .noCard {
  28680. background-image: none;
  28681. }
  28682. .isCard1 {
  28683. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28684. }
  28685. .isChooseCard {
  28686. background-image: none;
  28687. border: 1px dashed #b9b9b9;
  28688. border-radius: 10px;
  28689. }
  28690. .card {
  28691. width: 130px;
  28692. height: 60px;
  28693. }
  28694. .card > img {
  28695. width: 100%;
  28696. height: 100%;
  28697. }
  28698. .rightCardBox {
  28699. margin: 10px 0 0 10px;
  28700. }
  28701. .rightCardBox > div:nth-child(1) {
  28702. margin-bottom: 10px;
  28703. }
  28704. .cardCss {
  28705. display: flex;
  28706. flex-direction: column;
  28707. flex-wrap: nowrap;
  28708. align-items: center;
  28709. border-bottom: 3px solid #b4c3d3;
  28710. padding: 0 0 5px 0;
  28711. margin-right: 10px;
  28712. }
  28713. .cardCss > div:nth-child(2) {
  28714. background: #5b7b9d;
  28715. color: #fff;
  28716. width: 20px;
  28717. height: 20px;
  28718. border-radius: 50%;
  28719. text-align: center;
  28720. line-height: 20px;
  28721. }
  28722. .isWrong {
  28723. display: flex;
  28724. flex-direction: row;
  28725. flex-wrap: nowrap;
  28726. align-content: center;
  28727. align-items: center;
  28728. }
  28729. .answerRight {
  28730. width: 25%;
  28731. }
  28732. .isTj {
  28733. display: flex;
  28734. flex-direction: row;
  28735. flex-wrap: nowrap;
  28736. align-items: center;
  28737. }
  28738. .isTj > div:nth-child(2) {
  28739. color: #727070;
  28740. margin-left: 10px;
  28741. }
  28742. .isTjImg {
  28743. width: 30px;
  28744. height: 30px;
  28745. }
  28746. .isTjImg > img {
  28747. width: 100%;
  28748. height: 100%;
  28749. }
  28750. .cardAnswerBox {
  28751. font-size: 18px;
  28752. width: 97%;
  28753. border: 5px;
  28754. padding: 0;
  28755. border-radius: 5px;
  28756. margin: 10px auto;
  28757. word-break: break-word;
  28758. }
  28759. .w_name {
  28760. margin-bottom: 10px;
  28761. }
  28762. .w_name span {
  28763. font-size: 16px;
  28764. }
  28765. .w_teachert {
  28766. width: 50px !important;
  28767. position: absolute;
  28768. height: auto !important;
  28769. z-index: 10;
  28770. right: 25px;
  28771. top: -25px;
  28772. }
  28773. /* .group_workBox {
  28774. } */
  28775. .group_workBox + .group_workBox {
  28776. margin-top: 20px;
  28777. }
  28778. .group_box {
  28779. padding-bottom: 20px;
  28780. border-bottom: 2px solid #f0f0f0;
  28781. margin-top: 10px;
  28782. }
  28783. .group_title {
  28784. display: flex;
  28785. align-items: center;
  28786. justify-content: space-between;
  28787. width: 95%;
  28788. }
  28789. .group_name {
  28790. background-image: url(../../assets/icon/groupN.png);
  28791. width: 220px;
  28792. background-size: 100% 100%;
  28793. height: 67px;
  28794. padding: 0 20px 0 43px;
  28795. box-sizing: border-box;
  28796. line-height: 63px;
  28797. color: #fff;
  28798. overflow: hidden;
  28799. white-space: nowrap;
  28800. text-overflow: ellipsis;
  28801. }
  28802. .group_work {
  28803. width: 100%;
  28804. padding: 0 10px;
  28805. box-sizing: border-box;
  28806. display: flex;
  28807. flex-wrap: wrap;
  28808. }
  28809. .g_d_box {
  28810. display: flex;
  28811. flex-flow: wrap;
  28812. justify-content: space-around;
  28813. }
  28814. .g_d_box .isChair {
  28815. background-image: url(../../assets/avatar.png) !important;
  28816. }
  28817. .g_d_group {
  28818. width: 500px;
  28819. margin-bottom: 80px;
  28820. }
  28821. .g_d_group_chair {
  28822. display: flex;
  28823. align-items: center;
  28824. justify-content: center;
  28825. }
  28826. .g_d_group_chair > div + div {
  28827. margin-left: 30px;
  28828. }
  28829. .g_d_group_chair > div,
  28830. .g_d_group_chair2 > div {
  28831. display: flex;
  28832. flex-direction: column;
  28833. align-items: center;
  28834. }
  28835. .g_d_group_chair > div > span:nth-child(1),
  28836. .g_d_group_chair2 > div > span:nth-child(1) {
  28837. background-image: url(../../assets/icon/chair.png);
  28838. width: 50px;
  28839. height: 50px;
  28840. display: block;
  28841. background-size: 100% 100%;
  28842. }
  28843. .g_d_group_tableBox {
  28844. display: flex;
  28845. align-items: center;
  28846. justify-content: center;
  28847. }
  28848. .g_d_group_chair2 {
  28849. display: flex;
  28850. flex-direction: column;
  28851. align-items: center;
  28852. justify-content: center;
  28853. }
  28854. .g_d_group_chair2 > div + div {
  28855. margin-top: 10px;
  28856. }
  28857. .g_d_group_table {
  28858. background-image: url(../../assets/icon/groupBg.png);
  28859. width: 354px;
  28860. height: 196px;
  28861. background-size: 100% 100%;
  28862. display: flex;
  28863. align-items: center;
  28864. justify-content: center;
  28865. flex-direction: column;
  28866. color: #fff;
  28867. }
  28868. .g_d_group_table > div:nth-child(1) {
  28869. font-size: 24px;
  28870. margin-bottom: 5px;
  28871. }
  28872. .g_d_group_table > div:nth-child(2) div {
  28873. cursor: pointer;
  28874. background: #2e77bf;
  28875. padding: 4px 10px;
  28876. border-radius: 5px;
  28877. }
  28878. /* .groupBox {
  28879. } */
  28880. .groupContent + .groupContent {
  28881. margin-top: 30px;
  28882. }
  28883. .groupTitle {
  28884. font-size: 24px;
  28885. color: rgb(80, 80, 80);
  28886. margin-bottom: 20px;
  28887. }
  28888. .groupName {
  28889. display: flex;
  28890. align-items: center;
  28891. }
  28892. .groupn {
  28893. font-size: 15px;
  28894. margin-right: 10px;
  28895. }
  28896. .groupName + .groupName {
  28897. margin-top: 15px;
  28898. }
  28899. .groupBtn {
  28900. margin-left: 10px;
  28901. }
  28902. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28903. text-align: left;
  28904. }
  28905. .g_d_btnBox {
  28906. display: flex;
  28907. justify-content: flex-end;
  28908. align-items: center;
  28909. margin-bottom: 20px;
  28910. }
  28911. .updateChair {
  28912. position: relative;
  28913. }
  28914. .updateChairBtn {
  28915. position: absolute;
  28916. width: 50px;
  28917. height: 50px;
  28918. overflow: hidden;
  28919. /* display: flex; */
  28920. align-items: center;
  28921. justify-content: center;
  28922. background: #00000087;
  28923. color: #fff;
  28924. border-radius: 50px;
  28925. display: none;
  28926. cursor: pointer;
  28927. }
  28928. .updateChair:hover .updateChairBtn {
  28929. display: flex;
  28930. }
  28931. .group_staic_box {
  28932. display: flex;
  28933. padding: 30px 40px 10px;
  28934. flex-wrap: wrap;
  28935. }
  28936. .group_staic {
  28937. /* width: 50%; */
  28938. margin-bottom: 20px;
  28939. display: flex;
  28940. align-items: center;
  28941. }
  28942. .group_staic span:nth-child(1) {
  28943. width: 150px;
  28944. text-align: right;
  28945. margin-right: 15px;
  28946. }
  28947. .group_staic span:nth-child(2) {
  28948. background: rgb(0 123 255);
  28949. color: #fff;
  28950. border-radius: 5px;
  28951. padding: 5px;
  28952. }
  28953. .codeFileBox {
  28954. height: 300px;
  28955. background: #fff;
  28956. display: flex;
  28957. align-items: center;
  28958. justify-content: center;
  28959. }
  28960. .codeFileBox img {
  28961. width: 200px;
  28962. margin: 0;
  28963. height: auto;
  28964. }
  28965. .codeFileBox div {
  28966. background: rgb(80, 142, 226);
  28967. color: #fff;
  28968. padding: 10px 20px;
  28969. border-radius: 25px;
  28970. cursor: pointer;
  28971. margin-left: 15px;
  28972. }
  28973. .radioBox {
  28974. display: flex;
  28975. flex-direction: column;
  28976. flex-wrap: nowrap;
  28977. align-items: flex-start;
  28978. }
  28979. .radioBox > div {
  28980. margin: 10px 0 0 10px;
  28981. }
  28982. /* .radioBox >>> .el-radio__input,
  28983. .radioBox >>> .el-checkbox__inner {
  28984. margin-left: 10px;
  28985. } */
  28986. .radioBox >>> .el-radio__label,
  28987. .radioBox >>> .el-checkbox__label {
  28988. display: flex;
  28989. align-items: center;
  28990. width: 100%;
  28991. }
  28992. .radioBox >>> .el-radio__label > span {
  28993. width: 100%;
  28994. display: -webkit-box;
  28995. overflow: hidden;
  28996. white-space: normal !important;
  28997. text-overflow: ellipsis;
  28998. word-wrap: break-word;
  28999. }
  29000. .inImg {
  29001. width: 100px;
  29002. cursor: pointer;
  29003. }
  29004. .inImg > img {
  29005. width: 100%;
  29006. height: 100%;
  29007. object-fit: cover;
  29008. }
  29009. .timuImgBox {
  29010. margin: 10px 0;
  29011. display: flex;
  29012. flex-direction: column;
  29013. flex-wrap: wrap;
  29014. align-items: flex-start;
  29015. }
  29016. .timuImg {
  29017. width: 150px;
  29018. margin: 5px 0;
  29019. cursor: pointer;
  29020. }
  29021. .timuImg > img {
  29022. width: 100%;
  29023. height: 100%;
  29024. object-fit: cover;
  29025. }
  29026. .worksTop {
  29027. display: flex;
  29028. flex-direction: row;
  29029. align-items: flex-end;
  29030. }
  29031. .worksTitle {
  29032. display: flex;
  29033. flex-direction: row;
  29034. flex-wrap: nowrap;
  29035. align-items: center;
  29036. }
  29037. .worksTitle::before,
  29038. .worksTop::before {
  29039. content: "";
  29040. display: block;
  29041. width: 3px;
  29042. height: 20px;
  29043. background: #0061ff;
  29044. border-radius: 3px;
  29045. margin: 0 5px 0 0;
  29046. }
  29047. .corOpen {
  29048. margin: 0 0 0 10px;
  29049. font-size: 14px;
  29050. cursor: pointer;
  29051. color: #505050;
  29052. }
  29053. .corOpen:hover {
  29054. color: #499eef;
  29055. }
  29056. .navCorOpenBox {
  29057. display: flex;
  29058. flex-direction: row;
  29059. align-items: center;
  29060. justify-content: space-between;
  29061. height: 55px;
  29062. background: #ffffff;
  29063. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  29064. border-radius: 8px 8px 0px 0px;
  29065. z-index: 9;
  29066. position: relative;
  29067. }
  29068. .navCorOpen {
  29069. padding-right: 15px;
  29070. cursor: pointer;
  29071. width: 45px;
  29072. display: flex;
  29073. }
  29074. .navCorOpen > img {
  29075. width: 100%;
  29076. height: 100%;
  29077. }
  29078. .mlImg {
  29079. width: 40px !important;
  29080. min-width: 40px;
  29081. cursor: pointer;
  29082. transform: rotate(180deg);
  29083. }
  29084. .mlImg > img {
  29085. width: 100%;
  29086. height: 100%;
  29087. }
  29088. .navLeftCss {
  29089. width: 100% !important;
  29090. left: 0 !important;
  29091. }
  29092. .isContentCss {
  29093. width: 100% !important;
  29094. }
  29095. .isAllWidth {
  29096. width: 100% !important;
  29097. }
  29098. .group_switch {
  29099. margin-right: 10px;
  29100. height: 30px;
  29101. display: flex;
  29102. align-items: center;
  29103. }
  29104. .group_switch > span {
  29105. margin-right: 5px;
  29106. }
  29107. .fileC_box {
  29108. padding-top: 15px;
  29109. }
  29110. .fileC_box > .fileC_title {
  29111. padding: 10px 5px 14px 10px;
  29112. border-top: 1px solid #cad1dc;
  29113. font-size: 14px;
  29114. font-weight: 400;
  29115. color: #cad1dc;
  29116. width: calc(100% - 20px);
  29117. margin: 0 auto;
  29118. box-sizing: border-box;
  29119. }
  29120. .pl_select_box {
  29121. height: 40px;
  29122. line-height: 40px;
  29123. width: 100%;
  29124. cursor: pointer;
  29125. padding: 0 20px;
  29126. box-sizing: border-box;
  29127. border-radius: 5px;
  29128. border: 1px solid #d6d6d6;
  29129. white-space: nowrap;
  29130. overflow: hidden;
  29131. text-overflow: ellipsis;
  29132. background: #fff;
  29133. text-align: left;
  29134. }
  29135. .newButton {
  29136. width: 102px;
  29137. height: 36px;
  29138. background: #e7ebf1;
  29139. border-radius: 4px;
  29140. color: #0e1e33;
  29141. font-weight: 400;
  29142. font-size: 14px;
  29143. border: none;
  29144. float: right;
  29145. margin-left: 10px;
  29146. }
  29147. .el-table >>> .even_row {
  29148. background-color: #f0f4fa;
  29149. }
  29150. .stageBoxCss,
  29151. .stageBoxIsCss {
  29152. display: flex;
  29153. flex-direction: row;
  29154. flex-wrap: nowrap;
  29155. align-items: center;
  29156. height: 50px;
  29157. border-bottom: 1px solid #e2f5fc;
  29158. cursor: pointer;
  29159. width: 100%;
  29160. }
  29161. .stageBoxIsCss {
  29162. background: #0061ff;
  29163. color: #fff;
  29164. border-radius: 8px;
  29165. }
  29166. .closeTri,
  29167. .closeTri1 {
  29168. min-width: 15px;
  29169. width: 15px;
  29170. height: 15px;
  29171. }
  29172. .closeTri1 {
  29173. padding-left: 10px;
  29174. cursor: pointer;
  29175. }
  29176. .closeTri > img,
  29177. .closeTri1 > img {
  29178. width: 100%;
  29179. height: 100%;
  29180. /* transition: all .5s; */
  29181. }
  29182. .noToolBlue {
  29183. min-width: 10px;
  29184. width: 10px;
  29185. height: 10px;
  29186. background: #0061ff;
  29187. border-radius: 50%;
  29188. margin-left: 13px;
  29189. }
  29190. .stageChild,
  29191. .toolChild {
  29192. height: 0;
  29193. overflow: hidden;
  29194. transition: all 0.5s;
  29195. }
  29196. /* .toolChild { */
  29197. /* margin: 0 0 0 17px;
  29198. padding: 0 0 0 20px;
  29199. border-left: 1px solid #d7d7d7; */
  29200. /* } */
  29201. .toolChild > div + div {
  29202. margin-top: 5px;
  29203. }
  29204. .gjCss {
  29205. display: flex;
  29206. flex-direction: row;
  29207. flex-wrap: nowrap;
  29208. align-items: center;
  29209. padding: 10px 0 10px 40px;
  29210. box-sizing: border-box;
  29211. font-size: 14px;
  29212. cursor: pointer;
  29213. border-radius: 5px;
  29214. }
  29215. .gjCss > div:nth-child(1){
  29216. flex-shrink: 0;
  29217. }
  29218. .toolChild > div {
  29219. position: relative;
  29220. width: 100%;
  29221. }
  29222. /* .toolChild > div::before { */
  29223. /* content: "";
  29224. width: 15px;
  29225. height: 1px;
  29226. background: #cad1dc;
  29227. position: absolute;
  29228. top: 24px;
  29229. left: -20px;
  29230. display: block; */
  29231. /* } */
  29232. .isGjCss {
  29233. /* color: #0061ff; */
  29234. color: #fff;
  29235. background: rgb(55, 129, 252);
  29236. /* background-color: #e0eafb !important;
  29237. color: #0061ff !important; */
  29238. }
  29239. .navItem {
  29240. background: #ffffff;
  29241. border-radius: 4px;
  29242. width: 100%;
  29243. margin: 10px auto;
  29244. position: relative;
  29245. height: 40px;
  29246. display: flex;
  29247. flex-direction: row;
  29248. flex-wrap: nowrap;
  29249. align-items: center;
  29250. }
  29251. .navItemList {
  29252. display: flex;
  29253. flex-direction: row;
  29254. flex-wrap: nowrap;
  29255. align-items: center;
  29256. padding: 0 13px;
  29257. cursor: pointer;
  29258. width: calc(100% - 60px);
  29259. height: 100%;
  29260. }
  29261. .navItemList > div:first-child {
  29262. min-width: 60px;
  29263. }
  29264. .navItemList > div:last-child {
  29265. width: calc(100% - 80px);
  29266. white-space: nowrap;
  29267. overflow: hidden;
  29268. text-overflow: ellipsis;
  29269. word-break: break-word;
  29270. }
  29271. /* .isItemList > div {
  29272. color: #fff !important;
  29273. } */
  29274. .tool_work_box {
  29275. width: 100%;
  29276. padding: 0 37px 0;
  29277. box-sizing: border-box;
  29278. }
  29279. .tool_box {
  29280. width: 100%;
  29281. padding: 0 0 0 20px;
  29282. }
  29283. .tool_type_box {
  29284. display: flex;
  29285. flex-direction: row;
  29286. align-items: baseline;
  29287. flex-wrap: nowrap;
  29288. justify-content: flex-start;
  29289. position: relative;
  29290. }
  29291. .toolSort {
  29292. display: flex;
  29293. flex-direction: row;
  29294. flex-wrap: wrap;
  29295. justify-content: flex-start;
  29296. align-items: flex-start;
  29297. padding: 0 0 15px 0;
  29298. }
  29299. .toolSort > div {
  29300. margin: 0 10px 0 0;
  29301. width: 135px;
  29302. box-sizing: border-box;
  29303. border: 2px solid transparent;
  29304. }
  29305. .tools {
  29306. width: 100%;
  29307. display: flex;
  29308. flex-direction: column;
  29309. flex-wrap: nowrap;
  29310. align-items: flex-start;
  29311. }
  29312. .whiteBIcon {
  29313. width: fit-content;
  29314. cursor: pointer;
  29315. display: flex;
  29316. flex-direction: column;
  29317. flex-wrap: nowrap;
  29318. align-items: center;
  29319. font-size: 14px;
  29320. }
  29321. .tool:hover {
  29322. border: 2px solid #a5c7ff;
  29323. border-radius: 5px;
  29324. }
  29325. .whiteBIcon > img {
  29326. width: 65px;
  29327. height: 100%;
  29328. }
  29329. .whiteBIcon > img {
  29330. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29331. border-radius: 15px;
  29332. }
  29333. .check {
  29334. /* width: 20px;
  29335. height: 20px; */
  29336. cursor: pointer;
  29337. margin: 10px 0;
  29338. position: absolute;
  29339. right: 2px;
  29340. top: -5px;
  29341. }
  29342. .noChoose,
  29343. .isChoose {
  29344. width: 15px;
  29345. height: 15px;
  29346. border-radius: 50%;
  29347. border: 1px solid #adadad;
  29348. }
  29349. .isChoose {
  29350. border: 4px solid #0363ff !important;
  29351. width: 10px;
  29352. height: 10px;
  29353. }
  29354. .isToolChoose {
  29355. border: 2px solid #5394ff !important;
  29356. border-radius: 5px;
  29357. box-shadow: 0 0 6px 0px #5394ff;
  29358. }
  29359. .checkDiv {
  29360. display: flex;
  29361. align-items: center;
  29362. }
  29363. .checkDiv span {
  29364. margin-left: 5px;
  29365. color: #858585;
  29366. }
  29367. .check img {
  29368. width: 20px;
  29369. height: 20px;
  29370. }
  29371. .lockTaskIcon {
  29372. width: 20px;
  29373. height: 20px;
  29374. position: absolute;
  29375. right: 10px;
  29376. top: 10px;
  29377. }
  29378. .lockTaskIcon > img {
  29379. width: 100%;
  29380. height: 100%;
  29381. }
  29382. .pick_box {
  29383. display: flex;
  29384. align-items: flex-start;
  29385. flex-wrap: wrap;
  29386. }
  29387. .selectBox {
  29388. width: 110px;
  29389. margin-left: 10px;
  29390. margin: 0 10px 0 auto;
  29391. }
  29392. .selectBox >>> .el-input__inner {
  29393. height: 30px;
  29394. line-height: 30px;
  29395. }
  29396. .selectBox >>> .el-input__icon {
  29397. line-height: 30px;
  29398. }
  29399. .sentenceTitle {
  29400. display: flex;
  29401. flex-direction: row;
  29402. flex-wrap: nowrap;
  29403. align-items: center;
  29404. }
  29405. .sentenceTitle::before {
  29406. content: attr(index);
  29407. background: #3681fc;
  29408. border-radius: 50%;
  29409. color: #fff;
  29410. width: 25px;
  29411. height: 25px;
  29412. min-width: 25px;
  29413. min-height: 25px;
  29414. text-align: center;
  29415. line-height: 25px;
  29416. margin-right: 5px;
  29417. }
  29418. .hfBox {
  29419. padding: 10px;
  29420. box-sizing: border-box;
  29421. }
  29422. .whoReplyWho {
  29423. display: flex;
  29424. flex-direction: row;
  29425. flex-wrap: nowrap;
  29426. align-items: baseline;
  29427. justify-content: flex-start;
  29428. }
  29429. .hfBottom {
  29430. display: flex;
  29431. flex-direction: row;
  29432. flex-wrap: nowrap;
  29433. align-items: center;
  29434. justify-content: space-between;
  29435. font-size: 14px;
  29436. }
  29437. .deleteHfItem {
  29438. cursor: pointer;
  29439. width: 20px;
  29440. height: 20px;
  29441. }
  29442. .deleteHfItem > img {
  29443. width: 100%;
  29444. height: 100%;
  29445. }
  29446. .whoReplyWho > .hfImg {
  29447. width: 12px;
  29448. height: 12px;
  29449. margin: 0 5px;
  29450. }
  29451. .whoReplyWho > .hfImg > img {
  29452. width: 100%;
  29453. height: 100%;
  29454. }
  29455. .hfContent {
  29456. padding-top: 10px;
  29457. box-sizing: border-box;
  29458. display: -webkit-box;
  29459. overflow: hidden;
  29460. white-space: normal !important;
  29461. text-overflow: ellipsis;
  29462. word-wrap: break-word;
  29463. -webkit-box-orient: vertical;
  29464. }
  29465. .hfTime {
  29466. text-align: left;
  29467. box-sizing: border-box;
  29468. padding: 10px 0 10px 0px;
  29469. color: #bfbfbf;
  29470. font-size: 14px;
  29471. }
  29472. .btnAllNT {
  29473. position: fixed;
  29474. bottom: 100px;
  29475. right: 40px;
  29476. z-index: 999;
  29477. display: flex;
  29478. flex-direction: row;
  29479. }
  29480. .btnAllNT > img {
  29481. cursor: pointer;
  29482. width: 80px;
  29483. }
  29484. .toolMask {
  29485. position: fixed;
  29486. width: 100%;
  29487. height: 100%;
  29488. background: #3f3c3c;
  29489. opacity: 0.5;
  29490. top: 0;
  29491. left: 0;
  29492. z-index: 999;
  29493. }
  29494. .addToolCss {
  29495. position: fixed;
  29496. z-index: 999;
  29497. background: #fff;
  29498. right: 5%;
  29499. bottom: 18%;
  29500. min-width: 1035px;
  29501. min-height: 300px;
  29502. border-radius: 10px;
  29503. box-shadow: 0 0 8px 1px #b2b2b2;
  29504. }
  29505. .toolTop {
  29506. display: flex;
  29507. flex-direction: row;
  29508. flex-wrap: nowrap;
  29509. justify-content: space-between;
  29510. align-items: center;
  29511. padding: 20px;
  29512. }
  29513. .toolTop > div:nth-child(2) {
  29514. width: 15px;
  29515. height: 15px;
  29516. padding-right: 10px;
  29517. cursor: pointer;
  29518. }
  29519. .toolTop > div:nth-child(2) > img {
  29520. width: 100%;
  29521. height: 100%;
  29522. }
  29523. .fullStyle >>> .el-dialog__body {
  29524. height: calc(100% - 125px) !important;
  29525. box-sizing: border-box;
  29526. padding: 30px 0 !important;
  29527. background: #fff !important;
  29528. }
  29529. .fullStyle >>> .el-dialog {
  29530. width: 100% !important;
  29531. max-width: 100% !important;
  29532. height: 100% !important;
  29533. margin: 0 !important;
  29534. }
  29535. .fullStyle {
  29536. width: 100% !important;
  29537. max-width: 100% !important;
  29538. height: 100% !important;
  29539. margin: 0 auto !important;
  29540. }
  29541. .fullStyle >>> .el-dialog__footer {
  29542. background: #fff !important;
  29543. }
  29544. .engUpBox {
  29545. width: 100%;
  29546. height: 100%;
  29547. }
  29548. .engTitle,
  29549. .engText {
  29550. display: flex;
  29551. flex-direction: row;
  29552. flex-wrap: nowrap;
  29553. align-items: flex-start;
  29554. padding: 0 20px 20px 20px;
  29555. box-sizing: border-box;
  29556. }
  29557. .engTitle > .div:first-child,
  29558. .engText > div:first-child {
  29559. min-width: 75px;
  29560. }
  29561. .correctBox {
  29562. width: 100%;
  29563. display: flex;
  29564. flex-direction: row;
  29565. flex-wrap: nowrap;
  29566. align-items: flex-start;
  29567. }
  29568. .oldBox {
  29569. width: 50%;
  29570. height: 100%;
  29571. display: flex;
  29572. flex-direction: column;
  29573. flex-wrap: nowrap;
  29574. align-items: center;
  29575. border-top: 1px solid #d9d9d9;
  29576. border-left: 1px solid #d9d9d9;
  29577. border-right: 1px solid #d9d9d9;
  29578. }
  29579. .oldBox > div:first-child {
  29580. width: 100%;
  29581. text-align: center;
  29582. background: #d9d9d9;
  29583. height: 35px;
  29584. line-height: 35px;
  29585. font-weight: bold;
  29586. }
  29587. .oldText {
  29588. width: 100%;
  29589. height: calc(100% - 35px);
  29590. overflow: auto;
  29591. margin: 10px 0;
  29592. display: flex;
  29593. flex-direction: column;
  29594. flex-wrap: nowrap;
  29595. align-content: center;
  29596. align-items: center;
  29597. }
  29598. .detailBox {
  29599. width: 50%;
  29600. padding: 10px;
  29601. background: #f6f6f6;
  29602. border-radius: 5px;
  29603. }
  29604. .oldDetail,
  29605. .oldDetail1 {
  29606. padding-bottom: 30px;
  29607. }
  29608. .oldImg {
  29609. width: 30px;
  29610. height: 30px;
  29611. }
  29612. .oldImg > img {
  29613. width: 100%;
  29614. height: 100%;
  29615. }
  29616. .allName {
  29617. min-width: 200px;
  29618. white-space: nowrap;
  29619. overflow: hidden;
  29620. text-overflow: ellipsis;
  29621. word-break: break-word;
  29622. cursor: pointer;
  29623. text-align: center;
  29624. border: 1px solid #bcc2cc;
  29625. box-sizing: border-box;
  29626. }
  29627. .engUpTop {
  29628. max-height: 300px;
  29629. overflow: auto;
  29630. }
  29631. .isUpdateToolDetailClass {
  29632. padding: 0 !important;
  29633. }
  29634. .isUpdateToolDetailClass textarea {
  29635. padding: 12px;
  29636. font-size: 16px;
  29637. min-height: 100%;
  29638. width: 100%;
  29639. box-sizing: border-box;
  29640. outline: none;
  29641. border: none;
  29642. line-height: 30px;
  29643. resize: none;
  29644. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
  29645. "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29646. color: #838383;
  29647. }
  29648. .show_taskD {
  29649. min-width: fit-content;
  29650. margin-left: 10px;
  29651. display: flex;
  29652. align-items: center;
  29653. font-size: 14px;
  29654. cursor: pointer;
  29655. color: #717c8d;
  29656. }
  29657. .show_taskD > img {
  29658. width: 15px;
  29659. margin-right: 5px;
  29660. transition: 0.2s all;
  29661. transform: rotate(-90deg);
  29662. }
  29663. .show_taskD.show > img {
  29664. transform: rotate(0deg);
  29665. }
  29666. .correctCss {
  29667. position: absolute;
  29668. bottom: -70px;
  29669. background: #409eff;
  29670. color: #fff;
  29671. }
  29672. .ScoreBtn {
  29673. background: rgba(87, 159, 248, 1);
  29674. display: flex;
  29675. justify-content: center;
  29676. align-items: center;
  29677. color: #fff;
  29678. font-size: 14px;
  29679. padding: 8px 12px;
  29680. border-radius: 5px;
  29681. cursor: pointer;
  29682. }
  29683. .max-height-popover .el-popover {
  29684. min-height: 200px;
  29685. max-height: 400px; /* 设置最大高度 */
  29686. overflow: auto; /* 超出部分显示滚动条 */
  29687. }
  29688. .blueRootCss {
  29689. display: block;
  29690. margin-right: 5px;
  29691. }
  29692. .stuLookScore {
  29693. position: absolute;
  29694. top: 12px;
  29695. right: 40px;
  29696. background: #0000008f;
  29697. border-radius: 5px;
  29698. padding: 3px 5px;
  29699. font-size: 14px;
  29700. color: #fff;
  29701. cursor: pointer;
  29702. }
  29703. div::-webkit-scrollbar {
  29704. width: 10px;
  29705. height: 6px;
  29706. }
  29707. .Ovh{
  29708. margin: 5px 0;
  29709. width: 4em;
  29710. -webkit-line-clamp: 2;
  29711. display: -webkit-box;
  29712. -webkit-box-orient: vertical;
  29713. overflow: hidden;
  29714. text-overflow: ellipsis;
  29715. }
  29716. .renderedFor >>> .katex {
  29717. font-size: 18px;
  29718. width: 100%;
  29719. white-space: normal;
  29720. font-family: '黑体' !important;
  29721. }
  29722. .renderedFor >>> .katex .base{
  29723. display: inline !important;
  29724. display: contents !important;
  29725. }
  29726. .renderedFor>>> .katex .base .cjk_fallback{
  29727. white-space: normal !important;
  29728. display: inline !important;
  29729. }
  29730. .notop >>> .vjs-fluid{
  29731. padding-top: 0 !important;
  29732. }
  29733. .xiaz{
  29734. position: absolute;
  29735. right: 40px;
  29736. top: 10px;
  29737. width: 24px !important;
  29738. padding: 4px;
  29739. box-sizing: border-box;
  29740. background: #243052;
  29741. border-radius: 8px;
  29742. height: 24px !important;
  29743. }
  29744. </style>