studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 上课模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :style="tType=='2'?'width:calc(100% - 10px)':''" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail)
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  622. :key="diffKey"
  623. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  624. :src="pptImgUrl1"
  625. ></iframe>
  626. <iframe
  627. style="width: 100%; height: 100%; border: none"
  628. security="restricted"
  629. v-else
  630. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  631. :src="pptImgUrl1"
  632. ></iframe>
  633. </div>
  634. <div
  635. class="wheel"
  636. v-if="showType === 16"
  637. style="width: 95%; margin: 0 auto"
  638. >
  639. <iframe
  640. style="width: 100%; height: 100%; border: none"
  641. :src="pptImgUrl1"
  642. ></iframe>
  643. </div>
  644. <div
  645. class="wheel"
  646. v-if="showType == 3"
  647. style="width: 95%; margin: 0 auto"
  648. >
  649. <pdf
  650. :pdfUrl="pptImgUrl1"
  651. style="width: 100%; height: 100%; overflow: auto"
  652. ></pdf>
  653. </div>
  654. <div
  655. class="wheel"
  656. v-if="showType == 4"
  657. style="width: 95%; margin: 0 auto"
  658. >
  659. <el-image
  660. :src="pptImgUrl1"
  661. fit="contain"
  662. style="width: 100%; height: 100%; cursor: pointer"
  663. @click="previewImg(pptImgUrl1)"
  664. ></el-image>
  665. </div>
  666. </div>
  667. <div
  668. class="pButton"
  669. style="position: absolute; right: 20px; top: 0; z-index: 998"
  670. v-if="!contentDialog"
  671. @click="setContent(true)"
  672. >
  673. <!-- 批 -->
  674. <img
  675. src="../../assets/icon/newIcons/isLeft.png"
  676. style="width: 45px"
  677. alt=""
  678. />
  679. </div>
  680. <div
  681. v-if="contentDialog == true"
  682. :style="{
  683. width:
  684. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  685. showType === ''
  686. ? 'calc(100%)'
  687. : '300px',
  688. margin:
  689. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  690. showType === ''
  691. ? '0 15px'
  692. : '0 15px 0 0',
  693. }"
  694. >
  695. <div
  696. class="vedioList"
  697. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  698. style="height: 650px"
  699. >
  700. <div class="navCorOpenBox">
  701. <div class="navTitile">内容列表:</div>
  702. <div class="navCorOpen" @click="setContent(false)">
  703. <img
  704. src="../../assets/icon/newIcons/isRight.png"
  705. alt=""
  706. />
  707. </div>
  708. </div>
  709. <div class="navBox">
  710. <div
  711. v-show="
  712. vChapterData[0].length > 0 || fileC[0].length > 0
  713. "
  714. style="padding: 10px 0 25px 0"
  715. >
  716. <div
  717. class="vedioTimeBox"
  718. v-for="(vitem, vindex) in vChapterData[0]"
  719. :key="vindex + '1'"
  720. >
  721. <div class="navListItem" v-if="vitem.type == 2">
  722. <div
  723. @click="lookVedio(vitem.url, vindex)"
  724. class="navText"
  725. :class="isClickNav == vindex ? 'isClickNav' : ''"
  726. >
  727. <span v-if="vitem.text">{{ vitem.text }}-</span
  728. >{{ vitem.name }}
  729. </div>
  730. <div class="downIcon" @click="downloadFile2(vitem)">
  731. <img
  732. src="../../assets/icon/newIcon/down.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div class="navListItem" v-if="vitem.type == 6">
  738. <div
  739. @click="lookText(0, vindex)"
  740. class="navText"
  741. :class="isClickNav == vindex ? 'isClickNav' : ''"
  742. >
  743. {{ vitem.name }}.doc
  744. </div>
  745. <div
  746. class="downIcon"
  747. @click="checkFileFull1(vitem.type, vitem)"
  748. >
  749. <img
  750. src="../../assets/icon/newIcon/allScreen.png"
  751. alt
  752. />
  753. </div>
  754. </div>
  755. <div
  756. class="navListItem"
  757. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  758. >
  759. <div
  760. @click="doUrl(vitem.url, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. {{ vitem.title ? vitem.title : vitem.url }}
  765. </div>
  766. <div
  767. class="downIcon"
  768. @click="checkFileFull1(vitem.type, vitem)"
  769. >
  770. <img
  771. src="../../assets/icon/newIcon/allScreen.png"
  772. alt
  773. />
  774. </div>
  775. </div>
  776. <div class="navListItem" v-if="vitem.type == 3">
  777. <div
  778. @click="downFile(vitem, vindex)"
  779. class="navText"
  780. :class="isClickNav == vindex ? 'isClickNav' : ''"
  781. >
  782. <span v-if="vitem.text">{{ vitem.text }}-</span
  783. >{{ vitem.name }}
  784. </div>
  785. <div
  786. class="downIcon"
  787. @click="checkFileFull1(vitem.type, vitem)"
  788. >
  789. <img
  790. src="../../assets/icon/newIcon/allScreen.png"
  791. alt
  792. />
  793. </div>
  794. <div class="downIcon" @click="downloadFile2(vitem)">
  795. <img
  796. src="../../assets/icon/newIcon/down.png"
  797. alt
  798. />
  799. </div>
  800. </div>
  801. <div class="navListItem" v-if="vitem.type == 12">
  802. <div class="navText" @click="downloadFile2(vitem)">
  803. <span v-if="vitem.text">{{ vitem.text }}-</span
  804. >{{ vitem.name }}
  805. </div>
  806. <div
  807. class="downIcon"
  808. @click="checkFileFull1(vitem.type, vitem)"
  809. >
  810. <img
  811. src="../../assets/icon/newIcon/allScreen.png"
  812. alt
  813. />
  814. </div>
  815. <div class="downIcon" @click="downloadFile2(vitem)">
  816. <img
  817. src="../../assets/icon/newIcon/down.png"
  818. alt
  819. />
  820. </div>
  821. </div>
  822. <div class="navListItem" v-if="vitem.type == 13">
  823. <div
  824. class="navText"
  825. @click="checkPhoto(vitem, vindex)"
  826. :class="isClickNav == vindex ? 'isClickNav' : ''"
  827. >
  828. {{ vitem.name }}
  829. </div>
  830. <div class="downIcon" @click="downloadFile2(vitem)">
  831. <img
  832. src="../../assets/icon/newIcon/down.png"
  833. alt
  834. />
  835. </div>
  836. </div>
  837. <div class="navListItem" v-if="vitem.type == 16">
  838. <div
  839. class="navText"
  840. @click="checkHtml(vitem, vindex)"
  841. :class="isClickNav == vindex ? 'isClickNav' : ''"
  842. >
  843. {{ vitem.name }}
  844. </div>
  845. <div
  846. class="downIcon"
  847. @click="checkFileFull1(vitem.type, vitem)"
  848. >
  849. <img
  850. src="../../assets/icon/newIcon/allScreen.png"
  851. alt
  852. />
  853. </div>
  854. </div>
  855. </div>
  856. <div class="fileC_box" v-if="fileC[0].length > 0">
  857. <div class="fileC_title">以下文件不支持预览</div>
  858. <div
  859. class="vedioTimeBox"
  860. v-for="(vitem, vindex) in fileC[0]"
  861. :key="vindex + '1'"
  862. >
  863. <div class="navListItem" v-if="vitem.type == 12">
  864. <div class="navText" style="color: #acb4bf">
  865. <span v-if="vitem.text">{{ vitem.text }}-</span
  866. >{{ vitem.name }}
  867. </div>
  868. <div
  869. class="downIcon"
  870. @click="downloadFile2(vitem)"
  871. >
  872. <img
  873. src="../../assets/icon/newIcon/down.png"
  874. alt
  875. />
  876. </div>
  877. </div>
  878. </div>
  879. </div>
  880. </div>
  881. </div>
  882. </div>
  883. </div>
  884. </div>
  885. <div style="width: calc(100% - 315px)">
  886. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  887. <!-- <el-button
  888. type="primary"
  889. class="newButton"
  890. @click="checkFileFull(showType, pptImgUrl1)"
  891. >全屏查看</el-button
  892. >
  893. <el-button
  894. type="primary"
  895. class="newButton"
  896. @click="downloadFile(pptImgUrl1)"
  897. v-if="showType != 2"
  898. >文件下载</el-button
  899. > -->
  900. <el-button
  901. v-if="
  902. showType == 2 &&
  903. pptImgUrl1.indexOf(
  904. 'https://view.officeapps.live.com/op/view.aspx?src='
  905. ) == -1
  906. "
  907. type="primary"
  908. class="newButton"
  909. @click="openLine(pptImgUrl1)"
  910. >打开链接
  911. </el-button>
  912. </div>
  913. <!-- <div
  914. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  915. v-if="showType == 1"
  916. >
  917. <el-button
  918. type="primary"
  919. class="newButton"
  920. @click="checkFileFull(showType, text)"
  921. >全屏查看</el-button
  922. >
  923. </div> -->
  924. </div>
  925. </div>
  926. </div>
  927. <div class="student_body" v-resize="resize">
  928. <div
  929. class="vedioBox"
  930. :style="{
  931. borderRadius:
  932. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  933. .taskDetail == '' &&
  934. vChapterData[taskCount].length == 0 &&
  935. fileC[taskCount].length == 0
  936. ? '0 0 20px 20px'
  937. : '20px',
  938. }"
  939. v-if="
  940. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  941. .toolChoose[0].tool &&
  942. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  943. .toolChoose[0].tool.length > 0
  944. "
  945. >
  946. <div
  947. class="toolHeng2"
  948. style="position: relative"
  949. v-if="
  950. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  951. .toolChoose[0].tool &&
  952. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  953. .toolChoose[0].tool.length &&
  954. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  955. .toolChoose[0].tool.length > 0
  956. "
  957. >
  958. <div class="workNav">工作区</div>
  959. <div
  960. class="filebox"
  961. style="flex-wrap: nowrap"
  962. v-for="(tool, toolIndex) in chapInfoList[courseType]
  963. .chapterInfo[0].taskJson[taskCount].toolChoose"
  964. :key="toolIndex"
  965. >
  966. <div class="bzBox">
  967. <div class="yCss"></div>
  968. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  969. 工具{{ toolIndex + 1 }}
  970. </div>
  971. <div
  972. v-if="timeWorkList[toolIndex].length > 0"
  973. style="margin: 0 0 0 10px"
  974. >
  975. {{
  976. timeWorkList[toolIndex][0].time
  977. ? "时间:" + timeWorkList[toolIndex][0].time
  978. : ""
  979. }}
  980. </div>
  981. </div>
  982. <div class="toolBox">
  983. <div>
  984. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  985. :key="indexTool"-->
  986. <!-- <div class="iframeBox">
  987. <div
  988. class="addPoint isBorder"
  989. v-for="(tooC, toolCIndex) in tool.tool"
  990. :key="toolCIndex"
  991. >
  992. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  993. <div
  994. class="iframeName"
  995. >
  996. 电子白板
  997. </div>
  998. <iframe
  999. src="https://iwb.cocorobo.cn/"
  1000. ref="whiteBoard"
  1001. ></iframe>
  1002. </div>
  1003. </div>
  1004. </div>-->
  1005. <div class="noiframeBox">
  1006. <div
  1007. class="addPoint"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1">
  1012. <img
  1013. src="../../assets/icon/secondToolList/whiteBoard.png"
  1014. alt
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. />
  1017. <div style="margin: 5px 0">电子白板</div>
  1018. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1019. style="position: absolute;right: 33px;top: -30px;">
  1020. 分析
  1021. </div>
  1022. </div>
  1023. <div v-if="tooC == 3">
  1024. <img
  1025. src="../../assets/icon/secondToolList/mindMapping.png"
  1026. alt
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. />
  1029. <div style="margin: 5px 0">思维导图</div>
  1030. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1031. style="position: absolute;right: 33px;top: -30px;">
  1032. 分析
  1033. </div>
  1034. </div>
  1035. <div v-if="tooC == 6">
  1036. <img
  1037. src="../../assets/icon/secondToolList/doc.png"
  1038. alt
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. />
  1041. <div style="margin: 5px 0">协同文档</div>
  1042. </div>
  1043. <div v-if="tooC == 7">
  1044. <img
  1045. src="../../assets/icon/secondToolList/mindNetwork.png"
  1046. alt
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. />
  1049. <div style="margin: 5px 0">思维网格</div>
  1050. <!-- && worksStudent[toolIndex].length>0 -->
  1051. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1052. style="position: absolute;right: 33px;top: -30px;">
  1053. 分析
  1054. </div>
  1055. </div>
  1056. <div v-if="tooC == 8">
  1057. <img
  1058. src="../../assets/icon/secondToolList/library.png"
  1059. alt
  1060. @click="addTools(tooC, toolIndex, taskCount)"
  1061. />
  1062. <div style="margin: 5px 0">素材库</div>
  1063. </div>
  1064. <div v-if="tooC == 17">
  1065. <img
  1066. src="../../assets/icon/secondToolList/library.png"
  1067. alt
  1068. @click="addTools(tooC, toolIndex, taskCount)"
  1069. />
  1070. <div style="margin: 5px 0">学习资料</div>
  1071. </div>
  1072. <div v-if="tooC == 2">
  1073. <img
  1074. @click="addTools(tooC, toolIndex, taskCount)"
  1075. src="../../assets/icon/secondToolList/note.png"
  1076. alt
  1077. />
  1078. <div style="margin: 5px 0">便签</div>
  1079. </div>
  1080. <div v-if="tooC == 4">
  1081. <img
  1082. @click="addTools(tooC, toolIndex, taskCount)"
  1083. src="../../assets/icon/thirdToolList/ask.png"
  1084. alt
  1085. />
  1086. <div style="margin: 5px 0">问卷调查</div>
  1087. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1088. style="position: absolute;right: 153px;top: -30px;">
  1089. 分析
  1090. </div>
  1091. <div
  1092. class="upload_toolBtn"
  1093. v-if="tType === '1'"
  1094. @click="
  1095. openStatisticalAnalysis(
  1096. tooC,
  1097. toolIndex,
  1098. taskCount,
  1099. 45
  1100. )
  1101. "
  1102. style="position: absolute;right: 33px;top: -30px;"
  1103. >
  1104. 统计分析
  1105. </div>
  1106. </div>
  1107. <div v-if="tooC == 45">
  1108. <img
  1109. @click="addTools(tooC, toolIndex, taskCount)"
  1110. src="../../assets/icon/thirdToolList/choose.png"
  1111. alt
  1112. />
  1113. <div style="margin: 5px 0">选择题</div>
  1114. <!-- &&worksStudent[toolIndex].length > 0 -->
  1115. <div
  1116. class="upload_toolBtn"
  1117. v-if="tType == 1"
  1118. @click="
  1119. openChoseWorksDetailDialog(
  1120. tooC,
  1121. toolIndex,
  1122. taskCount,45
  1123. )
  1124. "
  1125. style="position: absolute;right: 33px;top: -30px;"
  1126. >
  1127. 分析
  1128. </div>
  1129. </div>
  1130. <!-- <div v-if="tooC == 5">
  1131. <img
  1132. @click="addTools(tooC, toolIndex, taskCount)"
  1133. src="../../assets/icon/thirdToolList/score.png"
  1134. alt
  1135. />
  1136. <div style="margin: 5px 0">量规评分</div>
  1137. </div> -->
  1138. <div v-if="tooC == 10">
  1139. <img
  1140. @click="addTools(tooC, toolIndex, taskCount)"
  1141. src="../../assets/icon/thirdToolList/time.png"
  1142. alt
  1143. />
  1144. <div style="margin: 5px 0">倒计时</div>
  1145. </div>
  1146. <div v-if="tooC == 15">
  1147. <img
  1148. @click="addTools(tooC, toolIndex, taskCount)"
  1149. src="../../assets/icon/thirdToolList/answer.png"
  1150. alt
  1151. />
  1152. <div style="margin: 5px 0">问答</div>
  1153. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1154. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1155. 分析
  1156. </div>
  1157. </div>
  1158. <div v-if="tooC == 26">
  1159. <img
  1160. @click="addTools(tooC, toolIndex, taskCount)"
  1161. src="../../assets/icon/thirdToolList/courseDesign.png"
  1162. alt
  1163. />
  1164. <div style="margin: 5px 0">课程设计</div>
  1165. </div>
  1166. <div v-if="tooC == 18">
  1167. <img
  1168. @click="addTools(tooC, toolIndex, taskCount)"
  1169. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1170. alt
  1171. />
  1172. <div style="margin: 5px 0">训练服务器</div>
  1173. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1174. style="position: absolute;right: 33px;top: -30px;">
  1175. 分析
  1176. </div>
  1177. </div>
  1178. <div v-if="tooC == 16">
  1179. <img
  1180. @click="addTools(tooC, toolIndex, taskCount)"
  1181. src="../../assets/icon/thirdToolList/work.png"
  1182. alt
  1183. />
  1184. <div style="margin: 5px 0">作业提交</div>
  1185. </div>
  1186. <div v-if="tooC == 50">
  1187. <img
  1188. @click="addTools(tooC, toolIndex, taskCount)"
  1189. src="../../assets/icon/thirdToolList/plwork.png"
  1190. alt
  1191. />
  1192. <div style="margin: 5px 0">批量上传</div>
  1193. </div>
  1194. <div v-if="tooC == 21">
  1195. <img
  1196. @click="addTools(tooC, toolIndex, taskCount)"
  1197. src="../../assets/icon/fourthToolList/program.png"
  1198. alt
  1199. />
  1200. <div style="margin: 5px 0">AIoT Blockly</div>
  1201. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1202. style="position: absolute;right: 33px;top: -30px;">
  1203. 分析
  1204. </div>
  1205. </div>
  1206. <!-- <div v-if="tooC == 22">
  1207. <img
  1208. @click="addTools(tooC, toolIndex, taskCount)"
  1209. src="../../assets/icon/fourthToolList/program.png"
  1210. alt
  1211. />
  1212. <div style="margin: 5px 0">AI体验</div>
  1213. </div> -->
  1214. <div v-if="tooC == 23">
  1215. <img
  1216. @click="addTools(tooC, toolIndex, taskCount)"
  1217. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1218. alt
  1219. />
  1220. <div style="margin: 5px 0">AI Python</div>
  1221. </div>
  1222. <div v-if="tooC == 24">
  1223. <img
  1224. @click="addTools(tooC, toolIndex, taskCount)"
  1225. src="../../assets/icon/fourthToolList/AIprogram.png"
  1226. alt
  1227. />
  1228. <div style="margin: 5px 0">AI Blockly</div>
  1229. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1230. style="position: absolute;right: 33px;top: -30px;">
  1231. 分析
  1232. </div>
  1233. </div>
  1234. <div v-if="tooC == 25">
  1235. <img
  1236. @click="addTools(tooC, toolIndex, taskCount)"
  1237. src="../../assets/icon/thirdToolList/evalua.png"
  1238. alt
  1239. />
  1240. <div style="margin: 5px 0">目标管理</div>
  1241. </div>
  1242. <div v-if="tooC == 31">
  1243. <img
  1244. @click="addTools(tooC, toolIndex, taskCount)"
  1245. src="../../assets/icon/secondToolList/networkPanel.png"
  1246. alt
  1247. />
  1248. <div style="margin: 5px 0">数学画板</div>
  1249. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1250. style="position: absolute;right: 33px;top: -30px;">
  1251. 分析
  1252. </div>
  1253. </div>
  1254. <div v-if="tooC == 28">
  1255. <img
  1256. @click="addTools(tooC, toolIndex, taskCount)"
  1257. src="../../assets/icon/secondToolList/translation.png"
  1258. alt
  1259. />
  1260. <div style="margin: 5px 0">翻译</div>
  1261. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1262. style="position: absolute;right: 33px;top: -30px;">
  1263. 分析
  1264. </div>
  1265. </div>
  1266. <div v-if="tooC == 37">
  1267. <img
  1268. @click="addTools(tooC, toolIndex, taskCount)"
  1269. src="../../assets/icon/secondToolList/mohe.png"
  1270. alt
  1271. />
  1272. <div style="margin: 5px 0">魔盒识字</div>
  1273. </div>
  1274. <div v-if="tooC == 38">
  1275. <img
  1276. @click="addTools(tooC, toolIndex, taskCount)"
  1277. src="../../assets/icon/secondToolList/24game.png"
  1278. alt
  1279. />
  1280. <div style="margin: 5px 0">24点</div>
  1281. </div>
  1282. <div v-if="tooC == 39">
  1283. <img
  1284. @click="addTools(tooC, toolIndex, taskCount)"
  1285. src="../../assets/icon/secondToolList/GeoGebra.png"
  1286. alt
  1287. />
  1288. <div style="margin: 5px 0">GeoGebra</div>
  1289. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1290. style="position: absolute;right: 33px;top: -30px;">
  1291. 分析
  1292. </div>
  1293. </div>
  1294. <div v-if="tooC == 32">
  1295. <img
  1296. @click="addTools(tooC, toolIndex, taskCount)"
  1297. src="../../assets/icon/thirdToolList/code.png"
  1298. alt
  1299. />
  1300. <div style="margin: 5px 0">源码编辑</div>
  1301. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1302. style="position: absolute;right: 153px;top: -42px;">
  1303. 分析
  1304. </div>
  1305. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1306. style="position: absolute;left: 110px;bottom: 30px;">
  1307. 上传文件
  1308. <input type="file" accept="*" style="display: none"
  1309. @change="beforeUpload1($event, 7, toolIndex)" />
  1310. </div> -->
  1311. </div>
  1312. <div v-if="tooC == 40">
  1313. <img
  1314. @click="addTools(tooC, toolIndex, taskCount)"
  1315. src="../../assets/icon/secondToolList/eval.png"
  1316. alt
  1317. />
  1318. <div style="margin: 5px 0">个人评价</div>
  1319. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1320. style="position: absolute;right: 33px;top: -30px;">
  1321. 分析
  1322. </div>
  1323. </div>
  1324. <div v-if="tooC == 41">
  1325. <img
  1326. @click="addTools(tooC, toolIndex, taskCount)"
  1327. src="../../assets/icon/thirdToolList/select.png"
  1328. alt
  1329. />
  1330. <div style="margin: 5px 0">选择匹配</div>
  1331. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1332. style="position: absolute;right: 33px;top: -30px;">
  1333. 分析
  1334. </div>
  1335. </div>
  1336. <div v-if="tooC == 44">
  1337. <img
  1338. @click="addTools(tooC, toolIndex, taskCount)"
  1339. src="../../assets/icon/thirdToolList/hanClass.png"
  1340. alt
  1341. />
  1342. <div style="margin: 5px 0">汉字宫</div>
  1343. </div>
  1344. <div v-if="tooC == 47">
  1345. <img
  1346. @click="addTools(tooC, toolIndex, taskCount)"
  1347. src="../../assets/icon/fourthToolList/conSentences.png"
  1348. alt
  1349. />
  1350. <div style="margin: 5px 0">排序</div>
  1351. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1352. style="position: absolute;right: 33px;top: -30px;">
  1353. 分析
  1354. </div>
  1355. </div>
  1356. <div v-if="tooC == 48">
  1357. <img
  1358. @click="addTools(tooC, toolIndex, taskCount)"
  1359. src="../../assets/icon/fourthToolList/table.png"
  1360. alt
  1361. />
  1362. <div style="margin: 5px 0">表格</div>
  1363. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1364. style="position: absolute;right: 33px;top: -30px;">
  1365. 分析
  1366. </div>
  1367. </div>
  1368. <div v-if="tooC == 52">
  1369. <img
  1370. @click="addTools(tooC, toolIndex, taskCount)"
  1371. src="../../assets/icon/fourthToolList/text.png"
  1372. alt
  1373. />
  1374. <div style="margin: 5px 0">文档</div>
  1375. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1376. style="position: absolute;right: 33px;top: -30px;">
  1377. 分析
  1378. </div>
  1379. </div>
  1380. <div v-if="tooC == 49">
  1381. <img
  1382. @click="addTools(tooC, toolIndex, taskCount)"
  1383. src="../../assets/icon/fourthToolList/group.png"
  1384. alt
  1385. />
  1386. <div style="margin: 5px 0">学生分组</div>
  1387. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1388. style="position: absolute;right: 33px;top: -30px;">
  1389. 分析
  1390. </div>
  1391. </div>
  1392. <div v-if="tooC == 57">
  1393. <img
  1394. @click="addTools(tooC, toolIndex, taskCount)"
  1395. src="../../assets/icon/fourthToolList/cocopi.png"
  1396. alt
  1397. />
  1398. <div style="margin: 5px 0">CocoPi</div>
  1399. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1400. style="position: absolute;right: 33px;top: -30px;">
  1401. 分析
  1402. </div>
  1403. </div>
  1404. <div v-if="tooC == 58">
  1405. <img
  1406. @click="addTools(tooC, toolIndex, taskCount)"
  1407. src="../../assets/icon/fourthToolList/car.png"
  1408. alt
  1409. />
  1410. <div style="margin: 5px 0">模拟驾驶</div>
  1411. </div>
  1412. <div v-if="tooC == 59">
  1413. <img
  1414. @click="addTools(tooC, toolIndex, taskCount)"
  1415. src="../../assets/icon/fourthToolList/lineSearch.png"
  1416. alt
  1417. />
  1418. <div style="margin: 5px 0">路径搜索</div>
  1419. </div>
  1420. <div v-if="tooC == 60">
  1421. <img
  1422. @click="addTools(tooC, toolIndex, taskCount)"
  1423. src="../../assets/icon/fourthToolList/deepLearning.png"
  1424. alt
  1425. />
  1426. <div style="margin: 5px 0">深度学习</div>
  1427. </div>
  1428. <div v-if="tooC == 61">
  1429. <img
  1430. @click="addTools(tooC, toolIndex, taskCount)"
  1431. src="../../assets/icon/fourthToolList/allHistory.png"
  1432. alt
  1433. />
  1434. <div style="margin: 5px 0">全历史</div>
  1435. </div>
  1436. <div v-if="tooC == 62">
  1437. <img
  1438. @click="addTools(tooC, toolIndex, taskCount)"
  1439. src="../../assets/icon/fourthToolList/interVideo.png"
  1440. alt
  1441. />
  1442. <div style="margin: 5px 0">交互视频</div>
  1443. </div>
  1444. <div v-if="tooC == 63">
  1445. <img
  1446. @click="addTools(tooC, toolIndex, taskCount)"
  1447. src="../../assets/icon/fourthToolList/Wood.png"
  1448. alt
  1449. />
  1450. <div style="margin: 5px 0">海龟编程</div>
  1451. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. 分析
  1454. </div>
  1455. </div>
  1456. <div v-if="tooC == 71">
  1457. <img
  1458. @click="addTools(tooC, toolIndex, taskCount)"
  1459. src="../../assets/icon/fourthToolList/chatgpt.png"
  1460. alt
  1461. />
  1462. <div style="margin: 5px 0">AI智能体</div>
  1463. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1464. style="position: absolute;right: 33px;top: -30px;">
  1465. 分析
  1466. </div>
  1467. </div>
  1468. <div v-if="tooC == 72">
  1469. <img
  1470. style="height: 85px;object-fit: cover;"
  1471. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1472. @click="addTools(tooC, toolIndex, taskCount)"
  1473. :src="tool.appJson.json.icon"
  1474. alt
  1475. />
  1476. <img
  1477. v-else
  1478. @click="addTools(tooC, toolIndex, taskCount)"
  1479. src="../../assets/icon/firstToolList/appStore.png"
  1480. alt
  1481. />
  1482. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1483. <!-- content to trigger tooltip here -->
  1484. <div class="Ovh">
  1485. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1486. </div>
  1487. </el-tooltip>
  1488. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1489. style="position: absolute;right: 33px;top: -30px;">
  1490. 分析
  1491. </div>
  1492. </div>
  1493. <div v-if="tooC == 65">
  1494. <img
  1495. @click="addTools(tooC, toolIndex, taskCount)"
  1496. src="../../assets/icon/firstToolList/pickPeople.png"
  1497. alt
  1498. />
  1499. <div style="margin: 5px 0">挑人</div>
  1500. </div>
  1501. <div v-if="tooC == 66">
  1502. <img
  1503. @click="addTools(tooC, toolIndex, taskCount)"
  1504. src="../../assets/icon/secondToolList/formulaEdi.png"
  1505. alt
  1506. />
  1507. <div style="margin: 5px 0">公式编辑</div>
  1508. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1509. style="position: absolute;right: 33px;top: -30px;">
  1510. 分析
  1511. </div>
  1512. </div>
  1513. <div v-if="tooC == 67">
  1514. <img
  1515. @click="addTools(tooC, toolIndex, taskCount)"
  1516. src="../../assets/icon/secondToolList/molStr.png"
  1517. alt
  1518. />
  1519. <div style="margin: 5px 0">分子结构</div>
  1520. </div>
  1521. <div v-if="tooC == 68">
  1522. <img
  1523. @click="addTools(tooC, toolIndex, taskCount)"
  1524. src="../../assets/icon/secondToolList/timeAxis.png"
  1525. alt
  1526. />
  1527. <div style="margin: 5px 0">时间轴</div>
  1528. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1529. style="position: absolute;right: 33px;top: -30px;">
  1530. 分析
  1531. </div> -->
  1532. </div>
  1533. <div v-if="tooC == 69">
  1534. <img
  1535. @click="addTools(tooC, toolIndex, taskCount)"
  1536. src="../../assets/icon/secondToolList/english.png"
  1537. alt
  1538. />
  1539. <div style="margin: 5px 0">英语写作</div>
  1540. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1541. style="position: absolute;right: 33px;top: -30px;">
  1542. 分析
  1543. </div>
  1544. </div>
  1545. <div v-if="tooC == 70">
  1546. <img
  1547. @click="addTools(tooC, toolIndex, taskCount)"
  1548. src="../../assets/icon/thirdToolList/englishVoice.png"
  1549. alt
  1550. />
  1551. <div style="margin: 5px 0">英语口语</div>
  1552. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1553. style="position: absolute;right: 33px;top: -30px;">
  1554. 分析
  1555. </div>
  1556. </div>
  1557. </div>
  1558. </div>
  1559. </div>
  1560. <div
  1561. class="tooldetail"
  1562. v-if="tool.toolDetail != ''"
  1563. :class="{
  1564. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1565. }"
  1566. >
  1567. <!-- <div class="toolTitle">工具描述</div> -->
  1568. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1569. <div
  1570. style="height:100%;"
  1571. v-html="renderedFormula(tool.toolDetail)"
  1572. v-if="toolDetailIndex != toolIndex"
  1573. ></div>
  1574. <div v-else @click.stop="" style="height:100%;">
  1575. <textarea
  1576. @change="
  1577. () => {
  1578. $forceUpdate();
  1579. }
  1580. "
  1581. class="checkTextArea"
  1582. rows="3"
  1583. v-autoHeight="70"
  1584. type="text"
  1585. placeholder="请输入任务描述"
  1586. v-model="updateToolDetailInner"
  1587. ></textarea>
  1588. </div>
  1589. </div>
  1590. <el-button
  1591. type="primary"
  1592. v-if="tool.tool[0] == 32"
  1593. style="position: absolute; right: 30px; top: -45px"
  1594. @click="addImg($event)"
  1595. >上传作业<input
  1596. type="file"
  1597. accept="*"
  1598. style="display: none"
  1599. @change="beforeUpload1($event, 7, toolIndex)"
  1600. /></el-button>
  1601. <el-button
  1602. type="primary"
  1603. v-if="tool.tool[0] == 15"
  1604. style="position: absolute; right: 30px; top: -45px"
  1605. @click="openWordCloud(toolIndex)"
  1606. >生成词云</el-button
  1607. >
  1608. <el-button
  1609. type="primary"
  1610. v-if="
  1611. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1612. "
  1613. style="position: absolute; right: 30px; top: -45px"
  1614. @click="uploadWorks(toolIndex)"
  1615. >导出作业</el-button
  1616. >
  1617. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1618. position: absolute;
  1619. right: 30px;
  1620. transform: translateY(-130%);
  1621. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1622. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1623. </div>
  1624. <div
  1625. v-if="
  1626. tType &&
  1627. tType == 2 &&
  1628. !sIsOpen &&
  1629. tool.tool.indexOf(16) != -1
  1630. "
  1631. class="worksBox"
  1632. >
  1633. <div
  1634. class="zuoyeYulan"
  1635. v-if="workStudent[toolIndex].length > 0"
  1636. >
  1637. <span class="worksTitle">作业预览</span>
  1638. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1639. </div>
  1640. <div
  1641. class="worksDetailBox"
  1642. v-if="workStudent[toolIndex].length > 0"
  1643. >
  1644. <div
  1645. class="works"
  1646. style="
  1647. width: 200px;
  1648. height: 140px;
  1649. margin: 10px 10px 10px 0;
  1650. box-shadow: 0 0 6px 1px #dfdada;
  1651. "
  1652. v-for="(w, wIndex) in workStudent[toolIndex]"
  1653. :key="wIndex"
  1654. >
  1655. <div class="workImg" v-if="w.type == 0">
  1656. <img
  1657. :src="w.works"
  1658. @click="previewImg(w.works, w)"
  1659. alt
  1660. />
  1661. <div
  1662. class="answerScore"
  1663. v-if="w.score"
  1664. @click.stop="openScore(w)"
  1665. :class="{
  1666. rightW:
  1667. w.userid == userid || tType == 1 || tType == 4
  1668. }"
  1669. >
  1670. {{ JSON.parse(w.score).wScore }}分
  1671. </div>
  1672. <div
  1673. class="answerScore"
  1674. @click.stop="openScore(w)"
  1675. v-else-if="courseDetail.userid == userid"
  1676. :class="{
  1677. rightW:
  1678. w.userid == userid || tType == 1 || tType == 4
  1679. }"
  1680. >
  1681. 评分
  1682. </div>
  1683. <div
  1684. class="stuLookScore"
  1685. v-if="
  1686. w.userid == userid ||
  1687. (tType == 1 &&
  1688. courseDetail.state == 6 &&
  1689. ((chapInfoList[courseType].chapterInfo[0]
  1690. .taskJson[taskCount].eList &&
  1691. chapInfoList[courseType].chapterInfo[0]
  1692. .taskJson[taskCount].eList.length) ||
  1693. (tool.eList && tool.eList.length)))
  1694. "
  1695. >
  1696. <el-popover
  1697. placement="top"
  1698. width="318"
  1699. trigger="hover"
  1700. >
  1701. <markScore
  1702. :loading="AIloading[toolIndex][wIndex].loading"
  1703. :markScoreVisible="markScoreVisible"
  1704. :ref="`markSco${toolIndex}${wIndex}`"
  1705. @updateLoading="updateLoading"
  1706. @updateDocSco="updateDocSco"
  1707. @refreshOther="refreshOther"
  1708. @markScoreDig="markScoreDig"
  1709. :tool="tool"
  1710. :wIndex="wIndex"
  1711. :scoCon="w"
  1712. :toolIndex="toolIndex"
  1713. :key="refreshKey"
  1714. :stage="courseType"
  1715. :task="taskCount"
  1716. :scoTit="
  1717. chapInfoList[courseType].chapterInfo[0]
  1718. .taskJson[taskCount].eList
  1719. "
  1720. >
  1721. </markScore>
  1722. <div
  1723. @click="
  1724. markScoreDig2(
  1725. w.sName,
  1726. worksStudent,
  1727. w.userid,
  1728. toolIndex,
  1729. chapInfoList[courseType].chapterInfo[0]
  1730. .taskJson[taskCount].eList,
  1731. AIloading[toolIndex][wIndex].loading,
  1732. tool
  1733. )
  1734. "
  1735. slot="reference"
  1736. >
  1737. <span v-if="AIloading[toolIndex][wIndex].sco">
  1738. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1739. </span>
  1740. <span v-else>
  1741. 评分
  1742. </span>
  1743. </div>
  1744. </el-popover>
  1745. </div>
  1746. <img
  1747. class="deleteImg"
  1748. src="../../assets/deleteworks.png"
  1749. v-if="
  1750. w.userid == userid || tType == 1 || tType == 4
  1751. "
  1752. @click.stop="deleteWorks(w.wid)"
  1753. alt
  1754. />
  1755. </div>
  1756. <div class="workImg" v-if="w.type == 1">
  1757. <img :src="word" @click="openFile(w.works)" alt />
  1758. <div
  1759. class="answerScore"
  1760. v-if="w.score"
  1761. @click.stop="openScore(w)"
  1762. :class="{
  1763. rightW:
  1764. w.userid == userid || tType == 1 || tType == 4
  1765. }"
  1766. >
  1767. {{ JSON.parse(w.score).wScore }}分
  1768. </div>
  1769. <div
  1770. class="answerScore"
  1771. @click.stop="openScore(w)"
  1772. v-else-if="courseDetail.userid == userid"
  1773. :class="{
  1774. rightW:
  1775. w.userid == userid || tType == 1 || tType == 4
  1776. }"
  1777. >
  1778. 评分
  1779. </div>
  1780. <div
  1781. class="stuLookScore"
  1782. v-if="
  1783. w.userid == userid ||
  1784. (tType == 1 &&
  1785. courseDetail.state == 6 &&
  1786. ((chapInfoList[courseType].chapterInfo[0]
  1787. .taskJson[taskCount].eList &&
  1788. chapInfoList[courseType].chapterInfo[0]
  1789. .taskJson[taskCount].eList.length) ||
  1790. (tool.eList && tool.eList.length)))
  1791. "
  1792. >
  1793. <el-popover
  1794. placement="top"
  1795. width="318"
  1796. trigger="hover"
  1797. >
  1798. <markScore
  1799. :loading="AIloading[toolIndex][wIndex].loading"
  1800. :markScoreVisible="markScoreVisible"
  1801. :ref="`markSco${toolIndex}${wIndex}`"
  1802. @updateLoading="updateLoading"
  1803. @updateDocSco="updateDocSco"
  1804. @refreshOther="refreshOther"
  1805. @markScoreDig="markScoreDig"
  1806. :tool="tool"
  1807. :wIndex="wIndex"
  1808. :scoCon="w"
  1809. :toolIndex="toolIndex"
  1810. :key="refreshKey"
  1811. :stage="courseType"
  1812. :task="taskCount"
  1813. :scoTit="
  1814. chapInfoList[courseType].chapterInfo[0]
  1815. .taskJson[taskCount].eList
  1816. "
  1817. >
  1818. </markScore>
  1819. <div
  1820. @click="
  1821. markScoreDig2(
  1822. w.sName,
  1823. worksStudent,
  1824. w.userid,
  1825. toolIndex,
  1826. chapInfoList[courseType].chapterInfo[0]
  1827. .taskJson[taskCount].eList,
  1828. AIloading[toolIndex][wIndex].loading,
  1829. tool
  1830. )
  1831. "
  1832. slot="reference"
  1833. >
  1834. <span v-if="AIloading[toolIndex][wIndex].sco">
  1835. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1836. </span>
  1837. <span v-else>
  1838. 评分
  1839. </span>
  1840. </div>
  1841. </el-popover>
  1842. </div>
  1843. <img
  1844. class="deleteImg"
  1845. src="../../assets/deleteworks.png"
  1846. v-if="
  1847. w.userid == userid || tType == 1 || tType == 4
  1848. "
  1849. @click.stop="deleteWorks(w.wid)"
  1850. alt
  1851. />
  1852. </div>
  1853. <div class="workImg" v-if="w.type == 3">
  1854. <img
  1855. style="cursor: pointer"
  1856. :src="video"
  1857. @click="openVideo(w)"
  1858. alt
  1859. />
  1860. <div
  1861. class="answerScore"
  1862. v-if="w.score"
  1863. @click.stop="openScore(w)"
  1864. :class="{
  1865. rightW:
  1866. w.userid == userid || tType == 1 || tType == 4
  1867. }"
  1868. >
  1869. {{ JSON.parse(w.score).wScore }}分
  1870. </div>
  1871. <div
  1872. class="answerScore"
  1873. @click.stop="openScore(w)"
  1874. v-else-if="courseDetail.userid == userid"
  1875. :class="{
  1876. rightW:
  1877. w.userid == userid || tType == 1 || tType == 4
  1878. }"
  1879. >
  1880. 评分
  1881. </div>
  1882. <div
  1883. class="stuLookScore"
  1884. v-if="
  1885. w.userid == userid ||
  1886. (tType == 1 &&
  1887. courseDetail.state == 6 &&
  1888. ((chapInfoList[courseType].chapterInfo[0]
  1889. .taskJson[taskCount].eList &&
  1890. chapInfoList[courseType].chapterInfo[0]
  1891. .taskJson[taskCount].eList.length) ||
  1892. (tool.eList && tool.eList.length)))
  1893. "
  1894. >
  1895. <el-popover
  1896. placement="top"
  1897. width="318"
  1898. trigger="hover"
  1899. >
  1900. <markScore
  1901. :loading="AIloading[toolIndex][wIndex].loading"
  1902. :markScoreVisible="markScoreVisible"
  1903. :ref="`markSco${toolIndex}${wIndex}`"
  1904. @updateLoading="updateLoading"
  1905. @updateDocSco="updateDocSco"
  1906. @refreshOther="refreshOther"
  1907. @markScoreDig="markScoreDig"
  1908. :tool="tool"
  1909. :wIndex="wIndex"
  1910. :scoCon="w"
  1911. :toolIndex="toolIndex"
  1912. :key="refreshKey"
  1913. :stage="courseType"
  1914. :task="taskCount"
  1915. :scoTit="
  1916. chapInfoList[courseType].chapterInfo[0]
  1917. .taskJson[taskCount].eList
  1918. "
  1919. >
  1920. </markScore>
  1921. <div
  1922. @click="
  1923. markScoreDig2(
  1924. w.sName,
  1925. worksStudent,
  1926. w.userid,
  1927. toolIndex,
  1928. chapInfoList[courseType].chapterInfo[0]
  1929. .taskJson[taskCount].eList,
  1930. AIloading[toolIndex][wIndex].loading,
  1931. tool
  1932. )
  1933. "
  1934. slot="reference"
  1935. >
  1936. <span v-if="AIloading[toolIndex][wIndex].sco">
  1937. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1938. </span>
  1939. <span v-else>
  1940. 评分
  1941. </span>
  1942. </div>
  1943. </el-popover>
  1944. </div>
  1945. <img
  1946. class="deleteImg"
  1947. src="../../assets/deleteworks.png"
  1948. v-if="
  1949. w.userid == userid || tType == 1 || tType == 4
  1950. "
  1951. @click.stop="deleteWorks(w.wid)"
  1952. alt
  1953. />
  1954. </div>
  1955. <div class="workImg" v-if="w.type == 12">
  1956. <img
  1957. style="cursor: pointer"
  1958. :src="word2"
  1959. @click="downloadFile(w.works,w.userid)"
  1960. alt
  1961. />
  1962. <div
  1963. class="answerScore"
  1964. v-if="w.score"
  1965. @click.stop="openScore(w)"
  1966. :class="{
  1967. rightW:
  1968. w.userid == userid || tType == 1 || tType == 4
  1969. }"
  1970. >
  1971. {{ JSON.parse(w.score).wScore }}分
  1972. </div>
  1973. <div
  1974. class="answerScore"
  1975. @click.stop="openScore(w)"
  1976. v-else-if="courseDetail.userid == userid"
  1977. :class="{
  1978. rightW:
  1979. w.userid == userid || tType == 1 || tType == 4
  1980. }"
  1981. >
  1982. 评分
  1983. </div>
  1984. <div
  1985. class="stuLookScore"
  1986. v-if="
  1987. w.userid == userid ||
  1988. (tType == 1 &&
  1989. courseDetail.state == 6 &&
  1990. ((chapInfoList[courseType].chapterInfo[0]
  1991. .taskJson[taskCount].eList &&
  1992. chapInfoList[courseType].chapterInfo[0]
  1993. .taskJson[taskCount].eList.length) ||
  1994. (tool.eList && tool.eList.length)))
  1995. "
  1996. >
  1997. <el-popover
  1998. placement="top"
  1999. width="318"
  2000. trigger="hover"
  2001. >
  2002. <markScore
  2003. :loading="AIloading[toolIndex][wIndex].loading"
  2004. :markScoreVisible="markScoreVisible"
  2005. :ref="`markSco${toolIndex}${wIndex}`"
  2006. @updateLoading="updateLoading"
  2007. @updateDocSco="updateDocSco"
  2008. @refreshOther="refreshOther"
  2009. @markScoreDig="markScoreDig"
  2010. :tool="tool"
  2011. :wIndex="wIndex"
  2012. :scoCon="w"
  2013. :toolIndex="toolIndex"
  2014. :key="refreshKey"
  2015. :stage="courseType"
  2016. :task="taskCount"
  2017. :scoTit="
  2018. chapInfoList[courseType].chapterInfo[0]
  2019. .taskJson[taskCount].eList
  2020. "
  2021. >
  2022. </markScore>
  2023. <div
  2024. @click="
  2025. markScoreDig2(
  2026. w.sName,
  2027. worksStudent,
  2028. w.userid,
  2029. toolIndex,
  2030. chapInfoList[courseType].chapterInfo[0]
  2031. .taskJson[taskCount].eList,
  2032. AIloading[toolIndex][wIndex].loading,
  2033. tool
  2034. )
  2035. "
  2036. slot="reference"
  2037. >
  2038. <span v-if="AIloading[toolIndex][wIndex].sco">
  2039. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2040. </span>
  2041. <span v-else>
  2042. 评分
  2043. </span>
  2044. </div>
  2045. </el-popover>
  2046. </div>
  2047. <img
  2048. class="deleteImg"
  2049. src="../../assets/deleteworks.png"
  2050. v-if="
  2051. w.userid == userid || tType == 1 || tType == 4
  2052. "
  2053. @click.stop="deleteWorks(w.wid)"
  2054. alt
  2055. />
  2056. </div>
  2057. <div class="worksName">
  2058. <div>{{ w.sName }}</div>
  2059. </div>
  2060. </div>
  2061. </div>
  2062. </div>
  2063. <div
  2064. v-if="
  2065. tType &&
  2066. tType == 2 &&
  2067. !sIsOpen &&
  2068. tool.tool.indexOf(32) != -1
  2069. "
  2070. class="worksBox"
  2071. >
  2072. <div
  2073. class="zuoyeYulan"
  2074. v-if="workStudent[toolIndex].length > 0"
  2075. >
  2076. <span class="worksTitle">作业预览</span>
  2077. </div>
  2078. <div
  2079. class="worksDetailBox"
  2080. v-if="workStudent[toolIndex].length > 0"
  2081. >
  2082. <div
  2083. class="works"
  2084. style="
  2085. width: 200px;
  2086. height: 140px;
  2087. margin: 10px 10px 10px 0;
  2088. box-shadow: 0 0 6px 1px #dfdada;
  2089. "
  2090. v-for="(w, wIndex) in workStudent[toolIndex]"
  2091. :key="wIndex"
  2092. >
  2093. <div class="workImg">
  2094. <img
  2095. :src="word2"
  2096. @click="downloadFile(w.works,w.userid)"
  2097. alt
  2098. />
  2099. <div
  2100. class="answerScore"
  2101. v-if="w.score"
  2102. @click.stop="openScore(w)"
  2103. :class="{
  2104. rightW:
  2105. w.userid == userid || tType == 1 || tType == 4
  2106. }"
  2107. >
  2108. {{ JSON.parse(w.score).wScore }}分
  2109. </div>
  2110. <div
  2111. class="answerScore"
  2112. @click.stop="openScore(w)"
  2113. v-else-if="courseDetail.userid == userid"
  2114. :class="{
  2115. rightW:
  2116. w.userid == userid || tType == 1 || tType == 4
  2117. }"
  2118. >
  2119. 评分
  2120. </div>
  2121. <img
  2122. class="deleteImg"
  2123. src="../../assets/deleteworks.png"
  2124. v-if="
  2125. w.userid == userid || tType == 1 || tType == 4
  2126. "
  2127. @click.stop="deleteWorks(w.wid)"
  2128. alt
  2129. />
  2130. </div>
  2131. <div class="worksName">
  2132. <div>{{ w.sName }}</div>
  2133. </div>
  2134. </div>
  2135. </div>
  2136. </div>
  2137. <div
  2138. v-if="
  2139. tType &&
  2140. tType == 2 &&
  2141. !sIsOpen &&
  2142. tool.tool.indexOf(57) != -1
  2143. "
  2144. class="worksBox"
  2145. >
  2146. <div
  2147. class="zuoyeYulan"
  2148. v-if="workStudent[toolIndex].length > 0"
  2149. >
  2150. <span class="worksTitle">作业预览</span>
  2151. </div>
  2152. <div
  2153. class="worksDetailBox"
  2154. v-if="workStudent[toolIndex].length > 0"
  2155. >
  2156. <div
  2157. class="works"
  2158. style="
  2159. width: 200px;
  2160. height: 140px;
  2161. margin: 10px 10px 10px 0;
  2162. box-shadow: 0 0 6px 1px #dfdada;
  2163. "
  2164. v-for="(w, wIndex) in workStudent[toolIndex]"
  2165. :key="wIndex"
  2166. >
  2167. <div class="workImg">
  2168. <img
  2169. :src="word2"
  2170. @click="downloadFile(w.works,w.userid)"
  2171. v-if="w.type == 12"
  2172. alt
  2173. />
  2174. <img
  2175. :src="word2"
  2176. @click="
  2177. openCocoPi(57, toolIndex, w.userid, w.sName)
  2178. "
  2179. v-else-if="w.type == 15"
  2180. alt
  2181. />
  2182. <div
  2183. class="answerScore"
  2184. v-if="w.score"
  2185. @click.stop="openScore(w)"
  2186. :class="{
  2187. rightW:
  2188. w.userid == userid || tType == 1 || tType == 4
  2189. }"
  2190. >
  2191. {{ JSON.parse(w.score).wScore }}分
  2192. </div>
  2193. <div
  2194. class="answerScore"
  2195. @click.stop="openScore(w)"
  2196. v-else-if="courseDetail.userid == userid"
  2197. :class="{
  2198. rightW:
  2199. w.userid == userid || tType == 1 || tType == 4
  2200. }"
  2201. >
  2202. 评分
  2203. </div>
  2204. <img
  2205. class="deleteImg"
  2206. src="../../assets/deleteworks.png"
  2207. v-if="
  2208. w.userid == userid || tType == 1 || tType == 4
  2209. "
  2210. @click.stop="deleteWorks(w.wid)"
  2211. alt
  2212. />
  2213. </div>
  2214. <div class="worksName">
  2215. <div>{{ w.sName }}</div>
  2216. </div>
  2217. </div>
  2218. </div>
  2219. </div>
  2220. <div
  2221. v-if="
  2222. tType &&
  2223. tType == 2 &&
  2224. !sIsOpen &&
  2225. tool.tool.indexOf(4) != -1
  2226. "
  2227. class="worksBox"
  2228. >
  2229. <div
  2230. class="zuoyeYulan"
  2231. v-if="workStudent[toolIndex].length > 0"
  2232. >
  2233. <span class="worksTitle">作业预览</span>
  2234. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2235. </div>
  2236. <div
  2237. class="worksDetailBox"
  2238. v-if="workStudent[toolIndex].length > 0"
  2239. >
  2240. <div
  2241. class="isWorksName2"
  2242. v-for="(w, wIndex) in workStudent[toolIndex]"
  2243. :key="wIndex"
  2244. @click="
  2245. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2246. "
  2247. >
  2248. {{ w.sName }}
  2249. <img
  2250. class="deleteImg deleteImg2"
  2251. src="../../assets/deleteworks.png"
  2252. v-if="w.userid == userid || tType == 1 || tType == 4"
  2253. @click.stop="deleteWorks(w.wid)"
  2254. alt
  2255. />
  2256. </div>
  2257. <!-- <div
  2258. class="works"
  2259. style="
  2260. width: 200px;
  2261. height: 140px;
  2262. border-radius: 10px;
  2263. box-shadow: 0 0 6px 1px #dfdada;
  2264. overflow: hidden;
  2265. "
  2266. v-for="(w, wIndex) in workStudent[toolIndex]"
  2267. :key="wIndex"
  2268. >
  2269. <div class="workImg">
  2270. <img
  2271. src="../../assets/icon/works/noImg.png"
  2272. @click="
  2273. openTools(
  2274. 4,
  2275. toolIndex,
  2276. taskCount,
  2277. w.works,
  2278. w.sName
  2279. )
  2280. "
  2281. alt
  2282. />
  2283. </div>
  2284. <div class="worksName">
  2285. <div>{{ w.sName }}</div>
  2286. <div>{{ w.time }}</div>
  2287. </div>
  2288. </div> -->
  2289. </div>
  2290. </div>
  2291. <div
  2292. v-if="
  2293. tType &&
  2294. ((tType == 2 && sIsOpen == true) ||
  2295. tType == 1 ||
  2296. tType == 4) &&
  2297. tool.tool.indexOf(62) != -1
  2298. "
  2299. class="worksBox"
  2300. >
  2301. <div
  2302. class="zuoyeYulan"
  2303. v-if="
  2304. worksStudent.length &&
  2305. worksStudent[toolIndex].length > 0
  2306. "
  2307. >
  2308. <div class="worksTop">
  2309. <div>作业预览</div>
  2310. <div
  2311. class="corOpen"
  2312. @click="contract(toolIndex)"
  2313. v-if="
  2314. isCloseList[toolIndex].isCloseBoolean &&
  2315. isCloseList[toolIndex].isClose == 0
  2316. "
  2317. >
  2318. 折叠
  2319. </div>
  2320. <div
  2321. class="corOpen"
  2322. @click="contract(toolIndex)"
  2323. v-if="isCloseList[toolIndex].isClose == 1"
  2324. >
  2325. 展开
  2326. </div>
  2327. </div>
  2328. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2329. </div>
  2330. <div>
  2331. <div
  2332. :id="'tool-' + toolIndex"
  2333. :style="{
  2334. height:
  2335. isCloseList[toolIndex].isClose == 1
  2336. ? retrnToolHeight('tool-' + toolIndex)
  2337. : 'auto',
  2338. overflow:
  2339. isCloseList[toolIndex].isClose == 1
  2340. ? 'hidden'
  2341. : 'unset'
  2342. }"
  2343. class="worksDetailBox"
  2344. v-if="
  2345. worksStudent.length &&
  2346. worksStudent[toolIndex].length > 0
  2347. "
  2348. >
  2349. <div
  2350. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2351. :key="wIndex"
  2352. class="isWorksName2"
  2353. @click="
  2354. openTools(
  2355. 62,
  2356. toolIndex,
  2357. taskCount,
  2358. w.works,
  2359. w.sName
  2360. )
  2361. "
  2362. >
  2363. {{ w.sName }}
  2364. <img
  2365. class="deleteImg deleteImg2"
  2366. src="../../assets/deleteworks.png"
  2367. v-if="
  2368. w.userid == userid || tType == 1 || tType == 4
  2369. "
  2370. @click.stop="deleteWorks(w.wid)"
  2371. alt
  2372. />
  2373. </div>
  2374. </div>
  2375. </div>
  2376. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2377. 未提交
  2378. </div>
  2379. <div
  2380. class="noWorksS"
  2381. v-if="noWorksS && noWorksS[toolIndex].length"
  2382. >
  2383. <div
  2384. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2385. :key="sIndex"
  2386. class="noWorksName"
  2387. >
  2388. <el-tooltip
  2389. effect="dark"
  2390. :content="s.student"
  2391. placement="top"
  2392. >
  2393. <span>{{ s.student }}</span>
  2394. </el-tooltip>
  2395. </div>
  2396. </div>
  2397. </div>
  2398. <div
  2399. v-if="
  2400. tType &&
  2401. tType == 2 &&
  2402. !sIsOpen &&
  2403. tool.tool.indexOf(62) != -1
  2404. "
  2405. class="worksBox"
  2406. >
  2407. <div
  2408. class="zuoyeYulan"
  2409. v-if="workStudent[toolIndex].length > 0"
  2410. >
  2411. <span class="worksTitle">作业预览</span>
  2412. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2413. </div>
  2414. <div
  2415. class="worksDetailBox"
  2416. v-if="workStudent[toolIndex].length > 0"
  2417. >
  2418. <div
  2419. class="isWorksName2"
  2420. v-for="(w, wIndex) in workStudent[toolIndex]"
  2421. :key="wIndex"
  2422. @click="
  2423. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2424. "
  2425. >
  2426. {{ w.sName }}
  2427. <img
  2428. class="deleteImg deleteImg2"
  2429. src="../../assets/deleteworks.png"
  2430. v-if="w.userid == userid || tType == 1 || tType == 4"
  2431. @click.stop="deleteWorks(w.wid)"
  2432. alt
  2433. />
  2434. </div>
  2435. </div>
  2436. </div>
  2437. <div
  2438. v-if="
  2439. tType &&
  2440. tType == 2 &&
  2441. !sIsOpen &&
  2442. tool.tool.indexOf(45) != -1
  2443. "
  2444. class="worksBox"
  2445. >
  2446. <div
  2447. class="zuoyeYulan"
  2448. v-if="workStudent[toolIndex].length > 0"
  2449. >
  2450. <span class="worksTitle">作业预览</span>
  2451. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2452. </div>
  2453. <div
  2454. class="worksDetailBox"
  2455. v-if="workStudent[toolIndex].length > 0"
  2456. >
  2457. <div
  2458. class="isWorksName2"
  2459. v-for="(w, wIndex) in workStudent[toolIndex]"
  2460. :key="wIndex"
  2461. @click="
  2462. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2463. "
  2464. >
  2465. {{ w.sName }}
  2466. <img
  2467. class="deleteImg deleteImg2"
  2468. src="../../assets/deleteworks.png"
  2469. v-if="w.userid == userid || tType == 1 || tType == 4"
  2470. @click.stop="deleteWorks(w.wid)"
  2471. alt
  2472. />
  2473. </div>
  2474. </div>
  2475. </div>
  2476. <div
  2477. v-if="
  2478. tType &&
  2479. tType == 2 &&
  2480. !sIsOpen &&
  2481. tool.tool.indexOf(69) != -1
  2482. "
  2483. class="worksBox"
  2484. >
  2485. <div
  2486. class="zuoyeYulan"
  2487. v-if="workStudent[toolIndex].length > 0"
  2488. >
  2489. <span class="worksTitle">作业预览</span>
  2490. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2491. </div>
  2492. <div
  2493. class="worksDetailBox"
  2494. v-if="workStudent[toolIndex].length > 0"
  2495. >
  2496. <div
  2497. class="isWorksName2"
  2498. v-for="(w, wIndex) in workStudent[toolIndex]"
  2499. :key="wIndex"
  2500. @click="
  2501. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2502. "
  2503. >
  2504. {{ w.sName }}
  2505. <img
  2506. class="deleteImg deleteImg2"
  2507. src="../../assets/deleteworks.png"
  2508. v-if="w.userid == userid || tType == 1 || tType == 4"
  2509. @click.stop="deleteWorks(w.wid)"
  2510. alt
  2511. />
  2512. </div>
  2513. </div>
  2514. </div>
  2515. <div
  2516. v-if="
  2517. tType &&
  2518. tType == 2 &&
  2519. !sIsOpen &&
  2520. tool.tool.indexOf(15) != -1
  2521. "
  2522. class="worksBox"
  2523. >
  2524. <div
  2525. class="zuoyeYulan"
  2526. v-if="workStudent[toolIndex].length > 0"
  2527. >
  2528. <span class="worksTitle">作业预览</span>
  2529. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2530. </div>
  2531. <div
  2532. class="worksDetailBox"
  2533. v-if="workStudent[toolIndex].length > 0"
  2534. >
  2535. <div
  2536. class="works"
  2537. v-for="(w, wIndex) in workStudent[toolIndex]"
  2538. :key="wIndex"
  2539. >
  2540. <div class="workImg">
  2541. <!-- <img
  2542. src="../../assets/icon/works/noImg.png"
  2543. @click="openTools(15, toolIndex, taskCount, w.works)"
  2544. alt=""
  2545. />-->
  2546. <div class="answerBg">
  2547. <!-- <div>{{ w.sName }}</div> -->
  2548. <el-tooltip
  2549. class="item"
  2550. effect="light"
  2551. :content="JSON.parse(w.works)[0].answer"
  2552. placement="top"
  2553. >
  2554. <div class="answerContent">
  2555. {{ JSON.parse(w.works)[0].answer }}
  2556. </div>
  2557. </el-tooltip>
  2558. <div
  2559. class="answerScore"
  2560. v-if="w.score"
  2561. @click.stop="openScore(w)"
  2562. :class="{
  2563. rightW:
  2564. w.userid == userid || tType == 1 || tType == 4
  2565. }"
  2566. >
  2567. {{ JSON.parse(w.score).wScore }}分
  2568. </div>
  2569. <div
  2570. class="answerScore"
  2571. @click.stop="openScore(w)"
  2572. v-else-if="courseDetail.userid == userid"
  2573. :class="{
  2574. rightW:
  2575. w.userid == userid || tType == 1 || tType == 4
  2576. }"
  2577. >
  2578. 评分
  2579. </div>
  2580. <img
  2581. class="deleteImg"
  2582. src="../../assets/deleteworks.png"
  2583. v-if="
  2584. w.userid == userid || tType == 1 || tType == 4
  2585. "
  2586. @click.stop="deleteWorks(w.wid)"
  2587. alt
  2588. />
  2589. </div>
  2590. <div class="comment">
  2591. <div class="worksName">
  2592. <div>{{ w.sName }}</div>
  2593. </div>
  2594. </div>
  2595. </div>
  2596. </div>
  2597. </div>
  2598. </div>
  2599. <div
  2600. v-if="
  2601. tType &&
  2602. tType == 2 &&
  2603. !sIsOpen &&
  2604. tool.tool.indexOf(1) != -1
  2605. "
  2606. class="worksBox"
  2607. >
  2608. <div
  2609. class="zuoyeYulan"
  2610. v-if="workStudent[toolIndex].length > 0"
  2611. >
  2612. <span class="worksTitle">作业预览</span>
  2613. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2614. </div>
  2615. <div
  2616. class="worksDetailBox"
  2617. v-if="workStudent[toolIndex].length > 0"
  2618. >
  2619. <div
  2620. class="works"
  2621. style="
  2622. width: 200px;
  2623. height: 140px;
  2624. margin: 10px 10px 10px 0;
  2625. box-shadow: 0 0 6px 1px #dfdada;
  2626. "
  2627. v-for="(w, wIndex) in workStudent[toolIndex]"
  2628. :key="wIndex"
  2629. >
  2630. <div class="workImg">
  2631. <img
  2632. :src="w.works"
  2633. @click="previewImg(w.works, w)"
  2634. alt
  2635. />
  2636. <div
  2637. class="answerScore"
  2638. v-if="w.score"
  2639. @click.stop="openScore(w)"
  2640. :class="{
  2641. rightW:
  2642. w.userid == userid || tType == 1 || tType == 4
  2643. }"
  2644. >
  2645. {{ JSON.parse(w.score).wScore }}分
  2646. </div>
  2647. <div
  2648. class="answerScore"
  2649. @click.stop="openScore(w)"
  2650. v-else-if="courseDetail.userid == userid"
  2651. :class="{
  2652. rightW:
  2653. w.userid == userid || tType == 1 || tType == 4
  2654. }"
  2655. >
  2656. 评分
  2657. </div>
  2658. <div
  2659. class="stuLookScore"
  2660. v-if="
  2661. w.userid == userid ||
  2662. (tType == 1 &&
  2663. courseDetail.state == 6 &&
  2664. ((chapInfoList[courseType].chapterInfo[0]
  2665. .taskJson[taskCount].eList &&
  2666. chapInfoList[courseType].chapterInfo[0]
  2667. .taskJson[taskCount].eList.length) ||
  2668. (tool.eList && tool.eList.length)))
  2669. "
  2670. >
  2671. <el-popover
  2672. placement="top"
  2673. width="318"
  2674. trigger="hover"
  2675. >
  2676. <markScore
  2677. :loading="AIloading[toolIndex][wIndex].loading"
  2678. :markScoreVisible="markScoreVisible"
  2679. :ref="`markSco${toolIndex}${wIndex}`"
  2680. @updateLoading="updateLoading"
  2681. @updateDocSco="updateDocSco"
  2682. @refreshOther="refreshOther"
  2683. @markScoreDig="markScoreDig"
  2684. :tool="tool"
  2685. :wIndex="wIndex"
  2686. :scoCon="w"
  2687. :toolIndex="toolIndex"
  2688. :key="refreshKey"
  2689. :stage="courseType"
  2690. :task="taskCount"
  2691. :scoTit="
  2692. chapInfoList[courseType].chapterInfo[0]
  2693. .taskJson[taskCount].eList
  2694. "
  2695. >
  2696. </markScore>
  2697. <div
  2698. @click="
  2699. markScoreDig2(
  2700. w.sName,
  2701. worksStudent,
  2702. w.userid,
  2703. toolIndex,
  2704. chapInfoList[courseType].chapterInfo[0]
  2705. .taskJson[taskCount].eList,
  2706. AIloading[toolIndex][wIndex].loading,
  2707. tool
  2708. )
  2709. "
  2710. slot="reference"
  2711. >
  2712. <span v-if="AIloading[toolIndex][wIndex].sco">
  2713. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2714. </span>
  2715. <span v-else>
  2716. 评分
  2717. </span>
  2718. </div>
  2719. </el-popover>
  2720. </div>
  2721. <img
  2722. class="deleteImg"
  2723. src="../../assets/deleteworks.png"
  2724. v-if="
  2725. w.userid == userid || tType == 1 || tType == 4
  2726. "
  2727. @click.stop="deleteWorks(w.wid)"
  2728. alt
  2729. />
  2730. </div>
  2731. <div class="worksName">
  2732. <div>{{ w.sName }}</div>
  2733. </div>
  2734. </div>
  2735. </div>
  2736. </div>
  2737. <div
  2738. v-if="
  2739. tType &&
  2740. tType == 2 &&
  2741. !sIsOpen &&
  2742. tool.tool.indexOf(3) != -1
  2743. "
  2744. class="worksBox"
  2745. >
  2746. <div
  2747. class="zuoyeYulan"
  2748. v-if="workStudent[toolIndex].length > 0"
  2749. >
  2750. <span class="worksTitle">作业预览</span>
  2751. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2752. </div>
  2753. <div
  2754. class="worksDetailBox"
  2755. v-if="workStudent[toolIndex].length > 0"
  2756. >
  2757. <div
  2758. class="works"
  2759. style="
  2760. width: 200px;
  2761. height: 140px;
  2762. margin: 10px 10px 10px 0;
  2763. box-shadow: 0 0 6px 1px #dfdada;
  2764. "
  2765. v-for="(w, wIndex) in workStudent[toolIndex]"
  2766. :key="wIndex"
  2767. >
  2768. <div class="workImg">
  2769. <img
  2770. :src="w.works"
  2771. @click="previewImg(w.works, w)"
  2772. alt
  2773. />
  2774. <div
  2775. class="answerScore"
  2776. v-if="w.score"
  2777. @click.stop="openScore(w)"
  2778. :class="{
  2779. rightW:
  2780. w.userid == userid || tType == 1 || tType == 4
  2781. }"
  2782. >
  2783. {{ JSON.parse(w.score).wScore }}分
  2784. </div>
  2785. <div
  2786. class="answerScore"
  2787. @click.stop="openScore(w)"
  2788. v-else-if="courseDetail.userid == userid"
  2789. :class="{
  2790. rightW:
  2791. w.userid == userid || tType == 1 || tType == 4
  2792. }"
  2793. >
  2794. 评分
  2795. </div>
  2796. <div
  2797. class="stuLookScore"
  2798. v-if="
  2799. w.userid == userid ||
  2800. (tType == 1 &&
  2801. courseDetail.state == 6 &&
  2802. ((chapInfoList[courseType].chapterInfo[0]
  2803. .taskJson[taskCount].eList &&
  2804. chapInfoList[courseType].chapterInfo[0]
  2805. .taskJson[taskCount].eList.length) ||
  2806. (tool.eList && tool.eList.length)))
  2807. "
  2808. >
  2809. <el-popover
  2810. placement="top"
  2811. width="318"
  2812. trigger="hover"
  2813. >
  2814. <markScore
  2815. :loading="AIloading[toolIndex][wIndex].loading"
  2816. :markScoreVisible="markScoreVisible"
  2817. :ref="`markSco${toolIndex}${wIndex}`"
  2818. @updateLoading="updateLoading"
  2819. @updateDocSco="updateDocSco"
  2820. @refreshOther="refreshOther"
  2821. @markScoreDig="markScoreDig"
  2822. :tool="tool"
  2823. :wIndex="wIndex"
  2824. :scoCon="w"
  2825. :toolIndex="toolIndex"
  2826. :key="refreshKey"
  2827. :stage="courseType"
  2828. :task="taskCount"
  2829. :scoTit="
  2830. chapInfoList[courseType].chapterInfo[0]
  2831. .taskJson[taskCount].eList
  2832. "
  2833. >
  2834. </markScore>
  2835. <div
  2836. @click="
  2837. markScoreDig2(
  2838. w.sName,
  2839. worksStudent,
  2840. w.userid,
  2841. toolIndex,
  2842. chapInfoList[courseType].chapterInfo[0]
  2843. .taskJson[taskCount].eList,
  2844. AIloading[toolIndex][wIndex].loading,
  2845. tool
  2846. )
  2847. "
  2848. slot="reference"
  2849. >
  2850. <span v-if="AIloading[toolIndex][wIndex].sco">
  2851. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2852. </span>
  2853. <span v-else>
  2854. 评分
  2855. </span>
  2856. </div>
  2857. </el-popover>
  2858. </div>
  2859. <img
  2860. class="deleteImg"
  2861. src="../../assets/deleteworks.png"
  2862. v-if="
  2863. w.userid == userid || tType == 1 || tType == 4
  2864. "
  2865. @click.stop="deleteWorks(w.wid)"
  2866. alt
  2867. />
  2868. </div>
  2869. <div class="worksName">
  2870. <div>{{ w.sName }}</div>
  2871. </div>
  2872. </div>
  2873. </div>
  2874. </div>
  2875. <div
  2876. v-if="
  2877. tType &&
  2878. tType == 2 &&
  2879. !sIsOpen &&
  2880. tool.tool.indexOf(6) != -1
  2881. "
  2882. class="worksBox"
  2883. >
  2884. <div
  2885. class="zuoyeYulan"
  2886. v-if="workStudent[toolIndex].length > 0"
  2887. >
  2888. <span class="worksTitle">作业预览</span>
  2889. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2890. </div>
  2891. <div
  2892. class="worksDetailBox"
  2893. v-if="workStudent[toolIndex].length > 0"
  2894. >
  2895. <div
  2896. class="works"
  2897. style="
  2898. width: 200px;
  2899. height: 140px;
  2900. margin: 10px 10px 10px 0;
  2901. box-shadow: 0 0 6px 1px #dfdada;
  2902. "
  2903. v-for="(w, wIndex) in workStudent[toolIndex]"
  2904. :key="wIndex"
  2905. >
  2906. <div class="workImg">
  2907. <img
  2908. :src="w.works"
  2909. @click="previewImg(w.works, w)"
  2910. alt
  2911. />
  2912. <div
  2913. class="answerScore"
  2914. v-if="w.score"
  2915. @click.stop="openScore(w)"
  2916. :class="{
  2917. rightW:
  2918. w.userid == userid || tType == 1 || tType == 4
  2919. }"
  2920. >
  2921. {{ JSON.parse(w.score).wScore }}分
  2922. </div>
  2923. <div
  2924. class="answerScore"
  2925. @click.stop="openScore(w)"
  2926. v-else-if="courseDetail.userid == userid"
  2927. :class="{
  2928. rightW:
  2929. w.userid == userid || tType == 1 || tType == 4
  2930. }"
  2931. >
  2932. 评分
  2933. </div>
  2934. <img
  2935. class="deleteImg"
  2936. src="../../assets/deleteworks.png"
  2937. v-if="
  2938. w.userid == userid || tType == 1 || tType == 4
  2939. "
  2940. @click.stop="deleteWorks(w.wid)"
  2941. alt
  2942. />
  2943. </div>
  2944. <div class="worksName">
  2945. <div>{{ w.sName }}</div>
  2946. </div>
  2947. </div>
  2948. </div>
  2949. </div>
  2950. <div
  2951. v-if="
  2952. tType &&
  2953. tType == 2 &&
  2954. !sIsOpen &&
  2955. tool.tool.indexOf(7) != -1
  2956. "
  2957. class="worksBox"
  2958. >
  2959. <div
  2960. class="zuoyeYulan"
  2961. v-if="workStudent[toolIndex].length > 0"
  2962. >
  2963. <span class="worksTitle">作业预览</span>
  2964. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2965. </div>
  2966. <div
  2967. class="worksDetailBox"
  2968. v-if="workStudent[toolIndex].length > 0"
  2969. >
  2970. <div
  2971. class="works"
  2972. style="
  2973. width: 200px;
  2974. height: 140px;
  2975. margin: 10px 10px 10px 0;
  2976. box-shadow: 0 0 6px 1px #dfdada;
  2977. "
  2978. v-for="(w, wIndex) in workStudent[toolIndex]"
  2979. :key="wIndex"
  2980. >
  2981. <div class="workImg">
  2982. <img
  2983. :src="w.works"
  2984. @click="previewImg(w.works, w)"
  2985. alt
  2986. />
  2987. <div
  2988. class="answerScore"
  2989. v-if="w.score"
  2990. @click.stop="openScore(w)"
  2991. :class="{
  2992. rightW:
  2993. w.userid == userid || tType == 1 || tType == 4
  2994. }"
  2995. >
  2996. {{ JSON.parse(w.score).wScore }}分
  2997. </div>
  2998. <div
  2999. class="answerScore"
  3000. @click.stop="openScore(w)"
  3001. v-else-if="courseDetail.userid == userid"
  3002. :class="{
  3003. rightW:
  3004. w.userid == userid || tType == 1 || tType == 4
  3005. }"
  3006. >
  3007. 评分
  3008. </div>
  3009. <div
  3010. class="stuLookScore"
  3011. v-if="
  3012. w.userid == userid ||
  3013. (tType == 1 &&
  3014. courseDetail.state == 6 &&
  3015. ((chapInfoList[courseType].chapterInfo[0]
  3016. .taskJson[taskCount].eList &&
  3017. chapInfoList[courseType].chapterInfo[0]
  3018. .taskJson[taskCount].eList.length) ||
  3019. (tool.eList && tool.eList.length)))
  3020. "
  3021. >
  3022. <el-popover
  3023. placement="top"
  3024. width="318"
  3025. trigger="hover"
  3026. >
  3027. <markScore
  3028. :loading="AIloading[toolIndex][wIndex].loading"
  3029. :markScoreVisible="markScoreVisible"
  3030. :ref="`markSco${toolIndex}${wIndex}`"
  3031. @updateLoading="updateLoading"
  3032. @updateDocSco="updateDocSco"
  3033. @refreshOther="refreshOther"
  3034. @markScoreDig="markScoreDig"
  3035. :tool="tool"
  3036. :wIndex="wIndex"
  3037. :scoCon="w"
  3038. :toolIndex="toolIndex"
  3039. :key="refreshKey"
  3040. :stage="courseType"
  3041. :task="taskCount"
  3042. :scoTit="
  3043. chapInfoList[courseType].chapterInfo[0]
  3044. .taskJson[taskCount].eList
  3045. "
  3046. >
  3047. </markScore>
  3048. <div
  3049. @click="
  3050. markScoreDig2(
  3051. w.sName,
  3052. worksStudent,
  3053. w.userid,
  3054. toolIndex,
  3055. chapInfoList[courseType].chapterInfo[0]
  3056. .taskJson[taskCount].eList,
  3057. AIloading[toolIndex][wIndex].loading,
  3058. tool
  3059. )
  3060. "
  3061. slot="reference"
  3062. >
  3063. <span v-if="AIloading[toolIndex][wIndex].sco">
  3064. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3065. </span>
  3066. <span v-else>
  3067. 评分
  3068. </span>
  3069. </div>
  3070. </el-popover>
  3071. </div>
  3072. <img
  3073. class="deleteImg"
  3074. src="../../assets/deleteworks.png"
  3075. v-if="
  3076. w.userid == userid || tType == 1 || tType == 4
  3077. "
  3078. @click.stop="deleteWorks(w.wid)"
  3079. alt
  3080. />
  3081. </div>
  3082. <div class="worksName">
  3083. <div>{{ w.sName }}</div>
  3084. </div>
  3085. </div>
  3086. </div>
  3087. </div>
  3088. <div
  3089. v-if="
  3090. tType &&
  3091. tType == 2 &&
  3092. !sIsOpen &&
  3093. tool.tool.indexOf(26) != -1
  3094. "
  3095. class="worksBox"
  3096. >
  3097. <div
  3098. class="zuoyeYulan"
  3099. v-if="workStudent[toolIndex].length > 0"
  3100. >
  3101. <span class="worksTitle">作业预览</span>
  3102. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3103. </div>
  3104. <div
  3105. class="worksDetailBox"
  3106. v-if="workStudent[toolIndex].length > 0"
  3107. >
  3108. <div
  3109. class="works"
  3110. style="
  3111. width: 200px;
  3112. height: 140px;
  3113. margin: 10px 10px 10px 0;
  3114. box-shadow: 0 0 6px 1px #dfdada;
  3115. "
  3116. v-for="(w, wIndex) in workStudent[toolIndex]"
  3117. :key="wIndex"
  3118. >
  3119. <div class="workImg">
  3120. <img
  3121. :src="w.works"
  3122. @click="previewImg(w.works, w)"
  3123. alt
  3124. />
  3125. <img
  3126. class="deleteImg"
  3127. src="../../assets/deleteworks.png"
  3128. v-if="
  3129. w.userid == userid || tType == 1 || tType == 4
  3130. "
  3131. @click.stop="deleteWorks(w.wid)"
  3132. alt
  3133. />
  3134. </div>
  3135. <div class="worksName">
  3136. <div>{{ w.sName }}</div>
  3137. </div>
  3138. </div>
  3139. </div>
  3140. </div>
  3141. <div
  3142. v-if="
  3143. tType &&
  3144. ((tType == 2 && sIsOpen == true) ||
  3145. tType == 1 ||
  3146. tType == 4) &&
  3147. tool.tool.indexOf(16) != -1
  3148. "
  3149. class="worksBox"
  3150. >
  3151. <div
  3152. class="zuoyeYulan"
  3153. style="display: flex;justify-content: space-between;align-items: center;"
  3154. v-if="
  3155. (worksStudent.length &&
  3156. worksStudent[toolIndex].length > 0) ||
  3157. (courseGroup.group && courseGroup.group.length)
  3158. "
  3159. >
  3160. <div class="worksTop">
  3161. <div>作业预览</div>
  3162. <div
  3163. class="corOpen"
  3164. @click="contract(toolIndex)"
  3165. v-if="
  3166. isCloseList[toolIndex].isCloseBoolean &&
  3167. isCloseList[toolIndex].isClose == 0
  3168. "
  3169. >
  3170. 折叠
  3171. </div>
  3172. <div
  3173. class="corOpen"
  3174. @click="contract(toolIndex)"
  3175. v-if="isCloseList[toolIndex].isClose == 1"
  3176. >
  3177. 展开
  3178. </div>
  3179. </div>
  3180. <div
  3181. style="display: flex;"
  3182. v-if="
  3183. (courseDetail.userid == userid ||
  3184. (courseDetail.course_teacher &&
  3185. courseDetail.course_teacher.indexOf(userid) !=
  3186. -1)) &&
  3187. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3188. taskCount
  3189. ].eList &&
  3190. chapInfoList[courseType].chapterInfo[0].taskJson[
  3191. taskCount
  3192. ].eList.length) ||
  3193. (tool.eList && tool.eList.length)) &&
  3194. courseDetail.state == 6
  3195. "
  3196. >
  3197. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6"> -->
  3198. <div
  3199. style="margin-right:10px"
  3200. class="ScoreBtn"
  3201. @click="
  3202. resetLoopEva(
  3203. worksStudent[toolIndex],
  3204. chapInfoList[courseType].chapterInfo[0].taskJson[
  3205. taskCount
  3206. ].eList,
  3207. courseType,
  3208. taskCount,
  3209. toolIndex,
  3210. tool.toolDetail,
  3211. worksStudent
  3212. )
  3213. "
  3214. >
  3215. 一键重置
  3216. </div>
  3217. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3218. <img
  3219. src="../../assets/icon/newIcons/rootImg.png"
  3220. alt=""
  3221. />
  3222. AI评分
  3223. </div>
  3224. <div
  3225. class="ScoreBtn"
  3226. v-else-if="!loopLoading[toolIndex].loading"
  3227. @click="
  3228. loopEva(
  3229. worksStudent[toolIndex],
  3230. chapInfoList[courseType].chapterInfo[0].taskJson[
  3231. taskCount
  3232. ].eList,
  3233. courseType,
  3234. taskCount,
  3235. toolIndex,
  3236. tool.toolDetail,
  3237. chapInfoList[courseType].chapterInfo[0].taskJson[
  3238. taskCount
  3239. ].taskDetail,
  3240. tool
  3241. )
  3242. "
  3243. >
  3244. <img
  3245. src="../../assets/icon/newIcons/rootImg.png"
  3246. alt=""
  3247. />
  3248. AI评分
  3249. </div>
  3250. <div class="ScoreBtn" v-else>
  3251. <img
  3252. src="../../assets/icon/newIcons/rootImg.png"
  3253. alt=""
  3254. />
  3255. 正在评分
  3256. </div>
  3257. </div>
  3258. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3259. </div>
  3260. <div
  3261. class="group_workBox"
  3262. v-for="(g, gindex) in courseGroup.group"
  3263. :key="gindex"
  3264. >
  3265. <div class="group_box">
  3266. <div class="group_title">
  3267. <el-tooltip
  3268. class="item"
  3269. effect="light"
  3270. :content="g.name"
  3271. placement="top"
  3272. >
  3273. <div class="group_name">{{ g.name }}</div>
  3274. </el-tooltip>
  3275. </div>
  3276. <div
  3277. class="group_work"
  3278. v-if="
  3279. g.works &&
  3280. g.works.length &&
  3281. g.works[toolIndex].length
  3282. "
  3283. >
  3284. <div
  3285. class="works"
  3286. style="
  3287. width: 200px;
  3288. height: 140px;
  3289. margin: 10px 10px 10px 0;
  3290. border-radius: 15px;
  3291. box-shadow: 0 0 6px 1px #dfdada;
  3292. "
  3293. v-for="(w, wIndex) in g.works[toolIndex]"
  3294. :key="wIndex"
  3295. :class="w.type == 1 ? 'isTypeOne' : ''"
  3296. >
  3297. <div class="workImg" v-if="w.type == 0">
  3298. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3299. <img
  3300. :src="w.works"
  3301. @click="previewImg(w.works, w)"
  3302. alt
  3303. />
  3304. <div
  3305. class="answerScore"
  3306. v-if="w.score"
  3307. @click.stop="openScore(w)"
  3308. :class="{
  3309. rightW:
  3310. w.userid == userid ||
  3311. tType == 1 ||
  3312. tType == 4 ||
  3313. w.ateacher == userid
  3314. }"
  3315. >
  3316. {{ JSON.parse(w.score).wScore }}分
  3317. </div>
  3318. <div
  3319. class="answerScore"
  3320. @click.stop="openScore(w)"
  3321. v-else-if="courseDetail.userid == userid"
  3322. :class="{
  3323. rightW:
  3324. w.userid == userid ||
  3325. tType == 1 ||
  3326. tType == 4 ||
  3327. w.ateacher == userid
  3328. }"
  3329. >
  3330. 评分
  3331. </div>
  3332. <img
  3333. class="deleteImg"
  3334. src="../../assets/deleteworks.png"
  3335. v-if="
  3336. w.userid == userid || tType == 1 || tType == 4
  3337. "
  3338. @click.stop="deleteWorks(w.wid)"
  3339. alt
  3340. />
  3341. </div>
  3342. <div class="workImg" v-if="w.type == 1">
  3343. <img :src="word" @click="openFile(w.works)" alt />
  3344. <!-- @click="openFile(w.works)" -->
  3345. <div
  3346. class="answerScore"
  3347. v-if="w.score"
  3348. @click.stop="openScore(w)"
  3349. :class="{
  3350. rightW:
  3351. w.userid == userid ||
  3352. tType == 1 ||
  3353. tType == 4 ||
  3354. w.ateacher == userid
  3355. }"
  3356. >
  3357. {{ JSON.parse(w.score).wScore }}分
  3358. </div>
  3359. <div
  3360. class="answerScore"
  3361. @click.stop="openScore(w)"
  3362. v-else-if="courseDetail.userid == userid"
  3363. :class="{
  3364. rightW:
  3365. w.userid == userid ||
  3366. tType == 1 ||
  3367. tType == 4 ||
  3368. w.ateacher == userid
  3369. }"
  3370. >
  3371. 评分
  3372. </div>
  3373. <img
  3374. class="deleteImg"
  3375. src="../../assets/deleteworks.png"
  3376. v-if="
  3377. w.userid == userid || tType == 1 || tType == 4
  3378. "
  3379. @click.stop="deleteWorks(w.wid)"
  3380. alt
  3381. />
  3382. </div>
  3383. <div class="workImg" v-if="w.type == 3">
  3384. <img
  3385. style="cursor: pointer"
  3386. :src="video"
  3387. @click="openVideo(w)"
  3388. alt
  3389. />
  3390. <!-- @click="openVideo(w.works)" -->
  3391. <div
  3392. class="answerScore"
  3393. v-if="w.score"
  3394. @click.stop="openScore(w)"
  3395. :class="{
  3396. rightW:
  3397. w.userid == userid ||
  3398. tType == 1 ||
  3399. tType == 4 ||
  3400. w.ateacher == userid
  3401. }"
  3402. >
  3403. {{ JSON.parse(w.score).wScore }}分
  3404. </div>
  3405. <div
  3406. class="answerScore"
  3407. @click.stop="openScore(w)"
  3408. v-else-if="courseDetail.userid == userid"
  3409. :class="{
  3410. rightW:
  3411. w.userid == userid ||
  3412. tType == 1 ||
  3413. tType == 4 ||
  3414. w.ateacher == userid
  3415. }"
  3416. >
  3417. 评分
  3418. </div>
  3419. <img
  3420. class="deleteImg"
  3421. src="../../assets/deleteworks.png"
  3422. v-if="
  3423. w.userid == userid || tType == 1 || tType == 4
  3424. "
  3425. @click.stop="deleteWorks(w.wid)"
  3426. alt
  3427. />
  3428. </div>
  3429. <div class="workImg" v-if="w.type == 12">
  3430. <img
  3431. style="cursor: pointer"
  3432. :src="word2"
  3433. @click="downloadFile(w.works,w.userid)"
  3434. alt
  3435. />
  3436. <!-- @click="openVideo(w.works)" -->
  3437. <div
  3438. class="answerScore"
  3439. v-if="w.score"
  3440. @click.stop="openScore(w)"
  3441. :class="{
  3442. rightW:
  3443. w.userid == userid ||
  3444. tType == 1 ||
  3445. tType == 4 ||
  3446. w.ateacher == userid
  3447. }"
  3448. >
  3449. {{ JSON.parse(w.score).wScore }}分
  3450. </div>
  3451. <div
  3452. class="answerScore"
  3453. @click.stop="openScore(w)"
  3454. v-else-if="courseDetail.userid == userid"
  3455. :class="{
  3456. rightW:
  3457. w.userid == userid ||
  3458. tType == 1 ||
  3459. tType == 4 ||
  3460. w.ateacher == userid
  3461. }"
  3462. >
  3463. 评分
  3464. </div>
  3465. <img
  3466. class="deleteImg"
  3467. src="../../assets/deleteworks.png"
  3468. v-if="
  3469. w.userid == userid || tType == 1 || tType == 4
  3470. "
  3471. @click.stop="deleteWorks(w.wid)"
  3472. alt
  3473. />
  3474. </div>
  3475. <div class="comment" style="min-width: 200px">
  3476. <div class="worksName">
  3477. <div>{{ w.sName }}</div>
  3478. </div>
  3479. <div class="commentList">
  3480. <div class="commentList">
  3481. <div
  3482. class="commentImg"
  3483. @click="
  3484. isLikes(
  3485. w.wid,
  3486. userid,
  3487. 1,
  3488. null,
  3489. w.isLikes,
  3490. w.sName
  3491. )
  3492. "
  3493. >
  3494. <img
  3495. :src="w.isLikes == true ? likes : noLikes"
  3496. alt=""
  3497. />
  3498. </div>
  3499. <div>{{ w.likesCount }}</div>
  3500. </div>
  3501. <div
  3502. class="commentList"
  3503. style="margin-right: 15px"
  3504. >
  3505. <div
  3506. class="commentImg"
  3507. @click="
  3508. commentOther(
  3509. w,
  3510. toolIndex,
  3511. wIndex,
  3512. null,
  3513. g.id
  3514. )
  3515. "
  3516. >
  3517. <img
  3518. src="../../assets/icon/comment/comment.png"
  3519. alt=""
  3520. />
  3521. </div>
  3522. <div>{{ w.commentCount }}</div>
  3523. </div>
  3524. </div>
  3525. </div>
  3526. </div>
  3527. </div>
  3528. <div class="group_work" v-else>暂无提交作业</div>
  3529. </div>
  3530. </div>
  3531. <div
  3532. :id="'tool-' + toolIndex"
  3533. :style="{
  3534. height:
  3535. isCloseList[toolIndex].isClose == 1
  3536. ? retrnToolHeight('tool-' + toolIndex)
  3537. : 'auto',
  3538. overflow:
  3539. isCloseList[toolIndex].isClose == 1
  3540. ? 'hidden'
  3541. : 'unset'
  3542. }"
  3543. class="worksDetailBox"
  3544. v-if="
  3545. worksStudent.length &&
  3546. worksStudent[toolIndex].length > 0
  3547. "
  3548. >
  3549. <div
  3550. class="works"
  3551. style="
  3552. width: 200px;
  3553. height: 140px;
  3554. margin: 10px 10px 10px 0;
  3555. border-radius: 15px;
  3556. box-shadow: 0 0 6px 1px #dfdada;
  3557. "
  3558. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3559. :key="wIndex"
  3560. :class="w.type == 1 ? 'isTypeOne' : ''"
  3561. >
  3562. <div class="workImg" v-if="w.type == 0">
  3563. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3564. <img
  3565. :src="w.works"
  3566. @click="previewImg(w.works, w)"
  3567. alt
  3568. />
  3569. <div
  3570. class="answerScore"
  3571. v-if="w.score"
  3572. @click.stop="openScore(w)"
  3573. :class="{
  3574. rightW:
  3575. w.userid == userid ||
  3576. tType == 1 ||
  3577. tType == 4 ||
  3578. w.ateacher == userid
  3579. }"
  3580. >
  3581. {{ JSON.parse(w.score).wScore }}分
  3582. </div>
  3583. <div
  3584. class="answerScore"
  3585. @click.stop="openScore(w)"
  3586. v-else-if="
  3587. courseDetail.userid == userid &&
  3588. courseDetail.state != 6 &&
  3589. chapInfoList[courseType].chapterInfo[0]
  3590. .taskJson[taskCount].eList &&
  3591. chapInfoList[courseType].chapterInfo[0]
  3592. .taskJson[taskCount].eList.length
  3593. "
  3594. :class="{
  3595. rightW:
  3596. w.userid == userid ||
  3597. tType == 1 ||
  3598. tType == 4 ||
  3599. w.ateacher == userid
  3600. }"
  3601. >
  3602. 评分
  3603. </div>
  3604. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3605. <div
  3606. v-else-if="
  3607. (courseDetail.userid == userid ||
  3608. (courseDetail.course_teacher &&
  3609. courseDetail.course_teacher.indexOf(userid) !=
  3610. -1) ||
  3611. (w.userid == userid && sIsOpen)) &&
  3612. courseDetail.state == 6 &&
  3613. ((chapInfoList[courseType].chapterInfo[0]
  3614. .taskJson[taskCount].eList &&
  3615. chapInfoList[courseType].chapterInfo[0]
  3616. .taskJson[taskCount].eList.length) ||
  3617. (tool.eList && tool.eList.length))
  3618. "
  3619. >
  3620. <el-popover
  3621. placement="top"
  3622. width="318"
  3623. :disabled="AIloading[toolIndex][wIndex].loading"
  3624. trigger="hover"
  3625. >
  3626. <markScore
  3627. :loading="AIloading[toolIndex][wIndex].loading"
  3628. :markScoreVisible="markScoreVisible"
  3629. :ref="`markSco${toolIndex}${wIndex}`"
  3630. @updateLoading="updateLoading"
  3631. @updateDocSco="updateDocSco"
  3632. @refreshOther="refreshOther"
  3633. @markScoreDig="markScoreDig"
  3634. :tool="tool"
  3635. :wIndex="wIndex"
  3636. :scoCon="w"
  3637. :toolIndex="toolIndex"
  3638. :key="refreshKey"
  3639. :stage="courseType"
  3640. :task="taskCount"
  3641. :scoTit="
  3642. chapInfoList[courseType].chapterInfo[0]
  3643. .taskJson[taskCount].eList
  3644. "
  3645. >
  3646. </markScore>
  3647. <div
  3648. class="answerScore"
  3649. @click="
  3650. markScoreDig2(
  3651. w.sName,
  3652. worksStudent,
  3653. w.userid,
  3654. toolIndex,
  3655. chapInfoList[courseType].chapterInfo[0]
  3656. .taskJson[taskCount].eList,
  3657. AIloading[toolIndex][wIndex].loading,
  3658. tool
  3659. )
  3660. "
  3661. slot="reference"
  3662. :class="{
  3663. rightW:
  3664. w.userid == userid ||
  3665. tType == 1 ||
  3666. tType == 4 ||
  3667. w.ateacher == userid
  3668. }"
  3669. >
  3670. <span v-if="AIloading[toolIndex][wIndex].sco">
  3671. {{
  3672. AIloading[toolIndex][wIndex].loading
  3673. ? "评分中"
  3674. : AIloading[toolIndex][wIndex].sco + "分"
  3675. }}
  3676. </span>
  3677. <span v-else>
  3678. {{
  3679. AIloading[toolIndex][wIndex].loading
  3680. ? "评分中"
  3681. : "评分"
  3682. }}
  3683. </span>
  3684. </div>
  3685. </el-popover>
  3686. </div>
  3687. <img
  3688. class="deleteImg"
  3689. src="../../assets/deleteworks.png"
  3690. v-if="
  3691. w.userid == userid || tType == 1 || tType == 4
  3692. "
  3693. @click.stop="deleteWorks(w.wid)"
  3694. alt
  3695. />
  3696. </div>
  3697. <div class="workImg" v-if="w.type == 1">
  3698. <img :src="word" @click="openFile(w.works)" alt />
  3699. <!-- @click="openFile(w.works)" -->
  3700. <div
  3701. class="answerScore"
  3702. v-if="w.score"
  3703. @click.stop="openScore(w)"
  3704. :class="{
  3705. rightW:
  3706. w.userid == userid ||
  3707. tType == 1 ||
  3708. tType == 4 ||
  3709. w.ateacher == userid
  3710. }"
  3711. >
  3712. {{ JSON.parse(w.score).wScore }}分
  3713. </div>
  3714. <div
  3715. class="answerScore"
  3716. @click.stop="openScore(w)"
  3717. v-else-if="
  3718. courseDetail.userid == userid &&
  3719. courseDetail.state != 6 &&
  3720. chapInfoList[courseType].chapterInfo[0]
  3721. .taskJson[taskCount].eList &&
  3722. chapInfoList[courseType].chapterInfo[0]
  3723. .taskJson[taskCount].eList.length
  3724. "
  3725. :class="{
  3726. rightW:
  3727. w.userid == userid ||
  3728. tType == 1 ||
  3729. tType == 4 ||
  3730. w.ateacher == userid
  3731. }"
  3732. >
  3733. 评分
  3734. </div>
  3735. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3736. <div
  3737. v-else-if="
  3738. (courseDetail.userid == userid ||
  3739. (courseDetail.course_teacher &&
  3740. courseDetail.course_teacher.indexOf(userid) !=
  3741. -1) ||
  3742. (w.userid == userid && sIsOpen)) &&
  3743. courseDetail.state == 6 &&
  3744. ((chapInfoList[courseType].chapterInfo[0]
  3745. .taskJson[taskCount].eList &&
  3746. chapInfoList[courseType].chapterInfo[0]
  3747. .taskJson[taskCount].eList.length) ||
  3748. (tool.eList && tool.eList.length))
  3749. "
  3750. >
  3751. <el-popover
  3752. placement="top"
  3753. width="318"
  3754. :disabled="AIloading[toolIndex][wIndex].loading"
  3755. trigger="hover"
  3756. >
  3757. <markScore
  3758. :loading="AIloading[toolIndex][wIndex].loading"
  3759. :markScoreVisible="markScoreVisible"
  3760. :ref="`markSco${toolIndex}${wIndex}`"
  3761. @updateLoading="updateLoading"
  3762. @updateDocSco="updateDocSco"
  3763. @refreshOther="refreshOther"
  3764. @markScoreDig="markScoreDig"
  3765. :tool="tool"
  3766. :wIndex="wIndex"
  3767. :scoCon="w"
  3768. :toolIndex="toolIndex"
  3769. :key="refreshKey"
  3770. :stage="courseType"
  3771. :task="taskCount"
  3772. :scoTit="
  3773. chapInfoList[courseType].chapterInfo[0]
  3774. .taskJson[taskCount].eList
  3775. "
  3776. >
  3777. </markScore>
  3778. <div
  3779. class="answerScore"
  3780. @click="
  3781. markScoreDig2(
  3782. w.sName,
  3783. worksStudent,
  3784. w.userid,
  3785. toolIndex,
  3786. chapInfoList[courseType].chapterInfo[0]
  3787. .taskJson[taskCount].eList,
  3788. AIloading[toolIndex][wIndex].loading,
  3789. tool
  3790. )
  3791. "
  3792. slot="reference"
  3793. :class="{
  3794. rightW:
  3795. w.userid == userid ||
  3796. tType == 1 ||
  3797. tType == 4 ||
  3798. w.ateacher == userid
  3799. }"
  3800. >
  3801. <span v-if="AIloading[toolIndex][wIndex].sco">
  3802. {{
  3803. AIloading[toolIndex][wIndex].loading
  3804. ? "评分中"
  3805. : AIloading[toolIndex][wIndex].sco + "分"
  3806. }}
  3807. </span>
  3808. <span v-else>
  3809. {{
  3810. AIloading[toolIndex][wIndex].loading
  3811. ? "评分中"
  3812. : "评分"
  3813. }}
  3814. </span>
  3815. </div>
  3816. </el-popover>
  3817. </div>
  3818. <img
  3819. class="deleteImg"
  3820. src="../../assets/deleteworks.png"
  3821. v-if="
  3822. w.userid == userid || tType == 1 || tType == 4
  3823. "
  3824. @click.stop="deleteWorks(w.wid)"
  3825. alt
  3826. />
  3827. </div>
  3828. <div class="workImg" v-if="w.type == 3">
  3829. <img
  3830. style="cursor: pointer"
  3831. :src="video"
  3832. @click="openVideo(w)"
  3833. alt
  3834. />
  3835. <!-- @click="openVideo(w.works)" -->
  3836. <div
  3837. class="answerScore"
  3838. v-if="w.score"
  3839. @click.stop="openScore(w)"
  3840. :class="{
  3841. rightW:
  3842. w.userid == userid ||
  3843. tType == 1 ||
  3844. tType == 4 ||
  3845. w.ateacher == userid
  3846. }"
  3847. >
  3848. {{ JSON.parse(w.score).wScore }}分
  3849. </div>
  3850. <div
  3851. class="answerScore"
  3852. @click.stop="openScore(w)"
  3853. v-else-if="
  3854. courseDetail.userid == userid &&
  3855. courseDetail.state != 6 &&
  3856. chapInfoList[courseType].chapterInfo[0]
  3857. .taskJson[taskCount].eList &&
  3858. chapInfoList[courseType].chapterInfo[0]
  3859. .taskJson[taskCount].eList.length
  3860. "
  3861. :class="{
  3862. rightW:
  3863. w.userid == userid ||
  3864. tType == 1 ||
  3865. tType == 4 ||
  3866. w.ateacher == userid
  3867. }"
  3868. >
  3869. 评分
  3870. </div>
  3871. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3872. <div
  3873. v-else-if="
  3874. (courseDetail.userid == userid ||
  3875. (courseDetail.course_teacher &&
  3876. courseDetail.course_teacher.indexOf(userid) !=
  3877. -1) ||
  3878. (w.userid == userid && sIsOpen)) &&
  3879. courseDetail.state == 6 &&
  3880. ((chapInfoList[courseType].chapterInfo[0]
  3881. .taskJson[taskCount].eList &&
  3882. chapInfoList[courseType].chapterInfo[0]
  3883. .taskJson[taskCount].eList.length) ||
  3884. (tool.eList && tool.eList.length))
  3885. "
  3886. >
  3887. <el-popover
  3888. placement="top"
  3889. width="318"
  3890. :disabled="AIloading[toolIndex][wIndex].loading"
  3891. trigger="hover"
  3892. >
  3893. <markScore
  3894. :loading="AIloading[toolIndex][wIndex].loading"
  3895. :markScoreVisible="markScoreVisible"
  3896. :ref="`markSco${toolIndex}${wIndex}`"
  3897. @updateLoading="updateLoading"
  3898. @updateDocSco="updateDocSco"
  3899. @refreshOther="refreshOther"
  3900. @markScoreDig="markScoreDig"
  3901. :tool="tool"
  3902. :wIndex="wIndex"
  3903. :scoCon="w"
  3904. :toolIndex="toolIndex"
  3905. :key="refreshKey"
  3906. :stage="courseType"
  3907. :task="taskCount"
  3908. :scoTit="
  3909. chapInfoList[courseType].chapterInfo[0]
  3910. .taskJson[taskCount].eList
  3911. "
  3912. >
  3913. </markScore>
  3914. <div
  3915. class="answerScore"
  3916. @click="
  3917. markScoreDig2(
  3918. w.sName,
  3919. worksStudent,
  3920. w.userid,
  3921. toolIndex,
  3922. chapInfoList[courseType].chapterInfo[0]
  3923. .taskJson[taskCount].eList,
  3924. AIloading[toolIndex][wIndex].loading,
  3925. tool
  3926. )
  3927. "
  3928. slot="reference"
  3929. :class="{
  3930. rightW:
  3931. w.userid == userid ||
  3932. tType == 1 ||
  3933. tType == 4 ||
  3934. w.ateacher == userid
  3935. }"
  3936. >
  3937. <span v-if="AIloading[toolIndex][wIndex].sco">
  3938. {{
  3939. AIloading[toolIndex][wIndex].loading
  3940. ? "评分中"
  3941. : AIloading[toolIndex][wIndex].sco + "分"
  3942. }}
  3943. </span>
  3944. <span v-else>
  3945. {{
  3946. AIloading[toolIndex][wIndex].loading
  3947. ? "评分中"
  3948. : "评分"
  3949. }}
  3950. </span>
  3951. </div>
  3952. </el-popover>
  3953. </div>
  3954. <img
  3955. class="deleteImg"
  3956. src="../../assets/deleteworks.png"
  3957. v-if="
  3958. w.userid == userid || tType == 1 || tType == 4
  3959. "
  3960. @click.stop="deleteWorks(w.wid)"
  3961. alt
  3962. />
  3963. </div>
  3964. <div class="workImg" v-if="w.type == 12">
  3965. <img
  3966. style="cursor: pointer"
  3967. :src="word2"
  3968. @click="downloadFile(w.works,w.userid)"
  3969. alt
  3970. />
  3971. <!-- @click="openVideo(w.works)" -->
  3972. <div
  3973. class="answerScore"
  3974. v-if="w.score"
  3975. @click.stop="openScore(w)"
  3976. :class="{
  3977. rightW:
  3978. w.userid == userid ||
  3979. tType == 1 ||
  3980. tType == 4 ||
  3981. w.ateacher == userid
  3982. }"
  3983. >
  3984. {{ JSON.parse(w.score).wScore }}分
  3985. </div>
  3986. <div
  3987. class="answerScore"
  3988. @click.stop="openScore(w)"
  3989. v-else-if="
  3990. courseDetail.userid == userid &&
  3991. courseDetail.state != 6 &&
  3992. chapInfoList[courseType].chapterInfo[0]
  3993. .taskJson[taskCount].eList &&
  3994. chapInfoList[courseType].chapterInfo[0]
  3995. .taskJson[taskCount].eList.length
  3996. "
  3997. :class="{
  3998. rightW:
  3999. w.userid == userid ||
  4000. tType == 1 ||
  4001. tType == 4 ||
  4002. w.ateacher == userid
  4003. }"
  4004. >
  4005. 评分
  4006. </div>
  4007. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4008. <div
  4009. v-else-if="
  4010. (courseDetail.userid == userid ||
  4011. (courseDetail.course_teacher &&
  4012. courseDetail.course_teacher.indexOf(userid) !=
  4013. -1) ||
  4014. (w.userid == userid && sIsOpen)) &&
  4015. courseDetail.state == 6 &&
  4016. ((chapInfoList[courseType].chapterInfo[0]
  4017. .taskJson[taskCount].eList &&
  4018. chapInfoList[courseType].chapterInfo[0]
  4019. .taskJson[taskCount].eList.length) ||
  4020. (tool.eList && tool.eList.length))
  4021. "
  4022. >
  4023. <el-popover
  4024. placement="top"
  4025. width="318"
  4026. :disabled="AIloading[toolIndex][wIndex].loading"
  4027. trigger="hover"
  4028. >
  4029. <markScore
  4030. :loading="AIloading[toolIndex][wIndex].loading"
  4031. :markScoreVisible="markScoreVisible"
  4032. :ref="`markSco${toolIndex}${wIndex}`"
  4033. @updateLoading="updateLoading"
  4034. @updateDocSco="updateDocSco"
  4035. @refreshOther="refreshOther"
  4036. @markScoreDig="markScoreDig"
  4037. :tool="tool"
  4038. :wIndex="wIndex"
  4039. :scoCon="w"
  4040. :toolIndex="toolIndex"
  4041. :key="refreshKey"
  4042. :stage="courseType"
  4043. :task="taskCount"
  4044. :scoTit="
  4045. chapInfoList[courseType].chapterInfo[0]
  4046. .taskJson[taskCount].eList
  4047. "
  4048. >
  4049. </markScore>
  4050. <div
  4051. class="answerScore"
  4052. @click="
  4053. markScoreDig2(
  4054. w.sName,
  4055. worksStudent,
  4056. w.userid,
  4057. toolIndex,
  4058. chapInfoList[courseType].chapterInfo[0]
  4059. .taskJson[taskCount].eList,
  4060. AIloading[toolIndex][wIndex].loading,
  4061. tool
  4062. )
  4063. "
  4064. slot="reference"
  4065. :class="{
  4066. rightW:
  4067. w.userid == userid ||
  4068. tType == 1 ||
  4069. tType == 4 ||
  4070. w.ateacher == userid
  4071. }"
  4072. >
  4073. <span v-if="AIloading[toolIndex][wIndex].sco">
  4074. {{
  4075. AIloading[toolIndex][wIndex].loading
  4076. ? "评分中"
  4077. : AIloading[toolIndex][wIndex].sco + "分"
  4078. }}
  4079. </span>
  4080. <span v-else>
  4081. {{
  4082. AIloading[toolIndex][wIndex].loading
  4083. ? "评分中"
  4084. : "评分"
  4085. }}
  4086. </span>
  4087. </div>
  4088. </el-popover>
  4089. </div>
  4090. <img
  4091. class="deleteImg"
  4092. src="../../assets/deleteworks.png"
  4093. v-if="
  4094. w.userid == userid || tType == 1 || tType == 4
  4095. "
  4096. @click.stop="deleteWorks(w.wid)"
  4097. alt
  4098. />
  4099. </div>
  4100. <div class="comment" style="min-width: 200px">
  4101. <div class="worksName">
  4102. <div>{{ w.sName }}</div>
  4103. </div>
  4104. <div class="commentList">
  4105. <div class="commentList">
  4106. <div
  4107. class="commentImg"
  4108. @click="
  4109. isLikes(
  4110. w.wid,
  4111. userid,
  4112. 1,
  4113. null,
  4114. w.isLikes,
  4115. w.sName
  4116. )
  4117. "
  4118. >
  4119. <img
  4120. :src="w.isLikes == true ? likes : noLikes"
  4121. alt=""
  4122. />
  4123. </div>
  4124. <div>{{ w.likesCount }}</div>
  4125. </div>
  4126. <div class="commentList" style="margin-right: 15px">
  4127. <div
  4128. class="commentImg"
  4129. @click="commentOther(w, toolIndex, wIndex)"
  4130. >
  4131. <img
  4132. src="../../assets/icon/comment/comment.png"
  4133. alt=""
  4134. />
  4135. </div>
  4136. <div>{{ w.commentCount }}</div>
  4137. </div>
  4138. </div>
  4139. </div>
  4140. </div>
  4141. </div>
  4142. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4143. 未提交
  4144. </div>
  4145. <div
  4146. class="noWorksS"
  4147. v-if="noWorksS && noWorksS[toolIndex].length"
  4148. >
  4149. <div
  4150. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4151. :key="sIndex"
  4152. class="noWorksName"
  4153. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4154. >
  4155. <el-tooltip
  4156. effect="dark"
  4157. :content="s.student"
  4158. placement="top"
  4159. >
  4160. <span>{{ s.student }}</span>
  4161. </el-tooltip>
  4162. </div>
  4163. </div>
  4164. </div>
  4165. <div
  4166. v-if="
  4167. tType &&
  4168. ((tType == 2 && sIsOpen == true) ||
  4169. tType == 1 ||
  4170. tType == 4) &&
  4171. tool.tool.indexOf(70) != -1
  4172. "
  4173. class="worksBox"
  4174. >
  4175. <div
  4176. class="zuoyeYulan"
  4177. v-if="
  4178. worksStudent.length &&
  4179. worksStudent[toolIndex].length > 0
  4180. "
  4181. >
  4182. <div class="worksTop">
  4183. <div>作业预览</div>
  4184. <div
  4185. class="corOpen"
  4186. @click="contract(toolIndex)"
  4187. v-if="
  4188. isCloseList[toolIndex].isCloseBoolean &&
  4189. isCloseList[toolIndex].isClose == 0
  4190. "
  4191. >
  4192. 折叠
  4193. </div>
  4194. <div
  4195. class="corOpen"
  4196. @click="contract(toolIndex)"
  4197. v-if="isCloseList[toolIndex].isClose == 1"
  4198. >
  4199. 展开
  4200. </div>
  4201. </div>
  4202. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4203. </div>
  4204. <div
  4205. :id="'tool-' + toolIndex"
  4206. :style="{
  4207. height:
  4208. isCloseList[toolIndex].isClose == 1
  4209. ? retrnToolHeight('tool-' + toolIndex)
  4210. : 'auto',
  4211. overflow:
  4212. isCloseList[toolIndex].isClose == 1
  4213. ? 'hidden'
  4214. : 'unset'
  4215. }"
  4216. class="worksDetailBox"
  4217. v-if="
  4218. worksStudent.length &&
  4219. worksStudent[toolIndex].length > 0
  4220. "
  4221. >
  4222. <div
  4223. class="works"
  4224. style="
  4225. width: 200px;
  4226. height: 140px;
  4227. margin: 10px 10px 10px 0;
  4228. border-radius: 15px;
  4229. box-shadow: 0 0 6px 1px #dfdada;
  4230. "
  4231. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4232. :key="wIndex"
  4233. :class="w.type == 1 ? 'isTypeOne' : ''"
  4234. >
  4235. <div
  4236. class="workImg"
  4237. @click.stop="openScore(w, toolIndex)"
  4238. >
  4239. <img :src="word" alt />
  4240. <img
  4241. class="deleteImg"
  4242. src="../../assets/deleteworks.png"
  4243. v-if="
  4244. w.userid == userid || tType == 1 || tType == 4
  4245. "
  4246. @click.stop="deleteWorks(w.wid)"
  4247. alt
  4248. />
  4249. </div>
  4250. <div class="comment" style="min-width: 200px">
  4251. <div class="worksName">
  4252. <div>{{ w.sName }}</div>
  4253. </div>
  4254. </div>
  4255. </div>
  4256. </div>
  4257. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4258. 未提交
  4259. </div>
  4260. <div
  4261. class="noWorksS"
  4262. v-if="noWorksS && noWorksS[toolIndex].length"
  4263. >
  4264. <div
  4265. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4266. :key="sIndex"
  4267. class="noWorksName"
  4268. >
  4269. <el-tooltip
  4270. effect="dark"
  4271. :content="s.student"
  4272. placement="top"
  4273. >
  4274. <span>{{ s.student }}</span>
  4275. </el-tooltip>
  4276. </div>
  4277. </div>
  4278. </div>
  4279. <div
  4280. v-if="
  4281. tType &&
  4282. tType == 2 &&
  4283. !sIsOpen &&
  4284. tool.tool.indexOf(70) != -1
  4285. "
  4286. class="worksBox"
  4287. >
  4288. <div
  4289. class="zuoyeYulan"
  4290. v-if="workStudent[toolIndex].length > 0"
  4291. >
  4292. <span class="worksTitle">作业预览</span>
  4293. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4294. </div>
  4295. <div
  4296. class="worksDetailBox"
  4297. v-if="workStudent[toolIndex].length > 0"
  4298. >
  4299. <div
  4300. class="works"
  4301. style="
  4302. width: 200px;
  4303. height: 140px;
  4304. margin: 10px 10px 10px 0;
  4305. box-shadow: 0 0 6px 1px #dfdada;
  4306. "
  4307. v-for="(w, wIndex) in workStudent[toolIndex]"
  4308. :key="wIndex"
  4309. >
  4310. <div
  4311. class="workImg"
  4312. @click.stop="openScore(w, toolIndex)"
  4313. >
  4314. <img :src="word" alt />
  4315. <img
  4316. class="deleteImg"
  4317. src="../../assets/deleteworks.png"
  4318. v-if="
  4319. w.userid == userid || tType == 1 || tType == 4
  4320. "
  4321. @click.stop="deleteWorks(w.wid)"
  4322. alt
  4323. />
  4324. </div>
  4325. <div class="worksName">
  4326. <div>{{ w.sName }}</div>
  4327. </div>
  4328. </div>
  4329. </div>
  4330. </div>
  4331. <div
  4332. v-if="
  4333. tType &&
  4334. ((tType == 2 && sIsOpen == true) ||
  4335. tType == 1 ||
  4336. tType == 4) &&
  4337. tool.tool.indexOf(32) != -1
  4338. "
  4339. class="worksBox"
  4340. >
  4341. <div
  4342. class="zuoyeYulan"
  4343. v-if="
  4344. worksStudent.length &&
  4345. worksStudent[toolIndex].length > 0
  4346. "
  4347. >
  4348. <div class="worksTop">
  4349. <div>作业预览</div>
  4350. <div
  4351. class="corOpen"
  4352. @click="contract(toolIndex)"
  4353. v-if="
  4354. isCloseList[toolIndex].isCloseBoolean &&
  4355. isCloseList[toolIndex].isClose == 0
  4356. "
  4357. >
  4358. 折叠
  4359. </div>
  4360. <div
  4361. class="corOpen"
  4362. @click="contract(toolIndex)"
  4363. v-if="isCloseList[toolIndex].isClose == 1"
  4364. >
  4365. 展开
  4366. </div>
  4367. </div>
  4368. </div>
  4369. <div
  4370. :id="'tool-' + toolIndex"
  4371. :style="{
  4372. height:
  4373. isCloseList[toolIndex].isClose == 1
  4374. ? retrnToolHeight('tool-' + toolIndex)
  4375. : 'auto',
  4376. overflow:
  4377. isCloseList[toolIndex].isClose == 1
  4378. ? 'hidden'
  4379. : 'unset'
  4380. }"
  4381. class="worksDetailBox"
  4382. v-if="
  4383. worksStudent.length &&
  4384. worksStudent[toolIndex].length > 0
  4385. "
  4386. >
  4387. <div
  4388. class="works"
  4389. style="
  4390. width: 200px;
  4391. height: 140px;
  4392. margin: 10px 10px 10px 0;
  4393. border-radius: 15px;
  4394. box-shadow: 0 0 6px 1px #dfdada;
  4395. "
  4396. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4397. :key="wIndex"
  4398. :class="w.type == 1 ? 'isTypeOne' : ''"
  4399. >
  4400. <div class="workImg">
  4401. <img
  4402. :src="word2"
  4403. @click="downloadFile(w.works,w.userid)"
  4404. alt
  4405. />
  4406. <div
  4407. class="answerScore"
  4408. v-if="w.score"
  4409. @click.stop="openScore(w)"
  4410. :class="{
  4411. rightW:
  4412. w.userid == userid ||
  4413. tType == 1 ||
  4414. tType == 4 ||
  4415. w.ateacher == userid
  4416. }"
  4417. >
  4418. {{ JSON.parse(w.score).wScore }}分
  4419. </div>
  4420. <div
  4421. class="answerScore"
  4422. @click.stop="openScore(w)"
  4423. v-else-if="courseDetail.userid == userid"
  4424. :class="{
  4425. rightW:
  4426. w.userid == userid ||
  4427. tType == 1 ||
  4428. tType == 4 ||
  4429. w.ateacher == userid
  4430. }"
  4431. >
  4432. 评分
  4433. </div>
  4434. <img
  4435. class="deleteImg"
  4436. src="../../assets/deleteworks.png"
  4437. v-if="
  4438. w.userid == userid || tType == 1 || tType == 4
  4439. "
  4440. @click.stop="deleteWorks(w.wid)"
  4441. alt
  4442. />
  4443. </div>
  4444. <div class="comment" style="min-width: 200px">
  4445. <div class="worksName">
  4446. <div>{{ w.sName }}</div>
  4447. </div>
  4448. <div class="commentList">
  4449. <div class="commentList">
  4450. <div
  4451. class="commentImg"
  4452. @click="
  4453. isLikes(
  4454. w.wid,
  4455. userid,
  4456. 1,
  4457. null,
  4458. w.isLikes,
  4459. w.sName
  4460. )
  4461. "
  4462. >
  4463. <img
  4464. :src="w.isLikes == true ? likes : noLikes"
  4465. alt=""
  4466. />
  4467. </div>
  4468. <div>{{ w.likesCount }}</div>
  4469. </div>
  4470. <div class="commentList" style="margin-right: 15px">
  4471. <div
  4472. class="commentImg"
  4473. @click="commentOther(w, toolIndex, wIndex)"
  4474. >
  4475. <img
  4476. src="../../assets/icon/comment/comment.png"
  4477. alt=""
  4478. />
  4479. </div>
  4480. <div>{{ w.commentCount }}</div>
  4481. </div>
  4482. </div>
  4483. </div>
  4484. </div>
  4485. </div>
  4486. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4487. 未提交
  4488. </div>
  4489. <div
  4490. class="noWorksS"
  4491. v-if="noWorksS && noWorksS[toolIndex].length"
  4492. >
  4493. <div
  4494. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4495. :key="sIndex"
  4496. class="noWorksName"
  4497. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4498. >
  4499. <el-tooltip
  4500. effect="dark"
  4501. :content="s.student"
  4502. placement="top"
  4503. >
  4504. <span>{{ s.student }}</span>
  4505. </el-tooltip>
  4506. </div>
  4507. </div>
  4508. </div>
  4509. <div
  4510. v-if="
  4511. tType &&
  4512. ((tType == 2 && sIsOpen == true) ||
  4513. tType == 1 ||
  4514. tType == 4) &&
  4515. tool.tool.indexOf(57) != -1
  4516. "
  4517. class="worksBox"
  4518. >
  4519. <div
  4520. class="zuoyeYulan"
  4521. v-if="
  4522. worksStudent.length &&
  4523. worksStudent[toolIndex].length > 0
  4524. "
  4525. >
  4526. <div class="worksTop">
  4527. <div>作业预览</div>
  4528. <div
  4529. class="corOpen"
  4530. @click="contract(toolIndex)"
  4531. v-if="
  4532. isCloseList[toolIndex].isCloseBoolean &&
  4533. isCloseList[toolIndex].isClose == 0
  4534. "
  4535. >
  4536. 折叠
  4537. </div>
  4538. <div
  4539. class="corOpen"
  4540. @click="contract(toolIndex)"
  4541. v-if="isCloseList[toolIndex].isClose == 1"
  4542. >
  4543. 展开
  4544. </div>
  4545. </div>
  4546. </div>
  4547. <div
  4548. :id="'tool-' + toolIndex"
  4549. :style="{
  4550. height:
  4551. isCloseList[toolIndex].isClose == 1
  4552. ? retrnToolHeight('tool-' + toolIndex)
  4553. : 'auto',
  4554. overflow:
  4555. isCloseList[toolIndex].isClose == 1
  4556. ? 'hidden'
  4557. : 'unset'
  4558. }"
  4559. class="worksDetailBox"
  4560. v-if="
  4561. worksStudent.length &&
  4562. worksStudent[toolIndex].length > 0
  4563. "
  4564. >
  4565. <div
  4566. class="works"
  4567. style="
  4568. width: 200px;
  4569. height: 140px;
  4570. margin: 10px 10px 10px 0;
  4571. border-radius: 15px;
  4572. box-shadow: 0 0 6px 1px #dfdada;
  4573. "
  4574. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4575. :key="wIndex"
  4576. :class="w.type == 1 ? 'isTypeOne' : ''"
  4577. >
  4578. <div class="workImg">
  4579. <img
  4580. :src="word2"
  4581. @click="downloadFile(w.works,w.userid)"
  4582. v-if="w.type == 12"
  4583. alt
  4584. />
  4585. <img
  4586. :src="word2"
  4587. @click="
  4588. openCocoPi(57, toolIndex, w.userid, w.sName)
  4589. "
  4590. v-else-if="w.type == 15"
  4591. alt
  4592. />
  4593. <div
  4594. class="answerScore"
  4595. v-if="w.score"
  4596. @click.stop="openScore(w)"
  4597. :class="{
  4598. rightW:
  4599. w.userid == userid ||
  4600. tType == 1 ||
  4601. tType == 4 ||
  4602. w.ateacher == userid
  4603. }"
  4604. >
  4605. {{ JSON.parse(w.score).wScore }}分
  4606. </div>
  4607. <div
  4608. class="answerScore"
  4609. @click.stop="openScore(w)"
  4610. v-else-if="
  4611. courseDetail.userid == userid &&
  4612. courseDetail.state != 6 &&
  4613. chapInfoList[courseType].chapterInfo[0]
  4614. .taskJson[taskCount].eList &&
  4615. chapInfoList[courseType].chapterInfo[0]
  4616. .taskJson[taskCount].eList.length
  4617. "
  4618. :class="{
  4619. rightW:
  4620. w.userid == userid ||
  4621. tType == 1 ||
  4622. tType == 4 ||
  4623. w.ateacher == userid
  4624. }"
  4625. >
  4626. 评分
  4627. </div>
  4628. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4629. <div
  4630. v-else-if="
  4631. (courseDetail.userid == userid ||
  4632. (courseDetail.course_teacher &&
  4633. courseDetail.course_teacher.indexOf(userid) !=
  4634. -1) ||
  4635. (w.userid == userid && sIsOpen)) &&
  4636. courseDetail.state == 6 &&
  4637. ((chapInfoList[courseType].chapterInfo[0]
  4638. .taskJson[taskCount].eList &&
  4639. chapInfoList[courseType].chapterInfo[0]
  4640. .taskJson[taskCount].eList.length) ||
  4641. (tool.eList && tool.eList.length))
  4642. "
  4643. >
  4644. <el-popover
  4645. placement="top"
  4646. width="318"
  4647. :disabled="AIloading[toolIndex][wIndex].loading"
  4648. trigger="hover"
  4649. >
  4650. <markScore
  4651. :loading="AIloading[toolIndex][wIndex].loading"
  4652. :markScoreVisible="markScoreVisible"
  4653. :ref="`markSco${toolIndex}${wIndex}`"
  4654. @updateLoading="updateLoading"
  4655. @updateDocSco="updateDocSco"
  4656. @refreshOther="refreshOther"
  4657. @markScoreDig="markScoreDig"
  4658. :tool="tool"
  4659. :wIndex="wIndex"
  4660. :scoCon="w"
  4661. :toolIndex="toolIndex"
  4662. :key="refreshKey"
  4663. :stage="courseType"
  4664. :task="taskCount"
  4665. :scoTit="
  4666. chapInfoList[courseType].chapterInfo[0]
  4667. .taskJson[taskCount].eList
  4668. "
  4669. >
  4670. </markScore>
  4671. <div
  4672. class="answerScore"
  4673. @click="
  4674. markScoreDig2(
  4675. w.sName,
  4676. worksStudent,
  4677. w.userid,
  4678. toolIndex,
  4679. chapInfoList[courseType].chapterInfo[0]
  4680. .taskJson[taskCount].eList,
  4681. AIloading[toolIndex][wIndex].loading,
  4682. tool
  4683. )
  4684. "
  4685. slot="reference"
  4686. :class="{
  4687. rightW:
  4688. w.userid == userid ||
  4689. tType == 1 ||
  4690. tType == 4 ||
  4691. w.ateacher == userid
  4692. }"
  4693. >
  4694. <span v-if="AIloading[toolIndex][wIndex].sco">
  4695. {{
  4696. AIloading[toolIndex][wIndex].loading
  4697. ? "评分中"
  4698. : AIloading[toolIndex][wIndex].sco + "分"
  4699. }}
  4700. </span>
  4701. <span v-else>
  4702. {{
  4703. AIloading[toolIndex][wIndex].loading
  4704. ? "评分中"
  4705. : "评分"
  4706. }}
  4707. </span>
  4708. </div>
  4709. </el-popover>
  4710. </div>
  4711. <img
  4712. class="deleteImg"
  4713. src="../../assets/deleteworks.png"
  4714. v-if="
  4715. w.userid == userid || tType == 1 || tType == 4
  4716. "
  4717. @click.stop="deleteWorks(w.wid)"
  4718. alt
  4719. />
  4720. </div>
  4721. <div class="comment" style="min-width: 200px">
  4722. <div class="worksName">
  4723. <div>{{ w.sName }}</div>
  4724. </div>
  4725. <div class="commentList">
  4726. <div class="commentList">
  4727. <div
  4728. class="commentImg"
  4729. @click="
  4730. isLikes(
  4731. w.wid,
  4732. userid,
  4733. 1,
  4734. null,
  4735. w.isLikes,
  4736. w.sName
  4737. )
  4738. "
  4739. >
  4740. <img
  4741. :src="w.isLikes == true ? likes : noLikes"
  4742. alt=""
  4743. />
  4744. </div>
  4745. <div>{{ w.likesCount }}</div>
  4746. </div>
  4747. <div class="commentList" style="margin-right: 15px">
  4748. <div
  4749. class="commentImg"
  4750. @click="commentOther(w, toolIndex, wIndex)"
  4751. >
  4752. <img
  4753. src="../../assets/icon/comment/comment.png"
  4754. alt=""
  4755. />
  4756. </div>
  4757. <div>{{ w.commentCount }}</div>
  4758. </div>
  4759. </div>
  4760. </div>
  4761. </div>
  4762. </div>
  4763. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4764. 未提交
  4765. </div>
  4766. <div
  4767. class="noWorksS"
  4768. v-if="noWorksS && noWorksS[toolIndex].length"
  4769. >
  4770. <div
  4771. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4772. :key="sIndex"
  4773. class="noWorksName"
  4774. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4775. >
  4776. <el-tooltip
  4777. effect="dark"
  4778. :content="s.student"
  4779. placement="top"
  4780. >
  4781. <span>{{ s.student }}</span>
  4782. </el-tooltip>
  4783. </div>
  4784. </div>
  4785. </div>
  4786. <div
  4787. v-if="
  4788. tType &&
  4789. ((tType == 2 && sIsOpen == true) ||
  4790. tType == 1 ||
  4791. tType == 4) &&
  4792. tool.tool.indexOf(72) != -1
  4793. "
  4794. class="worksBox"
  4795. >
  4796. <div
  4797. class="zuoyeYulan"
  4798. style="display: flex;justify-content: space-between;align-items: center;"
  4799. v-if="
  4800. worksStudent.length &&
  4801. worksStudent[toolIndex].length > 0
  4802. "
  4803. >
  4804. <div class="worksTop">
  4805. <div>作业预览</div>
  4806. <div
  4807. class="corOpen"
  4808. @click="contract(toolIndex)"
  4809. v-if="
  4810. isCloseList[toolIndex].isCloseBoolean &&
  4811. isCloseList[toolIndex].isClose == 0
  4812. "
  4813. >
  4814. 折叠
  4815. </div>
  4816. <div
  4817. class="corOpen"
  4818. @click="contract(toolIndex)"
  4819. v-if="isCloseList[toolIndex].isClose == 1"
  4820. >
  4821. 展开
  4822. </div>
  4823. </div>
  4824. <div
  4825. style="display: flex;"
  4826. v-if="
  4827. (courseDetail.userid == userid ||
  4828. (courseDetail.course_teacher &&
  4829. courseDetail.course_teacher.indexOf(userid) !=
  4830. -1)) &&
  4831. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4832. taskCount
  4833. ].eList &&
  4834. chapInfoList[courseType].chapterInfo[0].taskJson[
  4835. taskCount
  4836. ].eList.length) ||
  4837. (tool.eList && tool.eList.length)) &&
  4838. courseDetail.state == 6
  4839. "
  4840. >
  4841. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 6"> -->
  4842. <div
  4843. @click="
  4844. resetLoopEva(
  4845. worksStudent[toolIndex],
  4846. chapInfoList[courseType].chapterInfo[0].taskJson[
  4847. taskCount
  4848. ].eList,
  4849. courseType,
  4850. taskCount,
  4851. toolIndex,
  4852. tool.toolDetail,
  4853. tool
  4854. )
  4855. "
  4856. style="margin-right:10px"
  4857. class="ScoreBtn"
  4858. >
  4859. 一键重置
  4860. </div>
  4861. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4862. <img
  4863. src="../../assets/icon/newIcons/rootImg.png"
  4864. alt=""
  4865. />
  4866. AI评分
  4867. </div>
  4868. <div
  4869. class="ScoreBtn"
  4870. v-else-if="!loopLoading[toolIndex].loading"
  4871. @click="
  4872. loopEva(
  4873. worksStudent[toolIndex],
  4874. chapInfoList[courseType].chapterInfo[0].taskJson[
  4875. taskCount
  4876. ].eList,
  4877. courseType,
  4878. taskCount,
  4879. toolIndex,
  4880. tool.toolDetail,
  4881. chapInfoList[courseType].chapterInfo[0].taskJson[
  4882. taskCount
  4883. ].taskDetail,
  4884. tool
  4885. )
  4886. "
  4887. >
  4888. <img
  4889. src="../../assets/icon/newIcons/rootImg.png"
  4890. alt=""
  4891. />
  4892. AI评分
  4893. </div>
  4894. <div class="ScoreBtn" v-else>
  4895. <img
  4896. src="../../assets/icon/newIcons/rootImg.png"
  4897. alt=""
  4898. />
  4899. 正在评分
  4900. </div>
  4901. </div>
  4902. </div>
  4903. <div
  4904. :id="'tool-' + toolIndex"
  4905. :style="{
  4906. height:
  4907. isCloseList[toolIndex].isClose == 1
  4908. ? retrnToolHeight('tool-' + toolIndex)
  4909. : 'auto',
  4910. overflow:
  4911. isCloseList[toolIndex].isClose == 1
  4912. ? 'hidden'
  4913. : 'unset'
  4914. }"
  4915. class="worksDetailBox"
  4916. v-if="
  4917. worksStudent.length &&
  4918. worksStudent[toolIndex].length > 0
  4919. "
  4920. >
  4921. <div
  4922. class="works"
  4923. style="
  4924. width: 200px;
  4925. height: 140px;
  4926. margin: 10px 10px 10px 0;
  4927. border-radius: 15px;
  4928. box-shadow: 0 0 6px 1px #dfdada;
  4929. "
  4930. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4931. :key="wIndex"
  4932. :class="w.type == 1 ? 'isTypeOne' : ''"
  4933. >
  4934. <div class="workImg">
  4935. <!-- <img
  4936. :src="word2"
  4937. @click="downloadFile(w.works)"
  4938. v-if="w.type == 12"
  4939. alt
  4940. /> -->
  4941. <img
  4942. :src="word2"
  4943. @click="
  4944. openCocoFlow(w)
  4945. "
  4946. alt
  4947. />
  4948. <div
  4949. class="answerScore"
  4950. v-if="w.score"
  4951. @click.stop="openScore(w)"
  4952. :class="{
  4953. rightW:
  4954. w.userid == userid ||
  4955. tType == 1 ||
  4956. tType == 4 ||
  4957. w.ateacher == userid
  4958. }"
  4959. >
  4960. {{ JSON.parse(w.score).wScore }}分
  4961. </div>
  4962. <div
  4963. class="answerScore"
  4964. @click.stop="openScore(w)"
  4965. v-else-if="
  4966. courseDetail.userid == userid &&
  4967. courseDetail.state != 5 &&
  4968. chapInfoList[courseType].chapterInfo[0]
  4969. .taskJson[taskCount].eList &&
  4970. chapInfoList[courseType].chapterInfo[0]
  4971. .taskJson[taskCount].eList.length
  4972. "
  4973. :class="{
  4974. rightW:
  4975. w.userid == userid ||
  4976. tType == 1 ||
  4977. tType == 4 ||
  4978. w.ateacher == userid
  4979. }"
  4980. >
  4981. 评分
  4982. </div>
  4983. <div
  4984. v-else-if="
  4985. (courseDetail.userid == userid ||
  4986. (courseDetail.course_teacher &&
  4987. courseDetail.course_teacher.indexOf(userid) !=
  4988. -1) ||
  4989. (w.userid == userid && sIsOpen)) &&
  4990. courseDetail.state == 6 &&
  4991. ((chapInfoList[courseType].chapterInfo[0]
  4992. .taskJson[taskCount].eList &&
  4993. chapInfoList[courseType].chapterInfo[0]
  4994. .taskJson[taskCount].eList.length) ||
  4995. (tool.eList && tool.eList.length))
  4996. "
  4997. >
  4998. <!-- <div
  4999. class="answerScore"
  5000. @click="markScoreDig(w.userid,toolIndex)"
  5001. :class="{
  5002. rightW:
  5003. w.userid == userid ||
  5004. tType == 1 ||
  5005. tType == 4 ||
  5006. w.ateacher == userid,
  5007. }"
  5008. >
  5009. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5010. </div> -->
  5011. <!-- @show="handleShow(toolIndex,wIndex)"
  5012. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5013. <el-popover
  5014. placement="top"
  5015. width="318"
  5016. :disabled="AIloading[toolIndex][wIndex].loading"
  5017. trigger="hover"
  5018. >
  5019. <markScore
  5020. :loading="AIloading[toolIndex][wIndex].loading"
  5021. :markScoreVisible="markScoreVisible"
  5022. :ref="`markSco${toolIndex}${wIndex}`"
  5023. @updateLoading="updateLoading"
  5024. @updateDocSco="updateDocSco"
  5025. @refreshOther="refreshOther"
  5026. @markScoreDig="markScoreDig"
  5027. :tool="tool"
  5028. :wIndex="wIndex"
  5029. :scoCon="w"
  5030. :toolIndex="toolIndex"
  5031. :key="refreshKey"
  5032. :stage="courseType"
  5033. :task="taskCount"
  5034. :scoTit="
  5035. chapInfoList[courseType].chapterInfo[0]
  5036. .taskJson[taskCount].eList
  5037. "
  5038. >
  5039. </markScore>
  5040. <div
  5041. class="answerScore"
  5042. @click="
  5043. markScoreDig2(
  5044. w.sName,
  5045. worksStudent,
  5046. w.userid,
  5047. toolIndex,
  5048. chapInfoList[courseType].chapterInfo[0]
  5049. .taskJson[taskCount].eList,
  5050. AIloading[toolIndex][wIndex].loading,
  5051. tool
  5052. )
  5053. "
  5054. slot="reference"
  5055. :class="{
  5056. rightW:
  5057. w.userid == userid ||
  5058. tType == 1 ||
  5059. tType == 4 ||
  5060. w.ateacher == userid
  5061. }"
  5062. >
  5063. <span v-if="AIloading[toolIndex][wIndex].sco">
  5064. {{
  5065. AIloading[toolIndex][wIndex].loading
  5066. ? "评分中"
  5067. : AIloading[toolIndex][wIndex].sco + "分"
  5068. }}
  5069. </span>
  5070. <span v-else>
  5071. {{
  5072. AIloading[toolIndex][wIndex].loading
  5073. ? "评分中"
  5074. : "评分"
  5075. }}
  5076. </span>
  5077. </div>
  5078. </el-popover>
  5079. </div>
  5080. <img
  5081. class="deleteImg"
  5082. src="../../assets/deleteworks.png"
  5083. v-if="
  5084. w.userid == userid || tType == 1 || tType == 4
  5085. "
  5086. @click.stop="deleteWorks(w.wid)"
  5087. alt
  5088. />
  5089. </div>
  5090. <div class="comment" style="min-width: 200px">
  5091. <div class="worksName">
  5092. <div>{{ w.sName }}</div>
  5093. </div>
  5094. <div class="commentList">
  5095. <div class="commentList">
  5096. <div
  5097. class="commentImg"
  5098. @click="
  5099. isLikes(
  5100. w.wid,
  5101. userid,
  5102. 1,
  5103. null,
  5104. w.isLikes,
  5105. w.sName
  5106. )
  5107. "
  5108. >
  5109. <img
  5110. :src="w.isLikes == true ? likes : noLikes"
  5111. alt=""
  5112. />
  5113. </div>
  5114. <div>{{ w.likesCount }}</div>
  5115. </div>
  5116. <div class="commentList" style="margin-right: 15px">
  5117. <div
  5118. class="commentImg"
  5119. @click="commentOther(w, toolIndex, wIndex)"
  5120. >
  5121. <img
  5122. src="../../assets/icon/comment/comment.png"
  5123. alt=""
  5124. />
  5125. </div>
  5126. <div>{{ w.commentCount }}</div>
  5127. </div>
  5128. </div>
  5129. </div>
  5130. </div>
  5131. </div>
  5132. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5133. 未提交
  5134. </div>
  5135. <div
  5136. class="noWorksS"
  5137. v-if="noWorksS && noWorksS[toolIndex].length"
  5138. >
  5139. <div
  5140. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5141. :key="sIndex"
  5142. class="noWorksName"
  5143. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5144. >
  5145. <el-tooltip
  5146. effect="dark"
  5147. :content="s.student"
  5148. placement="top"
  5149. >
  5150. <span>{{ s.student }}</span>
  5151. </el-tooltip>
  5152. </div>
  5153. </div>
  5154. </div>
  5155. <div
  5156. v-if="
  5157. tType &&
  5158. tType == 2 &&
  5159. !sIsOpen &&
  5160. tool.tool.indexOf(72) != -1
  5161. "
  5162. class="worksBox"
  5163. >
  5164. <div
  5165. class="zuoyeYulan"
  5166. v-if="workStudent[toolIndex].length > 0"
  5167. >
  5168. <span class="worksTitle">作业预览</span>
  5169. </div>
  5170. <div
  5171. class="worksDetailBox"
  5172. v-if="workStudent[toolIndex].length > 0"
  5173. >
  5174. <div
  5175. class="works"
  5176. style="
  5177. width: 200px;
  5178. height: 140px;
  5179. margin: 10px 10px 10px 0;
  5180. box-shadow: 0 0 6px 1px #dfdada;
  5181. "
  5182. v-for="(w, wIndex) in workStudent[toolIndex]"
  5183. :key="wIndex"
  5184. >
  5185. <div class="workImg">
  5186. <!-- <img
  5187. :src="word2"
  5188. @click="downloadFile(w.works)"
  5189. v-if="w.type == 12"
  5190. alt
  5191. /> -->
  5192. <img
  5193. :src="word2"
  5194. @click="
  5195. openCocoFlow(w)
  5196. "
  5197. alt
  5198. />
  5199. <div
  5200. class="answerScore"
  5201. v-if="w.score"
  5202. @click.stop="openScore(w)"
  5203. :class="{
  5204. rightW:
  5205. w.userid == userid || tType == 1 || tType == 4
  5206. }"
  5207. >
  5208. {{ JSON.parse(w.score).wScore }}分
  5209. </div>
  5210. <div
  5211. class="answerScore"
  5212. @click.stop="openScore(w)"
  5213. v-else-if="courseDetail.userid == userid"
  5214. :class="{
  5215. rightW:
  5216. w.userid == userid || tType == 1 || tType == 4
  5217. }"
  5218. >
  5219. 评分
  5220. </div>
  5221. <div
  5222. class="stuLookScore"
  5223. v-if="
  5224. w.userid == userid ||
  5225. (tType == 1 &&
  5226. courseDetail.state == 6 &&
  5227. ((chapInfoList[courseType].chapterInfo[0]
  5228. .taskJson[taskCount].eList &&
  5229. chapInfoList[courseType].chapterInfo[0]
  5230. .taskJson[taskCount].eList.length) ||
  5231. (tool.eList && tool.eList.length)))
  5232. "
  5233. >
  5234. <el-popover
  5235. placement="top"
  5236. width="318"
  5237. trigger="hover"
  5238. >
  5239. <markScore
  5240. :loading="AIloading[toolIndex][wIndex].loading"
  5241. :markScoreVisible="markScoreVisible"
  5242. :ref="`markSco${toolIndex}${wIndex}`"
  5243. @updateLoading="updateLoading"
  5244. @updateDocSco="updateDocSco"
  5245. @refreshOther="refreshOther"
  5246. @markScoreDig="markScoreDig"
  5247. :tool="tool"
  5248. :wIndex="wIndex"
  5249. :scoCon="w"
  5250. :toolIndex="toolIndex"
  5251. :key="refreshKey"
  5252. :stage="courseType"
  5253. :task="taskCount"
  5254. :scoTit="
  5255. chapInfoList[courseType].chapterInfo[0]
  5256. .taskJson[taskCount].eList
  5257. "
  5258. >
  5259. </markScore>
  5260. <div
  5261. @click="
  5262. markScoreDig2(
  5263. w.sName,
  5264. worksStudent,
  5265. w.userid,
  5266. toolIndex,
  5267. chapInfoList[courseType].chapterInfo[0]
  5268. .taskJson[taskCount].eList,
  5269. AIloading[toolIndex][wIndex].loading,
  5270. tool
  5271. )
  5272. "
  5273. slot="reference"
  5274. >
  5275. <span v-if="AIloading[toolIndex][wIndex].sco">
  5276. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5277. </span>
  5278. <span v-else>
  5279. 评分
  5280. </span>
  5281. </div>
  5282. </el-popover>
  5283. </div>
  5284. <img
  5285. class="deleteImg"
  5286. src="../../assets/deleteworks.png"
  5287. v-if="
  5288. w.userid == userid || tType == 1 || tType == 4
  5289. "
  5290. @click.stop="deleteWorks(w.wid)"
  5291. alt
  5292. />
  5293. </div>
  5294. <div class="worksName">
  5295. <div>{{ w.sName }}</div>
  5296. </div>
  5297. </div>
  5298. </div>
  5299. </div>
  5300. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5301. <div
  5302. style="display: flex;justify-content: space-between;align-items: center;"
  5303. >
  5304. <div
  5305. class="zuoyeYulan"
  5306. v-if="
  5307. worksStudent.length &&
  5308. worksStudent[toolIndex].length > 0
  5309. "
  5310. >
  5311. <span class="worksTitle">作业预览</span>
  5312. <div
  5313. class="corOpen"
  5314. @click="contract(toolIndex)"
  5315. v-if="
  5316. isCloseList[toolIndex].isCloseBoolean &&
  5317. isCloseList[toolIndex].isClose == 0
  5318. "
  5319. >
  5320. 折叠
  5321. </div>
  5322. <div
  5323. class="corOpen"
  5324. @click="contract(toolIndex)"
  5325. v-if="isCloseList[toolIndex].isClose == 1"
  5326. >
  5327. 展开
  5328. </div>
  5329. </div>
  5330. <div
  5331. style="display: flex;"
  5332. v-if="
  5333. (courseDetail.userid == userid ||
  5334. (courseDetail.course_teacher &&
  5335. courseDetail.course_teacher.indexOf(userid) !=
  5336. -1)) &&
  5337. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5338. taskCount
  5339. ].eList &&
  5340. chapInfoList[courseType].chapterInfo[0].taskJson[
  5341. taskCount
  5342. ].eList.length) ||
  5343. (tool.eList && tool.eList.length)) &&
  5344. courseDetail.state == 6
  5345. "
  5346. >
  5347. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6 "> -->
  5348. <div
  5349. style="margin-right:10px"
  5350. class="ScoreBtn"
  5351. @click="
  5352. resetLoopEva(
  5353. worksStudent[toolIndex],
  5354. chapInfoList[courseType].chapterInfo[0].taskJson[
  5355. taskCount
  5356. ].eList,
  5357. courseType,
  5358. taskCount,
  5359. toolIndex,
  5360. tool.toolDetail,
  5361. worksStudent
  5362. )
  5363. "
  5364. >
  5365. 一键重置
  5366. </div>
  5367. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5368. <img
  5369. src="../../assets/icon/newIcons/rootImg.png"
  5370. alt=""
  5371. />
  5372. AI评分
  5373. </div>
  5374. <div
  5375. class="ScoreBtn"
  5376. v-else-if="!loopLoading[toolIndex].loading"
  5377. @click="
  5378. loopEva(
  5379. worksStudent[toolIndex],
  5380. chapInfoList[courseType].chapterInfo[0].taskJson[
  5381. taskCount
  5382. ].eList,
  5383. courseType,
  5384. taskCount,
  5385. toolIndex,
  5386. tool.toolDetail,
  5387. chapInfoList[courseType].chapterInfo[0].taskJson[
  5388. taskCount
  5389. ].taskDetail,
  5390. tool
  5391. )
  5392. "
  5393. >
  5394. <img
  5395. src="../../assets/icon/newIcons/rootImg.png"
  5396. alt=""
  5397. />
  5398. AI评分
  5399. </div>
  5400. <div class="ScoreBtn" v-else>
  5401. <img
  5402. src="../../assets/icon/newIcons/rootImg.png"
  5403. alt=""
  5404. />
  5405. 正在评分
  5406. </div>
  5407. </div>
  5408. </div>
  5409. <div
  5410. :id="'tool-' + toolIndex"
  5411. :style="{
  5412. height:
  5413. isCloseList[toolIndex].isClose == 1
  5414. ? retrnToolHeight('tool-' + toolIndex)
  5415. : 'auto',
  5416. overflow:
  5417. isCloseList[toolIndex].isClose == 1
  5418. ? 'hidden'
  5419. : 'unset'
  5420. }"
  5421. class="worksDetailBox"
  5422. v-if="
  5423. worksStudent.length &&
  5424. worksStudent[toolIndex].length > 0
  5425. "
  5426. >
  5427. <div
  5428. class="works"
  5429. style="
  5430. width: 200px;
  5431. height: 140px;
  5432. margin: 10px 10px 10px 0;
  5433. border-radius: 15px;
  5434. box-shadow: 0 0 6px 1px #dfdada;
  5435. "
  5436. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5437. :key="wIndex"
  5438. :class="w.type == 1 ? 'isTypeOne' : ''"
  5439. >
  5440. <div class="workImg" v-if="w.type == 0">
  5441. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5442. <img
  5443. :src="w.works"
  5444. @click="previewImg(w.works, w)"
  5445. alt
  5446. />
  5447. <div
  5448. class="answerScore"
  5449. v-if="w.score"
  5450. @click.stop="openScore(w)"
  5451. :class="{
  5452. rightW:
  5453. w.userid == userid ||
  5454. tType == 1 ||
  5455. tType == 4 ||
  5456. w.ateacher == userid
  5457. }"
  5458. >
  5459. {{ JSON.parse(w.score).wScore }}分
  5460. </div>
  5461. <div
  5462. class="answerScore"
  5463. @click.stop="openScore(w)"
  5464. v-else-if="
  5465. courseDetail.userid == userid &&
  5466. courseDetail.state != 6 &&
  5467. chapInfoList[courseType].chapterInfo[0]
  5468. .taskJson[taskCount].eList &&
  5469. chapInfoList[courseType].chapterInfo[0]
  5470. .taskJson[taskCount].eList.length
  5471. "
  5472. :class="{
  5473. rightW:
  5474. w.userid == userid ||
  5475. tType == 1 ||
  5476. tType == 4 ||
  5477. w.ateacher == userid
  5478. }"
  5479. >
  5480. 评分
  5481. </div>
  5482. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5483. <div
  5484. v-else-if="
  5485. (courseDetail.userid == userid ||
  5486. (courseDetail.course_teacher &&
  5487. courseDetail.course_teacher.indexOf(userid) !=
  5488. -1) ||
  5489. (w.userid == userid && sIsOpen)) &&
  5490. courseDetail.state == 6 &&
  5491. ((chapInfoList[courseType].chapterInfo[0]
  5492. .taskJson[taskCount].eList &&
  5493. chapInfoList[courseType].chapterInfo[0]
  5494. .taskJson[taskCount].eList.length) ||
  5495. (tool.eList && tool.eList.length))
  5496. "
  5497. >
  5498. <el-popover
  5499. placement="top"
  5500. width="318"
  5501. :disabled="AIloading[toolIndex][wIndex].loading"
  5502. trigger="hover"
  5503. >
  5504. <markScore
  5505. :loading="AIloading[toolIndex][wIndex].loading"
  5506. :markScoreVisible="markScoreVisible"
  5507. :ref="`markSco${toolIndex}${wIndex}`"
  5508. @updateLoading="updateLoading"
  5509. @updateDocSco="updateDocSco"
  5510. @refreshOther="refreshOther"
  5511. @markScoreDig="markScoreDig"
  5512. :tool="tool"
  5513. :wIndex="wIndex"
  5514. :scoCon="w"
  5515. :toolIndex="toolIndex"
  5516. :key="refreshKey"
  5517. :stage="courseType"
  5518. :task="taskCount"
  5519. :scoTit="
  5520. chapInfoList[courseType].chapterInfo[0]
  5521. .taskJson[taskCount].eList
  5522. "
  5523. >
  5524. </markScore>
  5525. <div
  5526. class="answerScore"
  5527. @click="
  5528. markScoreDig2(
  5529. w.sName,
  5530. worksStudent,
  5531. w.userid,
  5532. toolIndex,
  5533. chapInfoList[courseType].chapterInfo[0]
  5534. .taskJson[taskCount].eList,
  5535. AIloading[toolIndex][wIndex].loading,
  5536. tool
  5537. )
  5538. "
  5539. slot="reference"
  5540. :class="{
  5541. rightW:
  5542. w.userid == userid ||
  5543. tType == 1 ||
  5544. tType == 4 ||
  5545. w.ateacher == userid
  5546. }"
  5547. >
  5548. <span v-if="AIloading[toolIndex][wIndex].sco">
  5549. {{
  5550. AIloading[toolIndex][wIndex].loading
  5551. ? "评分中"
  5552. : AIloading[toolIndex][wIndex].sco + "分"
  5553. }}
  5554. </span>
  5555. <span v-else>
  5556. {{
  5557. AIloading[toolIndex][wIndex].loading
  5558. ? "评分中"
  5559. : "评分"
  5560. }}
  5561. </span>
  5562. </div>
  5563. </el-popover>
  5564. </div>
  5565. <img
  5566. class="deleteImg"
  5567. src="../../assets/deleteworks.png"
  5568. v-if="
  5569. w.userid == userid || tType == 1 || tType == 4
  5570. "
  5571. @click.stop="deleteWorks(w.wid)"
  5572. alt
  5573. />
  5574. </div>
  5575. <div
  5576. class="workImg"
  5577. style="cursor: pointer"
  5578. v-if="w.type == 1"
  5579. >
  5580. <img :src="word" @click="openFile(w.works)" alt />
  5581. <!-- @click="openFile(w.works)" -->
  5582. <div
  5583. class="answerScore"
  5584. v-if="w.score"
  5585. @click.stop="openScore(w)"
  5586. :class="{
  5587. rightW:
  5588. w.userid == userid ||
  5589. tType == 1 ||
  5590. tType == 4 ||
  5591. w.ateacher == userid
  5592. }"
  5593. >
  5594. {{ JSON.parse(w.score).wScore }}分
  5595. </div>
  5596. <div
  5597. class="answerScore"
  5598. @click.stop="openScore(w)"
  5599. v-else-if="
  5600. courseDetail.userid == userid &&
  5601. courseDetail.state != 6 &&
  5602. chapInfoList[courseType].chapterInfo[0]
  5603. .taskJson[taskCount].eList &&
  5604. chapInfoList[courseType].chapterInfo[0]
  5605. .taskJson[taskCount].eList.length
  5606. "
  5607. :class="{
  5608. rightW:
  5609. w.userid == userid ||
  5610. tType == 1 ||
  5611. tType == 4 ||
  5612. w.ateacher == userid
  5613. }"
  5614. >
  5615. 评分
  5616. </div>
  5617. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5618. <div
  5619. v-else-if="
  5620. (courseDetail.userid == userid ||
  5621. (courseDetail.course_teacher &&
  5622. courseDetail.course_teacher.indexOf(userid) !=
  5623. -1) ||
  5624. (w.userid == userid && sIsOpen)) &&
  5625. courseDetail.state == 6 &&
  5626. ((chapInfoList[courseType].chapterInfo[0]
  5627. .taskJson[taskCount].eList &&
  5628. chapInfoList[courseType].chapterInfo[0]
  5629. .taskJson[taskCount].eList.length) ||
  5630. (tool.eList && tool.eList.length))
  5631. "
  5632. >
  5633. <el-popover
  5634. placement="top"
  5635. width="318"
  5636. :disabled="AIloading[toolIndex][wIndex].loading"
  5637. trigger="hover"
  5638. >
  5639. <markScore
  5640. :loading="AIloading[toolIndex][wIndex].loading"
  5641. :markScoreVisible="markScoreVisible"
  5642. :ref="`markSco${toolIndex}${wIndex}`"
  5643. @updateLoading="updateLoading"
  5644. @updateDocSco="updateDocSco"
  5645. @refreshOther="refreshOther"
  5646. @markScoreDig="markScoreDig"
  5647. :tool="tool"
  5648. :wIndex="wIndex"
  5649. :scoCon="w"
  5650. :toolIndex="toolIndex"
  5651. :key="refreshKey"
  5652. :stage="courseType"
  5653. :task="taskCount"
  5654. :scoTit="
  5655. chapInfoList[courseType].chapterInfo[0]
  5656. .taskJson[taskCount].eList
  5657. "
  5658. >
  5659. </markScore>
  5660. <div
  5661. class="answerScore"
  5662. @click="
  5663. markScoreDig2(
  5664. w.sName,
  5665. worksStudent,
  5666. w.userid,
  5667. toolIndex,
  5668. chapInfoList[courseType].chapterInfo[0]
  5669. .taskJson[taskCount].eList,
  5670. AIloading[toolIndex][wIndex].loading,
  5671. tool
  5672. )
  5673. "
  5674. slot="reference"
  5675. :class="{
  5676. rightW:
  5677. w.userid == userid ||
  5678. tType == 1 ||
  5679. tType == 4 ||
  5680. w.ateacher == userid
  5681. }"
  5682. >
  5683. <span v-if="AIloading[toolIndex][wIndex].sco">
  5684. {{
  5685. AIloading[toolIndex][wIndex].loading
  5686. ? "评分中"
  5687. : AIloading[toolIndex][wIndex].sco + "分"
  5688. }}
  5689. </span>
  5690. <span v-else>
  5691. {{
  5692. AIloading[toolIndex][wIndex].loading
  5693. ? "评分中"
  5694. : "评分"
  5695. }}
  5696. </span>
  5697. </div>
  5698. </el-popover>
  5699. </div>
  5700. <img
  5701. class="deleteImg"
  5702. src="../../assets/deleteworks.png"
  5703. v-if="
  5704. w.userid == userid || tType == 1 || tType == 4
  5705. "
  5706. @click.stop="deleteWorks(w.wid)"
  5707. alt
  5708. />
  5709. </div>
  5710. <div class="workImg" v-if="w.type == 3">
  5711. <img
  5712. style="cursor: pointer"
  5713. :src="video"
  5714. @click="openVideo(w)"
  5715. alt
  5716. />
  5717. <!-- @click="openVideo(w.works)" -->
  5718. <div
  5719. class="answerScore"
  5720. v-if="w.score"
  5721. @click.stop="openScore(w)"
  5722. :class="{
  5723. rightW:
  5724. w.userid == userid ||
  5725. tType == 1 ||
  5726. tType == 4 ||
  5727. w.ateacher == userid
  5728. }"
  5729. >
  5730. {{ JSON.parse(w.score).wScore }}分
  5731. </div>
  5732. <div
  5733. class="answerScore"
  5734. @click.stop="openScore(w)"
  5735. v-else-if="
  5736. courseDetail.userid == userid &&
  5737. courseDetail.state != 6 &&
  5738. chapInfoList[courseType].chapterInfo[0]
  5739. .taskJson[taskCount].eList &&
  5740. chapInfoList[courseType].chapterInfo[0]
  5741. .taskJson[taskCount].eList.length
  5742. "
  5743. :class="{
  5744. rightW:
  5745. w.userid == userid ||
  5746. tType == 1 ||
  5747. tType == 4 ||
  5748. w.ateacher == userid
  5749. }"
  5750. >
  5751. 评分
  5752. </div>
  5753. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5754. <div
  5755. v-else-if="
  5756. (courseDetail.userid == userid ||
  5757. (courseDetail.course_teacher &&
  5758. courseDetail.course_teacher.indexOf(userid) !=
  5759. -1) ||
  5760. (w.userid == userid && sIsOpen)) &&
  5761. courseDetail.state == 6 &&
  5762. ((chapInfoList[courseType].chapterInfo[0]
  5763. .taskJson[taskCount].eList &&
  5764. chapInfoList[courseType].chapterInfo[0]
  5765. .taskJson[taskCount].eList.length) ||
  5766. (tool.eList && tool.eList.length))
  5767. "
  5768. >
  5769. <el-popover
  5770. placement="top"
  5771. width="318"
  5772. :disabled="AIloading[toolIndex][wIndex].loading"
  5773. trigger="hover"
  5774. >
  5775. <markScore
  5776. :loading="AIloading[toolIndex][wIndex].loading"
  5777. :markScoreVisible="markScoreVisible"
  5778. :ref="`markSco${toolIndex}${wIndex}`"
  5779. @updateLoading="updateLoading"
  5780. @updateDocSco="updateDocSco"
  5781. @refreshOther="refreshOther"
  5782. @markScoreDig="markScoreDig"
  5783. :tool="tool"
  5784. :wIndex="wIndex"
  5785. :scoCon="w"
  5786. :toolIndex="toolIndex"
  5787. :key="refreshKey"
  5788. :stage="courseType"
  5789. :task="taskCount"
  5790. :scoTit="
  5791. chapInfoList[courseType].chapterInfo[0]
  5792. .taskJson[taskCount].eList
  5793. "
  5794. >
  5795. </markScore>
  5796. <div
  5797. class="answerScore"
  5798. @click="
  5799. markScoreDig2(
  5800. w.sName,
  5801. worksStudent,
  5802. w.userid,
  5803. toolIndex,
  5804. chapInfoList[courseType].chapterInfo[0]
  5805. .taskJson[taskCount].eList,
  5806. AIloading[toolIndex][wIndex].loading,
  5807. tool
  5808. )
  5809. "
  5810. slot="reference"
  5811. :class="{
  5812. rightW:
  5813. w.userid == userid ||
  5814. tType == 1 ||
  5815. tType == 4 ||
  5816. w.ateacher == userid
  5817. }"
  5818. >
  5819. <span v-if="AIloading[toolIndex][wIndex].sco">
  5820. {{
  5821. AIloading[toolIndex][wIndex].loading
  5822. ? "评分中"
  5823. : AIloading[toolIndex][wIndex].sco + "分"
  5824. }}
  5825. </span>
  5826. <span v-else>
  5827. {{
  5828. AIloading[toolIndex][wIndex].loading
  5829. ? "评分中"
  5830. : "评分"
  5831. }}
  5832. </span>
  5833. </div>
  5834. </el-popover>
  5835. </div>
  5836. <img
  5837. class="deleteImg"
  5838. src="../../assets/deleteworks.png"
  5839. v-if="
  5840. w.userid == userid || tType == 1 || tType == 4
  5841. "
  5842. @click.stop="deleteWorks(w.wid)"
  5843. alt
  5844. />
  5845. </div>
  5846. <div class="comment" style="min-width: 200px">
  5847. <div class="worksName">
  5848. <div
  5849. style="cursor: pointer"
  5850. @click="
  5851. openSname(w.sName, w.wid, toolIndex, w.userid)
  5852. "
  5853. >
  5854. {{ w.sName }}
  5855. </div>
  5856. </div>
  5857. <div class="commentList">
  5858. <div class="commentList">
  5859. <div
  5860. class="commentImg"
  5861. @click="
  5862. isLikes(
  5863. w.wid,
  5864. userid,
  5865. 1,
  5866. null,
  5867. w.isLikes,
  5868. w.sName
  5869. )
  5870. "
  5871. >
  5872. <img
  5873. :src="w.isLikes == true ? likes : noLikes"
  5874. alt=""
  5875. />
  5876. </div>
  5877. <div>{{ w.likesCount }}</div>
  5878. </div>
  5879. <div class="commentList" style="margin-right: 15px">
  5880. <div
  5881. class="commentImg"
  5882. @click="commentOther(w, toolIndex, wIndex)"
  5883. >
  5884. <img
  5885. src="../../assets/icon/comment/comment.png"
  5886. alt=""
  5887. />
  5888. </div>
  5889. <div>{{ w.commentCount }}</div>
  5890. </div>
  5891. </div>
  5892. </div>
  5893. </div>
  5894. </div>
  5895. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5896. 未提交
  5897. </div>
  5898. <div
  5899. class="noWorksS"
  5900. v-if="noWorksS && noWorksS[toolIndex].length"
  5901. >
  5902. <div
  5903. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5904. :key="sIndex"
  5905. class="noWorksName"
  5906. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5907. >
  5908. <el-tooltip
  5909. effect="dark"
  5910. :content="s.student"
  5911. placement="top"
  5912. >
  5913. <span>{{ s.student }}</span>
  5914. </el-tooltip>
  5915. </div>
  5916. </div>
  5917. </div>
  5918. <div
  5919. v-if="
  5920. tType &&
  5921. ((tType == 2 && sIsOpen == true) ||
  5922. tType == 1 ||
  5923. tType == 4) &&
  5924. tool.tool.indexOf(4) != -1 &&
  5925. (tool.askJson[0].answer ||
  5926. tool.askJson[0].answer === 0) &&
  5927. checkJson[toolIndex].length
  5928. "
  5929. class="xuan_right_box"
  5930. >
  5931. <div
  5932. class="tool_right_box"
  5933. v-for="(item, index) in tool.askJson"
  5934. :key="index"
  5935. >
  5936. <div style="width: calc(100% - 30px);">
  5937. <el-tooltip
  5938. effect="light"
  5939. :content="index + 1 + '、' + item.askstitle"
  5940. placement="top"
  5941. popper-class="text_tooltip"
  5942. >
  5943. <div
  5944. style="
  5945. width: calc(100% - 130px);
  5946. display: block;
  5947. white-space: nowrap;
  5948. overflow: hidden;
  5949. text-overflow: ellipsis;
  5950. word-break: break-word;
  5951. cursor: pointer;
  5952. "
  5953. >
  5954. {{ index + 1 + "、" + item.askstitle }}
  5955. </div>
  5956. </el-tooltip>
  5957. </div>
  5958. <div class="right_box_xuan">
  5959. <span>正确率</span>
  5960. <span>{{
  5961. (checkJson[toolIndex][index].right
  5962. ? checkJson[toolIndex][index].right
  5963. : 0) + "%"
  5964. }}</span>
  5965. </div>
  5966. </div>
  5967. </div>
  5968. <div
  5969. class="xuan_right_box"
  5970. style="background: unset; padding: 0 10px"
  5971. v-if="
  5972. tType &&
  5973. ((tType == 2 && sIsOpen == true) ||
  5974. tType == 1 ||
  5975. tType == 4) &&
  5976. tool.tool.indexOf(4) != -1
  5977. "
  5978. >
  5979. <AskStatic
  5980. v-if="
  5981. worksStudent.length &&
  5982. worksStudent[toolIndex].length > 0
  5983. "
  5984. :askJSON="tool"
  5985. :checkJson="checkJson[toolIndex]"
  5986. ></AskStatic>
  5987. </div>
  5988. <div
  5989. v-if="
  5990. tType &&
  5991. ((tType == 2 && sIsOpen == true) ||
  5992. tType == 1 ||
  5993. tType == 4) &&
  5994. tool.tool.indexOf(4) != -1
  5995. "
  5996. class="worksBox"
  5997. >
  5998. <div
  5999. class="zuoyeYulan"
  6000. v-if="
  6001. worksStudent.length &&
  6002. worksStudent[toolIndex].length > 0
  6003. "
  6004. >
  6005. <div class="worksTop">
  6006. <div>作业预览</div>
  6007. <div
  6008. class="corOpen"
  6009. @click="contract(toolIndex)"
  6010. v-if="
  6011. isCloseList[toolIndex].isCloseBoolean &&
  6012. isCloseList[toolIndex].isClose == 0
  6013. "
  6014. >
  6015. 折叠
  6016. </div>
  6017. <div
  6018. class="corOpen"
  6019. @click="contract(toolIndex)"
  6020. v-if="isCloseList[toolIndex].isClose == 1"
  6021. >
  6022. 展开
  6023. </div>
  6024. </div>
  6025. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6026. </div>
  6027. <div>
  6028. <div
  6029. :id="'tool-' + toolIndex"
  6030. :style="{
  6031. height:
  6032. isCloseList[toolIndex].isClose == 1
  6033. ? retrnToolHeight('tool-' + toolIndex)
  6034. : 'auto',
  6035. overflow:
  6036. isCloseList[toolIndex].isClose == 1
  6037. ? 'hidden'
  6038. : 'unset'
  6039. }"
  6040. class="worksDetailBox"
  6041. v-if="
  6042. worksStudent.length &&
  6043. worksStudent[toolIndex].length > 0
  6044. "
  6045. >
  6046. <div
  6047. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6048. :key="wIndex"
  6049. class="isWorksName2"
  6050. @click="
  6051. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6052. "
  6053. >
  6054. {{ w.sName }}
  6055. <img
  6056. class="deleteImg deleteImg2"
  6057. src="../../assets/deleteworks.png"
  6058. v-if="
  6059. w.userid == userid || tType == 1 || tType == 4
  6060. "
  6061. @click.stop="deleteWorks(w.wid)"
  6062. alt
  6063. />
  6064. </div>
  6065. <!-- <div class="works" style="
  6066. width: 200px;
  6067. height: 140px;
  6068. border-radius: 10px;
  6069. box-shadow: 0 0 6px 1px #dfdada;
  6070. overflow: hidden;
  6071. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6072. <div class="workImg">
  6073. <img src="../../assets/icon/works/noImg.png" @click="
  6074. openTools(
  6075. 4,
  6076. toolIndex,
  6077. taskCount,
  6078. w.works,
  6079. w.sName
  6080. )
  6081. " alt />
  6082. </div>
  6083. <div class="worksName">
  6084. <div>{{ w.sName }}</div>
  6085. <div>{{ w.time }}</div>
  6086. </div>
  6087. </div> -->
  6088. </div>
  6089. </div>
  6090. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6091. 未提交
  6092. </div>
  6093. <div
  6094. class="noWorksS"
  6095. v-if="noWorksS && noWorksS[toolIndex].length"
  6096. >
  6097. <div
  6098. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6099. :key="sIndex"
  6100. class="noWorksName"
  6101. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6102. >
  6103. <el-tooltip
  6104. effect="dark"
  6105. :content="s.student"
  6106. placement="top"
  6107. >
  6108. <span>{{ s.student }}</span>
  6109. </el-tooltip>
  6110. </div>
  6111. </div>
  6112. </div>
  6113. <div
  6114. v-if="
  6115. tType &&
  6116. ((tType == 2 && sIsOpen == true) ||
  6117. tType == 1 ||
  6118. tType == 4) &&
  6119. tool.tool.indexOf(45) != -1 &&
  6120. (tool.testJson.testJson[0].answer ||
  6121. tool.testJson.testJson[0].answer === 0) &&
  6122. checkJson[toolIndex].length
  6123. "
  6124. class="xuan_right_box"
  6125. >
  6126. <div
  6127. class="tool_right_box"
  6128. v-for="(item, index) in tool.testJson.testJson"
  6129. :key="index"
  6130. >
  6131. <div class="right_box_xuan" style="margin-right: 10px">
  6132. <span>正确率</span>
  6133. <span>{{
  6134. (checkJson[toolIndex][index].right
  6135. ? checkJson[toolIndex][index].right
  6136. : 0) + "%"
  6137. }}</span>
  6138. </div>
  6139. <div style="width: calc(100% - 30px);">
  6140. <el-tooltip
  6141. effect="light"
  6142. :content="index + 1 + '、' + item.teststitle"
  6143. placement="top"
  6144. popper-class="text_tooltip"
  6145. >
  6146. <div
  6147. style="
  6148. width: calc(100% - 130px);
  6149. display: flex;
  6150. white-space: nowrap;
  6151. overflow: hidden;
  6152. text-overflow: ellipsis;
  6153. word-break: break-word;
  6154. cursor: pointer;
  6155. "
  6156. >
  6157. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6158. </div>
  6159. </el-tooltip>
  6160. </div>
  6161. </div>
  6162. </div>
  6163. <div
  6164. class="xuan_right_box"
  6165. style="background: unset; padding: 0 10px; width: 91.5%"
  6166. v-if="
  6167. tType &&
  6168. ((tType == 2 && sIsOpen == true) ||
  6169. tType == 1 ||
  6170. tType == 4) &&
  6171. tool.tool.indexOf(45) != -1
  6172. "
  6173. >
  6174. <AskStatic2
  6175. v-if="
  6176. worksStudent.length &&
  6177. worksStudent[toolIndex].length > 0
  6178. "
  6179. :askJSON="tool"
  6180. :checkJson="checkJson[toolIndex]"
  6181. ></AskStatic2>
  6182. </div>
  6183. <div
  6184. v-if="
  6185. tType &&
  6186. ((tType == 2 && sIsOpen == true) ||
  6187. tType == 1 ||
  6188. tType == 4) &&
  6189. tool.tool.indexOf(45) != -1
  6190. "
  6191. class="worksBox"
  6192. >
  6193. <div
  6194. class="zuoyeYulan"
  6195. v-if="
  6196. worksStudent.length &&
  6197. worksStudent[toolIndex].length > 0
  6198. "
  6199. >
  6200. <div class="worksTop">
  6201. <div>作业预览</div>
  6202. <div
  6203. class="corOpen"
  6204. @click="contract(toolIndex)"
  6205. v-if="
  6206. isCloseList[toolIndex].isCloseBoolean &&
  6207. isCloseList[toolIndex].isClose == 0
  6208. "
  6209. >
  6210. 折叠
  6211. </div>
  6212. <div
  6213. class="corOpen"
  6214. @click="contract(toolIndex)"
  6215. v-if="isCloseList[toolIndex].isClose == 1"
  6216. >
  6217. 展开
  6218. </div>
  6219. </div>
  6220. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6221. </div>
  6222. <div>
  6223. <div
  6224. :id="'tool-' + toolIndex"
  6225. :style="{
  6226. height:
  6227. isCloseList[toolIndex].isClose == 1
  6228. ? retrnToolHeight('tool-' + toolIndex)
  6229. : 'auto',
  6230. overflow:
  6231. isCloseList[toolIndex].isClose == 1
  6232. ? 'hidden'
  6233. : 'unset'
  6234. }"
  6235. class="worksDetailBox"
  6236. v-if="
  6237. worksStudent.length &&
  6238. worksStudent[toolIndex].length > 0
  6239. "
  6240. >
  6241. <div
  6242. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6243. :key="wIndex"
  6244. class="isWorksName2"
  6245. @click="
  6246. openTools(
  6247. 45,
  6248. toolIndex,
  6249. taskCount,
  6250. w.works,
  6251. w.sName
  6252. )
  6253. "
  6254. >
  6255. {{ w.sName }}
  6256. <img
  6257. class="deleteImg deleteImg2"
  6258. src="../../assets/deleteworks.png"
  6259. v-if="
  6260. w.userid == userid || tType == 1 || tType == 4
  6261. "
  6262. @click.stop="deleteWorks(w.wid)"
  6263. alt
  6264. />
  6265. </div>
  6266. </div>
  6267. </div>
  6268. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6269. 未提交
  6270. </div>
  6271. <div
  6272. class="noWorksS"
  6273. v-if="noWorksS && noWorksS[toolIndex].length"
  6274. >
  6275. <div
  6276. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6277. :key="sIndex"
  6278. class="noWorksName"
  6279. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6280. >
  6281. <el-tooltip
  6282. effect="dark"
  6283. :content="s.student"
  6284. placement="top"
  6285. >
  6286. <span>{{ s.student }}</span>
  6287. </el-tooltip>
  6288. </div>
  6289. </div>
  6290. </div>
  6291. <div
  6292. v-if="
  6293. tType &&
  6294. ((tType == 2 && sIsOpen == true) ||
  6295. tType == 1 ||
  6296. tType == 4) &&
  6297. tool.tool.indexOf(69) != -1
  6298. "
  6299. class="worksBox"
  6300. >
  6301. <div
  6302. class="zuoyeYulan"
  6303. v-if="
  6304. worksStudent.length &&
  6305. worksStudent[toolIndex].length > 0
  6306. "
  6307. >
  6308. <div class="worksTop">
  6309. <div>作业预览</div>
  6310. <div
  6311. class="corOpen"
  6312. @click="contract(toolIndex)"
  6313. v-if="
  6314. isCloseList[toolIndex].isCloseBoolean &&
  6315. isCloseList[toolIndex].isClose == 0
  6316. "
  6317. >
  6318. 折叠
  6319. </div>
  6320. <div
  6321. class="corOpen"
  6322. @click="contract(toolIndex)"
  6323. v-if="isCloseList[toolIndex].isClose == 1"
  6324. >
  6325. 展开
  6326. </div>
  6327. </div>
  6328. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6329. </div>
  6330. <div>
  6331. <div
  6332. :id="'tool-' + toolIndex"
  6333. :style="{
  6334. height:
  6335. isCloseList[toolIndex].isClose == 1
  6336. ? retrnToolHeight('tool-' + toolIndex)
  6337. : 'auto',
  6338. overflow:
  6339. isCloseList[toolIndex].isClose == 1
  6340. ? 'hidden'
  6341. : 'unset'
  6342. }"
  6343. class="worksDetailBox"
  6344. v-if="
  6345. worksStudent.length &&
  6346. worksStudent[toolIndex].length > 0
  6347. "
  6348. >
  6349. <div
  6350. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6351. :key="wIndex"
  6352. class="isWorksName2"
  6353. style="width: 160px;height: 65px;line-height: 65px;"
  6354. @click="
  6355. openTools(
  6356. 69,
  6357. toolIndex,
  6358. taskCount,
  6359. w.works,
  6360. w.sName,
  6361. w.wid
  6362. )
  6363. "
  6364. >
  6365. {{ w.sName }}
  6366. <img
  6367. class="deleteImg1"
  6368. src="../../assets/evaEnglish.png"
  6369. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6370. alt
  6371. v-if="
  6372. (courseDetail &&
  6373. (courseDetail.userid == userid ||
  6374. (courseDetail.course_teacher &&
  6375. courseDetail.course_teacher.indexOf(
  6376. userid
  6377. ) != -1))) ||
  6378. w.aiCode || w.teacherCode
  6379. "
  6380. />
  6381. <img
  6382. class="deleteImg deleteImg2"
  6383. src="../../assets/deleteworks.png"
  6384. v-if="
  6385. w.userid == userid || tType == 1 || tType == 4
  6386. "
  6387. @click.stop="deleteWorks(w.wid)"
  6388. alt
  6389. />
  6390. </div>
  6391. </div>
  6392. </div>
  6393. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6394. 未提交
  6395. </div>
  6396. <div
  6397. class="noWorksS"
  6398. v-if="noWorksS && noWorksS[toolIndex].length"
  6399. >
  6400. <div
  6401. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6402. :key="sIndex"
  6403. class="noWorksName"
  6404. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6405. >
  6406. <el-tooltip
  6407. effect="dark"
  6408. :content="s.student"
  6409. placement="top"
  6410. >
  6411. <span>{{ s.student }}</span>
  6412. </el-tooltip>
  6413. </div>
  6414. </div>
  6415. </div>
  6416. <div
  6417. v-if="
  6418. tType &&
  6419. ((tType == 2 && sIsOpen == true) ||
  6420. tType == 1 ||
  6421. tType == 4) &&
  6422. tool.tool.indexOf(15) != -1
  6423. "
  6424. class="worksBox"
  6425. >
  6426. <div
  6427. class="zuoyeYulan"
  6428. v-if="
  6429. (worksStudent.length &&
  6430. worksStudent[toolIndex].length > 0) ||
  6431. (courseGroup.group && courseGroup.group.length)
  6432. "
  6433. >
  6434. <div class="worksTop">
  6435. <div>作业预览</div>
  6436. <div
  6437. class="corOpen"
  6438. @click="contract(toolIndex)"
  6439. v-if="
  6440. isCloseList[toolIndex].isCloseBoolean &&
  6441. isCloseList[toolIndex].isClose == 0
  6442. "
  6443. >
  6444. 折叠
  6445. </div>
  6446. <div
  6447. class="corOpen"
  6448. @click="contract(toolIndex)"
  6449. v-if="isCloseList[toolIndex].isClose == 1"
  6450. >
  6451. 展开
  6452. </div>
  6453. </div>
  6454. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6455. </div>
  6456. <div
  6457. class="group_workBox"
  6458. v-for="(g, gindex) in courseGroup.group"
  6459. :key="gindex"
  6460. >
  6461. <div class="group_box">
  6462. <div class="group_title">
  6463. <el-tooltip
  6464. class="item"
  6465. effect="light"
  6466. :content="g.name"
  6467. placement="top"
  6468. >
  6469. <div class="group_name">{{ g.name }}</div>
  6470. </el-tooltip>
  6471. </div>
  6472. <div
  6473. class="group_work"
  6474. v-if="
  6475. g.works &&
  6476. g.works.length &&
  6477. g.works[toolIndex].length
  6478. "
  6479. >
  6480. <div
  6481. class="works"
  6482. v-for="(w, wIndex) in g.works[toolIndex]"
  6483. :key="wIndex"
  6484. >
  6485. <div
  6486. class="workImg"
  6487. style="
  6488. border-radius: 15px;
  6489. box-shadow: 0px 0px 5px 5px #eee;
  6490. "
  6491. >
  6492. <div
  6493. class="answerBg"
  6494. style="border-radius: 15px 15px 0 0"
  6495. @click="
  6496. commentOther(w, toolIndex, wIndex, null, g.id)
  6497. "
  6498. >
  6499. <div class="answerContent">
  6500. {{ JSON.parse(w.works)[0].answer }}
  6501. </div>
  6502. <div
  6503. class="answerScore"
  6504. v-if="w.score"
  6505. @click.stop="openScore(w)"
  6506. :class="{
  6507. rightW:
  6508. w.userid == userid ||
  6509. tType == 1 ||
  6510. tType == 4
  6511. }"
  6512. >
  6513. {{ JSON.parse(w.score).wScore }}分
  6514. </div>
  6515. <div
  6516. class="answerScore"
  6517. @click.stop="openScore(w)"
  6518. v-else-if="
  6519. courseDetail.userid == userid &&
  6520. courseDetail.state != 6 &&
  6521. chapInfoList[courseType].chapterInfo[0]
  6522. .taskJson[taskCount].eList &&
  6523. chapInfoList[courseType].chapterInfo[0]
  6524. .taskJson[taskCount].eList.length
  6525. "
  6526. :class="{
  6527. rightW:
  6528. w.userid == userid ||
  6529. tType == 1 ||
  6530. tType == 4
  6531. }"
  6532. >
  6533. 评分
  6534. </div>
  6535. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6536. <div
  6537. v-else-if="
  6538. (courseDetail.userid == userid ||
  6539. (courseDetail.course_teacher &&
  6540. courseDetail.course_teacher.indexOf(
  6541. userid
  6542. ) != -1) ||
  6543. (w.userid == userid && sIsOpen)) &&
  6544. courseDetail.state == 6 &&
  6545. ((chapInfoList[courseType].chapterInfo[0]
  6546. .taskJson[taskCount].eList &&
  6547. chapInfoList[courseType].chapterInfo[0]
  6548. .taskJson[taskCount].eList.length) ||
  6549. (tool.eList && tool.eList.length))
  6550. "
  6551. >
  6552. <el-popover
  6553. placement="top"
  6554. width="318"
  6555. :disabled="
  6556. AIloading[toolIndex][wIndex].loading
  6557. "
  6558. trigger="hover"
  6559. >
  6560. <markScore
  6561. :loading="
  6562. AIloading[toolIndex][wIndex].loading
  6563. "
  6564. :markScoreVisible="markScoreVisible"
  6565. :ref="`markSco${toolIndex}${wIndex}`"
  6566. @updateLoading="updateLoading"
  6567. @updateDocSco="updateDocSco"
  6568. @refreshOther="refreshOther"
  6569. @markScoreDig="markScoreDig"
  6570. :tool="tool"
  6571. :wIndex="wIndex"
  6572. :scoCon="w"
  6573. :toolIndex="toolIndex"
  6574. :key="refreshKey"
  6575. :stage="courseType"
  6576. :task="taskCount"
  6577. :scoTit="
  6578. chapInfoList[courseType].chapterInfo[0]
  6579. .taskJson[taskCount].eList
  6580. "
  6581. >
  6582. </markScore>
  6583. <div
  6584. class="answerScore"
  6585. @click.stop="
  6586. markScoreDig2(
  6587. w.sName,
  6588. worksStudent,
  6589. w.userid,
  6590. toolIndex,
  6591. chapInfoList[courseType]
  6592. .chapterInfo[0].taskJson[taskCount]
  6593. .eList,
  6594. AIloading[toolIndex][wIndex].loading,
  6595. tool
  6596. )
  6597. "
  6598. slot="reference"
  6599. :class="{
  6600. rightW:
  6601. w.userid == userid ||
  6602. tType == 1 ||
  6603. tType == 4 ||
  6604. w.ateacher == userid
  6605. }"
  6606. >
  6607. <span
  6608. v-if="AIloading[toolIndex][wIndex].sco"
  6609. >
  6610. {{
  6611. AIloading[toolIndex][wIndex].loading
  6612. ? "评分中"
  6613. : AIloading[toolIndex][wIndex].sco +
  6614. "分"
  6615. }}
  6616. </span>
  6617. <span v-else>
  6618. {{
  6619. AIloading[toolIndex][wIndex].loading
  6620. ? "评分中"
  6621. : "评分"
  6622. }}
  6623. </span>
  6624. </div>
  6625. </el-popover>
  6626. </div>
  6627. <img
  6628. class="deleteImg"
  6629. src="../../assets/deleteworks.png"
  6630. v-if="
  6631. w.userid == userid ||
  6632. tType == 1 ||
  6633. tType == 4
  6634. "
  6635. @click.stop="deleteWorks(w.wid)"
  6636. alt
  6637. />
  6638. </div>
  6639. <div class="comment">
  6640. <div class="worksName">
  6641. <div>{{ w.sName }}</div>
  6642. </div>
  6643. <div class="commentList">
  6644. <div
  6645. class="commentImg"
  6646. @click="
  6647. isLikes(
  6648. w.wid,
  6649. userid,
  6650. 1,
  6651. null,
  6652. w.isLikes,
  6653. w.sName
  6654. )
  6655. "
  6656. >
  6657. <img
  6658. :src="w.isLikes == true ? likes : noLikes"
  6659. alt=""
  6660. />
  6661. </div>
  6662. <div>{{ w.likesCount }}</div>
  6663. </div>
  6664. <div
  6665. class="commentList"
  6666. style="margin-right: 15px"
  6667. >
  6668. <div
  6669. class="commentImg"
  6670. @click="
  6671. commentOther(
  6672. w,
  6673. toolIndex,
  6674. wIndex,
  6675. null,
  6676. g.id
  6677. )
  6678. "
  6679. >
  6680. <img
  6681. src="../../assets/icon/comment/comment.png"
  6682. alt=""
  6683. />
  6684. </div>
  6685. <div>{{ w.commentCount }}</div>
  6686. </div>
  6687. </div>
  6688. </div>
  6689. </div>
  6690. </div>
  6691. <div class="group_work" v-else>暂无提交作业</div>
  6692. </div>
  6693. </div>
  6694. <div
  6695. :id="'tool-' + toolIndex"
  6696. :style="{
  6697. height:
  6698. isCloseList[toolIndex].isClose == 1
  6699. ? retrnToolHeight('tool-' + toolIndex)
  6700. : 'auto',
  6701. overflow:
  6702. isCloseList[toolIndex].isClose == 1
  6703. ? 'hidden'
  6704. : 'unset'
  6705. }"
  6706. class="worksDetailBox"
  6707. v-if="
  6708. worksStudent.length &&
  6709. worksStudent[toolIndex].length > 0
  6710. "
  6711. >
  6712. <div
  6713. class="works"
  6714. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6715. :key="wIndex"
  6716. >
  6717. <div
  6718. class="workImg"
  6719. style="
  6720. border-radius: 15px;
  6721. box-shadow: 0px 0px 5px 5px #eee;
  6722. "
  6723. >
  6724. <!-- <img
  6725. src="../../assets/icon/works/noImg.png"
  6726. @click="openTools(15, toolIndex, taskCount, w.works)"
  6727. alt=""
  6728. />-->
  6729. <div
  6730. class="answerBg"
  6731. style="border-radius: 15px 15px 0 0"
  6732. @click="commentOther(w, toolIndex, wIndex)"
  6733. >
  6734. <!-- <div>{{ w.sName }}</div> -->
  6735. <div class="answerContent">
  6736. {{ JSON.parse(w.works)[0].answer }}
  6737. </div>
  6738. <div
  6739. class="answerScore"
  6740. v-if="w.score"
  6741. @click.stop="openScore(w)"
  6742. :class="{
  6743. rightW:
  6744. w.userid == userid || tType == 1 || tType == 4
  6745. }"
  6746. >
  6747. {{ JSON.parse(w.score).wScore }}分
  6748. </div>
  6749. <div
  6750. class="answerScore"
  6751. @click.stop="openScore(w)"
  6752. v-else-if="
  6753. courseDetail.userid == userid &&
  6754. courseDetail.state != 6 &&
  6755. chapInfoList[courseType].chapterInfo[0]
  6756. .taskJson[taskCount].eList &&
  6757. chapInfoList[courseType].chapterInfo[0]
  6758. .taskJson[taskCount].eList.length
  6759. "
  6760. :class="{
  6761. rightW:
  6762. w.userid == userid || tType == 1 || tType == 4
  6763. }"
  6764. >
  6765. 评分
  6766. </div>
  6767. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6768. <div
  6769. v-else-if="
  6770. (courseDetail.userid == userid ||
  6771. (courseDetail.course_teacher &&
  6772. courseDetail.course_teacher.indexOf(
  6773. userid
  6774. ) != -1) ||
  6775. (w.userid == userid && sIsOpen)) &&
  6776. courseDetail.state == 6 &&
  6777. ((chapInfoList[courseType].chapterInfo[0]
  6778. .taskJson[taskCount].eList &&
  6779. chapInfoList[courseType].chapterInfo[0]
  6780. .taskJson[taskCount].eList.length) ||
  6781. (tool.eList && tool.eList.length))
  6782. "
  6783. >
  6784. <el-popover
  6785. placement="top"
  6786. width="318"
  6787. :disabled="AIloading[toolIndex][wIndex].loading"
  6788. trigger="hover"
  6789. >
  6790. <markScore
  6791. :loading="
  6792. AIloading[toolIndex][wIndex].loading
  6793. "
  6794. :markScoreVisible="markScoreVisible"
  6795. :ref="`markSco${toolIndex}${wIndex}`"
  6796. @updateLoading="updateLoading"
  6797. @updateDocSco="updateDocSco"
  6798. @refreshOther="refreshOther"
  6799. @markScoreDig="markScoreDig"
  6800. :tool="tool"
  6801. :wIndex="wIndex"
  6802. :scoCon="w"
  6803. :toolIndex="toolIndex"
  6804. :key="refreshKey"
  6805. :stage="courseType"
  6806. :task="taskCount"
  6807. :scoTit="
  6808. chapInfoList[courseType].chapterInfo[0]
  6809. .taskJson[taskCount].eList
  6810. "
  6811. >
  6812. </markScore>
  6813. <div
  6814. class="answerScore"
  6815. @click.stop="
  6816. markScoreDig2(
  6817. w.sName,
  6818. worksStudent,
  6819. w.userid,
  6820. toolIndex,
  6821. chapInfoList[courseType].chapterInfo[0]
  6822. .taskJson[taskCount].eList,
  6823. AIloading[toolIndex][wIndex].loading,
  6824. tool
  6825. )
  6826. "
  6827. slot="reference"
  6828. :class="{
  6829. rightW:
  6830. w.userid == userid ||
  6831. tType == 1 ||
  6832. tType == 4 ||
  6833. w.ateacher == userid
  6834. }"
  6835. >
  6836. <span v-if="AIloading[toolIndex][wIndex].sco">
  6837. {{
  6838. AIloading[toolIndex][wIndex].loading
  6839. ? "评分中"
  6840. : AIloading[toolIndex][wIndex].sco +
  6841. "分"
  6842. }}
  6843. </span>
  6844. <span v-else>
  6845. {{
  6846. AIloading[toolIndex][wIndex].loading
  6847. ? "评分中"
  6848. : "评分"
  6849. }}
  6850. </span>
  6851. </div>
  6852. </el-popover>
  6853. </div>
  6854. <img
  6855. class="deleteImg"
  6856. src="../../assets/deleteworks.png"
  6857. v-if="
  6858. w.userid == userid || tType == 1 || tType == 4
  6859. "
  6860. @click.stop="deleteWorks(w.wid)"
  6861. alt
  6862. />
  6863. </div>
  6864. <div class="comment">
  6865. <div class="worksName">
  6866. <div>{{ w.sName }}</div>
  6867. </div>
  6868. <div class="commentList">
  6869. <div
  6870. class="commentImg"
  6871. @click="
  6872. isLikes(
  6873. w.wid,
  6874. userid,
  6875. 1,
  6876. null,
  6877. w.isLikes,
  6878. w.sName
  6879. )
  6880. "
  6881. >
  6882. <img
  6883. :src="w.isLikes == true ? likes : noLikes"
  6884. alt=""
  6885. />
  6886. </div>
  6887. <div>{{ w.likesCount }}</div>
  6888. </div>
  6889. <div class="commentList" style="margin-right: 15px">
  6890. <div
  6891. class="commentImg"
  6892. @click="commentOther(w, toolIndex, wIndex)"
  6893. >
  6894. <img
  6895. src="../../assets/icon/comment/comment.png"
  6896. alt=""
  6897. />
  6898. </div>
  6899. <div>{{ w.commentCount }}</div>
  6900. </div>
  6901. </div>
  6902. </div>
  6903. </div>
  6904. </div>
  6905. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6906. 未提交
  6907. </div>
  6908. <div
  6909. class="noWorksS"
  6910. v-if="noWorksS && noWorksS[toolIndex].length"
  6911. >
  6912. <div
  6913. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6914. :key="sIndex"
  6915. class="noWorksName"
  6916. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6917. >
  6918. <el-tooltip
  6919. effect="dark"
  6920. :content="s.student"
  6921. placement="top"
  6922. >
  6923. <span>{{ s.student }}</span>
  6924. </el-tooltip>
  6925. </div>
  6926. </div>
  6927. </div>
  6928. <div
  6929. v-if="
  6930. tType &&
  6931. ((tType == 2 && sIsOpen == true) ||
  6932. tType == 1 ||
  6933. tType == 4) &&
  6934. tool.tool.indexOf(1) != -1
  6935. "
  6936. class="worksBox"
  6937. >
  6938. <div
  6939. class="zuoyeYulan"
  6940. style="display: flex;justify-content: space-between;align-items: center;"
  6941. v-if="
  6942. (worksStudent.length &&
  6943. worksStudent[toolIndex].length > 0) ||
  6944. (courseGroup.group && courseGroup.group.length)
  6945. "
  6946. >
  6947. <div class="worksTop">
  6948. <div>作业预览</div>
  6949. <div
  6950. class="corOpen"
  6951. @click="contract(toolIndex)"
  6952. v-if="
  6953. isCloseList[toolIndex].isCloseBoolean &&
  6954. isCloseList[toolIndex].isClose == 0
  6955. "
  6956. >
  6957. 折叠
  6958. </div>
  6959. <div
  6960. class="corOpen"
  6961. @click="contract(toolIndex)"
  6962. v-if="isCloseList[toolIndex].isClose == 1"
  6963. >
  6964. 展开
  6965. </div>
  6966. </div>
  6967. <div
  6968. style="display: flex;"
  6969. v-if="
  6970. (courseDetail.userid == userid ||
  6971. (courseDetail.course_teacher &&
  6972. courseDetail.course_teacher.indexOf(userid) !=
  6973. -1)) &&
  6974. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6975. taskCount
  6976. ].eList &&
  6977. chapInfoList[courseType].chapterInfo[0].taskJson[
  6978. taskCount
  6979. ].eList.length) ||
  6980. (tool.eList && tool.eList.length)) &&
  6981. courseDetail.state == 6
  6982. "
  6983. >
  6984. <div
  6985. style="margin-right:10px"
  6986. class="ScoreBtn"
  6987. @click="
  6988. resetLoopEva(
  6989. worksStudent[toolIndex],
  6990. chapInfoList[courseType].chapterInfo[0].taskJson[
  6991. taskCount
  6992. ].eList,
  6993. courseType,
  6994. taskCount,
  6995. toolIndex,
  6996. tool.toolDetail,
  6997. worksStudent
  6998. )
  6999. "
  7000. >
  7001. 一键重置
  7002. </div>
  7003. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7004. <img
  7005. src="../../assets/icon/newIcons/rootImg.png"
  7006. alt=""
  7007. />
  7008. AI评分
  7009. </div>
  7010. <div
  7011. class="ScoreBtn"
  7012. v-else-if="!loopLoading[toolIndex].loading"
  7013. @click="
  7014. loopEva(
  7015. worksStudent[toolIndex],
  7016. chapInfoList[courseType].chapterInfo[0].taskJson[
  7017. taskCount
  7018. ].eList,
  7019. courseType,
  7020. taskCount,
  7021. toolIndex,
  7022. tool.toolDetail,
  7023. chapInfoList[courseType].chapterInfo[0].taskJson[
  7024. taskCount
  7025. ].taskDetail,
  7026. tool
  7027. )
  7028. "
  7029. >
  7030. <img
  7031. src="../../assets/icon/newIcons/rootImg.png"
  7032. alt=""
  7033. />
  7034. AI评分
  7035. </div>
  7036. <div class="ScoreBtn" v-else>
  7037. <img
  7038. src="../../assets/icon/newIcons/rootImg.png"
  7039. alt=""
  7040. />
  7041. 正在评分
  7042. </div>
  7043. </div>
  7044. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7045. </div>
  7046. <div
  7047. class="group_workBox"
  7048. v-for="(g, gindex) in courseGroup.group"
  7049. :key="gindex"
  7050. >
  7051. <div class="group_box">
  7052. <div class="group_title">
  7053. <el-tooltip
  7054. class="item"
  7055. effect="light"
  7056. :content="g.name"
  7057. placement="top"
  7058. >
  7059. <div class="group_name">{{ g.name }}</div>
  7060. </el-tooltip>
  7061. </div>
  7062. <div
  7063. class="group_work"
  7064. v-if="
  7065. g.works &&
  7066. g.works.length &&
  7067. g.works[toolIndex].length
  7068. "
  7069. >
  7070. <div
  7071. class="works"
  7072. style="
  7073. width: 200px;
  7074. height: 140px;
  7075. margin: 10px 10px 10px 0;
  7076. border-radius: 15px;
  7077. box-shadow: 0 0 6px 1px #dfdada;
  7078. "
  7079. v-for="(w, wIndex) in g.works[toolIndex]"
  7080. :key="wIndex"
  7081. :class="w.type == 1 ? 'isTypeOne' : ''"
  7082. >
  7083. <div class="workImg">
  7084. <img
  7085. :src="w.works"
  7086. @click="previewImg(w.works, w)"
  7087. alt
  7088. />
  7089. <div
  7090. class="answerScore"
  7091. v-if="w.score"
  7092. @click.stop="openScore(w)"
  7093. :class="{
  7094. rightW:
  7095. w.userid == userid ||
  7096. tType == 1 ||
  7097. tType == 4
  7098. }"
  7099. >
  7100. {{ JSON.parse(w.score).wScore }}分
  7101. </div>
  7102. <div
  7103. class="answerScore"
  7104. @click.stop="openScore(w)"
  7105. v-else-if="courseDetail.userid == userid"
  7106. :class="{
  7107. rightW:
  7108. w.userid == userid ||
  7109. tType == 1 ||
  7110. tType == 4
  7111. }"
  7112. >
  7113. 评分
  7114. </div>
  7115. <img
  7116. class="deleteImg"
  7117. src="../../assets/deleteworks.png"
  7118. v-if="
  7119. w.userid == userid || tType == 1 || tType == 4
  7120. "
  7121. @click.stop="deleteWorks(w.wid)"
  7122. alt
  7123. />
  7124. </div>
  7125. <div class="comment" style="min-width: 200px">
  7126. <div class="worksName">
  7127. <div>{{ w.sName }}</div>
  7128. </div>
  7129. <div class="commentList">
  7130. <div class="commentList">
  7131. <div
  7132. class="commentImg"
  7133. @click="
  7134. isLikes(
  7135. w.wid,
  7136. userid,
  7137. 1,
  7138. null,
  7139. w.isLikes,
  7140. w.sName
  7141. )
  7142. "
  7143. >
  7144. <img
  7145. :src="w.isLikes == true ? likes : noLikes"
  7146. alt=""
  7147. />
  7148. </div>
  7149. <div>{{ w.likesCount }}</div>
  7150. </div>
  7151. <div
  7152. class="commentList"
  7153. style="margin-right: 15px"
  7154. >
  7155. <div
  7156. class="commentImg"
  7157. @click="
  7158. commentOther(
  7159. w,
  7160. toolIndex,
  7161. wIndex,
  7162. null,
  7163. g.id
  7164. )
  7165. "
  7166. >
  7167. <img
  7168. src="../../assets/icon/comment/comment.png"
  7169. alt=""
  7170. />
  7171. </div>
  7172. <div>{{ w.commentCount }}</div>
  7173. </div>
  7174. </div>
  7175. </div>
  7176. </div>
  7177. </div>
  7178. <div class="group_work" v-else>暂无提交作业</div>
  7179. </div>
  7180. </div>
  7181. <div
  7182. :id="'tool-' + toolIndex"
  7183. :style="{
  7184. height:
  7185. isCloseList[toolIndex].isClose == 1
  7186. ? retrnToolHeight('tool-' + toolIndex)
  7187. : 'auto',
  7188. overflow:
  7189. isCloseList[toolIndex].isClose == 1
  7190. ? 'hidden'
  7191. : 'unset'
  7192. }"
  7193. class="worksDetailBox"
  7194. v-if="
  7195. worksStudent.length &&
  7196. worksStudent[toolIndex].length > 0
  7197. "
  7198. >
  7199. <div
  7200. class="works"
  7201. style="
  7202. width: 200px;
  7203. height: 140px;
  7204. margin: 10px 10px 10px 0;
  7205. border-radius: 15px;
  7206. box-shadow: 0 0 6px 1px #dfdada;
  7207. "
  7208. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7209. :key="wIndex"
  7210. >
  7211. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7212. <div class="workImg">
  7213. <img
  7214. :src="w.works"
  7215. @click="previewImg(w.works, w)"
  7216. alt
  7217. />
  7218. <div
  7219. class="answerScore"
  7220. v-if="w.score"
  7221. @click.stop="openScore(w)"
  7222. :class="{
  7223. rightW:
  7224. w.userid == userid || tType == 1 || tType == 4
  7225. }"
  7226. >
  7227. {{ JSON.parse(w.score).wScore }}分
  7228. </div>
  7229. <div
  7230. class="answerScore"
  7231. @click.stop="openScore(w)"
  7232. v-else-if="
  7233. courseDetail.userid == userid &&
  7234. courseDetail.state != 6 &&
  7235. chapInfoList[courseType].chapterInfo[0]
  7236. .taskJson[taskCount].eList &&
  7237. chapInfoList[courseType].chapterInfo[0]
  7238. .taskJson[taskCount].eList.length
  7239. "
  7240. :class="{
  7241. rightW:
  7242. w.userid == userid || tType == 1 || tType == 4
  7243. }"
  7244. >
  7245. 评分
  7246. </div>
  7247. <div
  7248. v-else-if="
  7249. (courseDetail.userid == userid ||
  7250. (courseDetail.course_teacher &&
  7251. courseDetail.course_teacher.indexOf(userid) !=
  7252. -1) ||
  7253. (courseDetail.course_teacher &&
  7254. courseDetail.course_teacher.indexOf(userid) !=
  7255. -1) ||
  7256. (courseDetail.course_teacher &&
  7257. courseDetail.course_teacher.indexOf(userid) !=
  7258. -1) ||
  7259. (w.userid == userid && sIsOpen)) &&
  7260. courseDetail.state == 6 &&
  7261. ((chapInfoList[courseType].chapterInfo[0]
  7262. .taskJson[taskCount].eList &&
  7263. chapInfoList[courseType].chapterInfo[0]
  7264. .taskJson[taskCount].eList.length) ||
  7265. (tool.eList && tool.eList.length))
  7266. "
  7267. >
  7268. <el-popover
  7269. placement="top"
  7270. width="318"
  7271. :disabled="AIloading[toolIndex][wIndex].loading"
  7272. trigger="hover"
  7273. >
  7274. <markScore
  7275. :loading="AIloading[toolIndex][wIndex].loading"
  7276. :markScoreVisible="markScoreVisible"
  7277. :ref="`markSco${toolIndex}${wIndex}`"
  7278. @updateLoading="updateLoading"
  7279. @updateDocSco="updateDocSco"
  7280. @refreshOther="refreshOther"
  7281. @markScoreDig="markScoreDig"
  7282. :tool="tool"
  7283. :wIndex="wIndex"
  7284. :scoCon="w"
  7285. :toolIndex="toolIndex"
  7286. :key="refreshKey"
  7287. :stage="courseType"
  7288. :task="taskCount"
  7289. :scoTit="
  7290. chapInfoList[courseType].chapterInfo[0]
  7291. .taskJson[taskCount].eList
  7292. "
  7293. >
  7294. </markScore>
  7295. <div
  7296. class="answerScore"
  7297. @click="
  7298. markScoreDig2(
  7299. w.sName,
  7300. worksStudent,
  7301. w.userid,
  7302. toolIndex,
  7303. chapInfoList[courseType].chapterInfo[0]
  7304. .taskJson[taskCount].eList,
  7305. AIloading[toolIndex][wIndex].loading,
  7306. tool
  7307. )
  7308. "
  7309. slot="reference"
  7310. :class="{
  7311. rightW:
  7312. w.userid == userid ||
  7313. tType == 1 ||
  7314. tType == 4 ||
  7315. w.ateacher == userid
  7316. }"
  7317. >
  7318. <span v-if="AIloading[toolIndex][wIndex].sco">
  7319. {{
  7320. AIloading[toolIndex][wIndex].loading
  7321. ? "评分中"
  7322. : AIloading[toolIndex][wIndex].sco + "分"
  7323. }}
  7324. </span>
  7325. <span v-else>
  7326. {{
  7327. AIloading[toolIndex][wIndex].loading
  7328. ? "评分中"
  7329. : "评分"
  7330. }}
  7331. </span>
  7332. </div>
  7333. </el-popover>
  7334. </div>
  7335. <img
  7336. class="deleteImg"
  7337. src="../../assets/deleteworks.png"
  7338. v-if="
  7339. w.userid == userid || tType == 1 || tType == 4
  7340. "
  7341. @click.stop="deleteWorks(w.wid)"
  7342. alt
  7343. />
  7344. </div>
  7345. <div class="comment" style="min-width: 200px">
  7346. <div class="worksName">
  7347. <div>{{ w.sName }}</div>
  7348. </div>
  7349. <div class="commentList">
  7350. <div class="commentList">
  7351. <div
  7352. class="commentImg"
  7353. @click="
  7354. isLikes(
  7355. w.wid,
  7356. userid,
  7357. 1,
  7358. null,
  7359. w.isLikes,
  7360. w.sName
  7361. )
  7362. "
  7363. >
  7364. <img
  7365. :src="w.isLikes == true ? likes : noLikes"
  7366. alt=""
  7367. />
  7368. </div>
  7369. <div>{{ w.likesCount }}</div>
  7370. </div>
  7371. <div class="commentList" style="margin-right: 15px">
  7372. <div
  7373. class="commentImg"
  7374. @click="commentOther(w, toolIndex, wIndex)"
  7375. >
  7376. <img
  7377. src="../../assets/icon/comment/comment.png"
  7378. alt=""
  7379. />
  7380. </div>
  7381. <div>{{ w.commentCount }}</div>
  7382. </div>
  7383. </div>
  7384. </div>
  7385. </div>
  7386. </div>
  7387. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7388. 未提交
  7389. </div>
  7390. <div
  7391. class="noWorksS"
  7392. v-if="noWorksS && noWorksS[toolIndex].length"
  7393. >
  7394. <div
  7395. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7396. :key="sIndex"
  7397. class="noWorksName"
  7398. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7399. >
  7400. <el-tooltip
  7401. effect="dark"
  7402. :content="s.student"
  7403. placement="top"
  7404. >
  7405. <span>{{ s.student }}</span>
  7406. </el-tooltip>
  7407. </div>
  7408. </div>
  7409. </div>
  7410. <div
  7411. v-if="
  7412. tType &&
  7413. ((tType == 2 && sIsOpen == true) ||
  7414. tType == 1 ||
  7415. tType == 4) &&
  7416. tool.tool.indexOf(3) != -1
  7417. "
  7418. class="worksBox"
  7419. >
  7420. <div
  7421. class="zuoyeYulan"
  7422. style="display: flex;justify-content: space-between;align-items: center;"
  7423. v-if="
  7424. (worksStudent.length &&
  7425. worksStudent[toolIndex].length > 0) ||
  7426. (courseGroup.group && courseGroup.group.length)
  7427. "
  7428. >
  7429. <div class="worksTop">
  7430. <div>作业预览</div>
  7431. <div
  7432. class="corOpen"
  7433. @click="contract(toolIndex)"
  7434. v-if="
  7435. isCloseList[toolIndex].isCloseBoolean &&
  7436. isCloseList[toolIndex].isClose == 0
  7437. "
  7438. >
  7439. 折叠
  7440. </div>
  7441. <div
  7442. class="corOpen"
  7443. @click="contract(toolIndex)"
  7444. v-if="isCloseList[toolIndex].isClose == 1"
  7445. >
  7446. 展开
  7447. </div>
  7448. </div>
  7449. <div
  7450. style="display: flex;"
  7451. v-if="
  7452. (courseDetail.userid == userid ||
  7453. (courseDetail.course_teacher &&
  7454. courseDetail.course_teacher.indexOf(userid) !=
  7455. -1)) &&
  7456. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7457. taskCount
  7458. ].eList &&
  7459. chapInfoList[courseType].chapterInfo[0].taskJson[
  7460. taskCount
  7461. ].eList.length) ||
  7462. (tool.eList && tool.eList.length)) &&
  7463. courseDetail.state == 6
  7464. "
  7465. >
  7466. <div
  7467. style="margin-right:10px"
  7468. class="ScoreBtn"
  7469. @click="
  7470. resetLoopEva(
  7471. worksStudent[toolIndex],
  7472. chapInfoList[courseType].chapterInfo[0].taskJson[
  7473. taskCount
  7474. ].eList,
  7475. courseType,
  7476. taskCount,
  7477. toolIndex,
  7478. tool.toolDetail,
  7479. worksStudent
  7480. )
  7481. "
  7482. >
  7483. 一键重置
  7484. </div>
  7485. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7486. <img
  7487. src="../../assets/icon/newIcons/rootImg.png"
  7488. alt=""
  7489. />
  7490. AI评分
  7491. </div>
  7492. <div
  7493. class="ScoreBtn"
  7494. v-else-if="!loopLoading[toolIndex].loading"
  7495. @click="
  7496. loopEva(
  7497. worksStudent[toolIndex],
  7498. chapInfoList[courseType].chapterInfo[0].taskJson[
  7499. taskCount
  7500. ].eList,
  7501. courseType,
  7502. taskCount,
  7503. toolIndex,
  7504. tool.toolDetail,
  7505. chapInfoList[courseType].chapterInfo[0].taskJson[
  7506. taskCount
  7507. ].taskDetail,
  7508. tool
  7509. )
  7510. "
  7511. >
  7512. <img
  7513. src="../../assets/icon/newIcons/rootImg.png"
  7514. alt=""
  7515. />
  7516. AI评分
  7517. </div>
  7518. <div class="ScoreBtn" v-else>
  7519. <img
  7520. src="../../assets/icon/newIcons/rootImg.png"
  7521. alt=""
  7522. />
  7523. 正在评分
  7524. </div>
  7525. </div>
  7526. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7527. </div>
  7528. <div
  7529. class="group_workBox"
  7530. v-for="(g, gindex) in courseGroup.group"
  7531. :key="gindex"
  7532. >
  7533. <div class="group_box">
  7534. <div class="group_title">
  7535. <el-tooltip
  7536. class="item"
  7537. effect="light"
  7538. :content="g.name"
  7539. placement="top"
  7540. >
  7541. <div class="group_name">{{ g.name }}</div>
  7542. </el-tooltip>
  7543. </div>
  7544. <div
  7545. class="group_work"
  7546. v-if="
  7547. g.works &&
  7548. g.works.length &&
  7549. g.works[toolIndex].length
  7550. "
  7551. >
  7552. <div
  7553. class="works"
  7554. style="
  7555. width: 200px;
  7556. height: 140px;
  7557. margin: 10px 10px 10px 0;
  7558. border-radius: 15px;
  7559. box-shadow: 0 0 6px 1px #dfdada;
  7560. "
  7561. v-for="(w, wIndex) in g.works[toolIndex]"
  7562. :key="wIndex"
  7563. :class="w.type == 1 ? 'isTypeOne' : ''"
  7564. >
  7565. <div class="workImg">
  7566. <img
  7567. :src="w.works"
  7568. @click="previewImg(w.works, w)"
  7569. alt
  7570. />
  7571. <div
  7572. class="answerScore"
  7573. v-if="w.score"
  7574. @click.stop="openScore(w)"
  7575. :class="{
  7576. rightW:
  7577. w.userid == userid ||
  7578. tType == 1 ||
  7579. tType == 4
  7580. }"
  7581. >
  7582. {{ JSON.parse(w.score).wScore }}分
  7583. </div>
  7584. <div
  7585. class="answerScore"
  7586. @click.stop="openScore(w)"
  7587. v-else-if="courseDetail.userid == userid"
  7588. :class="{
  7589. rightW:
  7590. w.userid == userid ||
  7591. tType == 1 ||
  7592. tType == 4
  7593. }"
  7594. >
  7595. 评分
  7596. </div>
  7597. <img
  7598. class="deleteImg"
  7599. src="../../assets/deleteworks.png"
  7600. v-if="
  7601. w.userid == userid || tType == 1 || tType == 4
  7602. "
  7603. @click.stop="deleteWorks(w.wid)"
  7604. alt
  7605. />
  7606. </div>
  7607. <div class="comment" style="min-width: 200px">
  7608. <div class="worksName">
  7609. <div>{{ w.sName }}</div>
  7610. </div>
  7611. <div class="commentList">
  7612. <div class="commentList">
  7613. <div
  7614. class="commentImg"
  7615. @click="
  7616. isLikes(
  7617. w.wid,
  7618. userid,
  7619. 1,
  7620. null,
  7621. w.isLikes,
  7622. w.sName
  7623. )
  7624. "
  7625. >
  7626. <img
  7627. :src="w.isLikes == true ? likes : noLikes"
  7628. alt=""
  7629. />
  7630. </div>
  7631. <div>{{ w.likesCount }}</div>
  7632. </div>
  7633. <div
  7634. class="commentList"
  7635. style="margin-right: 15px"
  7636. >
  7637. <div
  7638. class="commentImg"
  7639. @click="
  7640. commentOther(
  7641. w,
  7642. toolIndex,
  7643. wIndex,
  7644. null,
  7645. g.id
  7646. )
  7647. "
  7648. >
  7649. <img
  7650. src="../../assets/icon/comment/comment.png"
  7651. alt=""
  7652. />
  7653. </div>
  7654. <div>{{ w.commentCount }}</div>
  7655. </div>
  7656. </div>
  7657. </div>
  7658. </div>
  7659. </div>
  7660. <div class="group_work" v-else>暂无提交作业</div>
  7661. </div>
  7662. </div>
  7663. <div
  7664. :id="'tool-' + toolIndex"
  7665. :style="{
  7666. height:
  7667. isCloseList[toolIndex].isClose == 1
  7668. ? retrnToolHeight('tool-' + toolIndex)
  7669. : 'auto',
  7670. overflow:
  7671. isCloseList[toolIndex].isClose == 1
  7672. ? 'hidden'
  7673. : 'unset'
  7674. }"
  7675. class="worksDetailBox"
  7676. v-if="
  7677. worksStudent.length &&
  7678. worksStudent[toolIndex].length > 0
  7679. "
  7680. >
  7681. <div
  7682. class="works"
  7683. style="
  7684. width: 200px;
  7685. height: 140px;
  7686. margin: 10px 10px 10px 0;
  7687. border-radius: 15px;
  7688. box-shadow: 0 0 6px 1px #dfdada;
  7689. "
  7690. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7691. :key="wIndex"
  7692. >
  7693. <!-- @click="previewImg(w.works)" -->
  7694. <div class="workImg">
  7695. <img
  7696. :src="w.works"
  7697. @click="previewImg(w.works, w)"
  7698. alt
  7699. />
  7700. <div
  7701. class="answerScore"
  7702. v-if="w.score"
  7703. @click.stop="openScore(w)"
  7704. :class="{
  7705. rightW:
  7706. w.userid == userid || tType == 1 || tType == 4
  7707. }"
  7708. >
  7709. {{ JSON.parse(w.score).wScore }}分
  7710. </div>
  7711. <div
  7712. class="answerScore"
  7713. @click.stop="openScore(w)"
  7714. v-else-if="
  7715. courseDetail.userid == userid &&
  7716. courseDetail.state != 6 &&
  7717. chapInfoList[courseType].chapterInfo[0]
  7718. .taskJson[taskCount].eList &&
  7719. chapInfoList[courseType].chapterInfo[0]
  7720. .taskJson[taskCount].eList.length
  7721. "
  7722. :class="{
  7723. rightW:
  7724. w.userid == userid || tType == 1 || tType == 4
  7725. }"
  7726. >
  7727. 评分
  7728. </div>
  7729. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7730. <div
  7731. v-else-if="
  7732. (courseDetail.userid == userid ||
  7733. (courseDetail.course_teacher &&
  7734. courseDetail.course_teacher.indexOf(userid) !=
  7735. -1) ||
  7736. (w.userid == userid && sIsOpen)) &&
  7737. courseDetail.state == 6 &&
  7738. ((chapInfoList[courseType].chapterInfo[0]
  7739. .taskJson[taskCount].eList &&
  7740. chapInfoList[courseType].chapterInfo[0]
  7741. .taskJson[taskCount].eList.length) ||
  7742. (tool.eList && tool.eList.length))
  7743. "
  7744. >
  7745. <el-popover
  7746. placement="top"
  7747. width="318"
  7748. :disabled="AIloading[toolIndex][wIndex].loading"
  7749. trigger="hover"
  7750. >
  7751. <markScore
  7752. :loading="AIloading[toolIndex][wIndex].loading"
  7753. :markScoreVisible="markScoreVisible"
  7754. :ref="`markSco${toolIndex}${wIndex}`"
  7755. @updateLoading="updateLoading"
  7756. @updateDocSco="updateDocSco"
  7757. @refreshOther="refreshOther"
  7758. @markScoreDig="markScoreDig"
  7759. :tool="tool"
  7760. :wIndex="wIndex"
  7761. :scoCon="w"
  7762. :toolIndex="toolIndex"
  7763. :key="refreshKey"
  7764. :stage="courseType"
  7765. :task="taskCount"
  7766. :scoTit="
  7767. chapInfoList[courseType].chapterInfo[0]
  7768. .taskJson[taskCount].eList
  7769. "
  7770. >
  7771. </markScore>
  7772. <div
  7773. class="answerScore"
  7774. @click="
  7775. markScoreDig2(
  7776. w.sName,
  7777. worksStudent,
  7778. w.userid,
  7779. toolIndex,
  7780. chapInfoList[courseType].chapterInfo[0]
  7781. .taskJson[taskCount].eList,
  7782. AIloading[toolIndex][wIndex].loading,
  7783. tool
  7784. )
  7785. "
  7786. slot="reference"
  7787. :class="{
  7788. rightW:
  7789. w.userid == userid ||
  7790. tType == 1 ||
  7791. tType == 4 ||
  7792. w.ateacher == userid
  7793. }"
  7794. >
  7795. <span v-if="AIloading[toolIndex][wIndex].sco">
  7796. {{
  7797. AIloading[toolIndex][wIndex].loading
  7798. ? "评分中"
  7799. : AIloading[toolIndex][wIndex].sco + "分"
  7800. }}
  7801. </span>
  7802. <span v-else>
  7803. {{
  7804. AIloading[toolIndex][wIndex].loading
  7805. ? "评分中"
  7806. : "评分"
  7807. }}
  7808. </span>
  7809. </div>
  7810. </el-popover>
  7811. </div>
  7812. <img
  7813. class="deleteImg"
  7814. src="../../assets/deleteworks.png"
  7815. v-if="
  7816. w.userid == userid || tType == 1 || tType == 4
  7817. "
  7818. @click.stop="deleteWorks(w.wid)"
  7819. alt
  7820. />
  7821. </div>
  7822. <div class="comment" style="min-width: 200px">
  7823. <div class="worksName">
  7824. <div>{{ w.sName }}</div>
  7825. </div>
  7826. <div class="commentList">
  7827. <div class="commentList">
  7828. <div
  7829. class="commentImg"
  7830. @click="
  7831. isLikes(
  7832. w.wid,
  7833. userid,
  7834. 1,
  7835. null,
  7836. w.isLikes,
  7837. w.sName
  7838. )
  7839. "
  7840. >
  7841. <img
  7842. :src="w.isLikes == true ? likes : noLikes"
  7843. alt=""
  7844. />
  7845. </div>
  7846. <div>{{ w.likesCount }}</div>
  7847. </div>
  7848. <div class="commentList" style="margin-right: 15px">
  7849. <div
  7850. class="commentImg"
  7851. @click="commentOther(w, toolIndex, wIndex)"
  7852. >
  7853. <img
  7854. src="../../assets/icon/comment/comment.png"
  7855. alt=""
  7856. />
  7857. </div>
  7858. <div>{{ w.commentCount }}</div>
  7859. </div>
  7860. </div>
  7861. </div>
  7862. </div>
  7863. </div>
  7864. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7865. 未提交
  7866. </div>
  7867. <div
  7868. class="noWorksS"
  7869. v-if="noWorksS && noWorksS[toolIndex].length"
  7870. >
  7871. <div
  7872. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7873. :key="sIndex"
  7874. class="noWorksName"
  7875. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7876. >
  7877. <el-tooltip
  7878. effect="dark"
  7879. :content="s.student"
  7880. placement="top"
  7881. >
  7882. <span>{{ s.student }}</span>
  7883. </el-tooltip>
  7884. </div>
  7885. </div>
  7886. </div>
  7887. <div
  7888. v-if="
  7889. tType &&
  7890. ((tType == 2 && sIsOpen == true) ||
  7891. tType == 1 ||
  7892. tType == 4) &&
  7893. tool.tool.indexOf(6) != -1
  7894. "
  7895. class="worksBox"
  7896. >
  7897. <div
  7898. class="zuoyeYulan"
  7899. v-if="
  7900. (worksStudent.length &&
  7901. worksStudent[toolIndex].length > 0) ||
  7902. (courseGroup.group && courseGroup.group.length)
  7903. "
  7904. >
  7905. <div class="worksTop">
  7906. <div>作业预览</div>
  7907. <div
  7908. class="corOpen"
  7909. @click="contract(toolIndex)"
  7910. v-if="
  7911. isCloseList[toolIndex].isCloseBoolean &&
  7912. isCloseList[toolIndex].isClose == 0
  7913. "
  7914. >
  7915. 折叠
  7916. </div>
  7917. <div
  7918. class="corOpen"
  7919. @click="contract(toolIndex)"
  7920. v-if="isCloseList[toolIndex].isClose == 1"
  7921. >
  7922. 展开
  7923. </div>
  7924. </div>
  7925. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7926. </div>
  7927. <div
  7928. class="group_workBox"
  7929. v-for="(g, gindex) in courseGroup.group"
  7930. :key="gindex"
  7931. >
  7932. <div class="group_box">
  7933. <div class="group_title">
  7934. <el-tooltip
  7935. class="item"
  7936. effect="light"
  7937. :content="g.name"
  7938. placement="top"
  7939. >
  7940. <div class="group_name">{{ g.name }}</div>
  7941. </el-tooltip>
  7942. </div>
  7943. <div
  7944. class="group_work"
  7945. v-if="
  7946. g.works &&
  7947. g.works.length &&
  7948. g.works[toolIndex].length
  7949. "
  7950. >
  7951. <div
  7952. class="works"
  7953. style="
  7954. width: 200px;
  7955. height: 140px;
  7956. margin: 10px 10px 10px 0;
  7957. border-radius: 15px;
  7958. box-shadow: 0 0 6px 1px #dfdada;
  7959. "
  7960. v-for="(w, wIndex) in g.works[toolIndex]"
  7961. :key="wIndex"
  7962. :class="w.type == 1 ? 'isTypeOne' : ''"
  7963. >
  7964. <div class="workImg">
  7965. <img
  7966. :src="w.works"
  7967. @click="previewImg(w.works, w)"
  7968. alt
  7969. />
  7970. <div
  7971. class="answerScore"
  7972. v-if="w.score"
  7973. @click.stop="openScore(w)"
  7974. :class="{
  7975. rightW:
  7976. w.userid == userid ||
  7977. tType == 1 ||
  7978. tType == 4
  7979. }"
  7980. >
  7981. {{ JSON.parse(w.score).wScore }}分
  7982. </div>
  7983. <div
  7984. class="answerScore"
  7985. @click.stop="openScore(w)"
  7986. v-else-if="courseDetail.userid == userid"
  7987. :class="{
  7988. rightW:
  7989. w.userid == userid ||
  7990. tType == 1 ||
  7991. tType == 4
  7992. }"
  7993. >
  7994. 评分
  7995. </div>
  7996. <img
  7997. class="deleteImg"
  7998. src="../../assets/deleteworks.png"
  7999. v-if="
  8000. w.userid == userid || tType == 1 || tType == 4
  8001. "
  8002. @click.stop="deleteWorks(w.wid)"
  8003. alt
  8004. />
  8005. </div>
  8006. <div class="comment" style="min-width: 200px">
  8007. <div class="worksName">
  8008. <div>{{ w.sName }}</div>
  8009. </div>
  8010. <div class="commentList">
  8011. <div class="commentList">
  8012. <div
  8013. class="commentImg"
  8014. @click="
  8015. isLikes(
  8016. w.wid,
  8017. userid,
  8018. 1,
  8019. null,
  8020. w.isLikes,
  8021. w.sName
  8022. )
  8023. "
  8024. >
  8025. <img
  8026. :src="w.isLikes == true ? likes : noLikes"
  8027. alt=""
  8028. />
  8029. </div>
  8030. <div>{{ w.likesCount }}</div>
  8031. </div>
  8032. <div
  8033. class="commentList"
  8034. style="margin-right: 15px"
  8035. >
  8036. <div
  8037. class="commentImg"
  8038. @click="
  8039. commentOther(
  8040. w,
  8041. toolIndex,
  8042. wIndex,
  8043. null,
  8044. g.id
  8045. )
  8046. "
  8047. >
  8048. <img
  8049. src="../../assets/icon/comment/comment.png"
  8050. alt=""
  8051. />
  8052. </div>
  8053. <div>{{ w.commentCount }}</div>
  8054. </div>
  8055. </div>
  8056. </div>
  8057. </div>
  8058. </div>
  8059. <div class="group_work" v-else>暂无提交作业</div>
  8060. </div>
  8061. </div>
  8062. <div
  8063. :id="'tool-' + toolIndex"
  8064. :style="{
  8065. height:
  8066. isCloseList[toolIndex].isClose == 1
  8067. ? retrnToolHeight('tool-' + toolIndex)
  8068. : 'auto',
  8069. overflow:
  8070. isCloseList[toolIndex].isClose == 1
  8071. ? 'hidden'
  8072. : 'unset'
  8073. }"
  8074. class="worksDetailBox"
  8075. v-if="
  8076. worksStudent.length &&
  8077. worksStudent[toolIndex].length > 0
  8078. "
  8079. >
  8080. <div
  8081. class="works"
  8082. style="
  8083. width: 200px;
  8084. height: 140px;
  8085. margin: 10px 10px 10px 0;
  8086. border-radius: 15px;
  8087. box-shadow: 0 0 6px 1px #dfdada;
  8088. "
  8089. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8090. :key="wIndex"
  8091. >
  8092. <!-- @click="previewImg(w.works)" -->
  8093. <div class="workImg">
  8094. <img
  8095. :src="w.works"
  8096. @click="previewImg(w.works, w)"
  8097. alt
  8098. />
  8099. <div
  8100. class="answerScore"
  8101. v-if="w.score"
  8102. @click.stop="openScore(w)"
  8103. :class="{
  8104. rightW:
  8105. w.userid == userid || tType == 1 || tType == 4
  8106. }"
  8107. >
  8108. {{ JSON.parse(w.score).wScore }}分
  8109. </div>
  8110. <div
  8111. class="answerScore"
  8112. @click.stop="openScore(w)"
  8113. v-else-if="courseDetail.userid == userid"
  8114. :class="{
  8115. rightW:
  8116. w.userid == userid || tType == 1 || tType == 4
  8117. }"
  8118. >
  8119. 评分
  8120. </div>
  8121. <img
  8122. class="deleteImg"
  8123. src="../../assets/deleteworks.png"
  8124. v-if="
  8125. w.userid == userid || tType == 1 || tType == 4
  8126. "
  8127. @click.stop="deleteWorks(w.wid)"
  8128. alt
  8129. />
  8130. </div>
  8131. <div class="comment" style="min-width: 200px">
  8132. <div class="worksName">
  8133. <div>{{ w.sName }}</div>
  8134. </div>
  8135. <div class="commentList">
  8136. <div class="commentList">
  8137. <div
  8138. class="commentImg"
  8139. @click="
  8140. isLikes(
  8141. w.wid,
  8142. userid,
  8143. 1,
  8144. null,
  8145. w.isLikes,
  8146. w.sName
  8147. )
  8148. "
  8149. >
  8150. <img
  8151. :src="w.isLikes == true ? likes : noLikes"
  8152. alt=""
  8153. />
  8154. </div>
  8155. <div>{{ w.likesCount }}</div>
  8156. </div>
  8157. <div class="commentList" style="margin-right: 15px">
  8158. <div
  8159. class="commentImg"
  8160. @click="commentOther(w, toolIndex, wIndex)"
  8161. >
  8162. <img
  8163. src="../../assets/icon/comment/comment.png"
  8164. alt=""
  8165. />
  8166. </div>
  8167. <div>{{ w.commentCount }}</div>
  8168. </div>
  8169. </div>
  8170. </div>
  8171. </div>
  8172. </div>
  8173. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8174. 未提交
  8175. </div>
  8176. <div
  8177. class="noWorksS"
  8178. v-if="noWorksS && noWorksS[toolIndex].length"
  8179. >
  8180. <div
  8181. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8182. :key="sIndex"
  8183. class="noWorksName"
  8184. >
  8185. <el-tooltip
  8186. effect="dark"
  8187. :content="s.student"
  8188. placement="top"
  8189. >
  8190. <span>{{ s.student }}</span>
  8191. </el-tooltip>
  8192. </div>
  8193. </div>
  8194. </div>
  8195. <div
  8196. v-if="
  8197. tType &&
  8198. ((tType == 2 && sIsOpen == true) ||
  8199. tType == 1 ||
  8200. tType == 4) &&
  8201. tool.tool.indexOf(7) != -1
  8202. "
  8203. class="worksBox"
  8204. >
  8205. <div
  8206. class="zuoyeYulan"
  8207. style="display: flex;justify-content: space-between;align-items: center;"
  8208. v-if="
  8209. (worksStudent.length &&
  8210. worksStudent[toolIndex].length > 0) ||
  8211. (courseGroup.group && courseGroup.group.length)
  8212. "
  8213. >
  8214. <div class="worksTop">
  8215. <div>作业预览</div>
  8216. <div
  8217. class="corOpen"
  8218. @click="contract(toolIndex)"
  8219. v-if="
  8220. isCloseList[toolIndex].isCloseBoolean &&
  8221. isCloseList[toolIndex].isClose == 0
  8222. "
  8223. >
  8224. 折叠
  8225. </div>
  8226. <div
  8227. class="corOpen"
  8228. @click="contract(toolIndex)"
  8229. v-if="isCloseList[toolIndex].isClose == 1"
  8230. >
  8231. 展开
  8232. </div>
  8233. </div>
  8234. <div
  8235. style="display: flex;"
  8236. v-if="
  8237. (courseDetail.userid == userid ||
  8238. (courseDetail.course_teacher &&
  8239. courseDetail.course_teacher.indexOf(userid) !=
  8240. -1)) &&
  8241. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8242. taskCount
  8243. ].eList &&
  8244. chapInfoList[courseType].chapterInfo[0].taskJson[
  8245. taskCount
  8246. ].eList.length) ||
  8247. (tool.eList && tool.eList.length)) &&
  8248. courseDetail.state == 6
  8249. "
  8250. >
  8251. <div
  8252. style="margin-right:10px"
  8253. class="ScoreBtn"
  8254. @click="
  8255. resetLoopEva(
  8256. worksStudent[toolIndex],
  8257. chapInfoList[courseType].chapterInfo[0].taskJson[
  8258. taskCount
  8259. ].eList,
  8260. courseType,
  8261. taskCount,
  8262. toolIndex,
  8263. tool.toolDetail,
  8264. worksStudent
  8265. )
  8266. "
  8267. >
  8268. 一键重置
  8269. </div>
  8270. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8271. <img
  8272. src="../../assets/icon/newIcons/rootImg.png"
  8273. alt=""
  8274. />
  8275. AI评分
  8276. </div>
  8277. <div
  8278. class="ScoreBtn"
  8279. v-else-if="!loopLoading[toolIndex].loading"
  8280. @click="
  8281. loopEva(
  8282. worksStudent[toolIndex],
  8283. chapInfoList[courseType].chapterInfo[0].taskJson[
  8284. taskCount
  8285. ].eList,
  8286. courseType,
  8287. taskCount,
  8288. toolIndex,
  8289. tool.toolDetail,
  8290. chapInfoList[courseType].chapterInfo[0].taskJson[
  8291. taskCount
  8292. ].taskDetail,
  8293. tool
  8294. )
  8295. "
  8296. >
  8297. <img
  8298. src="../../assets/icon/newIcons/rootImg.png"
  8299. alt=""
  8300. />
  8301. AI评分
  8302. </div>
  8303. <div class="ScoreBtn" v-else>
  8304. <img
  8305. src="../../assets/icon/newIcons/rootImg.png"
  8306. alt=""
  8307. />
  8308. 正在评分
  8309. </div>
  8310. </div>
  8311. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8312. </div>
  8313. <div
  8314. class="group_workBox"
  8315. v-for="(g, gindex) in courseGroup.group"
  8316. :key="gindex"
  8317. >
  8318. <div class="group_box">
  8319. <div class="group_title">
  8320. <el-tooltip
  8321. class="item"
  8322. effect="light"
  8323. :content="g.name"
  8324. placement="top"
  8325. >
  8326. <div class="group_name">{{ g.name }}</div>
  8327. </el-tooltip>
  8328. </div>
  8329. <div
  8330. class="group_work"
  8331. v-if="
  8332. g.works &&
  8333. g.works.length &&
  8334. g.works[toolIndex].length
  8335. "
  8336. >
  8337. <div
  8338. class="works"
  8339. style="
  8340. width: 200px;
  8341. height: 140px;
  8342. margin: 10px 10px 10px 0;
  8343. border-radius: 15px;
  8344. box-shadow: 0 0 6px 1px #dfdada;
  8345. "
  8346. v-for="(w, wIndex) in g.works[toolIndex]"
  8347. :key="wIndex"
  8348. :class="w.type == 1 ? 'isTypeOne' : ''"
  8349. >
  8350. <div class="workImg">
  8351. <img
  8352. :src="w.works"
  8353. @click="previewImg(w.works, w)"
  8354. alt
  8355. />
  8356. <div
  8357. class="answerScore"
  8358. v-if="w.score"
  8359. @click.stop="openScore(w)"
  8360. :class="{
  8361. rightW:
  8362. w.userid == userid ||
  8363. tType == 1 ||
  8364. tType == 4
  8365. }"
  8366. >
  8367. {{ JSON.parse(w.score).wScore }}分
  8368. </div>
  8369. <div
  8370. class="answerScore"
  8371. @click.stop="openScore(w)"
  8372. v-else-if="courseDetail.userid == userid"
  8373. :class="{
  8374. rightW:
  8375. w.userid == userid ||
  8376. tType == 1 ||
  8377. tType == 4
  8378. }"
  8379. >
  8380. 评分
  8381. </div>
  8382. <img
  8383. class="deleteImg"
  8384. src="../../assets/deleteworks.png"
  8385. v-if="
  8386. w.userid == userid || tType == 1 || tType == 4
  8387. "
  8388. @click.stop="deleteWorks(w.wid)"
  8389. alt
  8390. />
  8391. </div>
  8392. <div class="comment" style="min-width: 200px">
  8393. <div class="worksName">
  8394. <div>{{ w.sName }}</div>
  8395. </div>
  8396. <div class="commentList">
  8397. <div class="commentList">
  8398. <div
  8399. class="commentImg"
  8400. @click="
  8401. isLikes(
  8402. w.wid,
  8403. userid,
  8404. 1,
  8405. null,
  8406. w.isLikes,
  8407. w.sName
  8408. )
  8409. "
  8410. >
  8411. <img
  8412. :src="w.isLikes == true ? likes : noLikes"
  8413. alt=""
  8414. />
  8415. </div>
  8416. <div>{{ w.likesCount }}</div>
  8417. </div>
  8418. <div
  8419. class="commentList"
  8420. style="margin-right: 15px"
  8421. >
  8422. <div
  8423. class="commentImg"
  8424. @click="
  8425. commentOther(
  8426. w,
  8427. toolIndex,
  8428. wIndex,
  8429. null,
  8430. g.id
  8431. )
  8432. "
  8433. >
  8434. <img
  8435. src="../../assets/icon/comment/comment.png"
  8436. alt=""
  8437. />
  8438. </div>
  8439. <div>{{ w.commentCount }}</div>
  8440. </div>
  8441. </div>
  8442. </div>
  8443. </div>
  8444. </div>
  8445. <div class="group_work" v-else>暂无提交作业</div>
  8446. </div>
  8447. </div>
  8448. <div
  8449. :id="'tool-' + toolIndex"
  8450. :style="{
  8451. height:
  8452. isCloseList[toolIndex].isClose == 1
  8453. ? retrnToolHeight('tool-' + toolIndex)
  8454. : 'auto',
  8455. overflow:
  8456. isCloseList[toolIndex].isClose == 1
  8457. ? 'hidden'
  8458. : 'unset'
  8459. }"
  8460. class="worksDetailBox"
  8461. v-if="
  8462. worksStudent.length &&
  8463. worksStudent[toolIndex].length > 0
  8464. "
  8465. >
  8466. <div
  8467. class="works"
  8468. style="
  8469. width: 200px;
  8470. height: 140px;
  8471. margin: 10px 10px 10px 0;
  8472. border-radius: 15px;
  8473. box-shadow: 0 0 6px 1px #dfdada;
  8474. "
  8475. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8476. :key="wIndex"
  8477. >
  8478. <!-- @click="previewImg(w.works)" -->
  8479. <div class="workImg">
  8480. <img
  8481. :src="w.works"
  8482. @click="previewImg(w.works, w)"
  8483. alt
  8484. />
  8485. <div
  8486. class="answerScore"
  8487. v-if="w.score"
  8488. @click.stop="openScore(w)"
  8489. :class="{
  8490. rightW:
  8491. w.userid == userid || tType == 1 || tType == 4
  8492. }"
  8493. >
  8494. {{ JSON.parse(w.score).wScore }}分
  8495. </div>
  8496. <div
  8497. class="answerScore"
  8498. @click.stop="openScore(w)"
  8499. v-else-if="
  8500. courseDetail.userid == userid &&
  8501. courseDetail.state != 6 &&
  8502. chapInfoList[courseType].chapterInfo[0]
  8503. .taskJson[taskCount].eList &&
  8504. chapInfoList[courseType].chapterInfo[0]
  8505. .taskJson[taskCount].eList.length
  8506. "
  8507. :class="{
  8508. rightW:
  8509. w.userid == userid || tType == 1 || tType == 4
  8510. }"
  8511. >
  8512. 评分
  8513. </div>
  8514. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8515. <div
  8516. v-else-if="
  8517. (courseDetail.userid == userid ||
  8518. (courseDetail.course_teacher &&
  8519. courseDetail.course_teacher.indexOf(userid) !=
  8520. -1) ||
  8521. (w.userid == userid && sIsOpen)) &&
  8522. courseDetail.state == 6 &&
  8523. ((chapInfoList[courseType].chapterInfo[0]
  8524. .taskJson[taskCount].eList &&
  8525. chapInfoList[courseType].chapterInfo[0]
  8526. .taskJson[taskCount].eList.length) ||
  8527. (tool.eList && tool.eList.length))
  8528. "
  8529. >
  8530. <el-popover
  8531. placement="top"
  8532. width="318"
  8533. :disabled="AIloading[toolIndex][wIndex].loading"
  8534. trigger="hover"
  8535. >
  8536. <markScore
  8537. :loading="AIloading[toolIndex][wIndex].loading"
  8538. :markScoreVisible="markScoreVisible"
  8539. :ref="`markSco${toolIndex}${wIndex}`"
  8540. @updateLoading="updateLoading"
  8541. @updateDocSco="updateDocSco"
  8542. @refreshOther="refreshOther"
  8543. @markScoreDig="markScoreDig"
  8544. :tool="tool"
  8545. :wIndex="wIndex"
  8546. :scoCon="w"
  8547. :toolIndex="toolIndex"
  8548. :key="refreshKey"
  8549. :stage="courseType"
  8550. :task="taskCount"
  8551. :scoTit="
  8552. chapInfoList[courseType].chapterInfo[0]
  8553. .taskJson[taskCount].eList
  8554. "
  8555. >
  8556. </markScore>
  8557. <div
  8558. class="answerScore"
  8559. @click="
  8560. markScoreDig2(
  8561. w.sName,
  8562. worksStudent,
  8563. w.userid,
  8564. toolIndex,
  8565. chapInfoList[courseType].chapterInfo[0]
  8566. .taskJson[taskCount].eList,
  8567. AIloading[toolIndex][wIndex].loading,
  8568. tool
  8569. )
  8570. "
  8571. slot="reference"
  8572. :class="{
  8573. rightW:
  8574. w.userid == userid ||
  8575. tType == 1 ||
  8576. tType == 4 ||
  8577. w.ateacher == userid
  8578. }"
  8579. >
  8580. <span v-if="AIloading[toolIndex][wIndex].sco">
  8581. {{
  8582. AIloading[toolIndex][wIndex].loading
  8583. ? "评分中"
  8584. : AIloading[toolIndex][wIndex].sco + "分"
  8585. }}
  8586. </span>
  8587. <span v-else>
  8588. {{
  8589. AIloading[toolIndex][wIndex].loading
  8590. ? "评分中"
  8591. : "评分"
  8592. }}
  8593. </span>
  8594. </div>
  8595. </el-popover>
  8596. </div>
  8597. <img
  8598. class="deleteImg"
  8599. src="../../assets/deleteworks.png"
  8600. v-if="
  8601. w.userid == userid || tType == 1 || tType == 4
  8602. "
  8603. @click.stop="deleteWorks(w.wid)"
  8604. alt
  8605. />
  8606. </div>
  8607. <div class="comment" style="min-width: 200px">
  8608. <div class="worksName">
  8609. <div>{{ w.sName }}</div>
  8610. </div>
  8611. <div class="commentList">
  8612. <div class="commentList">
  8613. <div
  8614. class="commentImg"
  8615. @click="
  8616. isLikes(
  8617. w.wid,
  8618. userid,
  8619. 1,
  8620. null,
  8621. w.isLikes,
  8622. w.sName
  8623. )
  8624. "
  8625. >
  8626. <img
  8627. :src="w.isLikes == true ? likes : noLikes"
  8628. alt=""
  8629. />
  8630. </div>
  8631. <div>{{ w.likesCount }}</div>
  8632. </div>
  8633. <div class="commentList" style="margin-right: 15px">
  8634. <div
  8635. class="commentImg"
  8636. @click="commentOther(w, toolIndex, wIndex)"
  8637. >
  8638. <img
  8639. src="../../assets/icon/comment/comment.png"
  8640. alt=""
  8641. />
  8642. </div>
  8643. <div>{{ w.commentCount }}</div>
  8644. </div>
  8645. </div>
  8646. </div>
  8647. </div>
  8648. </div>
  8649. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8650. 未提交
  8651. </div>
  8652. <div
  8653. class="noWorksS"
  8654. v-if="noWorksS && noWorksS[toolIndex].length"
  8655. >
  8656. <div
  8657. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8658. :key="sIndex"
  8659. class="noWorksName"
  8660. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8661. >
  8662. <el-tooltip
  8663. effect="dark"
  8664. :content="s.student"
  8665. placement="top"
  8666. >
  8667. <span>{{ s.student }}</span>
  8668. </el-tooltip>
  8669. </div>
  8670. </div>
  8671. </div>
  8672. <div
  8673. v-if="
  8674. tType &&
  8675. ((tType == 2 && sIsOpen == true) ||
  8676. tType == 1 ||
  8677. tType == 4) &&
  8678. tool.tool.indexOf(26) != -1
  8679. "
  8680. class="worksBox"
  8681. >
  8682. <div
  8683. class="zuoyeYulan"
  8684. v-if="
  8685. worksStudent.length &&
  8686. worksStudent[toolIndex].length > 0
  8687. "
  8688. >
  8689. <div class="worksTop">
  8690. <div>作业预览</div>
  8691. <div
  8692. class="corOpen"
  8693. @click="contract(toolIndex)"
  8694. v-if="
  8695. isCloseList[toolIndex].isCloseBoolean &&
  8696. isCloseList[toolIndex].isClose == 0
  8697. "
  8698. >
  8699. 折叠
  8700. </div>
  8701. <div
  8702. class="corOpen"
  8703. @click="contract(toolIndex)"
  8704. v-if="isCloseList[toolIndex].isClose == 1"
  8705. >
  8706. 展开
  8707. </div>
  8708. </div>
  8709. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8710. </div>
  8711. <div
  8712. :id="'tool-' + toolIndex"
  8713. :style="{
  8714. height:
  8715. isCloseList[toolIndex].isClose == 1
  8716. ? retrnToolHeight('tool-' + toolIndex)
  8717. : 'auto',
  8718. overflow:
  8719. isCloseList[toolIndex].isClose == 1
  8720. ? 'hidden'
  8721. : 'unset'
  8722. }"
  8723. class="worksDetailBox"
  8724. v-if="
  8725. worksStudent.length &&
  8726. worksStudent[toolIndex].length > 0
  8727. "
  8728. >
  8729. <div
  8730. class="works"
  8731. style="width: 240px; height: 140px; overflow: hidden"
  8732. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8733. :key="wIndex"
  8734. :class="w.type == 1 ? 'isTypeOne' : ''"
  8735. >
  8736. <div class="workImg" v-if="w.type == 0">
  8737. <img
  8738. :src="w.works"
  8739. @click="previewImg(w.works, w)"
  8740. alt
  8741. />
  8742. <img
  8743. class="deleteImg"
  8744. src="../../assets/deleteworks.png"
  8745. v-if="
  8746. w.userid == userid || tType == 1 || tType == 4
  8747. "
  8748. @click.stop="deleteWorks(w.wid)"
  8749. alt
  8750. />
  8751. </div>
  8752. <div class="workImg" v-if="w.type == 1">
  8753. <img :src="word" @click="openFile(w.works)" alt />
  8754. <img
  8755. class="deleteImg"
  8756. src="../../assets/deleteworks.png"
  8757. v-if="
  8758. w.userid == userid || tType == 1 || tType == 4
  8759. "
  8760. @click.stop="deleteWorks(w.wid)"
  8761. alt
  8762. />
  8763. </div>
  8764. <div class="worksName">
  8765. <div>{{ w.sName }}</div>
  8766. </div>
  8767. </div>
  8768. </div>
  8769. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8770. 未提交
  8771. </div>
  8772. <div
  8773. class="noWorksS"
  8774. v-if="noWorksS && noWorksS[toolIndex].length"
  8775. >
  8776. <div
  8777. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8778. :key="sIndex"
  8779. class="noWorksName"
  8780. >
  8781. <el-tooltip
  8782. effect="dark"
  8783. :content="s.student"
  8784. placement="top"
  8785. >
  8786. <span>{{ s.student }}</span>
  8787. </el-tooltip>
  8788. </div>
  8789. </div>
  8790. </div>
  8791. <div
  8792. v-if="
  8793. tType &&
  8794. ((tType == 2 && sIsOpen == true) ||
  8795. tType == 1 ||
  8796. tType == 4) &&
  8797. tool.tool.indexOf(40) != -1
  8798. "
  8799. class="worksBox"
  8800. >
  8801. <div
  8802. class="zuoyeYulan"
  8803. v-if="
  8804. worksStudent.length &&
  8805. worksStudent[toolIndex].length > 0
  8806. "
  8807. >
  8808. <div class="worksTop">
  8809. <div>作业预览</div>
  8810. <div
  8811. class="corOpen"
  8812. @click="contract(toolIndex)"
  8813. v-if="
  8814. isCloseList[toolIndex].isCloseBoolean &&
  8815. isCloseList[toolIndex].isClose == 0
  8816. "
  8817. >
  8818. 折叠
  8819. </div>
  8820. <div
  8821. class="corOpen"
  8822. @click="contract(toolIndex)"
  8823. v-if="isCloseList[toolIndex].isClose == 1"
  8824. >
  8825. 展开
  8826. </div>
  8827. </div>
  8828. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8829. </div>
  8830. <div
  8831. :id="'tool-' + toolIndex"
  8832. :style="{
  8833. height:
  8834. isCloseList[toolIndex].isClose == 1
  8835. ? retrnToolHeight('tool-' + toolIndex)
  8836. : 'auto',
  8837. overflow:
  8838. isCloseList[toolIndex].isClose == 1
  8839. ? 'hidden'
  8840. : 'unset'
  8841. }"
  8842. class="worksDetailBox"
  8843. v-if="
  8844. worksStudent.length &&
  8845. worksStudent[toolIndex].length > 0
  8846. "
  8847. >
  8848. <div
  8849. class="works"
  8850. style="
  8851. width: 200px;
  8852. height: 140px;
  8853. margin: 10px 10px 10px 0;
  8854. border-radius: 15px;
  8855. box-shadow: 0 0 6px 1px #dfdada;
  8856. "
  8857. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8858. :key="wIndex"
  8859. :class="w.type == 1 ? 'isTypeOne' : ''"
  8860. >
  8861. <div class="workImg">
  8862. <img
  8863. src="../../assets/icon/works/noImg.png"
  8864. @click="openPj(w.works, toolIndex)"
  8865. alt
  8866. />
  8867. <img
  8868. class="deleteImg"
  8869. src="../../assets/deleteworks.png"
  8870. v-if="
  8871. w.userid == userid || tType == 1 || tType == 4
  8872. "
  8873. @click.stop="deleteWorks(w.wid)"
  8874. alt
  8875. />
  8876. </div>
  8877. <div class="comment" style="min-width: 200px">
  8878. <div class="worksName">
  8879. <div>{{ w.sName }}</div>
  8880. </div>
  8881. <div class="commentList">
  8882. <div class="commentList">
  8883. <div
  8884. class="commentImg"
  8885. @click="
  8886. isLikes(
  8887. w.wid,
  8888. userid,
  8889. 1,
  8890. null,
  8891. w.isLikes,
  8892. w.sName
  8893. )
  8894. "
  8895. >
  8896. <img
  8897. :src="w.isLikes == true ? likes : noLikes"
  8898. alt=""
  8899. />
  8900. </div>
  8901. <div>{{ w.likesCount }}</div>
  8902. </div>
  8903. <div class="commentList" style="margin-right: 15px">
  8904. <div
  8905. class="commentImg"
  8906. @click="commentOther(w, toolIndex, wIndex)"
  8907. >
  8908. <img
  8909. src="../../assets/icon/comment/comment.png"
  8910. alt=""
  8911. />
  8912. </div>
  8913. <div>{{ w.commentCount }}</div>
  8914. </div>
  8915. </div>
  8916. </div>
  8917. </div>
  8918. </div>
  8919. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8920. 未提交
  8921. </div>
  8922. <div
  8923. class="noWorksS"
  8924. v-if="noWorksS && noWorksS[toolIndex].length"
  8925. >
  8926. <div
  8927. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8928. :key="sIndex"
  8929. class="noWorksName"
  8930. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8931. >
  8932. <el-tooltip
  8933. effect="dark"
  8934. :content="s.student"
  8935. placement="top"
  8936. >
  8937. <span>{{ s.student }}</span>
  8938. </el-tooltip>
  8939. </div>
  8940. </div>
  8941. </div>
  8942. <div
  8943. v-if="
  8944. tType &&
  8945. tType == 2 &&
  8946. !sIsOpen &&
  8947. tool.tool.indexOf(40) != -1
  8948. "
  8949. class="worksBox"
  8950. >
  8951. <div
  8952. class="zuoyeYulan"
  8953. v-if="workStudent[toolIndex].length > 0"
  8954. >
  8955. <span class="worksTitle">作业预览</span>
  8956. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8957. </div>
  8958. <div
  8959. class="worksDetailBox"
  8960. v-if="workStudent[toolIndex].length > 0"
  8961. >
  8962. <div
  8963. class="works"
  8964. style="
  8965. width: 200px;
  8966. height: 140px;
  8967. margin: 10px 10px 10px 0;
  8968. "
  8969. v-for="(w, wIndex) in workStudent[toolIndex]"
  8970. :key="wIndex"
  8971. >
  8972. <div class="workImg">
  8973. <img
  8974. src="../../assets/icon/works/noImg.png"
  8975. @click="openPj(w.works, toolIndex)"
  8976. alt
  8977. />
  8978. <img
  8979. class="deleteImg"
  8980. src="../../assets/deleteworks.png"
  8981. v-if="
  8982. w.userid == userid || tType == 1 || tType == 4
  8983. "
  8984. @click.stop="deleteWorks(w.wid)"
  8985. alt
  8986. />
  8987. </div>
  8988. <div class="worksName">
  8989. <div>{{ w.sName }}</div>
  8990. </div>
  8991. </div>
  8992. </div>
  8993. </div>
  8994. <div
  8995. v-if="
  8996. tType &&
  8997. ((tType == 2 && sIsOpen == true) ||
  8998. tType == 1 ||
  8999. tType == 4) &&
  9000. tool.tool.indexOf(41) != -1
  9001. "
  9002. >
  9003. <AnswerData2
  9004. v-if="
  9005. worksStudent.length &&
  9006. worksStudent[toolIndex].length > 0
  9007. "
  9008. :problemJson="tool.selectJson.answer"
  9009. :people="worksStudent[toolIndex]"
  9010. ></AnswerData2>
  9011. </div>
  9012. <div
  9013. v-if="
  9014. tType &&
  9015. ((tType == 2 && sIsOpen == true) ||
  9016. tType == 1 ||
  9017. tType == 4) &&
  9018. tool.tool.indexOf(41) != -1
  9019. "
  9020. class="worksBox"
  9021. >
  9022. <div
  9023. class="zuoyeYulan"
  9024. v-if="
  9025. worksStudent.length &&
  9026. worksStudent[toolIndex].length > 0
  9027. "
  9028. >
  9029. <div class="worksTop">
  9030. <div>作业预览</div>
  9031. <div
  9032. class="corOpen"
  9033. @click="contract(toolIndex)"
  9034. v-if="
  9035. isCloseList[toolIndex].isCloseBoolean &&
  9036. isCloseList[toolIndex].isClose == 0
  9037. "
  9038. >
  9039. 折叠
  9040. </div>
  9041. <div
  9042. class="corOpen"
  9043. @click="contract(toolIndex)"
  9044. v-if="isCloseList[toolIndex].isClose == 1"
  9045. >
  9046. 展开
  9047. </div>
  9048. </div>
  9049. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9050. </div>
  9051. <div
  9052. :id="'tool-' + toolIndex"
  9053. :style="{
  9054. height:
  9055. isCloseList[toolIndex].isClose == 1
  9056. ? retrnToolHeight('tool-' + toolIndex)
  9057. : 'auto',
  9058. overflow:
  9059. isCloseList[toolIndex].isClose == 1
  9060. ? 'hidden'
  9061. : 'unset'
  9062. }"
  9063. class="worksDetailBox"
  9064. v-if="
  9065. worksStudent.length &&
  9066. worksStudent[toolIndex].length > 0
  9067. "
  9068. >
  9069. <div
  9070. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9071. :key="wIndex"
  9072. class="isWorksName2"
  9073. @click="openXz(w, toolIndex)"
  9074. >
  9075. {{ w.sName }}
  9076. <img
  9077. class="deleteImg deleteImg2"
  9078. src="../../assets/deleteworks.png"
  9079. v-if="w.userid == userid || tType == 1 || tType == 4"
  9080. @click.stop="deleteWorks(w.wid)"
  9081. alt
  9082. />
  9083. </div>
  9084. <!-- <div
  9085. class="works"
  9086. style="
  9087. width: 200px;
  9088. height: 140px;
  9089. margin: 10px 10px 10px 0;
  9090. border-radius: 15px;
  9091. box-shadow: 0 0 6px 1px #dfdada;
  9092. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9093. :class="w.type == 5 ? 'isTypeOne' : ''">
  9094. <div class="workImg">
  9095. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9096. </div>
  9097. <div class="worksName">
  9098. <div>{{ w.sName }}</div>
  9099. </div>
  9100. </div> -->
  9101. </div>
  9102. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9103. 未提交
  9104. </div>
  9105. <div
  9106. class="noWorksS"
  9107. v-if="noWorksS && noWorksS[toolIndex].length"
  9108. >
  9109. <div
  9110. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9111. :key="sIndex"
  9112. class="noWorksName"
  9113. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9114. >
  9115. <el-tooltip
  9116. effect="dark"
  9117. :content="s.student"
  9118. placement="top"
  9119. >
  9120. <span>{{ s.student }}</span>
  9121. </el-tooltip>
  9122. </div>
  9123. </div>
  9124. </div>
  9125. <div
  9126. v-if="
  9127. tType &&
  9128. tType == 2 &&
  9129. !sIsOpen &&
  9130. tool.tool.indexOf(41) != -1
  9131. "
  9132. class="worksBox"
  9133. >
  9134. <div
  9135. class="zuoyeYulan"
  9136. v-if="workStudent[toolIndex].length > 0"
  9137. >
  9138. <span class="worksTitle">作业预览</span>
  9139. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9140. </div>
  9141. <div
  9142. class="worksDetailBox"
  9143. v-if="workStudent[toolIndex].length > 0"
  9144. >
  9145. <div
  9146. class="works"
  9147. style="
  9148. width: 200px;
  9149. height: 140px;
  9150. margin: 10px 10px 10px 0;
  9151. "
  9152. v-for="(w, wIndex) in workStudent[toolIndex]"
  9153. :key="wIndex"
  9154. >
  9155. <div class="workImg">
  9156. <img
  9157. src="../../assets/icon/works/noImg.png"
  9158. @click="openXz(w, toolIndex)"
  9159. alt
  9160. />
  9161. <img
  9162. class="deleteImg"
  9163. src="../../assets/deleteworks.png"
  9164. v-if="
  9165. w.userid == userid || tType == 1 || tType == 4
  9166. "
  9167. @click.stop="deleteWorks(w.wid)"
  9168. alt
  9169. />
  9170. </div>
  9171. <div class="worksName">
  9172. <div>{{ w.sName }}</div>
  9173. </div>
  9174. </div>
  9175. </div>
  9176. </div>
  9177. <div v-if="false" class="xuan_right_box">
  9178. <div
  9179. class="tool_right_box"
  9180. v-for="(item, index) in tool.sentenceList"
  9181. :key="index"
  9182. >
  9183. <div>
  9184. <span
  9185. style="word-break: break-all; white-space: normal"
  9186. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9187. >
  9188. </div>
  9189. <div class="right_box_xuan">
  9190. <span>正确率</span>
  9191. <span>{{
  9192. (checkJson[toolIndex][index].right
  9193. ? checkJson[toolIndex][index].right
  9194. : 0) + "%"
  9195. }}</span>
  9196. </div>
  9197. <div class="right_box_xuan">
  9198. <span>答对人数</span>
  9199. <span>{{
  9200. checkJson[toolIndex][index].rightPerson.length
  9201. }}</span>
  9202. </div>
  9203. </div>
  9204. </div>
  9205. <div
  9206. v-if="
  9207. tType &&
  9208. ((tType == 2 && sIsOpen == true) ||
  9209. tType == 1 ||
  9210. tType == 4) &&
  9211. tool.tool.indexOf(47) != -1
  9212. "
  9213. >
  9214. <!-- <AnswerData
  9215. v-if="
  9216. checkJson[toolIndex].length &&
  9217. (tool.sentenceList || tool.sentenceList.length > 0)
  9218. "
  9219. :people="checkJson[toolIndex]"
  9220. ></AnswerData> -->
  9221. <sortToolWorkShow v-if="
  9222. worksStudent[toolIndex].length
  9223. "
  9224. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9225. </div>
  9226. <div
  9227. v-if="
  9228. tType &&
  9229. tType == 2 &&
  9230. !sIsOpen &&
  9231. tool.tool.indexOf(47) != -1
  9232. "
  9233. class="worksBox"
  9234. >
  9235. <div
  9236. class="zuoyeYulan"
  9237. v-if="workStudent[toolIndex].length > 0"
  9238. >
  9239. <span class="worksTitle">作业预览</span>
  9240. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9241. </div>
  9242. <div
  9243. class="worksDetailBox"
  9244. v-if="workStudent[toolIndex].length > 0"
  9245. >
  9246. <div
  9247. class="works"
  9248. style="
  9249. width: 200px;
  9250. height: 140px;
  9251. margin: 10px 10px 10px 0;
  9252. "
  9253. v-for="(w, wIndex) in workStudent[toolIndex]"
  9254. :key="wIndex"
  9255. >
  9256. <!-- @click="openXz(w, toolIndex)" -->
  9257. <div class="workImg" @click="openSen(w, toolIndex)">
  9258. <img src="../../assets/icon/works/noImg.png" alt />
  9259. <img
  9260. class="deleteImg"
  9261. src="../../assets/deleteworks.png"
  9262. v-if="
  9263. w.userid == userid || tType == 1 || tType == 4
  9264. "
  9265. @click.stop="deleteWorks(w.wid)"
  9266. alt
  9267. />
  9268. </div>
  9269. <div class="worksName">
  9270. <div>
  9271. {{ w.sName }}
  9272. </div>
  9273. </div>
  9274. </div>
  9275. </div>
  9276. </div>
  9277. <div
  9278. v-if="
  9279. tType &&
  9280. ((tType == 2 && sIsOpen == true) ||
  9281. tType == 1 ||
  9282. tType == 4) &&
  9283. tool.tool.indexOf(47) != -1
  9284. "
  9285. class="worksBox"
  9286. >
  9287. <div
  9288. class="zuoyeYulan"
  9289. v-if="
  9290. worksStudent.length &&
  9291. worksStudent[toolIndex].length > 0
  9292. "
  9293. >
  9294. <div class="worksTop">
  9295. <div>作业预览</div>
  9296. <div
  9297. class="corOpen"
  9298. @click="contract(toolIndex)"
  9299. v-if="
  9300. isCloseList[toolIndex].isCloseBoolean &&
  9301. isCloseList[toolIndex].isClose == 0
  9302. "
  9303. >
  9304. 折叠
  9305. </div>
  9306. <div
  9307. class="corOpen"
  9308. @click="contract(toolIndex)"
  9309. v-if="isCloseList[toolIndex].isClose == 1"
  9310. >
  9311. 展开
  9312. </div>
  9313. </div>
  9314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9315. </div>
  9316. <div
  9317. :id="'tool-' + toolIndex"
  9318. :style="{
  9319. height:
  9320. isCloseList[toolIndex].isClose == 1
  9321. ? retrnToolHeight('tool-' + toolIndex)
  9322. : 'auto',
  9323. overflow:
  9324. isCloseList[toolIndex].isClose == 1
  9325. ? 'hidden'
  9326. : 'unset'
  9327. }"
  9328. class="worksDetailBox"
  9329. v-if="
  9330. worksStudent.length &&
  9331. worksStudent[toolIndex].length > 0
  9332. "
  9333. >
  9334. <!-- @click="openXz(w, toolIndex)" -->
  9335. <div
  9336. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9337. :key="wIndex"
  9338. class="isWorksName2"
  9339. @click="openSen(w, toolIndex)"
  9340. >
  9341. {{ w.sName }}
  9342. <img
  9343. class="deleteImg deleteImg2"
  9344. src="../../assets/deleteworks.png"
  9345. v-if="w.userid == userid || tType == 1 || tType == 4"
  9346. @click.stop="deleteWorks(w.wid)"
  9347. alt
  9348. />
  9349. </div>
  9350. </div>
  9351. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9352. 未提交
  9353. </div>
  9354. <div
  9355. class="noWorksS"
  9356. v-if="noWorksS && noWorksS[toolIndex].length"
  9357. >
  9358. <div
  9359. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9360. :key="sIndex"
  9361. class="noWorksName"
  9362. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9363. >
  9364. <el-tooltip
  9365. effect="dark"
  9366. :content="s.student"
  9367. placement="top"
  9368. >
  9369. <span>{{ s.student }}</span>
  9370. </el-tooltip>
  9371. </div>
  9372. </div>
  9373. </div>
  9374. <div
  9375. v-if="
  9376. tType &&
  9377. ((tType == 2 && sIsOpen == true) ||
  9378. tType == 1 ||
  9379. tType == 4) &&
  9380. tool.tool.indexOf(48) != -1
  9381. "
  9382. class="worksBox"
  9383. >
  9384. <div
  9385. class="zuoyeYulan"
  9386. style="display: flex;justify-content: space-between;align-items: center;"
  9387. v-if="
  9388. worksStudent.length &&
  9389. worksStudent[toolIndex].length > 0
  9390. "
  9391. >
  9392. <div class="worksTop">
  9393. <div>作业预览</div>
  9394. <div
  9395. class="corOpen"
  9396. @click="contract(toolIndex)"
  9397. v-if="
  9398. isCloseList[toolIndex].isCloseBoolean &&
  9399. isCloseList[toolIndex].isClose == 0
  9400. "
  9401. >
  9402. 折叠
  9403. </div>
  9404. <div
  9405. class="corOpen"
  9406. @click="contract(toolIndex)"
  9407. v-if="isCloseList[toolIndex].isClose == 1"
  9408. >
  9409. 展开
  9410. </div>
  9411. </div>
  9412. <div
  9413. style="display: flex;"
  9414. v-if="
  9415. (courseDetail.userid == userid ||
  9416. (courseDetail.course_teacher &&
  9417. courseDetail.course_teacher.indexOf(userid) !=
  9418. -1)) &&
  9419. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9420. taskCount
  9421. ].eList &&
  9422. chapInfoList[courseType].chapterInfo[0].taskJson[
  9423. taskCount
  9424. ].eList.length) ||
  9425. (tool.eList && tool.eList.length)) &&
  9426. courseDetail.state == 6
  9427. "
  9428. >
  9429. <div
  9430. style="margin-right:10px"
  9431. class="ScoreBtn"
  9432. @click="
  9433. resetLoopEva(
  9434. worksStudent[toolIndex],
  9435. chapInfoList[courseType].chapterInfo[0].taskJson[
  9436. taskCount
  9437. ].eList,
  9438. courseType,
  9439. taskCount,
  9440. toolIndex,
  9441. tool.toolDetail,
  9442. worksStudent
  9443. )
  9444. "
  9445. >
  9446. 一键重置
  9447. </div>
  9448. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9449. <img
  9450. src="../../assets/icon/newIcons/rootImg.png"
  9451. alt=""
  9452. />
  9453. AI评分
  9454. </div>
  9455. <div
  9456. class="ScoreBtn"
  9457. v-else-if="!loopLoading[toolIndex].loading"
  9458. @click="
  9459. loopEva(
  9460. worksStudent[toolIndex],
  9461. chapInfoList[courseType].chapterInfo[0].taskJson[
  9462. taskCount
  9463. ].eList,
  9464. courseType,
  9465. taskCount,
  9466. toolIndex,
  9467. tool.toolDetail,
  9468. chapInfoList[courseType].chapterInfo[0].taskJson[
  9469. taskCount
  9470. ].taskDetail,
  9471. tool
  9472. )
  9473. "
  9474. >
  9475. <img
  9476. src="../../assets/icon/newIcons/rootImg.png"
  9477. alt=""
  9478. />
  9479. AI评分
  9480. </div>
  9481. <div class="ScoreBtn" v-else>
  9482. <img
  9483. src="../../assets/icon/newIcons/rootImg.png"
  9484. alt=""
  9485. />
  9486. 正在评分
  9487. </div>
  9488. </div>
  9489. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9490. </div>
  9491. <div
  9492. :id="'tool-' + toolIndex"
  9493. :style="{
  9494. height:
  9495. isCloseList[toolIndex].isClose == 1
  9496. ? retrnToolHeight('tool-' + toolIndex)
  9497. : 'auto',
  9498. overflow:
  9499. isCloseList[toolIndex].isClose == 1
  9500. ? 'hidden'
  9501. : 'unset'
  9502. }"
  9503. class="worksDetailBox"
  9504. v-if="
  9505. worksStudent.length &&
  9506. worksStudent[toolIndex].length > 0
  9507. "
  9508. >
  9509. <div
  9510. class="works"
  9511. style="
  9512. width: 200px;
  9513. height: 140px;
  9514. margin: 10px 10px 10px 0;
  9515. border-radius: 15px;
  9516. box-shadow: 0 0 6px 1px #dfdada;
  9517. "
  9518. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9519. :key="wIndex"
  9520. :class="w.type == 1 ? 'isTypeOne' : ''"
  9521. >
  9522. <div class="workImg">
  9523. <img :src="word" @click="openTable(w)" alt />
  9524. <!-- @click="openFile(w.works)" -->
  9525. <div
  9526. class="answerScore"
  9527. v-if="w.score"
  9528. @click.stop="openScore(w)"
  9529. :class="{
  9530. rightW:
  9531. w.userid == userid ||
  9532. tType == 1 ||
  9533. tType == 4 ||
  9534. w.ateacher == userid
  9535. }"
  9536. >
  9537. {{ JSON.parse(w.score).wScore }}分
  9538. </div>
  9539. <div
  9540. class="answerScore"
  9541. @click.stop="openScore(w)"
  9542. v-else-if="
  9543. courseDetail.userid == userid &&
  9544. courseDetail.state != 6 &&
  9545. chapInfoList[courseType].chapterInfo[0]
  9546. .taskJson[taskCount].eList &&
  9547. chapInfoList[courseType].chapterInfo[0]
  9548. .taskJson[taskCount].eList.length
  9549. "
  9550. :class="{
  9551. rightW:
  9552. w.userid == userid ||
  9553. tType == 1 ||
  9554. tType == 4 ||
  9555. w.ateacher == userid
  9556. }"
  9557. >
  9558. 评分
  9559. </div>
  9560. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9561. <div
  9562. v-else-if="
  9563. (courseDetail.userid == userid ||
  9564. (courseDetail.course_teacher &&
  9565. courseDetail.course_teacher.indexOf(userid) !=
  9566. -1) ||
  9567. (w.userid == userid && sIsOpen)) &&
  9568. courseDetail.state == 6 &&
  9569. ((chapInfoList[courseType].chapterInfo[0]
  9570. .taskJson[taskCount].eList &&
  9571. chapInfoList[courseType].chapterInfo[0]
  9572. .taskJson[taskCount].eList.length) ||
  9573. (tool.eList && tool.eList.length))
  9574. "
  9575. >
  9576. <el-popover
  9577. placement="top"
  9578. width="318"
  9579. :disabled="AIloading[toolIndex][wIndex].loading"
  9580. trigger="hover"
  9581. >
  9582. <markScore
  9583. :loading="AIloading[toolIndex][wIndex].loading"
  9584. :markScoreVisible="markScoreVisible"
  9585. :ref="`markSco${toolIndex}${wIndex}`"
  9586. @updateLoading="updateLoading"
  9587. @updateDocSco="updateDocSco"
  9588. @refreshOther="refreshOther"
  9589. @markScoreDig="markScoreDig"
  9590. :tool="tool"
  9591. :wIndex="wIndex"
  9592. :scoCon="w"
  9593. :toolIndex="toolIndex"
  9594. :key="refreshKey"
  9595. :stage="courseType"
  9596. :task="taskCount"
  9597. :scoTit="
  9598. chapInfoList[courseType].chapterInfo[0]
  9599. .taskJson[taskCount].eList
  9600. "
  9601. >
  9602. </markScore>
  9603. <div
  9604. class="answerScore"
  9605. @click="
  9606. markScoreDig2(
  9607. w.sName,
  9608. worksStudent,
  9609. w.userid,
  9610. toolIndex,
  9611. chapInfoList[courseType].chapterInfo[0]
  9612. .taskJson[taskCount].eList,
  9613. AIloading[toolIndex][wIndex].loading,
  9614. tool
  9615. )
  9616. "
  9617. slot="reference"
  9618. :class="{
  9619. rightW:
  9620. w.userid == userid ||
  9621. tType == 1 ||
  9622. tType == 4 ||
  9623. w.ateacher == userid
  9624. }"
  9625. >
  9626. <span v-if="AIloading[toolIndex][wIndex].sco">
  9627. {{
  9628. AIloading[toolIndex][wIndex].loading
  9629. ? "评分中"
  9630. : AIloading[toolIndex][wIndex].sco + "分"
  9631. }}
  9632. </span>
  9633. <span v-else>
  9634. {{
  9635. AIloading[toolIndex][wIndex].loading
  9636. ? "评分中"
  9637. : "评分"
  9638. }}
  9639. </span>
  9640. </div>
  9641. </el-popover>
  9642. </div>
  9643. <img
  9644. class="deleteImg"
  9645. src="../../assets/deleteworks.png"
  9646. v-if="
  9647. w.userid == userid || tType == 1 || tType == 4
  9648. "
  9649. @click.stop="deleteWorks(w.wid)"
  9650. alt
  9651. />
  9652. </div>
  9653. <div class="comment" style="min-width: 200px">
  9654. <div class="worksName">
  9655. <div>{{ w.sName }}</div>
  9656. </div>
  9657. <div class="commentList">
  9658. <div class="commentList">
  9659. <div
  9660. class="commentImg"
  9661. @click="
  9662. isLikes(
  9663. w.wid,
  9664. userid,
  9665. 1,
  9666. null,
  9667. w.isLikes,
  9668. w.sName
  9669. )
  9670. "
  9671. >
  9672. <img
  9673. :src="w.isLikes == true ? likes : noLikes"
  9674. alt=""
  9675. />
  9676. </div>
  9677. <div>{{ w.likesCount }}</div>
  9678. </div>
  9679. <div class="commentList" style="margin-right: 15px">
  9680. <div
  9681. class="commentImg"
  9682. @click="commentOther(w, toolIndex, wIndex)"
  9683. >
  9684. <img
  9685. src="../../assets/icon/comment/comment.png"
  9686. alt=""
  9687. />
  9688. </div>
  9689. <div>{{ w.commentCount }}</div>
  9690. </div>
  9691. </div>
  9692. </div>
  9693. </div>
  9694. </div>
  9695. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9696. 未提交
  9697. </div>
  9698. <div
  9699. class="noWorksS"
  9700. v-if="noWorksS && noWorksS[toolIndex].length"
  9701. >
  9702. <div
  9703. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9704. :key="sIndex"
  9705. class="noWorksName"
  9706. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9707. >
  9708. <el-tooltip
  9709. effect="dark"
  9710. :content="s.student"
  9711. placement="top"
  9712. >
  9713. <span>{{ s.student }}</span>
  9714. </el-tooltip>
  9715. </div>
  9716. </div>
  9717. </div>
  9718. <div
  9719. v-if="
  9720. tType &&
  9721. tType == 2 &&
  9722. !sIsOpen &&
  9723. tool.tool.indexOf(48) != -1
  9724. "
  9725. class="worksBox"
  9726. >
  9727. <div
  9728. class="zuoyeYulan"
  9729. v-if="workStudent[toolIndex].length > 0"
  9730. >
  9731. <span class="worksTitle">作业预览</span>
  9732. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9733. </div>
  9734. <div
  9735. class="worksDetailBox"
  9736. v-if="workStudent[toolIndex].length > 0"
  9737. >
  9738. <div
  9739. class="works"
  9740. style="
  9741. width: 200px;
  9742. height: 140px;
  9743. margin: 10px 10px 10px 0;
  9744. box-shadow: 0 0 6px 1px #dfdada;
  9745. "
  9746. v-for="(w, wIndex) in workStudent[toolIndex]"
  9747. :key="wIndex"
  9748. >
  9749. <div class="workImg">
  9750. <img :src="word" @click="openTable(w)" alt />
  9751. <div
  9752. class="answerScore"
  9753. v-if="w.score"
  9754. @click.stop="openScore(w)"
  9755. :class="{
  9756. rightW:
  9757. w.userid == userid || tType == 1 || tType == 4
  9758. }"
  9759. >
  9760. {{ JSON.parse(w.score).wScore }}分
  9761. </div>
  9762. <div
  9763. class="answerScore"
  9764. @click.stop="openScore(w)"
  9765. v-else-if="courseDetail.userid == userid"
  9766. :class="{
  9767. rightW:
  9768. w.userid == userid || tType == 1 || tType == 4
  9769. }"
  9770. >
  9771. 评分
  9772. </div>
  9773. <div
  9774. class="stuLookScore"
  9775. v-if="
  9776. w.userid == userid ||
  9777. (tType == 1 &&
  9778. courseDetail.state == 6 &&
  9779. ((chapInfoList[courseType].chapterInfo[0]
  9780. .taskJson[taskCount].eList &&
  9781. chapInfoList[courseType].chapterInfo[0]
  9782. .taskJson[taskCount].eList.length) ||
  9783. (tool.eList && tool.eList.length)))
  9784. "
  9785. >
  9786. <el-popover
  9787. placement="top"
  9788. width="318"
  9789. trigger="hover"
  9790. >
  9791. <markScore
  9792. :loading="AIloading[toolIndex][wIndex].loading"
  9793. :markScoreVisible="markScoreVisible"
  9794. :ref="`markSco${toolIndex}${wIndex}`"
  9795. @updateLoading="updateLoading"
  9796. @updateDocSco="updateDocSco"
  9797. @refreshOther="refreshOther"
  9798. @markScoreDig="markScoreDig"
  9799. :tool="tool"
  9800. :wIndex="wIndex"
  9801. :scoCon="w"
  9802. :toolIndex="toolIndex"
  9803. :key="refreshKey"
  9804. :stage="courseType"
  9805. :task="taskCount"
  9806. :scoTit="
  9807. chapInfoList[courseType].chapterInfo[0]
  9808. .taskJson[taskCount].eList
  9809. "
  9810. >
  9811. </markScore>
  9812. <div
  9813. @click="
  9814. markScoreDig2(
  9815. w.sName,
  9816. worksStudent,
  9817. w.userid,
  9818. toolIndex,
  9819. chapInfoList[courseType].chapterInfo[0]
  9820. .taskJson[taskCount].eList,
  9821. AIloading[toolIndex][wIndex].loading,
  9822. tool
  9823. )
  9824. "
  9825. slot="reference"
  9826. >
  9827. <span v-if="AIloading[toolIndex][wIndex].sco">
  9828. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9829. </span>
  9830. <span v-else>
  9831. 评分
  9832. </span>
  9833. </div>
  9834. </el-popover>
  9835. </div>
  9836. <img
  9837. class="deleteImg"
  9838. src="../../assets/deleteworks.png"
  9839. v-if="
  9840. w.userid == userid || tType == 1 || tType == 4
  9841. "
  9842. @click.stop="deleteWorks(w.wid)"
  9843. alt
  9844. />
  9845. </div>
  9846. <div class="worksName">
  9847. <div>{{ w.sName }}</div>
  9848. </div>
  9849. </div>
  9850. </div>
  9851. </div>
  9852. <div
  9853. v-if="
  9854. tType &&
  9855. ((tType == 2 && sIsOpen == true) ||
  9856. tType == 1 ||
  9857. tType == 4) &&
  9858. tool.tool.indexOf(52) != -1
  9859. "
  9860. class="worksBox"
  9861. >
  9862. <div
  9863. class="zuoyeYulan"
  9864. style="display: flex;justify-content: space-between;align-items: center;"
  9865. v-if="
  9866. worksStudent.length &&
  9867. worksStudent[toolIndex].length > 0
  9868. "
  9869. >
  9870. <div class="worksTop">
  9871. <div>作业预览</div>
  9872. <div
  9873. class="corOpen"
  9874. @click="contract(toolIndex)"
  9875. v-if="
  9876. isCloseList[toolIndex].isCloseBoolean &&
  9877. isCloseList[toolIndex].isClose == 0
  9878. "
  9879. >
  9880. 折叠
  9881. </div>
  9882. <div
  9883. class="corOpen"
  9884. @click="contract(toolIndex)"
  9885. v-if="isCloseList[toolIndex].isClose == 1"
  9886. >
  9887. 展开
  9888. </div>
  9889. </div>
  9890. <div
  9891. style="display: flex;"
  9892. v-if="
  9893. (courseDetail.userid == userid ||
  9894. (courseDetail.course_teacher &&
  9895. courseDetail.course_teacher.indexOf(userid) !=
  9896. -1)) &&
  9897. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9898. taskCount
  9899. ].eList &&
  9900. chapInfoList[courseType].chapterInfo[0].taskJson[
  9901. taskCount
  9902. ].eList.length) ||
  9903. (tool.eList && tool.eList.length)) &&
  9904. courseDetail.state == 6
  9905. "
  9906. >
  9907. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 6"> -->
  9908. <div
  9909. @click="
  9910. resetLoopEva(
  9911. worksStudent[toolIndex],
  9912. chapInfoList[courseType].chapterInfo[0].taskJson[
  9913. taskCount
  9914. ].eList,
  9915. courseType,
  9916. taskCount,
  9917. toolIndex,
  9918. tool.toolDetail,
  9919. tool
  9920. )
  9921. "
  9922. style="margin-right:10px"
  9923. class="ScoreBtn"
  9924. >
  9925. 一键重置
  9926. </div>
  9927. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9928. <img
  9929. src="../../assets/icon/newIcons/rootImg.png"
  9930. alt=""
  9931. />
  9932. AI评分
  9933. </div>
  9934. <div
  9935. class="ScoreBtn"
  9936. v-else-if="!loopLoading[toolIndex].loading"
  9937. @click="
  9938. loopEva(
  9939. worksStudent[toolIndex],
  9940. chapInfoList[courseType].chapterInfo[0].taskJson[
  9941. taskCount
  9942. ].eList,
  9943. courseType,
  9944. taskCount,
  9945. toolIndex,
  9946. tool.toolDetail,
  9947. chapInfoList[courseType].chapterInfo[0].taskJson[
  9948. taskCount
  9949. ].taskDetail,
  9950. tool
  9951. )
  9952. "
  9953. >
  9954. <img
  9955. src="../../assets/icon/newIcons/rootImg.png"
  9956. alt=""
  9957. />
  9958. AI评分
  9959. </div>
  9960. <div class="ScoreBtn" v-else>
  9961. <img
  9962. src="../../assets/icon/newIcons/rootImg.png"
  9963. alt=""
  9964. />
  9965. 正在评分
  9966. </div>
  9967. </div>
  9968. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9969. </div>
  9970. <div
  9971. :id="'tool-' + toolIndex"
  9972. :style="{
  9973. height:
  9974. isCloseList[toolIndex].isClose == 1
  9975. ? retrnToolHeight('tool-' + toolIndex)
  9976. : 'auto',
  9977. overflow:
  9978. isCloseList[toolIndex].isClose == 1
  9979. ? 'hidden'
  9980. : 'unset'
  9981. }"
  9982. class="worksDetailBox"
  9983. v-if="
  9984. worksStudent.length &&
  9985. worksStudent[toolIndex].length > 0
  9986. "
  9987. >
  9988. <div
  9989. class="works"
  9990. style="
  9991. width: 200px;
  9992. height: 140px;
  9993. margin: 10px 10px 10px 0;
  9994. border-radius: 15px;
  9995. box-shadow: 0 0 6px 1px #dfdada;
  9996. "
  9997. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9998. :key="wIndex"
  9999. :class="w.type == 1 ? 'isTypeOne' : ''"
  10000. >
  10001. <div class="workImg">
  10002. <img :src="word" @click="openWord(w)" alt />
  10003. <!-- @click="openFile(w.works)" -->
  10004. <div
  10005. class="answerScore"
  10006. v-if="w.score"
  10007. @click.stop="openScore(w)"
  10008. :class="{
  10009. rightW:
  10010. w.userid == userid ||
  10011. tType == 1 ||
  10012. tType == 4 ||
  10013. w.ateacher == userid
  10014. }"
  10015. >
  10016. {{ JSON.parse(w.score).wScore }}分
  10017. </div>
  10018. <div
  10019. class="answerScore"
  10020. @click.stop="openScore(w)"
  10021. v-else-if="
  10022. courseDetail.userid == userid &&
  10023. courseDetail.state != 6 &&
  10024. chapInfoList[courseType].chapterInfo[0]
  10025. .taskJson[taskCount].eList &&
  10026. chapInfoList[courseType].chapterInfo[0]
  10027. .taskJson[taskCount].eList.length
  10028. "
  10029. :class="{
  10030. rightW:
  10031. w.userid == userid ||
  10032. tType == 1 ||
  10033. tType == 4 ||
  10034. w.ateacher == userid
  10035. }"
  10036. >
  10037. 评分
  10038. </div>
  10039. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  10040. <div
  10041. v-else-if="
  10042. (courseDetail.userid == userid ||
  10043. (courseDetail.course_teacher &&
  10044. courseDetail.course_teacher.indexOf(userid) !=
  10045. -1) ||
  10046. (w.userid == userid && sIsOpen)) &&
  10047. courseDetail.state == 6 &&
  10048. ((chapInfoList[courseType].chapterInfo[0]
  10049. .taskJson[taskCount].eList &&
  10050. chapInfoList[courseType].chapterInfo[0]
  10051. .taskJson[taskCount].eList.length) ||
  10052. (tool.eList && tool.eList.length))
  10053. "
  10054. >
  10055. <!-- <div
  10056. class="answerScore"
  10057. @click="markScoreDig(w.userid,toolIndex)"
  10058. :class="{
  10059. rightW:
  10060. w.userid == userid ||
  10061. tType == 1 ||
  10062. tType == 4 ||
  10063. w.ateacher == userid,
  10064. }"
  10065. >
  10066. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10067. </div> -->
  10068. <!-- @show="handleShow(toolIndex,wIndex)"
  10069. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10070. <el-popover
  10071. placement="top"
  10072. width="318"
  10073. :disabled="AIloading[toolIndex][wIndex].loading"
  10074. trigger="hover"
  10075. >
  10076. <markScore
  10077. :loading="AIloading[toolIndex][wIndex].loading"
  10078. :markScoreVisible="markScoreVisible"
  10079. :ref="`markSco${toolIndex}${wIndex}`"
  10080. @updateLoading="updateLoading"
  10081. @updateDocSco="updateDocSco"
  10082. @refreshOther="refreshOther"
  10083. @markScoreDig="markScoreDig"
  10084. :tool="tool"
  10085. :wIndex="wIndex"
  10086. :scoCon="w"
  10087. :toolIndex="toolIndex"
  10088. :key="refreshKey"
  10089. :stage="courseType"
  10090. :task="taskCount"
  10091. :scoTit="
  10092. chapInfoList[courseType].chapterInfo[0]
  10093. .taskJson[taskCount].eList
  10094. "
  10095. >
  10096. </markScore>
  10097. <div
  10098. class="answerScore"
  10099. @click="
  10100. markScoreDig2(
  10101. w.sName,
  10102. worksStudent,
  10103. w.userid,
  10104. toolIndex,
  10105. chapInfoList[courseType].chapterInfo[0]
  10106. .taskJson[taskCount].eList,
  10107. AIloading[toolIndex][wIndex].loading,
  10108. tool
  10109. )
  10110. "
  10111. slot="reference"
  10112. :class="{
  10113. rightW:
  10114. w.userid == userid ||
  10115. tType == 1 ||
  10116. tType == 4 ||
  10117. w.ateacher == userid
  10118. }"
  10119. >
  10120. <span v-if="AIloading[toolIndex][wIndex].sco">
  10121. {{
  10122. AIloading[toolIndex][wIndex].loading
  10123. ? "评分中"
  10124. : AIloading[toolIndex][wIndex].sco + "分"
  10125. }}
  10126. </span>
  10127. <span v-else>
  10128. {{
  10129. AIloading[toolIndex][wIndex].loading
  10130. ? "评分中"
  10131. : "评分"
  10132. }}
  10133. </span>
  10134. </div>
  10135. </el-popover>
  10136. </div>
  10137. <img
  10138. class="deleteImg"
  10139. src="../../assets/deleteworks.png"
  10140. v-if="
  10141. w.userid == userid || tType == 1 || tType == 4
  10142. "
  10143. @click.stop="deleteWorks(w.wid)"
  10144. alt
  10145. />
  10146. </div>
  10147. <div class="comment" style="min-width: 200px">
  10148. <div class="worksName">
  10149. <div>{{ w.sName }}</div>
  10150. </div>
  10151. <div class="commentList">
  10152. <div class="commentList">
  10153. <div
  10154. class="commentImg"
  10155. @click="
  10156. isLikes(
  10157. w.wid,
  10158. userid,
  10159. 1,
  10160. null,
  10161. w.isLikes,
  10162. w.sName
  10163. )
  10164. "
  10165. >
  10166. <img
  10167. :src="w.isLikes == true ? likes : noLikes"
  10168. alt=""
  10169. />
  10170. </div>
  10171. <div>{{ w.likesCount }}</div>
  10172. </div>
  10173. <div class="commentList" style="margin-right: 15px">
  10174. <div
  10175. class="commentImg"
  10176. @click="commentOther(w, toolIndex, wIndex)"
  10177. >
  10178. <img
  10179. src="../../assets/icon/comment/comment.png"
  10180. alt=""
  10181. />
  10182. </div>
  10183. <div>{{ w.commentCount }}</div>
  10184. </div>
  10185. </div>
  10186. </div>
  10187. </div>
  10188. </div>
  10189. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10190. 未提交
  10191. </div>
  10192. <div
  10193. class="noWorksS"
  10194. v-if="noWorksS && noWorksS[toolIndex].length"
  10195. >
  10196. <div
  10197. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10198. :key="sIndex"
  10199. class="noWorksName"
  10200. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10201. >
  10202. <el-tooltip
  10203. effect="dark"
  10204. :content="s.student"
  10205. placement="top"
  10206. >
  10207. <span>{{ s.student }}</span>
  10208. </el-tooltip>
  10209. </div>
  10210. </div>
  10211. </div>
  10212. <div
  10213. v-if="
  10214. tType &&
  10215. tType == 2 &&
  10216. !sIsOpen &&
  10217. tool.tool.indexOf(52) != -1
  10218. "
  10219. class="worksBox"
  10220. >
  10221. <div
  10222. class="zuoyeYulan"
  10223. v-if="workStudent[toolIndex].length > 0"
  10224. >
  10225. <span class="worksTitle">作业预览</span>
  10226. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10227. </div>
  10228. <div
  10229. class="worksDetailBox"
  10230. v-if="workStudent[toolIndex].length > 0"
  10231. >
  10232. <div
  10233. class="works"
  10234. style="
  10235. width: 200px;
  10236. height: 140px;
  10237. margin: 10px 10px 10px 0;
  10238. box-shadow: 0 0 6px 1px #dfdada;
  10239. "
  10240. v-for="(w, wIndex) in workStudent[toolIndex]"
  10241. :key="wIndex"
  10242. >
  10243. <div class="workImg">
  10244. <img :src="word" @click="openWord(w)" alt />
  10245. <div
  10246. class="answerScore"
  10247. v-if="w.score"
  10248. @click.stop="openScore(w)"
  10249. :class="{
  10250. rightW:
  10251. w.userid == userid || tType == 1 || tType == 4
  10252. }"
  10253. >
  10254. {{ JSON.parse(w.score).wScore }}分
  10255. </div>
  10256. <div
  10257. class="answerScore"
  10258. @click.stop="openScore(w)"
  10259. v-else-if="courseDetail.userid == userid"
  10260. :class="{
  10261. rightW:
  10262. w.userid == userid || tType == 1 || tType == 4
  10263. }"
  10264. >
  10265. 评分
  10266. </div>
  10267. <div
  10268. class="stuLookScore"
  10269. v-if="
  10270. w.userid == userid ||
  10271. (tType == 1 &&
  10272. courseDetail.state == 6 &&
  10273. ((chapInfoList[courseType].chapterInfo[0]
  10274. .taskJson[taskCount].eList &&
  10275. chapInfoList[courseType].chapterInfo[0]
  10276. .taskJson[taskCount].eList.length) ||
  10277. (tool.eList && tool.eList.length)))
  10278. "
  10279. >
  10280. <el-popover
  10281. placement="top"
  10282. width="318"
  10283. trigger="hover"
  10284. >
  10285. <markScore
  10286. :loading="AIloading[toolIndex][wIndex].loading"
  10287. :markScoreVisible="markScoreVisible"
  10288. :ref="`markSco${toolIndex}${wIndex}`"
  10289. @updateLoading="updateLoading"
  10290. @updateDocSco="updateDocSco"
  10291. @refreshOther="refreshOther"
  10292. @markScoreDig="markScoreDig"
  10293. :tool="tool"
  10294. :wIndex="wIndex"
  10295. :scoCon="w"
  10296. :toolIndex="toolIndex"
  10297. :key="refreshKey"
  10298. :stage="courseType"
  10299. :task="taskCount"
  10300. :scoTit="
  10301. chapInfoList[courseType].chapterInfo[0]
  10302. .taskJson[taskCount].eList
  10303. "
  10304. >
  10305. </markScore>
  10306. <div
  10307. @click="
  10308. markScoreDig2(
  10309. w.sName,
  10310. worksStudent,
  10311. w.userid,
  10312. toolIndex,
  10313. chapInfoList[courseType].chapterInfo[0]
  10314. .taskJson[taskCount].eList,
  10315. AIloading[toolIndex][wIndex].loading,
  10316. tool
  10317. )
  10318. "
  10319. slot="reference"
  10320. >
  10321. <span v-if="AIloading[toolIndex][wIndex].sco">
  10322. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10323. </span>
  10324. <span v-else>
  10325. 评分
  10326. </span>
  10327. </div>
  10328. </el-popover>
  10329. </div>
  10330. <img
  10331. class="deleteImg"
  10332. src="../../assets/deleteworks.png"
  10333. v-if="
  10334. w.userid == userid || tType == 1 || tType == 4
  10335. "
  10336. @click.stop="deleteWorks(w.wid)"
  10337. alt
  10338. />
  10339. </div>
  10340. <div class="worksName">
  10341. <div>{{ w.sName }}</div>
  10342. </div>
  10343. </div>
  10344. </div>
  10345. </div>
  10346. <div
  10347. v-if="tool.tool.indexOf(49) != -1"
  10348. class="xuan_right_box"
  10349. style="margin: 0 15px 0 25px; width: 93%"
  10350. >
  10351. <div
  10352. v-if="courseDetail.userid == userid"
  10353. style="
  10354. display: flex;
  10355. justify-content: flex-end;
  10356. margin-right: 10px;
  10357. "
  10358. >
  10359. <el-button
  10360. type="primary"
  10361. size="small"
  10362. @click="addTools(49, toolIndex, taskCount)"
  10363. >分组设置</el-button
  10364. >
  10365. </div>
  10366. <div
  10367. v-if="groupStudentUid[toolIndex]"
  10368. class="group_staic_box"
  10369. >
  10370. <div
  10371. v-for="(gp, gd) in tool.groupJson.group"
  10372. :key="gd"
  10373. class="group_staic"
  10374. >
  10375. <span> {{ gp.name }}</span>
  10376. <span>
  10377. 目前人数{{
  10378. groupStudentUid[toolIndex][gd].length
  10379. }}人</span
  10380. >
  10381. </div>
  10382. </div>
  10383. </div>
  10384. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10385. <div
  10386. class="zuoyeYulan"
  10387. v-if="
  10388. worksStudent.length &&
  10389. worksStudent[toolIndex].length > 0
  10390. "
  10391. >
  10392. <span class="worksTitle">作业预览</span>
  10393. </div>
  10394. <div>
  10395. <div
  10396. class="group_workBox"
  10397. v-for="(g, gindex) in tool.groupJson.group"
  10398. :key="gindex"
  10399. >
  10400. <div
  10401. class="group_box"
  10402. v-if="
  10403. groupStudentUid[toolIndex] &&
  10404. worksStudent[toolIndex] &&
  10405. (worksStudent[toolIndex][gindex].length ||
  10406. groupStudentUid[toolIndex][gindex].indexOf(
  10407. userid
  10408. ) != -1)
  10409. "
  10410. >
  10411. <div class="group_title">
  10412. <el-tooltip
  10413. class="item"
  10414. effect="light"
  10415. :content="g.name"
  10416. placement="top"
  10417. >
  10418. <div class="group_name">{{ g.name }}</div>
  10419. </el-tooltip>
  10420. <el-button
  10421. type="primary"
  10422. v-if="
  10423. groupStudentUid[toolIndex][gindex].indexOf(
  10424. userid
  10425. ) != -1
  10426. "
  10427. @click="groupUpload(toolIndex, taskCount, gindex)"
  10428. >上传作业</el-button
  10429. >
  10430. </div>
  10431. <div class="group_work">
  10432. <div
  10433. class="works"
  10434. style="
  10435. width: 200px;
  10436. height: 140px;
  10437. margin: 10px 10px 10px 0;
  10438. border-radius: 15px;
  10439. box-shadow: 0 0 6px 1px #dfdada;
  10440. "
  10441. v-for="(w, wIndex) in worksStudent[toolIndex][
  10442. gindex
  10443. ]"
  10444. :key="wIndex"
  10445. :class="w.type == 1 ? 'isTypeOne' : ''"
  10446. >
  10447. <div class="workImg" v-if="w.type == 0">
  10448. <img
  10449. :src="w.works"
  10450. @click="previewImg(w.works, w)"
  10451. alt
  10452. />
  10453. <div
  10454. class="answerScore"
  10455. v-if="w.score"
  10456. @click.stop="openScore(w)"
  10457. :class="{
  10458. rightW:
  10459. w.userid == userid ||
  10460. tType == 1 ||
  10461. tType == 4 ||
  10462. w.ateacher == userid
  10463. }"
  10464. >
  10465. {{ JSON.parse(w.score).wScore }}分
  10466. </div>
  10467. <div
  10468. class="answerScore"
  10469. @click.stop="openScore(w)"
  10470. v-else-if="courseDetail.userid == userid"
  10471. :class="{
  10472. rightW:
  10473. w.userid == userid ||
  10474. tType == 1 ||
  10475. tType == 4 ||
  10476. w.ateacher == userid
  10477. }"
  10478. >
  10479. 评分
  10480. </div>
  10481. <img
  10482. class="deleteImg"
  10483. src="../../assets/deleteworks.png"
  10484. v-if="
  10485. w.userid == userid ||
  10486. tType == 1 ||
  10487. tType == 4
  10488. "
  10489. @click.stop="deleteWorks(w.wid)"
  10490. alt
  10491. />
  10492. </div>
  10493. <div class="workImg" v-if="w.type == 1">
  10494. <img
  10495. :src="word"
  10496. @click="openFile(w.works)"
  10497. alt
  10498. />
  10499. <!-- @click="openFile(w.works)" -->
  10500. <div
  10501. class="answerScore"
  10502. v-if="w.score"
  10503. @click.stop="openScore(w)"
  10504. :class="{
  10505. rightW:
  10506. w.userid == userid ||
  10507. tType == 1 ||
  10508. tType == 4 ||
  10509. w.ateacher == userid
  10510. }"
  10511. >
  10512. {{ JSON.parse(w.score).wScore }}分
  10513. </div>
  10514. <div
  10515. class="answerScore"
  10516. @click.stop="openScore(w)"
  10517. v-else-if="courseDetail.userid == userid"
  10518. :class="{
  10519. rightW:
  10520. w.userid == userid ||
  10521. tType == 1 ||
  10522. tType == 4 ||
  10523. w.ateacher == userid
  10524. }"
  10525. >
  10526. 评分
  10527. </div>
  10528. <img
  10529. class="deleteImg"
  10530. src="../../assets/deleteworks.png"
  10531. v-if="
  10532. w.userid == userid ||
  10533. tType == 1 ||
  10534. tType == 4
  10535. "
  10536. @click.stop="deleteWorks(w.wid)"
  10537. alt
  10538. />
  10539. </div>
  10540. <div class="workImg" v-if="w.type == 3">
  10541. <img
  10542. style="cursor: pointer"
  10543. :src="video"
  10544. @click="openVideo(w)"
  10545. alt
  10546. />
  10547. <!-- @click="openVideo(w.works)" -->
  10548. <div
  10549. class="answerScore"
  10550. v-if="w.score"
  10551. @click.stop="openScore(w)"
  10552. :class="{
  10553. rightW:
  10554. w.userid == userid ||
  10555. tType == 1 ||
  10556. tType == 4 ||
  10557. w.ateacher == userid
  10558. }"
  10559. >
  10560. {{ JSON.parse(w.score).wScore }}分
  10561. </div>
  10562. <div
  10563. class="answerScore"
  10564. @click.stop="openScore(w)"
  10565. v-else-if="courseDetail.userid == userid"
  10566. :class="{
  10567. rightW:
  10568. w.userid == userid ||
  10569. tType == 1 ||
  10570. tType == 4 ||
  10571. w.ateacher == userid
  10572. }"
  10573. >
  10574. 评分
  10575. </div>
  10576. <img
  10577. class="deleteImg"
  10578. src="../../assets/deleteworks.png"
  10579. v-if="
  10580. w.userid == userid ||
  10581. tType == 1 ||
  10582. tType == 4
  10583. "
  10584. @click.stop="deleteWorks(w.wid)"
  10585. alt
  10586. />
  10587. </div>
  10588. <div class="workImg" v-if="w.type == 12">
  10589. <img
  10590. style="cursor: pointer"
  10591. :src="word2"
  10592. @click="downloadFile(w.works,w.userid)"
  10593. alt
  10594. />
  10595. <!-- @click="openVideo(w.works)" -->
  10596. <div
  10597. class="answerScore"
  10598. v-if="w.score"
  10599. @click.stop="openScore(w)"
  10600. :class="{
  10601. rightW:
  10602. w.userid == userid ||
  10603. tType == 1 ||
  10604. tType == 4 ||
  10605. w.ateacher == userid
  10606. }"
  10607. >
  10608. {{ JSON.parse(w.score).wScore }}分
  10609. </div>
  10610. <div
  10611. class="answerScore"
  10612. @click.stop="openScore(w)"
  10613. v-else-if="courseDetail.userid == userid"
  10614. :class="{
  10615. rightW:
  10616. w.userid == userid ||
  10617. tType == 1 ||
  10618. tType == 4 ||
  10619. w.ateacher == userid
  10620. }"
  10621. >
  10622. 评分
  10623. </div>
  10624. <img
  10625. class="deleteImg"
  10626. src="../../assets/deleteworks.png"
  10627. v-if="
  10628. w.userid == userid ||
  10629. tType == 1 ||
  10630. tType == 4
  10631. "
  10632. @click.stop="deleteWorks(w.wid)"
  10633. alt
  10634. />
  10635. </div>
  10636. <div class="comment" style="min-width: 200px">
  10637. <div class="worksName">
  10638. <div>{{ w.sName }}</div>
  10639. </div>
  10640. <div class="commentList">
  10641. <div class="commentList">
  10642. <div
  10643. class="commentImg"
  10644. @click="
  10645. isLikes(
  10646. w.wid,
  10647. userid,
  10648. 1,
  10649. null,
  10650. w.isLikes,
  10651. w.sName
  10652. )
  10653. "
  10654. >
  10655. <img
  10656. :src="
  10657. w.isLikes == true ? likes : noLikes
  10658. "
  10659. alt=""
  10660. />
  10661. </div>
  10662. <div>{{ w.likesCount }}</div>
  10663. </div>
  10664. <div
  10665. class="commentList"
  10666. style="margin-right: 15px"
  10667. >
  10668. <div
  10669. class="commentImg"
  10670. @click="
  10671. commentOther(
  10672. w,
  10673. toolIndex,
  10674. wIndex,
  10675. gindex
  10676. )
  10677. "
  10678. >
  10679. <img
  10680. src="../../assets/icon/comment/comment.png"
  10681. alt=""
  10682. />
  10683. </div>
  10684. <div>{{ w.commentCount }}</div>
  10685. </div>
  10686. </div>
  10687. </div>
  10688. </div>
  10689. </div>
  10690. </div>
  10691. </div>
  10692. </div>
  10693. </div>
  10694. <div
  10695. style="width:92%;margin: 0 0 0 40px;"
  10696. v-if="
  10697. courseDetail.state == 6 && tool.eList && tool.eList.length
  10698. "
  10699. >
  10700. <evaTable :eList="tool.eList"></evaTable>
  10701. </div>
  10702. </div>
  10703. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10704. 上传文件
  10705. <input
  10706. type="file"
  10707. accept="image/png, image/gif, image/jpeg"
  10708. style="display: none"
  10709. @change="beforeUpload1($event, 2, index)"
  10710. />
  10711. </div>-->
  10712. </div>
  10713. </div>
  10714. <!-- <div
  10715. class="vedioBox"
  10716. style="margin-top: 10px"
  10717. v-if="
  10718. courseDetail.userid == userid ||
  10719. (courseDetail.course_teacher &&
  10720. courseDetail.course_teacher.indexOf(userid) != -1)
  10721. "
  10722. :style="{
  10723. borderRadius:
  10724. !(
  10725. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10726. .toolChoose[0].tool &&
  10727. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10728. .toolChoose[0].tool.length > 0
  10729. ) &&
  10730. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10731. .taskDetail == '' &&
  10732. vChapterData[taskCount].length == 0 &&
  10733. fileC[taskCount].length == 0
  10734. ? '0 0 20px 20px'
  10735. : '20px',
  10736. }"
  10737. >
  10738. <div
  10739. class="queTop"
  10740. @click="isClose = !isClose"
  10741. style="
  10742. padding: 15px 0 15px 37px;
  10743. justify-content: space-between;
  10744. "
  10745. >
  10746. <div class="queTopTitle">新增工具</div>
  10747. <div class="queTopRight">
  10748. <div class="queTopClose" v-if="isClose == 0">
  10749. 展开
  10750. <div class="closeImg">
  10751. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10752. </div>
  10753. </div>
  10754. <div class="queTopClose" v-if="isClose == 1">
  10755. 折叠
  10756. <div class="openImg">
  10757. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10758. </div>
  10759. </div>
  10760. <el-button
  10761. style="margin: 0 30px 0 auto"
  10762. type="primary"
  10763. size="small"
  10764. v-if="isClose == 1 && checktoolArray.length > 0"
  10765. @click.stop="addToolChoose"
  10766. >确定</el-button
  10767. >
  10768. </div>
  10769. </div>
  10770. <div
  10771. class="tool_work_box"
  10772. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10773. >
  10774. <div class="tool_box">
  10775. <div class="tool_type_box">
  10776. <div class="chooseWho">
  10777. <div
  10778. :class="toolType == 0 ? 'isChooseActive' : ''"
  10779. @click="(toolType = 0), $forceUpdate()"
  10780. >
  10781. 互动类
  10782. </div>
  10783. <div
  10784. :class="toolType == 1 ? 'isChooseActive' : ''"
  10785. @click="(toolType = 1), $forceUpdate()"
  10786. >
  10787. 思维类
  10788. </div>
  10789. <div
  10790. :class="toolType == 2 ? 'isChooseActive' : ''"
  10791. @click="(toolType = 2), $forceUpdate()"
  10792. >
  10793. 测评类
  10794. </div>
  10795. <div
  10796. :class="toolType == 3 ? 'isChooseActive' : ''"
  10797. @click="(toolType = 3), $forceUpdate()"
  10798. >
  10799. 编程类
  10800. </div>
  10801. <div
  10802. :class="toolType == 5 ? 'isChooseActive' : ''"
  10803. @click="(toolType = 5), $forceUpdate()"
  10804. >
  10805. 学科类
  10806. </div>
  10807. </div>
  10808. </div>
  10809. <div>
  10810. <div class="toolSort" v-if="toolType == 0">
  10811. <div class="tool">
  10812. <div class="whiteBIcon" @click="addTools2(10)">
  10813. <img
  10814. src="../../assets/icon/thirdToolList/time.png"
  10815. alt
  10816. />
  10817. <div style="margin: 5px 0">倒计时</div>
  10818. </div>
  10819. <div class="check" @click="addTools2(10)">
  10820. <img
  10821. src="../../assets/icon/checkNo.png"
  10822. alt
  10823. v-if="checktoolArray.indexOf(10) == -1"
  10824. />
  10825. <div class="checkDiv" v-else>
  10826. <img src="../../assets/icon/checkedIs.png" alt /><span
  10827. >已选择</span
  10828. >
  10829. </div>
  10830. </div>
  10831. </div>
  10832. <div class="tool">
  10833. <div class="whiteBIcon" @click="addTools2(65)">
  10834. <img
  10835. src="../../assets/icon/firstToolList/pickPeople.png"
  10836. alt
  10837. />
  10838. <div style="margin: 5px 0">挑人</div>
  10839. </div>
  10840. <div class="check" @click="addTools2(65)">
  10841. <img
  10842. src="../../assets/icon/checkNo.png"
  10843. alt
  10844. v-if="checktoolArray.indexOf(65) == -1"
  10845. />
  10846. <div class="checkDiv" v-else>
  10847. <img src="../../assets/icon/checkedIs.png" alt /><span
  10848. >已选择</span
  10849. >
  10850. </div>
  10851. </div>
  10852. </div>
  10853. </div>
  10854. <div class="toolSort" v-if="toolType == 1">
  10855. <div class="tool">
  10856. <div class="whiteBIcon" @click="addTools2(7)">
  10857. <img
  10858. src="../../assets/icon/secondToolList/mindNetwork.png"
  10859. alt
  10860. />
  10861. <div style="margin: 5px 0">思维网格</div>
  10862. </div>
  10863. <div class="check" @click="addTools2(7)">
  10864. <img
  10865. src="../../assets/icon/checkNo.png"
  10866. alt
  10867. v-if="checktoolArray.indexOf(7) == -1"
  10868. />
  10869. <div class="checkDiv" v-else>
  10870. <img src="../../assets/icon/checkedIs.png" alt /><span
  10871. >已选择</span
  10872. >
  10873. </div>
  10874. </div>
  10875. </div>
  10876. <div class="tool">
  10877. <div class="whiteBIcon" @click="addTools2(1)">
  10878. <img
  10879. src="../../assets/icon/secondToolList/whiteBoard.png"
  10880. alt
  10881. />
  10882. <div style="margin: 5px 0">电子白板</div>
  10883. </div>
  10884. <div class="check" @click="addTools2(1)">
  10885. <img
  10886. src="../../assets/icon/checkNo.png"
  10887. alt
  10888. v-if="checktoolArray.indexOf(1) == -1"
  10889. />
  10890. <div class="checkDiv" v-else>
  10891. <img src="../../assets/icon/checkedIs.png" alt /><span
  10892. >已选择</span
  10893. >
  10894. </div>
  10895. </div>
  10896. </div>
  10897. <div class="tool">
  10898. <div class="whiteBIcon" @click="addTools2(52)">
  10899. <img
  10900. src="../../assets/icon/fourthToolList/text.png"
  10901. alt
  10902. />
  10903. <div style="margin: 5px 0">文档</div>
  10904. </div>
  10905. <div class="check" @click="addTools2(52)">
  10906. <img
  10907. src="../../assets/icon/checkNo.png"
  10908. alt
  10909. v-if="checktoolArray.indexOf(52) == -1"
  10910. />
  10911. <div class="checkDiv" v-else>
  10912. <img src="../../assets/icon/checkedIs.png" alt /><span
  10913. >已选择</span
  10914. >
  10915. </div>
  10916. </div>
  10917. </div>
  10918. <div class="tool">
  10919. <div class="whiteBIcon" @click="addTools2(3)">
  10920. <img
  10921. src="../../assets/icon/secondToolList/mindMapping.png"
  10922. alt
  10923. />
  10924. <div style="margin: 5px 0">思维导图</div>
  10925. </div>
  10926. <div class="check" @click="addTools2(3)">
  10927. <img
  10928. src="../../assets/icon/checkNo.png"
  10929. alt
  10930. v-if="checktoolArray.indexOf(3) == -1"
  10931. />
  10932. <div class="checkDiv" v-else>
  10933. <img src="../../assets/icon/checkedIs.png" alt /><span
  10934. >已选择</span
  10935. >
  10936. </div>
  10937. </div>
  10938. </div>
  10939. <div class="tool">
  10940. <div class="whiteBIcon" @click="addTools2(48)">
  10941. <img
  10942. src="../../assets/icon/fourthToolList/table.png"
  10943. alt
  10944. />
  10945. <div style="margin: 5px 0">表格</div>
  10946. </div>
  10947. <div class="check" @click="addTools2(48)">
  10948. <img
  10949. src="../../assets/icon/checkNo.png"
  10950. alt
  10951. v-if="checktoolArray.indexOf(48) == -1"
  10952. />
  10953. <div class="checkDiv" v-else>
  10954. <img src="../../assets/icon/checkedIs.png" alt /><span
  10955. >已选择</span
  10956. >
  10957. </div>
  10958. </div>
  10959. </div>
  10960. </div>
  10961. <div class="toolSort" v-if="toolType == 6">
  10962. <div v-show="tooC == 49">
  10963. <img
  10964. @click="addTools(tooC, toolIndex, taskCount)"
  10965. src="../../assets/icon/fourthToolList/group.png"
  10966. alt
  10967. />
  10968. <div style="margin: 5px 0">学生分组</div>
  10969. </div>
  10970. </div>
  10971. <div class="toolSort" v-if="toolType == 2">
  10972. <div class="tool">
  10973. <div class="whiteBIcon" @click="addTools2(16)">
  10974. <img
  10975. src="../../assets/icon/thirdToolList/work.png"
  10976. alt
  10977. />
  10978. <div style="margin: 5px 0">作业提交</div>
  10979. </div>
  10980. <div class="check" @click="addTools2(16)">
  10981. <img
  10982. src="../../assets/icon/checkNo.png"
  10983. alt
  10984. v-if="checktoolArray.indexOf(16) == -1"
  10985. />
  10986. <div class="checkDiv" v-else>
  10987. <img src="../../assets/icon/checkedIs.png" alt /><span
  10988. >已选择</span
  10989. >
  10990. </div>
  10991. </div>
  10992. </div>
  10993. <div class="tool">
  10994. <div class="whiteBIcon" @click="addTools2(50)">
  10995. <img
  10996. src="../../assets/icon/thirdToolList/plwork.png"
  10997. alt
  10998. />
  10999. <div style="margin: 5px 0">批量上传</div>
  11000. </div>
  11001. <div class="check" @click="addTools2(50)">
  11002. <img
  11003. src="../../assets/icon/checkNo.png"
  11004. alt
  11005. v-if="checktoolArray.indexOf(50) == -1"
  11006. />
  11007. <div class="checkDiv" v-else>
  11008. <img src="../../assets/icon/checkedIs.png" alt /><span
  11009. >已选择</span
  11010. >
  11011. </div>
  11012. </div>
  11013. </div>
  11014. </div>
  11015. <div class="toolSort" v-if="toolType == 3">
  11016. <div class="tool">
  11017. <div class="whiteBIcon" @click="addTools2(18)">
  11018. <img
  11019. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11020. alt
  11021. />
  11022. <div style="margin: 5px 0">训练平台</div>
  11023. </div>
  11024. <div class="check" @click="addTools2(18)">
  11025. <img
  11026. src="../../assets/icon/checkNo.png"
  11027. alt
  11028. v-if="checktoolArray.indexOf(18) == -1"
  11029. />
  11030. <div class="checkDiv" v-else>
  11031. <img src="../../assets/icon/checkedIs.png" alt /><span
  11032. >已选择</span
  11033. >
  11034. </div>
  11035. </div>
  11036. </div>
  11037. <div class="tool">
  11038. <div class="whiteBIcon" @click="addTools2(21)">
  11039. <img
  11040. src="../../assets/icon/fourthToolList/program.png"
  11041. alt
  11042. />
  11043. <div style="margin: 5px 0">AIoT Blockly</div>
  11044. </div>
  11045. <div class="check" @click="addTools2(21)">
  11046. <img
  11047. src="../../assets/icon/checkNo.png"
  11048. alt
  11049. v-if="checktoolArray.indexOf(21) == -1"
  11050. />
  11051. <div class="checkDiv" v-else>
  11052. <img src="../../assets/icon/checkedIs.png" alt /><span
  11053. >已选择</span
  11054. >
  11055. </div>
  11056. </div>
  11057. </div>
  11058. <div class="tool">
  11059. <div class="whiteBIcon" @click="addTools2(23)">
  11060. <img
  11061. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11062. alt
  11063. />
  11064. <div style="margin: 5px 0">AI Python</div>
  11065. </div>
  11066. <div class="check" @click="addTools2(23)">
  11067. <img
  11068. src="../../assets/icon/checkNo.png"
  11069. alt
  11070. v-if="checktoolArray.indexOf(23) == -1"
  11071. />
  11072. <div class="checkDiv" v-else>
  11073. <img src="../../assets/icon/checkedIs.png" alt /><span
  11074. >已选择</span
  11075. >
  11076. </div>
  11077. </div>
  11078. </div>
  11079. <div class="tool">
  11080. <div class="whiteBIcon" @click="addTools2(24)">
  11081. <img
  11082. src="../../assets/icon/fourthToolList/AIprogram.png"
  11083. alt
  11084. />
  11085. <div style="margin: 5px 0">AI Blockly</div>
  11086. </div>
  11087. <div class="check" @click="addTools2(24)">
  11088. <img
  11089. src="../../assets/icon/checkNo.png"
  11090. alt
  11091. v-if="checktoolArray.indexOf(24) == -1"
  11092. />
  11093. <div class="checkDiv" v-else>
  11094. <img src="../../assets/icon/checkedIs.png" alt /><span
  11095. >已选择</span
  11096. >
  11097. </div>
  11098. </div>
  11099. </div>
  11100. <div class="tool">
  11101. <div class="whiteBIcon" @click="addTools2(32)">
  11102. <img
  11103. src="../../assets/icon/thirdToolList/code.png"
  11104. alt
  11105. />
  11106. <div style="margin: 5px 0">源码编辑</div>
  11107. </div>
  11108. <div class="check" @click="addTools2(32)">
  11109. <img
  11110. src="../../assets/icon/checkNo.png"
  11111. alt
  11112. v-if="checktoolArray.indexOf(32) == -1"
  11113. />
  11114. <div class="checkDiv" v-else>
  11115. <img src="../../assets/icon/checkedIs.png" alt /><span
  11116. >已选择</span
  11117. >
  11118. </div>
  11119. </div>
  11120. </div>
  11121. <div class="tool">
  11122. <div class="whiteBIcon" @click="addTools2(57)">
  11123. <img
  11124. src="../../assets/icon/fourthToolList/cocopi.png"
  11125. alt
  11126. />
  11127. <div style="margin: 5px 0">CocoPi</div>
  11128. </div>
  11129. <div class="check" @click="addTools2(57)">
  11130. <img
  11131. src="../../assets/icon/checkNo.png"
  11132. alt
  11133. v-if="checktoolArray.indexOf(57) == -1"
  11134. />
  11135. <div class="checkDiv" v-else>
  11136. <img src="../../assets/icon/checkedIs.png" alt /><span
  11137. >已选择</span
  11138. >
  11139. </div>
  11140. </div>
  11141. </div>
  11142. <div class="tool">
  11143. <div class="whiteBIcon" @click="addTools2(63)">
  11144. <img
  11145. src="../../assets/icon/fourthToolList/Wood.png"
  11146. alt
  11147. />
  11148. <div style="margin: 5px 0">海龟编程</div>
  11149. </div>
  11150. <div class="check" @click="addTools2(63)">
  11151. <img
  11152. src="../../assets/icon/checkNo.png"
  11153. alt
  11154. v-if="checktoolArray.indexOf(63) == -1"
  11155. />
  11156. <div class="checkDiv" v-else>
  11157. <img src="../../assets/icon/checkedIs.png" alt /><span
  11158. >已选择</span
  11159. >
  11160. </div>
  11161. </div>
  11162. </div>
  11163. </div>
  11164. <div class="toolSort" v-if="toolType == 5">
  11165. <div class="tool">
  11166. <div class="whiteBIcon" @click="addTools2(28)">
  11167. <img
  11168. src="../../assets/icon/secondToolList/translation.png"
  11169. alt
  11170. />
  11171. <div style="margin: 5px 0">翻译</div>
  11172. </div>
  11173. <div class="check" @click="addTools2(28)">
  11174. <img
  11175. src="../../assets/icon/checkNo.png"
  11176. alt
  11177. v-if="checktoolArray.indexOf(28) == -1"
  11178. />
  11179. <div class="checkDiv" v-else>
  11180. <img src="../../assets/icon/checkedIs.png" alt /><span
  11181. >已选择</span
  11182. >
  11183. </div>
  11184. </div>
  11185. </div>
  11186. <div class="tool">
  11187. <div class="whiteBIcon" @click="addTools2(31)">
  11188. <img
  11189. src="../../assets/icon/secondToolList/networkPanel.png"
  11190. alt
  11191. />
  11192. <div style="margin: 5px 0">数字画板</div>
  11193. </div>
  11194. <div class="check" @click="addTools2(31)">
  11195. <img
  11196. src="../../assets/icon/checkNo.png"
  11197. alt
  11198. v-if="checktoolArray.indexOf(31) == -1"
  11199. />
  11200. <div class="checkDiv" v-else>
  11201. <img src="../../assets/icon/checkedIs.png" alt /><span
  11202. >已选择</span
  11203. >
  11204. </div>
  11205. </div>
  11206. </div>
  11207. <div class="tool">
  11208. <div class="whiteBIcon" @click="addTools2(39)">
  11209. <img
  11210. src="../../assets/icon/secondToolList/GeoGebra.png"
  11211. alt
  11212. />
  11213. <div style="margin: 5px 0">GeoGebra</div>
  11214. </div>
  11215. <div class="check" @click="addTools2(39)">
  11216. <img
  11217. src="../../assets/icon/checkNo.png"
  11218. alt
  11219. v-if="checktoolArray.indexOf(39) == -1"
  11220. />
  11221. <div class="checkDiv" v-else>
  11222. <img src="../../assets/icon/checkedIs.png" alt /><span
  11223. >已选择</span
  11224. >
  11225. </div>
  11226. </div>
  11227. </div>
  11228. <div class="tool">
  11229. <div class="whiteBIcon" @click="addTools2(66)">
  11230. <img
  11231. src="../../assets/icon/secondToolList/formulaEdi.png"
  11232. alt
  11233. />
  11234. <div style="margin: 5px 0">公式编辑</div>
  11235. </div>
  11236. <div class="check" @click="addTools2(66)">
  11237. <img
  11238. src="../../assets/icon/checkNo.png"
  11239. alt
  11240. v-if="checktoolArray.indexOf(66) == -1"
  11241. />
  11242. <div class="checkDiv" v-else>
  11243. <img src="../../assets/icon/checkedIs.png" alt /><span
  11244. >已选择</span
  11245. >
  11246. </div>
  11247. </div>
  11248. </div>
  11249. <div class="tool">
  11250. <div class="whiteBIcon" @click="addTools2(67)">
  11251. <img
  11252. src="../../assets/icon/secondToolList/molStr.png"
  11253. alt
  11254. />
  11255. <div style="margin: 5px 0">分子结构</div>
  11256. </div>
  11257. <div class="check" @click="addTools2(67)">
  11258. <img
  11259. src="../../assets/icon/checkNo.png"
  11260. alt
  11261. v-if="checktoolArray.indexOf(67) == -1"
  11262. />
  11263. <div class="checkDiv" v-else>
  11264. <img src="../../assets/icon/checkedIs.png" alt /><span
  11265. >已选择</span
  11266. >
  11267. </div>
  11268. </div>
  11269. </div>
  11270. <div class="tool">
  11271. <div class="whiteBIcon" @click="addTools2(68)">
  11272. <img
  11273. src="../../assets/icon/secondToolList/timeAxis.png"
  11274. alt
  11275. />
  11276. <div style="margin: 5px 0">时间轴</div>
  11277. </div>
  11278. <div class="check" @click="addTools2(68)">
  11279. <img
  11280. src="../../assets/icon/checkNo.png"
  11281. alt
  11282. v-if="checktoolArray.indexOf(68) == -1"
  11283. />
  11284. <div class="checkDiv" v-else>
  11285. <img src="../../assets/icon/checkedIs.png" alt /><span
  11286. >已选择</span
  11287. >
  11288. </div>
  11289. </div>
  11290. </div>
  11291. </div>
  11292. <div class="toolSort" v-if="toolType == 7">
  11293. <div class="tool">
  11294. <div class="whiteBIcon" @click="addTools2(40)">
  11295. <img
  11296. src="../../assets/icon/secondToolList/eval.png"
  11297. alt
  11298. />
  11299. <div style="margin: 5px 0">个人评价</div>
  11300. </div>
  11301. <div class="check" @click="addTools2(40)">
  11302. <img
  11303. src="../../assets/icon/checkNo.png"
  11304. alt
  11305. v-if="checktoolArray.indexOf(40) == -1"
  11306. />
  11307. <div class="checkDiv" v-else>
  11308. <img src="../../assets/icon/checkedIs.png" alt /><span
  11309. >已选择</span
  11310. >
  11311. </div>
  11312. </div>
  11313. </div>
  11314. </div>
  11315. <div class="toolSort" v-if="toolType == 4">
  11316. <div class="tool">
  11317. <div class="whiteBIcon" @click="addTools2(26)">
  11318. <img
  11319. src="../../assets/icon/thirdToolList/courseDesign.png"
  11320. alt
  11321. />
  11322. <div style="margin: 5px 0">课程设计</div>
  11323. </div>
  11324. <div class="check" @click="addTools2(26)">
  11325. <img
  11326. src="../../assets/icon/checkNo.png"
  11327. alt
  11328. v-if="checktoolArray.indexOf(26) == -1"
  11329. />
  11330. <div class="checkDiv" v-else>
  11331. <img src="../../assets/icon/checkedIs.png" alt /><span
  11332. >已选择</span
  11333. >
  11334. </div>
  11335. </div>
  11336. </div>
  11337. <div class="tool">
  11338. <div class="whiteBIcon" @click="addTools2(25)">
  11339. <img
  11340. src="../../assets/icon/thirdToolList/evalua.png"
  11341. alt
  11342. />
  11343. <div style="margin: 5px 0">目标管理</div>
  11344. </div>
  11345. <div class="check" @click="addTools2(25)">
  11346. <img
  11347. src="../../assets/icon/checkNo.png"
  11348. alt
  11349. v-if="checktoolArray.indexOf(25) == -1"
  11350. />
  11351. <div class="checkDiv" v-else>
  11352. <img src="../../assets/icon/checkedIs.png" alt /><span
  11353. >已选择</span
  11354. >
  11355. </div>
  11356. </div>
  11357. </div>
  11358. </div>
  11359. </div>
  11360. </div>
  11361. </div>
  11362. </div> -->
  11363. <div
  11364. class="vedioBox"
  11365. style="margin-top: 10px; border-radius: 20px"
  11366. v-if="
  11367. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11368. .eList &&
  11369. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11370. .eList.length &&
  11371. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11372. .eList.length > 0 &&
  11373. tType != 2
  11374. "
  11375. >
  11376. <div
  11377. class="queTop"
  11378. style="
  11379. font-size: 20px;
  11380. padding: 15px 0 15px 37px;
  11381. font-weight: bold;
  11382. "
  11383. >
  11384. <!-- <div class="question" style="width: 30px">
  11385. <img src="../assets/icon/toolIcon.png" alt />
  11386. </div>
  11387. <div class="queTitle">
  11388. <div>工具</div>
  11389. </div>-->
  11390. 评一评
  11391. </div>
  11392. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11393. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  11394. <el-table
  11395. :data="
  11396. chapInfoList[courseType].chapterInfo[0].taskJson[
  11397. taskCount
  11398. ].eList
  11399. "
  11400. :header-cell-style="{ background: '#F0F4FA' }"
  11401. :row-class-name="tableRowClassName"
  11402. border
  11403. stripe
  11404. style="width: 100%"
  11405. >
  11406. <el-table-column
  11407. label="评价名称"
  11408. align="center"
  11409. >
  11410. <template slot-scope="scope"
  11411. ><div>{{ scope.row.value }}</div></template
  11412. >
  11413. </el-table-column>
  11414. <el-table-column
  11415. label="评价描述"
  11416. align="center"
  11417. >
  11418. <template slot-scope="scope"
  11419. ><div>
  11420. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11421. </div></template
  11422. >
  11423. </el-table-column>
  11424. <el-table-column label="目标" align="center">
  11425. <template slot-scope="scope"
  11426. ><div>
  11427. {{
  11428. scope.row.target
  11429. ? scope.row.target[scope.row.target.length - 1]
  11430. : "-"
  11431. }}
  11432. </div></template
  11433. ></el-table-column
  11434. >
  11435. </el-table>
  11436. <!-- <div
  11437. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11438. .chapterInfo[0].taskJson[taskCount].eList"
  11439. :key="eIndex"
  11440. class="elist_input_box"
  11441. >
  11442. <div style="width: 95%">
  11443. <div
  11444. style="
  11445. display: flex;
  11446. flex-direction: row;
  11447. flex-wrap: nowrap;
  11448. align-items: center;
  11449. "
  11450. >
  11451. <div style="max-width: calc(100% - 285px)">
  11452. <span>{{ eItem.value }}</span>
  11453. </div>
  11454. <div
  11455. style="
  11456. padding-left: 25px;
  11457. display: flex;
  11458. flex-direction: row;
  11459. align-items: center;
  11460. "
  11461. >
  11462. <el-rate
  11463. v-model="eItem.score"
  11464. :colors="colors"
  11465. disabled
  11466. ></el-rate>
  11467. </div>
  11468. </div>
  11469. <div class="elist_inptu_text" style="padding-left: 10px">
  11470. <span v-if="eItem.detail != ''">{{
  11471. eItem.detail
  11472. }}</span>
  11473. <span v-else style="color: #b2b1b3; font-size: 14px"
  11474. >暂无描述...</span
  11475. >
  11476. </div>
  11477. </div>
  11478. </div> -->
  11479. </div>
  11480. <div
  11481. v-if="evalua"
  11482. style="
  11483. border: 1px solid #e5e5e5;
  11484. max-width: 650px;
  11485. width: 100%;
  11486. margin-top: 20px;
  11487. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11488. "
  11489. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  11490. >
  11491. <div class="e_add_top">
  11492. <div class="e_add_title" style="width: 100%">
  11493. <!-- <span>目标管理名称</span> -->
  11494. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  11495. <img
  11496. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  11497. src="../../assets/line.png"
  11498. class="cru_line"
  11499. style="
  11500. width: 125px;
  11501. height: 20px;
  11502. bottom: -10px;
  11503. left: 5px;
  11504. "
  11505. />
  11506. <!-- <el-input
  11507. v-model="eTitle"
  11508. placeholder="请输入名称"
  11509. @change="setMindData"
  11510. ></el-input>-->
  11511. <div v-show="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" class="show_taskD show" style="margin:0 0 0 auto" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />收起目标</div>
  11512. <div v-show="!chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" style="margin:0 0 0 auto" class="show_taskD" @click="foldEva()"><img src="../../assets/icon/newIcon/icon-slide.png" />展开目标</div>
  11513. </div>
  11514. </div>
  11515. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  11516. <div class="e_add_list_pbox">
  11517. <div class="e_add_list_pbox_title">
  11518. <!-- <span class="type_title">切换模式</span> -->
  11519. <div class="type_content">
  11520. <span
  11521. :class="{ active: typeMode == 1 }"
  11522. @click="typeMode = 1"
  11523. >目标树</span
  11524. >
  11525. <span
  11526. :class="{ active: typeMode == 2 }"
  11527. @click="typeMode = 2"
  11528. >目标罗盘</span
  11529. >
  11530. <!-- <span
  11531. :class="{ active: typeMode == 3 }"
  11532. @click="typeMode = 3"
  11533. >目标看板</span
  11534. > -->
  11535. </div>
  11536. </div>
  11537. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  11538. <Mind
  11539. :showBar="false"
  11540. :mindData="data"
  11541. style="width: 100%"
  11542. v-show="typeMode == 1"
  11543. ></Mind>
  11544. <Sunburst
  11545. :Josn="eJson"
  11546. :num="eJSONNum"
  11547. style="width: 100%"
  11548. v-if="typeMode == 2"
  11549. ></Sunburst>
  11550. <SeeBoard
  11551. :Josn="eJson"
  11552. :num="eJSONNum"
  11553. :ename="eTitle"
  11554. style="width: 100%"
  11555. v-if="typeMode == 3"
  11556. >
  11557. </SeeBoard>
  11558. </div>
  11559. </div>
  11560. </div>
  11561. </div>
  11562. </div>
  11563. </div>
  11564. <!-- <div
  11565. class="project_box"
  11566. style="margin-top: 15px; padding-bottom: 30px"
  11567. >
  11568. <div
  11569. style="
  11570. display: flex;
  11571. flex-wrap: nowrap;
  11572. flex-direction: column;
  11573. position: relative;
  11574. "
  11575. >
  11576. <div class="queTop">
  11577. <div class="question">
  11578. <img src="../../assets/icon/homeWork.png" alt="" />
  11579. </div>
  11580. <div class="queTitle">
  11581. <div>作业提交<span>(提交图文视频等)</span></div>
  11582. <div>:任务:{{ task.task }}</div>
  11583. </div>
  11584. </div>
  11585. <div class="ediBottom">
  11586. <div
  11587. class="addEditor"
  11588. style="margin-top: 23px"
  11589. @click="openAddWork"
  11590. v-if="!isNoHomeWork"
  11591. >
  11592. 选择文件
  11593. </div>
  11594. <div
  11595. class="addEditor"
  11596. style="margin-top: 23px"
  11597. @click="openAddWork"
  11598. v-else
  11599. >
  11600. 已提交
  11601. </div>
  11602. </div>
  11603. </div>
  11604. </div>-->
  11605. </div>
  11606. </div>
  11607. <el-dialog
  11608. title="作业提交"
  11609. :visible.sync="dialogVisible"
  11610. :append-to-body="true"
  11611. width="500px"
  11612. :before-close="handleClose"
  11613. class="dialog_change"
  11614. >
  11615. <div class="marginT">
  11616. <div>上传文件</div>
  11617. <div style="display: flex; gap: 10px">
  11618. <div
  11619. class="chapter_add"
  11620. @click="addImg($event)"
  11621. v-if="studyJuri[0].cover.length == 0"
  11622. >
  11623. <div class="up_photo">
  11624. <img src="../../assets/icon/uploadImg.png" alt />
  11625. </div>
  11626. <!-- <input
  11627. type="file"
  11628. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11629. style="display: none"
  11630. @change="beforeUpload1($event, 1)"
  11631. /> -->
  11632. <input
  11633. type="file"
  11634. accept="*"
  11635. style="display: none"
  11636. @change="beforeUpload1($event, 1)"
  11637. />
  11638. <!-- <input
  11639. type="file"
  11640. accept="image/*"
  11641. capture="camera"
  11642. style="display: none"
  11643. @change="beforeUpload1($event, 1)"
  11644. /> -->
  11645. </div>
  11646. <div
  11647. class="chapter_add"
  11648. @click="addImg($event)"
  11649. v-if="studyJuri[0].cover.length == 0"
  11650. >
  11651. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11652. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11653. </div>
  11654. <input
  11655. type="file"
  11656. accept="image/*"
  11657. capture="camera"
  11658. style="display: none"
  11659. @change="beforeUpload1($event, 1)"
  11660. />
  11661. </div>
  11662. </div>
  11663. <div
  11664. class="chapter_add"
  11665. style="
  11666. display: flex;
  11667. width: 100%;
  11668. flex-direction: row;
  11669. flex-wrap: wrap;
  11670. justify-content: flex-start;
  11671. padding: 15px 0;
  11672. "
  11673. v-if="studyJuri[0].cover.length > 0"
  11674. >
  11675. <div class="upCover">
  11676. <img
  11677. :src="studyJuri[0].cover[0].url"
  11678. alt
  11679. v-if="fileType == 0"
  11680. />
  11681. <img :src="word" alt v-else-if="fileType == 1" />
  11682. <img :src="video" alt v-else-if="fileType == 2" />
  11683. <img :src="word2" alt v-else-if="fileType == 3" />
  11684. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11685. <div class="deleteWord" @click="clean(1)">
  11686. <img src="../../assets/icon/deleteWorks.png" alt />
  11687. </div>
  11688. </div>
  11689. </div>
  11690. </div>
  11691. <div
  11692. class="upload_send"
  11693. @click="addCourseWorksCopy(taskCount)"
  11694. v-if="!proVisible"
  11695. >
  11696. 提交
  11697. </div>
  11698. </el-dialog>
  11699. </div>
  11700. </div>
  11701. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11702. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11703. '/courseDetail?userid=' +
  11704. userid +
  11705. '&oid=' +
  11706. oid +
  11707. '&org=' +
  11708. org +
  11709. '&cid=' +
  11710. classId +
  11711. '&courseId=' +
  11712. id +
  11713. '&tType=' +
  11714. tType +
  11715. '&screenType=' +
  11716. screenType
  11717. )"></classRoomHelper>
  11718. <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(
  11719. '/courseDetail?userid=' +
  11720. userid +
  11721. '&oid=' +
  11722. oid +
  11723. '&org=' +
  11724. org +
  11725. '&cid=' +
  11726. classId +
  11727. '&courseId=' +
  11728. id +
  11729. '&tType=' +
  11730. tType +
  11731. '&screenType=' +
  11732. screenType
  11733. )"></studentClassRoomHelper>
  11734. <div
  11735. class="pButton"
  11736. @click="(pzDialog = true), selectPz()"
  11737. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11738. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11739. >
  11740. <!-- 批 -->
  11741. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11742. </div>
  11743. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11744. <div class="pzTop2">
  11745. <!-- <div>评论</div>
  11746. <div @click="pzDialog = false">
  11747. <img src="../../assets/close1.png" alt="" />
  11748. </div> -->
  11749. <div class="checkbox">
  11750. <!-- <div class="check" style="font-size: 25px; position: unset">
  11751. 评论
  11752. </div> -->
  11753. <div class="cb-tabList">
  11754. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11755. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11756. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11757. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11758. </div>
  11759. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11760. <el-option label="时间降序" :value="1"></el-option>
  11761. <el-option label="时间升序" :value="2"></el-option>
  11762. <el-option label="我的评课" :value="3"></el-option>
  11763. </el-select>
  11764. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11765. </div>
  11766. </div>
  11767. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11768. <div class="pzListBox" v-if="pzList && pzList.length">
  11769. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11770. <div class="pzNavTop">
  11771. <div>评</div>
  11772. <div>
  11773. {{
  11774. pz.username && pz.username.length > 5
  11775. ? pz.username.substring(0, 5) + "..."
  11776. : pz.username
  11777. }}的评论
  11778. </div>
  11779. <div
  11780. class="pzDelete"
  11781. v-if="pz.userid == userid"
  11782. @click="deletePz(pz.id)"
  11783. >
  11784. 删除
  11785. </div>
  11786. </div>
  11787. <div
  11788. @click="checkImg(getImgList(pz.content))"
  11789. class="pzContent cont"
  11790. v-html="pz.content"
  11791. v-if="pz.type == '1'"
  11792. ></div>
  11793. <div class="pzContent" v-if="pz.type == '2'">
  11794. <audio :src="pz.content" controls="controls" ref="audio">
  11795. Your browser does not support the audio element.
  11796. </audio>
  11797. </div>
  11798. <div class="pzContent" v-if="pz.type == '3'">
  11799. <img
  11800. :src="pz.content"
  11801. style="width: 90%; margin: 0 auto; display: block"
  11802. @click="previewImg(pz.content)"
  11803. />
  11804. </div>
  11805. <div class="timeAndReply">
  11806. <div class="time">
  11807. {{ pz.time }}
  11808. </div>
  11809. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11810. </div>
  11811. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11812. <div
  11813. v-for="(h, hIndex) in pz.hfList"
  11814. :key="hIndex"
  11815. class="hfItem"
  11816. >
  11817. <div class="whoReplyWho">
  11818. <div class="hfName">{{ h.username }}</div>
  11819. <div class="hfImg">
  11820. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11821. </div>
  11822. <div class="hfName">{{ pz.username }}</div>
  11823. </div>
  11824. <div class="hfContent" v-html="h.content"></div>
  11825. <div class="hfBottom">
  11826. <div class="hfTime">{{ h.time }}</div>
  11827. <div
  11828. class="deleteHfItem"
  11829. @click="deleteReply(h.id)"
  11830. v-if="userid == h.userid"
  11831. >
  11832. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11833. </div>
  11834. </div>
  11835. </div>
  11836. </div>
  11837. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11838. <div class="replyInput">
  11839. <el-input v-model="reply[pzIndex]"></el-input>
  11840. </div>
  11841. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11842. </div> -->
  11843. </div>
  11844. </div>
  11845. <div class="noPz" v-else>
  11846. <img src="../../assets/icon/noPz.png" alt="" />
  11847. </div>
  11848. <div class="addPzButton">
  11849. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11850. 添加评论
  11851. </div>
  11852. <!-- <div class="img1">
  11853. <div @click="(addPzDialog = true), (pzType = 2)">
  11854. <img src="../../assets/audio.png" /><span>音频</span>
  11855. </div>
  11856. </div> -->
  11857. </div>
  11858. </div>
  11859. <div class="scoreList" v-if="commentTagShow==1">
  11860. <scoreItem v-for="item in scoreList.datalist" @refresh="getScoreList" :data="item" :isScore="scoreList.isScoreList.filter(i=>(i.userid==item.userid && i.courseid == item.courseId))" :key="item.courseId"/>
  11861. </div>
  11862. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11863. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11864. </div>
  11865. </div>
  11866. <div
  11867. v-if="toolDialogVisible == true"
  11868. class="toolMask"
  11869. @click="toolDialogVisible = false"
  11870. ></div>
  11871. <div v-if="toolDialogVisible == true" class="addToolCss">
  11872. <div class="toolTop">
  11873. <div style="font-weight: bold">新增工具</div>
  11874. <div @click="toolDialogVisible = false">
  11875. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11876. </div>
  11877. </div>
  11878. <div class="tool_box">
  11879. <div class="tool_type_box">
  11880. <div class="chooseWho">
  11881. <div
  11882. :class="toolType == 0 ? 'isChooseActive' : ''"
  11883. @click="(toolType = 0), $forceUpdate()"
  11884. >
  11885. 互动类
  11886. </div>
  11887. <div
  11888. :class="toolType == 1 ? 'isChooseActive' : ''"
  11889. @click="(toolType = 1), $forceUpdate()"
  11890. >
  11891. 思维类
  11892. </div>
  11893. <div
  11894. :class="toolType == 2 ? 'isChooseActive' : ''"
  11895. @click="(toolType = 2), $forceUpdate()"
  11896. >
  11897. 测评类
  11898. </div>
  11899. <div
  11900. :class="toolType == 3 ? 'isChooseActive' : ''"
  11901. @click="(toolType = 3), $forceUpdate()"
  11902. >
  11903. 编程类
  11904. </div>
  11905. <div
  11906. :class="toolType == 5 ? 'isChooseActive' : ''"
  11907. @click="(toolType = 5), $forceUpdate()"
  11908. >
  11909. 学科类
  11910. </div>
  11911. </div>
  11912. </div>
  11913. <div>
  11914. <div class="toolSort" v-if="toolType == 0">
  11915. <div
  11916. class="tool"
  11917. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11918. @click="addTools2(10)"
  11919. >
  11920. <div class="whiteBIcon">
  11921. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11922. <div style="margin: 5px 0">倒计时</div>
  11923. </div>
  11924. <div class="check">
  11925. <div
  11926. v-if="checktoolArray.indexOf(10) == -1"
  11927. class="noChoose"
  11928. ></div>
  11929. <div v-else class="isChoose"></div>
  11930. </div>
  11931. </div>
  11932. <div
  11933. class="tool"
  11934. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11935. @click="addTools2(65)"
  11936. >
  11937. <div class="whiteBIcon">
  11938. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11939. <div style="margin: 5px 0">挑人</div>
  11940. </div>
  11941. <div class="check">
  11942. <div
  11943. v-if="checktoolArray.indexOf(65) == -1"
  11944. class="noChoose"
  11945. ></div>
  11946. <div v-else class="isChoose"></div>
  11947. </div>
  11948. </div>
  11949. </div>
  11950. <div class="toolSort" v-if="toolType == 1">
  11951. <div
  11952. class="tool"
  11953. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11954. @click="addTools2(7)"
  11955. >
  11956. <div class="whiteBIcon">
  11957. <img
  11958. src="../../assets/icon/secondToolList/mindNetwork.png"
  11959. alt
  11960. />
  11961. <div style="margin: 5px 0">思维网格</div>
  11962. </div>
  11963. <div class="check">
  11964. <div
  11965. v-if="checktoolArray.indexOf(7) == -1"
  11966. class="noChoose"
  11967. ></div>
  11968. <div v-else class="isChoose"></div>
  11969. </div>
  11970. </div>
  11971. <div
  11972. class="tool"
  11973. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11974. @click="addTools2(1)"
  11975. >
  11976. <div class="whiteBIcon">
  11977. <img
  11978. src="../../assets/icon/secondToolList/whiteBoard.png"
  11979. alt
  11980. />
  11981. <div style="margin: 5px 0">电子白板</div>
  11982. </div>
  11983. <div class="check">
  11984. <div
  11985. v-if="checktoolArray.indexOf(1) == -1"
  11986. class="noChoose"
  11987. ></div>
  11988. <div v-else class="isChoose"></div>
  11989. </div>
  11990. </div>
  11991. <div
  11992. class="tool"
  11993. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11994. @click="addTools2(52)"
  11995. >
  11996. <div class="whiteBIcon">
  11997. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11998. <div style="margin: 5px 0">文档</div>
  11999. </div>
  12000. <div class="check">
  12001. <div
  12002. v-if="checktoolArray.indexOf(52) == -1"
  12003. class="noChoose"
  12004. ></div>
  12005. <div v-else class="isChoose"></div>
  12006. </div>
  12007. </div>
  12008. <div
  12009. class="tool"
  12010. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12011. @click="addTools2(3)"
  12012. >
  12013. <div class="whiteBIcon">
  12014. <img
  12015. src="../../assets/icon/secondToolList/mindMapping.png"
  12016. alt
  12017. />
  12018. <div style="margin: 5px 0">思维导图</div>
  12019. </div>
  12020. <div class="check">
  12021. <div
  12022. v-if="checktoolArray.indexOf(3) == -1"
  12023. class="noChoose"
  12024. ></div>
  12025. <div v-else class="isChoose"></div>
  12026. </div>
  12027. </div>
  12028. <div
  12029. class="tool"
  12030. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12031. @click="addTools2(48)"
  12032. >
  12033. <div class="whiteBIcon">
  12034. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12035. <div style="margin: 5px 0">表格</div>
  12036. </div>
  12037. <div class="check">
  12038. <div
  12039. v-if="checktoolArray.indexOf(48) == -1"
  12040. class="noChoose"
  12041. ></div>
  12042. <div v-else class="isChoose"></div>
  12043. </div>
  12044. </div>
  12045. </div>
  12046. <div class="toolSort" v-if="toolType == 6">
  12047. <div v-show="tooC == 49">
  12048. <img
  12049. @click="addTools(tooC, toolIndex, taskCount)"
  12050. src="../../assets/icon/fourthToolList/group.png"
  12051. alt
  12052. />
  12053. <div style="margin: 5px 0">学生分组</div>
  12054. </div>
  12055. </div>
  12056. <div class="toolSort" v-if="toolType == 2">
  12057. <div
  12058. class="tool"
  12059. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12060. @click="addTools2(16)"
  12061. >
  12062. <div class="whiteBIcon">
  12063. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12064. <div style="margin: 5px 0">作业提交</div>
  12065. </div>
  12066. <div class="check">
  12067. <div
  12068. v-if="checktoolArray.indexOf(16) == -1"
  12069. class="noChoose"
  12070. ></div>
  12071. <div v-else class="isChoose"></div>
  12072. </div>
  12073. </div>
  12074. <div
  12075. class="tool"
  12076. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12077. @click="addTools2(50)"
  12078. >
  12079. <div class="whiteBIcon">
  12080. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12081. <div style="margin: 5px 0">批量上传</div>
  12082. </div>
  12083. <div class="check">
  12084. <div
  12085. v-if="checktoolArray.indexOf(50) == -1"
  12086. class="noChoose"
  12087. ></div>
  12088. <div v-else class="isChoose"></div>
  12089. </div>
  12090. </div>
  12091. </div>
  12092. <div class="toolSort" v-if="toolType == 3">
  12093. <div
  12094. class="tool"
  12095. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12096. @click="addTools2(18)"
  12097. >
  12098. <div class="whiteBIcon">
  12099. <img
  12100. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12101. alt
  12102. />
  12103. <div style="margin: 5px 0">训练平台</div>
  12104. </div>
  12105. <div class="check">
  12106. <div
  12107. v-if="checktoolArray.indexOf(18) == -1"
  12108. class="noChoose"
  12109. ></div>
  12110. <div v-else class="isChoose"></div>
  12111. </div>
  12112. </div>
  12113. <div
  12114. class="tool"
  12115. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12116. @click="addTools2(21)"
  12117. >
  12118. <div class="whiteBIcon">
  12119. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12120. <div style="margin: 5px 0">AIoT Blockly</div>
  12121. </div>
  12122. <div class="check">
  12123. <div
  12124. v-if="checktoolArray.indexOf(21) == -1"
  12125. class="noChoose"
  12126. ></div>
  12127. <div v-else class="isChoose"></div>
  12128. </div>
  12129. </div>
  12130. <div
  12131. class="tool"
  12132. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12133. @click="addTools2(23)"
  12134. >
  12135. <div class="whiteBIcon">
  12136. <img
  12137. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12138. alt
  12139. />
  12140. <div style="margin: 5px 0">AI Python</div>
  12141. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  12142. style="position: absolute;right: 33px;top: -30px;">
  12143. 分析
  12144. </div>
  12145. </div>
  12146. <div class="check">
  12147. <div
  12148. v-if="checktoolArray.indexOf(23) == -1"
  12149. class="noChoose"
  12150. ></div>
  12151. <div v-else class="isChoose"></div>
  12152. </div>
  12153. </div>
  12154. <div
  12155. class="tool"
  12156. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12157. @click="addTools2(24)"
  12158. >
  12159. <div class="whiteBIcon">
  12160. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12161. <div style="margin: 5px 0">AI Blockly</div>
  12162. </div>
  12163. <div class="check">
  12164. <div
  12165. v-if="checktoolArray.indexOf(24) == -1"
  12166. class="noChoose"
  12167. ></div>
  12168. <div v-else class="isChoose"></div>
  12169. </div>
  12170. </div>
  12171. <div
  12172. class="tool"
  12173. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12174. @click="addTools2(32)"
  12175. >
  12176. <div class="whiteBIcon">
  12177. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12178. <div style="margin: 5px 0">源码编辑</div>
  12179. </div>
  12180. <div class="check">
  12181. <div
  12182. v-if="checktoolArray.indexOf(32) == -1"
  12183. class="noChoose"
  12184. ></div>
  12185. <div v-else class="isChoose"></div>
  12186. </div>
  12187. </div>
  12188. <div
  12189. class="tool"
  12190. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12191. @click="addTools2(57)"
  12192. >
  12193. <div class="whiteBIcon">
  12194. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12195. <div style="margin: 5px 0">CocoPi</div>
  12196. </div>
  12197. <div class="check">
  12198. <div
  12199. v-if="checktoolArray.indexOf(57) == -1"
  12200. class="noChoose"
  12201. ></div>
  12202. <div v-else class="isChoose"></div>
  12203. </div>
  12204. </div>
  12205. <div
  12206. class="tool"
  12207. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12208. @click="addTools2(63)"
  12209. >
  12210. <div class="whiteBIcon">
  12211. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12212. <div style="margin: 5px 0">海龟编程</div>
  12213. </div>
  12214. <div class="check">
  12215. <div
  12216. v-if="checktoolArray.indexOf(63) == -1"
  12217. class="noChoose"
  12218. ></div>
  12219. <div v-else class="isChoose"></div>
  12220. </div>
  12221. </div>
  12222. <div
  12223. class="tool"
  12224. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12225. @click="addTools2(71)"
  12226. >
  12227. <div class="whiteBIcon">
  12228. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12229. <div style="margin: 5px 0">AI智能体</div>
  12230. </div>
  12231. <div class="check">
  12232. <div
  12233. v-if="checktoolArray.indexOf(71) == -1"
  12234. class="noChoose"
  12235. ></div>
  12236. <div v-else class="isChoose"></div>
  12237. </div>
  12238. </div>
  12239. </div>
  12240. <div class="toolSort" v-if="toolType == 7">
  12241. <div
  12242. class="tool"
  12243. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12244. @click="addTools2(40)"
  12245. >
  12246. <div class="whiteBIcon">
  12247. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12248. <div style="margin: 5px 0">个人评价</div>
  12249. </div>
  12250. <div class="check">
  12251. <div
  12252. v-if="checktoolArray.indexOf(40) == -1"
  12253. class="noChoose"
  12254. ></div>
  12255. <div v-else class="isChoose"></div>
  12256. </div>
  12257. </div>
  12258. </div>
  12259. <div class="toolSort" v-if="toolType == 5">
  12260. <div
  12261. class="tool"
  12262. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12263. @click="addTools2(28)"
  12264. >
  12265. <div class="whiteBIcon">
  12266. <img
  12267. src="../../assets/icon/secondToolList/translation.png"
  12268. alt
  12269. />
  12270. <div style="margin: 5px 0">翻译</div>
  12271. </div>
  12272. <div class="check">
  12273. <div
  12274. v-if="checktoolArray.indexOf(28) == -1"
  12275. class="noChoose"
  12276. ></div>
  12277. <div v-else class="isChoose"></div>
  12278. </div>
  12279. </div>
  12280. <div
  12281. class="tool"
  12282. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12283. @click="addTools2(31)"
  12284. >
  12285. <div class="whiteBIcon">
  12286. <img
  12287. src="../../assets/icon/secondToolList/networkPanel.png"
  12288. alt
  12289. />
  12290. <div style="margin: 5px 0">数字画板</div>
  12291. </div>
  12292. <div class="check">
  12293. <div
  12294. v-if="checktoolArray.indexOf(31) == -1"
  12295. class="noChoose"
  12296. ></div>
  12297. <div v-else class="isChoose"></div>
  12298. </div>
  12299. </div>
  12300. <div
  12301. class="tool"
  12302. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12303. @click="addTools2(39)"
  12304. >
  12305. <div class="whiteBIcon">
  12306. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12307. <div style="margin: 5px 0">GeoGebra</div>
  12308. </div>
  12309. <div class="check">
  12310. <div
  12311. v-if="checktoolArray.indexOf(39) == -1"
  12312. class="noChoose"
  12313. ></div>
  12314. <div v-else class="isChoose"></div>
  12315. </div>
  12316. </div>
  12317. <div
  12318. class="tool"
  12319. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12320. @click="addTools2(66)"
  12321. >
  12322. <div class="whiteBIcon">
  12323. <img
  12324. src="../../assets/icon/secondToolList/formulaEdi.png"
  12325. alt
  12326. />
  12327. <div style="margin: 5px 0">公式编辑</div>
  12328. </div>
  12329. <div class="check">
  12330. <div
  12331. v-if="checktoolArray.indexOf(66) == -1"
  12332. class="noChoose"
  12333. ></div>
  12334. <div v-else class="isChoose"></div>
  12335. </div>
  12336. </div>
  12337. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12338. <div class="whiteBIcon" @click="addTools2(67)">
  12339. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12340. <div style="margin: 5px 0">分子结构</div>
  12341. </div>
  12342. <div class="check" @click="addTools2(67)">
  12343. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12344. <div v-else class="isChoose"></div>
  12345. </div>
  12346. </div> -->
  12347. <div
  12348. class="tool"
  12349. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12350. @click="addTools2(68)"
  12351. >
  12352. <div class="whiteBIcon">
  12353. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12354. <div style="margin: 5px 0">时间轴</div>
  12355. </div>
  12356. <div class="check">
  12357. <div
  12358. v-if="checktoolArray.indexOf(68) == -1"
  12359. class="noChoose"
  12360. ></div>
  12361. <div v-else class="isChoose"></div>
  12362. </div>
  12363. </div>
  12364. <!-- <div
  12365. class="tool"
  12366. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12367. @click="addTools2(69)"
  12368. >
  12369. <div class="whiteBIcon">
  12370. <img src="../../assets/icon/secondToolList/english.png" alt />
  12371. <div style="margin: 5px 0">英语写作</div>
  12372. </div>
  12373. <div class="check">
  12374. <div
  12375. v-if="checktoolArray.indexOf(69) == -1"
  12376. class="noChoose"
  12377. ></div>
  12378. <div v-else class="isChoose"></div>
  12379. </div>
  12380. </div> -->
  12381. </div>
  12382. <div class="toolSort" v-if="toolType == 4">
  12383. <div
  12384. class="tool"
  12385. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12386. @click="addTools2(26)"
  12387. >
  12388. <div class="whiteBIcon">
  12389. <img
  12390. src="../../assets/icon/thirdToolList/courseDesign.png"
  12391. alt
  12392. />
  12393. <div style="margin: 5px 0">课程设计</div>
  12394. </div>
  12395. <div class="check">
  12396. <div
  12397. v-if="checktoolArray.indexOf(26) == -1"
  12398. class="noChoose"
  12399. ></div>
  12400. <div v-else class="isChoose"></div>
  12401. </div>
  12402. </div>
  12403. <div
  12404. class="tool"
  12405. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12406. @click="addTools2(25)"
  12407. >
  12408. <div class="whiteBIcon">
  12409. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12410. <div style="margin: 5px 0">目标管理</div>
  12411. </div>
  12412. <div class="check">
  12413. <div
  12414. v-if="checktoolArray.indexOf(25) == -1"
  12415. class="noChoose"
  12416. ></div>
  12417. <div v-else class="isChoose"></div>
  12418. </div>
  12419. </div>
  12420. </div>
  12421. </div>
  12422. </div>
  12423. <span
  12424. slot="footer"
  12425. class="dialog-footer"
  12426. style="display: block; text-align: center; padding: 0 0 10px 0"
  12427. >
  12428. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12429. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12430. </span>
  12431. </div>
  12432. <div
  12433. v-if="replyDialogVisible == true"
  12434. class="addDialogCss"
  12435. v-el-drag-dialog
  12436. >
  12437. <div class="pzTop">
  12438. <div class="teacherPz">
  12439. <div class="teacherPzImg">
  12440. <img src="../../assets/icon/teacherPz.png" alt="" />
  12441. </div>
  12442. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12443. </div>
  12444. <div @click="replyDialogVisible = false">
  12445. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12446. </div>
  12447. </div>
  12448. <div class="addPzBox">
  12449. <!-- <div class="addPzCheck">
  12450. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12451. >文本</span
  12452. >
  12453. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12454. >音频</span
  12455. >
  12456. </div> -->
  12457. <div style="height: calc(100% - 50px)">
  12458. <editor-bar
  12459. class="binfo_input pzConText"
  12460. style="width: 100% !important; margin: 0 auto"
  12461. placeholder="请输入回复描述"
  12462. v-model="reply"
  12463. @change="change"
  12464. ></editor-bar>
  12465. </div>
  12466. <div class="addTextCss" @click="addHf">确定</div>
  12467. </div>
  12468. </div>
  12469. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12470. <div class="pzTop">
  12471. <div class="teacherPz">
  12472. <div class="teacherPzImg">
  12473. <img src="../../assets/icon/teacherPz.png" alt="" />
  12474. </div>
  12475. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12476. </div>
  12477. <div @click="addPzDialog = false">
  12478. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12479. </div>
  12480. </div>
  12481. <div class="addPzBox">
  12482. <div class="addPzCheck">
  12483. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12484. >文本</span
  12485. >
  12486. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12487. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12488. >音频</span
  12489. >
  12490. </div>
  12491. <div style="height: calc(100% - 95px)">
  12492. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12493. v-if="pzType == 1"></textarea> -->
  12494. <editor-bar
  12495. class="binfo_input pzConText"
  12496. style="width: 100% !important"
  12497. placeholder="请输入任务描述"
  12498. v-model="pzConText"
  12499. @change="change"
  12500. v-if="pzType == 1"
  12501. ></editor-bar>
  12502. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12503. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12504. <div @click="addImg($event)">
  12505. <el-button type="primary">上传图片</el-button>
  12506. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12507. @change="beforeUpload1($event, 4)" />
  12508. </div>
  12509. </div> -->
  12510. </div>
  12511. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12512. 确定
  12513. </div>
  12514. </div>
  12515. </div>
  12516. <div v-if="proVisible" class="mask">
  12517. <div class="progressBox">
  12518. <!-- <div id="closePro" class="closeCss">
  12519. <img src="../../assets/icon/close.png" alt />
  12520. </div> -->
  12521. <div class="lbox">
  12522. <img src="../../assets/loading.gif" />上传中,请稍后
  12523. </div>
  12524. <div style="margin-bottom: 10px">
  12525. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12526. </div>
  12527. <el-progress
  12528. :text-inside="true"
  12529. :stroke-width="20"
  12530. :percentage="progress"
  12531. style="width: 80%"
  12532. ></el-progress>
  12533. </div>
  12534. </div>
  12535. <div v-if="proVisible2" class="mask">
  12536. <div class="progressBox">
  12537. <div class="lbox">
  12538. <img src="../../assets/loading.gif" />上传中,请稍后
  12539. </div>
  12540. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12541. </div>
  12542. </div>
  12543. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12544. <img width="100%" :src="dialogImageUrl" alt />
  12545. </el-dialog>
  12546. <el-dialog
  12547. :title="noteName != '' ? noteName : '查看问卷'"
  12548. :visible.sync="dialogVisible5"
  12549. :append-to-body="true"
  12550. width="1000px"
  12551. :before-close="handleClose"
  12552. class="dialog_diy dialog_diy3"
  12553. >
  12554. <div>
  12555. <div
  12556. class="a_add_title"
  12557. style="
  12558. display: flex;
  12559. flex-direction: row;
  12560. align-items: center;
  12561. justify-content: center;
  12562. "
  12563. >
  12564. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12565. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12566. </div>
  12567. <div class="a_addBox">
  12568. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12569. 题目内容
  12570. </div>
  12571. <div
  12572. class="a_add_box"
  12573. v-for="(item1, index1) in askJson.askCount"
  12574. :key="index1"
  12575. >
  12576. <div class="a_add_head">
  12577. <div style="display: flex">
  12578. <span class="askIndex"> {{ index1 + 1 }}</span>
  12579. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12580. </div>
  12581. <img
  12582. v-if="askJson.askJson[index1].img"
  12583. :src="askJson.askJson[index1].img"
  12584. style="height: 300px; margin-top: 10px; max-width: 100%"
  12585. />
  12586. </div>
  12587. <div class="a_add_body">
  12588. <div class="a_add_input">
  12589. <el-radio-group
  12590. v-model="radio[index1]"
  12591. v-if="
  12592. askJson.askJson[index1].type == '1' ||
  12593. !askJson.askJson[index1].type
  12594. "
  12595. >
  12596. <el-radio
  12597. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12598. .checkList"
  12599. :key="checkIndex"
  12600. :label="checkIndex"
  12601. :disabled="isAnswer"
  12602. class="redioStyle"
  12603. ><span v-html="item2"></span
  12604. ></el-radio>
  12605. </el-radio-group>
  12606. <el-checkbox-group
  12607. v-model="radio[index1]"
  12608. v-if="askJson.askJson[index1].type == '2'"
  12609. >
  12610. <el-checkbox
  12611. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12612. .checkList"
  12613. :key="checkIndex1"
  12614. :label="checkIndex1"
  12615. :disabled="isAnswer"
  12616. class="redioStyle"
  12617. ><span v-html="item2"></span>
  12618. </el-checkbox>
  12619. </el-checkbox-group>
  12620. </div>
  12621. </div>
  12622. </div>
  12623. </div>
  12624. </div>
  12625. <span slot="footer" class="dialog-footer">
  12626. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12627. >取 消</el-button
  12628. >
  12629. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12630. >确 定</el-button
  12631. >
  12632. </span>
  12633. </el-dialog>
  12634. <el-dialog
  12635. :title="noteName != '' ? noteName : '查看问卷'"
  12636. :visible.sync="dialogVisible5Teacher"
  12637. :append-to-body="true"
  12638. width="1000px"
  12639. :before-close="handleClose"
  12640. class="dialog_diy dialog_diy3"
  12641. >
  12642. <div>
  12643. <div class="w_name">
  12644. 学生姓名:<span>{{ sStudent.student }}</span>
  12645. </div>
  12646. <div
  12647. class="a_add_title"
  12648. style="
  12649. display: flex;
  12650. flex-direction: row;
  12651. align-items: center;
  12652. justify-content: center;
  12653. "
  12654. >
  12655. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12656. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12657. </div>
  12658. <div class="a_addBox">
  12659. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12660. 题目内容
  12661. </div>
  12662. <div
  12663. class="a_add_box"
  12664. v-for="(item1, index1) in askJson.askCount"
  12665. :key="index1"
  12666. >
  12667. <div class="a_add_head">
  12668. <div style="display: flex">
  12669. <span class="askIndex">{{ index1 + 1 }}</span>
  12670. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12671. </div>
  12672. <img
  12673. v-if="askJson.askJson[index1].img"
  12674. :src="askJson.askJson[index1].img"
  12675. style="height: 300px; margin-top: 10px; max-width: 100%"
  12676. />
  12677. </div>
  12678. <div class="a_add_body">
  12679. <div class="a_add_input">
  12680. <el-radio-group
  12681. v-model="radio[index1]"
  12682. v-if="
  12683. askJson.askJson[index1].type == '1' ||
  12684. !askJson.askJson[index1].type
  12685. "
  12686. >
  12687. <el-radio
  12688. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12689. .checkList"
  12690. :key="checkIndex"
  12691. :label="checkIndex"
  12692. :disabled="isAnswer"
  12693. class="redioStyle"
  12694. ><span v-html="item2"></span
  12695. ></el-radio>
  12696. </el-radio-group>
  12697. <el-checkbox-group
  12698. v-model="radio[index1]"
  12699. v-if="askJson.askJson[index1].type == '2'"
  12700. >
  12701. <el-checkbox
  12702. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12703. .checkList"
  12704. :key="checkIndex1"
  12705. :label="checkIndex1"
  12706. :disabled="isAnswer"
  12707. class="redioStyle"
  12708. ><span v-html="item2"></span>
  12709. </el-checkbox>
  12710. </el-checkbox-group>
  12711. </div>
  12712. </div>
  12713. </div>
  12714. </div>
  12715. </div>
  12716. <span slot="footer" class="dialog-footer">
  12717. <el-button
  12718. @click="dialogVisible5Teacher = false"
  12719. v-show="noteName == ''"
  12720. >取 消</el-button
  12721. >
  12722. <el-button
  12723. type="primary"
  12724. @click="addStudentAskTeacher"
  12725. v-show="noteName == ''"
  12726. >确 定</el-button
  12727. >
  12728. </span>
  12729. </el-dialog>
  12730. <el-dialog
  12731. :title="noteName != '' ? noteName : '查看选择题'"
  12732. :visible.sync="dialogVisibleChoice"
  12733. :append-to-body="true"
  12734. width="1000px"
  12735. :before-close="handleClose"
  12736. class="dialog_diy dialog_diy3"
  12737. >
  12738. <div>
  12739. <!-- <div class="a_add_title" style="
  12740. display: flex;
  12741. flex-direction: row;
  12742. align-items: center;
  12743. justify-content: center;
  12744. ">
  12745. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12746. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12747. </div> -->
  12748. <div class="a_addBox">
  12749. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12750. 题目内容
  12751. </div>
  12752. <div
  12753. class="a_add_box"
  12754. v-for="(item1, index1) in testJson.testCount"
  12755. :key="index1"
  12756. >
  12757. <div class="a_add_head">
  12758. <div style="display: flex;align-items: center;">
  12759. <span class="askIndex">{{ index1 + 1 }}</span>
  12760. <div
  12761. v-if="testJson.testJson[index1].type == '1'"
  12762. style="margin-right: 5px; min-width: 70px"
  12763. >
  12764. (单选题)
  12765. </div>
  12766. <div
  12767. v-if="testJson.testJson[index1].type == '2'"
  12768. style="margin-right: 5px; min-width: 70px"
  12769. >
  12770. (多选题)
  12771. </div>
  12772. <div>题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  12773. </div>
  12774. <img
  12775. v-if="testJson.testJson[index1].img"
  12776. :src="testJson.testJson[index1].img"
  12777. style="height: 300px; margin-top: 10px; max-width: 100%"
  12778. />
  12779. </div>
  12780. <div
  12781. class="timuImgBox"
  12782. v-if="
  12783. testJson.testJson[index1].timuList &&
  12784. testJson.testJson[index1].timuList.length
  12785. "
  12786. >
  12787. <div
  12788. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12789. :key="tIndex"
  12790. class="timuImg"
  12791. @click.stop="previewImg(timg.src)"
  12792. >
  12793. <img :src="timg.src" alt="" />
  12794. </div>
  12795. </div>
  12796. <div class="a_add_body">
  12797. <div class="a_add_input">
  12798. <el-radio-group
  12799. v-model="radio[index1]"
  12800. v-if="testJson.testJson[index1].type == '1'"
  12801. >
  12802. <div class="radioBox">
  12803. <el-radio
  12804. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12805. .checkList"
  12806. :key="checkIndex"
  12807. :label="checkIndex"
  12808. :disabled="isAnswer"
  12809. class="redioStyle"
  12810. >
  12811. <div
  12812. style="margin-right: 10px"
  12813. v-if="item2 && item2.imgType && item2.imgType == 1"
  12814. >
  12815. <div class="inImg" @click.stop="previewImg(item2.src)">
  12816. <img :src="item2.src" alt="" />
  12817. </div>
  12818. </div>
  12819. <span v-else v-html="item2"></span>
  12820. </el-radio>
  12821. </div>
  12822. </el-radio-group>
  12823. <el-checkbox-group
  12824. v-model="radio[index1]"
  12825. v-if="testJson.testJson[index1].type == '2'"
  12826. >
  12827. <div class="radioBox">
  12828. <el-checkbox
  12829. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12830. .checkList"
  12831. :key="checkIndex"
  12832. :label="checkIndex"
  12833. :disabled="isAnswer"
  12834. class="redioStyle"
  12835. >
  12836. <div
  12837. style="margin-right: 10px"
  12838. v-if="item2 && item2.imgType && item2.imgType == 1"
  12839. >
  12840. <div class="inImg" @click.stop="previewImg(item2.src)">
  12841. <img :src="item2.src" alt="" />
  12842. </div>
  12843. </div>
  12844. <span v-else v-html="item2"></span>
  12845. </el-checkbox>
  12846. </div>
  12847. </el-checkbox-group>
  12848. </div>
  12849. </div>
  12850. </div>
  12851. </div>
  12852. </div>
  12853. <span slot="footer" class="dialog-footer">
  12854. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12855. >取 消</el-button
  12856. >
  12857. <el-button
  12858. type="primary"
  12859. @click="addStudentTest"
  12860. v-show="noteName == ''"
  12861. >确 定</el-button
  12862. >
  12863. </span>
  12864. </el-dialog>
  12865. <el-dialog
  12866. :title="noteName != '' ? noteName : '查看选择题'"
  12867. :visible.sync="dialogVisibleChoiceTeacher"
  12868. :append-to-body="true"
  12869. width="1000px"
  12870. :before-close="handleClose"
  12871. class="dialog_diy dialog_diy3"
  12872. >
  12873. <div>
  12874. <div class="w_name">
  12875. 学生姓名:<span>{{ sStudent.student }}</span>
  12876. </div>
  12877. <div class="a_addBox">
  12878. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12879. 题目内容
  12880. </div>
  12881. <div
  12882. class="a_add_box"
  12883. v-for="(item1, index1) in testJson.testCount"
  12884. :key="index1"
  12885. >
  12886. <div class="a_add_head">
  12887. <div style="display: flex">
  12888. <span class="askIndex">{{ index1 + 1 }}</span>
  12889. <div
  12890. v-if="testJson.testJson[index1].type == '1'"
  12891. style="margin-right: 5px; min-width: 70px"
  12892. >
  12893. (单选题)
  12894. </div>
  12895. <div
  12896. v-if="testJson.testJson[index1].type == '2'"
  12897. style="margin-right: 5px; min-width: 70px"
  12898. >
  12899. (多选题)
  12900. </div>
  12901. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12902. </div>
  12903. <img
  12904. v-if="testJson.testJson[index1].img"
  12905. :src="testJson.testJson[index1].img"
  12906. style="height: 300px; margin-top: 10px; max-width: 100%"
  12907. />
  12908. </div>
  12909. <div
  12910. class="timuImgBox"
  12911. v-if="
  12912. testJson.testJson[index1].timuList &&
  12913. testJson.testJson[index1].timuList.length
  12914. "
  12915. >
  12916. <div
  12917. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12918. :key="tIndex"
  12919. class="timuImg"
  12920. @click.stop="previewImg(timg.src)"
  12921. >
  12922. <img :src="timg.src" alt="" />
  12923. </div>
  12924. </div>
  12925. <div class="a_add_body">
  12926. <div class="a_add_input">
  12927. <el-radio-group
  12928. v-model="radio[index1]"
  12929. v-if="testJson.testJson[index1].type == '1'"
  12930. >
  12931. <div class="radioBox">
  12932. <el-radio
  12933. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12934. .checkList"
  12935. :key="checkIndex"
  12936. :label="checkIndex"
  12937. :disabled="isAnswer"
  12938. class="redioStyle"
  12939. >
  12940. <div
  12941. style="margin-right: 10px"
  12942. v-if="item2 && item2.imgType && item2.imgType == 1"
  12943. >
  12944. <div class="inImg" @click.stop="previewImg(item2.src)">
  12945. <img :src="item2.src" alt="" />
  12946. </div>
  12947. </div>
  12948. <span v-else v-html="item2"></span>
  12949. </el-radio>
  12950. </div>
  12951. </el-radio-group>
  12952. <el-checkbox-group
  12953. v-model="radio[index1]"
  12954. v-if="testJson.testJson[index1].type == '2'"
  12955. >
  12956. <div class="radioBox">
  12957. <el-checkbox
  12958. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12959. .checkList"
  12960. :key="checkIndex"
  12961. :label="checkIndex"
  12962. :disabled="isAnswer"
  12963. class="redioStyle"
  12964. >
  12965. <div
  12966. style="margin-right: 10px"
  12967. v-if="item2 && item2.imgType && item2.imgType == 1"
  12968. >
  12969. <div class="inImg" @click.stop="previewImg(item2.src)">
  12970. <img :src="item2.src" alt="" />
  12971. </div>
  12972. </div>
  12973. <span v-else v-html="item2"></span>
  12974. </el-checkbox>
  12975. </div>
  12976. </el-checkbox-group>
  12977. </div>
  12978. </div>
  12979. </div>
  12980. </div>
  12981. </div>
  12982. <span slot="footer" class="dialog-footer">
  12983. <el-button
  12984. @click="dialogVisibleChoiceTeacher = false"
  12985. v-show="noteName == ''"
  12986. >取 消</el-button
  12987. >
  12988. <el-button
  12989. type="primary"
  12990. @click="addStudentTestTeacher"
  12991. v-show="noteName == ''"
  12992. >确 定</el-button
  12993. >
  12994. </span>
  12995. </el-dialog>
  12996. <el-dialog
  12997. title="查看富文本"
  12998. :visible.sync="dialogVisible1"
  12999. :append-to-body="true"
  13000. width="500px"
  13001. :before-close="handleClose"
  13002. class="dialog_diy textCss"
  13003. >
  13004. <el-form style="font-size: 20px">
  13005. <el-form-item label="文本标题" class="textTitle">
  13006. <div style="font-size: 20px">{{ text.name }}</div>
  13007. </el-form-item>
  13008. <div>富文本内容</div>
  13009. <div
  13010. v-html="text.url"
  13011. style="font-size: 18px; padding: 40px 0 0 0"
  13012. ></div>
  13013. </el-form>
  13014. <span slot="footer" class="dialog-footer">
  13015. <el-button type="primary" @click="dialogVisible1 = false"
  13016. >确定</el-button
  13017. >
  13018. </span>
  13019. </el-dialog>
  13020. <el-dialog
  13021. title="文件预览"
  13022. :visible.sync="dialogVisible3"
  13023. width="50%"
  13024. :before-close="handleClose"
  13025. class="dialog_diy"
  13026. :class="{ fullStyle: full }"
  13027. >
  13028. <div slot="title" class="header-title">
  13029. <div style="color: #fff">文件预览</div>
  13030. <div style="position: absolute; top: 19px; right: 50px">
  13031. <img
  13032. src="../../assets/full.png"
  13033. style="height: 16px; cursor: pointer"
  13034. alt=""
  13035. @click="fullTools"
  13036. />
  13037. </div>
  13038. </div>
  13039. <pdf
  13040. v-if="showPDF"
  13041. :pdfUrl="pptImgUrl"
  13042. style="width: 100%; height: 520px; overflow: auto"
  13043. :class="{ fullStyle: full }"
  13044. ></pdf>
  13045. <iframe
  13046. v-else
  13047. :src="pptImgUrl"
  13048. frameborder="0"
  13049. width="100%"
  13050. height="600"
  13051. :class="{ fullStyle: full }"
  13052. ></iframe>
  13053. </el-dialog>
  13054. <el-dialog
  13055. title="文件预览"
  13056. :visible.sync="dialogVisible6"
  13057. width="50%"
  13058. :before-close="handleClose"
  13059. class="dialog_diy"
  13060. >
  13061. <iframe
  13062. :src="pptImgUrl1"
  13063. frameborder="0"
  13064. width="100%"
  13065. height="600"
  13066. ></iframe>
  13067. </el-dialog>
  13068. <el-dialog
  13069. title="提示"
  13070. :visible.sync="dialogVisible4"
  13071. :append-to-body="true"
  13072. width="800px"
  13073. :before-close="handleClose"
  13074. class="dialog_diy notice"
  13075. >
  13076. <div>此功能暂未开放!</div>
  13077. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13078. </el-dialog>
  13079. <el-dialog
  13080. title="问答"
  13081. :visible.sync="answerDialogVisible"
  13082. :append-to-body="true"
  13083. width="800px"
  13084. :before-close="handleClose"
  13085. class="dialog_diy"
  13086. >
  13087. <div>
  13088. <div
  13089. style="
  13090. display: flex;
  13091. flex-wrap: nowrap;
  13092. flex-direction: column;
  13093. position: relative;
  13094. "
  13095. >
  13096. <div class="queTop" style="padding: 20px 0 20px 0">
  13097. <div class="question">
  13098. <img src="../../assets/icon/question.png" alt />
  13099. </div>
  13100. <div class="queTitle">
  13101. <div style="width: 90px; min-width: 90px">提问:</div>
  13102. <div>{{ answerQ }}</div>
  13103. </div>
  13104. </div>
  13105. <div class="ediBottom">
  13106. <textarea
  13107. rows="6"
  13108. class="binfo_input"
  13109. cols
  13110. style="width: 95%; height: 120px"
  13111. v-model="questionAnswer"
  13112. ></textarea>
  13113. </div>
  13114. </div>
  13115. </div>
  13116. <div slot="footer">
  13117. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13118. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13119. </div>
  13120. </el-dialog>
  13121. <el-dialog
  13122. title="问答"
  13123. :visible.sync="answerDialogVisibleTeacher"
  13124. :append-to-body="true"
  13125. width="800px"
  13126. :before-close="handleClose"
  13127. class="dialog_diy"
  13128. >
  13129. <div>
  13130. <div class="w_name">
  13131. 学生姓名:<span>{{ sStudent.student }}</span>
  13132. </div>
  13133. <div
  13134. style="
  13135. display: flex;
  13136. flex-wrap: nowrap;
  13137. flex-direction: column;
  13138. position: relative;
  13139. "
  13140. >
  13141. <div class="queTop" style="padding: 20px 0 20px 0">
  13142. <div class="question">
  13143. <img src="../../assets/icon/question.png" alt />
  13144. </div>
  13145. <div class="queTitle">
  13146. <div style="width: 90px; min-width: 90px">提问:</div>
  13147. <div>{{ answerQ }}</div>
  13148. </div>
  13149. </div>
  13150. <div class="ediBottom">
  13151. <textarea
  13152. rows="6"
  13153. class="binfo_input"
  13154. cols
  13155. style="width: 95%; height: 120px"
  13156. v-model="questionAnswer"
  13157. ></textarea>
  13158. </div>
  13159. </div>
  13160. </div>
  13161. <div slot="footer">
  13162. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13163. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13164. </div>
  13165. </el-dialog>
  13166. <el-dialog
  13167. title="倒计时"
  13168. :visible.sync="timeDialogVisible"
  13169. :append-to-body="true"
  13170. width="800px"
  13171. :before-close="handleClose"
  13172. class="dialog_diy"
  13173. >
  13174. <div>
  13175. <div style="margin-bottom: 20px; color: #999">
  13176. 提示:点击“+”或“-”修改倒计时时长。
  13177. </div>
  13178. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13179. </div>
  13180. <div slot="footer">
  13181. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13182. </div>
  13183. </el-dialog>
  13184. <el-dialog
  13185. title="权限设置"
  13186. :visible.sync="juriVisible"
  13187. :append-to-body="true"
  13188. width="400px"
  13189. :before-close="handleClose"
  13190. class="dialog_diy"
  13191. >
  13192. <div>
  13193. <div class="open_box">
  13194. <div class="switch_box">
  13195. <span>允许学生查看所有作业</span>
  13196. <el-switch
  13197. v-model="sIsOpen"
  13198. active-text=""
  13199. class="switchCss"
  13200. @change="updateSLook"
  13201. ></el-switch>
  13202. </div>
  13203. <div
  13204. class="switch_box"
  13205. v-if="
  13206. (courseDetail.userid == userid ||
  13207. (courseDetail.course_teacher &&
  13208. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13209. "
  13210. >
  13211. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13212. <span>禁止学生查看阶段</span>
  13213. <el-switch
  13214. v-model="IsLookOpen"
  13215. active-text=""
  13216. class="switchCss"
  13217. @change="updateLookOpen"
  13218. ></el-switch>
  13219. </div>
  13220. <div class="switch_box" v-if="courseDetail.userid == userid">
  13221. <span>开启跟随模式</span>
  13222. <el-switch
  13223. v-model="IsFollow"
  13224. active-text=""
  13225. class="switchCss"
  13226. @change="updateFollow"
  13227. ></el-switch>
  13228. </div>
  13229. <div class="switch_box" v-if="courseDetail.userid == userid">
  13230. <span>允许学生查看内容资料</span>
  13231. <el-switch
  13232. v-model="IsStulook"
  13233. active-text=""
  13234. class="switchCss"
  13235. @change="updateIsStulook"
  13236. ></el-switch>
  13237. </div>
  13238. </div>
  13239. </div>
  13240. <div slot="footer">
  13241. <el-button
  13242. style="background: #409efe; color: #fff"
  13243. @click="juriVisible = false"
  13244. >关 闭</el-button
  13245. >
  13246. </div>
  13247. </el-dialog>
  13248. <el-dialog
  13249. title="查看视频"
  13250. :visible.sync="videoVisible"
  13251. :append-to-body="true"
  13252. width="1000px"
  13253. :before-close="handleClose"
  13254. class="dialog_diy1"
  13255. >
  13256. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13257. <video-player
  13258. class="video-player vjs-custom-skin"
  13259. :playsinline="true"
  13260. :options="videoDetail"
  13261. @play="onPlayerPlay($event)"
  13262. style="width: 100%; height: 100%"
  13263. ></video-player>
  13264. </div>
  13265. <div slot="footer">
  13266. <el-button
  13267. style="background: #409efe; color: #fff"
  13268. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13269. >
  13270. 关 闭</el-button
  13271. >
  13272. </div>
  13273. </el-dialog>
  13274. <el-dialog
  13275. title="查看详情"
  13276. :visible.sync="commentDialogVisible"
  13277. :append-to-body="true"
  13278. width="800px"
  13279. :before-close="handleClose"
  13280. class="dialog_diy"
  13281. >
  13282. <div class="commentTop">
  13283. <div class="studentDetail">
  13284. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13285. <div class="nameAndTime">
  13286. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13287. <div>{{ commentDetail.time }}</div>
  13288. </div>
  13289. <div
  13290. class="returnBtn"
  13291. style="margin-left: auto; width: 80px"
  13292. v-if="
  13293. commentDetail.works &&
  13294. commentDetail.type == 0 &&
  13295. (tType == 1 || tType == 4)
  13296. "
  13297. @click="
  13298. showPicturePaint(
  13299. commentDetail.img ? commentDetail.img : commentDetail.works
  13300. )
  13301. "
  13302. >
  13303. 教师批注
  13304. </div>
  13305. </div>
  13306. <div
  13307. class="worksAnswer"
  13308. v-if="commentDetail.works && commentDetail.type == 2"
  13309. >
  13310. {{ JSON.parse(commentDetail.works)[0].answer }}
  13311. </div>
  13312. <div
  13313. class="worksAnswer"
  13314. v-if="commentDetail.works && commentDetail.type == 1"
  13315. >
  13316. <img
  13317. src="../../assets/teacherWork.png"
  13318. v-if="commentDetail.ateacher"
  13319. class="w_teachert"
  13320. />
  13321. <pdf
  13322. v-if="showPDF"
  13323. :pdfUrl="pptImgUrl"
  13324. style="width: 100%; height: 520px; overflow: auto"
  13325. :class="{ fullStyle: full }"
  13326. ></pdf>
  13327. <iframe
  13328. v-else
  13329. :src="pptImgUrl"
  13330. frameborder="0"
  13331. width="100%"
  13332. height="600"
  13333. :class="{ fullStyle: full }"
  13334. ></iframe>
  13335. </div>
  13336. <div
  13337. class="worksAnswer"
  13338. v-if="commentDetail.works && commentDetail.type == 0"
  13339. >
  13340. <img
  13341. src="../../assets/teacherWork.png"
  13342. v-if="commentDetail.ateacher"
  13343. class="w_teachert"
  13344. style="right: 105px"
  13345. />
  13346. <img
  13347. :src="commentDetail.works"
  13348. alt=""
  13349. @click="previewImg(commentDetail.works)"
  13350. />
  13351. </div>
  13352. <div
  13353. class="worksAnswer"
  13354. v-if="commentDetail.works && commentDetail.type == 3"
  13355. >
  13356. <img
  13357. src="../../assets/teacherWork.png"
  13358. v-if="commentDetail.ateacher"
  13359. class="w_teachert"
  13360. />
  13361. <video-player
  13362. class="video-player vjs-custom-skin"
  13363. :playsinline="true"
  13364. :options="videoDetail"
  13365. @play="onPlayerPlay($event)"
  13366. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13367. ></video-player>
  13368. </div>
  13369. <div
  13370. class="worksAnswer"
  13371. v-if="commentDetail.works && commentDetail.type == 10"
  13372. >
  13373. <div class="cont" v-html="commentDetail.works.text"></div>
  13374. </div>
  13375. <div
  13376. class="worksAnswer codeFileBox"
  13377. v-if="commentDetail.works && commentDetail.type == 12"
  13378. @click="downloadFile(commentDetail.works)"
  13379. >
  13380. <img src="../../assets/icon/codeFile.png" />
  13381. <div>点击下载文件</div>
  13382. </div>
  13383. <div
  13384. class="worksAnswer codeFileBox"
  13385. v-if="commentDetail.works && commentDetail.type == 15"
  13386. @click="
  13387. openCocoPi(
  13388. 57,
  13389. commentIndexJson.toolIndex,
  13390. commentDetail.userid,
  13391. commentDetail.sName
  13392. )
  13393. "
  13394. >
  13395. <img src="../../assets/icon/codeFile.png" />
  13396. <div>点击打开CocoPi</div>
  13397. </div>
  13398. <div
  13399. class="worksAnswer"
  13400. v-if="commentDetail.works && commentDetail.type == 13"
  13401. >
  13402. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13403. </div>
  13404. <div
  13405. class="worksAnswer"
  13406. v-if="commentDetail.works && commentDetail.type == 4"
  13407. >
  13408. <div class="evalCss">
  13409. <div class="nav">请选择星星进行评分</div>
  13410. <div class="middleBox" v-if="eScore.eStar">
  13411. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13412. <div class="nameAndrate">
  13413. <div>{{ e.value }}</div>
  13414. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13415. </div>
  13416. <div v-if="e.detail">{{ e.detail }}</div>
  13417. </div>
  13418. <div class="bz">
  13419. <textarea
  13420. disabled
  13421. rows="4"
  13422. class="pj"
  13423. style="
  13424. padding: 10px 5px;
  13425. width: 70%;
  13426. background: #f7f6f9;
  13427. font-size: 14px;
  13428. text-indent: 10px;
  13429. color: #000;
  13430. "
  13431. cols
  13432. v-model="eScore.eBzText"
  13433. placeholder="请输入评价内容..."
  13434. ></textarea>
  13435. </div>
  13436. </div>
  13437. </div>
  13438. </div>
  13439. <div class="comment">
  13440. <div class="commentList">
  13441. <div class="commentImg">
  13442. <img
  13443. @click="
  13444. isLikes(
  13445. commentDetail.wid,
  13446. userid,
  13447. 1,
  13448. null,
  13449. commentDetail.isLikes,
  13450. commentDetail.sName
  13451. )
  13452. "
  13453. :src="commentDetail.isLikes == true ? likes : noLikes"
  13454. alt=""
  13455. />
  13456. </div>
  13457. <div>{{ commentDetail.likesCount }}</div>
  13458. </div>
  13459. <div class="commentList">
  13460. <div class="commentImg">
  13461. <img src="../../assets/icon/comment/comment.png" alt="" />
  13462. </div>
  13463. <div>{{ commentDetail.commentCount }}</div>
  13464. </div>
  13465. </div>
  13466. <div class="drawPBox" v-if="commentDetail.img">
  13467. <span>教师批注</span>
  13468. <img
  13469. :src="commentDetail.img"
  13470. alt=""
  13471. @click="previewImg(commentDetail.img)"
  13472. />
  13473. <span
  13474. class="deleteImg"
  13475. v-if="tType == 1 || tType == 4"
  13476. @click.stop="deletePicturePaint(commentDetail.wid)"
  13477. style="
  13478. font-size: 14px;
  13479. width: auto !important;
  13480. color: #b4b4b4;
  13481. top: unset;
  13482. bottom: 0;
  13483. border: none;
  13484. padding: 0;
  13485. height: auto !important;
  13486. margin: 0;
  13487. "
  13488. >删除</span
  13489. >
  13490. </div>
  13491. </div>
  13492. <div class="commentBox">
  13493. <div class="pl">评论:</div>
  13494. <div style="max-height: 200px; overflow: auto">
  13495. <div
  13496. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13497. style="padding: 10px 0 0 0"
  13498. >
  13499. <div
  13500. class="studentDetail"
  13501. style="padding-top: 10px"
  13502. v-for="(co, coIndex) in commentDetail.commentJson"
  13503. :key="coIndex"
  13504. >
  13505. <div class="tx" style="min-width: 50px">
  13506. <img src="../../assets/avatar.png" alt="" />
  13507. </div>
  13508. <div class="plPerson">
  13509. <div class="plName">
  13510. <div>{{ co.commentPeople }}</div>
  13511. <div style="margin-left: 5px">
  13512. {{ co.commentTime }}
  13513. </div>
  13514. <div
  13515. class="deleteComment"
  13516. v-if="userid == co.userid"
  13517. @click="deleteComment(co.wid)"
  13518. >
  13519. 删除
  13520. </div>
  13521. </div>
  13522. <div class="plContent">{{ co.commentText }}</div>
  13523. </div>
  13524. </div>
  13525. </div>
  13526. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13527. </div>
  13528. </div>
  13529. <div style="margin-top: 10px">
  13530. <div class="displayBox">
  13531. <div
  13532. style="
  13533. color: #556db4;
  13534. font-size: 14px;
  13535. font-weight: bold;
  13536. padding-bottom: 10px;
  13537. "
  13538. >
  13539. 评价
  13540. </div>
  13541. <div class="easy_comment" v-if="false">
  13542. <div
  13543. v-for="(p, pIndex) in PlTextList"
  13544. :key="pIndex"
  13545. @click="fastText(p, 1)"
  13546. >
  13547. {{ p }}
  13548. </div>
  13549. </div>
  13550. </div>
  13551. <div>
  13552. <textarea
  13553. rows="3"
  13554. class="pj"
  13555. style="padding: 10px 5px"
  13556. cols
  13557. v-model="commentText"
  13558. placeholder="请输入评论"
  13559. ></textarea>
  13560. </div>
  13561. </div>
  13562. <div slot="footer">
  13563. <el-button
  13564. @click="
  13565. (commentDialogVisible = false),
  13566. (commentIndexJson = {}),
  13567. videoDetail.sources && videoDetail.sources[0]
  13568. ? (videoDetail.sources[0].src = '')
  13569. : ''
  13570. "
  13571. >取 消</el-button
  13572. >
  13573. <el-button
  13574. type="primary"
  13575. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  13576. >确 定</el-button
  13577. >
  13578. </div>
  13579. </el-dialog>
  13580. <el-dialog
  13581. title="查看文档"
  13582. :visible.sync="fullDialogVisible"
  13583. :append-to-body="true"
  13584. width="100%"
  13585. :before-close="handleClose"
  13586. :show-close="false"
  13587. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13588. >
  13589. <div slot="title" class="header-title">
  13590. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13591. <div v-else style="color: #fff">查看文档</div>
  13592. <div
  13593. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  13594. style="
  13595. cursor: pointer;
  13596. position: absolute;
  13597. top: 20px;
  13598. right: 20px;
  13599. color: #fff;
  13600. "
  13601. >
  13602. 退出全屏
  13603. </div>
  13604. </div>
  13605. <div style="height: 100%;position: relative;">
  13606. <el-button
  13607. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13608. size="medium"
  13609. type="primary"
  13610. @click="
  13611. () => {
  13612. (fullDialogVisible = false),
  13613. changeSplitScreenBehavior({ code: 99 });
  13614. }
  13615. "
  13616. style="
  13617. cursor: pointer;
  13618. position: absolute;
  13619. top: 10px;
  13620. right: 20px;
  13621. color: #fff;
  13622. "
  13623. >
  13624. 退出全屏
  13625. </el-button>
  13626. <div
  13627. class="wheel"
  13628. v-if="fulltype == 1"
  13629. style="
  13630. box-shadow: 0 0 6px 1px #f2f2f2;
  13631. height:100%;
  13632. width: 100%;
  13633. background: #f1f1f1;
  13634. "
  13635. >
  13636. <div class="title" style="width: 100%; box-sizing: border-box">
  13637. 查看文档
  13638. </div>
  13639. <el-form class="textBox" style="height: 90%">
  13640. <el-form-item class="textTitle">
  13641. <div style="font-size: 22px">
  13642. {{ fullUrl.name }}
  13643. </div>
  13644. </el-form-item>
  13645. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13646. <div
  13647. v-html="fullUrl.url"
  13648. class="textContent"
  13649. style="height: auto"
  13650. ></div>
  13651. </el-form>
  13652. </div>
  13653. <div
  13654. class="wheel"
  13655. v-else-if="
  13656. (fulltype == 2 || fulltype == 4) &&
  13657. fullUrl.indexOf(
  13658. 'https://view.officeapps.live.com/op/view.aspx?src='
  13659. ) != -1
  13660. "
  13661. style="width: 100%;height:100%; margin: 0 auto"
  13662. >
  13663. <iframe
  13664. style="width: 100%; height: 100%; border: none"
  13665. :src="fullUrl"
  13666. ></iframe>
  13667. </div>
  13668. <iframe
  13669. style="width: 100%; height: 100%; border: none"
  13670. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13671. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13672. :src="fullUrl"
  13673. ></iframe>
  13674. <iframe
  13675. style="width: 100%; height: 100%; border: none"
  13676. security="restricted"
  13677. v-else-if="(fulltype == 2 || fulltype == 4)"
  13678. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13679. :src="fullUrl"
  13680. ></iframe>
  13681. <pdf
  13682. v-else-if="fulltype == 3"
  13683. :pdfUrl="fullUrl"
  13684. style="width: 100%; height: 100%; overflow: auto"
  13685. ></pdf>
  13686. <iframe
  13687. style="width: 100%; height: 100%; border: none"
  13688. security="restricted"
  13689. v-if="(fulltype == 16)"
  13690. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13691. :src="fullUrl"
  13692. ></iframe>
  13693. </div>
  13694. <!-- <div slot="footer">
  13695. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13696. </div> -->
  13697. </el-dialog>
  13698. <el-dialog
  13699. title="个人评价"
  13700. :visible.sync="studentEvalDialogVisible"
  13701. :append-to-body="true"
  13702. width="800px"
  13703. :before-close="handleClose"
  13704. class="dialog_diy"
  13705. >
  13706. <div class="evalCss">
  13707. <div class="nav">请选择星星进行评分</div>
  13708. <div class="middleBox" v-if="eScore.eStar">
  13709. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13710. <div class="nameAndrate">
  13711. <div>{{ e.value }}</div>
  13712. <el-rate
  13713. v-model="eScore.eStar[eIndex]"
  13714. :disabled="isStar"
  13715. ></el-rate>
  13716. </div>
  13717. <div v-if="e.detail">{{ e.detail }}</div>
  13718. </div>
  13719. <div class="easy_comment" v-if="false">
  13720. <div
  13721. v-for="(p, pIndex) in PlTextList"
  13722. :key="pIndex"
  13723. @click="fastText(p, 2)"
  13724. >
  13725. {{ p }}
  13726. </div>
  13727. </div>
  13728. <div class="bz">
  13729. <textarea
  13730. :disabled="isStar"
  13731. rows="4"
  13732. class="pj"
  13733. style="
  13734. padding: 10px 5px;
  13735. width: 70%;
  13736. background: #f7f6f9;
  13737. font-size: 14px;
  13738. text-indent: 10px;
  13739. "
  13740. cols
  13741. v-model="eScore.eBzText"
  13742. placeholder="请输入评价内容..."
  13743. ></textarea>
  13744. </div>
  13745. </div>
  13746. </div>
  13747. <div slot="footer">
  13748. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13749. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13750. >确 定</el-button
  13751. >
  13752. </div>
  13753. </el-dialog>
  13754. <el-dialog
  13755. title="个人评价"
  13756. :visible.sync="studentEvalDialogVisibleTeacher"
  13757. :append-to-body="true"
  13758. width="800px"
  13759. :before-close="handleClose"
  13760. class="dialog_diy"
  13761. >
  13762. <div class="w_name">
  13763. 学生姓名:<span>{{ sStudent.student }}</span>
  13764. </div>
  13765. <div class="evalCss">
  13766. <div class="nav">请选择星星进行评分</div>
  13767. <div class="middleBox" v-if="eScore.eStar">
  13768. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13769. <div class="nameAndrate">
  13770. <div>{{ e.value }}</div>
  13771. <el-rate
  13772. v-model="eScore.eStar[eIndex]"
  13773. :disabled="isStar"
  13774. ></el-rate>
  13775. </div>
  13776. <div v-if="e.detail">{{ e.detail }}</div>
  13777. </div>
  13778. <div class="easy_comment" v-if="false">
  13779. <div
  13780. v-for="(p, pIndex) in PlTextList"
  13781. :key="pIndex"
  13782. @click="fastText(p, 2)"
  13783. >
  13784. {{ p }}
  13785. </div>
  13786. </div>
  13787. <div class="bz">
  13788. <textarea
  13789. :disabled="isStar"
  13790. rows="4"
  13791. class="pj"
  13792. style="
  13793. padding: 10px 5px;
  13794. width: 70%;
  13795. background: #f7f6f9;
  13796. font-size: 14px;
  13797. text-indent: 10px;
  13798. "
  13799. cols
  13800. v-model="eScore.eBzText"
  13801. placeholder="请输入评价内容..."
  13802. ></textarea>
  13803. </div>
  13804. </div>
  13805. </div>
  13806. <div slot="footer">
  13807. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13808. >取 消</el-button
  13809. >
  13810. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13811. >确 定</el-button
  13812. >
  13813. </div>
  13814. </el-dialog>
  13815. <el-dialog
  13816. title="选择匹配"
  13817. :visible.sync="dialogVisibleSelect"
  13818. :append-to-body="true"
  13819. width="90%"
  13820. :before-close="handleClose"
  13821. class="dialog_diy dialog_diy3"
  13822. >
  13823. <div v-if="selectJson">
  13824. <div class="select_box2">
  13825. <div class="select_box2_title">
  13826. <div>选择匹配</div>
  13827. <div>请选择对应的答案进行答题!</div>
  13828. </div>
  13829. <div class="select_box2_box">
  13830. <div class="select_box2_img">
  13831. <img
  13832. :src="selectJson.url"
  13833. @click="previewImg(selectJson.url)"
  13834. alt=""
  13835. />
  13836. </div>
  13837. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13838. <div style="padding-top: 15px">
  13839. <div class="select_answer_title" v-if="isSelect">
  13840. {{ selectAnswer.stu }}
  13841. </div>
  13842. <div class="select_answer_title" v-else>
  13843. 根据题目选择对应答案
  13844. </div>
  13845. <div
  13846. class="select_box2_answer_box"
  13847. v-for="(item2, checkIndex) in selectJson.select"
  13848. :key="checkIndex"
  13849. >
  13850. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13851. <el-select
  13852. :disabled="isSelect"
  13853. v-model="selectAnswer.answer[checkIndex]"
  13854. placeholder="请选择正确答案"
  13855. >
  13856. <el-option
  13857. v-for="(e, eIndex) in selectJson.select"
  13858. :key="eIndex"
  13859. :label="e"
  13860. :value="eIndex"
  13861. >
  13862. </el-option>
  13863. </el-select>
  13864. </div>
  13865. </div>
  13866. <div
  13867. class="rightAnswerCss"
  13868. v-if="isSelect && (tType == 1 || tType == 4)"
  13869. >
  13870. <div
  13871. v-for="(a, aIndex) in selectJson.answer"
  13872. :key="aIndex"
  13873. class="rightAnswer"
  13874. >
  13875. <div
  13876. v-if="selectAnswer.answer[aIndex] === a"
  13877. style="color: #767de1"
  13878. >
  13879. 回答正确
  13880. </div>
  13881. <div v-else>回答错误</div>
  13882. <div
  13883. style="margin-left: 10px"
  13884. v-if="selectAnswer.answer[aIndex] !== a"
  13885. >
  13886. 正确答案:
  13887. </div>
  13888. <div
  13889. :class="
  13890. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13891. "
  13892. >
  13893. {{ selectJson.select[a] }}
  13894. </div>
  13895. </div>
  13896. </div>
  13897. </div>
  13898. <div class="upAnswerCss">
  13899. <el-button
  13900. type="primary"
  13901. @click="addSelectAnswer"
  13902. v-if="!isSelect"
  13903. >提交答案</el-button
  13904. >
  13905. </div>
  13906. </div>
  13907. </div>
  13908. </div>
  13909. </el-dialog>
  13910. <el-dialog
  13911. title="选择匹配"
  13912. :visible.sync="dialogVisibleSelectTeacher"
  13913. :append-to-body="true"
  13914. width="90%"
  13915. :before-close="handleClose"
  13916. class="dialog_diy dialog_diy3"
  13917. >
  13918. <div v-if="selectJson">
  13919. <div class="w_name">
  13920. 学生姓名:<span>{{ sStudent.student }}</span>
  13921. </div>
  13922. <div class="select_box2">
  13923. <div class="select_box2_title">
  13924. <div>选择匹配</div>
  13925. <div>请选择对应的答案进行答题!</div>
  13926. </div>
  13927. <div class="select_box2_box">
  13928. <div class="select_box2_img">
  13929. <img
  13930. :src="selectJson.url"
  13931. @click="previewImg(selectJson.url)"
  13932. alt=""
  13933. />
  13934. </div>
  13935. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13936. <div style="padding-top: 15px">
  13937. <div class="select_answer_title" v-if="isSelect">
  13938. {{ selectAnswer.stu }}
  13939. </div>
  13940. <div class="select_answer_title" v-else>
  13941. 根据题目选择对应答案
  13942. </div>
  13943. <div
  13944. class="select_box2_answer_box"
  13945. v-for="(item2, checkIndex) in selectJson.select"
  13946. :key="checkIndex"
  13947. >
  13948. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13949. <el-select
  13950. :disabled="isSelect"
  13951. v-model="selectAnswer.answer[checkIndex]"
  13952. placeholder="请选择正确答案"
  13953. >
  13954. <el-option
  13955. v-for="(e, eIndex) in selectJson.select"
  13956. :key="eIndex"
  13957. :label="e"
  13958. :value="eIndex"
  13959. >
  13960. </el-option>
  13961. </el-select>
  13962. </div>
  13963. </div>
  13964. <div
  13965. class="rightAnswerCss"
  13966. v-if="isSelect && (tType == 1 || tType == 4)"
  13967. >
  13968. <div
  13969. v-for="(a, aIndex) in selectJson.answer"
  13970. :key="aIndex"
  13971. class="rightAnswer"
  13972. >
  13973. <div
  13974. v-if="selectAnswer.answer[aIndex] === a"
  13975. style="color: #767de1"
  13976. >
  13977. 回答正确
  13978. </div>
  13979. <div v-else>回答错误</div>
  13980. <div
  13981. style="margin-left: 10px"
  13982. v-if="selectAnswer.answer[aIndex] !== a"
  13983. >
  13984. 正确答案:
  13985. </div>
  13986. <div
  13987. :class="
  13988. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13989. "
  13990. >
  13991. {{ selectJson.select[a] }}
  13992. </div>
  13993. </div>
  13994. </div>
  13995. </div>
  13996. <div class="upAnswerCss">
  13997. <el-button
  13998. type="primary"
  13999. @click="addSelectAnswerTeacher"
  14000. v-if="!isSelect"
  14001. >提交答案</el-button
  14002. >
  14003. </div>
  14004. </div>
  14005. </div>
  14006. </div>
  14007. </el-dialog>
  14008. <el-dialog
  14009. title="教师评分"
  14010. :visible.sync="dialogVisibleScore"
  14011. :append-to-body="true"
  14012. width="800px"
  14013. :before-close="handleClose"
  14014. class="dialog_diy"
  14015. >
  14016. <div>
  14017. <div class="studentDetail">
  14018. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14019. <div class="nameAndTime">
  14020. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14021. <div>{{ commentDetail.time }}</div>
  14022. </div>
  14023. </div>
  14024. <div
  14025. class="worksAnswer"
  14026. v-if="commentDetail.works && commentDetail.type == 2"
  14027. >
  14028. {{ JSON.parse(commentDetail.works)[0].answer }}
  14029. </div>
  14030. <div
  14031. class="worksAnswer"
  14032. v-if="commentDetail.works && commentDetail.type == 1"
  14033. >
  14034. <pdf
  14035. v-if="showPDF"
  14036. :pdfUrl="pptImgUrl"
  14037. style="width: 100%; height: 520px; overflow: auto"
  14038. :class="{ fullStyle: full }"
  14039. ></pdf>
  14040. <iframe
  14041. v-else
  14042. :src="pptImgUrl"
  14043. frameborder="0"
  14044. width="100%"
  14045. height="600"
  14046. :class="{ fullStyle: full }"
  14047. ></iframe>
  14048. </div>
  14049. <div
  14050. class="worksAnswer"
  14051. v-if="commentDetail.works && commentDetail.type == 0"
  14052. >
  14053. <img
  14054. :src="commentDetail.works"
  14055. alt=""
  14056. @click="previewImg(commentDetail.works)"
  14057. />
  14058. </div>
  14059. <div
  14060. class="worksAnswer"
  14061. v-if="commentDetail.works && commentDetail.type == 3"
  14062. >
  14063. <video-player
  14064. class="video-player vjs-custom-skin"
  14065. :playsinline="true"
  14066. :options="videoDetail"
  14067. @play="onPlayerPlay($event)"
  14068. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14069. ></video-player>
  14070. </div>
  14071. <div
  14072. class="worksAnswer codeFileBox"
  14073. v-if="commentDetail.works && commentDetail.type == 12"
  14074. @click="downloadFile(commentDetail.works)"
  14075. >
  14076. <img src="../../assets/icon/codeFile.png" />
  14077. <div>点击下载文件</div>
  14078. </div>
  14079. <div
  14080. class="worksAnswer codeFileBox"
  14081. v-if="commentDetail.works && commentDetail.type == 15"
  14082. @click="
  14083. openCocoPi(
  14084. 57,
  14085. commentIndexJson.toolIndex,
  14086. commentDetail.userid,
  14087. commentDetail.sName
  14088. )
  14089. "
  14090. >
  14091. <img src="../../assets/icon/codeFile.png" />
  14092. <div>点击打开CocoPi</div>
  14093. </div>
  14094. <div
  14095. class="worksAnswer"
  14096. v-if="commentDetail.works && commentDetail.type == 13"
  14097. >
  14098. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14099. </div>
  14100. <div class="scoreBox">
  14101. <span class="t">请输入分数</span>
  14102. <el-input-number
  14103. :disabled="courseDetail.userid != userid"
  14104. v-model="wScore"
  14105. :controls="false"
  14106. :min="0"
  14107. :max="100"
  14108. ></el-input-number>
  14109. </div>
  14110. <div class="scoreDetailBox">
  14111. <span class="t">评分评论</span>
  14112. <el-input
  14113. type="textarea"
  14114. :rows="5"
  14115. :disabled="courseDetail.userid != userid"
  14116. resize="none"
  14117. v-model="scoreDetail"
  14118. placeholder="请输入对学生的评价"
  14119. >
  14120. </el-input>
  14121. </div>
  14122. </div>
  14123. <span slot="footer" class="dialog-footer">
  14124. <el-button
  14125. @click="
  14126. (dialogVisibleScore = false),
  14127. (commentIndexJson = {}),
  14128. videoDetail.sources && videoDetail.sources[0]
  14129. ? (videoDetail.sources[0].src = '')
  14130. : ''
  14131. "
  14132. >取 消</el-button
  14133. >
  14134. <el-button
  14135. type="primary"
  14136. v-if="courseDetail.userid == userid"
  14137. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  14138. >确 定
  14139. </el-button>
  14140. </span>
  14141. </el-dialog>
  14142. <el-dialog
  14143. title="排序"
  14144. :visible.sync="dialogVisibleSentence"
  14145. :append-to-body="true"
  14146. width="1000px"
  14147. :before-close="handleClose"
  14148. class="dialog_diy dialog_diy3"
  14149. >
  14150. <div>
  14151. <div class="sentenBox">
  14152. <div
  14153. v-for="(st, stIndex) in sentenceList"
  14154. :key="stIndex"
  14155. style="padding-bottom: 20px"
  14156. >
  14157. <div
  14158. style="padding: 15px 0 10px 20px"
  14159. class="sentenceTitle"
  14160. :index="stIndex + 1"
  14161. >
  14162. 题目{{ stIndex + 1 }}:请选择正确顺序
  14163. </div>
  14164. <div class="cardList" v-if="st.chooseSenList">
  14165. <div class="cardBox">
  14166. <div
  14167. v-for="(r, rIndex) in st.chooseSenList"
  14168. :key="rIndex"
  14169. @click="returnCard(r, stIndex, rIndex)"
  14170. >
  14171. <el-tooltip
  14172. class="item"
  14173. effect="light"
  14174. :content="r"
  14175. placement="top"
  14176. v-if="r != '' && r != undefined"
  14177. >
  14178. <div
  14179. :class="{
  14180. isCard: r,
  14181. isChooseCard: r == '' || r == undefined,
  14182. }"
  14183. >
  14184. <div>{{ r }}</div>
  14185. </div>
  14186. </el-tooltip>
  14187. <div
  14188. :class="{
  14189. isCard: r,
  14190. isChooseCard: r == '' || r == undefined,
  14191. }"
  14192. v-else
  14193. >
  14194. <div>{{ r }}</div>
  14195. </div>
  14196. </div>
  14197. </div>
  14198. </div>
  14199. <div class="cardList" v-if="st.addChangeSen">
  14200. <div class="cardBox">
  14201. <div
  14202. v-for="(s, sIndex) in st.addChangeSen"
  14203. :key="sIndex"
  14204. @click="setRightAnswer(s, stIndex, sIndex)"
  14205. >
  14206. <el-tooltip
  14207. class="item"
  14208. effect="light"
  14209. :content="s"
  14210. placement="top"
  14211. v-if="s != '' && s != undefined"
  14212. >
  14213. <div
  14214. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14215. >
  14216. <div>{{ s }}</div>
  14217. </div>
  14218. </el-tooltip>
  14219. <div
  14220. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14221. v-else
  14222. >
  14223. <div>{{ s }}</div>
  14224. </div>
  14225. </div>
  14226. </div>
  14227. </div>
  14228. </div>
  14229. </div>
  14230. </div>
  14231. <span slot="footer" class="dialog-footer">
  14232. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14233. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14234. </span>
  14235. </el-dialog>
  14236. <el-dialog
  14237. title="排序"
  14238. :visible.sync="dialogVisibleSentenceTeacher"
  14239. :append-to-body="true"
  14240. width="1000px"
  14241. :before-close="handleClose"
  14242. class="dialog_diy dialog_diy3"
  14243. >
  14244. <div>
  14245. <div class="w_name">
  14246. 学生姓名:<span>{{ sStudent.student }}</span>
  14247. </div>
  14248. <div class="sentenBox">
  14249. <div
  14250. v-for="(st, stIndex) in sentenceList"
  14251. :key="stIndex"
  14252. style="padding-bottom: 20px"
  14253. >
  14254. <div
  14255. style="padding: 15px 0 10px 20px"
  14256. class="sentenceTitle"
  14257. :index="stIndex + 1"
  14258. >
  14259. 题目{{ stIndex + 1 }}:请选择正确顺序
  14260. </div>
  14261. <div class="cardList" v-if="st.chooseSenList">
  14262. <div class="cardBox">
  14263. <div
  14264. v-for="(r, rIndex) in st.chooseSenList"
  14265. :key="rIndex"
  14266. @click="returnCard(r, stIndex, rIndex)"
  14267. >
  14268. <el-tooltip
  14269. class="item"
  14270. effect="light"
  14271. :content="r"
  14272. placement="top"
  14273. v-if="r != '' && r != undefined"
  14274. >
  14275. <div
  14276. :class="{
  14277. isCard: r,
  14278. isChooseCard: r == '' || r == undefined,
  14279. }"
  14280. >
  14281. <div>{{ r }}</div>
  14282. </div>
  14283. </el-tooltip>
  14284. <div
  14285. :class="{
  14286. isCard: r,
  14287. isChooseCard: r == '' || r == undefined,
  14288. }"
  14289. v-else
  14290. >
  14291. <div>{{ r }}</div>
  14292. </div>
  14293. </div>
  14294. </div>
  14295. </div>
  14296. <div class="cardList" v-if="st.addChangeSen">
  14297. <div class="cardBox">
  14298. <div
  14299. v-for="(s, sIndex) in st.addChangeSen"
  14300. :key="sIndex"
  14301. @click="setRightAnswer(s, stIndex, sIndex)"
  14302. >
  14303. <el-tooltip
  14304. class="item"
  14305. effect="light"
  14306. :content="s"
  14307. placement="top"
  14308. v-if="s != '' && s != undefined"
  14309. >
  14310. <div
  14311. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14312. >
  14313. <div>{{ s }}</div>
  14314. </div>
  14315. </el-tooltip>
  14316. <div
  14317. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14318. v-else
  14319. >
  14320. <div>{{ s }}</div>
  14321. </div>
  14322. </div>
  14323. </div>
  14324. </div>
  14325. </div>
  14326. </div>
  14327. </div>
  14328. <span slot="footer" class="dialog-footer">
  14329. <el-button @click="dialogVisibleSentenceTeacher = false"
  14330. >取 消</el-button
  14331. >
  14332. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14333. </span>
  14334. </el-dialog>
  14335. <el-dialog
  14336. title="排序"
  14337. :visible.sync="dialogVisibleSentence1"
  14338. :append-to-body="true"
  14339. width="1000px"
  14340. :before-close="handleClose"
  14341. class="dialog_diy dialog_diy3"
  14342. >
  14343. <div>
  14344. <div class="sentenBox">
  14345. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14346. {{ sentenceList1.stuName }}的作业
  14347. </div>
  14348. <div
  14349. v-for="(st, stIndex) in sentenceList1"
  14350. :key="stIndex"
  14351. style="padding-bottom: 20px"
  14352. >
  14353. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14354. 第{{ stIndex + 1 }}题
  14355. </div>
  14356. <div class="isWrong">
  14357. <div class="cardList1" v-if="st.chooseSenList">
  14358. <div class="cardBox">
  14359. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14360. <el-tooltip
  14361. class="item"
  14362. effect="light"
  14363. :content="s"
  14364. placement="top"
  14365. >
  14366. <div class="isCard">
  14367. <div>{{ s }}</div>
  14368. </div>
  14369. </el-tooltip>
  14370. </div>
  14371. </div>
  14372. <div class="cardAnswerBox">
  14373. 组成句子:{{ st.chooseSenList.join(" ") }}
  14374. </div>
  14375. </div>
  14376. <div v-if="tType == 2" class="isTj">
  14377. <div class="isTjImg">
  14378. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14379. </div>
  14380. <div>已提交</div>
  14381. </div>
  14382. <div
  14383. class="answerRight isTj"
  14384. v-if="
  14385. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14386. (tType == 1 || tType == 4)
  14387. "
  14388. >
  14389. <div class="isTjImg">
  14390. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14391. </div>
  14392. <div>回答正确</div>
  14393. </div>
  14394. <div
  14395. class="answerRight isTj"
  14396. v-if="
  14397. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14398. (tType == 1 || tType == 4)
  14399. "
  14400. >
  14401. <div class="isTjImg">
  14402. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14403. </div>
  14404. <div>回答错误</div>
  14405. </div>
  14406. </div>
  14407. <div
  14408. v-if="
  14409. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14410. (tType == 1 || tType == 4)
  14411. "
  14412. >
  14413. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14414. <div
  14415. class="cardList"
  14416. v-if="st.rightAnswer"
  14417. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14418. >
  14419. <div class="cardBox">
  14420. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14421. <el-tooltip
  14422. class="item"
  14423. effect="light"
  14424. :content="r"
  14425. placement="top"
  14426. >
  14427. <div class="isCard1">
  14428. <div>{{ r }}</div>
  14429. </div>
  14430. </el-tooltip>
  14431. </div>
  14432. </div>
  14433. <div class="cardAnswerBox">
  14434. 组成句子:{{ st.rightAnswer.join(" ") }}
  14435. </div>
  14436. </div>
  14437. </div>
  14438. </div>
  14439. </div>
  14440. </div>
  14441. <span slot="footer" class="dialog-footer">
  14442. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14443. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14444. >确 定</el-button
  14445. >
  14446. </span>
  14447. </el-dialog>
  14448. <el-dialog
  14449. title="教师提交作业"
  14450. :visible.sync="dialogVisibleWorks"
  14451. :append-to-body="true"
  14452. width="500px"
  14453. :before-close="handleClose"
  14454. class="dialog_change"
  14455. >
  14456. <div class="marginT">
  14457. <div class="w_name">
  14458. 学生姓名:<span>{{ sStudent.student }}</span>
  14459. </div>
  14460. <div>上传文件</div>
  14461. <div style="display: flex; gap: 10px">
  14462. <div
  14463. class="chapter_add"
  14464. @click="addImg($event)"
  14465. v-if="studyJuri[0].cover.length == 0"
  14466. >
  14467. <div class="up_photo">
  14468. <img src="../../assets/icon/uploadImg.png" alt />
  14469. </div>
  14470. <!-- <input
  14471. type="file"
  14472. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14473. style="display: none"
  14474. @change="beforeUpload1($event, 1)"
  14475. /> -->
  14476. <input
  14477. type="file"
  14478. accept="*"
  14479. style="display: none"
  14480. @change="beforeUpload1($event, 1)"
  14481. />
  14482. <!-- <input
  14483. type="file"
  14484. accept="image/*"
  14485. capture="camera"
  14486. style="display: none"
  14487. @change="beforeUpload1($event, 1)"
  14488. /> -->
  14489. </div>
  14490. <div
  14491. class="chapter_add"
  14492. @click="addImg($event)"
  14493. v-if="studyJuri[0].cover.length == 0"
  14494. >
  14495. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14496. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14497. </div>
  14498. <input
  14499. type="file"
  14500. accept="image/*"
  14501. capture="camera"
  14502. style="display: none"
  14503. @change="beforeUpload1($event, 1)"
  14504. />
  14505. </div>
  14506. </div>
  14507. <!-- capture="camera" -->
  14508. <div
  14509. class="chapter_add"
  14510. style="
  14511. display: flex;
  14512. width: 100%;
  14513. flex-direction: row;
  14514. flex-wrap: wrap;
  14515. justify-content: flex-start;
  14516. padding: 15px 0;
  14517. "
  14518. v-if="studyJuri[0].cover.length > 0"
  14519. >
  14520. <div class="upCover">
  14521. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14522. <img :src="word" alt v-else-if="fileType == 1" />
  14523. <img :src="video" alt v-else-if="fileType == 2" />
  14524. <img :src="word2" alt v-else-if="fileType == 3" />
  14525. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14526. <div class="deleteWord" @click="clean(1)">
  14527. <img src="../../assets/icon/deleteWorks.png" alt />
  14528. </div>
  14529. </div>
  14530. </div>
  14531. </div>
  14532. <div
  14533. class="upload_send"
  14534. @click="addCourseWorksTeacher(taskCount)"
  14535. v-if="!proVisible"
  14536. >
  14537. 提交
  14538. </div>
  14539. </el-dialog>
  14540. <ImgDraw
  14541. :drawShow="drawShow"
  14542. @closeDraw="closeDraw"
  14543. @addImgDraw="addImgDraw"
  14544. :bg="bg"
  14545. ></ImgDraw>
  14546. <el-dialog
  14547. title="表格"
  14548. :visible.sync="dialogVisibleTable"
  14549. :append-to-body="true"
  14550. width="95%"
  14551. :before-close="handleClose"
  14552. class="dialog_diy"
  14553. >
  14554. <el-form>
  14555. <div
  14556. style="
  14557. display: flex;
  14558. align-items: center;
  14559. justify-content: space-between;
  14560. "
  14561. >
  14562. <span>表格内容</span>
  14563. <el-button type="primary" size="small" @click="returnTableText"
  14564. >还原模板</el-button
  14565. >
  14566. </div>
  14567. <Table
  14568. v-model="tableJson.text"
  14569. @change="change"
  14570. v-if="dialogVisibleTable"
  14571. ></Table>
  14572. </el-form>
  14573. <span slot="footer" class="dialog-footer">
  14574. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14575. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14576. </span>
  14577. </el-dialog>
  14578. <el-dialog
  14579. title="表格"
  14580. :visible.sync="dialogVisibleTableTeacher"
  14581. :append-to-body="true"
  14582. width="95%"
  14583. :before-close="handleClose"
  14584. class="dialog_diy"
  14585. >
  14586. <el-form>
  14587. <div class="w_name">
  14588. 学生姓名:<span>{{ sStudent.student }}</span>
  14589. </div>
  14590. <div>表格内容</div>
  14591. <Table
  14592. v-model="tableJson.text"
  14593. @change="change"
  14594. v-if="dialogVisibleTableTeacher"
  14595. ></Table>
  14596. </el-form>
  14597. <span slot="footer" class="dialog-footer">
  14598. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14599. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14600. </span>
  14601. </el-dialog>
  14602. <el-dialog
  14603. title="文档"
  14604. :visible.sync="dialogVisibleWord"
  14605. :append-to-body="true"
  14606. width="95%"
  14607. :before-close="handleClose"
  14608. class="dialog_diy"
  14609. >
  14610. <el-form>
  14611. <div
  14612. style="
  14613. display: flex;
  14614. align-items: center;
  14615. justify-content: space-between;
  14616. "
  14617. >
  14618. <span>文档内容</span>
  14619. <el-button type="primary" size="small" @click="returnWordText"
  14620. >还原模板</el-button
  14621. >
  14622. </div>
  14623. <editor-bar
  14624. v-model="wordJson.text"
  14625. v-if="dialogVisibleWord"
  14626. ></editor-bar>
  14627. </el-form>
  14628. <span slot="footer" class="dialog-footer">
  14629. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14630. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14631. </span>
  14632. </el-dialog>
  14633. <el-dialog
  14634. title="文档"
  14635. :visible.sync="dialogVisibleWordTeacher"
  14636. :append-to-body="true"
  14637. width="95%"
  14638. :before-close="handleClose"
  14639. class="dialog_diy"
  14640. >
  14641. <el-form>
  14642. <div class="w_name">
  14643. 学生姓名:<span>{{ sStudent.student }}</span>
  14644. </div>
  14645. <div>文档内容</div>
  14646. <editor-bar
  14647. v-model="wordJson.text"
  14648. v-if="dialogVisibleWordTeacher"
  14649. ></editor-bar>
  14650. </el-form>
  14651. <span slot="footer" class="dialog-footer">
  14652. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14653. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14654. </span>
  14655. </el-dialog>
  14656. <el-dialog
  14657. title="表格"
  14658. :visible.sync="dialogVisibleTable2"
  14659. :append-to-body="true"
  14660. width="95%"
  14661. :before-close="handleClose"
  14662. class="dialog_diy"
  14663. >
  14664. <el-form>
  14665. <div class="cont" v-html="tableJson.text"></div>
  14666. </el-form>
  14667. <span slot="footer" class="dialog-footer">
  14668. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14669. </span>
  14670. </el-dialog>
  14671. <el-dialog
  14672. title="文档"
  14673. :visible.sync="dialogVisibleTable3"
  14674. :append-to-body="true"
  14675. width="95%"
  14676. :before-close="handleClose"
  14677. class="dialog_diy"
  14678. >
  14679. <el-form>
  14680. <div class="cont" v-html="tableJson.text"></div>
  14681. </el-form>
  14682. <span slot="footer" class="dialog-footer">
  14683. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14684. </span>
  14685. </el-dialog>
  14686. <el-dialog
  14687. title="分组设置"
  14688. :visible.sync="dialogVisibleGroup"
  14689. :append-to-body="true"
  14690. width="95%"
  14691. :before-close="handleClose"
  14692. class="dialog_diy"
  14693. >
  14694. <div v-if="dialogVisibleGroup">
  14695. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14696. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14697. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14698. </div>
  14699. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14700. @click="lockChair">
  14701. 锁定位置
  14702. </div>
  14703. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14704. 解锁位置
  14705. </div> -->
  14706. <div class="group_switch">
  14707. <span>开放选座</span>
  14708. <el-switch
  14709. v-model="islock"
  14710. active-text=""
  14711. class="switchCss"
  14712. @change="lockChair"
  14713. ></el-switch>
  14714. </div>
  14715. <div
  14716. type="primary"
  14717. @click="updateGroup"
  14718. class="returnBtn"
  14719. style="background-color: #225bc7"
  14720. >
  14721. 分组设置
  14722. </div>
  14723. </div>
  14724. <div>
  14725. <div
  14726. class="g_d_box"
  14727. v-if="groupJson.group && groupStudent[toolindex]"
  14728. >
  14729. <div
  14730. class="g_d_group"
  14731. v-for="(g, gindex) in groupJson.group"
  14732. :key="gindex"
  14733. >
  14734. <div class="g_d_group_chair">
  14735. <div v-if="groupJson.number > 1">
  14736. <span
  14737. :class="{
  14738. isChair:
  14739. groupStudent[toolindex][gindex] &&
  14740. groupStudent[toolindex][gindex][0],
  14741. updateChair:
  14742. courseDetail.userid == userid &&
  14743. groupStudent[toolindex][gindex] &&
  14744. groupStudent[toolindex][gindex][0] &&
  14745. groupJson.islock == 2,
  14746. }"
  14747. ><span
  14748. class="updateChairBtn"
  14749. @click="
  14750. updateGroupChair(
  14751. groupStudent[toolindex][gindex] &&
  14752. groupStudent[toolindex][gindex][0]
  14753. )
  14754. "
  14755. >修改</span
  14756. ></span
  14757. ><span>{{
  14758. groupStudent[toolindex][gindex] &&
  14759. groupStudent[toolindex][gindex][0]
  14760. ? groupStudent[toolindex][gindex] &&
  14761. groupStudent[toolindex][gindex][0].name
  14762. : "空位置"
  14763. }}</span>
  14764. </div>
  14765. <div v-if="groupJson.number > 4">
  14766. <span
  14767. :class="{
  14768. isChair:
  14769. groupStudent[toolindex][gindex] &&
  14770. groupStudent[toolindex][gindex][4],
  14771. updateChair:
  14772. courseDetail.userid == userid &&
  14773. groupStudent[toolindex][gindex] &&
  14774. groupStudent[toolindex][gindex][4] &&
  14775. groupJson.islock == 2,
  14776. }"
  14777. ><span
  14778. class="updateChairBtn"
  14779. @click="
  14780. updateGroupChair(
  14781. groupStudent[toolindex][gindex] &&
  14782. groupStudent[toolindex][gindex][4]
  14783. )
  14784. "
  14785. >修改</span
  14786. ></span
  14787. ><span>{{
  14788. groupStudent[toolindex][gindex] &&
  14789. groupStudent[toolindex][gindex][4]
  14790. ? groupStudent[toolindex][gindex] &&
  14791. groupStudent[toolindex][gindex][4].name
  14792. : "空位置"
  14793. }}</span>
  14794. </div>
  14795. <div v-if="groupJson.number > 8">
  14796. <span
  14797. :class="{
  14798. isChair:
  14799. groupStudent[toolindex][gindex] &&
  14800. groupStudent[toolindex][gindex][8],
  14801. updateChair:
  14802. courseDetail.userid == userid &&
  14803. groupStudent[toolindex][gindex] &&
  14804. groupStudent[toolindex][gindex][8] &&
  14805. groupJson.islock == 2,
  14806. }"
  14807. ><span
  14808. class="updateChairBtn"
  14809. @click="
  14810. updateGroupChair(
  14811. groupStudent[toolindex][gindex] &&
  14812. groupStudent[toolindex][gindex][8]
  14813. )
  14814. "
  14815. >修改</span
  14816. ></span
  14817. ><span>{{
  14818. groupStudent[toolindex][gindex] &&
  14819. groupStudent[toolindex][gindex][8]
  14820. ? groupStudent[toolindex][gindex] &&
  14821. groupStudent[toolindex][gindex][8].name
  14822. : "空位置"
  14823. }}</span>
  14824. </div>
  14825. </div>
  14826. <div class="g_d_group_tableBox">
  14827. <div class="g_d_group_chair2">
  14828. <div v-if="groupJson.number > 2">
  14829. <span
  14830. :class="{
  14831. isChair:
  14832. groupStudent[toolindex][gindex] &&
  14833. groupStudent[toolindex][gindex][2],
  14834. updateChair:
  14835. courseDetail.userid == userid &&
  14836. groupStudent[toolindex][gindex] &&
  14837. groupStudent[toolindex][gindex][2] &&
  14838. groupJson.islock == 2,
  14839. }"
  14840. ><span
  14841. class="updateChairBtn"
  14842. @click="
  14843. updateGroupChair(
  14844. groupStudent[toolindex][gindex] &&
  14845. groupStudent[toolindex][gindex][2]
  14846. )
  14847. "
  14848. >修改</span
  14849. ></span
  14850. ><span>{{
  14851. groupStudent[toolindex][gindex] &&
  14852. groupStudent[toolindex][gindex][2]
  14853. ? groupStudent[toolindex][gindex] &&
  14854. groupStudent[toolindex][gindex][2].name
  14855. : "空位置"
  14856. }}</span>
  14857. </div>
  14858. <div v-if="groupJson.number > 6">
  14859. <span
  14860. :class="{
  14861. isChair:
  14862. groupStudent[toolindex][gindex] &&
  14863. groupStudent[toolindex][gindex][6],
  14864. updateChair:
  14865. courseDetail.userid == userid &&
  14866. groupStudent[toolindex][gindex] &&
  14867. groupStudent[toolindex][gindex][6] &&
  14868. groupJson.islock == 2,
  14869. }"
  14870. ><span
  14871. class="updateChairBtn"
  14872. @click="
  14873. updateGroupChair(
  14874. groupStudent[toolindex][gindex] &&
  14875. groupStudent[toolindex][gindex][6]
  14876. )
  14877. "
  14878. >修改</span
  14879. ></span
  14880. ><span>{{
  14881. groupStudent[toolindex][gindex] &&
  14882. groupStudent[toolindex][gindex][6]
  14883. ? groupStudent[toolindex][gindex] &&
  14884. groupStudent[toolindex][gindex][6].name
  14885. : "空位置"
  14886. }}</span>
  14887. </div>
  14888. </div>
  14889. <div class="g_d_group_table">
  14890. <div>
  14891. {{ g.name }}
  14892. </div>
  14893. <div>
  14894. <div
  14895. v-if="
  14896. courseDetail.userid == userid && groupJson.islock == 2
  14897. "
  14898. @click="deleteGroupChair(gindex)"
  14899. >
  14900. 移除组员
  14901. </div>
  14902. <div
  14903. @click="selectGroup(gindex)"
  14904. v-else-if="
  14905. groupStudentUid[toolindex] &&
  14906. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14907. "
  14908. >
  14909. 加入分组
  14910. </div>
  14911. <div
  14912. @click="
  14913. exitGroup(
  14914. groupStudent[toolindex][gindex] &&
  14915. groupStudent[toolindex][gindex][
  14916. groupStudentUid[toolindex][gindex].indexOf(userid)
  14917. ].id
  14918. )
  14919. "
  14920. v-else-if="
  14921. groupStudentUid[toolindex] &&
  14922. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14923. "
  14924. >
  14925. 退出分组
  14926. </div>
  14927. </div>
  14928. </div>
  14929. <div class="g_d_group_chair2">
  14930. <div v-if="groupJson.number > 3">
  14931. <span
  14932. :class="{
  14933. isChair:
  14934. groupStudent[toolindex][gindex] &&
  14935. groupStudent[toolindex][gindex][3],
  14936. updateChair:
  14937. courseDetail.userid == userid &&
  14938. groupStudent[toolindex][gindex] &&
  14939. groupStudent[toolindex][gindex][3] &&
  14940. groupJson.islock == 2,
  14941. }"
  14942. ><span
  14943. class="updateChairBtn"
  14944. @click="
  14945. updateGroupChair(
  14946. groupStudent[toolindex][gindex] &&
  14947. groupStudent[toolindex][gindex][3]
  14948. )
  14949. "
  14950. >修改</span
  14951. ></span
  14952. ><span>{{
  14953. groupStudent[toolindex][gindex] &&
  14954. groupStudent[toolindex][gindex][3]
  14955. ? groupStudent[toolindex][gindex] &&
  14956. groupStudent[toolindex][gindex][3].name
  14957. : "空位置"
  14958. }}</span>
  14959. </div>
  14960. <div v-if="groupJson.number > 7">
  14961. <span
  14962. :class="{
  14963. isChair:
  14964. groupStudent[toolindex][gindex] &&
  14965. groupStudent[toolindex][gindex][7],
  14966. updateChair:
  14967. courseDetail.userid == userid &&
  14968. groupStudent[toolindex][gindex] &&
  14969. groupStudent[toolindex][gindex][7] &&
  14970. groupJson.islock == 2,
  14971. }"
  14972. ><span
  14973. class="updateChairBtn"
  14974. @click="
  14975. updateGroupChair(
  14976. groupStudent[toolindex][gindex] &&
  14977. groupStudent[toolindex][gindex][7]
  14978. )
  14979. "
  14980. >修改</span
  14981. ></span
  14982. ><span>{{
  14983. groupStudent[toolindex][gindex] &&
  14984. groupStudent[toolindex][gindex][7]
  14985. ? groupStudent[toolindex][gindex] &&
  14986. groupStudent[toolindex][gindex][7].name
  14987. : "空位置"
  14988. }}</span>
  14989. </div>
  14990. </div>
  14991. </div>
  14992. <div class="g_d_group_chair">
  14993. <div v-if="groupJson.number > 1">
  14994. <span
  14995. :class="{
  14996. isChair:
  14997. groupStudent[toolindex][gindex] &&
  14998. groupStudent[toolindex][gindex][1],
  14999. updateChair:
  15000. courseDetail.userid == userid &&
  15001. groupStudent[toolindex][gindex] &&
  15002. groupStudent[toolindex][gindex][1] &&
  15003. groupJson.islock == 2,
  15004. }"
  15005. ><span
  15006. class="updateChairBtn"
  15007. @click="
  15008. updateGroupChair(
  15009. groupStudent[toolindex][gindex] &&
  15010. groupStudent[toolindex][gindex][1]
  15011. )
  15012. "
  15013. >修改</span
  15014. ></span
  15015. ><span>{{
  15016. groupStudent[toolindex][gindex] &&
  15017. groupStudent[toolindex][gindex][1]
  15018. ? groupStudent[toolindex][gindex] &&
  15019. groupStudent[toolindex][gindex][1].name
  15020. : "空位置"
  15021. }}</span>
  15022. </div>
  15023. <div v-if="groupJson.number > 5">
  15024. <span
  15025. :class="{
  15026. isChair:
  15027. groupStudent[toolindex][gindex] &&
  15028. groupStudent[toolindex][gindex][5],
  15029. updateChair:
  15030. courseDetail.userid == userid &&
  15031. groupStudent[toolindex][gindex] &&
  15032. groupStudent[toolindex][gindex][5] &&
  15033. groupJson.islock == 2,
  15034. }"
  15035. ><span
  15036. class="updateChairBtn"
  15037. @click="
  15038. updateGroupChair(
  15039. groupStudent[toolindex][gindex] &&
  15040. groupStudent[toolindex][gindex][5]
  15041. )
  15042. "
  15043. >修改</span
  15044. ></span
  15045. ><span>{{
  15046. groupStudent[toolindex][gindex] &&
  15047. groupStudent[toolindex][gindex][5]
  15048. ? groupStudent[toolindex][gindex] &&
  15049. groupStudent[toolindex][gindex][5].name
  15050. : "空位置"
  15051. }}</span>
  15052. </div>
  15053. <div v-if="groupJson.number > 9">
  15054. <span
  15055. :class="{
  15056. isChair:
  15057. groupStudent[toolindex][gindex] &&
  15058. groupStudent[toolindex][gindex][9],
  15059. updateChair:
  15060. courseDetail.userid == userid &&
  15061. groupStudent[toolindex][gindex] &&
  15062. groupStudent[toolindex][gindex][9] &&
  15063. groupJson.islock == 2,
  15064. }"
  15065. ><span
  15066. class="updateChairBtn"
  15067. @click="
  15068. updateGroupChair(
  15069. groupStudent[toolindex][gindex] &&
  15070. groupStudent[toolindex][gindex][9]
  15071. )
  15072. "
  15073. >修改</span
  15074. ></span
  15075. ><span>{{
  15076. groupStudent[toolindex][gindex] &&
  15077. groupStudent[toolindex][gindex][9]
  15078. ? groupStudent[toolindex][gindex] &&
  15079. groupStudent[toolindex][gindex][9].name
  15080. : "空位置"
  15081. }}</span>
  15082. </div>
  15083. </div>
  15084. </div>
  15085. </div>
  15086. </div>
  15087. </div>
  15088. <span slot="footer" class="dialog-footer">
  15089. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15090. </span>
  15091. </el-dialog>
  15092. <el-dialog
  15093. title="分组设置"
  15094. :visible.sync="dialogVisibleGroup2"
  15095. :append-to-body="true"
  15096. width="650px"
  15097. :before-close="handleClose"
  15098. class="dialog_diy"
  15099. >
  15100. <div class="groupBox">
  15101. <div v-if="groupJson2.group" class="groupContent">
  15102. <div class="groupTitle">请设置小组数量及名称</div>
  15103. <div
  15104. v-for="(item, index) in groupJson2.group"
  15105. :key="index"
  15106. class="groupName"
  15107. >
  15108. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15109. <el-input
  15110. v-model="item.name"
  15111. placeholder="请输入名称..."
  15112. style="width: 250px"
  15113. ></el-input>
  15114. <!-- <div class="groupBtn">
  15115. <el-button type="primary" size="small" @click="addGroup(index)">
  15116. 添加</el-button>
  15117. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15118. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15119. </div> -->
  15120. </div>
  15121. </div>
  15122. <div class="groupContent">
  15123. <div class="groupTitle">请设置每组人数</div>
  15124. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15125. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15126. <el-input
  15127. v-model="groupJson2.number"
  15128. style="width: 150px"
  15129. placeholder="请输入2-10的数字"
  15130. @change="numberPan"
  15131. ></el-input>
  15132. </div>
  15133. </div>
  15134. <span slot="footer" class="dialog-footer">
  15135. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15136. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15137. </span>
  15138. </el-dialog>
  15139. <el-dialog
  15140. title="作业提交"
  15141. :visible.sync="dialogVisibleGroupWork"
  15142. :append-to-body="true"
  15143. width="500px"
  15144. :before-close="handleClose"
  15145. class="dialog_change"
  15146. >
  15147. <div class="marginT">
  15148. <div>上传文件</div>
  15149. <div
  15150. class="chapter_add"
  15151. @click="addImg($event)"
  15152. v-if="studyJuri[0].cover.length == 0"
  15153. >
  15154. <div class="up_photo">
  15155. <img src="../../assets/icon/uploadImg.png" alt />
  15156. </div>
  15157. <!-- <input
  15158. type="file"
  15159. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15160. style="display: none"
  15161. @change="beforeUpload1($event, 1)"
  15162. /> -->
  15163. <input
  15164. type="file"
  15165. accept="*"
  15166. style="display: none"
  15167. @change="beforeUpload1($event, 1)"
  15168. />
  15169. </div>
  15170. <!-- capture="camera" -->
  15171. <div
  15172. class="chapter_add"
  15173. style="
  15174. display: flex;
  15175. width: 100%;
  15176. flex-direction: row;
  15177. flex-wrap: wrap;
  15178. justify-content: flex-start;
  15179. padding: 15px 0;
  15180. "
  15181. v-if="studyJuri[0].cover.length > 0"
  15182. >
  15183. <div class="upCover">
  15184. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15185. <img :src="word" alt v-else-if="fileType == 1" />
  15186. <img :src="video" alt v-else-if="fileType == 2" />
  15187. <img :src="word2" alt v-else-if="fileType == 3" />
  15188. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15189. <div class="deleteWord" @click="clean(1)">
  15190. <img src="../../assets/icon/deleteWorks.png" alt />
  15191. </div>
  15192. </div>
  15193. </div>
  15194. </div>
  15195. <div
  15196. class="upload_send"
  15197. @click="addCourseWorks2(taskCount)"
  15198. v-if="!proVisible"
  15199. >
  15200. 提交
  15201. </div>
  15202. </el-dialog>
  15203. <el-dialog
  15204. title="修改分组"
  15205. :visible.sync="dialogVisibleUpdateGroup"
  15206. :append-to-body="true"
  15207. width="350px"
  15208. :before-close="handleClose"
  15209. class="dialog_diy"
  15210. >
  15211. <div>
  15212. <h2>
  15213. {{ this.updateGroupUser.name }}
  15214. </h2>
  15215. <div style="color: rgb(171 171 171); margin-top: 10px">
  15216. 请选择要进入的分组
  15217. </div>
  15218. <el-radio-group v-model="checkChair">
  15219. <el-radio
  15220. style="display: block; margin-top: 20px"
  15221. v-for="(item, index) in updateGroupArray"
  15222. :label="item.label"
  15223. :key="index"
  15224. >{{ item.name }}</el-radio
  15225. >
  15226. </el-radio-group>
  15227. </div>
  15228. <span slot="footer" class="dialog-footer">
  15229. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15230. <el-button type="primary" @click="updateChair">确定</el-button>
  15231. </span>
  15232. </el-dialog>
  15233. <el-dialog
  15234. title="移除组员"
  15235. :visible.sync="dialogVisibleDeleteGroup"
  15236. :append-to-body="true"
  15237. width="350px"
  15238. :before-close="handleClose"
  15239. class="dialog_diy"
  15240. >
  15241. <div>
  15242. <h2>
  15243. {{ this.deleteGroupArray.name }}
  15244. </h2>
  15245. <div style="color: rgb(171 171 171); margin-top: 10px">
  15246. 请选择要删除的组员
  15247. </div>
  15248. <el-checkbox-group v-model="checkDeleteGroup">
  15249. <el-checkbox
  15250. style="display: flex; margin-top: 20px"
  15251. v-for="(item, index) in deleteGroupUser"
  15252. :label="item.userid"
  15253. :key="index"
  15254. >{{ item.name }}</el-checkbox
  15255. >
  15256. </el-checkbox-group>
  15257. </div>
  15258. <span slot="footer" class="dialog-footer">
  15259. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15260. <el-button type="primary" @click="deleteChair">确定</el-button>
  15261. </span>
  15262. </el-dialog>
  15263. <el-dialog
  15264. title="批量上传"
  15265. :visible.sync="dialogVisiblePl"
  15266. :append-to-body="true"
  15267. width="700px"
  15268. :before-close="handleClose"
  15269. class="dialog_change"
  15270. >
  15271. <div class="marginT">
  15272. <div class="plworkBox">
  15273. <div
  15274. class="chapter_add"
  15275. style="
  15276. display: flex;
  15277. width: 150px;
  15278. flex-direction: row;
  15279. flex-wrap: wrap;
  15280. justify-content: flex-start;
  15281. margin: 0 10px 10px 0;
  15282. "
  15283. v-for="(item, index) in plworkFile"
  15284. :key="index"
  15285. >
  15286. <div class="upCover2">
  15287. <img
  15288. :src="item.url"
  15289. alt
  15290. v-if="item.fileType == 1"
  15291. @click="previewImg(item.url)"
  15292. />
  15293. <img :src="word" alt v-else-if="item.fileType == 4" />
  15294. <img :src="video" alt v-else />
  15295. <!-- <span class="picName">{{ item.name }}</span> -->
  15296. <!-- <el-input
  15297. v-model="item.username"
  15298. placeholder="请输入学生名字"
  15299. style="margin-top: 10px"
  15300. ></el-input> -->
  15301. <div
  15302. class="pl_select_box"
  15303. @click="
  15304. getUpdateMore(true, checkUpload(), item.username, index)
  15305. "
  15306. >
  15307. {{ getSName(item.username) }}
  15308. </div>
  15309. <!-- <el-select
  15310. style="margin-top: 10px"
  15311. v-model="item.username"
  15312. filterable
  15313. allow-create
  15314. placeholder="请选择学生"
  15315. >
  15316. <el-option
  15317. v-for="item1 in checkUpload()"
  15318. :key="item1.userid"
  15319. :label="item1.name ? item1.name : item1.username"
  15320. :value="item1.userid"
  15321. >
  15322. </el-option>
  15323. </el-select> -->
  15324. <div class="deleteWord" @click="clean2(index)">
  15325. <img src="../../assets/icon/deleteWorks.png" alt />
  15326. </div>
  15327. </div>
  15328. </div>
  15329. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15330. <div class="up_photo2">
  15331. <img src="../../assets/icon/plwork.png" alt />
  15332. <span>点击上传文件</span>
  15333. </div>
  15334. <input
  15335. type="file"
  15336. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15337. multiple="multiple"
  15338. style="display: none"
  15339. @change="beforeUpload3($event, 6)"
  15340. />
  15341. </div>
  15342. </div>
  15343. </div>
  15344. <!-- capture="camera" -->
  15345. <div
  15346. class="upload_send"
  15347. @click="addCourseWorksPl(taskCount)"
  15348. v-if="!proVisible2"
  15349. >
  15350. 提交
  15351. </div>
  15352. </el-dialog>
  15353. <el-dialog
  15354. title="修改名称"
  15355. :visible.sync="dialogVisibleSname"
  15356. width="500px"
  15357. :before-close="handleClose"
  15358. class="dialog_diy"
  15359. center
  15360. >
  15361. <div
  15362. style="
  15363. text-align: center;
  15364. display: flex;
  15365. align-items: center;
  15366. justify-content: center;
  15367. "
  15368. >
  15369. <span class="tian1">名称</span>
  15370. <div
  15371. class="pl_select_box"
  15372. style="margin-left: 10px; width: 200px"
  15373. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15374. >
  15375. {{ getSName(worksSName) }}
  15376. </div>
  15377. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15378. placeholder="请选择学生">
  15379. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15380. :value="item.userid">
  15381. </el-option>
  15382. </el-select> -->
  15383. <!-- <el-input
  15384. v-model="worksSName"
  15385. style="width: 250px; margin: 15px 0px"
  15386. ></el-input> -->
  15387. </div>
  15388. <span slot="footer" class="dialog-footer">
  15389. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15390. <el-button type="primary" @click="updateName">确 定</el-button>
  15391. </span>
  15392. </el-dialog>
  15393. <el-dialog
  15394. title="英语写作"
  15395. :visible.sync="engDialogVisible"
  15396. :append-to-body="true"
  15397. width="800px"
  15398. :before-close="handleClose"
  15399. class="dialog_diy"
  15400. >
  15401. <onlineWrite
  15402. v-if="engDialogVisible"
  15403. :englishList="englishList"
  15404. :myAnswerList1="myAnswerList1"
  15405. ref="engJson"
  15406. ></onlineWrite>
  15407. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15408. <el-button @click="engDialogVisible = false">取 消</el-button>
  15409. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15410. </span>
  15411. </el-dialog>
  15412. <el-dialog
  15413. title="英语写作"
  15414. :visible.sync="engUpdateDialogVisible"
  15415. :append-to-body="true"
  15416. width="800px"
  15417. :before-close="handleClose"
  15418. class="dialog_diy fullStyle"
  15419. >
  15420. <div class="engUpBox">
  15421. <div class="engUpTop">
  15422. <div class="engTitle">
  15423. <div>作文题目:</div>
  15424. <div>{{ englishList1.engTitle }}</div>
  15425. </div>
  15426. <div class="engText">
  15427. <div>作文内容:</div>
  15428. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  15429. </div>
  15430. </div>
  15431. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  15432. <div class="oldBox">
  15433. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15434. <div class="oldText">
  15435. <div class="detailBox">
  15436. <div class="oldDetail">
  15437. <div>标题:</div>
  15438. <div>{{ oldEnglishJson.engTitle }} </div>
  15439. </div>
  15440. <div class="oldDetail1">
  15441. <div>正文:</div>
  15442. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  15443. </div>
  15444. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  15445. <div>图片:</div>
  15446. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  15447. </div>
  15448. </div>
  15449. </div>
  15450. </div>
  15451. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15452. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15453. <div class="oldText">
  15454. <div class="detailBox" style="position: relative;">
  15455. <div class="oldDetail">
  15456. <div>标题:</div>
  15457. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15458. <div v-else v-html="newEnglishList.engTitle"></div>
  15459. </div>
  15460. <div class="oldDetail">
  15461. <div>正文:</div>
  15462. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15463. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15464. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15465. </div>
  15466. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15467. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15468. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15469. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15470. </div>
  15471. </div>
  15472. </div>
  15473. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15474. <div class="oldMes" style="background: rgb(224 236 255);display: flex;flex-direction: row;flex-wrap: nowrap;align-items: center;overflow-x: auto;overflow-y: hidden;" v-if="newEnglishList1.length > 0">
  15475. <div v-if="isNoUserid" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: newEngIndex == -1 ? '#aacaff' : ''}" @click="setEngText(-1)" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15476. <div v-for="(item,index) in newEnglishList1" :key="index" class="allName" :style="{minWidth: `calc(100% / ${engListLength})`,background: index == newEngIndex ? '#aacaff' : ''}" @click="setEngText(index)">{{ item.username }}</div>
  15477. </div>
  15478. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  15479. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  15480. <div class="detailBox" style="position: relative;">
  15481. <div class="oldDetail">
  15482. <div>标题:</div>
  15483. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  15484. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15485. </div>
  15486. <div class="oldDetail">
  15487. <div>正文:</div>
  15488. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  15489. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  15490. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  15491. </div>
  15492. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15493. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15494. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15495. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15496. </div>
  15497. </div>
  15498. <div class="oldText" v-else-if="newEngIndex == -1">
  15499. <div class="detailBox" style="position: relative;">
  15500. <div class="oldDetail">
  15501. <div>标题:</div>
  15502. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15503. <div v-else v-html="newEnglishList.engTitle"></div>
  15504. </div>
  15505. <div class="oldDetail">
  15506. <div>正文:</div>
  15507. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15508. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15509. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15510. </div>
  15511. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15512. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15513. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15514. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15515. </div>
  15516. </div>
  15517. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  15518. <div class="detailBox" style="position: relative;">
  15519. <div class="oldDetail">
  15520. <div>标题:</div>
  15521. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15522. <div v-else>
  15523. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  15524. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15525. </div>
  15526. </div>
  15527. <div class="oldDetail">
  15528. <div>正文:</div>
  15529. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  15530. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15531. <div v-else>
  15532. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  15533. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15534. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  15535. </div>
  15536. </div>
  15537. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15538. <el-button @click="isUpdateCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15539. <el-button @click="aiCorrect(newEnglishList1[newEngIndex].cWork.engText,4)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType && userMes[0].userid == newEnglishList1[newEngIndex].correct">AI批注</el-button>
  15540. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15541. </div>
  15542. </div>
  15543. </div>
  15544. </div>
  15545. </div>
  15546. <span slot="footer" class="dialog-footer">
  15547. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15548. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15549. </span>
  15550. </el-dialog>
  15551. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  15552. <interVideo
  15553. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15554. :videoJson="videoJson"
  15555. :userid="userid"
  15556. :id="id"
  15557. :courseType="courseType"
  15558. :taskCount="taskCount"
  15559. :toolindex="toolindex"
  15560. :videoType="videoType"
  15561. ></interVideo>
  15562. <UpdateMore
  15563. :dialogVisibleMember.sync="dialogVisibleMember"
  15564. :cList="uploadStudentJuri"
  15565. :userid="userid"
  15566. :searchTN="worksSName2"
  15567. @setPlname="setPlname"
  15568. ></UpdateMore>
  15569. <!-- <wordCloud
  15570. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15571. :data="wordCloudData"
  15572. ></wordCloud> -->
  15573. <el-dialog
  15574. title="词云"
  15575. :visible.sync="dialogVisibleWordCloud"
  15576. width="30%"
  15577. class="dialog_diy"
  15578. :before-close="handleClose">
  15579. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15580. </el-dialog>
  15581. <el-dialog
  15582. title="挑人"
  15583. :visible.sync="dialogVisiblePickPeople"
  15584. width="650px"
  15585. :before-close="handleClose"
  15586. class="dialog_diy"
  15587. center
  15588. >
  15589. <div class="pick_box">
  15590. <div
  15591. class="noWorksName"
  15592. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15593. v-for="(item, index) in uploadStudentJuri"
  15594. :key="index"
  15595. @click="pickStudent(item)"
  15596. >
  15597. {{ item.name }}
  15598. </div>
  15599. </div>
  15600. </el-dialog>
  15601. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  15602. :englishVoiceJson='englishVoiceJson'
  15603. :userid="userid"
  15604. :id="id"
  15605. :courseType="courseType"
  15606. :taskCount="taskCount"
  15607. :toolindex="toolindex"
  15608. @selectSWorks="selectSWorks"
  15609. @selectStudent="selectStudent"
  15610. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15611. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15612. :userid="userid"
  15613. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15614. :commentDetail="commentDetail"
  15615. :courseDetail="courseDetail"
  15616. :wScore="wScore"
  15617. :scoreDetail="scoreDetail"
  15618. @selectSWorks="selectSWorks"
  15619. @selectStudent="selectStudent"></checkEnglishVoice>
  15620. <el-dialog
  15621. title="教师评分"
  15622. :visible.sync="markScoreVisible"
  15623. :append-to-body="true"
  15624. width="1000px"
  15625. :fullscreen="markfullscreen"
  15626. :before-close="markScorehandleClose"
  15627. class="markScore_diy"
  15628. >
  15629. <div slot="title">
  15630. <div class="markScore_diyTit">
  15631. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15632. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15633. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15634. </div>
  15635. </div>
  15636. </div>
  15637. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15638. <!-- @updateDocSco="updateDocSco" -->
  15639. <markDialog
  15640. :key="markScoreVisible.toString()"
  15641. :uid="markScoreUid"
  15642. :toolIndex="markScoretoolIndex"
  15643. :stage="courseType"
  15644. :task="taskCount"
  15645. :taskDetail="
  15646. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15647. "
  15648. :tool="toolListS"
  15649. :languageSetting="languageSetting"
  15650. :scoTit="markScoreTit"
  15651. :tType="tType"
  15652. :sIsOpen="sIsOpen"
  15653. :markScoreworksStudent="markScoreworksStudent"
  15654. :markScoreVisible="markScoreVisible"
  15655. ></markDialog>
  15656. </el-dialog>
  15657. <!-- 查看Txt,md等文件 -->
  15658. <el-dialog
  15659. title="文件预览"
  15660. :visible.sync="dialogVisibleTxt"
  15661. width="50%"
  15662. :before-close="handleCloseTxt"
  15663. class="dialog_diy"
  15664. :class="{ fullStyle: full }"
  15665. >
  15666. <div slot="title" class="header-title">
  15667. <div style="color: #fff">文件预览</div>
  15668. <div style="position: absolute; top: 19px; right: 50px">
  15669. <img
  15670. src="../../assets/full.png"
  15671. style="height: 16px; cursor: pointer"
  15672. alt=""
  15673. @click="fullTools"
  15674. />
  15675. </div>
  15676. </div>
  15677. <div>{{ TxtMd }}</div>
  15678. </el-dialog>
  15679. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15680. <choseWorksDetailDialog
  15681. ref="choseWorksDetailDialogRef"
  15682. :worksStudentData="worksStudent"
  15683. :noWorksSData="noWorksS"
  15684. :chapInfoListData="chapInfoList"
  15685. :courseType="courseType"
  15686. :taskCount="taskCount"
  15687. :tType="tType"
  15688. :sIsOpen="sIsOpen"
  15689. :courseDetail="courseDetail"
  15690. :groupStudent2="groupStudent"
  15691. :groupStudentUid2="groupStudentUid"
  15692. :oid="oid"
  15693. :org="org"
  15694. @getCourseDetail="getCourseDetail"
  15695. @selectSLook="selectSLook"
  15696. @selectSWorks="selectSWorks"
  15697. @selectStudent="selectStudent"
  15698. @openWord="openWord"
  15699. @openScore="openScore"
  15700. @deleteWorks="deleteWorks"
  15701. @openTools="openTools"
  15702. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15703. />
  15704. <el-dialog
  15705. :visible.sync="confirmOpenDig"
  15706. width="500px"
  15707. :modal="false"
  15708. class="confirmOpenDigCss dialog_diyCopy"
  15709. :before-close="handleClose">
  15710. <div style="display: flex;align-items: center;">
  15711. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15712. <span>“{{ courseDetail.title }}”开课啦</span>
  15713. </div>
  15714. <div style="margin: 20px 0 35px;">
  15715. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15716. <div>要认真听讲哦~</div>
  15717. </div>
  15718. <div style="text-align: center;">
  15719. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15720. </div>
  15721. </el-dialog>
  15722. <appStoreC ref="appStoreC"
  15723. :sStudent="sStudent"
  15724. :courseType="courseType"
  15725. :taskCount="taskCount"
  15726. :toolindex="toolindex"
  15727. @selectSWorks="selectSWorks"
  15728. @selectStudent="selectStudent"
  15729. ></appStoreC>
  15730. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15731. </div>
  15732. </template>
  15733. <script>
  15734. import "../../common/aws-sdk-2.235.1.min.js";
  15735. // import pdf from "../components/pdf3";
  15736. import pdf from "../components/vpdf";
  15737. import AskStatic from "../components/askStatic";
  15738. import AskStatic2 from "../components/askStatic2";
  15739. import AnswerData2 from "../components/answerData2";
  15740. import AnswerData from "../components/answerData";
  15741. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15742. import EditorBar from "../tools/wangEnduit.vue";
  15743. import Table from "../tools/table.vue";
  15744. import Time from "../tools/time.vue";
  15745. import Mind from "../tools/jsmind.vue";
  15746. import Sunburst from "../tools/sunburst";
  15747. import SeeBoard from "../tools/seeBoard";
  15748. import * as imageConversion from "image-conversion";
  15749. import Audio from "../components/audio.vue";
  15750. import ImgDraw from "../tools/imgDraw/imgDraw";
  15751. import { Empty } from "element-ui";
  15752. import RecordRTC from "recordrtc";
  15753. import interVideo from "../interVideo/index.vue";
  15754. import UpdateMore from "../updateMore/updateMore.vue";
  15755. import wordCloud from "../wordCloud/index.vue";
  15756. import axios from "axios";
  15757. import JSZip from "jszip";
  15758. import FileSaver from "file-saver";
  15759. import onlineWrite from "./commpont/onlineWrite";
  15760. import englishEva from "../components/englishEva";
  15761. import * as Diff from 'diff'
  15762. import EnglishVoice from '../EnglishVoice2/index.vue'
  15763. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15764. import correctText from '../components/correctText.vue'
  15765. import scoreItem from '../scoreList/scoreItem.vue'
  15766. import scoreZong from '../scoreZong/index.vue'
  15767. import classRoomHelper from '../classRoomHelper/index.vue'
  15768. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15769. import MarkdownIt from "markdown-it";
  15770. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15771. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15772. import { v4 as uuidv4 } from "uuid";
  15773. import markScore from "../easy2/commpont/markScore";
  15774. import markDialog from "../easy2/commpont/markDialog";
  15775. import evaTable from "../easy2/commpont/evaTable";
  15776. import choseWordCloud from '../components/choseWordCloud.vue'
  15777. import appStoreC from "../components/appStoreC.vue";
  15778. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15779. import { myMixin } from "@/mixins/mixin.js"
  15780. import { tools as toolsList } from "@/common/tools2.js";
  15781. import katex from 'katex'
  15782. import 'katex/dist/katex.min.css'
  15783. var OpenCC = require("opencc-js");
  15784. let converter = OpenCC.Converter({
  15785. from: "hk",
  15786. to: "cn"
  15787. });
  15788. const getFile = (url) => {
  15789. return new Promise((resolve, reject) => {
  15790. var credentials = {
  15791. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15792. secretAccessKey: "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",
  15793. }; //秘钥形式的登录上传
  15794. window.AWS.config.update(credentials);
  15795. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15796. let url2 = url;
  15797. let _url2 = "";
  15798. if (
  15799. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15800. ) {
  15801. _url2 = url2.split(
  15802. "https://view.officeapps.live.com/op/view.aspx?src="
  15803. )[1];
  15804. } else {
  15805. _url2 = url2;
  15806. }
  15807. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15808. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15809. var params = {
  15810. Bucket: "ccrb",
  15811. Key: name
  15812. };
  15813. s3.getObject(params, function (err, data) {
  15814. if (err) {
  15815. console.log(err, err.stack)
  15816. resolve({ data: 1 });
  15817. }else {
  15818. resolve({ data: data.Body });
  15819. console.log(data);
  15820. } // sxuccessful response
  15821. });
  15822. // axios({
  15823. // method: "get",
  15824. // url,
  15825. // responseType: "blob",
  15826. // })
  15827. // .then((data) => {
  15828. // resolve({ data: data.data });
  15829. // })
  15830. // .catch((error) => {
  15831. // resolve({ data: 1 });
  15832. // // reject(error.toString());
  15833. // });
  15834. });
  15835. };
  15836. export default {
  15837. mixins: [ myMixin ],
  15838. components: {
  15839. choseWordCloud,
  15840. EditorBar,
  15841. Time,
  15842. pdf,
  15843. AskStatic,
  15844. AskStatic2,
  15845. Mind,
  15846. Sunburst,
  15847. SeeBoard,
  15848. AnswerData2,
  15849. AnswerData,
  15850. sortToolWorkShow,
  15851. Audio,
  15852. ImgDraw,
  15853. Table,
  15854. interVideo,
  15855. UpdateMore,
  15856. wordCloud,
  15857. onlineWrite,
  15858. englishEva,
  15859. EnglishVoice,
  15860. checkEnglishVoice,
  15861. correctText,
  15862. scoreItem,
  15863. classRoomHelper,
  15864. scoreZong,
  15865. markScore,
  15866. markDialog,
  15867. evaTable,
  15868. statisticalAnalysis,
  15869. choseWorksDetailDialog,
  15870. appStoreC,
  15871. cocoFlowDia,
  15872. studentClassRoomHelper
  15873. },
  15874. data() {
  15875. return {
  15876. // 是否允许学生查看内容资料 2不可以 1可以
  15877. IsStulook:false,
  15878. homeWorkLoading:false,
  15879. toolsList: toolsList,
  15880. wordCloudKey: 0,
  15881. bg: null,
  15882. drawShow: false,
  15883. dialogVisible: false,
  15884. dialogVisiblePl: false,
  15885. commentDialogVisible: false,
  15886. dialogVisibleMember: false,
  15887. dialogVisibleWordCloud: false,
  15888. videoVisible: false,
  15889. isStar: false,
  15890. studentEvalDialogVisible: false,
  15891. studentEvalDialogVisibleTeacher: false,
  15892. dialogVisibleSelect: false,
  15893. dialogVisibleSelectTeacher: false,
  15894. dialogVisibleScore: false,
  15895. dialogVisibleENScore: false,
  15896. dialogVisibleSentence: false,
  15897. dialogVisibleSentenceTeacher: false,
  15898. dialogVisibleSentence1: false,
  15899. dialogVisibleWorks: false,
  15900. dialogVisibleTable: false,
  15901. dialogVisibleTableTeacher: false,
  15902. dialogVisibleWord: false,
  15903. dialogVisibleWordTeacher: false,
  15904. dialogVisibleTable2: false,
  15905. dialogVisibleTable3: false,
  15906. dialogVisibleGroupWork: false,
  15907. dialogVisibleUpdateGroup: false,
  15908. dialogVisibleDeleteGroup: false,
  15909. dialogVisibleSname: false,
  15910. dialogVisibleVideo: false,
  15911. dialogVisiblePickPeople: false,
  15912. worksSName: "",
  15913. classJuri: [],
  15914. uploadStudentJuri: [],
  15915. uploadCid: "",
  15916. snameWid: "",
  15917. sStudent: {},
  15918. sTool: "",
  15919. bzText: "",
  15920. commentDetail: [],
  15921. selectAnswer: [],
  15922. videoDetail: {},
  15923. selectJson: {},
  15924. eScore: { eBzText: "", eStar: [] },
  15925. id: this.$route.query.courseId,
  15926. userid: this.$route.query.userid,
  15927. classId: this.$route.query.cid,
  15928. // courseTypeLine: this.$route.query.type,
  15929. oid: this.$route.query.oid,
  15930. org: this.$route.query.org,
  15931. tType: this.$route.query.tType,
  15932. courseType: this.$route.query.type,
  15933. screenType: this.$route.query.screenType,
  15934. tcid2: this.$route.query.tcid,
  15935. tcid: "",
  15936. pptImgUrl: "",
  15937. pptImgUrl1: "",
  15938. commentText: "",
  15939. full: false,
  15940. sIsOpen: false,
  15941. IsLookOpen: false,
  15942. IsFollow: false,
  15943. pzDialog: false,
  15944. contentDialog: false,
  15945. mlDialog: false,
  15946. type: 1,
  15947. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15948. sentenceList1: [],
  15949. tableJson: [],
  15950. tableJsonO: [],
  15951. wordJson: [],
  15952. wordJsonO: [],
  15953. vedio: [],
  15954. text: [],
  15955. textList: [],
  15956. line: [],
  15957. lineList: [],
  15958. chapTools: [],
  15959. chapToolList: [],
  15960. file: [],
  15961. fileC: [],
  15962. vedioTime: [],
  15963. upToolImg: "",
  15964. preTime: 0,
  15965. rateList: {
  15966. ca: 0,
  15967. },
  15968. rateParams: [],
  15969. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15970. studyJuri: [
  15971. {
  15972. content: "",
  15973. cover: [],
  15974. upVedio: [],
  15975. upFile: [],
  15976. },
  15977. ],
  15978. isClose: 0,
  15979. plworkFile: [],
  15980. mr: require("../../assets/vedioPic.png"),
  15981. word: require("../../assets/icon/isWord.png"),
  15982. word2: require("../../assets/icon/word2.png"),
  15983. video: require("../../assets/icon/isVideo.png"),
  15984. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15985. likes: require("../../assets/icon/comment/likes.png"),
  15986. scoreImg: require("../../assets/score.png"),
  15987. courseDetail: {},
  15988. reply: "",
  15989. isSelect: false,
  15990. chapInfo: [],
  15991. chapInfoList: [],
  15992. taskCount: 0,
  15993. imgList: [],
  15994. noImgList: [],
  15995. pzList: [],
  15996. timeWorkList: [],
  15997. PlTextList: [
  15998. "Excellent!",
  15999. "nice!",
  16000. "很有创意!",
  16001. "还不错哦~",
  16002. "继续努力哦~",
  16003. ],
  16004. isClickNav: "",
  16005. navId: "",
  16006. playerOptions: {
  16007. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16008. autoplay: false, //如果true,浏览器准备好时开始回放。
  16009. muted: false, // 默认情况下将会消除任何音频。
  16010. loop: false, // 导致视频一结束就重新开始。
  16011. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16012. language: "zh-CN",
  16013. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16014. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16015. sources: [
  16016. {
  16017. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16018. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16019. },
  16020. ],
  16021. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16022. // poster: dataRes.imgUrl, //你的封面地址
  16023. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16024. controlBar: {
  16025. timeDivider: true, //当前时间和持续时间的分隔符
  16026. durationDisplay: true, //显示持续时间
  16027. remainingTimeDisplay: false, //是否显示剩余时间功能
  16028. fullscreenToggle: true, //全屏按钮
  16029. },
  16030. },
  16031. playerOptions1: {
  16032. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16033. autoplay: false, //如果true,浏览器准备好时开始回放。
  16034. muted: false, // 默认情况下将会消除任何音频。
  16035. loop: false, // 导致视频一结束就重新开始。
  16036. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16037. language: "zh-CN",
  16038. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16039. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16040. sources: [
  16041. {
  16042. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16043. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16044. },
  16045. ],
  16046. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16047. // poster: dataRes.imgUrl, //你的封面地址
  16048. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16049. controlBar: {
  16050. timeDivider: true, //当前时间和持续时间的分隔符
  16051. durationDisplay: true, //显示持续时间
  16052. remainingTimeDisplay: false, //是否显示剩余时间功能
  16053. fullscreenToggle: true, //全屏按钮
  16054. },
  16055. },
  16056. playerO: {},
  16057. noneBtnImg: false,
  16058. proVisible: false,
  16059. proVisible2: false,
  16060. progress: 0,
  16061. isFinishSize: 0,
  16062. isAllSize: 0,
  16063. questionAnswer: "",
  16064. answerQ: "", //问答标题
  16065. rateJson: [],
  16066. wbCount: 0,
  16067. wordCount: 0,
  16068. mindCount: 0,
  16069. askCount: 0,
  16070. noteCount: 0,
  16071. mindNetWorkCount: 0,
  16072. libraryCount: 0,
  16073. workCount: 0,
  16074. timeCount: 0,
  16075. answerCount: 0,
  16076. trainCount: 0,
  16077. evalCount: 0,
  16078. dialogImageUrl: "",
  16079. pictureDialog: false,
  16080. toolTypeList: [],
  16081. dialogVisible1: false,
  16082. dialogVisible2: false,
  16083. dialogVisible3: false,
  16084. dialogVisible6: false,
  16085. dialogVisible4: false,
  16086. isNoHomeWork: false,
  16087. dialogVisible5: false,
  16088. dialogVisible5Teacher: false,
  16089. dialogVisibleChoice: false,
  16090. dialogVisibleChoiceTeacher: false,
  16091. answerDialogVisible: false,
  16092. answerDialogVisibleTeacher: false,
  16093. juriVisible: false,
  16094. timeDialogVisible: false,
  16095. replyDialogVisible: false,
  16096. toolDialogVisible: false,
  16097. engDialogVisible: false,
  16098. engUpdateDialogVisible:false,
  16099. engEvaDialogVisible: false,
  16100. evaEngJson: {
  16101. teacherJson: {},
  16102. studentJson: {},
  16103. message: {},
  16104. },
  16105. isNoUserid:false,
  16106. engListLength:0,
  16107. engWid:"",
  16108. newEnglishList:{
  16109. engTitle:"",
  16110. engText:"",
  16111. },
  16112. newEnglishList1:[],
  16113. oldEnglishJson:{},
  16114. oldEnglishJson1:{},
  16115. englishList1:{},
  16116. englishList:{},
  16117. myAnswerList1:{},
  16118. topHeight:0,
  16119. newEngIndex:-1,
  16120. englishToolIndex:0,
  16121. userMes:{},
  16122. englishToolIndex:0,
  16123. replyIndex: 0,
  16124. replyPid: "",
  16125. radio: [],
  16126. isAsk: false,
  16127. askJson: {
  16128. askCount: 1,
  16129. askTitle: "",
  16130. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16131. },
  16132. testJson: {},
  16133. englishList: {},
  16134. topHeight:0,
  16135. checkJson: [],
  16136. askList: [],
  16137. answerList: [],
  16138. navList: [],
  16139. addPzDialog: false,
  16140. pzConText: "",
  16141. worksStudent: [],
  16142. isCloseList: [],
  16143. workStudent: [],
  16144. groupStudent: [],
  16145. groupStudentUid: [],
  16146. noWorksS: [],
  16147. isWorksS: [],
  16148. noWorksStudent: [],
  16149. toolindex: 0,
  16150. toolDetailIndex: null,
  16151. groupIndex: 0,
  16152. workTypeB: false,
  16153. workTypeC: false,
  16154. isAnswer: false,
  16155. isHovered: false,
  16156. isHovered1: false,
  16157. isHovered2: false,
  16158. commentTagShow:0,
  16159. timer: null,
  16160. timer2: null,
  16161. opertimer: null,
  16162. showType: '',
  16163. fileType: 0,
  16164. showPDF: false,
  16165. noteName: "",
  16166. evaJuri: [],
  16167. evalua: "",
  16168. eTitle: "",
  16169. eName: "",
  16170. eJson: {},
  16171. fid: "", //一级
  16172. sid: "", //二级
  16173. tid: "", //二级
  16174. typeMode: 1,
  16175. eJSONNum: 0,
  16176. Etype: 1,
  16177. data: {
  16178. meta: {
  16179. name: "example",
  16180. author: "dd@163.com",
  16181. version: "0.2",
  16182. },
  16183. format: "node_array",
  16184. data: [{ id: "root", isroot: true, topic: "" }],
  16185. },
  16186. fullDialogVisible: false,
  16187. fulltype: "",
  16188. fullUrl: "",
  16189. commentIndexJson: {},
  16190. Stbodywidth: 0,
  16191. ispzType: 0,
  16192. pzType: 1,
  16193. wScore: 0,
  16194. scoreDetail: "",
  16195. videoStart: false,
  16196. recorder: null,
  16197. groupJson: {},
  16198. islock: false,
  16199. groupJson2: {},
  16200. dialogVisibleGroup: false,
  16201. dialogVisibleGroup2: false,
  16202. updateGroupArray: [],
  16203. updateGroupUser: {},
  16204. deleteGroupUser: [],
  16205. deleteGroupArray: {},
  16206. checkChair: "",
  16207. checkDeleteGroup: [],
  16208. inviteCode: "",
  16209. courseGroupStudent: [],
  16210. courseGroupStudentUid: [],
  16211. courseGroup: {},
  16212. isGroup: false,
  16213. toolIndex: null,
  16214. tool: {},
  16215. isWorkTool: [
  16216. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  16217. ], //, 40
  16218. videoJson: {},
  16219. videoType:0,
  16220. toolType: 0,
  16221. checktoolArray: [],
  16222. vChapterData: [],
  16223. isUpdateToolDetail: false,
  16224. isUpdateToolDetail1: false,
  16225. updateToolDetailInner: "",
  16226. checkboxList: [],
  16227. plIndex: "",
  16228. worksSName2: "",
  16229. worksSid: "",
  16230. wordCloudData: [],
  16231. isPickStudent: [],
  16232. pzStype: 1,
  16233. myAnList: {},
  16234. downLoading: false,
  16235. greyType: false,
  16236. correctWord: [],
  16237. EnglishVoiceDialog: false,
  16238. englishVoiceJson: {},
  16239. englishVoiceJsonWork:[],
  16240. scoreList:{
  16241. listdata:[],
  16242. isScoreList:[],
  16243. },
  16244. classRoomHelperWidth: '85px',
  16245. orgArray:[],
  16246. oidArray:[],
  16247. splitScreenData:{
  16248. isOpen:false,
  16249. userId:"",
  16250. uid:"",
  16251. myUid:"",
  16252. loading:false,
  16253. behavior:null,
  16254. },
  16255. confirmOpenDig:false,
  16256. confirmOpenDigData:'',
  16257. refreshKey: 0,
  16258. AIloading: [],
  16259. worksStudentCopy: [],
  16260. loopLoading: [],
  16261. markScoreVisible: false,
  16262. markScoretoolIndex: 0,
  16263. markScoreUid: "",
  16264. markScoreTit: {},
  16265. markfullscreen: false,
  16266. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16267. markScoreworksStudent: [],
  16268. finalMarkList: -1,
  16269. isaiNum: 0,
  16270. dialogVisibleTxt: false,
  16271. TxtMd: "",
  16272. languageSetting: 0, //0中文 1繁体 2英文
  16273. toolListS: [],
  16274. commentDetailCopy: "",
  16275. diffKey:"1"
  16276. };
  16277. },
  16278. watch:{
  16279. taskCount(newVal) {
  16280. console.log('newVal',newVal);
  16281. this.AIloading = [];
  16282. this.loopLoading = [];
  16283. this.worksStudent.forEach((e, index) => {
  16284. this.loopLoading.push({ loading: false });
  16285. this.AIloading.push([]);
  16286. e.forEach(k => {
  16287. this.AIloading[index].push({ loading: false, sco: 0 });
  16288. });
  16289. });
  16290. if(this.tType == 1){
  16291. this.refreshAssembly();
  16292. }
  16293. },
  16294. worksStudent: {
  16295. handler(newVal, oldVal) {
  16296. const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16297. const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16298. // console.log('worksStudent',sum1,sum2);
  16299. if(sum1 != sum2){
  16300. this.AIloading = [];
  16301. this.loopLoading = [];
  16302. this.worksStudent.forEach((e, index) => {
  16303. this.loopLoading.push({ loading: false });
  16304. this.AIloading.push([]);
  16305. e.forEach(k => {
  16306. this.AIloading[index].push({ loading: false, sco: 0 });
  16307. });
  16308. });
  16309. if(this.tType == 1){
  16310. this.refreshAssembly();
  16311. }
  16312. }
  16313. },
  16314. deep:true,
  16315. }
  16316. },
  16317. methods: {
  16318. //查看应用中心作业
  16319. openCocoFlow(w){
  16320. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16321. },
  16322. getAIJ() {
  16323. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16324. let oid = res.data[0];
  16325. let org = res.data[1];
  16326. let oidArray = [];
  16327. let orgArray = [];
  16328. oid.forEach(i => oidArray.push(i.oid));
  16329. org.forEach(i => orgArray.push(i.oid));
  16330. this.orgArray = orgArray;
  16331. this.oidArray = oidArray;
  16332. });
  16333. },
  16334. // 评分弹框全屏
  16335. markFullScreenBtn() {
  16336. this.markfullscreen = !this.markfullscreen;
  16337. },
  16338. insertMemorandum(_html) {
  16339. //保存行为操作
  16340. //variable
  16341. //btn
  16342. let params = [
  16343. {
  16344. uid: this.userid,
  16345. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16346. content: _html
  16347. }
  16348. ];
  16349. console.log(params);
  16350. this.ajax
  16351. .post(
  16352. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16353. params
  16354. )
  16355. .then(res => {
  16356. if (res.data == 1) {
  16357. console.log("保存操作成功");
  16358. } else {
  16359. console.log("保存操作失败");
  16360. }
  16361. })
  16362. .catch(e => {
  16363. console.log("保存操作失败");
  16364. console.log(e);
  16365. });
  16366. },
  16367. // 获取文档id
  16368. createFileid(url) {
  16369. let _this = this;
  16370. return new Promise((resolve, reject) => {
  16371. try {
  16372. _this.ajax
  16373. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16374. url: url
  16375. })
  16376. .then(res => {
  16377. let _data = res.data.FunctionResponse;
  16378. if (_data.result && _data.result.id) {
  16379. resolve(_data.result.id);
  16380. } else {
  16381. resolve(1);
  16382. }
  16383. })
  16384. .catch(function(error) {
  16385. resolve(1);
  16386. });
  16387. } catch (e) {
  16388. resolve(1);
  16389. }
  16390. });
  16391. },
  16392. // 一键重置
  16393. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16394. let jude = false;
  16395. this.AIloading.forEach((e, index) => {
  16396. if (index == toolIndex) {
  16397. e.forEach(k => {
  16398. if (k.loading == true) jude = true;
  16399. });
  16400. }
  16401. });
  16402. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16403. this.$confirm("确认一键重置?")
  16404. .then(_ => {
  16405. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16406. })
  16407. .catch(_ => {});
  16408. },
  16409. // 一键重置
  16410. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16411. for (let index = 0; index < con.length; index++) {
  16412. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16413. }
  16414. this.$message.success("重置完成");
  16415. this.worksStudent.forEach((e, index) => {
  16416. if (toolIndex == index) {
  16417. console.log("6666");
  16418. e.forEach((i, inx) => {
  16419. let mk = `markSco${index}${inx}`;
  16420. this.$refs[mk][0].getData();
  16421. });
  16422. }
  16423. });
  16424. },
  16425. // 一键重置
  16426. allEmptySco(uid, stage, task, toolIndex) {
  16427. let params = [
  16428. {
  16429. cid: this.id,
  16430. uid: uid,
  16431. s: stage,
  16432. t: task,
  16433. tool: toolIndex ? toolIndex : ""
  16434. }
  16435. ];
  16436. return new Promise(resolve => {
  16437. this.ajax
  16438. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16439. .then(res => {
  16440. resolve(1);
  16441. })
  16442. .catch(err => {
  16443. console.error(err);
  16444. });
  16445. }).catch(error => {
  16446. console.log(error);
  16447. });
  16448. },
  16449. // AI评分循环打分
  16450. async loopEva(
  16451. con,
  16452. tit,
  16453. stage,
  16454. task,
  16455. toolIndex,
  16456. toolDetail,
  16457. taskDetail,
  16458. toolList
  16459. ) {
  16460. let jude = false;
  16461. this.AIloading.forEach((e, index) => {
  16462. if (index == toolIndex) {
  16463. e.forEach(k => {
  16464. if (k.loading == true) jude = true;
  16465. });
  16466. }
  16467. });
  16468. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16469. this.AIloading.forEach((e, index) => {
  16470. if (index == toolIndex) {
  16471. e.forEach(k => {
  16472. k.loading = true;
  16473. });
  16474. }
  16475. });
  16476. this.loopLoading[toolIndex].loading = true;
  16477. let laws = "";
  16478. let std = "";
  16479. let text = "";
  16480. if (toolList && toolList.eList && toolList.eList.length) {
  16481. for (let i = 0; i < toolList.eList.length; i++) {
  16482. if (toolList.eList[i].isai == 1) {
  16483. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16484. }
  16485. }
  16486. for (let i = 0; i < toolList.eList.length; i++) {
  16487. if (toolList.eList[i].isai == 1) {
  16488. let a = toolList.eList[i].detail;
  16489. if (isNaN(parseFloat(a)) && a) {
  16490. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16491. } else {
  16492. var result = a;
  16493. }
  16494. std += `纬度${i}:“${result}”, \n`;
  16495. }
  16496. }
  16497. for (let i = 0; i < toolList.eList.length; i++) {
  16498. if (toolList.eList[i].isai == 1) {
  16499. let a = toolList.eList[i].detail;
  16500. if (isNaN(parseFloat(a)) && a) {
  16501. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16502. } else {
  16503. var result = a;
  16504. }
  16505. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16506. }
  16507. }
  16508. } else {
  16509. let titRule = 0;
  16510. let titRule2 = 0;
  16511. tit.forEach((e, index) => {
  16512. if (!e.isai) {
  16513. e.isai = 1;
  16514. }
  16515. });
  16516. tit.forEach((e, index) => {
  16517. if (e.isai == 1) {
  16518. titRule2++;
  16519. if (e.rule) {
  16520. titRule++;
  16521. }
  16522. }
  16523. });
  16524. if (titRule != titRule2) {
  16525. this.AIloading.forEach((e, index) => {
  16526. if (index == toolIndex) {
  16527. e.forEach(k => {
  16528. k.loading = false;
  16529. });
  16530. }
  16531. });
  16532. this.loopLoading[toolIndex].loading = false;
  16533. this.$message.info("细则努力生成中,请稍候……");
  16534. return;
  16535. }
  16536. for (let i = 0; i < tit.length; i++) {
  16537. if (tit[i].isai == 1) {
  16538. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16539. }
  16540. }
  16541. for (let i = 0; i < tit.length; i++) {
  16542. if (tit[i].isai == 1) {
  16543. let a = tit[i].detail;
  16544. if (isNaN(parseFloat(a)) && a) {
  16545. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16546. } else {
  16547. var result = a;
  16548. }
  16549. std += `纬度${i}:“${result}”, \n`;
  16550. }
  16551. }
  16552. for (let i = 0; i < tit.length; i++) {
  16553. if (tit[i].isai == 1) {
  16554. let a = tit[i].detail;
  16555. if (isNaN(parseFloat(a)) && a) {
  16556. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16557. } else {
  16558. var result = a;
  16559. }
  16560. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16561. }
  16562. }
  16563. }
  16564. let forAllList = [];
  16565. // console.log('con',con)
  16566. for (let i = 0; i < con.length; i++) {
  16567. let _fileid = "";
  16568. let wok = con[i].works;
  16569. // console.log('con',con);
  16570. // console.log('con[i].type',con[i].type);
  16571. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16572. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16573. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16574. _fileid = await this.createFileid(con[i].works);
  16575. } else {
  16576. this.AIloading[toolIndex][i].loading = false;
  16577. continue;
  16578. }
  16579. }
  16580. // console.log('con[i].type',con[i])
  16581. // console.log('con[i].type',con[i].type)
  16582. if (_fileid == 1 || con[i].type == 3) {
  16583. this.AIloading[toolIndex][i].loading = false;
  16584. continue;
  16585. }
  16586. let msg = ''
  16587. if(con[i].type == 20){
  16588. msg = `#NOTICE#
  16589. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16590. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16591. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16592. - 拥有客观公正的态度,确保评分结果公平合理。
  16593. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16594. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16595. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16596. Language: ${this.getLang()}
  16597. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16598. Instruction: Based on the context, follow "Format example", write content.
  16599. #目标#
  16600. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16601. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16602. #评分资料#
  16603. 评价标准:${std}
  16604. 评价细则:${laws}
  16605. 等级:${text}
  16606. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16607. 具体你步骤如下:
  16608. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16609. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16610. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16611. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16612. ### 理论框架
  16613. ### 教育目标分类理论
  16614. 1. 基本原理:
  16615. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16616. - 有助于明确教学活动期望达成的目标类型。
  16617. - 为评价教学成果提供了分类框架。
  16618. 2. 具体应用:
  16619. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16620. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16621. - 对比不同对话内容在目标达成度上的差异进行评分。
  16622. ### 教学评价理论
  16623. 1. 基本原理:
  16624. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16625. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16626. - 强调评价的客观性、全面性和发展性。
  16627. 2. 具体应用:
  16628. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16629. - 考量对话对学生学习效果的影响来给出评分。
  16630. - 根据评价结果提出改进和发展的建议。
  16631. ### 对话分析理论
  16632. 1. 基本原理:
  16633. - 着重对对话结构、话语功能、交互模式等进行分析。
  16634. - 揭示对话中的信息流动、话语权分配等情况。
  16635. - 有助于理解对话参与者之间的关系和互动效果。
  16636. 2. 具体应用:
  16637. - 剖析“小可ai助手”与学生对话的结构合理性。
  16638. - 分析话语功能是否有助于学习和评价目的。
  16639. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16640. #输出格式#
  16641. [${text}{'comment':'评语(150个汉字左右)'}]
  16642. 注意检查输出评语不超过50字`
  16643. }else{
  16644. msg = `NOTICE
  16645. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16646. Language: ${this.getLang()}
  16647. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16648. Instruction: Based on the context, follow "Format example", write content.
  16649. #目标#
  16650. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16651. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16652. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16653. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16654. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16655. #评分资料#
  16656. 评价标准:${std}
  16657. 评价细则:${laws}
  16658. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16659. 任务描述:${taskDetail}
  16660. 工具描述:${toolDetail}
  16661. #输出要求#
  16662. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16663. “评语”控制在150字左右。
  16664. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16665. #输出格式#
  16666. [${text}{'comment':'评语(150个汉字左右)'}]
  16667. `;
  16668. }
  16669. let mk = `markSco${toolIndex}${i}`;
  16670. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16671. msg,
  16672. con[i].userid,
  16673. stage,
  16674. task,
  16675. _fileid,
  16676. con[i].type
  16677. );
  16678. forAllList.push(mkAwit);
  16679. }
  16680. Promise.all(forAllList)
  16681. .then(values => {
  16682. console.log("values", values);
  16683. this.$message({
  16684. message: "评价成功",
  16685. type: "success"
  16686. });
  16687. // this.refreshKey++
  16688. // this.worksStudent.forEach((e,index)=>{
  16689. // if(toolIndex == index){
  16690. // e.forEach((i,inx)=>{
  16691. // let mk = `markSco${index}${inx}`
  16692. // this.$refs[mk][0].getData()
  16693. // })
  16694. // }
  16695. // })
  16696. this.AIloading[toolIndex].forEach(e => {
  16697. e.loading = false;
  16698. });
  16699. this.loopLoading[toolIndex].loading = false;
  16700. })
  16701. .catch(reason => {
  16702. console.error("reasonreasonreasonreasonreason", reason);
  16703. // 输出“失败原因”
  16704. });
  16705. },
  16706. // 获取评价细则
  16707. againEva(i, k) {
  16708. let msg = `NOTICE
  16709. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16710. Language: ${this.getLang()}
  16711. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16712. Instruction: Based on the context, follow "Format example", write content.
  16713. #Context
  16714. ##要求
  16715. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16716. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16717. ##制定标准资料
  16718. 评价维度:${
  16719. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16720. }
  16721. 维度描述:${
  16722. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16723. }
  16724. # Format example
  16725. ==
  16726. 0 星,作业内容与作业要求无关;
  16727. 1 星,没有识别问题和需求;
  16728. 2 星,问题或需求没有被清晰理解或准确识别;
  16729. 3 星,问题或需求的一部分被识别;
  16730. 4 星,问题或需求的大部分被识别;
  16731. 5 星,问题或需求都被识别。
  16732. ==
  16733. `;
  16734. let params = {
  16735. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16736. message: [
  16737. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16738. ],
  16739. session_name: uuidv4(),
  16740. userId: this.userid,
  16741. file_ids: [],
  16742. model: "gpt-4o-2024-11-20"
  16743. };
  16744. // console.log('params',params);
  16745. this.ajax
  16746. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16747. .then(response => {
  16748. let data = response.data.FunctionResponse;
  16749. // console.log("data", data);
  16750. if (data.message) {
  16751. let content = data.message;
  16752. var regex = new RegExp("==([^=]+)==");
  16753. let match = content.match(regex);
  16754. if (match) {
  16755. content = match[1].trim().replaceAll(" ", "");
  16756. // 获取匹配到的内容并去除两端空格
  16757. // console.log('contentInsideDoubleEquals', content);
  16758. if (
  16759. content.indexOf("0星") == -1 ||
  16760. content.indexOf("2星") == -1 ||
  16761. content.indexOf("3星") == -1 ||
  16762. content.indexOf("4星") == -1 ||
  16763. content.indexOf("5星") == -1
  16764. ) {
  16765. console.log("未有星级。");
  16766. this.againEva(i, k);
  16767. return;
  16768. }
  16769. // return
  16770. } else {
  16771. console.log("未找到匹配的内容。");
  16772. this.againEva(i, k);
  16773. return;
  16774. }
  16775. let elist = JSON.parse(
  16776. JSON.stringify(
  16777. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16778. )
  16779. );
  16780. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16781. elist.rule = JSON.parse(
  16782. JSON.stringify(content.replaceAll("#", ""))
  16783. );
  16784. this.$set(
  16785. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16786. k,
  16787. elist
  16788. );
  16789. this.$forceUpdate();
  16790. let params2 = [
  16791. {
  16792. cid: this.id,
  16793. chapters: JSON.stringify(this.chapInfoList),
  16794. uid: this.userid,
  16795. unitIndex: this.courseType
  16796. }
  16797. ];
  16798. this.ajax
  16799. .post(this.$store.state.api + "updateWorkNew4", params2)
  16800. .then(res => {
  16801. this.getCourseDetail(2);
  16802. this.$forceUpdate();
  16803. })
  16804. .catch(err => {
  16805. this.$message.error("网络不佳");
  16806. console.error(err);
  16807. });
  16808. // 进行进一步处理或解析outputContent
  16809. // } else {
  16810. // console.log("No match found for # Output section.");
  16811. // }
  16812. }
  16813. })
  16814. .catch(error => {
  16815. console.log(error);
  16816. });
  16817. },
  16818. // 关闭评分弹框
  16819. markScorehandleClose(done) {
  16820. // this.refreshKey++
  16821. this.worksStudent.forEach((e, index) => {
  16822. if (this.markScoretoolIndex == index) {
  16823. e.forEach((i, inx) => {
  16824. let mk = `markSco${index}${inx}`;
  16825. if (this.$refs[mk] && this.$refs[mk][0]) {
  16826. this.$refs[mk][0].getData();
  16827. }
  16828. });
  16829. }
  16830. });
  16831. done();
  16832. },
  16833. // 关闭txtMd预览弹框
  16834. handleCloseTxt(done) {
  16835. this.TxtMd = "";
  16836. done();
  16837. },
  16838. // Txt,Md作业查看
  16839. lookTxt(val) {
  16840. this.dialogVisibleTxt = true;
  16841. this.TxtMd = "";
  16842. getFile(val).then(res => {
  16843. this.TxtMd = res.data;
  16844. });
  16845. },
  16846. // 组件刷新
  16847. refreshAssembly() {
  16848. this.refreshKey++;
  16849. },
  16850. updateLoading(payload) {
  16851. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16852. },
  16853. handleShow(toolIndex, val) {
  16854. let mk = `markSco${toolIndex}${val}`;
  16855. // console.log(mk);
  16856. this.$refs[mk][0].getData();
  16857. },
  16858. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16859. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16860. // console.log('this.AIloading',this.AIloading)
  16861. let jude = false;
  16862. this.AIloading.forEach((e, index) => {
  16863. if (index == tidx) {
  16864. e.forEach(k => {
  16865. if (k.loading == true) jude = true;
  16866. });
  16867. }
  16868. });
  16869. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16870. if (val) return;
  16871. // console.log(uname,worksStudent,uid,tidx,titlist)
  16872. this.markScoreTit = titlist;
  16873. this.markScoreUid = uid;
  16874. this.toolListS = toolList;
  16875. this.markScoretoolIndex = tidx;
  16876. this.markScoreworksStudent = worksStudent;
  16877. this.markfullscreen = false;
  16878. this.markScoreVisible = true;
  16879. if (this.tType == 1) {
  16880. this.insertMemorandum(
  16881. `查看<span class="variable">${uname}</span>的作业`
  16882. );
  16883. }
  16884. },
  16885. // 点击markScore显示评分框
  16886. markScoreDig(data) {
  16887. // console.log('data',data)
  16888. let jude = false;
  16889. this.AIloading.forEach((e, index) => {
  16890. if (index == data.val2) {
  16891. e.forEach(k => {
  16892. if (k.loading == true) jude = true;
  16893. });
  16894. }
  16895. });
  16896. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16897. this.markScoreTit = data.tit;
  16898. this.markScoreUid = data.val;
  16899. this.markScoretoolIndex = data.val2;
  16900. this.markfullscreen = false;
  16901. this.markScoreVisible = true;
  16902. this.insertMemorandum(
  16903. `查看<span class="variable">${data.uname}</span>的作业`
  16904. );
  16905. },
  16906. // 刷新其他组件分数
  16907. refreshOther(v) {
  16908. // console.log('v',v)
  16909. this.AIloading[v.tid].forEach((e, i) => {
  16910. if (i == v.wid) {
  16911. e.loading = false;
  16912. }
  16913. });
  16914. // this.worksStudent.forEach((e,index)=>{
  16915. // if(toolIndex != index){
  16916. // e.forEach((i,inx)=>{
  16917. // let mk = `markSco${index}${inx}`
  16918. // this.$refs[mk][0].getData()
  16919. // })
  16920. // }
  16921. // })
  16922. },
  16923. updateDocSco(payload) {
  16924. // console.log('payload',payload)
  16925. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16926. },
  16927. gx(){
  16928. this.$forceUpdate();
  16929. },
  16930. isUpdateCorrect(t,p){
  16931. if(this.greyType == false){
  16932. this.isUpdateText = t;
  16933. this.greyType = true;
  16934. }else{
  16935. if(p == 1){
  16936. this.newEnglishList.engText = this.isUpdateText;
  16937. }else if(p == 2){
  16938. this.oldEnglishJson1.engText = this.isUpdateText;
  16939. }else if(p == 3){
  16940. this.newEnglishList.engText = this.isUpdateText;
  16941. }else{
  16942. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16943. }
  16944. this.greyType = false
  16945. }
  16946. },
  16947. aiCorrect(t,p){
  16948. let aiText = "";
  16949. const loading = this.$loading.service({
  16950. background: "rgba(255, 255, 255)",
  16951. target: document.querySelectorAll(".loadingText")[0],
  16952. });
  16953. let param = {
  16954. model: "gpt-3.5-turbo",
  16955. temperature: 0,
  16956. max_tokens: 2048,
  16957. top_p: 1,
  16958. frequency_penalty: 0,
  16959. presence_penalty: 0,
  16960. messages: [
  16961. {
  16962. role: "user",
  16963. content:
  16964.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16965. },
  16966. ],
  16967. uid: this.userid,
  16968. stream: false,
  16969. };
  16970. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16971. (res) => {
  16972. if (
  16973. res.data.FunctionResponse &&
  16974. res.data.FunctionResponse.result &&
  16975. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16976. ) {
  16977. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16978. return;
  16979. }
  16980. aiText =
  16981. res.data.FunctionResponse.choices[0].message.content;
  16982. aiText = aiText.replace(/%/g,"%25");
  16983. // let w = "";
  16984. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16985. // for(var k = 0;k<a.length;k++){
  16986. // //diffWordsWithSpace
  16987. // if(a.length > 1){
  16988. // if(a[k].added == true){
  16989. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16990. // }else if(a[k].removed == true){
  16991. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16992. // }else{
  16993. // w += '<span>' + a[k].value + '</span>';
  16994. // }
  16995. // }else{
  16996. // if(p == 1){
  16997. // w = this.newEnglishList.engText;
  16998. // }else if(p == 2){
  16999. // w = this.oldEnglishJson1.engText;
  17000. // }else if(p == 3){
  17001. // w = this.newEnglishList.engText;
  17002. // }else{
  17003. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17004. // }
  17005. // }
  17006. // }
  17007. if(p == 1){
  17008. this.newEnglishList.engText = aiText;
  17009. }else if(p == 2){
  17010. this.oldEnglishJson1.engText = aiText;
  17011. }else if(p == 3){
  17012. this.newEnglishList.engText = aiText;
  17013. }else{
  17014. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17015. }
  17016. loading.close();
  17017. },
  17018. (err) => {
  17019. console.log(err);
  17020. loading.close();
  17021. }
  17022. );
  17023. },
  17024. addToolChoose() {
  17025. if (!this.checktoolArray.length) {
  17026. this.$message.error("请选择要添加的任务");
  17027. return;
  17028. }
  17029. if (
  17030. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17031. this.taskCount
  17032. ].toolChoose[0].tool.length
  17033. ) {
  17034. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17035. this.taskCount
  17036. ].toolChoose[0].tool = this.checktoolArray;
  17037. } else {
  17038. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17039. this.taskCount
  17040. ].toolChoose.push({
  17041. tool: this.checktoolArray,
  17042. toolDetail: "",
  17043. toolType: 0,
  17044. askCount: 1,
  17045. askTitle: "",
  17046. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17047. });
  17048. }
  17049. let params = [
  17050. {
  17051. cid: this.id,
  17052. chapters: JSON.stringify(this.chapInfoList),
  17053. uid: this.userid,
  17054. unitIndex: this.courseType,
  17055. },
  17056. ];
  17057. this.ajax
  17058. .post(this.$store.state.api + "updateWorkNew4", params)
  17059. .then((res) => {
  17060. this.$message({
  17061. message: "添加成功",
  17062. type: "success",
  17063. });
  17064. this.checktoolArray = [];
  17065. this.getCourseDetail(2);
  17066. this.checkBz(
  17067. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17068. this.taskCount
  17069. ].toolChoose.length - 1
  17070. );
  17071. this.toolDialogVisible = false;
  17072. this.refreshCourse();
  17073. this.$forceUpdate();
  17074. })
  17075. .catch((err) => {
  17076. console.error(err);
  17077. });
  17078. },
  17079. checkBz(index) {
  17080. this.isUpdateToolDetail = false;
  17081. this.$forceUpdate();
  17082. setTimeout(() => {
  17083. document.scrollingElement.scrollTop =
  17084. document.querySelectorAll(".filebox")[index].offsetTop +
  17085. document.querySelector(".student_body").offsetTop;
  17086. }, 500);
  17087. },
  17088. updateToolDetail(i, type) {
  17089. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  17090. this.toolDetailIndex = i
  17091. this.isUpdateToolDetail1 = true;
  17092. setTimeout(() => {
  17093. this.updateToolDetailInner = JSON.parse(
  17094. JSON.stringify(
  17095. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17096. this.taskCount
  17097. ].toolChoose[i].toolDetail
  17098. )
  17099. );
  17100. document.querySelector(".checkTextArea").focus();
  17101. }, 0);
  17102. } else if((this.isUpdateToolDetail1 && type != 2)){
  17103. // this.toolDetailIndex = i;
  17104. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17105. this.taskCount
  17106. ].toolChoose[i].toolDetail = JSON.parse(
  17107. JSON.stringify(this.updateToolDetailInner)
  17108. );
  17109. let params = [
  17110. {
  17111. cid: this.id,
  17112. chapters: JSON.stringify(this.chapInfoList),
  17113. uid: this.userid,
  17114. unitIndex: this.courseType,
  17115. },
  17116. ];
  17117. this.ajax
  17118. .post(this.$store.state.api + "updateWorkNew4", params)
  17119. .then((res) => {
  17120. this.isUpdateToolDetail1 = false;
  17121. this.$message({
  17122. message: "修改成功",
  17123. type: "success",
  17124. });
  17125. this.toolDetailIndex = null;
  17126. this.updateToolDetailInner = "";
  17127. this.getCourseDetail(2);
  17128. this.$forceUpdate();
  17129. })
  17130. .catch((err) => {
  17131. console.error(err);
  17132. });
  17133. } else if((this.isUpdateToolDetail1 && type == 2)){
  17134. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17135. this.taskCount
  17136. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17137. JSON.stringify(this.updateToolDetailInner)
  17138. );
  17139. let params = [
  17140. {
  17141. cid: this.id,
  17142. chapters: JSON.stringify(this.chapInfoList),
  17143. uid: this.userid,
  17144. unitIndex: this.courseType,
  17145. },
  17146. ];
  17147. this.ajax
  17148. .post(this.$store.state.api + "updateWorkNew4", params)
  17149. .then((res) => {
  17150. this.$message({
  17151. message: "修改成功",
  17152. type: "success",
  17153. });
  17154. this.toolDetailIndex = i;
  17155. this.isUpdateToolDetail1 = true;
  17156. setTimeout(() => {
  17157. this.updateToolDetailInner = JSON.parse(
  17158. JSON.stringify(
  17159. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17160. this.taskCount
  17161. ].toolChoose[i].toolDetail
  17162. )
  17163. );
  17164. document.querySelector(".checkTextArea").focus();
  17165. }, 0);
  17166. this.getCourseDetail(2);
  17167. this.$forceUpdate();
  17168. })
  17169. .catch((err) => {
  17170. console.error(err);
  17171. });
  17172. }
  17173. },
  17174. jumpGj(i, j, k, l) {
  17175. // this.refreshAssembly();
  17176. for (var z = 0; z < this.navList.length; z++) {
  17177. for (var q = 0; q < this.navList[z].task.length; q++) {
  17178. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17179. this.navList[z].task[q].tool[w].isTool = false;
  17180. }
  17181. }
  17182. }
  17183. console.log(this.navList);
  17184. this.navList[i].task[j].tool[k].isTool =
  17185. !this.navList[i].task[j].tool[k].isTool;
  17186. var a = document.scrollingElement;
  17187. let target = document.querySelector(`#gj${k}`);
  17188. if (target) {
  17189. // target.scrollIntoView(true);
  17190. // setTimeout(() => {
  17191. // a.scrollTop = a.scrollTop - 150;
  17192. // }, 0);
  17193. target.scrollIntoView();
  17194. setTimeout(()=>{
  17195. let scrollBody = document.querySelector('.body_student').parentElement
  17196. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17197. }, 0);
  17198. }
  17199. this.navId = ""
  17200. let flag = this.courseType == i;
  17201. let flag2 = this.taskCount == j
  17202. if (l) {
  17203. this.courseType = i;
  17204. // this.navId = l;
  17205. this.taskCount = j;
  17206. this.selectPz();
  17207. this.getHomeWork();
  17208. this.getCourseDetail(2);
  17209. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17210. if(flag){
  17211. if(flag2){
  17212. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17213. }else{
  17214. this.insertMemorandum(`选择<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17215. }
  17216. }else{
  17217. this.insertMemorandum(`选择<span class="variable">阶段${i+1}${this.navList[i].dyName?':'+this.navList[i].dyName:''}</span>→<span class="variable">任务${j+1}${this.navList[i].task[j].taskName?':'+this.navList[i].task[j].taskName:''}</span>→<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17218. }
  17219. }
  17220. // var b = this.$refs["bz" + k][0];
  17221. // a.scrollTop = b.offsetTop;
  17222. },
  17223. addTools2(i) {
  17224. if (i == 4) {
  17225. // this.openTools2(4);
  17226. this.$message.error("暂未开放");
  17227. return;
  17228. }
  17229. if (i == 45) {
  17230. // this.openTools2(45);
  17231. this.$message.error("暂未开放");
  17232. return;
  17233. }
  17234. if (i == 47) {
  17235. // this.openTools2(47);
  17236. this.$message.error("暂未开放");
  17237. return;
  17238. }
  17239. if (i == 49) {
  17240. // this.openTools2(49);
  17241. this.$message.error("暂未开放");
  17242. return;
  17243. }
  17244. if (i == 62) {
  17245. // this.openTools(itemTaskIndex, 62, toolIndex);
  17246. this.$message.error("暂未开放");
  17247. return;
  17248. }
  17249. if (i == 15) {
  17250. // this.openTools(itemTaskIndex, 15, toolIndex);
  17251. this.$message.error("暂未开放");
  17252. return;
  17253. }
  17254. if (i == 40) {
  17255. // this.openTools(itemTaskIndex, 40, toolIndex);
  17256. this.$message.error("暂未开放");
  17257. return;
  17258. }
  17259. if (i == 41) {
  17260. // this.openTools(itemTaskIndex, 41, toolIndex);
  17261. this.$message.error("暂未开放");
  17262. return;
  17263. }
  17264. if (i == 42) {
  17265. // this.openTools(itemTaskIndex, 42, toolIndex);
  17266. this.$message.error("暂未开放");
  17267. return;
  17268. }
  17269. if (this.checktoolArray.length > 0) {
  17270. if (this.checktoolArray.indexOf(i) != -1) {
  17271. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17272. } else {
  17273. this.checktoolArray = [];
  17274. this.checktoolArray.push(i);
  17275. }
  17276. } else {
  17277. this.checktoolArray.push(i);
  17278. }
  17279. this.$forceUpdate();
  17280. },
  17281. jump() {
  17282. window.topU.postMessage({ tools: "43" }, "*");
  17283. },
  17284. getUpdateMore(f, checkboxList, searchTN, index) {
  17285. this.dialogVisibleMember = f;
  17286. this.checkboxList = checkboxList;
  17287. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17288. this.plIndex = index;
  17289. },
  17290. setPlname(a) {
  17291. if (this.plworkFile.length) {
  17292. this.plworkFile[this.plIndex].username = a;
  17293. } else {
  17294. this.worksSName = a;
  17295. }
  17296. this.dialogVisibleMember = false;
  17297. },
  17298. previewImg(url,w) {
  17299. this.$hevueImgPreview(url);
  17300. if(w){
  17301. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17302. }
  17303. },
  17304. checkImg(list) {
  17305. if (!list.length) {
  17306. return;
  17307. }
  17308. this.$hevueImgPreview({
  17309. multiple: true, // 开启多图预览模式
  17310. imgList: list, // 需要预览的多图数组
  17311. });
  17312. },
  17313. change(val) {
  17314. console.log(val);
  17315. },
  17316. goTo(path) {
  17317. this.$router.push(path);
  17318. },
  17319. handlePictureCardPreview(url) {
  17320. this.dialogImageUrl = url;
  17321. this.pictureDialog = true;
  17322. },
  17323. clean(type) {
  17324. if (type == 1) {
  17325. this.studyJuri[0].cover.splice(0, 1);
  17326. } else if (type == 2) {
  17327. this.studyJuri[0].upVedio.splice(0, 1);
  17328. } else {
  17329. this.studyJuri[0].upFile.splice(0, 1);
  17330. }
  17331. },
  17332. clean2(index) {
  17333. this.plworkFile.splice(index, 1);
  17334. },
  17335. handleClose(done) {
  17336. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17337. this.videoDetail.sources[0].src = "";
  17338. }
  17339. this.commentIndexJson = {};
  17340. this.changeSplitScreenBehavior({code:99})
  17341. done();
  17342. },
  17343. fullTools() {
  17344. this.full = !this.full;
  17345. },
  17346. imgChange(file, fileList, type) {
  17347. if (type == 1) {
  17348. var _tmp = this.studyJuri[0].cover;
  17349. } else if (type == 2) {
  17350. var _tmp = this.studyJuri[0].upVedio;
  17351. } else {
  17352. var _tmp = this.studyJuri[0].upFile;
  17353. }
  17354. this.noneBtnImg = _tmp.length >= 1;
  17355. },
  17356. setContent(bool) {
  17357. this.contentDialog = bool;
  17358. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17359. document.querySelector(".workd_media").style.height = "650px";
  17360. } else if (document.querySelector(".workd_media")) {
  17361. document.querySelector(".workd_media").style.height = "auto";
  17362. }
  17363. },
  17364. setContent2(bool) {
  17365. this.mlDialog = bool;
  17366. if (
  17367. bool &&
  17368. this.contentDialog &&
  17369. document.querySelector(".workd_media")
  17370. ) {
  17371. document.querySelector(".workd_media").style.height = "650px";
  17372. } else if (document.querySelector(".workd_media")) {
  17373. document.querySelector(".workd_media").style.height = "auto";
  17374. }
  17375. },
  17376. openToolAll() {
  17377. this.toolDialogVisible = true;
  17378. },
  17379. addImg(e) {
  17380. var el = e.currentTarget;
  17381. // this.$message.success('触发上传')
  17382. el.getElementsByTagName("input")[0].click();
  17383. e.target.value = "";
  17384. },
  17385. addSelectAnswer() {
  17386. let params = [
  17387. {
  17388. uid: this.userid,
  17389. cid: this.id,
  17390. stage: this.courseType,
  17391. task: this.taskCount,
  17392. tool: this.toolindex,
  17393. content: this.selectAnswer.answer,
  17394. type: 7,
  17395. },
  17396. ];
  17397. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17398. this.homeWorkLoading = true
  17399. this.ajax
  17400. .post(this.$store.state.api + "addCourseWorks", params)
  17401. .then((res) => {
  17402. this.$message({
  17403. message: "提交成功",
  17404. type: "success",
  17405. });
  17406. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17407. setTimeout(() => {
  17408. this.homeWorkLoading = false
  17409. }, 500);
  17410. this.dialogVisibleSelect = false;
  17411. // this.selectAnswer = {};
  17412. this.selectSWorks();
  17413. this.selectStudent();
  17414. })
  17415. .catch((err) => {
  17416. setTimeout(() => {
  17417. this.homeWorkLoading = false
  17418. }, 500);
  17419. this.$message.error("提交失败");
  17420. console.error(err);
  17421. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17422. });
  17423. },
  17424. addSelectAnswerTeacher() {
  17425. let params = [
  17426. {
  17427. uid: this.sStudent.userid,
  17428. cid: this.id,
  17429. stage: this.courseType,
  17430. task: this.taskCount,
  17431. tool: this.toolindex,
  17432. content: this.selectAnswer.answer,
  17433. type: 7,
  17434. },
  17435. ];
  17436. this.ajax
  17437. .post(this.$store.state.api + "addCourseWorks", params)
  17438. .then((res) => {
  17439. this.$message({
  17440. message: "提交成功",
  17441. type: "success",
  17442. });
  17443. this.dialogVisibleSelectTeacher = false;
  17444. // this.selectAnswer = {};
  17445. this.selectSWorks();
  17446. this.selectStudent();
  17447. })
  17448. .catch((err) => {
  17449. this.$message.error("提交失败");
  17450. console.error(err);
  17451. });
  17452. },
  17453. addSenWorks() {
  17454. for (var i = 0; i < this.sentenceList.length; i++) {
  17455. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17456. if (
  17457. this.sentenceList[i].chooseSenList[j] == undefined ||
  17458. this.sentenceList[i].chooseSenList[j] == ""
  17459. ) {
  17460. this.$message.error("请将答案填写完整!");
  17461. return;
  17462. }
  17463. }
  17464. }
  17465. let params = [
  17466. {
  17467. uid: this.userid,
  17468. cid: this.id,
  17469. stage: this.courseType,
  17470. task: this.taskCount,
  17471. tool: this.toolindex,
  17472. content: JSON.stringify(this.sentenceList),
  17473. type: 9,
  17474. },
  17475. ];
  17476. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17477. this.homeWorkLoading = true
  17478. this.ajax
  17479. .post(this.$store.state.api + "addCourseWorks", params)
  17480. .then((res) => {
  17481. this.$message({
  17482. message: "提交成功",
  17483. type: "success",
  17484. });
  17485. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17486. setTimeout(() => {
  17487. this.homeWorkLoading = false
  17488. }, 500);
  17489. this.dialogVisibleSentence = false;
  17490. // this.selectAnswer = {};
  17491. this.selectSWorks();
  17492. this.selectStudent();
  17493. })
  17494. .catch((err) => {
  17495. setTimeout(() => {
  17496. this.homeWorkLoading = false
  17497. }, 500);
  17498. this.$message.error("提交失败");
  17499. console.error(err);
  17500. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17501. });
  17502. },
  17503. addSenWorksTeacher() {
  17504. for (var i = 0; i < this.sentenceList.length; i++) {
  17505. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17506. if (
  17507. this.sentenceList[i].chooseSenList[j] == undefined ||
  17508. this.sentenceList[i].chooseSenList[j] == ""
  17509. ) {
  17510. this.$message.error("请将答案填写完整!");
  17511. return;
  17512. }
  17513. }
  17514. }
  17515. let params = [
  17516. {
  17517. uid: this.sStudent.userid,
  17518. cid: this.id,
  17519. stage: this.courseType,
  17520. task: this.taskCount,
  17521. tool: this.toolindex,
  17522. content: JSON.stringify(this.sentenceList),
  17523. type: 9,
  17524. },
  17525. ];
  17526. this.ajax
  17527. .post(this.$store.state.api + "addCourseWorks", params)
  17528. .then((res) => {
  17529. this.$message({
  17530. message: "提交成功",
  17531. type: "success",
  17532. });
  17533. this.dialogVisibleSentenceTeacher = false;
  17534. // this.selectAnswer = {};
  17535. this.selectSWorks();
  17536. this.selectStudent();
  17537. })
  17538. .catch((err) => {
  17539. this.$message.error("提交失败");
  17540. console.error(err);
  17541. });
  17542. },
  17543. returnTableText() {
  17544. this.$confirm("确定还原此模板吗?", "提示", {
  17545. confirmButtonText: "确定",
  17546. cancelButtonText: "取消",
  17547. type: "warning",
  17548. })
  17549. .then(() => {
  17550. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17551. })
  17552. .catch(() => {});
  17553. },
  17554. addTableWorks() {
  17555. let params = [
  17556. {
  17557. uid: this.userid,
  17558. cid: this.id,
  17559. stage: this.courseType,
  17560. task: this.taskCount,
  17561. tool: this.toolindex,
  17562. content: JSON.stringify(this.tableJson),
  17563. type: 10,
  17564. },
  17565. ];
  17566. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17567. this.homeWorkLoading = true
  17568. this.ajax
  17569. .post(this.$store.state.api + "addCourseWorks", params)
  17570. .then((res) => {
  17571. this.$message({
  17572. message: "提交成功",
  17573. type: "success",
  17574. });
  17575. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17576. setTimeout(() => {
  17577. this.homeWorkLoading = false
  17578. }, 500);
  17579. this.dialogVisibleTable = false;
  17580. // this.selectAnswer = {};
  17581. this.selectSWorks();
  17582. this.selectStudent();
  17583. })
  17584. .catch((err) => {
  17585. this.$message.error("提交失败");
  17586. console.error(err);
  17587. setTimeout(() => {
  17588. this.homeWorkLoading = false
  17589. }, 500);
  17590. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17591. });
  17592. },
  17593. tableRowClassName({ row, rowIndex }) {
  17594. if ((rowIndex + 1) % 2 === 0) {
  17595. return "even_row";
  17596. } else {
  17597. return "";
  17598. }
  17599. },
  17600. addTableWorksTeacher() {
  17601. let params = [
  17602. {
  17603. uid: this.sStudent.userid,
  17604. cid: this.id,
  17605. stage: this.courseType,
  17606. task: this.taskCount,
  17607. tool: this.toolindex,
  17608. content: JSON.stringify(this.tableJson),
  17609. type: 10,
  17610. },
  17611. ];
  17612. this.ajax
  17613. .post(this.$store.state.api + "addCourseWorks", params)
  17614. .then((res) => {
  17615. this.$message({
  17616. message: "提交成功",
  17617. type: "success",
  17618. });
  17619. this.dialogVisibleTableTeacher = false;
  17620. // this.selectAnswer = {};
  17621. this.selectSWorks();
  17622. this.selectStudent();
  17623. })
  17624. .catch((err) => {
  17625. this.$message.error("提交失败");
  17626. console.error(err);
  17627. });
  17628. },
  17629. returnWordText() {
  17630. this.$confirm("确定还原此模板吗?", "提示", {
  17631. confirmButtonText: "确定",
  17632. cancelButtonText: "取消",
  17633. type: "warning",
  17634. })
  17635. .then(() => {
  17636. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17637. })
  17638. .catch(() => {});
  17639. },
  17640. addWordWorks() {
  17641. let params = [
  17642. {
  17643. uid: this.userid,
  17644. cid: this.id,
  17645. stage: this.courseType,
  17646. task: this.taskCount,
  17647. tool: this.toolindex,
  17648. content: JSON.stringify(this.wordJson),
  17649. type: 13,
  17650. atool: 52,
  17651. },
  17652. ];
  17653. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17654. this.homeWorkLoading = true
  17655. this.ajax
  17656. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17657. .then((res) => {
  17658. this.$message({
  17659. message: "提交成功",
  17660. type: "success",
  17661. });
  17662. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17663. setTimeout(() => {
  17664. this.homeWorkLoading = false
  17665. }, 500);
  17666. this.dialogVisibleWord = false;
  17667. // this.selectAnswer = {};
  17668. this.selectSWorks();
  17669. this.selectStudent();
  17670. })
  17671. .catch((err) => {
  17672. this.$message.error("提交失败");
  17673. console.error(err);
  17674. setTimeout(() => {
  17675. this.homeWorkLoading = false
  17676. }, 500);
  17677. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17678. });
  17679. },
  17680. addWordWorksTeacher() {
  17681. let params = [
  17682. {
  17683. uid: this.sStudent.userid,
  17684. cid: this.id,
  17685. stage: this.courseType,
  17686. task: this.taskCount,
  17687. tool: this.toolindex,
  17688. content: JSON.stringify(this.wordJson),
  17689. type: 13,
  17690. atool: 52,
  17691. },
  17692. ];
  17693. this.ajax
  17694. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17695. .then((res) => {
  17696. this.$message({
  17697. message: "提交成功",
  17698. type: "success",
  17699. });
  17700. this.dialogVisibleWordTeacher = false;
  17701. // this.selectAnswer = {};
  17702. this.selectSWorks();
  17703. this.selectStudent();
  17704. })
  17705. .catch((err) => {
  17706. this.$message.error("提交失败");
  17707. console.error(err);
  17708. });
  17709. },
  17710. addCourseWorksCopy(i) {
  17711. let arr = this.workStudent[this.toolindex].filter(e => {
  17712. return (e.userid = this.userid);
  17713. });
  17714. if (arr.length > 0) {
  17715. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17716. confirmButtonText: "确定",
  17717. cancelButtonText: "取消",
  17718. type: "warning"
  17719. })
  17720. .then(() => {
  17721. this.addCourseWorks(i);
  17722. })
  17723. .catch(() => {});
  17724. } else {
  17725. this.addCourseWorks(i);
  17726. }
  17727. },
  17728. addCourseWorks(i) {
  17729. var typesql;
  17730. if (this.fileType === 0) {
  17731. typesql = 1;
  17732. } else if (this.fileType === 1) {
  17733. typesql = 4;
  17734. } else if (this.fileType === 2) {
  17735. typesql = 5;
  17736. } else if (this.fileType === 3) {
  17737. typesql = 12;
  17738. }
  17739. if (!this.studyJuri[0].cover[0].url) {
  17740. this.$message.error("请上传文件");
  17741. return;
  17742. }
  17743. let params = [
  17744. {
  17745. uid: this.userid,
  17746. cid: this.id,
  17747. stage: this.courseType,
  17748. task: i,
  17749. tool: this.toolindex,
  17750. content: this.studyJuri[0].cover[0].url,
  17751. type: typesql,
  17752. },
  17753. ];
  17754. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17755. this.homeWorkLoading = true
  17756. this.ajax
  17757. .post(this.$store.state.api + "addCourseWorksR", params)
  17758. .then((res) => {
  17759. this.$message({
  17760. message: "提交成功",
  17761. type: "success",
  17762. });
  17763. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17764. setTimeout(() => {
  17765. this.homeWorkLoading = false
  17766. }, 500);
  17767. this.studyJuri[0].cover = [];
  17768. this.dialogVisible = false;
  17769. this.getCourseDetail(2);
  17770. })
  17771. .catch((err) => {
  17772. this.$message.error("提交失败");
  17773. console.error(err);
  17774. setTimeout(() => {
  17775. this.homeWorkLoading = false
  17776. }, 500);
  17777. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17778. });
  17779. },
  17780. addCourseWorksPl(i) {
  17781. let _files = this.plworkFile;
  17782. var c = 1;
  17783. for (var k = 0; k < _files.length; k++) {
  17784. if (!_files[k].username) {
  17785. c = 2;
  17786. }
  17787. }
  17788. if (c == 2) {
  17789. this.$message.error("请填写学生姓名");
  17790. return;
  17791. }
  17792. let params = [
  17793. {
  17794. ateacher: this.userid,
  17795. cid: this.id,
  17796. stage: this.courseType,
  17797. task: i,
  17798. tool: this.toolindex,
  17799. content: JSON.stringify(_files),
  17800. },
  17801. ];
  17802. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17803. this.homeWorkLoading = true
  17804. this.ajax
  17805. .post(this.$store.state.api + "addCourseWorksPl", params)
  17806. .then((res) => {
  17807. this.$message({
  17808. message: "提交成功",
  17809. type: "success",
  17810. });
  17811. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17812. setTimeout(() => {
  17813. this.homeWorkLoading = false
  17814. }, 500);
  17815. this.plworkFile = [];
  17816. this.dialogVisiblePl = false;
  17817. this.getCourseDetail(2);
  17818. })
  17819. .catch((err) => {
  17820. this.$message.error("提交失败");
  17821. console.error(err);
  17822. setTimeout(() => {
  17823. this.homeWorkLoading = false
  17824. }, 500);
  17825. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17826. });
  17827. },
  17828. addCourseWorks2(i) {
  17829. var typesql;
  17830. if (this.fileType === 0) {
  17831. typesql = 0;
  17832. } else if (this.fileType === 1) {
  17833. typesql = 1;
  17834. } else if (this.fileType === 2) {
  17835. typesql = 3;
  17836. } else if (this.fileType === 3) {
  17837. typesql = 12;
  17838. }
  17839. if (!this.studyJuri[0].cover[0].url) {
  17840. this.$message.error("请上传文件");
  17841. return;
  17842. }
  17843. let params = [
  17844. {
  17845. uid: this.userid,
  17846. cid: this.id,
  17847. stage: this.courseType,
  17848. task: i,
  17849. tool: this.toolindex,
  17850. content: JSON.stringify({
  17851. type: typesql,
  17852. groupIndex: this.groupIndex,
  17853. url: this.studyJuri[0].cover[0].url,
  17854. }),
  17855. type: 11,
  17856. atool: 49,
  17857. text: "",
  17858. },
  17859. ];
  17860. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17861. this.homeWorkLoading = true
  17862. this.ajax
  17863. .post(this.$store.state.api + "addCourseWorks5", params)
  17864. .then((res) => {
  17865. this.$message({
  17866. message: "提交成功",
  17867. type: "success",
  17868. });
  17869. setTimeout(() => {
  17870. this.homeWorkLoading = false
  17871. }, 500);
  17872. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17873. type: typesql,
  17874. groupIndex: this.groupIndex,
  17875. url: this.studyJuri[0].cover[0].url,
  17876. }),type: "course_tool_sub" }, "success")
  17877. this.studyJuri[0].cover = [];
  17878. this.dialogVisibleGroupWork = false;
  17879. this.getCourseDetail(2);
  17880. })
  17881. .catch((err) => {
  17882. this.$message.error("提交失败");
  17883. console.error(err);
  17884. setTimeout(() => {
  17885. this.homeWorkLoading = false
  17886. }, 500);
  17887. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17888. type: typesql,
  17889. groupIndex: this.groupIndex,
  17890. url: this.studyJuri[0].cover[0].url,
  17891. }),type: "course_tool_sub" }, err)
  17892. });
  17893. },
  17894. addEnglishWork() {
  17895. this.myAnList = this.$refs['engJson'].myAnswerList;
  17896. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17897. this.$message.error("请输入作文标题和正文!");
  17898. return;
  17899. }
  17900. let params = [
  17901. {
  17902. uid: this.userid,
  17903. cid: this.id,
  17904. stage: this.courseType,
  17905. task: this.taskCount,
  17906. tool: this.englishToolIndex,
  17907. content: JSON.stringify(this.myAnList),
  17908. type: 16,
  17909. atool: 69,
  17910. text: "",
  17911. },
  17912. ];
  17913. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17914. this.homeWorkLoading = true
  17915. this.ajax
  17916. .post(this.$store.state.api + "addCourseWorks5", params)
  17917. .then((res) => {
  17918. this.$message({
  17919. message: "提交成功",
  17920. type: "success",
  17921. });
  17922. setTimeout(() => {
  17923. this.homeWorkLoading = false
  17924. }, 500);
  17925. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17926. data: JSON.stringify(this.myAnList),
  17927. type: "course_tool_sub" }, "success")
  17928. this.myAnList = {};
  17929. this.englishList = {};
  17930. this.englishToolIndex = 0;
  17931. this.engDialogVisible = false;
  17932. this.selectSWorks();
  17933. this.selectStudent();
  17934. })
  17935. .catch((err) => {
  17936. this.$message.error("提交失败");
  17937. console.error(err);
  17938. setTimeout(() => {
  17939. this.homeWorkLoading = false
  17940. }, 500);
  17941. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17942. data: JSON.stringify(this.myAnList),
  17943. type: "course_tool_sub" }, err)
  17944. });
  17945. },
  17946. addCourseWorksGong(i, data, tool) {
  17947. let params = [
  17948. {
  17949. uid: this.userid,
  17950. cid: this.id,
  17951. stage: this.courseType,
  17952. task: this.taskCount,
  17953. tool: i,
  17954. content: data,
  17955. type: 12,
  17956. atool: tool,
  17957. text: "",
  17958. },
  17959. ];
  17960. this.ajax
  17961. .post(this.$store.state.api + "addCourseWorks5", params)
  17962. .then((res) => {
  17963. this.$message({
  17964. message: "提交成功",
  17965. type: "success",
  17966. });
  17967. this.studyJuri[0].cover = [];
  17968. this.selectSWorks();
  17969. this.selectStudent();
  17970. })
  17971. .catch((err) => {
  17972. this.$message.error("提交失败");
  17973. console.error(err);
  17974. });
  17975. },
  17976. addCourseWorksGongTeacher(i, data, tool) {
  17977. let params = [
  17978. {
  17979. uid: this.sStudent.userid,
  17980. cid: this.id,
  17981. stage: this.courseType,
  17982. task: this.taskCount,
  17983. tool: i,
  17984. content: data,
  17985. type: 12,
  17986. atool: tool,
  17987. text: "",
  17988. },
  17989. ];
  17990. this.ajax
  17991. .post(this.$store.state.api + "addCourseWorks5", params)
  17992. .then((res) => {
  17993. this.$message({
  17994. message: "提交成功",
  17995. type: "success",
  17996. });
  17997. this.studyJuri[0].cover = [];
  17998. this.dialogVisibleWorks = false;
  17999. this.selectSWorks();
  18000. this.selectStudent();
  18001. })
  18002. .catch((err) => {
  18003. this.$message.error("提交失败");
  18004. console.error(err);
  18005. });
  18006. },
  18007. addCourseWorksGongPl(i, data, tool, type) {
  18008. let params = [
  18009. {
  18010. uid: this.sStudent.userid,
  18011. cid: this.id,
  18012. stage: this.courseType,
  18013. task: this.taskCount,
  18014. tool: i,
  18015. content: data,
  18016. type: type,
  18017. atool: tool,
  18018. text: "",
  18019. },
  18020. ];
  18021. this.ajax
  18022. .post(this.$store.state.api + "addCourseWorks5", params)
  18023. .then((res) => {
  18024. this.$message({
  18025. message: "提交成功",
  18026. type: "success",
  18027. });
  18028. this.studyJuri[0].cover = [];
  18029. this.dialogVisibleWorks = false;
  18030. this.selectSWorks();
  18031. this.selectStudent();
  18032. })
  18033. .catch((err) => {
  18034. this.$message.error("提交失败");
  18035. console.error(err);
  18036. });
  18037. },
  18038. addCourseWorksTeacher(i) {
  18039. var typesql;
  18040. if (this.sTool == 32) {
  18041. this.addCourseWorksGongTeacher(
  18042. this.toolindex,
  18043. this.studyJuri[0].cover[0].url,
  18044. this.sTool
  18045. );
  18046. return;
  18047. }
  18048. if (this.fileType === 0) {
  18049. typesql = 1;
  18050. } else if (this.fileType === 1) {
  18051. typesql = 4;
  18052. } else if (this.fileType === 2) {
  18053. typesql = 5;
  18054. } else if (this.fileType === 3) {
  18055. typesql = 12;
  18056. }
  18057. if (this.sTool == 50) {
  18058. this.addCourseWorksGongPl(
  18059. this.toolindex,
  18060. this.studyJuri[0].cover[0].url,
  18061. this.sTool,
  18062. typesql
  18063. );
  18064. return;
  18065. }
  18066. if (!this.studyJuri[0].cover[0].url) {
  18067. this.$message.error("请上传文件");
  18068. return;
  18069. }
  18070. let params = [
  18071. {
  18072. uid: this.sStudent.userid,
  18073. cid: this.id,
  18074. stage: this.courseType,
  18075. task: i,
  18076. tool: this.toolindex,
  18077. content: this.studyJuri[0].cover[0].url,
  18078. type: typesql,
  18079. ateacher: this.userid,
  18080. },
  18081. ];
  18082. this.ajax
  18083. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18084. .then((res) => {
  18085. this.$message({
  18086. message: "提交成功",
  18087. type: "success",
  18088. });
  18089. this.studyJuri[0].cover = [];
  18090. this.dialogVisibleWorks = false;
  18091. this.getCourseDetail(2);
  18092. })
  18093. .catch((err) => {
  18094. this.$message.error("提交失败");
  18095. console.error(err);
  18096. });
  18097. },
  18098. selectUploadStudent(type) {
  18099. const loading = this.$loading.service({
  18100. background: "rgba(255, 255, 255, 0.7)",
  18101. target: document.body,
  18102. });
  18103. let params = {
  18104. cid: this.uploadCid,
  18105. oid: this.oid,
  18106. cn: "",
  18107. };
  18108. this.ajax
  18109. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18110. .then((res) => {
  18111. loading.close();
  18112. var studentK = [];
  18113. if (this.isWorksS[this.toolindex].length > 0) {
  18114. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18115. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18116. }
  18117. studentK = studentK.join(",");
  18118. }
  18119. this.uploadStudentJuri = res.data[0].filter((el) => {
  18120. return studentK.indexOf(el.userid) == -1;
  18121. });
  18122. if (this.worksSName && this.worksSid) {
  18123. this.uploadStudentJuri.push({
  18124. userid: this.worksSid,
  18125. name: this.worksSName,
  18126. });
  18127. }
  18128. if (type == 1) {
  18129. this.plworkFile = [];
  18130. this.dialogVisibleSname = true;
  18131. } else if (type == 2) {
  18132. this.dialogVisiblePl = true;
  18133. }
  18134. })
  18135. .catch((err) => {
  18136. loading.close();
  18137. console.error(err);
  18138. });
  18139. },
  18140. selectPickStudent() {
  18141. const loading = this.$loading.service({
  18142. background: "rgba(255, 255, 255, 0.7)",
  18143. target: document.body,
  18144. });
  18145. let params = {
  18146. cid: this.uploadCid,
  18147. oid: this.oid,
  18148. cn: "",
  18149. };
  18150. this.ajax
  18151. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18152. .then((res) => {
  18153. loading.close();
  18154. this.uploadStudentJuri = res.data[0];
  18155. this.dialogVisiblePickPeople = true;
  18156. })
  18157. .catch((err) => {
  18158. loading.close();
  18159. console.error(err);
  18160. });
  18161. },
  18162. arrayToArray(arrayo, arrayt) {
  18163. let array1 = arrayo;
  18164. let array2 = arrayt;
  18165. let commonElements = [];
  18166. for (let i = 0; i < array1.length; i++) {
  18167. for (let j = 0; j < array2.length; j++) {
  18168. if (array1[i] === array2[j]) {
  18169. commonElements.push(array1[i]);
  18170. }
  18171. }
  18172. }
  18173. return commonElements;
  18174. },
  18175. selectWorksStudent() {
  18176. let params = {
  18177. oid: this.oid,
  18178. cid: this.courseDetail.juri,
  18179. };
  18180. this.ajax
  18181. .get(this.$store.state.api + "selectWorksStudent", params)
  18182. .then((res) => {
  18183. var a = res.data[0];
  18184. for (var i = 0; i < this.isWorksS.length; i++) {
  18185. this.noWorksS[i] = [];
  18186. var studentK = [];
  18187. if (this.isWorksS[i].length > 0) {
  18188. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18189. studentK.push(this.isWorksS[i][z].uid);
  18190. }
  18191. studentK = studentK.join(",");
  18192. for (var j = 0; j < a.length; j++) {
  18193. if (studentK.indexOf(a[j].userid) == -1) {
  18194. if (this.tcid) {
  18195. // a[j].classid.indexOf(this.tcid) != -1
  18196. if (
  18197. this.arrayToArray(
  18198. a[j].classid.split(","),
  18199. this.tcid.split(",")
  18200. ).length
  18201. ) {
  18202. this.noWorksS[i].push({
  18203. student: a[j].name,
  18204. userid: a[j].userid,
  18205. });
  18206. }
  18207. } else {
  18208. this.noWorksS[i].push({
  18209. student: a[j].name,
  18210. userid: a[j].userid,
  18211. });
  18212. }
  18213. }
  18214. }
  18215. } else {
  18216. for (var k = 0; k < a.length; k++) {
  18217. if (this.tcid) {
  18218. if (
  18219. this.arrayToArray(
  18220. a[k].classid.split(","),
  18221. this.tcid.split(",")
  18222. ).length
  18223. ) {
  18224. this.noWorksS[i].push({
  18225. student: a[k].name,
  18226. userid: a[k].userid,
  18227. });
  18228. }
  18229. } else {
  18230. this.noWorksS[i].push({
  18231. student: a[k].name,
  18232. userid: a[k].userid,
  18233. });
  18234. }
  18235. }
  18236. }
  18237. }
  18238. this.$forceUpdate();
  18239. if (
  18240. Object.keys(this.commentDetail).length &&
  18241. Object.keys(this.commentIndexJson).length &&
  18242. !this.dialogVisibleScore && !this.dialogVisibleENScore
  18243. ) {
  18244. let a = 1;
  18245. let c = this.commentIndexJson;
  18246. if (
  18247. this.commentIndexJson.gindex ||
  18248. this.commentIndexJson.gindex === 0
  18249. ) {
  18250. for (
  18251. var i = 0;
  18252. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18253. i++
  18254. ) {
  18255. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18256. groupA: for (var k = 0; k < _el.length; k++) {
  18257. let el = _el[k];
  18258. if (el.wid == this.commentDetail.wid) {
  18259. a = 2;
  18260. this.commentOther(
  18261. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18262. this.commentIndexJson.toolIndex,
  18263. k,
  18264. this.commentIndexJson.gindex
  18265. );
  18266. break groupA;
  18267. }
  18268. }
  18269. }
  18270. if (a === 1) {
  18271. this.commentDetail = [];
  18272. this.commentIndexJson = {};
  18273. this.commentDialogVisible = false;
  18274. this.$message("此作业已被删除");
  18275. }
  18276. } else {
  18277. if (this.isGroup && this.commentIndexJson.gid) {
  18278. groupA: for (
  18279. var i = 0;
  18280. i < this.courseGroup.group.length;
  18281. i++
  18282. ) {
  18283. let _group = this.courseGroup.group[i];
  18284. if (_group.id == this.commentIndexJson.gid) {
  18285. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18286. for (var k = 0; k < _el2.length; k++) {
  18287. let el2 = _el2[k];
  18288. if (el2.wid == this.commentDetail.wid) {
  18289. a = 2;
  18290. this.commentOther(
  18291. _el2[k],
  18292. this.commentIndexJson.toolIndex,
  18293. k,
  18294. null,
  18295. this.commentIndexJson.gid
  18296. );
  18297. break groupA;
  18298. }
  18299. }
  18300. }
  18301. }
  18302. }
  18303. if (a == 1) {
  18304. for (
  18305. var i = 0;
  18306. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18307. i++
  18308. ) {
  18309. let el =
  18310. this.worksStudent[this.commentIndexJson.toolIndex][i];
  18311. if (el.wid == this.commentDetail.wid) {
  18312. a = 2;
  18313. this.commentOther(
  18314. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18315. this.commentIndexJson.toolIndex,
  18316. i
  18317. );
  18318. break;
  18319. }
  18320. }
  18321. }
  18322. if (a === 1) {
  18323. this.commentDetail = [];
  18324. this.commentIndexJson = {};
  18325. this.commentDialogVisible = false;
  18326. this.$message("此作业已被删除");
  18327. }
  18328. }
  18329. }
  18330. })
  18331. .catch((err) => {
  18332. console.error(err);
  18333. });
  18334. },
  18335. selectStudent() {
  18336. //学生查看自己作业
  18337. let params = {
  18338. uid: this.userid,
  18339. cid: this.id,
  18340. s: this.courseType,
  18341. t: this.taskCount,
  18342. };
  18343. this.ajax
  18344. .get(this.$store.state.api + "selectStudentWorks", params)
  18345. .then((res) => {
  18346. var a =
  18347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18348. this.taskCount
  18349. ].toolChoose;
  18350. var b = res.data[0];
  18351. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18352. var y = [
  18353. "AVI",
  18354. "NAVI",
  18355. "MPEG",
  18356. "ASF",
  18357. "MOV",
  18358. "WMV",
  18359. "3GP",
  18360. "RM",
  18361. "RMVB",
  18362. "FLV",
  18363. "F4V",
  18364. "H.264",
  18365. "H.265",
  18366. "REAL VIDEO",
  18367. "MKV",
  18368. "WebM",
  18369. "HDDVD",
  18370. "MP4",
  18371. "MPG",
  18372. "M4V",
  18373. "MGV",
  18374. "OGV",
  18375. "QTM",
  18376. "STR",
  18377. "AMC",
  18378. "DVX",
  18379. "EVO",
  18380. "DAT",
  18381. "OGG",
  18382. "OGM",
  18383. ];
  18384. for (var i = 0; i < a.length; i++) {
  18385. this.workStudent[i] = [];
  18386. for (var j = 0; j < b.length; j++) {
  18387. if (i == b[j].tool) {
  18388. if (
  18389. (b[j].type == 1 ||
  18390. b[j].type == 4 ||
  18391. b[j].type == 5 ||
  18392. b[j].type == 6 ||
  18393. b[j].type == 12 ||
  18394. b[j].type == 7) &&
  18395. a[i].tool[0] != 15 &&
  18396. a[i].tool[0] != 4 &&
  18397. a[i].tool[0] != 45 &&
  18398. a[i].tool[0] != 50 &&
  18399. a[i].tool[0] != 32 &&
  18400. a[i].tool[0] != 57 &&
  18401. a[i].tool[0] != 52 &&
  18402. a[i].tool[0] != 69
  18403. ) {
  18404. if (
  18405. c.indexOf(
  18406. b[j].content
  18407. .split(".")
  18408. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18409. ) != -1 &&
  18410. a[i].tool[0] == 16 &&
  18411. b[j].atool != 50
  18412. ) {
  18413. this.workStudent[i].push({
  18414. works: b[j].content,
  18415. sName: b[j].name,
  18416. score: b[j].score,
  18417. img: b[j].img,
  18418. type: 1,
  18419. time: b[j].time,
  18420. userid: b[j].userid,
  18421. wid: b[j].id,
  18422. });
  18423. } else if (
  18424. y.indexOf(
  18425. b[j].content
  18426. .split(".")
  18427. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18428. ) != -1 &&
  18429. a[i].tool[0] == 16 &&
  18430. b[j].atool != 50
  18431. ) {
  18432. this.workStudent[i].push({
  18433. userid: b[j].userid,
  18434. wid: b[j].id,
  18435. works: b[j].content,
  18436. sName: b[j].name,
  18437. score: b[j].score,
  18438. img: b[j].img,
  18439. type: 3,
  18440. time: b[j].time,
  18441. });
  18442. } else if (b[j].type == 6 && b[j].atool != 50) {
  18443. this.workStudent[i].push({
  18444. userid: b[j].userid,
  18445. wid: b[j].id,
  18446. works: b[j].content,
  18447. sName: b[j].name,
  18448. score: b[j].score,
  18449. img: b[j].img,
  18450. type: 4,
  18451. time: b[j].time,
  18452. });
  18453. } else if (b[j].type == 7 && b[j].atool != 50) {
  18454. this.workStudent[i].push({
  18455. userid: b[j].userid,
  18456. wid: b[j].id,
  18457. works: b[j].content,
  18458. sName: b[j].name,
  18459. score: b[j].score,
  18460. img: b[j].img,
  18461. type: 5,
  18462. time: b[j].time,
  18463. });
  18464. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18465. this.workStudent[i].push({
  18466. works: b[j].content,
  18467. sName: b[j].name,
  18468. score: b[j].score,
  18469. img: b[j].img,
  18470. type: 12,
  18471. time: b[j].time,
  18472. userid: b[j].userid,
  18473. wid: b[j].id,
  18474. });
  18475. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  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: 0,
  18482. time: b[j].time,
  18483. userid: b[j].userid,
  18484. wid: b[j].id,
  18485. });
  18486. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18487. this.workStudent[i].push({
  18488. works: b[j].content,
  18489. sName: b[j].name,
  18490. score: b[j].score,
  18491. img: b[j].img,
  18492. type: 0,
  18493. time: b[j].time,
  18494. userid: b[j].userid,
  18495. wid: b[j].id,
  18496. });
  18497. }
  18498. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18499. this.workStudent[i].push({
  18500. works: b[j].content,
  18501. sName: b[j].name,
  18502. score: b[j].score,
  18503. img: b[j].img,
  18504. type: 2,
  18505. time: b[j].time,
  18506. userid: b[j].userid,
  18507. wid: b[j].id,
  18508. });
  18509. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18510. this.workStudent[i].push({
  18511. works: b[j].content,
  18512. sName: b[j].name,
  18513. score: b[j].score,
  18514. img: b[j].img,
  18515. type: 20,
  18516. time: b[j].time,
  18517. userid: b[j].userid,
  18518. wid: b[j].id,
  18519. });
  18520. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18521. //问卷
  18522. this.workStudent[i].push({
  18523. works: b[j].content,
  18524. sName: b[j].name,
  18525. score: b[j].score,
  18526. img: b[j].img,
  18527. type: 2,
  18528. time: b[j].time,
  18529. userid: b[j].userid,
  18530. wid: b[j].id,
  18531. });
  18532. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18533. //选择题
  18534. this.workStudent[i].push({
  18535. works: b[j].content,
  18536. sName: b[j].name,
  18537. score: b[j].score,
  18538. img: b[j].img,
  18539. type: 8,
  18540. time: b[j].time,
  18541. userid: b[j].userid,
  18542. wid: b[j].id,
  18543. });
  18544. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18545. //选择题
  18546. this.workStudent[i].push({
  18547. works: b[j].content,
  18548. sName: b[j].name,
  18549. score: b[j].score,
  18550. img: b[j].img,
  18551. type: 9,
  18552. time: b[j].time,
  18553. userid: b[j].userid,
  18554. wid: b[j].id,
  18555. });
  18556. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18557. //选择题
  18558. this.workStudent[i].push({
  18559. works: b[j].content,
  18560. sName: b[j].name,
  18561. score: b[j].score,
  18562. img: b[j].img,
  18563. type: 10,
  18564. time: b[j].time,
  18565. userid: b[j].userid,
  18566. wid: b[j].id,
  18567. });
  18568. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18569. //选择题
  18570. this.workStudent[i].push({
  18571. works: b[j].content,
  18572. sName: b[j].name,
  18573. score: b[j].score,
  18574. img: b[j].img,
  18575. type: 13,
  18576. time: b[j].time,
  18577. userid: b[j].userid,
  18578. wid: b[j].id,
  18579. });
  18580. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18581. //选择题
  18582. this.workStudent[i].push({
  18583. works: b[j].content,
  18584. sName: b[j].name,
  18585. score: b[j].score,
  18586. img: b[j].img,
  18587. type: 12,
  18588. time: b[j].time,
  18589. userid: b[j].userid,
  18590. wid: b[j].id,
  18591. });
  18592. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18593. //选择题
  18594. this.workStudent[i].push({
  18595. works: b[j].content,
  18596. sName: b[j].name,
  18597. score: b[j].score,
  18598. img: b[j].img,
  18599. type: 12,
  18600. time: b[j].time,
  18601. userid: b[j].userid,
  18602. wid: b[j].id,
  18603. });
  18604. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18605. //选择题
  18606. this.workStudent[i].push({
  18607. works: b[j].content,
  18608. sName: b[j].name,
  18609. score: b[j].score,
  18610. img: b[j].img,
  18611. type: 15,
  18612. time: b[j].time,
  18613. userid: b[j].userid,
  18614. wid: b[j].id,
  18615. });
  18616. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18617. //英语写作
  18618. this.workStudent[i].push({
  18619. works: b[j].content,
  18620. sName: b[j].name,
  18621. score: b[j].score,
  18622. img: b[j].img,
  18623. type: 16,
  18624. time: b[j].time,
  18625. userid: b[j].userid,
  18626. wid: b[j].id,
  18627. aiCode: b[j].aiCode,
  18628. teacherCode: b[j].teacherCode
  18629. });
  18630. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18631. //英语口语
  18632. this.workStudent[i].push({
  18633. works: b[j].content,
  18634. sName: b[j].name,
  18635. score: b[j].score,
  18636. img: b[j].img,
  18637. type: 17,
  18638. time: b[j].time,
  18639. userid: b[j].userid,
  18640. wid: b[j].id,
  18641. });
  18642. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18643. //交互视频
  18644. this.workStudent[i].push({
  18645. works: b[j].content,
  18646. sName: b[j].name,
  18647. score: b[j].score,
  18648. img: b[j].img,
  18649. type: 14,
  18650. time: b[j].time,
  18651. userid: b[j].userid,
  18652. wid: b[j].id,
  18653. });
  18654. }
  18655. }
  18656. }
  18657. }
  18658. })
  18659. .catch((err) => {
  18660. console.error(err);
  18661. });
  18662. },
  18663. openVideo(w) {
  18664. this.videoDetail = {};
  18665. this.playerOptions1.sources[0].src = w.works;
  18666. this.videoDetail = this.playerOptions1;
  18667. this.videoVisible = true;
  18668. },
  18669. isLikes(wid, uid, t, c, isLikes,sName) {
  18670. if (isLikes == false) {
  18671. let params = [
  18672. {
  18673. wid: wid,
  18674. lid: uid,
  18675. t: t,
  18676. c: c,
  18677. },
  18678. ];
  18679. this.ajax
  18680. .post(this.$store.state.api + "insertComment", params)
  18681. .then((res) => {
  18682. this.$message({
  18683. message: "点赞成功",
  18684. type: "success",
  18685. });
  18686. this.selectSWorks();
  18687. this.selectStudent();
  18688. if(this.tType!=2){
  18689. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18690. }
  18691. })
  18692. .catch((err) => {
  18693. this.$message.error("点赞失败");
  18694. console.error(err);
  18695. });
  18696. } else {
  18697. let params = {
  18698. wid: wid,
  18699. lid: uid,
  18700. type: t,
  18701. };
  18702. this.ajax
  18703. .get(this.$store.state.api + "deleteComment", params)
  18704. .then((res) => {
  18705. this.$message({
  18706. message: "取消点赞成功",
  18707. type: "success",
  18708. });
  18709. this.selectSWorks();
  18710. this.selectStudent();
  18711. })
  18712. .catch((err) => {
  18713. console.error(err);
  18714. });
  18715. }
  18716. },
  18717. deleteComment(wid) {
  18718. this.$confirm("确定删除此评论吗?", "提示", {
  18719. confirmButtonText: "确定",
  18720. cancelButtonText: "取消",
  18721. type: "warning",
  18722. })
  18723. .then(() => {
  18724. let params = {
  18725. id: wid,
  18726. };
  18727. this.ajax
  18728. .get(this.$store.state.api + "deleteComment2", params)
  18729. .then((res) => {
  18730. this.$message({
  18731. message: "删除评论成功",
  18732. type: "success",
  18733. });
  18734. this.selectSWorks();
  18735. this.selectStudent();
  18736. })
  18737. .catch((err) => {
  18738. console.error(err);
  18739. });
  18740. })
  18741. .catch(() => {});
  18742. },
  18743. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18744. this.commentIndexJson = {
  18745. toolIndex: toolIndex,
  18746. wIndex: wIndex,
  18747. gindex: gindex,
  18748. gid: gid,
  18749. };
  18750. this.commentDetail = [];
  18751. this.commentDialogVisible = true;
  18752. this.commentDetail = w;
  18753. if (w.works && w.type == 1) {
  18754. // this.pptImgUrl = "";
  18755. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18756. if (
  18757. a.indexOf(
  18758. w.works
  18759. .split(".")
  18760. [w.works.split(".").length - 1].toLocaleUpperCase()
  18761. ) != -1
  18762. ) {
  18763. let _uuurl = await this.checkLink(w.works);
  18764. console.log(_uuurl)
  18765. this.pptImgUrl =
  18766. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18767. this.showPDF = false;
  18768. } else if (
  18769. w.works
  18770. .split(".")
  18771. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18772. ) {
  18773. this.pptImgUrl = w.works;
  18774. this.showPDF = true;
  18775. }
  18776. } else if (w.works && w.type == 3) {
  18777. this.videoDetail = {};
  18778. this.playerOptions1.sources[0].src = w.works;
  18779. this.videoDetail = this.playerOptions1;
  18780. // this.videoVisible = true;
  18781. } else if (w.works && w.type == 4) {
  18782. this.eScore = JSON.parse(w.works);
  18783. this.rateJson =
  18784. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18785. this.taskCount
  18786. ].toolChoose[toolIndex].rateJson;
  18787. } else if (w.works && w.type == 10) {
  18788. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18789. } else if (w.works && w.type == 13) {
  18790. this.wordJson =
  18791. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18792. this.taskCount
  18793. ].toolChoose[toolIndex].wordJson;
  18794. }
  18795. },
  18796. async openScore(w, index) {
  18797. this.wScore = 0;
  18798. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18799. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18800. this.commentDetail = [];
  18801. if(w.type == 17){
  18802. this.dialogVisibleENScore = true;
  18803. }else{
  18804. this.dialogVisibleScore = true;
  18805. }
  18806. this.commentDetail = w;
  18807. if (w.works && w.type == 1) {
  18808. this.pptImgUrl = "";
  18809. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18810. if (
  18811. a.indexOf(
  18812. w.works
  18813. .split(".")
  18814. [w.works.split(".").length - 1].toLocaleUpperCase()
  18815. ) != -1
  18816. ) {
  18817. let _uuurl = await this.checkLink(w.works);
  18818. console.log(_uuurl)
  18819. this.pptImgUrl =
  18820. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18821. this.showPDF = false;
  18822. } else if (
  18823. w.works
  18824. .split(".")
  18825. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18826. ) {
  18827. this.pptImgUrl = w.works;
  18828. this.showPDF = true;
  18829. }
  18830. } else if (w.works && w.type == 3) {
  18831. this.videoDetail = {};
  18832. this.playerOptions1.sources[0].src = w.works;
  18833. this.videoDetail = this.playerOptions1;
  18834. }else if(w.type == 17){
  18835. let englishVoiceJson = {}
  18836. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18837. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18838. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18839. .toolChoose[index].englishVoiceJson
  18840. : {};
  18841. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18842. }
  18843. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18844. },
  18845. addComment(wid, uid, t,detail) {
  18846. if (this.commentText == "") {
  18847. this.$message.error("请输入评论");
  18848. return;
  18849. }
  18850. let params2 = [
  18851. {
  18852. wid: wid,
  18853. lid: uid,
  18854. t: t,
  18855. },
  18856. ];
  18857. this.ajax
  18858. .post(this.$store.state.api + "getComment", params2)
  18859. .then((res) => {
  18860. if (res.data[0].length > 0) {
  18861. this.$message.error("一个作业只能评论一条");
  18862. } else {
  18863. let params = [
  18864. {
  18865. wid: wid,
  18866. lid: uid,
  18867. t: t,
  18868. c: this.commentText,
  18869. },
  18870. ];
  18871. this.ajax
  18872. .post(this.$store.state.api + "insertComment", params)
  18873. .then((res) => {
  18874. this.$message({
  18875. message: "评论成功",
  18876. type: "success",
  18877. });
  18878. this.commentText = "";
  18879. this.selectSWorks();
  18880. this.selectStudent();
  18881. if(this.tType!=2){
  18882. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18883. }
  18884. })
  18885. .catch((err) => {
  18886. this.$message.error("评论失败");
  18887. console.error(err);
  18888. });
  18889. }
  18890. })
  18891. .catch((err) => {
  18892. // this.$message.error("评论失败");
  18893. console.error(err);
  18894. });
  18895. },
  18896. scoreWork(wid,sName) {
  18897. if (this.wScore == 0) {
  18898. this.$message.error("请评分");
  18899. return;
  18900. }
  18901. let params = [
  18902. {
  18903. wid: wid,
  18904. score: JSON.stringify({
  18905. wScore: this.wScore,
  18906. detail: this.scoreDetail,
  18907. }),
  18908. },
  18909. ];
  18910. this.ajax
  18911. .post(this.$store.state.api + "scoreWork", params)
  18912. .then((res) => {
  18913. this.$message({
  18914. message: "评分成功",
  18915. type: "success",
  18916. });
  18917. this.wScore = 0;
  18918. this.scoreDetail = "";
  18919. this.dialogVisibleScore = false;
  18920. this.selectSWorks();
  18921. this.selectStudent();
  18922. if(this.tType!=2){
  18923. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18924. }
  18925. })
  18926. .catch((err) => {
  18927. this.$message.error("评分失败");
  18928. console.error(err);
  18929. });
  18930. },
  18931. openXz(w, i) {
  18932. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18933. .taskJson[this.taskCount].toolChoose[i].selectJson
  18934. ? JSON.parse(
  18935. JSON.stringify(
  18936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18937. this.taskCount
  18938. ].toolChoose[i].selectJson
  18939. )
  18940. )
  18941. : { url: "", select: [], answer: [] };
  18942. var a = w.works.split(",");
  18943. for (var k = 0; k < a.length; k++) {
  18944. a[k] = parseInt(a[k]);
  18945. }
  18946. this.selectAnswer = { answer: a, stu: w.sName };
  18947. this.isSelect = true;
  18948. this.dialogVisibleSelect = true;
  18949. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18950. },
  18951. openSen(w, i) {
  18952. this.sentenceList1 = JSON.parse(w.works);
  18953. this.sentenceList1.stuName = w.sName;
  18954. this.dialogVisibleSentence1 = true;
  18955. },
  18956. openPj(w, toolindex) {
  18957. this.isStar = true;
  18958. this.eScore = JSON.parse(w);
  18959. this.rateJson =
  18960. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18961. this.taskCount
  18962. ].toolChoose[toolindex].rateJson;
  18963. this.studentEvalDialogVisible = true;
  18964. },
  18965. openEnglishEva(id,i){
  18966. let params = {
  18967. wid: id
  18968. };
  18969. this.ajax
  18970. .get(this.$store.state.api + "selectEngWork", params)
  18971. .then((res) => {
  18972. this.evaEngJson.message = res.data[0][0];
  18973. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18974. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18975. .toolChoose[i].englishList;
  18976. this.engEvaDialogVisible = true;
  18977. })
  18978. .catch((err) => {
  18979. console.error(err);
  18980. });
  18981. },
  18982. deleteWorks(id) {
  18983. this.$confirm("确定删除此作业吗?", "提示", {
  18984. confirmButtonText: "确定",
  18985. cancelButtonText: "取消",
  18986. type: "warning",
  18987. })
  18988. .then(() => {
  18989. let params = [
  18990. {
  18991. id: id,
  18992. },
  18993. ];
  18994. this.ajax
  18995. .post(this.$store.state.api + "deleteCourseWork", params)
  18996. .then((res) => {
  18997. this.$message({
  18998. message: "删除成功",
  18999. type: "success",
  19000. });
  19001. this.selectStudent();
  19002. this.selectSWorks();
  19003. this.selectSLook();
  19004. })
  19005. .catch((err) => {
  19006. this.$message.error("网络异常");
  19007. console.error(err);
  19008. });
  19009. })
  19010. .catch(() => {});
  19011. },
  19012. noIsAi() {
  19013. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19014. },
  19015. getLang() {
  19016. let lang = "";
  19017. if (this.languageSetting == 0) {
  19018. lang = "Chinese.";
  19019. } else if (this.languageSetting == 1) {
  19020. lang = "Traditional Chinese.";
  19021. } else if (this.languageSetting == 2) {
  19022. lang = "English.";
  19023. }
  19024. return lang;
  19025. },
  19026. selectSWorks(gindex) {
  19027. //教师查看全部作业
  19028. let params = {
  19029. cid: this.id,
  19030. s: this.courseType,
  19031. t: this.taskCount
  19032. };
  19033. this.ajax
  19034. .get(this.$store.state.api + "selectSWorks", params)
  19035. .then(res => {
  19036. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19037. this.taskCount
  19038. ].toolChoose;
  19039. var b = res.data[0];
  19040. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19041. var y = [
  19042. "AVI",
  19043. "NAVI",
  19044. "MPEG",
  19045. "ASF",
  19046. "MOV",
  19047. "WMV",
  19048. "3GP",
  19049. "RM",
  19050. "RMVB",
  19051. "FLV",
  19052. "F4V",
  19053. "H.264",
  19054. "H.265",
  19055. "REAL VIDEO",
  19056. "MKV",
  19057. "WebM",
  19058. "HDDVD",
  19059. "MP4",
  19060. "MPG",
  19061. "M4V",
  19062. "MGV",
  19063. "OGV",
  19064. "QTM",
  19065. "STR",
  19066. "AMC",
  19067. "DVX",
  19068. "EVO",
  19069. "DAT",
  19070. "OGG",
  19071. "OGM"
  19072. ];
  19073. var d = res.data[1];
  19074. var e = res.data[2];
  19075. var f = res.data[3];
  19076. let _worksStudent = [];
  19077. var _worksStudent2 = [];
  19078. for (var i = 0; i < a.length; i++) {
  19079. _worksStudent[i] = [];
  19080. _worksStudent2[i] = [];
  19081. if (
  19082. !this.isCloseList[i] ||
  19083. this.isCloseList[i].isClose == undefined
  19084. ) {
  19085. this.isCloseList[i] = { isClose: 0 };
  19086. }
  19087. this.groupStudent[i] = [];
  19088. this.groupStudentUid[i] = [];
  19089. if (this.isGroup) {
  19090. for (
  19091. var groupI = 0;
  19092. groupI < this.courseGroup.group.length;
  19093. groupI++
  19094. ) {
  19095. this.courseGroup.group[groupI].works[i] = [];
  19096. }
  19097. }
  19098. this.isWorksS[i] = [];
  19099. this.checkJson[i] = [];
  19100. if (a[i].tool[0] == 49) {
  19101. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19102. this.groupStudent[i][gA] = [];
  19103. this.groupStudentUid[i][gA] = [];
  19104. _worksStudent[i][gA] = [];
  19105. _worksStudent2[i][gA] = [];
  19106. this.isCloseList[i][gA] = [];
  19107. for (var g = 0; g < f.length; g++) {
  19108. if (
  19109. f[g].ttype == 2 &&
  19110. this.tcid &&
  19111. this.arrayToArray(
  19112. f[g].classid ? f[g].classid.split(",") : [],
  19113. this.tcid.split(",")
  19114. ).length == 0
  19115. ) {
  19116. continue;
  19117. }
  19118. let _classId = this.arrayToArray(
  19119. this.courseDetail.juri
  19120. ? this.courseDetail.juri.split(",")
  19121. : [],
  19122. this.classId ? this.classId.split(",") : []
  19123. );
  19124. if (
  19125. gA == f[g].group &&
  19126. f[g].tool == i &&
  19127. (this.arrayToArray(
  19128. f[g].classid ? f[g].classid.split(",") : [],
  19129. this.tcid.split(",")
  19130. ).length !== 0 ||
  19131. this.arrayToArray(
  19132. f[g].classid ? f[g].classid.split(",") : [],
  19133. _classId
  19134. ).length !== 0 ||
  19135. (!this.tcid && this.tType == "1") ||
  19136. this.courseDetail.juri === "" ||
  19137. f[g].ttype == 1)
  19138. ) {
  19139. this.groupStudent[i][gA].push(f[g]);
  19140. this.groupStudentUid[i][gA].push(f[g].userid);
  19141. }
  19142. }
  19143. }
  19144. this.$forceUpdate();
  19145. }
  19146. for (var j = 0; j < b.length; j++) {
  19147. if (
  19148. b[j].ttype == 2 &&
  19149. this.tcid &&
  19150. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19151. .length == 0
  19152. ) {
  19153. continue;
  19154. }
  19155. var likesCount = 0;
  19156. var commentCount = 0;
  19157. var isLikes = false;
  19158. var commentJson = [];
  19159. var likeJson = [];
  19160. var data = b[j];
  19161. if (i == b[j].tool) {
  19162. if (data.type == 2 && a[i].tool[0] == 4) {
  19163. // if(JSON.parse(data.content)[0].anwer){
  19164. var checkL =
  19165. JSON.parse(data.content)[0].anwer instanceof Array
  19166. ? JSON.parse(data.content)[0].anwer
  19167. : JSON.parse(data.content)[0].anwer.split(",");
  19168. for (var z = 0; z < checkL.length; z++) {
  19169. if (!this.checkJson[i][z]) {
  19170. this.checkJson[i].push({
  19171. checkCount: [],
  19172. checkPerson: [],
  19173. rightPerson: []
  19174. });
  19175. }
  19176. if (!this.checkJson[i][z].checkCount.length) {
  19177. this.checkJson[i][z].checkCount = [];
  19178. let _askItemCount = JSON.parse(data.content)[0].askJson
  19179. .askJson[z].askItem;
  19180. for (var aic = 0; aic < _askItemCount; aic++) {
  19181. this.checkJson[i][z].checkCount.push(0);
  19182. }
  19183. }
  19184. if (checkL[z] instanceof Array) {
  19185. if (
  19186. JSON.parse(data.content)[0]
  19187. .anwer.sort()
  19188. .join(",") == checkL[z].sort().join(",")
  19189. ) {
  19190. this.checkJson[i][z].rightPerson.push(data.name);
  19191. }
  19192. for (var q = 0; q < checkL[z].length; q++) {
  19193. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19194. ? this.checkJson[i][z].checkPerson[
  19195. parseInt(checkL[z][q])
  19196. ].push(data.name)
  19197. : (this.checkJson[i][z].checkPerson[
  19198. parseInt(checkL[z][q])
  19199. ] = [data.name]);
  19200. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19201. ? this.checkJson[i][z].checkCount[
  19202. parseInt(checkL[z][q])
  19203. ]++
  19204. : (this.checkJson[i][z].checkCount[
  19205. parseInt(checkL[z][q])
  19206. ] = 1);
  19207. }
  19208. } else {
  19209. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19210. this.checkJson[i][z].rightPerson.push(data.name);
  19211. }
  19212. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19213. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19214. ? this.checkJson[i][z].checkPerson[
  19215. parseInt(checkL[z])
  19216. ].push(data.name)
  19217. : (this.checkJson[i][z].checkPerson[
  19218. parseInt(checkL[z])
  19219. ] = [data.name]);
  19220. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19221. ? this.checkJson[i][z].checkCount[
  19222. parseInt(checkL[z])
  19223. ]++
  19224. : (this.checkJson[i][z].checkCount[
  19225. parseInt(checkL[z])
  19226. ] = 1);
  19227. }
  19228. }
  19229. }
  19230. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19231. var checkL = JSON.parse(data.content)[0].anwer;
  19232. for (var z = 0; z < checkL.length; z++) {
  19233. if (!this.checkJson[i][z]) {
  19234. this.checkJson[i].push({
  19235. checkCount: [],
  19236. checkPerson: [],
  19237. rightPerson: []
  19238. });
  19239. }
  19240. if (!this.checkJson[i][z].checkCount.length) {
  19241. this.checkJson[i][z].checkCount = [];
  19242. let _askItemCount = JSON.parse(data.content)[0].testJson
  19243. .testJson[z].testItem;
  19244. for (var aic = 0; aic < _askItemCount; aic++) {
  19245. this.checkJson[i][z].checkCount.push(0);
  19246. }
  19247. }
  19248. if (checkL[z] instanceof Array) {
  19249. if (
  19250. JSON.parse(data.content)[0]
  19251. .testJson.testJson[z].answer.sort()
  19252. .join(",") == checkL[z].sort().join(",")
  19253. ) {
  19254. this.checkJson[i][z].rightPerson.push(data.name);
  19255. }
  19256. for (var q = 0; q < checkL[z].length; q++) {
  19257. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19258. ? this.checkJson[i][z].checkPerson[
  19259. parseInt(checkL[z][q])
  19260. ].push(data.name)
  19261. : (this.checkJson[i][z].checkPerson[
  19262. parseInt(checkL[z][q])
  19263. ] = [data.name]);
  19264. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19265. ? this.checkJson[i][z].checkCount[
  19266. parseInt(checkL[z][q])
  19267. ]++
  19268. : (this.checkJson[i][z].checkCount[
  19269. parseInt(checkL[z][q])
  19270. ] = 1);
  19271. }
  19272. } else {
  19273. if (
  19274. JSON.parse(data.content)[0].testJson.testJson[z]
  19275. .answer == checkL[z]
  19276. ) {
  19277. this.checkJson[i][z].rightPerson.push(data.name);
  19278. }
  19279. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19280. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19281. ? this.checkJson[i][z].checkPerson[
  19282. parseInt(checkL[z])
  19283. ].push(data.name)
  19284. : (this.checkJson[i][z].checkPerson[
  19285. parseInt(checkL[z])
  19286. ] = [data.name]);
  19287. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19288. ? this.checkJson[i][z].checkCount[
  19289. parseInt(checkL[z])
  19290. ]++
  19291. : (this.checkJson[i][z].checkCount[
  19292. parseInt(checkL[z])
  19293. ] = 1);
  19294. }
  19295. }
  19296. }
  19297. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19298. var checkL = JSON.parse(data.content);
  19299. for (var z = 0; z < checkL.length; z++) {
  19300. if (!this.checkJson[i][z]) {
  19301. this.checkJson[i].push({
  19302. checkCount: [],
  19303. checkPerson: [],
  19304. rightPerson: []
  19305. });
  19306. }
  19307. this.checkJson[i][z].checkPerson.push(data.name);
  19308. if (
  19309. checkL[z].chooseSenList.toString() ==
  19310. checkL[z].rightAnswer.toString()
  19311. ) {
  19312. this.checkJson[i][z].rightPerson.push(data.name);
  19313. }
  19314. }
  19315. }
  19316. for (var k = 0; k < d.length; k++) {
  19317. //点赞
  19318. if (d[k].workId == b[j].id) {
  19319. likesCount++;
  19320. likeJson.push(d[k]);
  19321. if (d[k].likesId == this.userid) {
  19322. isLikes = true;
  19323. }
  19324. }
  19325. }
  19326. for (var l = 0; l < e.length; l++) {
  19327. //评论
  19328. if (e[l].workId == b[j].id) {
  19329. if (e[l].comment != "") {
  19330. commentCount++;
  19331. commentJson.push({
  19332. commentText: e[l].comment,
  19333. commentTime: e[l].commentTime,
  19334. commentPeople: e[l].commentPeople,
  19335. userid: e[l].userid,
  19336. wid: e[l].id
  19337. });
  19338. }
  19339. }
  19340. }
  19341. if (
  19342. (b[j].type == 1 ||
  19343. b[j].type == 4 ||
  19344. b[j].type == 5 ||
  19345. b[j].type == 6 ||
  19346. b[j].type == 12 ||
  19347. b[j].type == 7) &&
  19348. a[i].tool[0] != 15 &&
  19349. a[i].tool[0] != 4 &&
  19350. a[i].tool[0] != 45 &&
  19351. a[i].tool[0] != 50 &&
  19352. a[i].tool[0] != 32 &&
  19353. a[i].tool[0] != 57 &&
  19354. a[i].tool[0] != 52
  19355. ) {
  19356. if (
  19357. c.indexOf(
  19358. b[j].content
  19359. .split(".")
  19360. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19361. ) != -1 &&
  19362. a[i].tool[0] == 16 &&
  19363. b[j].atool != 50
  19364. ) {
  19365. let _works = {
  19366. userid: b[j].userid,
  19367. ateacher: b[j].ateacher,
  19368. wid: b[j].id,
  19369. works: b[j].content,
  19370. sName: b[j].name,
  19371. type: 1,
  19372. ttype: b[j].ttype,
  19373. time: b[j].time,
  19374. score: b[j].score,
  19375. img: b[j].img,
  19376. likesCount: likesCount,
  19377. commentCount: commentCount,
  19378. isLikes: isLikes,
  19379. commentJson: commentJson,
  19380. likeJson: likeJson
  19381. };
  19382. if (this.isGroup) {
  19383. let isGw = 1;
  19384. for (
  19385. var groupI = 0;
  19386. groupI < this.courseGroup.group.length;
  19387. groupI++
  19388. ) {
  19389. let gid = this.courseGroup.group[groupI].id;
  19390. if (
  19391. this.courseGroupStudentUid[gid].indexOf(
  19392. b[j].userid
  19393. ) != -1
  19394. ) {
  19395. isGw = 2;
  19396. this.courseGroup.group[groupI].works[i].push(_works);
  19397. break;
  19398. }
  19399. }
  19400. if (isGw == 1) {
  19401. _worksStudent[i].push(_works);
  19402. }
  19403. } else {
  19404. _worksStudent[i].push(_works);
  19405. }
  19406. _worksStudent2[i].push(_works);
  19407. this.isWorksS[i].push({
  19408. uid: b[j].userid,
  19409. sName: b[j].name
  19410. });
  19411. } else if (
  19412. y.indexOf(
  19413. b[j].content
  19414. .split(".")
  19415. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19416. ) != -1 &&
  19417. a[i].tool[0] == 16 &&
  19418. b[j].atool != 50
  19419. ) {
  19420. let _works = {
  19421. userid: b[j].userid,
  19422. ateacher: b[j].ateacher,
  19423. wid: b[j].id,
  19424. works: b[j].content,
  19425. sName: b[j].name,
  19426. type: 3,
  19427. ttype: b[j].ttype,
  19428. time: b[j].time,
  19429. score: b[j].score,
  19430. img: b[j].img,
  19431. likesCount: likesCount,
  19432. commentCount: commentCount,
  19433. isLikes: isLikes,
  19434. commentJson: commentJson,
  19435. likeJson: likeJson
  19436. };
  19437. if (this.isGroup) {
  19438. let isGw = 1;
  19439. for (
  19440. var groupI = 0;
  19441. groupI < this.courseGroup.group.length;
  19442. groupI++
  19443. ) {
  19444. let gid = this.courseGroup.group[groupI].id;
  19445. if (
  19446. this.courseGroupStudentUid[gid].indexOf(
  19447. b[j].userid
  19448. ) != -1
  19449. ) {
  19450. isGw = 2;
  19451. this.courseGroup.group[groupI].works[i].push(_works);
  19452. break;
  19453. }
  19454. }
  19455. if (isGw == 1) {
  19456. _worksStudent[i].push(_works);
  19457. }
  19458. } else {
  19459. _worksStudent[i].push(_works);
  19460. }
  19461. _worksStudent2[i].push(_works);
  19462. this.isWorksS[i].push({
  19463. uid: b[j].userid,
  19464. sName: b[j].name
  19465. });
  19466. } else if (b[j].type == 6 && b[j].atool != 50) {
  19467. let _works = {
  19468. userid: b[j].userid,
  19469. ateacher: b[j].ateacher,
  19470. wid: b[j].id,
  19471. works: b[j].content,
  19472. sName: b[j].name,
  19473. type: 4,
  19474. ttype: b[j].ttype,
  19475. time: b[j].time,
  19476. score: b[j].score,
  19477. img: b[j].img,
  19478. likesCount: likesCount,
  19479. commentCount: commentCount,
  19480. isLikes: isLikes,
  19481. commentJson: commentJson,
  19482. likeJson: likeJson
  19483. };
  19484. _worksStudent[i].push(_works);
  19485. _worksStudent2[i].push(_works);
  19486. this.isWorksS[i].push({
  19487. uid: b[j].userid,
  19488. sName: b[j].name
  19489. });
  19490. } else if (b[j].type == 7 && b[j].atool != 50) {
  19491. let _work = {
  19492. userid: b[j].userid,
  19493. ateacher: b[j].ateacher,
  19494. wid: b[j].id,
  19495. works: b[j].content,
  19496. sName: b[j].name,
  19497. type: 5,
  19498. ttype: b[j].ttype,
  19499. time: b[j].time,
  19500. score: b[j].score,
  19501. img: b[j].img,
  19502. likesCount: likesCount,
  19503. commentCount: commentCount,
  19504. isLikes: isLikes,
  19505. commentJson: commentJson,
  19506. likeJson: likeJson
  19507. };
  19508. _worksStudent[i].push(_work);
  19509. _worksStudent2[i].push(_work);
  19510. this.isWorksS[i].push({
  19511. uid: b[j].userid,
  19512. sName: b[j].name
  19513. });
  19514. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19515. let _works = {
  19516. userid: b[j].userid,
  19517. ateacher: b[j].ateacher,
  19518. wid: b[j].id,
  19519. works: b[j].content,
  19520. sName: b[j].name,
  19521. type: 12,
  19522. ttype: b[j].ttype,
  19523. time: b[j].time,
  19524. score: b[j].score,
  19525. img: b[j].img,
  19526. likesCount: likesCount,
  19527. commentCount: commentCount,
  19528. isLikes: isLikes,
  19529. commentJson: commentJson,
  19530. likeJson: likeJson
  19531. };
  19532. if (this.isGroup) {
  19533. let isGw = 1;
  19534. for (
  19535. var groupI = 0;
  19536. groupI < this.courseGroup.group.length;
  19537. groupI++
  19538. ) {
  19539. let gid = this.courseGroup.group[groupI].id;
  19540. if (
  19541. this.courseGroupStudentUid[gid].indexOf(
  19542. b[j].userid
  19543. ) != -1
  19544. ) {
  19545. isGw = 2;
  19546. this.courseGroup.group[groupI].works[i].push(_works);
  19547. break;
  19548. }
  19549. }
  19550. if (isGw == 1) {
  19551. _worksStudent[i].push(_works);
  19552. }
  19553. } else {
  19554. _worksStudent[i].push(_works);
  19555. }
  19556. _worksStudent2[i].push(_works);
  19557. this.isWorksS[i].push({
  19558. uid: b[j].userid,
  19559. sName: b[j].name
  19560. });
  19561. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19562. let _works = {
  19563. userid: b[j].userid,
  19564. ateacher: b[j].ateacher,
  19565. wid: b[j].id,
  19566. works: b[j].content,
  19567. sName: b[j].name,
  19568. type: 0,
  19569. ttype: b[j].ttype,
  19570. time: b[j].time,
  19571. score: b[j].score,
  19572. img: b[j].img,
  19573. likesCount: likesCount,
  19574. commentCount: commentCount,
  19575. isLikes: isLikes,
  19576. commentJson: commentJson,
  19577. likeJson: likeJson
  19578. };
  19579. if (this.isGroup) {
  19580. let isGw = 1;
  19581. for (
  19582. var groupI = 0;
  19583. groupI < this.courseGroup.group.length;
  19584. groupI++
  19585. ) {
  19586. let gid = this.courseGroup.group[groupI].id;
  19587. if (
  19588. this.courseGroupStudentUid[gid].indexOf(
  19589. b[j].userid
  19590. ) != -1
  19591. ) {
  19592. isGw = 2;
  19593. this.courseGroup.group[groupI].works[i].push(_works);
  19594. break;
  19595. }
  19596. }
  19597. if (isGw == 1) {
  19598. _worksStudent[i].push(_works);
  19599. }
  19600. } else {
  19601. _worksStudent[i].push(_works);
  19602. }
  19603. _worksStudent2[i].push(_works);
  19604. this.isWorksS[i].push({
  19605. uid: b[j].userid,
  19606. sName: b[j].name
  19607. });
  19608. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19609. let _works = {
  19610. userid: b[j].userid,
  19611. ateacher: b[j].ateacher,
  19612. wid: b[j].id,
  19613. works: b[j].content,
  19614. sName: b[j].name,
  19615. type: 0,
  19616. ttype: b[j].ttype,
  19617. time: b[j].time,
  19618. score: b[j].score,
  19619. img: b[j].img,
  19620. likesCount: likesCount,
  19621. commentCount: commentCount,
  19622. isLikes: isLikes,
  19623. commentJson: commentJson,
  19624. likeJson: likeJson
  19625. };
  19626. if (this.isGroup) {
  19627. let isGw = 1;
  19628. for (
  19629. var groupI = 0;
  19630. groupI < this.courseGroup.group.length;
  19631. groupI++
  19632. ) {
  19633. let gid = this.courseGroup.group[groupI].id;
  19634. if (
  19635. this.courseGroupStudentUid[gid].indexOf(
  19636. b[j].userid
  19637. ) != -1
  19638. ) {
  19639. isGw = 2;
  19640. this.courseGroup.group[groupI].works[i].push(_works);
  19641. break;
  19642. }
  19643. }
  19644. if (isGw == 1) {
  19645. _worksStudent[i].push(_works);
  19646. }
  19647. } else {
  19648. _worksStudent[i].push(_works);
  19649. }
  19650. _worksStudent2[i].push(_works);
  19651. this.isWorksS[i].push({
  19652. uid: b[j].userid,
  19653. sName: b[j].name
  19654. });
  19655. }
  19656. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19657. let _works = {
  19658. userid: b[j].userid,
  19659. ateacher: b[j].ateacher,
  19660. wid: b[j].id,
  19661. works: b[j].content,
  19662. sName: b[j].name,
  19663. type: 2,
  19664. ttype: b[j].ttype,
  19665. time: b[j].time,
  19666. score: b[j].score,
  19667. img: b[j].img,
  19668. likesCount: likesCount,
  19669. commentCount: commentCount,
  19670. isLikes: isLikes,
  19671. commentJson: commentJson,
  19672. likeJson: likeJson
  19673. };
  19674. if (this.isGroup) {
  19675. let isGw = 1;
  19676. for (
  19677. var groupI = 0;
  19678. groupI < this.courseGroup.group.length;
  19679. groupI++
  19680. ) {
  19681. let gid = this.courseGroup.group[groupI].id;
  19682. if (
  19683. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19684. -1
  19685. ) {
  19686. isGw = 2;
  19687. this.courseGroup.group[groupI].works[i].push(_works);
  19688. break;
  19689. }
  19690. }
  19691. if (isGw == 1) {
  19692. _worksStudent[i].push(_works);
  19693. }
  19694. } else {
  19695. _worksStudent[i].push(_works);
  19696. }
  19697. _worksStudent2[i].push(_works);
  19698. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19699. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19700. let _works = {
  19701. userid: b[j].userid,
  19702. ateacher: b[j].ateacher,
  19703. wid: b[j].id,
  19704. works: b[j].content,
  19705. sName: b[j].name,
  19706. type: 20,
  19707. ttype: b[j].ttype,
  19708. time: b[j].time,
  19709. score: b[j].score,
  19710. img: b[j].img,
  19711. likesCount: likesCount,
  19712. commentCount: commentCount,
  19713. isLikes: isLikes,
  19714. commentJson: commentJson,
  19715. likeJson: likeJson
  19716. };
  19717. if (this.isGroup) {
  19718. let isGw = 1;
  19719. for (
  19720. var groupI = 0;
  19721. groupI < this.courseGroup.group.length;
  19722. groupI++
  19723. ) {
  19724. let gid = this.courseGroup.group[groupI].id;
  19725. if (
  19726. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19727. -1
  19728. ) {
  19729. isGw = 2;
  19730. this.courseGroup.group[groupI].works[i].push(_works);
  19731. break;
  19732. }
  19733. }
  19734. if (isGw == 1) {
  19735. _worksStudent[i].push(_works);
  19736. }
  19737. } else {
  19738. _worksStudent[i].push(_works);
  19739. }
  19740. _worksStudent2[i].push(_works);
  19741. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19742. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19743. //问卷
  19744. let _work = {
  19745. userid: b[j].userid,
  19746. ateacher: b[j].ateacher,
  19747. wid: b[j].id,
  19748. works: b[j].content,
  19749. sName: b[j].name,
  19750. type: 2,
  19751. ttype: b[j].ttype,
  19752. time: b[j].time,
  19753. score: b[j].score,
  19754. img: b[j].img,
  19755. likesCount: likesCount,
  19756. commentCount: commentCount,
  19757. isLikes: isLikes,
  19758. commentJson: commentJson,
  19759. likeJson: likeJson
  19760. };
  19761. _worksStudent[i].push(_work);
  19762. _worksStudent2[i].push(_work);
  19763. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19764. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19765. //选择题
  19766. let _work = {
  19767. userid: b[j].userid,
  19768. ateacher: b[j].ateacher,
  19769. wid: b[j].id,
  19770. works: b[j].content,
  19771. sName: b[j].name,
  19772. type: 8,
  19773. ttype: b[j].ttype,
  19774. time: b[j].time,
  19775. score: b[j].score,
  19776. img: b[j].img,
  19777. likesCount: likesCount,
  19778. commentCount: commentCount,
  19779. isLikes: isLikes,
  19780. commentJson: commentJson,
  19781. likeJson: likeJson
  19782. };
  19783. _worksStudent[i].push(_work);
  19784. _worksStudent2[i].push(_work);
  19785. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19786. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19787. //选择题
  19788. let _work = {
  19789. userid: b[j].userid,
  19790. ateacher: b[j].ateacher,
  19791. wid: b[j].id,
  19792. works: b[j].content,
  19793. sName: b[j].name,
  19794. type: 9,
  19795. ttype: b[j].ttype,
  19796. time: b[j].time,
  19797. score: b[j].score,
  19798. img: b[j].img,
  19799. likesCount: likesCount,
  19800. commentCount: commentCount,
  19801. isLikes: isLikes,
  19802. commentJson: commentJson,
  19803. likeJson: likeJson
  19804. };
  19805. _worksStudent[i].push(_work);
  19806. _worksStudent2[i].push(_work);
  19807. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19808. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19809. //选择题
  19810. let _work = {
  19811. userid: b[j].userid,
  19812. ateacher: b[j].ateacher,
  19813. wid: b[j].id,
  19814. works: b[j].content,
  19815. sName: b[j].name,
  19816. type: 10,
  19817. ttype: b[j].ttype,
  19818. time: b[j].time,
  19819. score: b[j].score,
  19820. img: b[j].img,
  19821. likesCount: likesCount,
  19822. commentCount: commentCount,
  19823. isLikes: isLikes,
  19824. commentJson: commentJson,
  19825. likeJson: likeJson
  19826. };
  19827. _worksStudent[i].push(_work);
  19828. _worksStudent2[i].push(_work);
  19829. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19830. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19831. //选择题
  19832. let _work = {
  19833. userid: b[j].userid,
  19834. ateacher: b[j].ateacher,
  19835. wid: b[j].id,
  19836. works: b[j].content,
  19837. sName: b[j].name,
  19838. type: 13,
  19839. ttype: b[j].ttype,
  19840. time: b[j].time,
  19841. score: b[j].score,
  19842. img: b[j].img,
  19843. likesCount: likesCount,
  19844. commentCount: commentCount,
  19845. isLikes: isLikes,
  19846. commentJson: commentJson,
  19847. likeJson: likeJson
  19848. };
  19849. _worksStudent[i].push(_work);
  19850. _worksStudent2[i].push(_work);
  19851. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19852. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19853. //选择题
  19854. let _work = {
  19855. userid: b[j].userid,
  19856. ateacher: b[j].ateacher,
  19857. wid: b[j].id,
  19858. works: b[j].content,
  19859. sName: b[j].name,
  19860. type: 16,
  19861. ttype: b[j].ttype,
  19862. time: b[j].time,
  19863. score: b[j].score,
  19864. img: b[j].img,
  19865. likesCount: likesCount,
  19866. commentCount: commentCount,
  19867. isLikes: isLikes,
  19868. commentJson: commentJson,
  19869. aiCode: b[j].aiCode,
  19870. teacherCode: b[j].teacherCode,
  19871. likeJson: likeJson
  19872. };
  19873. _worksStudent[i].push(_work);
  19874. _worksStudent2[i].push(_work);
  19875. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19876. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19877. //选择题
  19878. let _work = {
  19879. userid: b[j].userid,
  19880. ateacher: b[j].ateacher,
  19881. wid: b[j].id,
  19882. works: b[j].content,
  19883. sName: b[j].name,
  19884. type: 17,
  19885. ttype: b[j].ttype,
  19886. time: b[j].time,
  19887. score: b[j].score,
  19888. img: b[j].img,
  19889. likesCount: likesCount,
  19890. commentCount: commentCount,
  19891. isLikes: isLikes,
  19892. commentJson: commentJson,
  19893. likeJson: likeJson
  19894. };
  19895. _worksStudent[i].push(_work);
  19896. _worksStudent2[i].push(_work);
  19897. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19898. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19899. //交互视频
  19900. let _work = {
  19901. userid: b[j].userid,
  19902. ateacher: b[j].ateacher,
  19903. wid: b[j].id,
  19904. works: b[j].content,
  19905. sName: b[j].name,
  19906. type: 14,
  19907. ttype: b[j].ttype,
  19908. time: b[j].time,
  19909. score: b[j].score,
  19910. img: b[j].img,
  19911. likesCount: likesCount,
  19912. commentCount: commentCount,
  19913. isLikes: isLikes,
  19914. commentJson: commentJson,
  19915. likeJson: likeJson
  19916. };
  19917. _worksStudent[i].push(_work);
  19918. _worksStudent2[i].push(_work);
  19919. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19920. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19921. let _gindex = JSON.parse(b[j].content);
  19922. if (
  19923. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19924. b[j].userid
  19925. ) != -1
  19926. ) {
  19927. let _work = {
  19928. userid: b[j].userid,
  19929. ateacher: b[j].ateacher,
  19930. wid: b[j].id,
  19931. works: _gindex.url,
  19932. sName: b[j].name,
  19933. type: _gindex.type,
  19934. ttype: b[j].ttype,
  19935. time: b[j].time,
  19936. score: b[j].score,
  19937. img: b[j].img,
  19938. likesCount: likesCount,
  19939. commentCount: commentCount,
  19940. isLikes: isLikes,
  19941. commentJson: commentJson,
  19942. likeJson: likeJson
  19943. };
  19944. _worksStudent[i][_gindex.groupIndex].push(_work);
  19945. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19946. }
  19947. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19948. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19949. let _work = {
  19950. userid: b[j].userid,
  19951. ateacher: b[j].ateacher,
  19952. wid: b[j].id,
  19953. works: b[j].content,
  19954. sName: b[j].name ? b[j].name : b[j].userid,
  19955. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19956. ttype: b[j].ttype,
  19957. time: b[j].time,
  19958. score: b[j].score,
  19959. img: b[j].img,
  19960. likesCount: likesCount,
  19961. commentCount: commentCount,
  19962. isLikes: isLikes,
  19963. commentJson: commentJson,
  19964. likeJson: likeJson
  19965. };
  19966. _worksStudent[i].push(_work);
  19967. _worksStudent2[i].push(_work);
  19968. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19969. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19970. let _work = {
  19971. userid: b[j].userid,
  19972. ateacher: b[j].ateacher,
  19973. wid: b[j].id,
  19974. works: b[j].content,
  19975. sName: b[j].name ? b[j].name : b[j].userid,
  19976. type: 12,
  19977. ttype: b[j].ttype,
  19978. time: b[j].time,
  19979. score: b[j].score,
  19980. img: b[j].img,
  19981. likesCount: likesCount,
  19982. commentCount: commentCount,
  19983. isLikes: isLikes,
  19984. commentJson: commentJson,
  19985. likeJson: likeJson
  19986. };
  19987. _worksStudent[i].push(_work);
  19988. _worksStudent2[i].push(_work);
  19989. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19990. } else if (
  19991. a[i].tool[0] == 57 &&
  19992. b[j].atool == 57 &&
  19993. b[j].type == 12
  19994. ) {
  19995. let _work = {
  19996. userid: b[j].userid,
  19997. ateacher: b[j].ateacher,
  19998. wid: b[j].id,
  19999. works: b[j].content,
  20000. sName: b[j].name ? b[j].name : b[j].userid,
  20001. type: 12,
  20002. ttype: b[j].ttype,
  20003. time: b[j].time,
  20004. score: b[j].score,
  20005. img: b[j].img,
  20006. likesCount: likesCount,
  20007. commentCount: commentCount,
  20008. isLikes: isLikes,
  20009. commentJson: commentJson,
  20010. likeJson: likeJson
  20011. };
  20012. _worksStudent[i].push(_work);
  20013. _worksStudent2[i].push(_work);
  20014. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20015. } else if (
  20016. a[i].tool[0] == 57 &&
  20017. b[j].atool == 57 &&
  20018. b[j].type == 15
  20019. ) {
  20020. let _work = {
  20021. userid: b[j].userid,
  20022. ateacher: b[j].ateacher,
  20023. wid: b[j].id,
  20024. works: b[j].content,
  20025. sName: b[j].name ? b[j].name : b[j].userid,
  20026. type: 15,
  20027. ttype: b[j].ttype,
  20028. time: b[j].time,
  20029. score: b[j].score,
  20030. img: b[j].img,
  20031. likesCount: likesCount,
  20032. commentCount: commentCount,
  20033. isLikes: isLikes,
  20034. commentJson: commentJson,
  20035. likeJson: likeJson
  20036. };
  20037. _worksStudent[i].push(_work);
  20038. _worksStudent2[i].push(_work);
  20039. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20040. }
  20041. }
  20042. }
  20043. if (_worksStudent[i] && _worksStudent[i].length) {
  20044. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20045. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20046. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20047. var scoreA = parseFloat(jscoreA);
  20048. var scoreB = parseFloat(jscoreB);
  20049. if (scoreA == scoreB) {
  20050. return b.likesCount - a.likesCount;
  20051. }
  20052. return scoreB - scoreA;
  20053. });
  20054. if (this.isGroup) {
  20055. for (
  20056. var groupI = 0;
  20057. groupI < this.courseGroup.group.length;
  20058. groupI++
  20059. ) {
  20060. this.courseGroup.group[groupI].works[
  20061. i
  20062. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20063. a,
  20064. b
  20065. ) {
  20066. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20067. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20068. var scoreA = parseFloat(jscoreA);
  20069. var scoreB = parseFloat(jscoreB);
  20070. if (scoreA == scoreB) {
  20071. return b.likesCount - a.likesCount;
  20072. }
  20073. return scoreB - scoreA;
  20074. });
  20075. }
  20076. }
  20077. }
  20078. }
  20079. this.timeWorkList = _worksStudent2;
  20080. for (var i = 0; i < a.length; i++) {
  20081. for (var j = 0; j < b.length; j++) {
  20082. var data = b[j];
  20083. if (i == b[j].tool) {
  20084. if (data.type == 2 || data.type == 8) {
  20085. for (var z = 0; z < this.checkJson[i].length; z++) {
  20086. this.checkJson[i][z].checkPerent = [];
  20087. this.checkJson[i][z].right = Math.round(
  20088. (this.checkJson[i][z].rightPerson.length /
  20089. parseInt(_worksStudent[i].length)) *
  20090. 100
  20091. );
  20092. let aaaa = this.checkJson[i][z];
  20093. for (
  20094. var k = 0;
  20095. k < this.checkJson[i][z].checkCount.length;
  20096. k++
  20097. ) {
  20098. this.checkJson[i][z].checkPerent.push(
  20099. Math.round(
  20100. (this.checkJson[i][z].checkCount[k] /
  20101. parseInt(_worksStudent[i].length)) *
  20102. 100
  20103. )
  20104. );
  20105. }
  20106. }
  20107. } else if (data.type == 9) {
  20108. for (var z = 0; z < this.checkJson[i].length; z++) {
  20109. this.checkJson[i][z].checkPerent = [];
  20110. this.checkJson[i][z].right = Math.round(
  20111. (this.checkJson[i][z].rightPerson.length /
  20112. this.checkJson[i][z].checkPerson.length) *
  20113. 100
  20114. );
  20115. }
  20116. }
  20117. }
  20118. }
  20119. }
  20120. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20121. this.joinGroup(gindex);
  20122. }
  20123. this.worksStudent = _worksStudent;
  20124. this.selectWorksStudent();
  20125. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20126. this.$nextTick(() => {
  20127. setTimeout(() => {
  20128. setTimeout(() => {
  20129. this.panToolHeight("tool-" + ci);
  20130. }, 500);
  20131. }, 0);
  20132. });
  20133. }
  20134. })
  20135. .catch(err => {
  20136. console.error(err);
  20137. });
  20138. },
  20139. pngToWhiteBg(file) {
  20140. const _file = file;
  20141. let read = new FileReader();
  20142. read.readAsDataURL(file); // 文件转base64
  20143. return new Promise((resolve, reject) => {
  20144. read.onload = (e) => {
  20145. let img = new Image();
  20146. img.src = e.target.result;
  20147. img.onload = async () => {
  20148. // 生成canvas
  20149. let canvas = document.createElement("canvas");
  20150. let context = canvas.getContext("2d");
  20151. // 绘制图片到canvas上
  20152. canvas.width = img.width;
  20153. canvas.height = img.height;
  20154. // 在canvas绘制前填充白色背景
  20155. context.fillStyle = "#fff";
  20156. context.fillRect(0, 0, canvas.width, canvas.height);
  20157. context.drawImage(img, 0, 0);
  20158. let base64 = canvas.toDataURL(file["type"], 1);
  20159. let newFile = this.dataUrlToFile(base64, _file);
  20160. resolve(newFile);
  20161. };
  20162. };
  20163. });
  20164. },
  20165. dataUrlToFile(dataurl, file) {
  20166. let arr = dataurl.split(","),
  20167. mime = arr[0].match(/:(.*?);/)[1],
  20168. bstr = atob(arr[1]),
  20169. n = bstr.length,
  20170. u8arr = new Uint8Array(n);
  20171. while (n--) {
  20172. u8arr[n] = bstr.charCodeAt(n);
  20173. }
  20174. // return new Blob([u8arr], { type: mime });
  20175. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20176. type: mime,
  20177. });
  20178. },
  20179. async beforeUpload1(event, type, i) {
  20180. // this.$message.success('进入上传')
  20181. var file = "";
  20182. if (type == 5) {
  20183. file = event;
  20184. } else {
  20185. file = event.target.files[0];
  20186. }
  20187. var credentials = {
  20188. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20189. secretAccessKey: "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",
  20190. }; //秘钥形式的登录上传
  20191. window.AWS.config.update(credentials);
  20192. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20193. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20194. var _this = this;
  20195. _this.progress = 0;
  20196. _this.proVisible = true;
  20197. _this.isFinishSize = 0;
  20198. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20199. var b = [
  20200. "DOC",
  20201. "DOCX",
  20202. "DOCM",
  20203. "DOTM",
  20204. "DOTX",
  20205. "PPTX",
  20206. "PPSX",
  20207. "PPT",
  20208. "PPS",
  20209. "PPTM",
  20210. "POTM",
  20211. "PPAM",
  20212. "POTX",
  20213. "PPSM",
  20214. ];
  20215. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20216. var photoA = [
  20217. "BMP",
  20218. "GIF",
  20219. "PNG",
  20220. "JPEG",
  20221. "JPEG",
  20222. "JPG",
  20223. "TIF",
  20224. "PCX",
  20225. "TGA",
  20226. "EXIF",
  20227. "FPX",
  20228. "SVG",
  20229. "APNG",
  20230. ];
  20231. // if (
  20232. // b.indexOf(
  20233. // file.name
  20234. // .split(".")
  20235. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20236. // ) != -1
  20237. // ) {
  20238. // if (file.size / 1024 / 1024 > 10) {
  20239. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20240. // return;
  20241. // }
  20242. // } else if (
  20243. // excelA.indexOf(
  20244. // file.name
  20245. // .split(".")
  20246. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20247. // ) != "-1"
  20248. // ) {
  20249. // if (file.size / 1024 / 1024 > 5) {
  20250. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20251. // return;
  20252. // }
  20253. // }
  20254. if (
  20255. photoA.indexOf(
  20256. file.name
  20257. .split(".")
  20258. [file.name.split(".").length - 1].toLocaleUpperCase()
  20259. ) != -1 &&
  20260. type != 4
  20261. ) {
  20262. // const blob = await imageConversion.compress(file, 0.8)
  20263. file = await this.pngToWhiteBg(file);
  20264. const blob = await imageConversion.compressAccurately(file, 256);
  20265. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20266. file = new File([blob], file.name, { type: file.type });
  20267. }
  20268. if (file) {
  20269. var params = {
  20270. Key:
  20271. file.name.split(".")[0] +
  20272. new Date().getTime() +
  20273. "." +
  20274. file.name.split(".")[file.name.split(".").length - 1],
  20275. ContentType: file.type,
  20276. Body: file,
  20277. "Access-Control-Allow-Credentials": "*",
  20278. ACL: "public-read",
  20279. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20280. var options = {
  20281. // partSize: 2048 * 1024 * 1024,
  20282. partSize: 1024 * 1024 * 1024,
  20283. queueSize: 2,
  20284. leavePartsOnError: true,
  20285. };
  20286. bucket
  20287. .upload(params, options)
  20288. .on("httpUploadProgress", function (evt) {
  20289. //这里可以写进度条
  20290. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20291. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20292. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20293. })
  20294. .send(function (err, data) {
  20295. _this.progress = 100;
  20296. _this.isFinishSize = _this.isAllSize;
  20297. setTimeout(() => {
  20298. _this.proVisible = false;
  20299. }, 1000);
  20300. if (err) {
  20301. var a = _this.$refs.upload1.uploadFiles;
  20302. a.splice(a.length - 1, a.length);
  20303. _this.$message.error("上传失败");
  20304. } else {
  20305. // _this.$message.success('上传成功')
  20306. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20307. var c = [
  20308. "AVI",
  20309. "NAVI",
  20310. "MPEG",
  20311. "ASF",
  20312. "MOV",
  20313. "WMV",
  20314. "3GP",
  20315. "RM",
  20316. "RMVB",
  20317. "FLV",
  20318. "F4V",
  20319. "H.264",
  20320. "H.265",
  20321. "REAL VIDEO",
  20322. "MKV",
  20323. "WebM",
  20324. "HDDVD",
  20325. "MP4",
  20326. "MPG",
  20327. "M4V",
  20328. "MGV",
  20329. "OGV",
  20330. "QTM",
  20331. "STR",
  20332. "AMC",
  20333. "DVX",
  20334. "EVO",
  20335. "DAT",
  20336. "OGG",
  20337. "OGM",
  20338. ];
  20339. if (type == 1) {
  20340. _this.studyJuri[0].cover.push({
  20341. name: file.name,
  20342. url: data.Location,
  20343. uid: file.uid,
  20344. });
  20345. if (
  20346. c.indexOf(
  20347. _this.studyJuri[0].cover[0].url
  20348. .split(".")
  20349. [
  20350. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20351. ].toLocaleUpperCase()
  20352. ) != -1
  20353. ) {
  20354. _this.fileType = 2;
  20355. } else if (
  20356. b.indexOf(
  20357. _this.studyJuri[0].cover[0].url
  20358. .split(".")
  20359. [
  20360. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20361. ].toLocaleUpperCase()
  20362. ) != -1
  20363. ) {
  20364. _this.fileType = 1;
  20365. } else if (
  20366. photoA.indexOf(
  20367. _this.studyJuri[0].cover[0].url
  20368. .split(".")
  20369. [
  20370. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20371. ].toLocaleUpperCase()
  20372. ) != -1
  20373. ) {
  20374. _this.fileType = 0;
  20375. } else {
  20376. _this.fileType = 3;
  20377. }
  20378. _this.imgChange(null, null, type);
  20379. } else if (type == 2) {
  20380. _this.upToolImg = data.Location;
  20381. _this.imgChange(null, null, type);
  20382. _this.addCourseWorks(i);
  20383. } else if (type == 4) {
  20384. _this.addPz("3", data.Location);
  20385. } else if (type == 5) {
  20386. _this.addImgDrawImG(data.Location);
  20387. } else if (type == 6) {
  20388. var _ftype = 1;
  20389. if (
  20390. c.indexOf(
  20391. data.Location.split(".")[
  20392. data.Location.split(".").length - 1
  20393. ].toLocaleUpperCase()
  20394. ) != -1
  20395. ) {
  20396. _ftype = 5;
  20397. } else if (
  20398. b.indexOf(
  20399. data.Location.split(".")[
  20400. data.Location.split(".").length - 1
  20401. ].toLocaleUpperCase()
  20402. ) != -1
  20403. ) {
  20404. _ftype = 4;
  20405. } else {
  20406. _ftype = 1;
  20407. }
  20408. _this.plworkFile.push({
  20409. name: file.name,
  20410. url: data.Location,
  20411. uid: file.uid,
  20412. fileType: _ftype,
  20413. username:
  20414. _this.plworkFile.length > 10
  20415. ? _this.plworkFile.length + 1
  20416. : "0" + (_this.plworkFile.length + 1),
  20417. });
  20418. } else if (type == 7) {
  20419. _this.addCourseWorksGong(i, data.Location, 32);
  20420. } else if (type == 8) {
  20421. _this.addCourseWorksGong(i, data.Location, 57);
  20422. }
  20423. _this.imgChange(null, null, type);
  20424. console.log(data.Location);
  20425. // _this.$message.success('上传成功'+data.Location)
  20426. }
  20427. });
  20428. }
  20429. },
  20430. async beforeUpload3(event, type, i) {
  20431. // this.$message.success('进入上传')
  20432. let file = "";
  20433. let cfindex2 = 0;
  20434. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20435. file = event.target.files[cfindex];
  20436. var credentials = {
  20437. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20438. secretAccessKey: "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",
  20439. }; //秘钥形式的登录上传
  20440. window.AWS.config.update(credentials);
  20441. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20442. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20443. var _this = this;
  20444. // _this.progress = 0;
  20445. _this.proVisible2 = true;
  20446. var b = [
  20447. "DOC",
  20448. "DOCX",
  20449. "DOCM",
  20450. "DOTM",
  20451. "DOTX",
  20452. "PPTX",
  20453. "PPSX",
  20454. "PPT",
  20455. "PPS",
  20456. "PPTM",
  20457. "POTM",
  20458. "PPAM",
  20459. "POTX",
  20460. "PPSM",
  20461. ];
  20462. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20463. var photoA = [
  20464. "BMP",
  20465. "GIF",
  20466. "PNG",
  20467. "JPEG",
  20468. "JPG",
  20469. "TIF",
  20470. "PCX",
  20471. "TGA",
  20472. "EXIF",
  20473. "FPX",
  20474. "SVG",
  20475. "APNG",
  20476. ];
  20477. if (
  20478. photoA.indexOf(
  20479. file.name
  20480. .split(".")
  20481. [file.name.split(".").length - 1].toLocaleUpperCase()
  20482. ) != -1 &&
  20483. type != 4
  20484. ) {
  20485. // const blob = await imageConversion.compress(file, 0.8)
  20486. file = await this.pngToWhiteBg(file);
  20487. const blob = await imageConversion.compressAccurately(file, 256);
  20488. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20489. file = new File([blob], file.name, { type: file.type });
  20490. }
  20491. if (file) {
  20492. var params = {
  20493. Key:
  20494. file.name.split(".")[0] +
  20495. new Date().getTime() +
  20496. "." +
  20497. file.name.split(".")[file.name.split(".").length - 1],
  20498. ContentType: file.type,
  20499. Body: file,
  20500. "Access-Control-Allow-Credentials": "*",
  20501. ACL: "public-read",
  20502. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20503. var options = {
  20504. // partSize: 2048 * 1024 * 1024,
  20505. partSize: 1024 * 1024 * 1024,
  20506. queueSize: 2,
  20507. leavePartsOnError: true,
  20508. };
  20509. bucket
  20510. .upload(params, options)
  20511. .on("httpUploadProgress", function (evt) {
  20512. //这里可以写进度条
  20513. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20514. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20515. })
  20516. .send(function (err, data) {
  20517. // _this.progress = 100;
  20518. cfindex2++;
  20519. setTimeout(() => {
  20520. if (
  20521. cfindex2 == event.target.files.length - 1 ||
  20522. cfindex2 > event.target.files.length - 1
  20523. ) {
  20524. _this.proVisible2 = false;
  20525. }
  20526. }, 1000);
  20527. if (err) {
  20528. var a = _this.$refs.upload1.uploadFiles;
  20529. a.splice(a.length - 1, a.length);
  20530. _this.$message.error("上传失败");
  20531. } else {
  20532. // _this.$message.success('上传成功')
  20533. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20534. var c = [
  20535. "AVI",
  20536. "NAVI",
  20537. "MPEG",
  20538. "ASF",
  20539. "MOV",
  20540. "WMV",
  20541. "3GP",
  20542. "RM",
  20543. "RMVB",
  20544. "FLV",
  20545. "F4V",
  20546. "H.264",
  20547. "H.265",
  20548. "REAL VIDEO",
  20549. "MKV",
  20550. "WebM",
  20551. "HDDVD",
  20552. "MP4",
  20553. "MPG",
  20554. "M4V",
  20555. "MGV",
  20556. "OGV",
  20557. "QTM",
  20558. "STR",
  20559. "AMC",
  20560. "DVX",
  20561. "EVO",
  20562. "DAT",
  20563. "OGG",
  20564. "OGM",
  20565. ];
  20566. if (type == 1) {
  20567. _this.studyJuri[0].cover.push({
  20568. name: file.name,
  20569. url: data.Location,
  20570. uid: file.uid,
  20571. });
  20572. if (
  20573. c.indexOf(
  20574. _this.studyJuri[0].cover[0].url
  20575. .split(".")
  20576. [
  20577. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20578. ].toLocaleUpperCase()
  20579. ) != -1
  20580. ) {
  20581. _this.fileType = 2;
  20582. } else if (
  20583. b.indexOf(
  20584. _this.studyJuri[0].cover[0].url
  20585. .split(".")
  20586. [
  20587. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20588. ].toLocaleUpperCase()
  20589. ) != -1
  20590. ) {
  20591. _this.fileType = 1;
  20592. } else {
  20593. _this.fileType = 0;
  20594. }
  20595. _this.imgChange(null, null, type);
  20596. } else if (type == 2) {
  20597. _this.upToolImg = data.Location;
  20598. _this.imgChange(null, null, type);
  20599. _this.addCourseWorks(i);
  20600. } else if (type == 4) {
  20601. _this.addPz("3", data.Location);
  20602. } else if (type == 5) {
  20603. _this.addImgDrawImG(data.Location);
  20604. } else if (type == 6) {
  20605. var _ftype = 1;
  20606. if (
  20607. c.indexOf(
  20608. data.Location.split(".")[
  20609. data.Location.split(".").length - 1
  20610. ].toLocaleUpperCase()
  20611. ) != -1
  20612. ) {
  20613. _ftype = 5;
  20614. } else if (
  20615. b.indexOf(
  20616. data.Location.split(".")[
  20617. data.Location.split(".").length - 1
  20618. ].toLocaleUpperCase()
  20619. ) != -1
  20620. ) {
  20621. _ftype = 4;
  20622. } else {
  20623. _ftype = 1;
  20624. }
  20625. _this.plworkFile.push({
  20626. name: file.name,
  20627. url: data.Location,
  20628. uid: file.uid,
  20629. fileType: _ftype,
  20630. username:
  20631. _this.plworkFile.length + 1 > 9
  20632. ? _this.plworkFile.length + 1
  20633. : "0" + (_this.plworkFile.length + 1),
  20634. });
  20635. }
  20636. _this.imgChange(null, null, type);
  20637. console.log(data.Location);
  20638. // _this.$message.success('上传成功'+data.Location)
  20639. }
  20640. });
  20641. }
  20642. }
  20643. },
  20644. beforeUpload2(event, type) {
  20645. var file = event.target.files[0];
  20646. var credentials = {
  20647. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20648. secretAccessKey: "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",
  20649. }; //秘钥形式的登录上传
  20650. window.AWS.config.update(credentials);
  20651. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20652. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20653. var _this = this;
  20654. _this.progress = 0;
  20655. _this.proVisible = true;
  20656. if (file) {
  20657. var params = {
  20658. Key:
  20659. file.name.split(".")[0] +
  20660. new Date().getTime() +
  20661. "." +
  20662. file.name.split(".")[file.name.split(".").length - 1],
  20663. ContentType: file.type,
  20664. Body: file,
  20665. "Access-Control-Allow-Credentials": "*",
  20666. ACL: "public-read",
  20667. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20668. var options = {
  20669. partSize: 2048 * 1024 * 1024,
  20670. queueSize: 2,
  20671. leavePartsOnError: true,
  20672. };
  20673. bucket
  20674. .upload(params, options)
  20675. .on("httpUploadProgress", function (evt) {
  20676. //这里可以写进度条
  20677. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20678. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20679. })
  20680. .send(function (err, data) {
  20681. _this.progress = 100;
  20682. setTimeout(() => {
  20683. _this.proVisible = false;
  20684. }, 1000);
  20685. if (err) {
  20686. var a = _this.$refs.upload1.uploadFiles;
  20687. a.splice(a.length - 1, a.length);
  20688. _this.$message.error("上传失败");
  20689. } else {
  20690. if (type == 2) {
  20691. _this.studyJuri[0].upVedio.push({
  20692. name: file.name,
  20693. url: data.Location,
  20694. uid: file.uid,
  20695. });
  20696. _this.imgChange(null, null, type);
  20697. } else if (type == 3) {
  20698. _this.studyJuri[0].upFile.push({
  20699. name: file.name,
  20700. url: data.Location,
  20701. uid: file.uid,
  20702. });
  20703. _this.imgChange(null, null, type);
  20704. }
  20705. console.log(data.Location);
  20706. }
  20707. });
  20708. }
  20709. },
  20710. allScrell() {
  20711. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20712. },
  20713. nextOrpreSteps(t) {
  20714. if (this.IsFollow && this.tType == 2) {
  20715. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20716. return;
  20717. }
  20718. var b = this.chapInfoList.length - 1;
  20719. if (t == 0) {
  20720. if (this.courseType == 0) {
  20721. if (this.taskCount == 0) {
  20722. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20723. if (this.IsLookOpen) {
  20724. if (
  20725. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20726. ) {
  20727. if (
  20728. this.courseDetail.userid != this.userid &&
  20729. (!this.courseDetail.course_teacher ||
  20730. (this.courseDetail.course_teacher &&
  20731. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20732. ) {
  20733. this.$message.error("任务未解锁");
  20734. } else {
  20735. this.$message.error("上一任务未解锁");
  20736. }
  20737. return;
  20738. }
  20739. }
  20740. this.navList[this.courseType].isOpen = false;
  20741. this.courseType = b;
  20742. this.taskCount =
  20743. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20744. .length - 1;
  20745. this.navList[this.courseType].isOpen = true;
  20746. } else {
  20747. this.taskCount--;
  20748. }
  20749. } else {
  20750. if (this.taskCount == 0) {
  20751. this.navList[this.courseType].isOpen = false;
  20752. this.courseType--;
  20753. this.taskCount =
  20754. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20755. .length - 1;
  20756. this.navList[this.courseType].isOpen = true;
  20757. } else {
  20758. this.taskCount--;
  20759. }
  20760. }
  20761. } else {
  20762. if (this.courseType == b) {
  20763. if (
  20764. this.taskCount ==
  20765. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20766. 1
  20767. ) {
  20768. this.navList[this.courseType].isOpen = false;
  20769. this.courseType = 0;
  20770. this.taskCount = 0;
  20771. this.navList[this.courseType].isOpen = true;
  20772. } else {
  20773. var bbb = parseInt(this.taskCount) + 1;
  20774. if (
  20775. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20776. .isLook &&
  20777. this.courseDetail.userid != this.userid &&
  20778. (!this.courseDetail.course_teacher ||
  20779. (this.courseDetail.course_teacher &&
  20780. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20781. this.IsLookOpen
  20782. ) {
  20783. this.$message.error("任务未解锁");
  20784. return;
  20785. }
  20786. this.taskCount++;
  20787. if (this.IsLookOpen) {
  20788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20789. this.taskCount
  20790. ].isLook = true;
  20791. this.addCourseState(3);
  20792. }
  20793. }
  20794. } else {
  20795. if (
  20796. this.taskCount ==
  20797. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20798. 1
  20799. ) {
  20800. var bbb = parseInt(this.courseType) + 1;
  20801. if (
  20802. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20803. this.courseDetail.userid != this.userid &&
  20804. (!this.courseDetail.course_teacher ||
  20805. (this.courseDetail.course_teacher &&
  20806. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20807. this.IsLookOpen
  20808. ) {
  20809. this.$message.error("任务未解锁");
  20810. return;
  20811. }
  20812. this.navList[this.courseType].isOpen = false;
  20813. this.courseType++;
  20814. this.taskCount = 0;
  20815. this.navList[this.courseType].isOpen = true;
  20816. } else {
  20817. var bbb = parseInt(this.taskCount) + 1;
  20818. if (
  20819. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20820. .isLook &&
  20821. this.courseDetail.userid != this.userid &&
  20822. (!this.courseDetail.course_teacher ||
  20823. (this.courseDetail.course_teacher &&
  20824. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20825. this.IsLookOpen
  20826. ) {
  20827. this.$message.error("任务未解锁");
  20828. return;
  20829. }
  20830. this.taskCount++;
  20831. }
  20832. if (this.IsLookOpen) {
  20833. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20834. this.taskCount
  20835. ].isLook = true;
  20836. this.addCourseState(3);
  20837. }
  20838. }
  20839. // if (
  20840. // this.taskCount ==
  20841. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20842. // ) {
  20843. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20844. // } else {
  20845. // this.taskCount++;
  20846. // }
  20847. }
  20848. document.scrollingElement.scrollTop = 0;
  20849. // this.showType = 7;
  20850. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20851. // if (this.vedio[this.taskCount].length > 0) {
  20852. // var a =
  20853. // document.getElementsByClassName("box_course")[this.taskCount]
  20854. // .offsetHeight;
  20855. // document.getElementsByClassName("vedioList")[
  20856. // this.taskCount
  20857. // ].style.height = a + "px";
  20858. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20859. // a - 40 + "px";
  20860. // }
  20861. this.isNoHomeWork = false;
  20862. (this.studyJuri = [
  20863. {
  20864. content: "",
  20865. cover: [],
  20866. upVedio: [],
  20867. upFile: [],
  20868. },
  20869. ]),
  20870. (this.radio = []);
  20871. this.isClickNav = "";
  20872. this.selectPz();
  20873. this.getHomeWork();
  20874. this.getCourseDetail(2);
  20875. this.$forceUpdate();
  20876. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  20877. this.setCTask();
  20878. }
  20879. },
  20880. openTask(s, n, i) {
  20881. if (this.IsFollow && this.tType == 2) {
  20882. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20883. return;
  20884. }
  20885. if (this.IsLookOpen &&
  20886. this.courseDetail.userid != this.userid &&
  20887. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20888. if (
  20889. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20890. this.courseDetail.userid != this.userid &&
  20891. (!this.courseDetail.course_teacher ||
  20892. (this.courseDetail.course_teacher &&
  20893. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20894. ) {
  20895. this.$message.error("任务未解锁");
  20896. return;
  20897. }
  20898. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20899. if (
  20900. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20901. .isLook
  20902. ) {
  20903. this.$message.error("上一任务未解锁");
  20904. return;
  20905. }
  20906. } else if (s > this.courseType) {
  20907. if (n > 0) {
  20908. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20909. this.$message.error("上一任务未解锁");
  20910. return;
  20911. }
  20912. } else {
  20913. if (
  20914. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20915. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20916. ].isLook
  20917. ) {
  20918. this.$message.error("上一任务未解锁");
  20919. return;
  20920. }
  20921. }
  20922. }
  20923. }
  20924. if (this.navList[s].task[n].isOpen == true) {
  20925. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20926. return;
  20927. }
  20928. let flag = this.courseType==s;
  20929. this.courseType = s;
  20930. this.navId = i;
  20931. this.taskCount = n;
  20932. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20933. this.navList[this.courseType].task[this.taskCount].isOpen =
  20934. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20935. if (this.IsLookOpen) {
  20936. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20937. this.taskCount
  20938. ].isLook = true;
  20939. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20940. this.addCourseState(3,yym);
  20941. }
  20942. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20943. this.isCloseList[ci].isClose = 0;
  20944. this.isCloseList[ci].isCloseBoolean = false;
  20945. this.$nextTick(()=>{
  20946. setTimeout(()=>{
  20947. setTimeout(()=>{
  20948. this.panToolHeight('tool-'+ci);
  20949. }, 0)
  20950. }, 0)
  20951. })
  20952. }
  20953. // this.showType = 7;
  20954. this.isNoHomeWork = false;
  20955. (this.studyJuri = [
  20956. {
  20957. content: "",
  20958. cover: [],
  20959. upVedio: [],
  20960. upFile: [],
  20961. },
  20962. ]),
  20963. (this.radio = []);
  20964. document.scrollingElement.scrollTop = 0;
  20965. // setTimeout(() => {
  20966. // let a = document.getElementById(i);
  20967. // if (a.offsetTop - 110 == 0) {
  20968. // window.scrollTo(0, 0);
  20969. // } else {
  20970. // window.scrollTo(0, a.offsetTop);
  20971. // }
  20972. // }, 0);
  20973. for (var z = 0; z < this.navList.length; z++) {
  20974. for (var q = 0; q < this.navList[z].task.length; q++) {
  20975. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20976. this.navList[z].task[q].tool[w].isTool = false;
  20977. }
  20978. }
  20979. }
  20980. this.selectPz();
  20981. this.getHomeWork();
  20982. this.getCourseDetail(2);
  20983. if(flag){
  20984. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20985. }else{
  20986. this.insertMemorandum(`进入<span class="variable">阶段${s+1}${this.navList[s].dyName?':'+this.navList[s].dyName:''}</span>→<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20987. }
  20988. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  20989. this.setCTask();
  20990. }
  20991. },
  20992. get(i) {
  20993. if (this.IsFollow && this.tType == 2) {
  20994. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20995. return;
  20996. }
  20997. // for(var k=0;k<this.navList.length;k++){
  20998. // this.navList[k].isOpen = false;
  20999. // }
  21000. // this.navList[i].isOpen = true;
  21001. this.navList[i].isOpen = !this.navList[i].isOpen;
  21002. if (this.navList[i].isOpen) {
  21003. this.openTask(i, 0, i + "-0");
  21004. }
  21005. },
  21006. addQuestion() {
  21007. this.answerList.push({
  21008. answerTitle: this.answerQ,
  21009. answer: this.questionAnswer,
  21010. });
  21011. let params = [
  21012. {
  21013. uid: this.userid,
  21014. cid: this.id,
  21015. stage: this.courseType,
  21016. task: this.taskCount,
  21017. tool: this.toolindex,
  21018. content: JSON.stringify(this.answerList),
  21019. type: 3,
  21020. },
  21021. ];
  21022. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  21023. this.homeWorkLoading = true
  21024. this.ajax
  21025. .post(this.$store.state.api + "addCourseWorks", params)
  21026. .then((res) => {
  21027. this.$message({
  21028. message: "提交成功",
  21029. type: "success",
  21030. });
  21031. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21032. setTimeout(() => {
  21033. this.homeWorkLoading = false
  21034. }, 500);
  21035. this.answerList = [];
  21036. this.answerDialogVisible = false;
  21037. this.selectStudent();
  21038. this.selectSWorks();
  21039. this.selectSLook();
  21040. })
  21041. .catch((err) => {
  21042. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21043. setTimeout(() => {
  21044. this.homeWorkLoading = false
  21045. }, 500);
  21046. this.$message.error("提交失败");
  21047. console.error(err);
  21048. });
  21049. },
  21050. addQuestionTeacher() {
  21051. this.answerList.push({
  21052. answerTitle: this.answerQ,
  21053. answer: this.questionAnswer,
  21054. });
  21055. let params = [
  21056. {
  21057. uid: this.sStudent.userid,
  21058. cid: this.id,
  21059. stage: this.courseType,
  21060. task: this.taskCount,
  21061. tool: this.toolindex,
  21062. content: JSON.stringify(this.answerList),
  21063. type: 3,
  21064. ateacher: this.userid,
  21065. },
  21066. ];
  21067. this.ajax
  21068. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21069. .then((res) => {
  21070. this.$message({
  21071. message: "提交成功",
  21072. type: "success",
  21073. });
  21074. this.answerList = [];
  21075. this.questionAnswer = "";
  21076. this.answerDialogVisibleTeacher = false;
  21077. this.selectStudent();
  21078. this.selectSWorks();
  21079. this.selectSLook();
  21080. })
  21081. .catch((err) => {
  21082. this.$message.error("提交失败");
  21083. console.error(err);
  21084. });
  21085. },
  21086. refreshCourse() {
  21087. // window.location.reload();
  21088. this.navList = [];
  21089. this.getCourseDetail(1);
  21090. },
  21091. getCourseDetail(type, gindex) {
  21092. let loading;
  21093. if (type != 2) {
  21094. loading = this.$loading.service({
  21095. background: "rgba(255, 255, 255, 0.7)",
  21096. target: document.querySelector(".student_table"),
  21097. });
  21098. }
  21099. this.downLoading = false
  21100. // this.navList[0].isOpen = false;
  21101. // this.navList[this.courseType].isOpen = true;
  21102. // this.courseType = this.courseTypeLine;
  21103. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21104. let params = {
  21105. courseId: this.id,
  21106. };
  21107. this.ajax
  21108. .get(this.$store.state.api + "selectCourseDetail3", params)
  21109. .then((res) => {
  21110. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21111. if (type != 2) {
  21112. loading.close();
  21113. if (
  21114. this.courseType >
  21115. JSON.parse(res.data[0][0].chapters).length - 1
  21116. ) {
  21117. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21118. }
  21119. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21120. .chapterInfo[0].taskJson;
  21121. var b = [
  21122. "AVI",
  21123. "NAVI",
  21124. "MPEG",
  21125. "ASF",
  21126. "MOV",
  21127. "WMV",
  21128. "3GP",
  21129. "RM",
  21130. "RMVB",
  21131. "FLV",
  21132. "F4V",
  21133. "H.264",
  21134. "H.265",
  21135. "REAL VIDEO",
  21136. "MKV",
  21137. "WebM",
  21138. "HDDVD",
  21139. "MP4",
  21140. "MPG",
  21141. "M4V",
  21142. "MGV",
  21143. "OGV",
  21144. "QTM",
  21145. "STR",
  21146. "AMC",
  21147. "DVX",
  21148. "EVO",
  21149. "DAT",
  21150. "OGG",
  21151. "OGM",
  21152. "MP3",
  21153. ];
  21154. let _chapterData = [];
  21155. for (var i = 0; i < a.length; i++) {
  21156. var c = a[i].chapterData;
  21157. this.vedio[i] = [];
  21158. this.textList[i] = [];
  21159. this.lineList[i] = [];
  21160. this.chapToolList[i] = [];
  21161. this.file[i] = [];
  21162. this.fileC[i] = [];
  21163. _chapterData[i] = c.filter((el) => {
  21164. return el.type != 12;
  21165. });
  21166. this.fileC[i] = c.filter((el) => {
  21167. return el.type == 12;
  21168. });
  21169. if (this.tType == 2) {
  21170. if (this.fileC[i].length) {
  21171. let yym1 = this.fileC[i].filter(e=>{
  21172. if(!converter(e.name).includes(converter("教案"))){
  21173. return e
  21174. }
  21175. })
  21176. this.fileC[i] = yym1
  21177. }
  21178. }
  21179. // else if (c[j].type == 12) {
  21180. // this.fileC[i].push(c[j]);
  21181. // }
  21182. for (var j = 0; j < c.length; j++) {
  21183. if (c[j].type == 7) {
  21184. this.chapToolList[i].push(c[j]);
  21185. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21186. this.lineList[i].push(c[j]);
  21187. } else if (c[j].type == 6) {
  21188. this.textList[i].push(c[j]);
  21189. } else {
  21190. if (
  21191. b.indexOf(
  21192. c[j].url
  21193. .split(".")
  21194. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21195. ) != -1
  21196. ) {
  21197. this.vedio[i].push(c[j]);
  21198. } else {
  21199. this.file[i].push(c[j]);
  21200. }
  21201. }
  21202. }
  21203. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21204. d.sources[0].src =
  21205. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21206. this.playerO[i] = d;
  21207. }
  21208. this.courseDetail = res.data[0][0];
  21209. if(this.tType == 2){
  21210. this.tcid = this.arrayToArray(
  21211. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21212. this.classId ? this.classId.split(",") : []
  21213. ).join(",");
  21214. }else{
  21215. this.tcid = this.arrayToArray(
  21216. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21217. this.tcid2 ? this.tcid2.split(",") : []
  21218. ).join(",");
  21219. }
  21220. this.evalua = res.data[0][0].evaId;
  21221. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21222. this.courseType
  21223. ];
  21224. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21225. if (this.tcid && res.data[1].length) {
  21226. let _inviteA = [];
  21227. for (var ik = 0; ik < res.data[1].length; ik++) {
  21228. _inviteA.push({
  21229. cid: res.data[1][ik].classid,
  21230. ic: res.data[1][ik].code,
  21231. });
  21232. }
  21233. for (var ik = 0; ik < _inviteA.length; ik++) {
  21234. if (
  21235. this.arrayToArray(
  21236. _inviteA[ik].cid.split(","),
  21237. this.tcid.split(",")
  21238. ).length
  21239. ) {
  21240. this.inviteCode = _inviteA[ik].ic;
  21241. break;
  21242. }
  21243. }
  21244. }
  21245. for (var l = 0; l < this.chapInfoList.length; l++) {
  21246. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21247. for (var m = 0; m < w.length; m++) {
  21248. w[m].id = l + "-" + m;
  21249. }
  21250. }
  21251. let taskCount = 0;
  21252. if (
  21253. _chapterData[taskCount].length &&
  21254. _chapterData[taskCount][0].type == 2
  21255. ) {
  21256. this.showType = 0;
  21257. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21258. } else {
  21259. if (_chapterData[taskCount].length > 0) {
  21260. let _url = _chapterData[taskCount][0].url;
  21261. if (
  21262. _chapterData[taskCount][0].type == 8 ||
  21263. _chapterData[taskCount][0].type == 14 ||
  21264. _chapterData[taskCount][0].type == 15
  21265. ) {
  21266. this.showType = 2;
  21267. if (
  21268. _url.indexOf("https://") == -1 &&
  21269. _url.indexOf("http://") == -1
  21270. ) {
  21271. _url = "https://" + _url;
  21272. }
  21273. this.pptImgUrl1 = _url;
  21274. } else if (_chapterData[taskCount][0].type == 3) {
  21275. if (
  21276. _url
  21277. .split(".")
  21278. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21279. ) {
  21280. this.showType = 3;
  21281. this.pptImgUrl1 = _url;
  21282. } else if (
  21283. this.isAssetTypeAnImage(
  21284. _url
  21285. .split(".")
  21286. [_url.split(".").length - 1].toLocaleLowerCase()
  21287. )
  21288. ) {
  21289. this.showType = 4;
  21290. this.pptImgUrl1 = _url;
  21291. } else {
  21292. this.showType = 2;
  21293. this.pptImgUrl1 =
  21294. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21295. encodeURIComponent(_url);
  21296. }
  21297. } else if (_chapterData[taskCount][0].type == 13) {
  21298. this.showType = 4;
  21299. this.pptImgUrl1 = _url;
  21300. } else if (_chapterData[taskCount][0].type == 6) {
  21301. this.showType = 1;
  21302. this.text = this.textList[taskCount][0];
  21303. } else if (_chapterData[taskCount][0].type == 16) {
  21304. this.showType = 16;
  21305. this.pptImgUrl1 = _url;
  21306. }
  21307. }
  21308. }
  21309. this.isClickNav = 0;
  21310. if (
  21311. !_chapterData[taskCount].length ||
  21312. _chapterData[taskCount][0].type == 12
  21313. ) {
  21314. this.isClickNav = "";
  21315. this.showType = "";
  21316. }
  21317. if (this.tType == 2) {
  21318. _chapterData.forEach((e,i)=>{
  21319. if (e.length) {
  21320. let yym = e.filter(k=>{
  21321. if(!converter(k.name).includes(converter("教案"))){
  21322. return k
  21323. }
  21324. })
  21325. _chapterData[i] = yym
  21326. }
  21327. })
  21328. }
  21329. this.vChapterData = _chapterData;
  21330. } else {
  21331. // this.showType = 0;
  21332. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21333. .chapterInfo[0].taskJson;
  21334. var b = [
  21335. "AVI",
  21336. "NAVI",
  21337. "MPEG",
  21338. "ASF",
  21339. "MOV",
  21340. "WMV",
  21341. "3GP",
  21342. "RM",
  21343. "RMVB",
  21344. "FLV",
  21345. "F4V",
  21346. "H.264",
  21347. "H.265",
  21348. "REAL VIDEO",
  21349. "MKV",
  21350. "WebM",
  21351. "HDDVD",
  21352. "MP4",
  21353. "MPG",
  21354. "M4V",
  21355. "MGV",
  21356. "OGV",
  21357. "QTM",
  21358. "STR",
  21359. "AMC",
  21360. "DVX",
  21361. "EVO",
  21362. "DAT",
  21363. "OGG",
  21364. "OGM",
  21365. "MP3",
  21366. ];
  21367. let _chapterData = [];
  21368. for (var i = 0; i < a.length; i++) {
  21369. var c = a[i].chapterData;
  21370. this.vedio[i] = [];
  21371. this.textList[i] = [];
  21372. this.lineList[i] = [];
  21373. this.chapToolList[i] = [];
  21374. this.file[i] = [];
  21375. this.fileC[i] = [];
  21376. _chapterData[i] = c.filter((el) => {
  21377. return el.type != 12;
  21378. });
  21379. this.fileC[i] = c.filter((el) => {
  21380. return el.type == 12;
  21381. });
  21382. if (this.tType == 2) {
  21383. if (this.fileC[i].length) {
  21384. let yym1 = this.fileC[i].filter(e=>{
  21385. if(!converter(e.name).includes(converter("教案"))){
  21386. return e
  21387. }
  21388. })
  21389. this.fileC[i] = yym1
  21390. }
  21391. }
  21392. for (var j = 0; j < c.length; j++) {
  21393. if (c[j].type == 7) {
  21394. this.chapToolList[i].push(c[j]);
  21395. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21396. this.lineList[i].push(c[j]);
  21397. } else if (c[j].type == 6) {
  21398. this.textList[i].push(c[j]);
  21399. } else {
  21400. if (
  21401. b.indexOf(
  21402. c[j].url
  21403. .split(".")
  21404. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21405. ) != -1
  21406. ) {
  21407. this.vedio[i].push(c[j]);
  21408. } else {
  21409. this.file[i].push(c[j]);
  21410. }
  21411. }
  21412. }
  21413. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21414. d.sources[0].src =
  21415. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21416. this.playerO[i] = d;
  21417. }
  21418. let taskCount = 0;
  21419. if (
  21420. _chapterData[taskCount].length &&
  21421. _chapterData[taskCount][0].type == 2
  21422. ) {
  21423. // this.showType = 0;
  21424. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21425. } else {
  21426. if (_chapterData[taskCount].length > 0) {
  21427. let _url = _chapterData[taskCount][0].url;
  21428. if (
  21429. _chapterData[taskCount][0].type == 8 ||
  21430. _chapterData[taskCount][0].type == 14 ||
  21431. _chapterData[taskCount][0].type == 15
  21432. ) {
  21433. // this.showType = 2;
  21434. if (
  21435. _url.indexOf("https://") == -1 &&
  21436. _url.indexOf("http://") == -1
  21437. ) {
  21438. _url = "https://" + _url;
  21439. }
  21440. // this.pptImgUrl1 = _url;
  21441. } else if (_chapterData[taskCount][0].type == 3) {
  21442. if (
  21443. _url
  21444. .split(".")
  21445. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21446. ) {
  21447. // this.showType = 3;
  21448. // this.pptImgUrl1 = _url;
  21449. } else if (
  21450. this.isAssetTypeAnImage(
  21451. _url
  21452. .split(".")
  21453. [_url.split(".").length - 1].toLocaleLowerCase()
  21454. )
  21455. ) {
  21456. // this.showType = 4;
  21457. // this.pptImgUrl1 = _url;
  21458. } else {
  21459. // this.showType = 2;
  21460. // this.pptImgUrl1 =
  21461. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  21462. // encodeURIComponent(_url);
  21463. }
  21464. } else if (_chapterData[taskCount][0].type == 13) {
  21465. // this.showType = 4;
  21466. // this.pptImgUrl1 = _url;
  21467. } else if (_chapterData[taskCount][0].type == 6) {
  21468. this.showType = 1;
  21469. this.text = this.textList[taskCount][0];
  21470. } else if (_chapterData[taskCount][0].type == 16) {
  21471. this.showType = 16;
  21472. this.pptImgUrl1 = _url;
  21473. }
  21474. }
  21475. }
  21476. this.isClickNav = 0;
  21477. if (
  21478. !_chapterData[taskCount].length ||
  21479. _chapterData[taskCount][0].type == 12
  21480. ) {
  21481. this.isClickNav = "";
  21482. // this.showType = "";
  21483. }
  21484. if (this.tType == 2) {
  21485. _chapterData.forEach((e,i)=>{
  21486. if (e.length) {
  21487. let yym = e.filter(k=>{
  21488. if(!converter(k.name).includes(converter("教案"))){
  21489. return k
  21490. }
  21491. })
  21492. _chapterData[i] = yym
  21493. }
  21494. })
  21495. }
  21496. this.vChapterData = _chapterData;
  21497. this.$forceUpdate();
  21498. }
  21499. if (res.data[0][0].setting) {
  21500. try {
  21501. this.languageSetting =
  21502. JSON.parse(res.data[0][0].setting).languageSetting ||
  21503. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21504. ? JSON.parse(res.data[0][0].setting).languageSetting
  21505. : 0;
  21506. } catch (error) {
  21507. console.error(error);
  21508. }
  21509. }
  21510. // finalMarkList用来判断哪个工具为评分工具
  21511. if (this.courseDetail.state == 6) {
  21512. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21513. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21514. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21515. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21516. // // 没有的话在选其他工具为评分工具
  21517. // if(adc.length > 0){
  21518. // for (let k = chap.length - 1; k >= 0; k--) {
  21519. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21520. // this.finalMarkList = k;
  21521. // break;
  21522. // }
  21523. // }
  21524. // }else{
  21525. // for (let k = chap.length - 1; k >= 0; k--) {
  21526. // 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) {
  21527. // this.finalMarkList = k;
  21528. // break;
  21529. // }
  21530. // }
  21531. // }
  21532. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21533. // 不然会无限循环报错,会很难受
  21534. let aiSNum = 0;
  21535. if (
  21536. chapInfoListCopy[this.taskCount].eList &&
  21537. chapInfoListCopy[this.taskCount].eList.length
  21538. ) {
  21539. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21540. if (e.isai == 2) {
  21541. aiSNum++;
  21542. }
  21543. });
  21544. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21545. this.isaiNum = aiSNum;
  21546. } else {
  21547. this.isaiNum = 0;
  21548. }
  21549. // for (
  21550. // let k = 0;
  21551. // k < chapInfoListCopy[this.taskCount].eList.length;
  21552. // k++
  21553. // ) {
  21554. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21555. // this.againEva(this.taskCount, k);
  21556. // }
  21557. // }
  21558. }
  21559. }
  21560. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21561. if (type == 10) {
  21562. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21563. console.log('this.userid',this.userid);
  21564. if (this.courseDetail.userid == this.userid) {
  21565. // 开局关闭学生查看内容
  21566. this.StulookMode(false)
  21567. // 开局打开跟随模式
  21568. this.followingMode(true)
  21569. }
  21570. }
  21571. // else {
  21572. // this.courseDetail = res.data[0][0];
  21573. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21574. // }
  21575. let _this = this;
  21576. if (_this.timer) {
  21577. clearInterval(_this.timer);
  21578. _this.timer = null;
  21579. }
  21580. // if (_this.timer2) {
  21581. // clearInterval(_this.timer2);
  21582. // _this.timer2 = null;
  21583. // }
  21584. if (_this.tcid) {
  21585. _this.getCourseGroup(gindex);
  21586. } else {
  21587. _this.selectSWorks(gindex);
  21588. }
  21589. _this.selectStudent();
  21590. _this.selectSLook();
  21591. _this.getPick();
  21592. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21593. // _this.setCTask();
  21594. // }
  21595. if (_this.dialogVisibleGroup) {
  21596. _this.groupJson =
  21597. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21598. _this.taskCount
  21599. ].toolChoose[_this.toolindex].groupJson;
  21600. }
  21601. _this.$nextTick(() => {
  21602. setTimeout(() => {
  21603. _this.checkEva();
  21604. }, 1000);
  21605. });
  21606. _this.timer = setInterval(function () {
  21607. // _this.getCourseDetail(2);
  21608. if (_this.tcid) {
  21609. _this.getCourseGroup();
  21610. } else {
  21611. _this.selectSWorks();
  21612. }
  21613. _this.selectStudent();
  21614. _this.selectSLook();
  21615. _this.getPick();
  21616. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21617. // _this.setCTask();
  21618. // }
  21619. if (_this.dialogVisibleGroup) {
  21620. _this.groupJson =
  21621. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21622. _this.taskCount
  21623. ].toolChoose[_this.toolindex].groupJson;
  21624. }
  21625. if (_this.tType == 4 || _this.ispzType == 4) {
  21626. _this.selectPz();
  21627. }
  21628. }, 5000);
  21629. if (_this.timer2 == null) {
  21630. _this.timer2 = setInterval(()=> {
  21631. _this.getSplitScreenData();//获取分屏数据
  21632. }, 5000);
  21633. }
  21634. _this.$nextTick(function () {
  21635. setTimeout(() => {
  21636. // var a =
  21637. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21638. // document.getElementsByClassName("vedioList")[0].style.height =
  21639. // a + "px";
  21640. // document.getElementsByClassName("navBox")[0].style.height =
  21641. // a - 40 + "px";
  21642. // if (_this.vedio[_this.taskCount].length > 0) {
  21643. // _this.vedioTime = [];
  21644. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21645. // _this.vedioTime[i] = document.getElementsByClassName(
  21646. // "vjs-duration-display"
  21647. // )[i].textContent;
  21648. // }
  21649. // }
  21650. }, 1000);
  21651. });
  21652. })
  21653. .catch((err) => {
  21654. loading.close();
  21655. console.error(err);
  21656. });
  21657. },
  21658. getCourseGroup(gindex) {
  21659. let params = {
  21660. cid: this.id,
  21661. classid: this.tcid ? this.tcid : "1",
  21662. };
  21663. this.ajax
  21664. .get(this.$store.state.api + "getCourseGroup", params)
  21665. .then((res) => {
  21666. if (res.data && res.data[0].length) {
  21667. if (!this.isGroup) {
  21668. let courseGroup = JSON.parse(res.data[0][0].group);
  21669. courseGroup.group = courseGroup.group.filter((el) => {
  21670. el.works = [];
  21671. return el;
  21672. });
  21673. if (courseGroup.isopen == 2) {
  21674. this.isGroup = false;
  21675. this.selectSWorks(gindex);
  21676. return;
  21677. }
  21678. this.courseGroup = courseGroup;
  21679. let groupPerson = res.data[1];
  21680. let group = JSON.parse(res.data[0][0].group).group;
  21681. let courseGroupStudent = {};
  21682. let courseGroupStudentUid = {};
  21683. for (var i = 0; i < group.length; i++) {
  21684. courseGroupStudent[group[i].id] = [];
  21685. courseGroupStudentUid[group[i].id] = [];
  21686. for (var j = 0; j < groupPerson.length; j++) {
  21687. if (groupPerson[j].groupCid == group[i].id) {
  21688. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21689. courseGroupStudentUid[group[i].id].push(
  21690. groupPerson[j].userid
  21691. );
  21692. }
  21693. }
  21694. }
  21695. this.courseGroupStudent = courseGroupStudent;
  21696. this.courseGroupStudentUid = courseGroupStudentUid;
  21697. }
  21698. if (this.courseGroup.isopen == 2) {
  21699. this.isGroup = false;
  21700. } else {
  21701. this.isGroup = true;
  21702. }
  21703. this.selectSWorks(gindex);
  21704. } else {
  21705. this.selectSWorks(gindex);
  21706. this.isGroup = false;
  21707. }
  21708. })
  21709. .catch((err) => {
  21710. // this.$message.error("网络不佳");
  21711. console.error(err);
  21712. });
  21713. },
  21714. setOperationTime() {
  21715. let _this = this;
  21716. if (_this.opertimer) {
  21717. clearInterval(_this.opertimer);
  21718. _this.opertimer = null;
  21719. }
  21720. _this.opertimer = setInterval(() => {
  21721. _this.setoTime("600");
  21722. }, 600000);
  21723. },
  21724. setoTime(time) {
  21725. let params = [
  21726. {
  21727. uid: this.userid,
  21728. cid: this.id,
  21729. type: "2",
  21730. time: time,
  21731. },
  21732. ];
  21733. this.ajax
  21734. .post(this.$store.state.api + "addOperationTimeT2", params)
  21735. .then((res) => {})
  21736. .catch((err) => {
  21737. console.error(err);
  21738. });
  21739. },
  21740. addPz(type, content) {
  21741. if (type == "1" && this.pzConText == "") {
  21742. this.$message.error("评论不能为空!");
  21743. return;
  21744. }
  21745. let params = [
  21746. {
  21747. cid: this.id,
  21748. uid: this.userid,
  21749. s: this.courseType,
  21750. t: this.taskCount,
  21751. c: type == "1" ? this.pzConText : content,
  21752. type: type,
  21753. },
  21754. ];
  21755. this.ajax
  21756. .post(this.$store.state.api + "addPz2", params)
  21757. .then((res) => {
  21758. this.$message({
  21759. message: "添加成功",
  21760. type: "success",
  21761. });
  21762. this.pzConText = "";
  21763. this.addPzDialog = false;
  21764. this.selectPz();
  21765. if(this.tType!=2){
  21766. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21767. }
  21768. })
  21769. .catch((err) => {
  21770. this.$message.error("添加失败");
  21771. console.error(err);
  21772. });
  21773. },
  21774. setReplyIndex(id, i) {
  21775. this.replyIndex = i;
  21776. this.replyPid = id;
  21777. this.replyDialogVisible = true;
  21778. },
  21779. addHf() {
  21780. if (this.reply == "") {
  21781. this.$message.error("回复不能为空!");
  21782. return;
  21783. }
  21784. let params = [
  21785. {
  21786. cid: this.id,
  21787. uid: this.userid,
  21788. s: this.courseType,
  21789. t: this.taskCount,
  21790. type: "1",
  21791. ct: 2,
  21792. pid: this.replyPid,
  21793. c: this.reply,
  21794. },
  21795. ];
  21796. this.ajax
  21797. .post(this.$store.state.api + "addHf", params)
  21798. .then((res) => {
  21799. this.reply = "";
  21800. this.$message({
  21801. message: "回复成功",
  21802. type: "success",
  21803. });
  21804. this.replyDialogVisible = false;
  21805. this.selectPz();
  21806. })
  21807. .catch((err) => {
  21808. this.$message.error("回复失败");
  21809. console.error(err);
  21810. });
  21811. },
  21812. deletePz(id) {
  21813. this.$confirm("确定删除此评论吗?", "提示", {
  21814. confirmButtonText: "确定",
  21815. cancelButtonText: "取消",
  21816. type: "warning",
  21817. })
  21818. .then(() => {
  21819. let params = [
  21820. {
  21821. id: id,
  21822. },
  21823. ];
  21824. this.ajax
  21825. .post(this.$store.state.api + "deletePz", params)
  21826. .then((res) => {
  21827. this.$message({
  21828. message: "删除成功",
  21829. type: "success",
  21830. });
  21831. this.selectPz();
  21832. })
  21833. .catch((err) => {
  21834. this.$message.error("网络异常");
  21835. console.error(err);
  21836. });
  21837. })
  21838. .catch(() => {});
  21839. },
  21840. deleteReply(id) {
  21841. this.$confirm("确定删除此回复吗?", "提示", {
  21842. confirmButtonText: "确定",
  21843. cancelButtonText: "取消",
  21844. type: "warning",
  21845. })
  21846. .then(() => {
  21847. let params = [
  21848. {
  21849. id: id,
  21850. },
  21851. ];
  21852. this.ajax
  21853. .post(this.$store.state.api + "deleteReply", params)
  21854. .then((res) => {
  21855. this.$message({
  21856. message: "删除成功",
  21857. type: "success",
  21858. });
  21859. this.selectPz();
  21860. })
  21861. .catch((err) => {
  21862. this.$message.error("网络异常");
  21863. console.error(err);
  21864. });
  21865. })
  21866. .catch(() => {});
  21867. },
  21868. setPz() {
  21869. if (this.ispzType == 4) {
  21870. this.ispzType = 0;
  21871. this.pzDialog = false;
  21872. return;
  21873. }
  21874. this.ispzType = 4;
  21875. this.pzDialog = true;
  21876. this.selectPz();
  21877. },
  21878. selectPz() {
  21879. let params = {
  21880. cid: this.id,
  21881. s: this.courseType,
  21882. t: this.taskCount,
  21883. type: this.pzStype,
  21884. uid: this.userid,
  21885. };
  21886. this.ajax
  21887. .get(this.$store.state.api + "selectPzListType", params)
  21888. .then((res) => {
  21889. this.pzList = res.data[0];
  21890. var a = res.data[1];
  21891. for (var i = 0; i < a.length; i++) {
  21892. for (var j = 0; j < this.pzList.length; j++) {
  21893. if (!this.pzList[j].hfList) {
  21894. this.pzList[j].hfList = [];
  21895. }
  21896. if (a[i].pid == this.pzList[j].id) {
  21897. this.pzList[j].hfList.push(a[i]);
  21898. }
  21899. }
  21900. }
  21901. })
  21902. .catch((err) => {
  21903. console.error(err);
  21904. });
  21905. },
  21906. // selectHf() {
  21907. // let params = {
  21908. // cid: this.id,
  21909. // s: this.courseType,
  21910. // t: this.taskCount,
  21911. // };
  21912. // this.ajax
  21913. // .get(this.$store.state.api + "selectHfList", params)
  21914. // .then((res) => {
  21915. // var a = res.data[0];
  21916. // for (var i = 0; i < a.length; i++) {
  21917. // for (var j = 0; j < this.pzList.length; j++) {
  21918. // if (!this.pzList[i].hfList) {
  21919. // this.pzList[i].hfList = [];
  21920. // }
  21921. // if (a[i].pid == this.pzList[j].id) {
  21922. // this.pzList[i].hfList.push(a[i]);
  21923. // }
  21924. // }
  21925. // }
  21926. // })
  21927. // .catch((err) => {
  21928. // console.error(err);
  21929. // });
  21930. // },
  21931. updateSLook() {
  21932. let params = {
  21933. sopen: this.sIsOpen == false ? 1 : 2,
  21934. cid: this.id,
  21935. };
  21936. this.ajax
  21937. .get(this.$store.state.api + "updateCourseSLook", params)
  21938. .then((res) => {
  21939. if (this.sIsOpen == true) {
  21940. this.$message({
  21941. message: "权限设置成功",
  21942. type: "success",
  21943. });
  21944. } else {
  21945. this.$message({
  21946. message: "权限关闭成功",
  21947. type: "success",
  21948. });
  21949. }
  21950. })
  21951. .catch((err) => {
  21952. console.error(err);
  21953. });
  21954. },
  21955. updateIsStulook(){
  21956. let params = [
  21957. {
  21958. sopen: this.IsStulook == false ? 2 : 1,
  21959. cid: this.id
  21960. }
  21961. ];
  21962. this.ajax
  21963. .post(this.$store.state.api + "updateCourseStulook", params)
  21964. .then(res => {
  21965. if (this.IsStulook == true) {
  21966. this.$message({
  21967. message: "学生查看内容资料权限已开启",
  21968. type: "success"
  21969. });
  21970. } else {
  21971. this.$message({
  21972. message: "关闭学生查看内容资料权限",
  21973. type: "success"
  21974. });
  21975. }
  21976. // this.setCTask();
  21977. })
  21978. .catch(err => {
  21979. console.error(err);
  21980. });
  21981. },
  21982. updateFollow() {
  21983. let params = [
  21984. {
  21985. sopen: this.IsFollow == false ? 1 : 2,
  21986. cid: this.id,
  21987. },
  21988. ];
  21989. this.ajax
  21990. .post(this.$store.state.api + "updateCourseFollow", params)
  21991. .then((res) => {
  21992. if (this.IsFollow == true) {
  21993. this.$message({
  21994. message: "跟随模式已开启",
  21995. type: "success",
  21996. });
  21997. } else {
  21998. this.$message({
  21999. message: "跟随模式已关闭",
  22000. type: "success",
  22001. });
  22002. }
  22003. this.setCTask();
  22004. })
  22005. .catch((err) => {
  22006. console.error(err);
  22007. });
  22008. },
  22009. setCTask() {
  22010. let params = [
  22011. {
  22012. sopen: this.courseType + "-" + this.taskCount,
  22013. cid: this.id,
  22014. },
  22015. ];
  22016. this.ajax
  22017. .post(this.$store.state.api + "updateCourseFollowC", params)
  22018. .then((res) => {})
  22019. .catch((err) => {
  22020. console.error(err);
  22021. });
  22022. },
  22023. updateLookOpen() {
  22024. let params = [
  22025. {
  22026. sopen: this.IsLookOpen == false ? 1 : 2,
  22027. cid: this.id,
  22028. },
  22029. ];
  22030. this.ajax
  22031. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22032. .then((res) => {
  22033. if (this.IsLookOpen == true) {
  22034. // if (this.courseType != 0 && this.taskCount != 0) {
  22035. // this.openTask(0, 0, "0-0");
  22036. // }
  22037. this.$message({
  22038. message: "权限设置成功",
  22039. type: "success",
  22040. });
  22041. } else {
  22042. this.$message({
  22043. message: "权限关闭成功",
  22044. type: "success",
  22045. });
  22046. }
  22047. this.getCourseState(2);
  22048. })
  22049. .catch((err) => {
  22050. console.error(err);
  22051. });
  22052. },
  22053. selectSLook() {
  22054. let params = {
  22055. cid: this.id,
  22056. };
  22057. this.ajax
  22058. .get(this.$store.state.api + "selectCourseSLook", params)
  22059. .then((res) => {
  22060. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22061. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22062. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22063. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22064. if (!this.IsLookOpen) {
  22065. this.setNavList();
  22066. } else {
  22067. this.getCourseState(1);
  22068. }
  22069. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  22070. this.setContent2(false);
  22071. let _followC = res.data[0][0].followC.split("-");
  22072. if (
  22073. this.courseType != _followC[0] ||
  22074. this.taskCount != _followC[1]
  22075. ) {
  22076. this.navList[this.courseType].isOpen = false;
  22077. this.courseType = _followC[0];
  22078. this.navList[this.courseType].isOpen = true;
  22079. this.taskCount = parseInt(_followC[1]);
  22080. this.navId = res.data[0][0].followC;
  22081. document.scrollingElement.scrollTop = 0;
  22082. this.getCourseDetail(2);
  22083. }
  22084. }
  22085. })
  22086. .catch((err) => {
  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. this.setNavList();
  22170. this.$forceUpdate();
  22171. } else if (res.data[0].length > 0 && type == 2) {
  22172. this.addCourseState(2);
  22173. } else {
  22174. // this.addCourseState(1);
  22175. }
  22176. })
  22177. .catch((err) => {
  22178. console.error(err);
  22179. });
  22180. },
  22181. addCourseState(type,val = '') {
  22182. let _state = val ? val : this.chapInfoList;
  22183. // this.courseType this.taskCount
  22184. if (type == 1 || type == 2) {
  22185. for (var i = 0; i < _state.length; i++) {
  22186. let el = _state[i].chapterInfo[0].taskJson;
  22187. for (var j = 0; j < el.length; j++) {
  22188. // if (i == 0 && j == 0) {
  22189. // el[j].isLook = true;
  22190. // } else {
  22191. // el[j].isLook = false;
  22192. // }
  22193. if (
  22194. this.courseType > i ||
  22195. (this.courseType == i && this.taskCount + 1 > j)
  22196. ) {
  22197. el[j].isLook = true;
  22198. } else {
  22199. el[j].isLook = false;
  22200. }
  22201. }
  22202. }
  22203. }
  22204. let params = [
  22205. {
  22206. cid: this.id,
  22207. state: JSON.stringify(_state),
  22208. },
  22209. ];
  22210. this.ajax
  22211. .post(
  22212. this.$store.state.api +
  22213. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22214. params
  22215. )
  22216. .then((res) => {
  22217. if (this.IsLookOpen) {
  22218. this.setNavList();
  22219. }
  22220. if (type == 3 && type == 2) {
  22221. this.getCourseState(1);
  22222. }
  22223. })
  22224. .catch((err) => {
  22225. console.error(err);
  22226. });
  22227. },
  22228. getHomeWork() {
  22229. let params = {
  22230. cid: this.id,
  22231. stage: this.courseType,
  22232. task: this.taskCount,
  22233. uid: this.userid,
  22234. };
  22235. this.ajax
  22236. .get(this.$store.state.api + "selectWork", params)
  22237. .then((res) => {
  22238. if (res.data[0].length > 0) {
  22239. this.studyJuri = JSON.parse(res.data[0][0].content);
  22240. this.isNoHomeWork = true;
  22241. }
  22242. })
  22243. .catch((err) => {
  22244. console.error(err);
  22245. });
  22246. },
  22247. isAssetTypeAnImage(ext) {
  22248. return (
  22249. [
  22250. "png",
  22251. "jpg",
  22252. "jpeg",
  22253. "bmp",
  22254. "gif",
  22255. "webp",
  22256. "psd",
  22257. "svg",
  22258. "tiff",
  22259. ].indexOf(ext) !== -1
  22260. );
  22261. },
  22262. switchVideo(media) {
  22263. this.playerO = {};
  22264. this.playerOptions.poster = "";
  22265. this.playerOptions.sources[0].src = media;
  22266. this.playerO = this.playerOptions;
  22267. },
  22268. onPlayerPlay() {},
  22269. onPlayerTimeupdate(player) {
  22270. let gklog = player.cache_.currentTime; //当前播放的秒数
  22271. let a = player.cache_.duration; //视频的总时长
  22272. let gklog2 = parseInt(gklog);
  22273. // if(gklog2 == '3'){
  22274. // player.pause()
  22275. // setTimeout(()=>{
  22276. // player.currentTime(gklog2+1)
  22277. // player.play()
  22278. // },1000)
  22279. // }
  22280. console.log(" onPlayerTimeupdate!", gklog);
  22281. console.log(" onPlayerTimeupdate!", gklog2);
  22282. },
  22283. lookVedio(u, i) {
  22284. this.isClickNav = "";
  22285. // this.playerOptions.sources[0].src = u;
  22286. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22287. d.sources[0].src = u;
  22288. this.playerO[0] = d;
  22289. this.showType = 0;
  22290. // this.isClickNav = "video" + i;
  22291. this.isClickNav = i;
  22292. this.$forceUpdate();
  22293. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  22294. },
  22295. lookText(i, t) {
  22296. this.isClickNav = "";
  22297. // this.text = this.textList[i][t];
  22298. this.text = this.vChapterData[i][t];
  22299. // this.dialogVisible1 = true;
  22300. this.showType = 1;
  22301. // this.isClickNav = "text" + t;
  22302. this.isClickNav = t;
  22303. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  22304. },
  22305. lookTools(i, t) {
  22306. this.chapTools = this.chapToolList[i][t];
  22307. this.dialogVisible2 = true;
  22308. },
  22309. async openFile(f) {
  22310. this.pptImgUrl = "";
  22311. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22312. if (
  22313. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22314. -1
  22315. ) {
  22316. let _uuurl = await this.checkLink(f);
  22317. console.log(_uuurl)
  22318. this.pptImgUrl =
  22319. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22320. this.showPDF = false;
  22321. this.dialogVisible3 = true;
  22322. } else if (
  22323. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22324. ) {
  22325. this.pptImgUrl = f;
  22326. this.showPDF = true;
  22327. this.dialogVisible3 = true;
  22328. }
  22329. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  22330. },
  22331. openTable(f) {
  22332. this.tableJson = JSON.parse(f.works);
  22333. this.dialogVisibleTable2 = true;
  22334. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22335. },
  22336. openWord(f) {
  22337. this.tableJson = JSON.parse(f.works);
  22338. this.dialogVisibleTable3 = true;
  22339. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22340. },
  22341. doUrl(url, i) {
  22342. this.isClickNav = "";
  22343. this.pptImgUrl1 = "";
  22344. this.showType = 2;
  22345. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22346. url = "https://" + url;
  22347. }
  22348. this.pptImgUrl1 = "";
  22349. this.diffKey = new Date().getTime();
  22350. setTimeout(() => {
  22351. this.pptImgUrl1 = url;
  22352. }, 500);
  22353. // this.isClickNav = "line" + i;
  22354. this.isClickNav = i;
  22355. this.$forceUpdate();
  22356. },
  22357. checkPhoto(f, i) {
  22358. this.showType = 4;
  22359. this.pptImgUrl1 = f.url;
  22360. this.isClickNav = i;
  22361. this.$forceUpdate();
  22362. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22363. },
  22364. checkHtml(f, i){
  22365. this.showType = 16;
  22366. this.pptImgUrl1 = f.url;
  22367. this.isClickNav = i;
  22368. this.$forceUpdate();
  22369. },
  22370. async downFile(f, i) {
  22371. this.isClickNav = "";
  22372. this.pptImgUrl1 = "";
  22373. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22374. if (
  22375. a.indexOf(
  22376. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22377. ) != -1
  22378. ) {
  22379. let _uuurl = await this.checkLink(f.url);
  22380. console.log(_uuurl)
  22381. this.pptImgUrl1 =
  22382. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22383. // this.dialogVisible3 = true;
  22384. this.showType = 2;
  22385. } else if (
  22386. this.isAssetTypeAnImage(
  22387. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22388. )
  22389. ) {
  22390. this.showType = 4;
  22391. this.pptImgUrl1 = f.url;
  22392. } else if (
  22393. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22394. "PDF"
  22395. ) {
  22396. this.pptImgUrl1 = f.url;
  22397. // this.dialogVisible3 = true;
  22398. this.showType = 3;
  22399. } else {
  22400. window.open(this.file[i].url);
  22401. }
  22402. // this.isClickNav = "word" + i;
  22403. this.isClickNav = i;
  22404. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22405. },
  22406. downFileList(i) {
  22407. window.open(this.noImgList[i].url);
  22408. },
  22409. openAddWork() {
  22410. this.dialogVisible = true;
  22411. },
  22412. addBzWorks() {
  22413. let params = [
  22414. {
  22415. uid: this.userid,
  22416. cid: this.id,
  22417. stage: this.courseType,
  22418. task: this.taskCount,
  22419. tool: this.toolindex,
  22420. content: JSON.stringify(this.eScore),
  22421. type: 6,
  22422. },
  22423. ];
  22424. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22425. this.homeWorkLoading = true
  22426. this.ajax
  22427. .post(this.$store.state.api + "addCourseWorks", params)
  22428. .then((res) => {
  22429. this.$message({
  22430. message: "提交成功",
  22431. type: "success",
  22432. });
  22433. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22434. setTimeout(() => {
  22435. this.homeWorkLoading = false
  22436. }, 500);
  22437. this.eScore = { eBzText: "", eStar: [] };
  22438. this.studentEvalDialogVisible = false;
  22439. this.selectSWorks();
  22440. })
  22441. .catch((err) => {
  22442. this.$message.error("提交失败");
  22443. console.error(err);
  22444. setTimeout(() => {
  22445. this.homeWorkLoading = false
  22446. }, 500);
  22447. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22448. });
  22449. },
  22450. addBzWorksTeacher() {
  22451. let params = [
  22452. {
  22453. uid: this.sStudent.userid,
  22454. cid: this.id,
  22455. stage: this.courseType,
  22456. task: this.taskCount,
  22457. tool: this.toolindex,
  22458. content: JSON.stringify(this.eScore),
  22459. type: 6,
  22460. },
  22461. ];
  22462. this.ajax
  22463. .post(this.$store.state.api + "addCourseWorks", params)
  22464. .then((res) => {
  22465. this.$message({
  22466. message: "提交成功",
  22467. type: "success",
  22468. });
  22469. this.eScore = { eBzText: "", eStar: [] };
  22470. this.studentEvalDialogVisibleTeacher = false;
  22471. this.selectSWorks();
  22472. })
  22473. .catch((err) => {
  22474. this.$message.error("提交失败");
  22475. console.error(err);
  22476. });
  22477. },
  22478. addStudentAsk() {
  22479. if (!this.radio.length) {
  22480. this.$message.error("请选择选项");
  22481. return;
  22482. }
  22483. for (var i = 0; i < this.askJson.askCount; i++) {
  22484. if (
  22485. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22486. (this.radio[i] !== 0 && !this.radio[i])
  22487. ) {
  22488. this.$message.error("请选择选项");
  22489. return;
  22490. }
  22491. }
  22492. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22493. let params = [
  22494. {
  22495. uid: this.userid,
  22496. cid: this.id,
  22497. stage: this.courseType,
  22498. task: this.taskCount,
  22499. tool: this.toolindex,
  22500. content: JSON.stringify(this.askList),
  22501. type: 2,
  22502. },
  22503. ];
  22504. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22505. this.homeWorkLoading = true
  22506. this.ajax
  22507. .post(this.$store.state.api + "addCourseWorks", params)
  22508. .then((res) => {
  22509. this.$message({
  22510. message: "提交成功",
  22511. type: "success",
  22512. });
  22513. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22514. setTimeout(() => {
  22515. this.homeWorkLoading = false
  22516. }, 500);
  22517. this.askList = [];
  22518. this.dialogVisible5 = false;
  22519. this.selectStudent();
  22520. this.selectSWorks();
  22521. this.selectSLook();
  22522. })
  22523. .catch((err) => {
  22524. this.$message.error("提交失败");
  22525. console.error(err);
  22526. setTimeout(() => {
  22527. this.homeWorkLoading = false
  22528. }, 500);
  22529. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22530. });
  22531. },
  22532. addStudentAskTeacher() {
  22533. if (!this.radio.length) {
  22534. this.$message.error("请选择选项");
  22535. return;
  22536. }
  22537. for (var i = 0; i < this.askJson.askCount; i++) {
  22538. if (
  22539. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22540. (this.radio[i] !== 0 && !this.radio[i])
  22541. ) {
  22542. this.$message.error("请选择选项");
  22543. return;
  22544. }
  22545. }
  22546. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22547. let params = [
  22548. {
  22549. uid: this.sStudent.userid,
  22550. cid: this.id,
  22551. stage: this.courseType,
  22552. task: this.taskCount,
  22553. tool: this.toolindex,
  22554. content: JSON.stringify(this.askList),
  22555. type: 2,
  22556. },
  22557. ];
  22558. this.ajax
  22559. .post(this.$store.state.api + "addCourseWorks", params)
  22560. .then((res) => {
  22561. this.$message({
  22562. message: "提交成功",
  22563. type: "success",
  22564. });
  22565. this.askList = [];
  22566. this.dialogVisible5Teacher = false;
  22567. this.selectStudent();
  22568. this.selectSWorks();
  22569. this.selectSLook();
  22570. })
  22571. .catch((err) => {
  22572. this.$message.error("提交失败");
  22573. console.error(err);
  22574. });
  22575. },
  22576. addStudentTest() {
  22577. if (!this.radio.length) {
  22578. this.$message.error("请选择选项");
  22579. return;
  22580. }
  22581. for (var i = 0; i < this.testJson.testCount; i++) {
  22582. if (
  22583. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22584. (this.radio[i] !== 0 && !this.radio[i])
  22585. ) {
  22586. this.$message.error("请选择选项");
  22587. return;
  22588. }
  22589. }
  22590. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22591. let params = [
  22592. {
  22593. uid: this.userid,
  22594. cid: this.id,
  22595. stage: this.courseType,
  22596. task: this.taskCount,
  22597. tool: this.toolindex,
  22598. content: JSON.stringify(this.askList),
  22599. type: 8,
  22600. },
  22601. ];
  22602. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22603. this.homeWorkLoading = true
  22604. this.ajax
  22605. .post(this.$store.state.api + "addCourseWorks", params)
  22606. .then((res) => {
  22607. this.$message({
  22608. message: "提交成功",
  22609. type: "success",
  22610. });
  22611. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22612. setTimeout(() => {
  22613. this.homeWorkLoading = false
  22614. }, 500);
  22615. this.askList = [];
  22616. this.dialogVisibleChoice = false;
  22617. this.selectStudent();
  22618. this.selectSWorks();
  22619. this.selectSLook();
  22620. })
  22621. .catch((err) => {
  22622. this.$message.error("提交失败");
  22623. console.error(err);
  22624. setTimeout(() => {
  22625. this.homeWorkLoading = false
  22626. }, 500);
  22627. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22628. });
  22629. },
  22630. addStudentTestTeacher() {
  22631. if (!this.radio.length) {
  22632. this.$message.error("请选择选项");
  22633. return;
  22634. }
  22635. for (var i = 0; i < this.testJson.testCount; i++) {
  22636. if (
  22637. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22638. (this.radio[i] !== 0 && !this.radio[i])
  22639. ) {
  22640. this.$message.error("请选择选项");
  22641. return;
  22642. }
  22643. }
  22644. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22645. let params = [
  22646. {
  22647. uid: this.sStudent.userid,
  22648. cid: this.id,
  22649. stage: this.courseType,
  22650. task: this.taskCount,
  22651. tool: this.toolindex,
  22652. content: JSON.stringify(this.askList),
  22653. type: 8,
  22654. },
  22655. ];
  22656. this.ajax
  22657. .post(this.$store.state.api + "addCourseWorks", params)
  22658. .then((res) => {
  22659. this.$message({
  22660. message: "提交成功",
  22661. type: "success",
  22662. });
  22663. this.askList = [];
  22664. this.dialogVisibleChoiceTeacher = false;
  22665. this.selectStudent();
  22666. this.selectSWorks();
  22667. this.selectSLook();
  22668. })
  22669. .catch((err) => {
  22670. this.$message.error("提交失败");
  22671. console.error(err);
  22672. });
  22673. },
  22674. addWork() {
  22675. if (this.studyJuri[0].content == "") {
  22676. this.$message.error("请将信息填写完整");
  22677. return;
  22678. } else if (this.studyJuri[0].cover.length == 0) {
  22679. this.$message.error("请将信息填写完整");
  22680. return;
  22681. } else if (this.studyJuri[0].upVedio.length == 0) {
  22682. this.$message.error("请将信息填写完整");
  22683. return;
  22684. }
  22685. if (this.isNoHomeWork) {
  22686. this.$confirm(
  22687. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22688. "提示",
  22689. {
  22690. confirmButtonText: "确定",
  22691. cancelButtonText: "取消",
  22692. type: "warning",
  22693. }
  22694. )
  22695. .then(() => {
  22696. let params = [
  22697. {
  22698. uid: this.userid,
  22699. cid: this.id,
  22700. stage: this.courseType,
  22701. task: this.taskCount,
  22702. content: JSON.stringify(this.studyJuri),
  22703. },
  22704. ];
  22705. this.ajax
  22706. .post(this.$store.state.api + "addWorks", params)
  22707. .then((res) => {
  22708. this.$message({
  22709. message: "提交成功",
  22710. type: "success",
  22711. });
  22712. this.isNoHomeWork = true;
  22713. this.dialogVisible = false;
  22714. })
  22715. .catch((err) => {
  22716. this.$message.error("提交失败");
  22717. console.error(err);
  22718. });
  22719. })
  22720. .catch(() => {});
  22721. } else {
  22722. let params = [
  22723. {
  22724. uid: this.userid,
  22725. cid: this.id,
  22726. stage: this.courseType,
  22727. task: this.taskCount,
  22728. content: JSON.stringify(this.studyJuri),
  22729. },
  22730. ];
  22731. this.ajax
  22732. .post(this.$store.state.api + "addWorks", params)
  22733. .then((res) => {
  22734. this.$message({
  22735. message: "提交成功",
  22736. type: "success",
  22737. });
  22738. this.isNoHomeWork = true;
  22739. this.dialogVisible = false;
  22740. })
  22741. .catch((err) => {
  22742. this.$message.error("提交失败");
  22743. console.error(err);
  22744. });
  22745. }
  22746. },
  22747. selectCount() {
  22748. let params = {
  22749. cid: this.id,
  22750. chid: this.courseType,
  22751. uid: this.userid,
  22752. };
  22753. this.ajax
  22754. .get(this.$store.state.api + "selectToolsCount", params)
  22755. .then((res) => {
  22756. for (var i = 0; i < res.data[0].length; i++) {
  22757. if (res.data[0][i].tools == 1) {
  22758. this.wbCount = res.data[0][i].count;
  22759. } else if (res.data[0][i].tools == 2) {
  22760. this.wordCount = res.data[0][i].count;
  22761. } else if (res.data[0][i].tools == 3) {
  22762. this.mindCount = res.data[0][i].count;
  22763. } else if (res.data[0][i].tools == 4) {
  22764. this.askCount = res.data[0][i].count;
  22765. } else if (res.data[0][i].tools == 6) {
  22766. this.noteCount = res.data[0][i].count;
  22767. } else if (res.data[0][i].tools == 7) {
  22768. this.mindNetWorkCount = res.data[0][i].count;
  22769. } else if (res.data[0][i].tools == 8) {
  22770. this.libraryCount = res.data[0][i].count;
  22771. } else if (res.data[0][i].tools == 16) {
  22772. this.workCount = res.data[0][i].count;
  22773. } else if (res.data[0][i].tools == 10) {
  22774. this.timeCount = res.data[0][i].count;
  22775. } else if (res.data[0][i].tools == 15) {
  22776. this.answerCount = res.data[0][i].count;
  22777. } else if (res.data[0][i].tools == 18) {
  22778. this.trainCount = res.data[0][i].count;
  22779. }
  22780. }
  22781. })
  22782. .catch((err) => {
  22783. console.error(err);
  22784. });
  22785. },
  22786. openTools(t, i, index, c, sName,id) {
  22787. var z = JSON.parse(c);
  22788. this.noteName = sName;
  22789. if (t == 4) {
  22790. this.radio = [];
  22791. this.isAnswer = false;
  22792. let b = z[0].anwer;
  22793. this.radio = b;
  22794. this.askJson = z[0].askJson;
  22795. this.isAnswer = true;
  22796. this.dialogVisible5 = true;
  22797. } else if (t == 45) {
  22798. this.radio = [];
  22799. this.isAnswer = false;
  22800. let b = z[0].anwer;
  22801. this.radio = b;
  22802. this.testJson = z[0].testJson;
  22803. this.isAnswer = true;
  22804. this.dialogVisibleChoice = true;
  22805. }else if(t == 69){
  22806. this.oldEnglishJson1 = {}
  22807. this.oldEnglishJson = {}
  22808. this.englishList1 = {}
  22809. this.newEngIndex = -1;
  22810. this.isNoUserid = false;
  22811. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22812. .toolChoose[i].englishList;
  22813. this.oldEnglishJson = z;
  22814. this.engWid = id;
  22815. this.newEnglishList = { engTitle:"",engText:"" }
  22816. this.newEnglishList1 = []
  22817. this.selectEngC(id,z);
  22818. }else if(t == 62){
  22819. this.videoType = 1;
  22820. this.videoJson = {};
  22821. this.videoJson = JSON.parse(c);
  22822. // this.videoJson =
  22823. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22824. // index
  22825. // ].toolChoose[i].videoJson;
  22826. this.dialogVisibleVideo = true;
  22827. }
  22828. // else if (t == 15) {
  22829. // this.answerQ = "";
  22830. // this.questionAnswer = "";
  22831. // this.answerQ = z[0].answerTitle;
  22832. // this.questionAnswer = z[0].answer;
  22833. // this.answerDialogVisible = true;
  22834. // }
  22835. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22836. },
  22837. fastText(p, t) {
  22838. if (t == 1) {
  22839. this.commentText += p;
  22840. } else {
  22841. this.eScore.eBzText += p;
  22842. }
  22843. },
  22844. addTools(t, i, index) {
  22845. var a = 0;
  22846. // this.taskCount = index;
  22847. this.toolindex = i;
  22848. if (t == 1) {
  22849. if (this.wbCount > 0) {
  22850. this.updateCount(this.wbCount, t);
  22851. } else {
  22852. this.wbCount++;
  22853. a = this.wbCount;
  22854. this.toolsCount(a, t);
  22855. }
  22856. window.topU.postMessage(
  22857. {
  22858. tools: "1",
  22859. cid: this.id,
  22860. stage: this.courseType,
  22861. task: this.taskCount,
  22862. tool: i,
  22863. },
  22864. "*"
  22865. );
  22866. } else if (t == 2) {
  22867. if (this.wordCount > 0) {
  22868. this.updateCount(this.wordCount, t);
  22869. } else {
  22870. this.wordCount++;
  22871. a = this.wordCount;
  22872. this.toolsCount(a, t);
  22873. }
  22874. window.topU.postMessage({ tools: "2" }, "*");
  22875. } else if (t == 3) {
  22876. if (this.mindCount > 0) {
  22877. this.updateCount(this.mindCount, t);
  22878. } else {
  22879. this.mindCount++;
  22880. a = this.mindCount;
  22881. this.toolsCount(a, t);
  22882. }
  22883. window.topU.postMessage(
  22884. {
  22885. tools: "3",
  22886. cid: this.id,
  22887. stage: this.courseType,
  22888. task: this.taskCount,
  22889. tool: i,
  22890. },
  22891. "*"
  22892. );
  22893. } else if (t == 4) {
  22894. this.radio = [];
  22895. this.noteName = "";
  22896. this.isAnswer = false;
  22897. if (this.askCount > 0) {
  22898. this.updateCount(this.askCount, t);
  22899. } else {
  22900. this.askCount++;
  22901. a = this.askCount;
  22902. this.toolsCount(a, t);
  22903. }
  22904. if (!this.dialogVisible2) {
  22905. this.askJson.askJson =
  22906. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22907. index
  22908. ].toolChoose[i].askJson;
  22909. this.askJson.askTitle =
  22910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22911. index
  22912. ].toolChoose[i].askTitle;
  22913. this.askJson.askCount =
  22914. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22915. index
  22916. ].toolChoose[i].askCount;
  22917. } else {
  22918. this.askJson.askJson = this.chapTools.askJson.askJson;
  22919. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22920. this.askJson.askCount = this.chapTools.askJson.askCount;
  22921. }
  22922. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22923. if (this.askJson.askJson[k].type == "2") {
  22924. this.radio.push([]);
  22925. } else {
  22926. this.radio.push("");
  22927. }
  22928. }
  22929. this.dialogVisible5 = true;
  22930. // window.topU.postMessage({ tools: "4" }, "*");
  22931. } else if (t == 45) {
  22932. this.noteName = "";
  22933. this.radio = [];
  22934. this.isAnswer = false;
  22935. if (this.askCount > 0) {
  22936. this.updateCount(this.askCount, t);
  22937. } else {
  22938. this.askCount++;
  22939. a = this.askCount;
  22940. this.toolsCount(a, t);
  22941. }
  22942. this.testJson =
  22943. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22944. index
  22945. ].toolChoose[i].testJson;
  22946. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22947. if (this.testJson.testJson[k].type == "2") {
  22948. this.radio.push([]);
  22949. } else {
  22950. this.radio.push("");
  22951. }
  22952. }
  22953. this.dialogVisibleChoice = true;
  22954. // window.topU.postMessage({ tools: "4" }, "*");
  22955. } else if (t == 5) {
  22956. if (this.scoreCount > 0) {
  22957. this.updateCount(this.scoreCount, t);
  22958. } else {
  22959. this.scoreCount++;
  22960. a = this.scoreCount;
  22961. this.toolsCount(a, t);
  22962. }
  22963. this.dialogVisible4 = true;
  22964. // window.topU.postMessage({ tools: "5" }, "*");
  22965. } else if (t == 6) {
  22966. if (this.noteCount > 0) {
  22967. this.updateCount(this.noteCount, t);
  22968. } else {
  22969. this.noteCount++;
  22970. a = this.noteCount;
  22971. this.toolsCount(a, t);
  22972. }
  22973. window.topU.postMessage(
  22974. {
  22975. tools: "6",
  22976. cid: this.id,
  22977. stage: this.courseType,
  22978. task: this.taskCount,
  22979. tool: i,
  22980. },
  22981. "*"
  22982. );
  22983. } else if (t == 7) {
  22984. if (this.mindNetWorkCount > 0) {
  22985. this.updateCount(this.mindNetWorkCount, t);
  22986. } else {
  22987. this.mindNetWorkCount++;
  22988. a = this.mindNetWorkCount;
  22989. this.toolsCount(a, t);
  22990. }
  22991. window.topU.postMessage(
  22992. {
  22993. tools: "7",
  22994. cid: this.id,
  22995. stage: this.courseType,
  22996. task: this.taskCount,
  22997. tool: i,
  22998. },
  22999. "*"
  23000. );
  23001. } else if (t == 16) {
  23002. if (this.workCount > 0) {
  23003. this.updateCount(this.workCount, t);
  23004. } else {
  23005. this.workCount++;
  23006. a = this.workCount;
  23007. this.toolsCount(a, t);
  23008. }
  23009. this.dialogVisible = true;
  23010. } else if (t == 50) {
  23011. if (this.tType == 2) {
  23012. this.$message.error("不支持学生使用");
  23013. return;
  23014. }
  23015. this.plworkFile = [];
  23016. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23017. if (!this.uploadCid) {
  23018. this.$message.error(
  23019. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23020. );
  23021. return;
  23022. }
  23023. // this.uploadCid =
  23024. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23025. // index
  23026. // ].toolChoose[i].uploadJson[0];
  23027. this.selectUploadStudent(2);
  23028. } else if (t == 8) {
  23029. if (this.libraryCount > 0) {
  23030. this.updateCount(this.libraryCount, t);
  23031. } else {
  23032. this.libraryCount++;
  23033. a = this.libraryCount;
  23034. this.toolsCount(a, t);
  23035. }
  23036. window.topU.postMessage({ tools: "8" }, "*");
  23037. } else if (t == 17) {
  23038. if (this.libraryCount > 0) {
  23039. this.updateCount(this.libraryCount, t);
  23040. } else {
  23041. this.libraryCount++;
  23042. a = this.libraryCount;
  23043. this.toolsCount(a, t);
  23044. }
  23045. window.topU.postMessage({ tools: "17" }, "*");
  23046. } else if (t == 18) {
  23047. if (this.trainCount > 0) {
  23048. this.updateCount(this.trainCount, t);
  23049. } else {
  23050. this.trainCount++;
  23051. a = this.trainCount;
  23052. this.toolsCount(a, t);
  23053. }
  23054. window.topU.postMessage({ tools: "18" }, "*");
  23055. } else if (t == 10) {
  23056. if (this.timeCount > 0) {
  23057. this.updateCount(this.timeCount, t);
  23058. } else {
  23059. this.timeCount++;
  23060. a = this.timeCount;
  23061. this.toolsCount(a, t);
  23062. }
  23063. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23064. .taskJson[index].toolChoose[i].preTime
  23065. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23066. .toolChoose[i].preTime
  23067. : "";
  23068. this.timeDialogVisible = true;
  23069. } else if (t == 15) {
  23070. this.answerQ = "";
  23071. this.questionAnswer = "";
  23072. if (this.answerCount > 0) {
  23073. this.updateCount(this.answerCount, t);
  23074. } else {
  23075. this.answerCount++;
  23076. a = this.answerCount;
  23077. this.toolsCount(a, t);
  23078. }
  23079. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23080. .taskJson[index].toolChoose[i].answerQ
  23081. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23082. .toolChoose[i].answerQ
  23083. : "";
  23084. this.answerDialogVisible = true;
  23085. } else if (t == 21) {
  23086. window.topU.postMessage({ tools: "21" }, "*");
  23087. } else if (t == 22) {
  23088. window.topU.postMessage({ tools: "22" }, "*");
  23089. } else if (t == 23) {
  23090. window.topU.postMessage({ tools: "23" }, "*");
  23091. } else if (t == 24) {
  23092. window.topU.postMessage({ tools: "24" }, "*");
  23093. } else if (t == 25) {
  23094. window.topU.postMessage({ tools: "25" }, "*");
  23095. } else if (t == 31) {
  23096. window.topU.postMessage({ tools: "31" }, "*");
  23097. } else if (t == 28) {
  23098. window.topU.postMessage({ tools: "28" }, "*");
  23099. } else if (t == 37) {
  23100. window.topU.postMessage({ tools: "37" }, "*");
  23101. } else if (t == 38) {
  23102. window.topU.postMessage({ tools: "38" }, "*");
  23103. } else if (t == 39) {
  23104. window.topU.postMessage({ tools: "39" }, "*");
  23105. } else if (t == 32) {
  23106. window.topU.postMessage({ tools: "32" }, "*");
  23107. } else if (t == 66) {
  23108. window.topU.postMessage({ tools: "66" }, "*");
  23109. } else if (t == 67) {
  23110. window.topU.postMessage({ tools: "67" }, "*");
  23111. } else if (t == 68) {
  23112. window.topU.postMessage({ tools: "68" }, "*");
  23113. } else if (t == 57) {
  23114. // window.topU.postMessage({ tools: "57" }, "*");
  23115. window.topU.postMessage(
  23116. {
  23117. tools: "57u",
  23118. cid: this.id,
  23119. stage: this.courseType,
  23120. task: this.taskCount,
  23121. tool: i,
  23122. },
  23123. "*"
  23124. );
  23125. } else if (t == 58) {
  23126. window.topU.postMessage({ tools: "58" }, "*");
  23127. } else if (t == 59) {
  23128. window.topU.postMessage({ tools: "59" }, "*");
  23129. } else if (t == 60) {
  23130. window.topU.postMessage({ tools: "60" }, "*");
  23131. } else if (t == 61) {
  23132. window.topU.postMessage({ tools: "61" }, "*");
  23133. } else if (t == 63) {
  23134. window.topU.postMessage({ tools: "63" }, "*");
  23135. } else if (t == 71) {
  23136. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23137. // this.$message.error("该工具不可使用");
  23138. // return
  23139. // }
  23140. window.topU.postMessage({ tools: "71" }, "*");
  23141. } else if (t == 72) {
  23142. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23143. .taskJson[index].toolChoose[i].appJson
  23144. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23145. .toolChoose[i].appJson
  23146. : "";
  23147. if(!item || !item.url){
  23148. this.$message.error("应用连接为空, 请到课程管理中添加");
  23149. return;
  23150. }
  23151. if (!document.fullscreenElement) {
  23152. this.enterFullScreen();
  23153. }
  23154. this.$refs.appStoreC.getData(item.url,this.userid)
  23155. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23156. // window.open(item.url, "_blank");
  23157. } else if (t == 69) {
  23158. if (this.worksStudent[i].length) {
  23159. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23160. if (this.userid == this.worksStudent[i][k].userid) {
  23161. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  23162. break;
  23163. } else {
  23164. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23165. }
  23166. }
  23167. } else {
  23168. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23169. }
  23170. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23171. .taskJson[index].toolChoose[i].englishList
  23172. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23173. .toolChoose[i].englishList
  23174. : {};
  23175. this.englishToolIndex = i;
  23176. this.myAnList = this.myAnswerList1;
  23177. this.engDialogVisible = true;
  23178. } else if (t == 70) {
  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 && this.worksStudent[i][k].type == 17) {
  23182. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  23183. break;
  23184. } else {
  23185. this.englishVoiceJsonWork = [];
  23186. }
  23187. }
  23188. } else {
  23189. this.englishVoiceJsonWork = [];
  23190. }
  23191. let englishVoiceJson = {}
  23192. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23193. .taskJson[index].toolChoose[i].englishVoiceJson
  23194. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23195. .toolChoose[i].englishVoiceJson
  23196. : {};
  23197. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23198. this.EnglishVoiceDialog = true;
  23199. } else if (t == 65) {
  23200. if (this.tType == 2) {
  23201. this.$message.error("不支持学生使用");
  23202. return;
  23203. }
  23204. this.uploadCid = this.tcid;
  23205. if (!this.uploadCid) {
  23206. this.$message.error(
  23207. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23208. );
  23209. return;
  23210. }
  23211. this.selectPickStudent();
  23212. } else if (t == 26) {
  23213. window.topU.postMessage(
  23214. {
  23215. tools: "26",
  23216. cid: this.id,
  23217. stage: this.courseType,
  23218. task: this.taskCount,
  23219. tool: i,
  23220. },
  23221. "*"
  23222. );
  23223. } else if (t == 40) {
  23224. if (this.evalCount > 0) {
  23225. this.updateCount(this.evalCount, t);
  23226. } else {
  23227. this.evalCount++;
  23228. a = this.evalCount;
  23229. this.toolsCount(a, t);
  23230. }
  23231. this.eScore = { eBzText: "", eStar: [] };
  23232. if (this.worksStudent[i].length) {
  23233. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23234. if (this.userid == this.worksStudent[i][k].userid) {
  23235. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23236. this.rateJson =
  23237. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23238. index
  23239. ].toolChoose[i].rateJson;
  23240. break;
  23241. } else {
  23242. this.rateJson =
  23243. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23244. index
  23245. ].toolChoose[i].rateJson;
  23246. }
  23247. }
  23248. } else {
  23249. this.rateJson =
  23250. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23251. index
  23252. ].toolChoose[i].rateJson;
  23253. }
  23254. this.isStar = false;
  23255. this.studentEvalDialogVisible = true;
  23256. } else if (t == 41) {
  23257. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23258. .taskJson[index].toolChoose[i].selectJson
  23259. ? JSON.parse(
  23260. JSON.stringify(
  23261. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23262. index
  23263. ].toolChoose[i].selectJson
  23264. )
  23265. )
  23266. : { url: "", select: [], answer: [] };
  23267. if (this.worksStudent[i].length) {
  23268. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23269. if (this.userid == this.worksStudent[i][k].userid) {
  23270. var a = this.worksStudent[i][k].works.split(",");
  23271. for (var ki = 0; ki < a.length; ki++) {
  23272. a[ki] = parseInt(a[ki]);
  23273. }
  23274. this.selectAnswer = {
  23275. answer: a,
  23276. stu: this.worksStudent[i][k].sName,
  23277. };
  23278. break;
  23279. } else {
  23280. this.selectAnswer = { answer: [], stu: "" };
  23281. }
  23282. }
  23283. } else {
  23284. this.selectAnswer = { answer: [], stu: "" };
  23285. }
  23286. this.isSelect = false;
  23287. this.dialogVisibleSelect = true;
  23288. } else if (t == 44) {
  23289. window.topU.postMessage({ tools: "44" }, "*");
  23290. } else if (t == 47) {
  23291. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23292. .taskJson[index].toolChoose[i].sentenceList
  23293. ? JSON.parse(
  23294. JSON.stringify(
  23295. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23296. index
  23297. ].toolChoose[i].sentenceList
  23298. )
  23299. )
  23300. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23301. for (var q = 0; q < this.sentenceList.length; q++) {
  23302. this.sentenceList[q].chooseSenList = [];
  23303. this.sentenceList[q].addChangeSen = [];
  23304. this.sentenceList[q].addChangeSen = JSON.parse(
  23305. JSON.stringify(this.sentenceList[q].addSentence)
  23306. );
  23307. this.sentenceList[q].chooseSenList.length =
  23308. this.sentenceList[q].rightAnswer.length;
  23309. }
  23310. this.dialogVisibleSentence = true;
  23311. } else if (t == 48) {
  23312. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23313. .taskJson[index].toolChoose[i].tableJson
  23314. ? JSON.parse(
  23315. JSON.stringify(
  23316. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23317. index
  23318. ].toolChoose[i].tableJson
  23319. )
  23320. )
  23321. : { text: "" };
  23322. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23323. if (this.worksStudent[i].length) {
  23324. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23325. if (this.userid == this.worksStudent[i][k].userid) {
  23326. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23327. break;
  23328. }
  23329. }
  23330. }
  23331. this.dialogVisibleTable = true;
  23332. } else if (t == 52) {
  23333. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23334. .taskJson[index].toolChoose[i].wordJson
  23335. ? JSON.parse(
  23336. JSON.stringify(
  23337. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23338. index
  23339. ].toolChoose[i].wordJson
  23340. )
  23341. )
  23342. : { text: "" };
  23343. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23344. if (this.worksStudent[i].length) {
  23345. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23346. if (this.userid == this.worksStudent[i][k].userid) {
  23347. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23348. break;
  23349. }
  23350. }
  23351. }
  23352. this.dialogVisibleWord = true;
  23353. } else if (t == 49) {
  23354. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  23355. return
  23356. }
  23357. this.groupJson =
  23358. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23359. index
  23360. ].toolChoose[i].groupJson;
  23361. this.islock = this.groupJson.islock == 1 ? true : false;
  23362. this.dialogVisibleGroup = true;
  23363. } else if (t == 62) {
  23364. this.videoType = 0;
  23365. this.videoJson = {};
  23366. this.videoJson =
  23367. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23368. index
  23369. ].toolChoose[i].videoJson;
  23370. this.dialogVisibleVideo = true;
  23371. }
  23372. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23373. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  23374. },
  23375. teacherWorkSubmit(t, i, index, s) {
  23376. this.sStudent = s;
  23377. this.toolindex = i;
  23378. this.sTool = t;
  23379. if (this.tType !== "1" && this.tType !== "4") {
  23380. return;
  23381. }
  23382. if (t == 16 || t == 32 || t == 50) {
  23383. this.dialogVisibleWorks = true;
  23384. } else if (t == 15) {
  23385. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23386. .taskJson[index].toolChoose[i].answerQ
  23387. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23388. .toolChoose[i].answerQ
  23389. : "";
  23390. this.questionAnswer = "";
  23391. this.answerDialogVisibleTeacher = true; //问答
  23392. } else if (t == 52) {
  23393. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23394. .taskJson[index].toolChoose[i].wordJson
  23395. ? JSON.parse(
  23396. JSON.stringify(
  23397. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23398. index
  23399. ].toolChoose[i].wordJson
  23400. )
  23401. )
  23402. : { text: "" };
  23403. if (this.worksStudent[i].length) {
  23404. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23405. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23406. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23407. break;
  23408. }
  23409. }
  23410. }
  23411. this.dialogVisibleWordTeacher = true; //文档
  23412. } else if (t == 4) {
  23413. this.radio = [];
  23414. this.noteName = "";
  23415. this.isAnswer = false;
  23416. if (this.askCount > 0) {
  23417. this.updateCount(this.askCount, t);
  23418. } else {
  23419. this.askCount++;
  23420. a = this.askCount;
  23421. this.toolsCount(a, t);
  23422. }
  23423. if (!this.dialogVisible2) {
  23424. this.askJson.askJson =
  23425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23426. index
  23427. ].toolChoose[i].askJson;
  23428. this.askJson.askTitle =
  23429. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23430. index
  23431. ].toolChoose[i].askTitle;
  23432. this.askJson.askCount =
  23433. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23434. index
  23435. ].toolChoose[i].askCount;
  23436. } else {
  23437. this.askJson.askJson = this.chapTools.askJson.askJson;
  23438. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23439. this.askJson.askCount = this.chapTools.askJson.askCount;
  23440. }
  23441. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23442. if (this.askJson.askJson[k].type == "2") {
  23443. this.radio.push([]);
  23444. } else {
  23445. this.radio.push("");
  23446. }
  23447. }
  23448. this.dialogVisible5Teacher = true;
  23449. } else if (t == 45) {
  23450. this.noteName = "";
  23451. this.radio = [];
  23452. this.isAnswer = false;
  23453. if (this.askCount > 0) {
  23454. this.updateCount(this.askCount, t);
  23455. } else {
  23456. this.askCount++;
  23457. a = this.askCount;
  23458. this.toolsCount(a, t);
  23459. }
  23460. this.testJson =
  23461. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23462. index
  23463. ].toolChoose[i].testJson;
  23464. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23465. if (this.testJson.testJson[k].type == "2") {
  23466. this.radio.push([]);
  23467. } else {
  23468. this.radio.push("");
  23469. }
  23470. }
  23471. this.dialogVisibleChoiceTeacher = true;
  23472. } else if (t == 41) {
  23473. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23474. .taskJson[index].toolChoose[i].selectJson
  23475. ? JSON.parse(
  23476. JSON.stringify(
  23477. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23478. index
  23479. ].toolChoose[i].selectJson
  23480. )
  23481. )
  23482. : { url: "", select: [], answer: [] };
  23483. if (this.worksStudent[i].length) {
  23484. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23485. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23486. var a = this.worksStudent[i][k].works.split(",");
  23487. for (var ki = 0; ki < a.length; ki++) {
  23488. a[ki] = parseInt(a[ki]);
  23489. }
  23490. this.selectAnswer = {
  23491. answer: a,
  23492. stu: this.worksStudent[i][k].sName,
  23493. };
  23494. break;
  23495. } else {
  23496. this.selectAnswer = { answer: [], stu: "" };
  23497. }
  23498. }
  23499. } else {
  23500. this.selectAnswer = { answer: [], stu: "" };
  23501. }
  23502. this.isSelect = false;
  23503. this.dialogVisibleSelectTeacher = true;
  23504. } else if (t == 47) {
  23505. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23506. .taskJson[index].toolChoose[i].sentenceList
  23507. ? JSON.parse(
  23508. JSON.stringify(
  23509. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23510. index
  23511. ].toolChoose[i].sentenceList
  23512. )
  23513. )
  23514. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23515. for (var q = 0; q < this.sentenceList.length; q++) {
  23516. this.sentenceList[q].chooseSenList = [];
  23517. this.sentenceList[q].addChangeSen = [];
  23518. this.sentenceList[q].addChangeSen = JSON.parse(
  23519. JSON.stringify(this.sentenceList[q].addSentence)
  23520. );
  23521. this.sentenceList[q].chooseSenList.length =
  23522. this.sentenceList[q].rightAnswer.length;
  23523. }
  23524. this.dialogVisibleSentenceTeacher = true;
  23525. } else if (t == 48) {
  23526. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23527. .taskJson[index].toolChoose[i].tableJson
  23528. ? JSON.parse(
  23529. JSON.stringify(
  23530. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23531. index
  23532. ].toolChoose[i].tableJson
  23533. )
  23534. )
  23535. : { text: "" };
  23536. if (this.worksStudent[i].length) {
  23537. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23538. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23539. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23540. break;
  23541. }
  23542. }
  23543. }
  23544. this.dialogVisibleTableTeacher = true;
  23545. } else if (t == 40) {
  23546. if (this.evalCount > 0) {
  23547. this.updateCount(this.evalCount, t);
  23548. } else {
  23549. this.evalCount++;
  23550. a = this.evalCount;
  23551. this.toolsCount(a, t);
  23552. }
  23553. this.eScore = { eBzText: "", eStar: [] };
  23554. if (this.worksStudent[i].length) {
  23555. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23556. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23557. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23558. this.rateJson =
  23559. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23560. index
  23561. ].toolChoose[i].rateJson;
  23562. break;
  23563. } else {
  23564. this.rateJson =
  23565. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23566. index
  23567. ].toolChoose[i].rateJson;
  23568. }
  23569. }
  23570. } else {
  23571. this.rateJson =
  23572. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23573. index
  23574. ].toolChoose[i].rateJson;
  23575. }
  23576. this.isStar = false;
  23577. this.studentEvalDialogVisibleTeacher = true;
  23578. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23579. window.topU.postMessage(
  23580. {
  23581. tools: t + "teacher",
  23582. cid: this.id,
  23583. stage: this.courseType,
  23584. task: this.taskCount,
  23585. tool: i,
  23586. student: this.sStudent,
  23587. },
  23588. "*"
  23589. );
  23590. }else if (t == 72) {
  23591. if (!document.fullscreenElement) {
  23592. this.enterFullScreen();
  23593. }
  23594. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23595. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23596. }
  23597. },
  23598. openCocoPi(tool, i, uid, uname) {
  23599. let student = {
  23600. userid: uid,
  23601. student: uname,
  23602. };
  23603. if (tool == 57) {
  23604. window.topU.postMessage(
  23605. {
  23606. tools: tool + "teacher",
  23607. cid: this.id,
  23608. stage: this.courseType,
  23609. task: this.taskCount,
  23610. tool: i,
  23611. student: student,
  23612. },
  23613. "*"
  23614. );
  23615. }
  23616. },
  23617. setRightAnswer(s, i, j) {
  23618. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23619. if (
  23620. this.sentenceList[i].chooseSenList[q] == undefined ||
  23621. this.sentenceList[i].chooseSenList[q] == ""
  23622. ) {
  23623. this.sentenceList[i].chooseSenList[q] = s;
  23624. this.sentenceList[i].addChangeSen[j] = "";
  23625. break;
  23626. }
  23627. }
  23628. this.$forceUpdate();
  23629. },
  23630. returnCard(r, i, j) {
  23631. var a = this.sentenceList[i].addSentence.indexOf(r);
  23632. this.sentenceList[i].chooseSenList[j] = "";
  23633. this.sentenceList[i].addChangeSen[a] = r;
  23634. this.$forceUpdate();
  23635. },
  23636. // addSentenceTool() {
  23637. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23638. // this.taskCount
  23639. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23640. // this.sentenceList = [
  23641. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23642. // ];
  23643. // this.dialogVisibleSentence = false;
  23644. // },
  23645. toolsCount(a, t) {
  23646. let params = {
  23647. cid: this.id,
  23648. chid: this.courseType,
  23649. uid: this.userid,
  23650. tid: t,
  23651. count: a,
  23652. };
  23653. this.ajax
  23654. .get(this.$store.state.api + "insertToolsCount", params)
  23655. .then((res) => {
  23656. this.selectCount();
  23657. })
  23658. .catch((err) => {
  23659. console.error(err);
  23660. });
  23661. },
  23662. updateCount(c, t) {
  23663. c++;
  23664. let params = {
  23665. cid: this.id,
  23666. chid: this.courseType,
  23667. uid: this.userid,
  23668. tid: t,
  23669. count: c,
  23670. };
  23671. this.ajax
  23672. .get(this.$store.state.api + "updateToolsCount", params)
  23673. .then((res) => {
  23674. this.selectCount();
  23675. })
  23676. .catch((err) => {
  23677. console.error(err);
  23678. });
  23679. },
  23680. checkEva() {
  23681. if (this.evalua != "") {
  23682. for (var i = 0; i < this.evaJuri.length; i++) {
  23683. if (this.evalua == this.evaJuri[i].id) {
  23684. this.eTitle = this.evaJuri[i].title;
  23685. this.eJson = JSON.parse(this.evaJuri[i].content);
  23686. }
  23687. }
  23688. this.$forceUpdate();
  23689. setTimeout(() => {
  23690. this.setMindData();
  23691. }, 0);
  23692. }
  23693. },
  23694. selectEva() {
  23695. let params = {
  23696. oid: this.oid,
  23697. };
  23698. this.ajax
  23699. .get(this.$store.state.api + "selectAllEvaluation", params)
  23700. .then((res) => {
  23701. this.evaJuri = res.data[0];
  23702. })
  23703. .catch((err) => {
  23704. console.error(err);
  23705. });
  23706. },
  23707. setMindData() {
  23708. this.data.data = [];
  23709. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23710. let _eJson = Object.keys(this.eJson);
  23711. let _e = this.eJson;
  23712. for (let i = 0; i < _eJson.length; i++) {
  23713. let element = _e[_eJson[i]];
  23714. this.data.data.push({
  23715. id: element.id,
  23716. parentid: "root",
  23717. topic: element.name,
  23718. });
  23719. let _eJsonc = Object.keys(element.child);
  23720. let _e2 = element.child;
  23721. for (let j = 0; j < _eJsonc.length; j++) {
  23722. let _ec = _e2[_eJsonc[j]];
  23723. this.data.data.push({
  23724. id: _ec.id,
  23725. parentid: element.id,
  23726. topic: _ec.name,
  23727. });
  23728. let _eJsonz = Object.keys(_ec.child);
  23729. let _e3 = _ec.child;
  23730. for (let z = 0; z < _eJsonz.length; z++) {
  23731. let _ez = _e3[_eJsonz[z]];
  23732. this.data.data.push({
  23733. id: _ez.id,
  23734. parentid: _ec.id,
  23735. topic: _ez.name,
  23736. });
  23737. }
  23738. }
  23739. }
  23740. this.$forceUpdate();
  23741. },
  23742. checkFileFull(type, url) {
  23743. this.fullDialogVisible = true;
  23744. this.fulltype = type;
  23745. this.fullUrl = url;
  23746. },
  23747. async checkFileFull1(t, f) {
  23748. this.fullDialogVisible = true;
  23749. if (t == 6) {
  23750. this.fulltype = 1;
  23751. this.fullUrl = JSON.parse(JSON.stringify(f));
  23752. } else if (t == 8) {
  23753. this.fulltype = 2;
  23754. this.fullUrl = f.url;
  23755. }else if (t == 15) {
  23756. this.fulltype = 4;
  23757. this.fullUrl = f.url;
  23758. } else if (t == 16) {
  23759. this.fulltype = 16;
  23760. this.fullUrl = f.url;
  23761. } else if (
  23762. t == 3 &&
  23763. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23764. "PDF"
  23765. ) {
  23766. this.fulltype = 3;
  23767. this.fullUrl = f.url;
  23768. } else if (t == 3) {
  23769. this.fulltype = 2;
  23770. let _uuurl = await this.checkLink(f.url);
  23771. console.log(_uuurl)
  23772. this.fullUrl =
  23773. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23774. }
  23775. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23776. },
  23777. openSname(n, id, i, uid) {
  23778. this.snameWid = id;
  23779. this.worksSName = n;
  23780. this.worksSid = uid == n ? "" : uid;
  23781. this.toolindex = i;
  23782. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23783. if (!this.uploadCid) {
  23784. this.$message.error(
  23785. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23786. );
  23787. return;
  23788. }
  23789. this.selectUploadStudent(1);
  23790. },
  23791. updateName() {
  23792. let params = {
  23793. n: this.worksSName,
  23794. cid: this.snameWid,
  23795. };
  23796. this.ajax
  23797. .get(this.$store.state.api + "updateCourseWorksName", params)
  23798. .then((res) => {
  23799. this.$message({
  23800. message: "修改成功",
  23801. type: "success",
  23802. });
  23803. this.dialogVisibleSname = false;
  23804. this.getCourseDetail(2);
  23805. this.snameWid = "";
  23806. this.worksSName = "";
  23807. })
  23808. .catch((err) => {
  23809. console.error(err);
  23810. });
  23811. },
  23812. downloadFile2(f) {
  23813. // const loading = this.$loading.service({
  23814. // background: "rgba(255, 255, 255, 0.7)",
  23815. // target: document.body,
  23816. // text: "文件加载中...",
  23817. // });
  23818. // let url2 = f.url;
  23819. // let _url2 = "";
  23820. // if (
  23821. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23822. // ) {
  23823. // _url2 = url2.split(
  23824. // "https://view.officeapps.live.com/op/view.aspx?src="
  23825. // )[1];
  23826. // } else {
  23827. // _url2 = url2;
  23828. // }
  23829. // let params = {
  23830. // url: _url2,
  23831. // name: f.name,
  23832. // };
  23833. // this.ajax
  23834. // .get(this.$store.state.api + "download", params)
  23835. // .then((res) => {
  23836. // loading.close();
  23837. // let content = res.data.data.data;
  23838. // let ab = new ArrayBuffer(content.length);
  23839. // let view = new Uint8Array(ab);
  23840. // for (var i = 0; i < content.length; ++i) {
  23841. // view[i] = content[i];
  23842. // }
  23843. // let elink = document.createElement("a");
  23844. // elink.download = f.name;
  23845. // elink.style.display = "none";
  23846. // let blob = new Blob([ab], {
  23847. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23848. // });
  23849. // elink.href = URL.createObjectURL(blob);
  23850. // document.body.appendChild(elink);
  23851. // elink.click();
  23852. // document.body.removeChild(elink);
  23853. // })
  23854. // .catch((err) => {
  23855. // loading.close();
  23856. // console.error(err);
  23857. // });
  23858. var credentials = {
  23859. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23860. secretAccessKey: "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",
  23861. }; //秘钥形式的登录上传
  23862. window.AWS.config.update(credentials);
  23863. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23864. let url2 = f.url;
  23865. let _url2 = "";
  23866. if (
  23867. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23868. ) {
  23869. _url2 = url2.split(
  23870. "https://view.officeapps.live.com/op/view.aspx?src="
  23871. )[1];
  23872. } else {
  23873. _url2 = url2;
  23874. }
  23875. let _this = this;
  23876. _this.downLoading = true
  23877. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23878. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23879. var params = {
  23880. Bucket: "ccrb",
  23881. Key: name
  23882. };
  23883. s3.getObject(params, function (err, data) {
  23884. _this.downLoading = false
  23885. if (err) console.log(err, err.stack); // an error occurred
  23886. else {
  23887. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23888. let a = document.createElement("a");
  23889. a.name = f.name;
  23890. a.href = url;
  23891. a.download = f.name;
  23892. a.click();
  23893. console.log(data);
  23894. } // sxuccessful response
  23895. });
  23896. return;
  23897. let url = f.url;
  23898. let _url = "";
  23899. if (
  23900. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23901. ) {
  23902. _url = url.split(
  23903. "https://view.officeapps.live.com/op/view.aspx?src="
  23904. )[1];
  23905. } else {
  23906. _url = url;
  23907. }
  23908. _this.downLoading = true
  23909. // const loading = _this.$loading.service({
  23910. // background: "rgba(255, 255, 255, 0.7)",
  23911. // target: document.body,
  23912. // text: "文件加载中...",
  23913. // });
  23914. let x = new XMLHttpRequest();
  23915. x.open("GET", _url, true);
  23916. x.responseType = "blob";
  23917. x.onload = function () {
  23918. _this.downLoading = false
  23919. // loading.close();
  23920. let url = window.URL.createObjectURL(new Blob([x.response]));
  23921. let a = document.createElement("a");
  23922. a.name = f.name;
  23923. a.href = url;
  23924. a.download = f.name;
  23925. a.click();
  23926. };
  23927. x.send();
  23928. },
  23929. downloadFile(url,uid) {
  23930. if (this.tType == 1 || this.userid == uid) {
  23931. let hz = url.substring(url.lastIndexOf(".") + 1);
  23932. if (hz == "txt" || hz == "md") {
  23933. this.lookTxt(url);
  23934. return;
  23935. }
  23936. var credentials = {
  23937. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23938. secretAccessKey: "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",
  23939. }; //秘钥形式的登录上传
  23940. window.AWS.config.update(credentials);
  23941. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23942. let url2 = url;
  23943. let _url2 = "";
  23944. if (
  23945. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23946. ) {
  23947. _url2 = url2.split(
  23948. "https://view.officeapps.live.com/op/view.aspx?src="
  23949. )[1];
  23950. } else {
  23951. _url2 = url2;
  23952. }
  23953. const loading2 = this.$loading.service({
  23954. background: "rgba(255, 255, 255, 0.7)",
  23955. target: document.body,
  23956. text: "文件加载中...",
  23957. });
  23958. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23959. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23960. var params = {
  23961. Bucket: "ccrb",
  23962. Key: name
  23963. };
  23964. s3.getObject(params, function (err, data) {
  23965. loading2.close();
  23966. if (err) console.log(err, err.stack); // an error occurred
  23967. else {
  23968. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23969. let a = document.createElement("a");
  23970. a.name = name;
  23971. a.href = url;
  23972. a.download = name;
  23973. a.click();
  23974. console.log(data);
  23975. } // sxuccessful response
  23976. });
  23977. }
  23978. return;
  23979. let _this = this;
  23980. let _url = "";
  23981. if (
  23982. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23983. ) {
  23984. _url = url.split(
  23985. "https://view.officeapps.live.com/op/view.aspx?src="
  23986. )[1];
  23987. } else {
  23988. _url = url;
  23989. }
  23990. const x = new XMLHttpRequest();
  23991. x.open("GET", _url, true);
  23992. x.responseType = "blob";
  23993. // this.downLoading = true
  23994. const loading = _this.$loading.service({
  23995. background: "rgba(255, 255, 255, 0.7)",
  23996. target: document.body,
  23997. text: "文件加载中...",
  23998. });
  23999. // _this.$message.success("文件下载中...");
  24000. x.onload = function (e) {
  24001. this.downLoading = false
  24002. loading.close();
  24003. let content = x.response;
  24004. let elink = document.createElement("a");
  24005. elink.download = decodeURI(
  24006. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24007. );
  24008. elink.style.display = "none";
  24009. let blob = new Blob([content]);
  24010. elink.href = URL.createObjectURL(blob);
  24011. document.body.appendChild(elink);
  24012. elink.click();
  24013. document.body.removeChild(elink);
  24014. };
  24015. x.send();
  24016. },
  24017. openLine(url) {
  24018. window.open(url);
  24019. },
  24020. resize() {
  24021. if (document.getElementsByClassName("box_course").length) {
  24022. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24023. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24024. if (this.showType == 2 || this.showType == 3) {
  24025. document.getElementsByClassName("navBox")[0].style.height =
  24026. a - 40 + 0+ "px";
  24027. } else {
  24028. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24029. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24030. }
  24031. }
  24032. }
  24033. this.Stbodywidth =
  24034. document.getElementsByClassName("student_body").length &&
  24035. document.getElementsByClassName("student_body")[0].offsetWidth;
  24036. },
  24037. closeDraw() {
  24038. this.bg = null;
  24039. this.drawShow = false;
  24040. },
  24041. showPicturePaint(url) {
  24042. let params = {
  24043. img: url,
  24044. };
  24045. this.ajax
  24046. .get(this.$store.state.api + "imgToBase64", params)
  24047. .then((res) => {
  24048. this.drawShow = true;
  24049. this.bg = res.data[0].img;
  24050. })
  24051. .catch((err) => {
  24052. console.error(err);
  24053. });
  24054. },
  24055. addImgDraw(base64) {
  24056. let file = { name: "批注图.png" };
  24057. let img = this.dataUrlToFile(base64, file);
  24058. this.beforeUpload1(img, 5);
  24059. },
  24060. addImgDrawImG(url) {
  24061. // console.log(url);
  24062. let params = [
  24063. {
  24064. wid: this.commentDetail.wid,
  24065. img: url,
  24066. },
  24067. ];
  24068. this.ajax
  24069. .post(this.$store.state.api + "updateCourseWorks", params)
  24070. .then((res) => {
  24071. this.$message({
  24072. message: "提交成功",
  24073. type: "success",
  24074. });
  24075. this.drawShow = false;
  24076. this.bg = "";
  24077. this.selectSWorks();
  24078. this.selectStudent();
  24079. })
  24080. .catch((err) => {
  24081. this.$message.error("提交失败");
  24082. console.error(err);
  24083. });
  24084. },
  24085. deletePicturePaint() {
  24086. this.$confirm("确定删除此批注吗?", "提示", {
  24087. confirmButtonText: "确定",
  24088. cancelButtonText: "取消",
  24089. type: "warning",
  24090. })
  24091. .then(() => {
  24092. let params = [
  24093. {
  24094. wid: this.commentDetail.wid,
  24095. img: "",
  24096. },
  24097. ];
  24098. this.ajax
  24099. .post(this.$store.state.api + "updateCourseWorks", params)
  24100. .then((res) => {
  24101. this.$message({
  24102. message: "删除成功",
  24103. type: "success",
  24104. });
  24105. this.selectSWorks();
  24106. this.selectStudent();
  24107. })
  24108. .catch((err) => {
  24109. this.$message.error("删除失败");
  24110. console.error(err);
  24111. });
  24112. })
  24113. .catch(() => {});
  24114. },
  24115. getAudioVideo(constraintsData) {
  24116. if (navigator.mediaDevices === undefined) {
  24117. navigator.mediaDevices = {};
  24118. }
  24119. if (navigator.mediaDevices.getUserMedia === undefined) {
  24120. navigator.mediaDevices.getUserMedia = function (constraints) {
  24121. // 首先,如果有getUserMedia的话,就获得它
  24122. var getUserMedia =
  24123. navigator.getUserMedia ||
  24124. navigator.webkitGetUserMedia ||
  24125. navigator.mozGetUserMedia ||
  24126. navigator.msGetUserMedia;
  24127. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24128. if (!getUserMedia) {
  24129. return Promise.reject({ code: 404 });
  24130. }
  24131. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24132. return new Promise(function (resolve, reject) {
  24133. getUserMedia.call(navigator, constraints, resolve, reject);
  24134. });
  24135. };
  24136. }
  24137. return navigator.mediaDevices.getUserMedia(constraintsData);
  24138. },
  24139. /**
  24140. * 开始录制
  24141. */
  24142. startRecording(callback) {
  24143. let _function = (screenStream) => {
  24144. this.addStreamStopListener(screenStream, () => {
  24145. console.log("流停止监听");
  24146. this.stopRecording();
  24147. this.$emit("streamStop", {});
  24148. // this.stopRecording();
  24149. });
  24150. var options = {
  24151. type: "video",
  24152. mimeType: "video/webm",
  24153. disableLogs: false,
  24154. getNativeBlob: false, // enable it for longer recordings
  24155. ignoreMutedMedia: false,
  24156. };
  24157. // this.video.srcObject = screenStream;
  24158. this.recorder = RecordRTC(screenStream, options);
  24159. this.recorder.startRecording();
  24160. this.recorder.screen = screenStream;
  24161. this.videoStart = true;
  24162. // callback(true);
  24163. };
  24164. this.getAudioVideo({ audio: true })
  24165. .then((res) => {
  24166. this.captureScreen(_function, true);
  24167. console.log("已点击允许,开启成功");
  24168. })
  24169. .catch((err) => {
  24170. // console.log('浏览器不支持,请更换浏览器')
  24171. // } else {
  24172. this.captureScreen(_function, false);
  24173. console.log("请检查是否存在麦克风");
  24174. });
  24175. },
  24176. /**
  24177. * 停止录制
  24178. */
  24179. stopRecording(callback) {
  24180. this.recorder.stopRecording(() => {
  24181. // this.video.src = this.video.srcObject = null;
  24182. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24183. const url = URL.createObjectURL(this.recorder.getBlob());
  24184. const a = document.createElement("a"); //this.fileName+
  24185. let videoFile = new File(
  24186. [this.recorder.getBlob()],
  24187. this.courseDetail.title + "录屏.mp4",
  24188. {
  24189. type: "video/mp4",
  24190. }
  24191. );
  24192. let downloadUrl = URL.createObjectURL(videoFile);
  24193. if(this.$refs.classRoomHelperRef){
  24194. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  24195. }
  24196. document.body.appendChild(a);
  24197. a.style.display = "none";
  24198. a.href = url;
  24199. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24200. a.click();
  24201. this.recorder.screen.stop();
  24202. this.recorder.destroy();
  24203. this.recorder = null;
  24204. this.videoStart = false;
  24205. // callback(false);
  24206. });
  24207. },
  24208. //初始化
  24209. captureScreen(callback, type) {
  24210. if (navigator.getDisplayMedia) {
  24211. //录制结束,文件下载
  24212. navigator
  24213. .getDisplayMedia({
  24214. video: true,
  24215. })
  24216. .then((screenStream) => {
  24217. if (type) {
  24218. navigator.mediaDevices
  24219. .getUserMedia({ audio: true })
  24220. .then((mic) => {
  24221. screenStream.addTrack(mic.getTracks()[0]);
  24222. callback(screenStream);
  24223. });
  24224. } else {
  24225. callback(screenStream);
  24226. }
  24227. })
  24228. .catch(function (error) {
  24229. console.log("error", error);
  24230. });
  24231. } else if (navigator.mediaDevices.getDisplayMedia) {
  24232. navigator.mediaDevices
  24233. .getDisplayMedia({
  24234. video: true,
  24235. })
  24236. .then((screenStream) => {
  24237. if (type) {
  24238. navigator.mediaDevices
  24239. .getUserMedia({ audio: true })
  24240. .then((mic) => {
  24241. screenStream.addTrack(mic.getTracks()[0]);
  24242. callback(screenStream);
  24243. });
  24244. } else {
  24245. callback(screenStream);
  24246. }
  24247. })
  24248. .catch(function (error) {
  24249. console.log("error", error);
  24250. });
  24251. } else {
  24252. var error = "getDisplayMedia API are not supported in this browser.";
  24253. console.log("error", error);
  24254. alert(error);
  24255. }
  24256. },
  24257. //流监听
  24258. addStreamStopListener(stream, callback) {
  24259. stream.addEventListener(
  24260. "ended",
  24261. function () {
  24262. callback();
  24263. callback = function () {};
  24264. },
  24265. false
  24266. );
  24267. stream.addEventListener(
  24268. "inactive",
  24269. function () {
  24270. callback();
  24271. callback = function () {};
  24272. },
  24273. false
  24274. );
  24275. stream.getTracks().forEach(function (track) {
  24276. track.addEventListener(
  24277. "ended",
  24278. function () {
  24279. callback();
  24280. callback = function () {};
  24281. },
  24282. false
  24283. );
  24284. track.addEventListener(
  24285. "inactive",
  24286. function () {
  24287. callback();
  24288. callback = function () {};
  24289. },
  24290. false
  24291. );
  24292. });
  24293. },
  24294. updateGroup() {
  24295. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24296. this.dialogVisibleGroup2 = true;
  24297. },
  24298. numberPan() {
  24299. if (
  24300. /[^\d]/.test(this.groupJson.number) ||
  24301. this.groupJson.number < 2 ||
  24302. this.groupJson.number > 10
  24303. ) {
  24304. this.$message.error("请输入2-10的数字");
  24305. this.groupJson.number = "";
  24306. }
  24307. },
  24308. updateGroupJson() {
  24309. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24310. if (
  24311. this.groupStudentUid[this.toolindex][i].length >
  24312. this.groupJson2.number
  24313. ) {
  24314. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24315. return;
  24316. }
  24317. }
  24318. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24319. this.islock = this.groupJson.islock == 1 ? true : false;
  24320. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24321. this.taskCount
  24322. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24323. let params = [
  24324. {
  24325. cid: this.id,
  24326. chapters: JSON.stringify(this.chapInfoList),
  24327. uid: this.userid,
  24328. unitIndex: this.courseType,
  24329. },
  24330. ];
  24331. this.ajax
  24332. .post(this.$store.state.api + "updateWorkNew4", params)
  24333. .then((res) => {
  24334. this.$message.success("设置成功");
  24335. this.getCourseDetail(2);
  24336. this.dialogVisibleGroup2 = false;
  24337. this.groupJson2 = {};
  24338. this.$forceUpdate();
  24339. })
  24340. .catch((err) => {
  24341. this.$message.error("网络不佳");
  24342. console.error(err);
  24343. });
  24344. },
  24345. lockChair() {
  24346. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24347. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24348. this.updateGroupJson();
  24349. },
  24350. selectGroup(index) {
  24351. this.getCourseDetail(2, index);
  24352. },
  24353. joinGroup(index) {
  24354. if (this.groupJson.islock == 2) {
  24355. this.$message.error("位置已被锁定,无法加入");
  24356. return;
  24357. }
  24358. if (
  24359. this.groupStudent[this.toolindex][index].length >
  24360. this.groupJson.number ||
  24361. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24362. ) {
  24363. this.$message.error("位置已满,无法加入");
  24364. return;
  24365. }
  24366. let params = [
  24367. {
  24368. cid: this.id,
  24369. stage: this.courseType,
  24370. task: this.taskCount,
  24371. tool: this.toolindex,
  24372. g: index,
  24373. uid: this.userid,
  24374. },
  24375. ];
  24376. this.ajax
  24377. .post(this.$store.state.api + "joinGroup", params)
  24378. .then((res) => {
  24379. this.$message.success("加入成功");
  24380. this.getCourseDetail(2);
  24381. })
  24382. .catch((err) => {
  24383. this.$message.error("网络不佳");
  24384. console.error(err);
  24385. });
  24386. },
  24387. exitGroup(id) {
  24388. if (this.groupJson.islock == 2) {
  24389. this.$message.error("位置已被锁定,无法退出");
  24390. return;
  24391. }
  24392. let params = [
  24393. {
  24394. gid: id,
  24395. },
  24396. ];
  24397. this.ajax
  24398. .post(this.$store.state.api + "exitGroup", params)
  24399. .then((res) => {
  24400. this.$message.success("退出成功");
  24401. this.getCourseDetail(2);
  24402. })
  24403. .catch((err) => {
  24404. this.$message.error("网络不佳");
  24405. console.error(err);
  24406. });
  24407. },
  24408. groupUpload(index, task, gindex) {
  24409. this.taskCount = task;
  24410. this.toolindex = index;
  24411. this.groupIndex = gindex;
  24412. this.dialogVisibleGroupWork = true;
  24413. },
  24414. updateGroupChair(user) {
  24415. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24416. el.label = index;
  24417. return index != user.group;
  24418. });
  24419. this.updateGroupUser = user;
  24420. this.dialogVisibleUpdateGroup = true;
  24421. },
  24422. updateChair() {
  24423. if (
  24424. this.groupStudent[this.toolindex][this.checkChair].length >
  24425. this.groupJson.number ||
  24426. this.groupStudent[this.toolindex][this.checkChair].length ==
  24427. this.groupJson.number
  24428. ) {
  24429. this.$message.error("位置已满,无法加入");
  24430. return;
  24431. }
  24432. let params = [
  24433. {
  24434. cid: this.id,
  24435. stage: this.courseType,
  24436. task: this.taskCount,
  24437. tool: this.toolindex,
  24438. g: this.checkChair,
  24439. uid: this.updateGroupUser.userid,
  24440. },
  24441. ];
  24442. this.ajax
  24443. .post(this.$store.state.api + "joinGroup", params)
  24444. .then((res) => {
  24445. this.$message.success("修改成功");
  24446. this.updateGroupUser = {};
  24447. this.checkChair = "";
  24448. this.updateGroupArray = {};
  24449. this.dialogVisibleUpdateGroup = false;
  24450. this.getCourseDetail(2);
  24451. })
  24452. .catch((err) => {
  24453. this.$message.error("网络不佳");
  24454. console.error(err);
  24455. });
  24456. },
  24457. deleteGroupChair(gindex) {
  24458. this.checkDeleteGroup = [];
  24459. this.deleteGroupUser = JSON.parse(
  24460. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24461. );
  24462. this.deleteGroupArray = this.groupJson.group[gindex];
  24463. this.groupIndex = gindex;
  24464. this.dialogVisibleDeleteGroup = true;
  24465. },
  24466. async deleteChair() {
  24467. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24468. const gid =
  24469. this.groupStudent[this.toolindex][this.groupIndex][
  24470. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24471. this.checkDeleteGroup[i]
  24472. )
  24473. ];
  24474. let params = [
  24475. {
  24476. gid: gid.id,
  24477. },
  24478. ];
  24479. var a = await this.deleteChairA(params);
  24480. if (i == this.checkDeleteGroup.length - 1) {
  24481. this.$message.success("退出成功");
  24482. this.dialogVisibleDeleteGroup = false;
  24483. this.deleteGroupUser = [];
  24484. this.deleteGroupArray = {};
  24485. this.groupIndex = "";
  24486. this.checkDeleteGroup = [];
  24487. this.getCourseDetail(2);
  24488. }
  24489. }
  24490. },
  24491. deleteChairA(params) {
  24492. return new Promise((resolve, reject) => {
  24493. this.ajax
  24494. .post(this.$store.state.api + "exitGroup", params)
  24495. .then((res) => {
  24496. resolve(1);
  24497. })
  24498. .catch((err) => {
  24499. this.$message.error("网络不佳");
  24500. console.error(err);
  24501. });
  24502. });
  24503. },
  24504. contract(i) {
  24505. if (this.isCloseList[i].isClose == 0) {
  24506. this.isCloseList[i].isClose = 1;
  24507. } else {
  24508. this.isCloseList[i].isClose = 0;
  24509. }
  24510. this.$forceUpdate();
  24511. },
  24512. openWordCloud(toolindex) {
  24513. this.wordCloudData = '';
  24514. let array = [];
  24515. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24516. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24517. array.push({ name: works });
  24518. }
  24519. if (this.isGroup) {
  24520. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24521. let works = this.courseGroup.group[i].works[toolindex];
  24522. for (var j = 0; j < works.length; j++) {
  24523. let answer = JSON.parse(works[j].works)[0].answer;
  24524. array.push({ name: answer });
  24525. }
  24526. }
  24527. }
  24528. let _result = ''
  24529. array.forEach(e=>{
  24530. _result +=e.name+','
  24531. })
  24532. this.wordCloudData = _result;
  24533. this.dialogVisibleWordCloud = true;
  24534. this.wordCloudKey += 1;
  24535. },
  24536. uploadWorks(i) {
  24537. this.$confirm("确定导出作业吗?", "提示", {
  24538. confirmButtonText: "确定",
  24539. cancelButtonText: "取消",
  24540. type: "warning",
  24541. })
  24542. .then(() => {
  24543. const loading = this.$loading.service({
  24544. background: "rgba(255, 255, 255, 0.7)",
  24545. target: document.body,
  24546. text: "文件加载中...",
  24547. });
  24548. const _worksStudent = this.worksStudent;
  24549. let url = [];
  24550. var counts = {};
  24551. for (var l = 0; l < _worksStudent[i].length; l++) {
  24552. var item = _worksStudent[i][l];
  24553. var name = item.sName;
  24554. if (!counts.hasOwnProperty(name)) {
  24555. counts[name] = 0;
  24556. } else {
  24557. counts[name]++;
  24558. }
  24559. if (counts[name] > 0) {
  24560. item.sName += " (" + counts[name] + ")";
  24561. }
  24562. }
  24563. for (var l = 0; l < _worksStudent[i].length; l++) {
  24564. var item = _worksStudent[i][l];
  24565. if (
  24566. item.works.indexOf(
  24567. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24568. ) !== -1 &&
  24569. item.works.indexOf("img") === -1
  24570. ) {
  24571. url.push({ name: item.sName, url: item.works });
  24572. }
  24573. }
  24574. // var toolList = [
  24575. // { name: "电子白板", tool: 1 },
  24576. // { name: "思维导图", tool: 3 },
  24577. // { name: "协同文档", tool: 6 },
  24578. // { name: "思维网格", tool: 7 },
  24579. // { name: "素材库", tool: 8 },
  24580. // { name: "学习资料", tool: 17 },
  24581. // { name: "便签", tool: 2 },
  24582. // { name: "问卷调查", tool: 4 },
  24583. // { name: "选择题", tool: 45 },
  24584. // { name: "倒计时", tool: 10 },
  24585. // { name: "问答", tool: 15 },
  24586. // { name: "课程设计", tool: 26 },
  24587. // { name: "训练服务器", tool: 18 },
  24588. // { name: "作业提交", tool: 16 },
  24589. // { name: "批量上传", tool: 50 },
  24590. // { name: "AIoT Blockly", tool: 21 },
  24591. // { name: "AI Python", tool: 23 },
  24592. // { name: "AI Blockly", tool: 24 },
  24593. // { name: "目标管理", tool: 25 },
  24594. // { name: "数学画板", tool: 31 },
  24595. // { name: "翻译", tool: 28 },
  24596. // { name: "魔盒识字", tool: 37 },
  24597. // { name: "数学画板", tool: 31 },
  24598. // { name: "24点", tool: 38 },
  24599. // { name: "GeoGebra", tool: 39 },
  24600. // { name: "源码编辑", tool: 32 },
  24601. // { name: "个人评价", tool: 40 },
  24602. // { name: "选择匹配", tool: 41 },
  24603. // { name: "汉字宫", tool: 44 },
  24604. // { name: "排序", tool: 47 },
  24605. // { name: "表格", tool: 48 },
  24606. // { name: "文档", tool: 52 },
  24607. // { name: "学生分组", tool: 49 },
  24608. // { name: "CocoPi", tool: 57 },
  24609. // { name: "模拟驾驶", tool: 58 },
  24610. // { name: "路径搜索", tool: 59 },
  24611. // { name: "深度学习", tool: 60 },
  24612. // { name: "全历史", tool: 61 },
  24613. // { name: "交互视频", tool: 62 },
  24614. // { name: "海龟编程", tool: 63 },
  24615. // { name: "挑人", tool: 65 },
  24616. // { name: "公式编辑", tool: 66 },
  24617. // { name: "分子结构", tool: 67 },
  24618. // { name: "时间轴", tool: 68 },
  24619. // ];
  24620. // var toolName = "";
  24621. // for(var w = 0;w<toolList.length;w++){
  24622. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24623. // toolName = toolList[w].name;
  24624. // }
  24625. // }
  24626. console.log(url);
  24627. this.downLoadAll(url, loading);
  24628. })
  24629. .catch(() => {});
  24630. },
  24631. downLoadAll(url, loading) {
  24632. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24633. const zip = new JSZip();
  24634. const cache = {};
  24635. const promises = [];
  24636. data.forEach((item) => {
  24637. const promise = getFile(item.url).then((data) => {
  24638. if (data.data != 1) {
  24639. // 下载文件, 并存成ArrayBuffer对象
  24640. const file_name =
  24641. item.name +
  24642. "." +
  24643. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24644. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24645. cache[file_name] = data.data;
  24646. }
  24647. });
  24648. promises.push(promise);
  24649. });
  24650. Promise.all(promises).then(() => {
  24651. zip.generateAsync({ type: "blob" }).then((content) => {
  24652. // 生成二进制流
  24653. FileSaver.saveAs(
  24654. content,
  24655. this.courseDetail.title + "-" + "作业提交工具.zip"
  24656. ); // 利用file-saver保存文件 自定义文件名
  24657. setTimeout(() => {
  24658. loading.close();
  24659. }, 2000);
  24660. });
  24661. });
  24662. },
  24663. pickStudent(stu) {
  24664. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24665. return;
  24666. }
  24667. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24668. confirmButtonText: "确定",
  24669. cancelButtonText: "取消",
  24670. type: "warning",
  24671. })
  24672. .then(() => {
  24673. let params = [
  24674. {
  24675. uid: stu.userid,
  24676. cid: this.id,
  24677. stage: this.courseType,
  24678. task: this.taskCount,
  24679. tool: this.toolindex,
  24680. },
  24681. ];
  24682. this.ajax
  24683. .post(this.$store.state.api + "updateCoursePick", params)
  24684. .then((res) => {
  24685. this.$message.success("操作成功");
  24686. this.getPick();
  24687. })
  24688. .catch((err) => {
  24689. this.$message.error("网络不佳");
  24690. console.error(err);
  24691. });
  24692. })
  24693. .catch(() => {});
  24694. },
  24695. selectUser(){
  24696. let params = {
  24697. userid: this.userid,
  24698. };
  24699. this.ajax
  24700. .get(this.$store.state.api + "selectUser", params)
  24701. .then((res) => {
  24702. this.userMes = res.data[0];
  24703. })
  24704. .catch((err) => {
  24705. console.error(err);
  24706. });
  24707. },
  24708. setEngText(i){
  24709. this.newEngIndex = i;
  24710. this.$forceUpdate();
  24711. },
  24712. addCorrect(){
  24713. this.$confirm("你确定提交批改嘛?", "提示", {
  24714. confirmButtonText: "确定",
  24715. showCancelButton: false,
  24716. closeOnClickModal: false,
  24717. type: "warning",
  24718. })
  24719. .then(() => {
  24720. let params = {
  24721. cid: this.id,
  24722. s: parseInt(this.courseType),
  24723. t: this.taskCount,
  24724. tool: this.toolindex,
  24725. wid: this.engWid,
  24726. c: this.userid,
  24727. w: this.userMes[0].type == 2 ? JSON.parse(this.newEnglishList) : (this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length) ? JSON.stringify(this.oldEnglishJson1) : this.newEngIndex == -1 ? JSON.stringify(this.newEnglishList) : (this.newEngIndex > -1 && this.newEnglishList1.length > 0) ? JSON.stringify(this.newEnglishList1[this.newEngIndex].cWork) : "",
  24728. };
  24729. this.ajax
  24730. .get(this.$store.state.api + "addEngC", params)
  24731. .then((res) => {
  24732. this.$message.success("提交成功");
  24733. this.engUpdateDialogVisible = false;
  24734. })
  24735. .catch((err) => {
  24736. console.error(err);
  24737. });
  24738. })
  24739. .catch(() => {});
  24740. },
  24741. selectEngC(id,z){
  24742. let params = {
  24743. workid: id,
  24744. };
  24745. this.ajax
  24746. .get(this.$store.state.api + "selectEngC", params)
  24747. .then((res) => {
  24748. if(res.data[0].length == 0){
  24749. this.newEnglishList.engTitle = z.engTitle;
  24750. this.newEnglishList.engText = z.engText;
  24751. }else{
  24752. var a = res.data[0];
  24753. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24754. if(this.userMes[0].type == 2){
  24755. var snum = 0;
  24756. for(var i = 0;i<a.length;i++){
  24757. if(this.userMes[0].userid == a[i].correct){
  24758. this.newEnglishList = JSON.parse(a[i].cWork);
  24759. snum = 1;
  24760. }
  24761. }
  24762. if(snum == 0){
  24763. this.newEnglishList = { engTitle:"",engText:"" };
  24764. this.newEnglishList.engTitle = z.engTitle;
  24765. this.newEnglishList.engText = z.engText;
  24766. }
  24767. }else if(this.userMes[0].type == 1){
  24768. var num = 0;
  24769. for(var w= 0;w<a.length;w++){
  24770. if(this.userMes[0].userid == a[w].correct){
  24771. num = 1;
  24772. }
  24773. }
  24774. if(num == 0){
  24775. this.isNoUserid = true;
  24776. var c = JSON.parse(JSON.stringify(z));
  24777. this.oldEnglishJson1 = c;
  24778. }else{
  24779. this.isNoUserid = false;
  24780. }
  24781. var b = a.sort((item, index) => {
  24782. console.log(item)
  24783. if (item.correct === this.userMes[0].userid) {
  24784. return -1; // 将a移到前面
  24785. } else if (index.correct === this.userMes[0].userid) {
  24786. return 1; // 将b移到前面
  24787. } else {
  24788. return 0; // 保持默认顺序
  24789. }
  24790. });
  24791. for(var p = 0;p<b.length;p++){
  24792. for(var y = 0;y<ppp.length;y++){
  24793. if(b[p].id == ppp[y].id){
  24794. b[p].cWork = JSON.parse(ppp[y].cWork);
  24795. break
  24796. }
  24797. }
  24798. }
  24799. this.newEnglishList1 = b;
  24800. }
  24801. }
  24802. this.greyType = false;
  24803. setTimeout(() => {
  24804. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24805. if(this.newEnglishList1.length > 0){
  24806. if(this.isNoUserid == true){
  24807. this.engListLength = this.newEnglishList1.length + 1;
  24808. this.newEngIndex = -1;
  24809. }else{
  24810. this.engListLength = this.newEnglishList1.length;
  24811. this.newEngIndex = 0;
  24812. }
  24813. }
  24814. if(this.userMes[0].type == 2){
  24815. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24816. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24817. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24818. }else if(this.newEngIndex == -1){
  24819. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24820. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24821. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24822. }
  24823. }, 500);
  24824. this.engUpdateDialogVisible = true;
  24825. this.$forceUpdate();
  24826. })
  24827. .catch((err) => {
  24828. console.error(err);
  24829. });
  24830. },
  24831. getPick() {
  24832. let params = {
  24833. cid: this.id,
  24834. };
  24835. this.ajax
  24836. .get(this.$store.state.api + "getPick", params)
  24837. .then((res) => {
  24838. let array = [];
  24839. for (var i = 0; i < res.data[0].length; i++) {
  24840. array.push(res.data[0][i].userid);
  24841. }
  24842. this.isPickStudent = array;
  24843. if (array.indexOf(this.userid) !== -1) {
  24844. this.$confirm("你被老师选到啦!", "提示", {
  24845. confirmButtonText: "确定",
  24846. showCancelButton: false,
  24847. closeOnClickModal: false,
  24848. type: "warning",
  24849. })
  24850. .then(() => {
  24851. let pa = [
  24852. {
  24853. uid: this.userid,
  24854. cid: this.id,
  24855. },
  24856. ];
  24857. this.ajax
  24858. .post(this.$store.state.api + "deletePick", pa)
  24859. .then((res) => {
  24860. this.getPick();
  24861. })
  24862. .catch((err) => {
  24863. this.$message.error("网络不佳");
  24864. console.error(err);
  24865. });
  24866. })
  24867. .catch(() => {});
  24868. }
  24869. })
  24870. .catch((err) => {
  24871. this.$message.error("网络不佳");
  24872. console.error(err);
  24873. });
  24874. },
  24875. foldEva() {
  24876. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24877. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24878. } else {
  24879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24880. setTimeout(() => {
  24881. this.checkEva();
  24882. setTimeout(() => {
  24883. this.checkEva();
  24884. }, 500);
  24885. }, 0);
  24886. }
  24887. this.$forceUpdate();
  24888. },
  24889. panToolHeight(tool) {
  24890. var _tool = document.querySelectorAll('#'+tool)[0]
  24891. var _toolA = _tool ? _tool.offsetHeight : 0
  24892. var _toolC = 0
  24893. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24894. let boolean2 = (_toolA > _toolC) ? true : false
  24895. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24896. this.$forceUpdate();
  24897. },
  24898. async checkLink(url) {
  24899. // console.log(url)
  24900. let _url = url
  24901. try {
  24902. const response = await fetch(url);
  24903. if(!response.ok){
  24904. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  24905. }
  24906. // console.log(response.ok)
  24907. } catch (error) {
  24908. console.error('Error checking link:', error);
  24909. // console.log(false)
  24910. _url = await this.checkLink("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/" + encodeURIComponent(_url.split('https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/')[1]))
  24911. }
  24912. // console.log(_url)
  24913. return _url
  24914. },
  24915. getScoreList(){
  24916. let params = {
  24917. cid: this.id,
  24918. };
  24919. this.ajax
  24920. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24921. .then((res) => {
  24922. let result = res.data;
  24923. this.scoreList.datalist = result[0];
  24924. this.scoreList.isScoreList = result[1];
  24925. })
  24926. .catch((err) => {
  24927. console.error(err);
  24928. });
  24929. },
  24930. setClassRoomHelperWidth(width){
  24931. this.classRoomHelperWidth = width
  24932. },
  24933. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24934. this.$refs.choseWorksDetailDialogRef.open({
  24935. toolType:tooc,
  24936. tType: this.tType,
  24937. toolIndex: toolIndex
  24938. });
  24939. this.changeSplitScreenBehavior({
  24940. code: 1,
  24941. form: {
  24942. toolType:tooc,
  24943. toolIndex: toolIndex,
  24944. courseType: this.courseType,
  24945. taskCount: this.taskCount,
  24946. type: 0
  24947. }
  24948. });
  24949. },
  24950. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24951. this.$refs.statisticalAnalysisRef.open({
  24952. worksStudent: this.worksStudent[toolIndex],
  24953. tType: this.tType,
  24954. toolIndex: toolIndex
  24955. });
  24956. this.changeSplitScreenBehavior({
  24957. code: 2,
  24958. form: {
  24959. toolType:4,
  24960. courseType: this.courseType,
  24961. taskCount: this.taskCount,
  24962. toolIndex: toolIndex,
  24963. type: 0
  24964. }
  24965. });
  24966. },
  24967. statisticalAnalysisRefresh(toolIndex) {
  24968. this.$refs.statisticalAnalysisRef.refreshData({
  24969. worksStudent: this.worksStudent[toolIndex],
  24970. tType: this.tType,
  24971. toolIndex: toolIndex
  24972. });
  24973. },
  24974. async splitScreenBehavior(type = 0) {
  24975. // return;
  24976. if (this.splitScreenData.loading)
  24977. return this.$message.info("操作过快,请稍等");
  24978. if (type == 0) {
  24979. //关闭分屏
  24980. this.splitScreenData.isOpen = false;
  24981. // this.splitScreenData.userId = "";
  24982. // this.splitScreenData.uid = "";
  24983. this.splitScreenData.behavior = null;
  24984. await this.updateSplitScreenData(1);
  24985. this.$message.success("已关闭分屏模式");
  24986. this.studentFreePreview(false);
  24987. this.OpenJobPreview(false);
  24988. // this.followingMode(false);
  24989. } else if (type == 1) {
  24990. //开启分屏
  24991. this.splitScreenData.isOpen = true;
  24992. this.splitScreenData.userId = this.userid;
  24993. this.splitScreenData.uid = this.splitScreenData.myUid;
  24994. this.splitScreenData.behavior = null;
  24995. let status = await this.updateSplitScreenData(0);
  24996. this.changeSplitScreenBehavior({form:{}})
  24997. if (status == 1) {
  24998. this.$message.success("已开启分屏");
  24999. this.studentFreePreview(false);
  25000. this.OpenJobPreview(true);
  25001. // this.followingMode(true);
  25002. } else {
  25003. this.splitScreenData.isOpen = false;
  25004. this.splitScreenData.userId = "";
  25005. this.splitScreenData.uid = "";
  25006. this.splitScreenData.behavior = null;
  25007. this.$message.success("分屏开启失败");
  25008. }
  25009. }
  25010. },
  25011. enterFullScreen() {
  25012. let element = document.documentElement;
  25013. if (element.requestFullscreen) {
  25014. element.requestFullscreen();
  25015. } else if (element.mozRequestFullScreen) { /* Firefox */
  25016. element.mozRequestFullScreen();
  25017. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25018. element.webkitRequestFullscreen();
  25019. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25020. element.msRequestFullscreen();
  25021. }
  25022. },
  25023. exitFullScreen() {
  25024. if (document.exitFullscreen) {
  25025. document.exitFullscreen();
  25026. } else if (document.mozCancelFullScreen) { /* Firefox */
  25027. document.mozCancelFullScreen();
  25028. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25029. document.webkitExitFullscreen();
  25030. } else if (document.msExitFullscreen) { /* IE/Edge */
  25031. document.msExitFullscreen();
  25032. }
  25033. },
  25034. confirmOpen(){
  25035. this.splitScreenData.isOpen = true;
  25036. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25037. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25038. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25039. this.confirmOpenDig = false
  25040. if (!document.fullscreenElement) {
  25041. this.enterFullScreen();
  25042. }
  25043. // if (this.timer2) {
  25044. // clearInterval(this.timer2);
  25045. // this.timer2 = null;
  25046. // }
  25047. // this.timer2 = setInterval(()=> {
  25048. // this.getSplitScreenData();//获取分屏数据
  25049. // }, 1000);
  25050. this.$message.success("分屏模式已开启");
  25051. },
  25052. getSplitScreenData() {
  25053. // return;
  25054. // if (this.tType != 1) return;
  25055. let params = {
  25056. cid: this.id
  25057. };
  25058. this.ajax
  25059. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25060. .then(async res => {
  25061. let data = res.data[0][0]["splitScreenData"];
  25062. console.log("获取了分屏数:", data);
  25063. if (data) {
  25064. data = JSON.parse(data);
  25065. if (
  25066. !this.splitScreenData.isOpen &&
  25067. data.isOpen &&
  25068. this.splitScreenData.myUid == data.uid
  25069. ) {
  25070. this.splitScreenData.isOpen = false;
  25071. this.splitScreenData.userId = "";
  25072. this.splitScreenData.uid = "";
  25073. this.splitScreenData.behavior = null;
  25074. await this.updateSplitScreenData(1);
  25075. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25076. this.confirmOpenDig = true
  25077. this.confirmOpenDigData = data
  25078. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25079. this.splitScreenData.isOpen = false;
  25080. this.splitScreenData.userId = "";
  25081. this.splitScreenData.uid = "";
  25082. this.splitScreenData.behavior = null;
  25083. this.$message.error("已结束分屏模式");
  25084. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25085. this.splitScreenData.isOpen = true;
  25086. this.splitScreenData.uid = data.uid;
  25087. this.splitScreenData.userId = data.userId;
  25088. this.splitScreenData.behavior = data.behavior;
  25089. }
  25090. this.doSplitScreenBehavior();
  25091. } else {
  25092. if (this.splitScreenData.isOpen) {
  25093. this.splitScreenData.isOpen = false;
  25094. this.splitScreenData.userId = "";
  25095. this.splitScreenData.uid = "";
  25096. this.splitScreenData.behavior = null;
  25097. this.$message.error("已结束分屏模式");
  25098. // if (this.timer2) {
  25099. // clearInterval(this.timer2);
  25100. // this.timer2 = null;
  25101. // }
  25102. // this.timer2 = setInterval(()=> {
  25103. // this.getSplitScreenData();//获取分屏数据
  25104. // }, 5000);
  25105. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25106. confirmButtonText: '确定', //确认按钮的文字
  25107. showCancelButton: false, //是否显示取消按钮
  25108. showClose: false, //是否显示关闭按钮
  25109. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25110. type: "warning",
  25111. })
  25112. .then(() => {
  25113. if (document.fullscreenElement) {
  25114. this.exitFullScreen();
  25115. }
  25116. })
  25117. .catch(() => {});
  25118. }
  25119. }
  25120. })
  25121. .catch(e => {
  25122. console.log("获取分屏数出错:", e);
  25123. });
  25124. },
  25125. doSplitScreenBehavior() {
  25126. if (
  25127. this.splitScreenData.isOpen &&
  25128. this.splitScreenData.uid != this.splitScreenData.myUid
  25129. ) {
  25130. let behavior = this.splitScreenData.behavior;
  25131. if (behavior) {
  25132. if (behavior.code === 99) {
  25133. //初始化
  25134. this.fullDialogVisible = false;
  25135. if(this.$refs.choseWorksDetailDialogRef.show){
  25136. this.$refs.choseWorksDetailDialogRef.close();
  25137. }
  25138. if(this.$refs.statisticalAnalysisRef.show){
  25139. this.$refs.statisticalAnalysisRef.close();
  25140. }
  25141. }
  25142. if (behavior.code === 0) {
  25143. //开启内容列表弹窗
  25144. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25145. }else{
  25146. this.fullDialogVisible = false;
  25147. }
  25148. if (behavior.code === 1) {
  25149. //关于选择题的作业详细的操作
  25150. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25151. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25152. this.courseType = behavior.form.courseType;
  25153. this.taskCount = behavior.form.taskCount;
  25154. }
  25155. this.$nextTick(() => {
  25156. if (this.$refs.choseWorksDetailDialogRef.show) {
  25157. //已经打开了
  25158. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25159. } else {
  25160. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25161. }
  25162. });
  25163. }else{
  25164. this.$refs.choseWorksDetailDialogRef.close()
  25165. }
  25166. if(behavior.code === 2){
  25167. if(this.$refs.statisticalAnalysisRef.show){
  25168. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25169. }else{
  25170. this.$refs.statisticalAnalysisRef.open({
  25171. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25172. tType: this.tType,
  25173. toolIndex: behavior.form.toolIndex
  25174. });
  25175. }
  25176. }else{
  25177. this.$refs.statisticalAnalysisRef.close();
  25178. }
  25179. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25180. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25181. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25182. if (behavior.form.courseType != this.courseType ||
  25183. behavior.form.taskCount != this.taskCount ||
  25184. behavior.form.toolType != this.toolindex
  25185. ) {
  25186. var a = document.scrollingElement;
  25187. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25188. if (target) {
  25189. target.scrollIntoView(true);
  25190. setTimeout(()=>{
  25191. let scrollBody = document.querySelector('.body_student').parentElement
  25192. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25193. }, 0);
  25194. // setTimeout(() => {
  25195. // a.scrollTop = 0
  25196. // }, 0);
  25197. }
  25198. }
  25199. if(this.courseType !=behavior.form.courseType){
  25200. this.courseType = behavior.form.courseType;
  25201. }
  25202. if(this.taskCount !=behavior.form.taskCount){
  25203. this.taskCount = behavior.form.taskCount;
  25204. }
  25205. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25206. this.toolindex = behavior.form.toolType;
  25207. }
  25208. // if(behavior.form.navId){
  25209. // this.navId = behavior.form.navId
  25210. // }
  25211. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25212. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25213. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25214. this.getCourseDetail()
  25215. }
  25216. this.setContent2(false)
  25217. }
  25218. } else {
  25219. }
  25220. }
  25221. },
  25222. updateSplitScreenData(empty = 0) {
  25223. return new Promise(resolve => {
  25224. if(this.userid!==this.courseDetail.userid){
  25225. if(!this.courseDetail.userid){
  25226. return setTimeout(()=>{
  25227. this.updateSplitScreenData(empty)
  25228. },2000)
  25229. }
  25230. return;
  25231. };
  25232. if (
  25233. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25234. this.splitScreenData.userId == this.userid
  25235. ) {
  25236. this.splitScreenData.loading = true;
  25237. let params = [
  25238. {
  25239. cid: this.id,
  25240. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25241. }
  25242. ];
  25243. this.ajax
  25244. .post(
  25245. this.$store.state.api + "update_courseSplitScreenData",
  25246. params
  25247. )
  25248. .then(res => {
  25249. this.splitScreenData.loading = false;
  25250. if (res.data == 1) {
  25251. resolve(1);
  25252. console.log("修改分屏数据成功");
  25253. }
  25254. })
  25255. .catch(e => {
  25256. this.splitScreenData.loading = false;
  25257. console.log("修改分屏数据失败", e);
  25258. resoleve(0);
  25259. });
  25260. } else if (empty == 2 && this.tType == 1) {
  25261. let params = [
  25262. {
  25263. cid: this.id,
  25264. nData: ""
  25265. }
  25266. ];
  25267. return this.ajax
  25268. .post(
  25269. this.$store.state.api + "update_courseSplitScreenData",
  25270. params
  25271. )
  25272. .then(_ => resolve(1))
  25273. .catch(_ => resolve(0));
  25274. } else {
  25275. return resolve(0);
  25276. }
  25277. });
  25278. },
  25279. changeSplitScreenBehavior(newValue) {
  25280. if (
  25281. this.splitScreenData.isOpen &&
  25282. this.splitScreenData.uid == this.splitScreenData.myUid
  25283. ) {
  25284. let _behavior = null;
  25285. if(!newValue){
  25286. _behavior = {}
  25287. }else{
  25288. _behavior = newValue
  25289. }
  25290. if(_behavior.form){
  25291. _behavior.form.taskCount = this.taskCount;
  25292. _behavior.form.courseType = this.courseType
  25293. }else{
  25294. _behavior.form = {
  25295. taskCount:this.taskCount,
  25296. courseType:this.courseType
  25297. }
  25298. }
  25299. this.splitScreenData.behavior = _behavior;
  25300. this.updateSplitScreenData(0);
  25301. }
  25302. },
  25303. studentFreePreview(flag) {
  25304. this.IsLookOpen = flag;
  25305. this.followingMode(flag)
  25306. this.updateLookOpen();
  25307. },
  25308. OpenJobPreview(flag) {
  25309. this.sIsOpen = flag;
  25310. this.updateSLook();
  25311. },
  25312. followingMode(flag) {
  25313. this.IsFollow = flag;
  25314. this.updateFollow();
  25315. },
  25316. StulookMode(flag) {
  25317. this.IsStulook = flag;
  25318. this.updateIsStulook();
  25319. },
  25320. },
  25321. directives: {
  25322. // 使用局部注册指令的方式
  25323. resize: {
  25324. // 指令的名称
  25325. bind(el, binding) {
  25326. // el为绑定的元素,binding为绑定给指令的对象
  25327. let width = "",
  25328. height = "";
  25329. function isReize() {
  25330. const style = document.defaultView.getComputedStyle(el);
  25331. if (width !== style.width || height !== style.height) {
  25332. binding.value(); // 关键
  25333. }
  25334. width = style.width;
  25335. height = style.height;
  25336. }
  25337. el.__vueSetInterval__ = setInterval(isReize, 300);
  25338. },
  25339. unbind(el) {
  25340. clearInterval(el.__vueSetInterval__);
  25341. },
  25342. },
  25343. autoHeight: {
  25344. update(el, binding) {
  25345. const { value } = binding
  25346. if (value && typeof value === 'number') {
  25347. el.style.height = `${value}px`
  25348. } else {
  25349. el.style.height = 'auto'
  25350. }
  25351. },
  25352. componentUpdated(el) {
  25353. el.style.height = `${el.scrollHeight + 5}px`
  25354. },
  25355. },
  25356. },
  25357. beforeDestroy() {
  25358. window.onresize = null;
  25359. clearInterval(this.timer);
  25360. clearInterval(this.timer2);
  25361. this.timer = null;
  25362. this.timer2 = null;
  25363. clearInterval(this.opertimer);
  25364. this.opertimer = null;
  25365. this.updateSplitScreenData(1);
  25366. },
  25367. computed: {
  25368. renderedFormula2() {
  25369. return function(val){
  25370. // 处理换行符和HTML实体
  25371. const normalized = val
  25372. .replace(/&amp;/g, '&')
  25373. .replace(/<br\/?>/g, '\n');
  25374. // 匹配行内公式($...$)和块级公式($$...$$)
  25375. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  25376. try {
  25377. return katex.renderToString(expr.trim(), {
  25378. displayMode: false,
  25379. throwOnError: false,
  25380. macros: {
  25381. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  25382. }
  25383. });
  25384. } catch (e) {
  25385. console.warn('KaTeX渲染失败:', e);
  25386. return `<span style="color:red">${expr}</span>`;
  25387. }
  25388. })
  25389. }
  25390. },
  25391. renderedFormula() {
  25392. return function(val){
  25393. try {
  25394. // 判断是否含有HTML标签,<tag ...>...</tag>
  25395. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  25396. if (!hasTag) {
  25397. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25398. // 纯文本,整体渲染
  25399. try {
  25400. return katex.renderToString(val.trim(), {
  25401. throwOnError: false,
  25402. strict: false,
  25403. output: "htmlAndMathml"
  25404. });
  25405. } catch (e) {
  25406. return val; // 渲染失败原样输出
  25407. }
  25408. } else {
  25409. // 有标签,对每个标签内容渲染
  25410. return val.replace(
  25411. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  25412. (match, tag, attrs, inner) => {
  25413. let html;
  25414. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25415. try {
  25416. html = katex.renderToString(inner.trim(), {
  25417. throwOnError: false,
  25418. strict: false,
  25419. output: "htmlAndMathml"
  25420. });
  25421. } catch (e) {
  25422. html = inner;
  25423. }
  25424. return `<${tag}${attrs}>${html}</${tag}>`;
  25425. }
  25426. );
  25427. }
  25428. } catch (e) {
  25429. console.error('KaTeX渲染错误:', e);
  25430. return val;
  25431. }
  25432. }
  25433. },
  25434. isAndroid() {
  25435. return /Android/i.test(navigator.userAgent);
  25436. },
  25437. getHeight(){
  25438. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25439. },
  25440. contentConvent() {
  25441. return function (c) {
  25442. return c
  25443. ? c
  25444. .replaceAll(/\r\n/g, "<br/>")
  25445. .replaceAll(/\n/g, "<br/>")
  25446. .replaceAll(/\s/g, " &nbsp")
  25447. : "";
  25448. };
  25449. },
  25450. MarkdownT() {
  25451. return function (c) {
  25452. let md = new MarkdownIt({
  25453. html: true, // 允许渲染 HTML
  25454. linkify: true, // 自动将URL链接转化为可点击链接
  25455. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  25456. });
  25457. return c
  25458. ? md.render(c) : "";
  25459. };
  25460. },
  25461. commentRight(){
  25462. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  25463. return "35px";
  25464. }
  25465. return `calc(${this.classRoomHelperWidth} + 5px)`
  25466. // if(this.$refs["classRoomHelperRef"].type==0){
  25467. // return "100px";
  25468. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25469. // return "502px"
  25470. // }else{
  25471. // return "0px"
  25472. // }
  25473. },
  25474. checkUpload() {
  25475. return function () {
  25476. var studentK = [];
  25477. if (this.plworkFile.length > 0) {
  25478. for (var z = 0; z < this.plworkFile.length; z++) {
  25479. studentK.push(this.plworkFile[z].username);
  25480. }
  25481. studentK = studentK.join(",");
  25482. }
  25483. var a = this.uploadStudentJuri.filter((el) => {
  25484. return studentK.indexOf(el.userid) == -1;
  25485. });
  25486. return a;
  25487. };
  25488. },
  25489. getSName() {
  25490. return function (name) {
  25491. var check = name;
  25492. this.uploadStudentJuri.forEach((el) => {
  25493. if (el.userid == check) {
  25494. check = el.name ? el.name : el.username;
  25495. }
  25496. });
  25497. return check;
  25498. };
  25499. },
  25500. getImgList() {
  25501. return function (val) {
  25502. let srcList = []; // 定义一个数组用来接收后面的img地址
  25503. val.replace(
  25504. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25505. function (match, capture) {
  25506. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25507. srcList.push(capture);
  25508. }
  25509. );
  25510. return srcList;
  25511. };
  25512. },
  25513. retrnToolHeight(){
  25514. return function (tool) {
  25515. var _tool = document.querySelectorAll('#'+tool)[0]
  25516. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25517. };
  25518. },
  25519. Correct() {
  25520. return function (c,d) {
  25521. let w = "";
  25522. let a = this.correctWord;
  25523. for(var k = 0;k<a.length;k++){
  25524. //diffWordsWithSpace
  25525. if(a.length > 1){
  25526. if(a[k].added == true){
  25527. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25528. }else if(a[k].removed == true){
  25529. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25530. }else{
  25531. w += '<span>' + a[k].value + '</span>';
  25532. }
  25533. }else{
  25534. w = c
  25535. }
  25536. console.log("👇👇!+++==")
  25537. console.log(w)
  25538. //diffChars方法
  25539. // if(w == ""){
  25540. // if(a.length > 1){
  25541. // if(a[k].added == true){
  25542. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25543. // }else if(a[k].removed == true){
  25544. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25545. // }
  25546. // }else{
  25547. // w = c
  25548. // }
  25549. // }else{
  25550. // if(k == a.length - 1){
  25551. // if(a[k].added == true){
  25552. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25553. // }else if(a[k].removed == true){
  25554. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25555. // }
  25556. // }else{
  25557. // if(a[k].added == true){
  25558. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25559. // }else if(a[k].removed == true){
  25560. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25561. // }
  25562. // }
  25563. // }
  25564. }
  25565. c = w;
  25566. return c;
  25567. };
  25568. },
  25569. },
  25570. mounted() {
  25571. document.body.addEventListener("click", (e) => {
  25572. if (this.isUpdateToolDetail1) {
  25573. this.updateToolDetail(this.toolDetailIndex);
  25574. }
  25575. });
  25576. try {
  25577. if (this.screenType == 2) {
  25578. window.topU.postMessage({ allScreen: 4 }, "*");
  25579. } else if (this.screenType == 3) {
  25580. window.topU.postMessage({ allScreen: 5 }, "*");
  25581. } else if (this.screenType == 1) {
  25582. window.topU.postMessage({ allScreen: 6 }, "*");
  25583. }
  25584. } catch (error) {
  25585. console.log(error)
  25586. }
  25587. this.setOperationTime();
  25588. this.selectEva();
  25589. this.getCourseDetail(10);
  25590. this.selectCount();
  25591. this.getHomeWork();
  25592. this.selectUser();
  25593. this.getAIJ();
  25594. this.contentDialog = false;
  25595. this.setContent2(true);
  25596. if (this.tType == 4) {
  25597. this.pzDialog = true;
  25598. this.selectPz();
  25599. }
  25600. // 获取评分列表
  25601. this.getScoreList()
  25602. this.updateSplitScreenData(2);
  25603. this.splitScreenData.myUid = uuidv4();
  25604. document.scrollingElement.scrollTop = 0;
  25605. window.addEventListener("resize", () => {
  25606. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25607. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25608. if (this.showType == 2 || this.showType == 3) {
  25609. document.getElementsByClassName("navBox")[0].style.height =
  25610. a - 40 + 0+ "px";
  25611. } else {
  25612. document.getElementsByClassName("navBox")[0].style.height =
  25613. a - 40 + "px";
  25614. }
  25615. });
  25616. let _this = this;
  25617. setTimeout(() => {
  25618. // _this.vedioTime = [];
  25619. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25620. // _this.vedioTime[i] = document.getElementsByClassName(
  25621. // "vjs-duration-display"
  25622. // )[i].textContent;
  25623. // }
  25624. }, 1000);
  25625. },
  25626. };
  25627. </script>
  25628. <style scoped>
  25629. @media screen and (max-width: 1280px) {
  25630. /* .courseIndex > div:first-child(2) {
  25631. width: 15% !important;
  25632. } */
  25633. /* .navText {
  25634. width: 120px !important;
  25635. } */
  25636. .evaCss {
  25637. flex-direction: column !important;
  25638. align-items: center !important;
  25639. }
  25640. .elist_input {
  25641. width: 90% !important;
  25642. }
  25643. .dialog_diy1 >>> .el-dialog {
  25644. width: 100% !important;
  25645. }
  25646. .rightWidthCss {
  25647. width: 100% !important;
  25648. }
  25649. .dialog_diy3 >>> .el-dialog {
  25650. width: 100% !important;
  25651. }
  25652. .addToolCss {
  25653. right: 0 !important;
  25654. width: 100% !important;
  25655. min-width: unset !important;
  25656. }
  25657. }
  25658. .evaCssMax {
  25659. flex-direction: column !important;
  25660. align-items: center !important;
  25661. }
  25662. /* .dialog_diy >>> .el-dialog { */
  25663. /* margin-top: 10vh !important; */
  25664. /* } */
  25665. .body_student {
  25666. width: 77%;
  25667. height: 100%;
  25668. position: absolute;
  25669. left: 22%;
  25670. top: 0;
  25671. }
  25672. .student_head {
  25673. width: 100%;
  25674. margin: 20px auto 0;
  25675. padding-bottom: 20px;
  25676. display: flex;
  25677. flex-direction: column;
  25678. flex-wrap: nowrap;
  25679. align-items: flex-start;
  25680. justify-content: flex-start;
  25681. }
  25682. .pb_left {
  25683. width: 15%;
  25684. margin-right: 10px;
  25685. background: rgb(255, 255, 255);
  25686. position: fixed;
  25687. height: calc(100% - 40px);
  25688. border-radius: 20px;
  25689. padding-bottom: 15px;
  25690. box-sizing: border-box;
  25691. }
  25692. .wheel > img,
  25693. .project > img,
  25694. .star > img,
  25695. .evaluate > img,
  25696. .up_photo > img,
  25697. .chapter_add > img,
  25698. .deleteWord > img,
  25699. .question > img,
  25700. .homework > img {
  25701. width: 100%;
  25702. height: 100%;
  25703. }
  25704. .upCover > img {
  25705. width: 131px;
  25706. height: 69px;
  25707. object-fit: cover;
  25708. }
  25709. .upCover {
  25710. width: calc(100% / 3.5);
  25711. position: relative;
  25712. margin: 0 15px 10px 0;
  25713. display: flex;
  25714. flex-direction: column;
  25715. flex-wrap: nowrap;
  25716. justify-content: center;
  25717. align-content: center;
  25718. align-items: center;
  25719. height: fit-content;
  25720. }
  25721. .upCover2 {
  25722. width: 100%;
  25723. position: relative;
  25724. margin: 0 15px 10px 0;
  25725. display: flex;
  25726. flex-direction: column;
  25727. flex-wrap: nowrap;
  25728. justify-content: center;
  25729. align-content: center;
  25730. align-items: center;
  25731. }
  25732. .upCover2 > img {
  25733. width: 100%;
  25734. height: 90px;
  25735. object-fit: contain;
  25736. }
  25737. .chapter_add {
  25738. width: 120px;
  25739. position: relative;
  25740. text-align: center;
  25741. }
  25742. .isAddThings {
  25743. margin-top: 20px;
  25744. position: relative;
  25745. text-align: center;
  25746. background: #f7f8fa;
  25747. height: 90px;
  25748. width: 90px;
  25749. display: flex;
  25750. flex-direction: column;
  25751. justify-content: center;
  25752. }
  25753. .deleteWord {
  25754. width: 22px;
  25755. height: 22px;
  25756. position: absolute;
  25757. right: -5px;
  25758. top: -5px;
  25759. cursor: pointer;
  25760. }
  25761. .box_course {
  25762. /* width: 60%; */
  25763. width: calc(100% - 300px);
  25764. }
  25765. .wheel {
  25766. width: 100%;
  25767. /* height: 100%; */
  25768. height: 650px;
  25769. }
  25770. .right_box {
  25771. display: flex;
  25772. flex-direction: column;
  25773. margin-left: 30px;
  25774. justify-content: space-around;
  25775. }
  25776. .right_box_title {
  25777. font-size: 23px;
  25778. }
  25779. .people {
  25780. display: flex;
  25781. }
  25782. .student_body {
  25783. width: 100%;
  25784. margin: 0 auto;
  25785. margin-top: 10px;
  25786. padding: 0 0 20px;
  25787. }
  25788. .study_top {
  25789. margin-top: 100px;
  25790. width: 100%;
  25791. height: auto;
  25792. padding-bottom: 20px;
  25793. margin-left: 2px;
  25794. min-height: 90%;
  25795. }
  25796. .study_top .checkbox {
  25797. display: flex;
  25798. align-items: center;
  25799. padding: 15px 0 15px 30px;
  25800. flex: 0 0 auto;
  25801. font-weight: bold;
  25802. border-bottom: 1px solid #eee;
  25803. }
  25804. .study_top .check {
  25805. padding-bottom: 5px;
  25806. text-align: center;
  25807. cursor: pointer;
  25808. height: 30px;
  25809. box-sizing: border-box;
  25810. display: flex;
  25811. }
  25812. .study_top .checked {
  25813. border-bottom: 4px solid #3fc6a0;
  25814. padding-bottom: 5px;
  25815. color: #3fc6a0;
  25816. display: flex;
  25817. height: 35px;
  25818. }
  25819. .study_top .checked > div,
  25820. .study_top .check > div {
  25821. margin-right: 5px;
  25822. }
  25823. .videoTop {
  25824. display: flex;
  25825. flex-direction: row;
  25826. justify-content: space-between;
  25827. background: #fff;
  25828. align-items: center;
  25829. width: 95%;
  25830. padding: 20px;
  25831. }
  25832. .filebox {
  25833. display: flex;
  25834. flex-wrap: wrap;
  25835. flex-direction: column;
  25836. padding: 0 0 5px;
  25837. position: relative;
  25838. }
  25839. .filebox:before {
  25840. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25841. position: absolute;
  25842. top: 20px;
  25843. left: 13px;
  25844. border-left: 2px dotted #cad1dc;
  25845. height: calc(100% - 15px);
  25846. }
  25847. .toolHeng2 > div:last-child::before {
  25848. height: calc(100% - 43px);
  25849. }
  25850. .filebox .tooldetail {
  25851. width: calc(100%);
  25852. margin: 0px 12px;
  25853. padding: 12px;
  25854. line-height: 30px;
  25855. word-break: break-word;
  25856. background: #ffffff;
  25857. border-radius: 8px 8px 8px 8px;
  25858. opacity: 1;
  25859. border: 1px solid #cad1dc;
  25860. overflow:hidden;
  25861. box-sizing:border-box;
  25862. }
  25863. .file {
  25864. display: flex;
  25865. flex-direction: column;
  25866. align-items: center;
  25867. justify-content: center;
  25868. cursor: pointer;
  25869. width: 200px;
  25870. }
  25871. .file div {
  25872. margin-top: 10px;
  25873. width: 150px;
  25874. text-align: center;
  25875. overflow: hidden;
  25876. white-space: nowrap;
  25877. text-overflow: ellipsis;
  25878. }
  25879. .media {
  25880. display: flex;
  25881. flex-direction: column;
  25882. align-items: center;
  25883. justify-content: center;
  25884. margin: 0 20px 20px 0;
  25885. cursor: pointer;
  25886. margin: 12px 0 5px 15px;
  25887. overflow: hidden;
  25888. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25889. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25890. box-sizing: border-box;
  25891. }
  25892. .media img {
  25893. height: 90px;
  25894. width: 160px;
  25895. object-fit: cover;
  25896. }
  25897. .media .title {
  25898. padding: 5px;
  25899. text-align: left;
  25900. width: 100%;
  25901. box-sizing: border-box;
  25902. }
  25903. .media .btn {
  25904. width: 100%;
  25905. height: 35px;
  25906. line-height: 35px;
  25907. color: #fff;
  25908. background: #606060;
  25909. text-align: center;
  25910. overflow: hidden;
  25911. white-space: nowrap;
  25912. text-overflow: ellipsis;
  25913. }
  25914. .detail_content_top {
  25915. width: 100%;
  25916. padding: 25px 0 25px 0;
  25917. }
  25918. .detail_title {
  25919. text-align: center;
  25920. font-size: 24px;
  25921. }
  25922. .detail_time {
  25923. font-size: 13px;
  25924. padding: 15px 0 0 40px;
  25925. }
  25926. .detail_content {
  25927. line-height: 2pc;
  25928. width: 90%;
  25929. margin: 0 auto;
  25930. padding-top: 30px;
  25931. text-indent: 30px;
  25932. overflow: auto;
  25933. height: 200px;
  25934. }
  25935. .score_box >>> .el-rate {
  25936. margin-left: 10px;
  25937. }
  25938. .dialog_change >>> .el-dialog {
  25939. border-radius: 5px;
  25940. }
  25941. .dialog_change >>> .el-dialog__header {
  25942. background: #f2f2f2;
  25943. text-align: center;
  25944. }
  25945. .dialog_change >>> .el-dialog__title {
  25946. line-height: 5px;
  25947. }
  25948. .dialog_change >>> .el-dialog__body {
  25949. background: #fff;
  25950. padding: 10px 20px;
  25951. }
  25952. .score_box {
  25953. display: flex;
  25954. align-items: center;
  25955. margin-bottom: 18px;
  25956. margin-top: 20px;
  25957. }
  25958. .up_photo {
  25959. width: 120px;
  25960. cursor: pointer;
  25961. margin-top: 10px;
  25962. }
  25963. .up_photo2 {
  25964. width: 180px;
  25965. box-sizing: border-box;
  25966. min-width: 180px;
  25967. height: 180px;
  25968. max-height: 180px;
  25969. min-height: 180px;
  25970. cursor: pointer;
  25971. display: flex;
  25972. flex-direction: column;
  25973. align-items: center;
  25974. justify-content: center;
  25975. background: rgb(242, 246, 255);
  25976. /* padding: 25px; */
  25977. margin-bottom: 10px;
  25978. }
  25979. .up_photo2 img {
  25980. width: 50%;
  25981. height: auto;
  25982. }
  25983. .up_photo2 span {
  25984. color: #898989;
  25985. }
  25986. .plworkBox {
  25987. display: flex;
  25988. align-items: center;
  25989. margin-top: 10px;
  25990. flex-wrap: wrap;
  25991. }
  25992. .upload_send {
  25993. margin: 30px auto 30px;
  25994. width: 60%;
  25995. background: #3681fc;
  25996. text-align: center;
  25997. height: 35px;
  25998. line-height: 35px;
  25999. color: #fff;
  26000. border-radius: 5px;
  26001. cursor: pointer;
  26002. }
  26003. .marginT {
  26004. margin-top: 20px;
  26005. }
  26006. .cd_content_steps {
  26007. display: flex;
  26008. width: 90%;
  26009. justify-content: space-around;
  26010. border-top: 1px solid #eeeeee;
  26011. }
  26012. .cd_steps_box {
  26013. display: flex;
  26014. justify-content: center;
  26015. align-items: center;
  26016. flex-direction: column;
  26017. cursor: pointer;
  26018. }
  26019. .first {
  26020. display: flex;
  26021. align-items: center;
  26022. margin: 15px 0 20px 0;
  26023. font-size: 20px;
  26024. }
  26025. .first > div:nth-child(2) {
  26026. font-size: 16px !important;
  26027. padding-left: 10px;
  26028. line-height: 26px;
  26029. box-sizing: border-box;
  26030. }
  26031. .blue_box_one {
  26032. text-align: center;
  26033. color: #fff;
  26034. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26035. border-radius: 7px;
  26036. margin: 10px;
  26037. cursor: pointer;
  26038. width: 95%;
  26039. height: 45px;
  26040. display: flex;
  26041. flex-direction: row;
  26042. justify-content: flex-start;
  26043. align-items: center;
  26044. }
  26045. .blue_box_one > div:nth-child(1) {
  26046. line-height: 30px;
  26047. margin: 0 5px 0 10px;
  26048. width: 30%;
  26049. min-width: 70px;
  26050. border-radius: 4px;
  26051. }
  26052. .blue_box_one > div:nth-child(2) {
  26053. white-space: nowrap;
  26054. text-overflow: ellipsis;
  26055. overflow: hidden;
  26056. word-break: break-all;
  26057. width: 70%;
  26058. text-align: left;
  26059. margin-right: 10px;
  26060. max-width: calc(100% - 85px);
  26061. }
  26062. .blue_box_one > div:nth-child(2):hover {
  26063. overflow: hidden;
  26064. text-overflow: ellipsis;
  26065. white-space: nowrap;
  26066. cursor: pointer;
  26067. }
  26068. .upFile {
  26069. margin: 0 auto;
  26070. width: 120px;
  26071. background: #3681fc;
  26072. color: #fff;
  26073. height: 30px;
  26074. text-align: center;
  26075. line-height: 30px;
  26076. border-radius: 5px;
  26077. font-size: 14px;
  26078. cursor: pointer;
  26079. }
  26080. .courseTitle {
  26081. width: 85%;
  26082. margin: 10px auto 26px auto;
  26083. display: flex;
  26084. flex-direction: row;
  26085. align-items: center;
  26086. justify-content: space-between;
  26087. text-align: center;
  26088. }
  26089. .courseTitle .ctitle {
  26090. font-size: 20px;
  26091. font-weight: bold;
  26092. color: #0e1e33;
  26093. white-space: nowrap;
  26094. overflow: hidden;
  26095. text-overflow: ellipsis;
  26096. }
  26097. .inviteBox {
  26098. font-size: 14px;
  26099. /* margin-top: 5px; */
  26100. color: #00000099;
  26101. text-align: center;
  26102. }
  26103. .courseTitle >>> .el-tooltip {
  26104. width: 100%;
  26105. white-space: nowrap;
  26106. overflow: hidden;
  26107. text-overflow: ellipsis;
  26108. word-break: break-word;
  26109. }
  26110. .ml {
  26111. margin-left: 20px;
  26112. color: #5b7dba;
  26113. border-left: 3px solid #5b7dba;
  26114. padding-left: 5px;
  26115. font-weight: bold;
  26116. }
  26117. .return {
  26118. width: 2rem;
  26119. height: 2rem;
  26120. cursor: pointer;
  26121. }
  26122. .return > img {
  26123. width: 100%;
  26124. height: 100%;
  26125. }
  26126. .returnBtn {
  26127. width: 86px;
  26128. height: 36px;
  26129. background: #3681fc;
  26130. border-radius: 4px;
  26131. color: #fff;
  26132. text-align: center;
  26133. line-height: 36px;
  26134. margin-right: 20px;
  26135. cursor: pointer;
  26136. font-size: 14px;
  26137. font-weight: 400;
  26138. display: flex;
  26139. flex-direction: row;
  26140. flex-wrap: nowrap;
  26141. align-items: center;
  26142. justify-content: center;
  26143. }
  26144. .reBtnIcon,
  26145. .commentIcon,
  26146. .vedioIcon,
  26147. .vedioIcon1 {
  26148. /* width: 36px; */
  26149. height: 36px;
  26150. border-radius: 4px;
  26151. position: relative;
  26152. /* background: #e0eafb; */
  26153. background: #0061ff;
  26154. cursor: pointer;
  26155. margin-right: 12px;
  26156. display: flex;
  26157. align-items: center;
  26158. padding: 0 10px;
  26159. box-sizing: border-box;
  26160. font-size: 14px;
  26161. color: #fff;
  26162. }
  26163. .reBtnIcon::before,
  26164. .commentIcon::before,
  26165. .vedioIcon::before,
  26166. .vedioIcon1::before {
  26167. content: "";
  26168. display: block;
  26169. background-size: 100% 100%;
  26170. background-repeat: no-repeat;
  26171. width: 20px;
  26172. height: 20px;
  26173. margin-right: 5px;
  26174. /* position: absolute; */
  26175. /* top: 8px;
  26176. left: 8px; */
  26177. }
  26178. .vedioIcon1 {
  26179. background: #f63564;
  26180. }
  26181. .reBtnIcon::before {
  26182. background-image: url("../../assets/icon/newIcons/refresh.png");
  26183. }
  26184. .commentIcon::before {
  26185. background-image: url("../../assets/icon/newIcons/comment.png");
  26186. }
  26187. .vedioIcon::before {
  26188. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26189. }
  26190. .vedioIcon1::before {
  26191. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26192. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26193. }
  26194. .tool {
  26195. display: flex;
  26196. flex-direction: column;
  26197. flex-wrap: nowrap;
  26198. width: 13%;
  26199. margin: 0 30px;
  26200. align-items: center;
  26201. position: relative;
  26202. padding: 10px 25px;
  26203. cursor: pointer;
  26204. }
  26205. .whiteBIcon {
  26206. width: 150px;
  26207. }
  26208. .whiteBIcon > img {
  26209. width: 100%;
  26210. height: 100%;
  26211. }
  26212. .mask {
  26213. background-color: rgba(0, 0, 0, 0);
  26214. position: fixed;
  26215. top: 0;
  26216. left: 0;
  26217. width: 100%;
  26218. height: 100%;
  26219. z-index: 20000;
  26220. display: flex;
  26221. align-items: center;
  26222. justify-content: center;
  26223. }
  26224. .progressBox {
  26225. width: 500px;
  26226. height: 180px;
  26227. background: #fff;
  26228. border-radius: 10px;
  26229. box-shadow: 0 0 6px 1px #bfbfbf;
  26230. display: flex;
  26231. align-items: center;
  26232. justify-content: center;
  26233. flex-direction: column;
  26234. position: relative;
  26235. color: #6c6c6c;
  26236. }
  26237. .progressBox >>> .el-progress-bar__outer {
  26238. background-color: #d1dfff !important;
  26239. }
  26240. .progressBox .lbox {
  26241. height: 50px;
  26242. font-size: 19px;
  26243. display: flex;
  26244. align-items: center;
  26245. color: #747474;
  26246. }
  26247. .progressBox .lbox img {
  26248. width: 40px;
  26249. margin-right: 20px;
  26250. }
  26251. .closeCss {
  26252. position: absolute;
  26253. top: 8px;
  26254. right: 8px;
  26255. cursor: pointer;
  26256. width: 20px;
  26257. height: 20px;
  26258. }
  26259. .closeCss > img {
  26260. width: 100%;
  26261. height: 100%;
  26262. }
  26263. .uploadVedio {
  26264. display: flex;
  26265. flex-direction: column;
  26266. flex-wrap: nowrap;
  26267. justify-content: center;
  26268. align-items: center;
  26269. margin: 0 15px 10px 0;
  26270. }
  26271. .uploadVedio > img {
  26272. width: 30px;
  26273. height: 30px;
  26274. }
  26275. .uploadVedio > span {
  26276. white-space: nowrap;
  26277. overflow: hidden;
  26278. text-overflow: ellipsis;
  26279. width: 75px;
  26280. margin-top: 7px;
  26281. }
  26282. .picName {
  26283. white-space: nowrap;
  26284. overflow: hidden;
  26285. text-overflow: ellipsis;
  26286. width: 75px;
  26287. margin-top: 7px;
  26288. }
  26289. .new_top {
  26290. display: flex;
  26291. background: #fff;
  26292. flex-direction: row;
  26293. justify-content: flex-start;
  26294. align-items: center;
  26295. height: 60px;
  26296. position: fixed;
  26297. top: 20px;
  26298. left: 22%;
  26299. width: 77%;
  26300. z-index: 999;
  26301. border-radius: 12px 12px 0 0;
  26302. border-bottom: 1px solid #cad1dc;
  26303. padding: 10px 0;
  26304. }
  26305. .new_topFixed {
  26306. width: 100%;
  26307. height: 40px;
  26308. position: fixed;
  26309. top: 0px;
  26310. display: block;
  26311. background: #f2f2f2;
  26312. z-index: 998;
  26313. }
  26314. .before {
  26315. position: absolute;
  26316. background: #c3dad4;
  26317. width: 6px;
  26318. height: 100%;
  26319. }
  26320. .courseIndex {
  26321. display: flex;
  26322. flex-direction: row;
  26323. align-items: center;
  26324. width: calc(100% - 745px);
  26325. }
  26326. .courseIndex > div:nth-child(1) {
  26327. margin: 0 0 0 10px;
  26328. font-size: 20px;
  26329. min-width: 100px;
  26330. font-weight: bold;
  26331. border-left: 4px solid #3363b9;
  26332. height: 32px;
  26333. text-align: center;
  26334. line-height: 35px;
  26335. }
  26336. .courseIndex > div:nth-child(2) {
  26337. font-size: 20px;
  26338. /* width: 300px; */
  26339. max-width: calc(100% - 105px);
  26340. white-space: nowrap;
  26341. overflow: hidden;
  26342. text-overflow: ellipsis;
  26343. }
  26344. .courseIndex > div:nth-child(3) {
  26345. border-bottom: 1px solid #d7d7d7;
  26346. padding-bottom: 5px;
  26347. background: #3681fc;
  26348. width: 55px;
  26349. min-width: 55px;
  26350. border-radius: 5px;
  26351. color: #fff;
  26352. text-align: center;
  26353. height: 20px;
  26354. line-height: 26px;
  26355. font-size: 14px;
  26356. margin: 0 0 0 10px;
  26357. }
  26358. .course_text {
  26359. padding: 20px 0 0 15px;
  26360. text-indent: 30px;
  26361. width: 80%;
  26362. min-height: 20px;
  26363. }
  26364. .vedioList {
  26365. background: #f2f2f2;
  26366. border: 1px solid #ececec;
  26367. /* width: 38.8%; */
  26368. /* width: 300px; */
  26369. width: 100%;
  26370. height: 445px;
  26371. border-radius: 10px;
  26372. overflow: hidden;
  26373. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26374. }
  26375. .vedioNav {
  26376. margin: 10px 0 0 15px;
  26377. border-bottom: 1px solid #d7d7d7;
  26378. padding-bottom: 5px;
  26379. background: #3681fc;
  26380. width: 55px;
  26381. min-width: 55px;
  26382. border-radius: 5px;
  26383. color: #fff;
  26384. text-align: center;
  26385. height: 20px;
  26386. line-height: 26px;
  26387. font-size: 14px;
  26388. }
  26389. .queTop {
  26390. display: flex;
  26391. padding: 20px 0 20px 30px;
  26392. width: 100%;
  26393. flex-direction: row;
  26394. justify-content: flex-start;
  26395. align-items: center;
  26396. box-sizing: border-box;
  26397. }
  26398. .queTopTitle {
  26399. display: flex;
  26400. flex-direction: row;
  26401. flex-wrap: nowrap;
  26402. align-items: center;
  26403. font-weight: bold;
  26404. font-size: 20px;
  26405. color: rgb(14, 30, 51);
  26406. }
  26407. .queTopTitle::before {
  26408. content: "";
  26409. width: 2px;
  26410. height: 22px;
  26411. background: #3681fc;
  26412. border-radius: 3px;
  26413. display: block;
  26414. margin: 2px 6px 0 0;
  26415. }
  26416. .queTopRight {
  26417. display: flex;
  26418. flex-direction: row;
  26419. flex-wrap: nowrap;
  26420. align-items: center;
  26421. }
  26422. .queTopClose {
  26423. margin-right: 20px;
  26424. cursor: pointer;
  26425. position: relative;
  26426. display: flex;
  26427. }
  26428. .closeImg,
  26429. .openImg {
  26430. width: 25px;
  26431. height: 25px;
  26432. position: absolute;
  26433. left: -20px;
  26434. top: -1px;
  26435. }
  26436. .closeImg > img,
  26437. .openImg > img {
  26438. width: 100%;
  26439. height: 100%;
  26440. }
  26441. .question {
  26442. width: 40px;
  26443. margin-right: 10px;
  26444. margin-top: 7px;
  26445. }
  26446. .queTitle {
  26447. margin-left: 5px;
  26448. font-size: 25px;
  26449. display: flex;
  26450. align-items: center;
  26451. }
  26452. .addEditor {
  26453. width: 100px;
  26454. height: 30px;
  26455. background: #42cda6;
  26456. color: #fff;
  26457. border-radius: 5px;
  26458. text-align: center;
  26459. line-height: 30px;
  26460. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26461. cursor: pointer;
  26462. }
  26463. /* .vedioName {
  26464. cursor: pointer;
  26465. margin: 0px 0px 10px 5px;
  26466. white-space: nowrap;
  26467. overflow: hidden;
  26468. text-overflow: ellipsis;
  26469. width: 100%;
  26470. } */
  26471. .vedioTime {
  26472. width: 35px;
  26473. position: absolute;
  26474. color: #fff;
  26475. bottom: 0px;
  26476. right: 0px;
  26477. text-align: center;
  26478. background: #46411f;
  26479. height: 20px;
  26480. font-size: 14px;
  26481. line-height: 20px;
  26482. }
  26483. .homework {
  26484. width: 200px;
  26485. display: flex;
  26486. flex-direction: column;
  26487. flex-wrap: nowrap;
  26488. align-items: center;
  26489. cursor: pointer;
  26490. }
  26491. .homebox {
  26492. display: flex;
  26493. flex-wrap: wrap;
  26494. flex-direction: row;
  26495. justify-content: flex-start;
  26496. align-items: center;
  26497. padding: 15px 0;
  26498. }
  26499. .isChooseActive {
  26500. color: #3681fc !important;
  26501. font-weight: bold !important;
  26502. }
  26503. .chooseWho {
  26504. display: flex;
  26505. width: 100%;
  26506. flex-direction: row;
  26507. flex-wrap: nowrap;
  26508. justify-content: flex-start;
  26509. padding-bottom: 10px;
  26510. }
  26511. .chooseWho > div {
  26512. cursor: pointer;
  26513. padding-bottom: 10px;
  26514. margin: 0 30px 0 0;
  26515. font-weight: 400;
  26516. color: #0e1e33;
  26517. }
  26518. .addPoint > div > img {
  26519. cursor: pointer;
  26520. width: 85px;
  26521. border-radius: 15px;
  26522. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26523. }
  26524. .addPoint > div {
  26525. display: flex;
  26526. flex-direction: column;
  26527. flex-wrap: nowrap;
  26528. align-items: center;
  26529. }
  26530. .isBorder > div {
  26531. margin: 0 0 10px 0;
  26532. align-items: flex-start !important;
  26533. }
  26534. .noiframeBox {
  26535. display: flex;
  26536. flex-wrap: wrap;
  26537. }
  26538. .iframeBox iframe {
  26539. width: 100%;
  26540. height: 800px;
  26541. border: none;
  26542. margin-bottom: 20px;
  26543. border: 1px solid #ccc;
  26544. }
  26545. .upload_toolBtn {
  26546. background: #3681fc;
  26547. color: #fff;
  26548. width: 110px;
  26549. text-align: center;
  26550. height: 35px;
  26551. line-height: 35px;
  26552. font-size: 14px;
  26553. border-radius: 5px;
  26554. cursor: pointer;
  26555. position: absolute;
  26556. right: 10px;
  26557. bottom: 0;
  26558. }
  26559. .binfo_input,
  26560. .pj {
  26561. font: inherit;
  26562. color: currentColor;
  26563. width: 100%;
  26564. margin: 0;
  26565. padding: 15px 14px;
  26566. display: block;
  26567. min-width: 0;
  26568. outline: none;
  26569. box-sizing: content-box;
  26570. background: none;
  26571. -webkit-tap-highlight-color: transparent;
  26572. border: 1px solid rgba(0, 0, 0, 0.23);
  26573. border-radius: 4px;
  26574. box-sizing: border-box;
  26575. resize: none;
  26576. }
  26577. .binfo_input:focus-visible {
  26578. border: 1px solid rgba(61, 103, 188);
  26579. }
  26580. .dialog_diy >>> .el-dialog__header,
  26581. .dialog_diy1 >>> .el-dialog__header {
  26582. background: #454545 !important;
  26583. padding: 15px 20px;
  26584. }
  26585. .dialog_diy >>> .el-dialog__title,
  26586. .dialog_diy1 >>> .el-dialog__title {
  26587. color: #fff;
  26588. }
  26589. .dialog_diy >>> .el-dialog__headerbtn,
  26590. .dialog_diy1 >>> .el-dialog__headerbtn {
  26591. top: 19px;
  26592. }
  26593. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26594. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26595. color: #fff;
  26596. }
  26597. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26598. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26599. color: #fff;
  26600. }
  26601. .dialog_diy1 >>> .el-dialog__body {
  26602. padding: 0;
  26603. }
  26604. .dialog_diy >>> .el-dialog__body,
  26605. .dialog_diy >>> .el-dialog__footer,
  26606. .dialog_diy1 >>> .el-dialog__footer {
  26607. background: #fafafa;
  26608. }
  26609. .markScore_diy >>> .el-dialog {
  26610. border-radius: 10px;
  26611. }
  26612. .markScore_diy >>> .el-dialog__body {
  26613. padding: 0;
  26614. height: 621px;
  26615. min-height: calc(100% - 60px);
  26616. }
  26617. .markScore_diy >>> .el-dialog__header {
  26618. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26619. }
  26620. .markScore_diy >>> .markScore_diyTit {
  26621. width: calc(100% - 60px);
  26622. display: flex;
  26623. justify-content: space-between;
  26624. align-items: center;
  26625. }
  26626. .a_addBox {
  26627. padding: 0 0 0 15px;
  26628. }
  26629. .a_add_box {
  26630. padding: 10px;
  26631. background: #fff;
  26632. margin-bottom: 10px;
  26633. border-radius: 5px;
  26634. box-shadow: 0 0 5px 0 #d5d5d5;
  26635. }
  26636. .a_add_head {
  26637. display: flex;
  26638. align-items: flex-start;
  26639. /* justify-content: space-between; */
  26640. flex-direction: column;
  26641. /* flex-direction: row; */
  26642. margin: 10px 0 20px 0;
  26643. font-size: 18px;
  26644. width: 100%;
  26645. }
  26646. .askIndex {
  26647. background: #3681fc;
  26648. border-radius: 50%;
  26649. color: #fff;
  26650. width: 25px;
  26651. height: 25px;
  26652. min-width: 25px;
  26653. min-height: 25px;
  26654. text-align: center;
  26655. line-height: 25px;
  26656. margin-right: 5px;
  26657. }
  26658. .a_add_head .a_add_head_input {
  26659. width: 300px;
  26660. }
  26661. .a_add_head .a_add_head_div {
  26662. display: flex;
  26663. align-items: center;
  26664. justify-content: space-between;
  26665. }
  26666. .a_add_body {
  26667. display: flex;
  26668. align-items: center;
  26669. }
  26670. .a_add_input {
  26671. display: flex;
  26672. align-items: center;
  26673. flex-wrap: wrap;
  26674. width: 100%;
  26675. }
  26676. .a_add_input >>> .el-radio-group,
  26677. .a_add_input >>> .el-checkbox-group {
  26678. width: 100%;
  26679. }
  26680. .a_add_input >>> .el-radio,
  26681. .a_add_input >>> .el-checkbox {
  26682. display: flex;
  26683. flex-direction: row;
  26684. flex-wrap: nowrap;
  26685. align-items: center;
  26686. padding: 15px 0;
  26687. }
  26688. .a_add_input >>> .el-radio:not(:last-child),
  26689. .a_add_input >>> .el-checkbox:not(:last-child) {
  26690. width: 100%;
  26691. border-bottom: 1px solid #efefef;
  26692. }
  26693. .redioStyle >>> .el-radio__label {
  26694. font-size: 18px;
  26695. }
  26696. .redioStyle >>> .el-radio__label > span,
  26697. .redioStyle >>> .el-checkbox__label > span {
  26698. word-break: break-all;
  26699. white-space: normal;
  26700. }
  26701. .redioStyle >>> .el-checkbox__label {
  26702. font-size: 18px;
  26703. }
  26704. .toolHeng2 {
  26705. width: 100%;
  26706. padding-left: 15px;
  26707. box-sizing: border-box;
  26708. }
  26709. .workNav {
  26710. font-size: 20px;
  26711. font-weight: bold;
  26712. color: #0e1e33;
  26713. display: flex;
  26714. flex-direction: row;
  26715. flex-wrap: nowrap;
  26716. align-items: center;
  26717. padding: 15px 0 15px 0;
  26718. }
  26719. .workNav::before {
  26720. content: "";
  26721. width: 2px;
  26722. height: 22px;
  26723. background: #3681fc;
  26724. border-radius: 3px;
  26725. display: block;
  26726. margin: 2px 6px 0 0;
  26727. }
  26728. .toolHeng {
  26729. display: flex;
  26730. flex-direction: row;
  26731. flex-wrap: wrap;
  26732. justify-content: flex-start;
  26733. align-items: center;
  26734. width: 100%;
  26735. }
  26736. .toolHeng > div {
  26737. padding-left: 20px;
  26738. }
  26739. .isWidth {
  26740. width: 20%;
  26741. }
  26742. .textTitle {
  26743. display: flex;
  26744. flex-direction: row;
  26745. flex-wrap: nowrap;
  26746. align-items: center;
  26747. width: 95%;
  26748. }
  26749. .textTitle >>> .el-form-item__label {
  26750. font-size: 22px;
  26751. color: #918f8f;
  26752. width: 100px;
  26753. }
  26754. .textTitle >>> .el-form-item__content {
  26755. width: calc(100% - 100px);
  26756. }
  26757. .textCss >>> .el-dialog {
  26758. width: 800px !important;
  26759. height: 400px;
  26760. background: #fafafa;
  26761. }
  26762. .textCss >>> .el-dialog__body {
  26763. margin: 55px 8% 0 8%;
  26764. padding: 0 !important;
  26765. }
  26766. .textCss >>> .el-dialog__footer {
  26767. padding-top: 38px;
  26768. }
  26769. .toolsCss >>> .el-dialog__body {
  26770. padding: 20px;
  26771. }
  26772. .lineCss >>> .el-dialog__body {
  26773. display: flex;
  26774. flex-direction: row;
  26775. align-items: center;
  26776. justify-content: center;
  26777. }
  26778. .newNav {
  26779. display: flex;
  26780. flex-direction: row;
  26781. align-items: baseline;
  26782. justify-content: flex-start;
  26783. }
  26784. .navListItem {
  26785. width: calc(100% - 20px);
  26786. height: 50px;
  26787. margin: 0px auto 10px;
  26788. display: flex;
  26789. flex-direction: row;
  26790. flex-wrap: nowrap;
  26791. align-items: center;
  26792. justify-content: space-between;
  26793. background: #f0f4fa;
  26794. border-radius: 6px 6px 6px 6px;
  26795. }
  26796. .navText {
  26797. cursor: pointer;
  26798. white-space: nowrap;
  26799. overflow: hidden;
  26800. text-overflow: ellipsis;
  26801. width: 220px;
  26802. padding: 0 10px;
  26803. font-weight: 400;
  26804. color: #0e1e33;
  26805. }
  26806. .downIcon {
  26807. width: 20px;
  26808. min-width: 20px;
  26809. height: 20px;
  26810. margin-right: 15px;
  26811. cursor: pointer;
  26812. }
  26813. .downIcon > img {
  26814. width: 100%;
  26815. height: 100%;
  26816. }
  26817. .noVedio {
  26818. display: flex;
  26819. flex-direction: row;
  26820. justify-content: center;
  26821. align-content: center;
  26822. }
  26823. .noNavText {
  26824. cursor: pointer;
  26825. margin: 0px 0px 10px 5px;
  26826. width: 112px;
  26827. }
  26828. .listNoVedio {
  26829. margin: 0 0 0 30px;
  26830. width: 97%;
  26831. }
  26832. .video-player >>> .video-js {
  26833. height: 100%;
  26834. }
  26835. .hangVedioList {
  26836. width: 90% !important;
  26837. height: 150px !important;
  26838. margin: 20px 0 0 30px;
  26839. }
  26840. .hangVedio {
  26841. width: 100%;
  26842. height: 170px !important;
  26843. align-items: flex-start !important;
  26844. }
  26845. .hangHand {
  26846. height: 150px !important;
  26847. }
  26848. .twoChild {
  26849. width: 95%;
  26850. margin: 10px;
  26851. border-radius: 5px;
  26852. background: #f2f2f2;
  26853. display: flex;
  26854. flex-direction: column;
  26855. flex-wrap: nowrap;
  26856. justify-content: flex-start;
  26857. align-items: flex-start;
  26858. transition: all 0.5s;
  26859. overflow: hidden;
  26860. height: 0;
  26861. background: #e7f3ff;
  26862. }
  26863. .twoChild > div:nth-child(1) {
  26864. margin-top: 5px;
  26865. }
  26866. .navChild {
  26867. width: 100%;
  26868. cursor: pointer;
  26869. margin-bottom: 10px;
  26870. position: relative;
  26871. }
  26872. .navChild img {
  26873. position: absolute;
  26874. right: 11px;
  26875. width: 15px;
  26876. top: 50%;
  26877. transform: translateY(-50%);
  26878. }
  26879. .navActive,
  26880. .toolActive {
  26881. height: auto !important;
  26882. overflow: auto !important;
  26883. /* padding-bottom: 16px; */
  26884. }
  26885. .toolActive {
  26886. padding: 0;
  26887. }
  26888. .navTask {
  26889. display: flex;
  26890. flex-direction: row;
  26891. flex-wrap: nowrap;
  26892. align-items: center;
  26893. align-content: flex-start;
  26894. height: 40px;
  26895. justify-content: flex-start;
  26896. padding: 0 10px;
  26897. width: 100%;
  26898. box-sizing: border-box;
  26899. }
  26900. .navTaskname {
  26901. white-space: nowrap;
  26902. text-overflow: ellipsis;
  26903. overflow: hidden;
  26904. word-break: break-all;
  26905. padding-left: 5px;
  26906. }
  26907. .openTaskActive {
  26908. /* background-color: #e0eafb !important;
  26909. color: #0061ff; */
  26910. color:#fff;
  26911. background: rgb(55, 129, 252) !important;
  26912. }
  26913. .iframeName {
  26914. margin: 5px 0;
  26915. border-left: 4px solid #41c4a4;
  26916. padding-left: 4px;
  26917. }
  26918. .toolTitle {
  26919. margin: 0px 0px 20px;
  26920. font-size: 20px;
  26921. font-weight: 500;
  26922. border-left: 4px solid #41c4a4;
  26923. padding-left: 4px;
  26924. }
  26925. .cru_selectBox {
  26926. overflow: auto;
  26927. width: 95%;
  26928. margin: 17px auto 0;
  26929. height: calc(100% - 40px - 21px - 20px - 17px);
  26930. background: #fff;
  26931. border-radius: 8px;
  26932. }
  26933. .cru_selectBox::-webkit-scrollbar,
  26934. .study_top::-webkit-scrollbar,
  26935. .textContent::-webkit-scrollbar {
  26936. /*滚动条整体样式*/
  26937. width: 6px;
  26938. /*高宽分别对应横竖滚动条的尺寸*/
  26939. height: 6px;
  26940. }
  26941. /*定义滚动条轨道 内阴影+圆角*/
  26942. .cru_selectBox::-webkit-scrollbar-track,
  26943. .study_top::-webkit-scrollbar-track,
  26944. .textContent::-webkit-scrollbar {
  26945. border-radius: 10px;
  26946. background-color: #b8bdc9;
  26947. }
  26948. /*定义滑块 内阴影+圆角*/
  26949. .cru_selectBox::-webkit-scrollbar-thumb,
  26950. .study_top::-webkit-scrollbar-thumb,
  26951. .textContent::-webkit-scrollbar-thumb {
  26952. border-radius: 10px;
  26953. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26954. background-color: #2c5ab3;
  26955. }
  26956. .vedioBox {
  26957. border-radius: 0 0 20px 20px;
  26958. background: #fff;
  26959. overflow: auto;
  26960. }
  26961. .taskBox {
  26962. width: 98%;
  26963. background: #f0f4fa;
  26964. margin: 10px auto;
  26965. padding: 0 10px;
  26966. border-radius: 4px;
  26967. box-sizing: border-box;
  26968. }
  26969. .vedioTaskBox {
  26970. width: 100%;
  26971. display: flex;
  26972. flex-direction: row;
  26973. flex-wrap: nowrap;
  26974. align-items: flex-start;
  26975. position: relative;
  26976. }
  26977. .toolBox {
  26978. margin: 15px 0 0 25px;
  26979. display: flex;
  26980. position: relative;
  26981. padding: 18px 20px;
  26982. border-top-left-radius: 5px;
  26983. border-top-right-radius: 5px;
  26984. width: 90%;
  26985. }
  26986. .btnAll {
  26987. position: absolute;
  26988. right: 0;
  26989. display: flex;
  26990. flex-direction: row;
  26991. flex-wrap: nowrap;
  26992. align-items: center;
  26993. }
  26994. .btnLeft,
  26995. .btnRight {
  26996. display: flex;
  26997. flex-direction: row;
  26998. flex-wrap: nowrap;
  26999. align-items: center;
  27000. padding: 5px 0;
  27001. }
  27002. .btnLeft {
  27003. border-right: 1px solid #cad1dc;
  27004. }
  27005. .btnLeft > .custom-tooltip {
  27006. background: #3681fc;
  27007. color: #fff;
  27008. }
  27009. .last:hover {
  27010. background: #3383fa !important;
  27011. color: #fff;
  27012. border: 1px solid #3383fa !important;
  27013. }
  27014. .last,
  27015. .returnBtn1 {
  27016. width: 90px;
  27017. height: 36px;
  27018. background: #ffffff;
  27019. border-radius: 4px;
  27020. border: 1px solid #0061ff;
  27021. color: #0061ff;
  27022. cursor: pointer;
  27023. display: flex;
  27024. flex-direction: row;
  27025. flex-wrap: nowrap;
  27026. align-items: center;
  27027. justify-content: center;
  27028. margin-left: 12px;
  27029. }
  27030. .returnBtn1 {
  27031. background: #f0f4fa;
  27032. border-radius: 4px;
  27033. border: 1px solid #cad1dc;
  27034. margin: 0 12px;
  27035. }
  27036. .lastImg {
  27037. min-width: 15px;
  27038. width: 15px;
  27039. height: 15px;
  27040. display: flex;
  27041. }
  27042. .lastText {
  27043. padding: 0 5px 0 5px;
  27044. box-sizing: border-box;
  27045. font-size: 14px;
  27046. }
  27047. .lastImg > img {
  27048. width: 100%;
  27049. height: 100%;
  27050. }
  27051. /* .vedioTimeBox {
  27052. display: flex;
  27053. flex-direction: row;
  27054. align-items: center;
  27055. flex-wrap: nowrap;
  27056. position: relative;
  27057. } */
  27058. .navBox {
  27059. background: #fff;
  27060. height: calc(100% - 40px);
  27061. overflow-y: auto;
  27062. overflow-x: hidden;
  27063. }
  27064. .worksBox {
  27065. margin: 0 0 10px 25px;
  27066. border-bottom: 1px solid #eeeeee;
  27067. padding: 18px 20px;
  27068. border-radius: 4px;
  27069. width: 90%;
  27070. }
  27071. .worksBTitle {
  27072. font-size: 20px;
  27073. padding-bottom: 15px;
  27074. border-bottom: 1px solid #eeeeee;
  27075. display: flex;
  27076. align-items: center;
  27077. }
  27078. .greenBox {
  27079. width: 5px;
  27080. height: 30px;
  27081. background: #63b6fa;
  27082. margin-right: 5px;
  27083. }
  27084. .worksDetailBox {
  27085. display: flex;
  27086. width: 100%;
  27087. flex-direction: row;
  27088. flex-wrap: wrap;
  27089. align-items: flex-end;
  27090. justify-content: flex-start;
  27091. padding: 15px 5px;
  27092. box-sizing: border-box;
  27093. }
  27094. .works {
  27095. display: flex;
  27096. flex-direction: column;
  27097. flex-wrap: nowrap;
  27098. align-items: flex-start;
  27099. justify-content: flex-start;
  27100. align-content: center;
  27101. max-width: 240px;
  27102. width: calc(100% / 3 - 10px);
  27103. height: auto;
  27104. margin-right: 10px;
  27105. margin-bottom: 10px;
  27106. overflow: hidden;
  27107. height: 140px;
  27108. box-shadow: 0 0 6px 1px #dfdada;
  27109. border-radius: 15px;
  27110. }
  27111. .workImg {
  27112. width: 100%;
  27113. /* height: calc(100% - 40px); */
  27114. height: 105px;
  27115. position: relative;
  27116. }
  27117. .workImg > img {
  27118. width: 100%;
  27119. height: 100%;
  27120. object-fit: contain;
  27121. cursor: pointer;
  27122. }
  27123. .worksName {
  27124. height: 40px;
  27125. line-height: 40px;
  27126. display: flex;
  27127. width: 100%;
  27128. flex-direction: row;
  27129. flex-wrap: nowrap;
  27130. justify-content: space-between;
  27131. align-items: center;
  27132. margin: 0 0 0 10px;
  27133. }
  27134. .worksName > div:nth-child(1) {
  27135. width: 110px;
  27136. white-space: nowrap;
  27137. overflow: hidden;
  27138. text-overflow: ellipsis;
  27139. }
  27140. .worksName > div:nth-child(2) {
  27141. color: #b7b4b5;
  27142. }
  27143. .noWorksS {
  27144. padding: 15px 0;
  27145. display: flex;
  27146. flex-direction: row;
  27147. flex-wrap: wrap;
  27148. align-items: center;
  27149. justify-content: flex-start;
  27150. }
  27151. .noWorksName,
  27152. .isWorksName,
  27153. .isWorksName2 {
  27154. background: #ddebf8;
  27155. color: #000;
  27156. width: 90px;
  27157. height: 25px;
  27158. text-align: center;
  27159. line-height: 25px;
  27160. border-radius: 4px;
  27161. margin: 10px 15px 10px 0;
  27162. white-space: nowrap;
  27163. overflow: hidden;
  27164. padding: 5px;
  27165. text-overflow: ellipsis;
  27166. cursor: pointer;
  27167. border: 1px solid #ddebf8;
  27168. }
  27169. .noWorksName {
  27170. background: #fff;
  27171. color: #0061ff;
  27172. border: 1px solid #0061ff;
  27173. }
  27174. .noWorksName > span{
  27175. max-width: 100%;
  27176. display: block;
  27177. overflow: hidden;
  27178. text-overflow: ellipsis;
  27179. white-space: nowrap;
  27180. }
  27181. .isWorksName2 {
  27182. width: 100px;
  27183. height: 40px;
  27184. line-height: 40px;
  27185. position: relative;
  27186. background: #dae6f9;
  27187. }
  27188. .isWorksName {
  27189. background: #e7ebf1 !important;
  27190. width: 100px;
  27191. height: 40px;
  27192. line-height: 40px;
  27193. position: relative;
  27194. color: #acb4bf;
  27195. border: 1px solid #cad1dc !important;
  27196. }
  27197. .isSelectName,
  27198. .noWorksName:hover {
  27199. background: #3383fa !important;
  27200. color: #fff !important;
  27201. border: 1px solid #3383fa !important;
  27202. }
  27203. .title {
  27204. background: #1e5cc9;
  27205. /* width: 98%; */
  27206. height: 45px;
  27207. color: #fff;
  27208. line-height: 45px;
  27209. padding-left: 20px;
  27210. box-sizing: border-box;
  27211. }
  27212. .textBox {
  27213. font-size: 20px;
  27214. width: 90%;
  27215. display: flex;
  27216. flex-direction: column;
  27217. align-items: center;
  27218. margin: 20px auto 0;
  27219. max-height: calc(100% - 75px);
  27220. overflow: auto;
  27221. }
  27222. .textContent {
  27223. font-size: 18px;
  27224. width: 95%;
  27225. max-width: 95%;
  27226. }
  27227. .answerBg {
  27228. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27229. background-size: 100% 100%;
  27230. width: 100%;
  27231. height: 100%;
  27232. color: #fff;
  27233. text-align: center;
  27234. display: flex;
  27235. flex-direction: column;
  27236. flex-wrap: nowrap;
  27237. align-items: center;
  27238. position: relative;
  27239. justify-content: center;
  27240. }
  27241. /* .answerBg > div:nth-child(1) { */
  27242. /* font-size: 22px;
  27243. padding: 25px 0 10px; */
  27244. /* } */
  27245. .answerContent {
  27246. width: 215px;
  27247. max-height: 60px;
  27248. word-break: break-all;
  27249. text-align: center;
  27250. /* white-space: nowrap; */
  27251. overflow: hidden;
  27252. text-overflow: ellipsis;
  27253. /* padding: 23px 0 0; */
  27254. -webkit-line-clamp: 3;
  27255. -webkit-box-orient: vertical;
  27256. display: -webkit-box;
  27257. font-size: 15px;
  27258. cursor: pointer;
  27259. }
  27260. .elist_input_box {
  27261. display: flex;
  27262. align-items: flex-start;
  27263. flex-wrap: nowrap;
  27264. padding: 10px 0 15px 30px;
  27265. flex-direction: column;
  27266. }
  27267. .elist_input {
  27268. /* width: 40%; */
  27269. width: 45%;
  27270. margin: 20px;
  27271. }
  27272. .elist_input .elist_input_box input {
  27273. font: inherit;
  27274. color: currentColor;
  27275. width: 200px;
  27276. padding: 8px 14px;
  27277. display: block;
  27278. min-width: 0;
  27279. outline: none;
  27280. border: 1px solid rgba(0, 0, 0, 0.23);
  27281. border-radius: 4px;
  27282. box-sizing: border-box;
  27283. background: #fff;
  27284. margin: 0 20px 0 0;
  27285. }
  27286. .elist_input .elist_input_box span {
  27287. height: 36px;
  27288. line-height: 36px;
  27289. color: rgb(82, 82, 82);
  27290. }
  27291. .elist_input .elist_input_box .remove {
  27292. height: 20px;
  27293. width: 20px;
  27294. background-size: 100% 100%;
  27295. background-position: unset;
  27296. margin-left: 5px;
  27297. }
  27298. .elist_input_box >>> .el-rate {
  27299. display: flex;
  27300. height: 36px;
  27301. align-items: center;
  27302. }
  27303. .elist_input_box .elist_inptu_text {
  27304. min-height: 50px;
  27305. /* width: 500px;
  27306. max-height: 150px; */
  27307. width: 100%;
  27308. line-height: 50px;
  27309. color: rgb(82, 82, 82);
  27310. overflow: auto;
  27311. text-indent: 5px;
  27312. background: #f7f6f9;
  27313. border-radius: 10px;
  27314. }
  27315. .elist_input_box .elist_inptu_text input {
  27316. width: 500px;
  27317. }
  27318. .elist_input_box >>> .el-rate__icon {
  27319. font-size: 24px;
  27320. }
  27321. .isClick {
  27322. background: #4d9def;
  27323. }
  27324. .bzBox {
  27325. display: flex;
  27326. flex-direction: row;
  27327. align-items: center;
  27328. }
  27329. .bzBox .yCss {
  27330. width: 7px;
  27331. height: 7px;
  27332. background: #fff;
  27333. margin: 0 16px 0 6px;
  27334. border-radius: 50%;
  27335. border: 5px solid #3681fc;
  27336. z-index: 99;
  27337. }
  27338. .bzBox > div:nth-child(2) {
  27339. font-size: 18px;
  27340. font-weight: bold;
  27341. color: #0e1e33;
  27342. }
  27343. .navTitile {
  27344. padding: 0 0px 0 15px;
  27345. font-size: 16px;
  27346. font-weight: bold;
  27347. color: #0e1e33;
  27348. height: 40px;
  27349. line-height: 40px;
  27350. }
  27351. .isTypeOne {
  27352. width: 240px;
  27353. height: 170px;
  27354. /* border: 1px solid #f8f8f8; */
  27355. border-radius: 10px;
  27356. box-shadow: 0 0 6px 1px #dfdada;
  27357. }
  27358. .e_add_top {
  27359. display: flex;
  27360. justify-content: space-between;
  27361. padding: 10px 20px;
  27362. border-radius: 3px;
  27363. background: #fff;
  27364. }
  27365. .e_add_title2 {
  27366. display: flex;
  27367. align-items: center;
  27368. }
  27369. .e_add_title2 span {
  27370. width: 40px;
  27371. }
  27372. .e_add_title {
  27373. display: flex;
  27374. align-items: center;
  27375. color: #b8b8b8;
  27376. font-size: 18px;
  27377. position: relative;
  27378. height: 40px;
  27379. }
  27380. .e_add_title span {
  27381. margin-right: 10px;
  27382. }
  27383. .e_add_title .el_input {
  27384. width: 300px;
  27385. }
  27386. .e_add_title >>> .el-input__inner {
  27387. width: 400px;
  27388. }
  27389. /* .e_add_btn {
  27390. } */
  27391. .e_add_content {
  27392. display: flex;
  27393. width: 100%;
  27394. max-width: 650px;
  27395. height: 550px;
  27396. }
  27397. .e_add_list {
  27398. background: #fff;
  27399. height: 500px;
  27400. width: 210px;
  27401. position: relative;
  27402. margin: 15px 5px 0 0;
  27403. flex-shrink: 0;
  27404. display: flex;
  27405. flex-direction: column;
  27406. }
  27407. .e_add_list_title {
  27408. font-size: 20px;
  27409. width: 100%;
  27410. box-sizing: border-box;
  27411. padding: 15px 40px;
  27412. text-align: center;
  27413. border-bottom: 1px solid #eaeaea;
  27414. position: relative;
  27415. display: flex;
  27416. align-items: center;
  27417. justify-content: center;
  27418. height: 57px;
  27419. background: #f6f6f6;
  27420. }
  27421. .e_add_list_title span {
  27422. overflow: hidden;
  27423. white-space: nowrap;
  27424. text-overflow: ellipsis;
  27425. }
  27426. .e_add_list_title img {
  27427. position: absolute;
  27428. right: 15px;
  27429. width: 25px;
  27430. cursor: pointer;
  27431. top: 50%;
  27432. transform: translateY(-50%);
  27433. }
  27434. .e_add_list_body {
  27435. height: calc(100% - 187px);
  27436. overflow: auto;
  27437. }
  27438. .e_add_list_child {
  27439. width: 100%;
  27440. display: flex;
  27441. align-items: center;
  27442. justify-content: center;
  27443. position: relative;
  27444. box-sizing: border-box;
  27445. padding: 15px 40px;
  27446. text-align: center;
  27447. }
  27448. .e_add_list_child span {
  27449. overflow: hidden;
  27450. white-space: nowrap;
  27451. text-overflow: ellipsis;
  27452. cursor: pointer;
  27453. }
  27454. .e_add_list_child img {
  27455. position: absolute;
  27456. right: 10px;
  27457. width: 21px;
  27458. cursor: pointer;
  27459. top: 50%;
  27460. transform: translateY(-50%);
  27461. }
  27462. .e_add_list_child + .e_add_list_child {
  27463. border-top: 1px solid #eaeaea;
  27464. }
  27465. .e_add_list_child .active {
  27466. color: #409eff;
  27467. }
  27468. .e_add_list_btn {
  27469. position: absolute;
  27470. bottom: 0;
  27471. height: 50px;
  27472. background: rgb(120, 120, 254);
  27473. width: 100%;
  27474. color: #fff;
  27475. font-size: 16px;
  27476. text-align: center;
  27477. line-height: 50px;
  27478. cursor: pointer;
  27479. }
  27480. .e_add_list_detail {
  27481. position: absolute;
  27482. bottom: 0;
  27483. height: 130px;
  27484. background: rgb(120, 120, 254);
  27485. width: 100%;
  27486. color: #fff;
  27487. font-size: 16px;
  27488. display: flex;
  27489. align-items: center;
  27490. justify-content: center;
  27491. }
  27492. .e_add_list_detail textarea {
  27493. height: 90%;
  27494. width: 95%;
  27495. border: none;
  27496. resize: none;
  27497. outline: none;
  27498. padding: 5px;
  27499. box-sizing: border-box;
  27500. }
  27501. .e_add_list_pbox {
  27502. width: 100%;
  27503. max-width: 650px;
  27504. /* height: 600px; */
  27505. }
  27506. .e_add_list_pbox_title {
  27507. height: 50px;
  27508. background: #fff;
  27509. display: flex;
  27510. align-items: center;
  27511. width: 100%;
  27512. box-sizing: border-box;
  27513. padding: 0 20px;
  27514. }
  27515. .type_title {
  27516. font-size: 18px;
  27517. font-weight: 700;
  27518. }
  27519. .type_content {
  27520. font-size: 16px;
  27521. /* margin-left: 30px; */
  27522. }
  27523. .type_content span + span {
  27524. margin-left: 20px;
  27525. }
  27526. .type_content span {
  27527. cursor: pointer;
  27528. padding-bottom: 5px;
  27529. box-sizing: border-box;
  27530. }
  27531. .type_content .active {
  27532. color: #409eff;
  27533. border-bottom: 2px solid #409eff;
  27534. }
  27535. .e_add_list_pbox_content {
  27536. height: calc(100% - 50px);
  27537. display: flex;
  27538. align-items: center;
  27539. width: 100%;
  27540. background: #fff;
  27541. }
  27542. .evaCss {
  27543. display: flex;
  27544. flex-direction: row;
  27545. flex-wrap: nowrap;
  27546. align-items: flex-start;
  27547. padding: 0 0 20px;
  27548. }
  27549. .cru_line {
  27550. position: absolute;
  27551. bottom: 0px;
  27552. transition: all 0.5s;
  27553. left: 0px;
  27554. width: 125px;
  27555. margin-left: -25px;
  27556. }
  27557. .isNoMessage {
  27558. width: 20%;
  27559. margin: 25% auto 0;
  27560. }
  27561. .isNoMessage > img {
  27562. width: 100%;
  27563. height: 100%;
  27564. }
  27565. .fullStyle >>> .el-dialog__body {
  27566. height: 100% !important;
  27567. }
  27568. .fullStyle >>> .el-dialog,
  27569. .fullStyle {
  27570. width: 100% !important;
  27571. max-width: 100% !important;
  27572. height: 100% !important;
  27573. margin: 0 !important;
  27574. }
  27575. .full_diy >>> .el-dialog {
  27576. margin: 0 !important;
  27577. height: 100%;
  27578. padding: 4px;
  27579. }
  27580. .full_diy >>> .el-dialog__body {
  27581. height: calc(100% - 100px);
  27582. }
  27583. .full_diy2 >>> .el-dialog__body {
  27584. height: calc(100% - 50px);
  27585. padding: 0;
  27586. }
  27587. .switchCss {
  27588. /* width: 100%; */
  27589. display: flex;
  27590. flex-direction: row;
  27591. flex-wrap: nowrap;
  27592. align-items: center;
  27593. /* justify-content: center; */
  27594. }
  27595. .isClickNav {
  27596. /* color: #499eef; */
  27597. color: #000;
  27598. }
  27599. .commentImg {
  27600. width: 25px;
  27601. height: 25px;
  27602. cursor: pointer;
  27603. }
  27604. .commentImg > img {
  27605. width: 100%;
  27606. height: 100%;
  27607. }
  27608. .comment {
  27609. background: #f9f9f9;
  27610. border-radius: 0 0 4px 4px;
  27611. display: flex;
  27612. flex-direction: row;
  27613. flex-wrap: nowrap;
  27614. align-items: center;
  27615. justify-content: flex-end;
  27616. height: 35px;
  27617. }
  27618. .commentList {
  27619. display: flex;
  27620. flex-direction: row;
  27621. flex-wrap: nowrap;
  27622. align-items: center;
  27623. justify-content: center;
  27624. align-content: center;
  27625. /* margin-left: 15px; */
  27626. /* margin-left: 8px; */
  27627. }
  27628. .scoreImg {
  27629. width: 17px;
  27630. height: 17px;
  27631. }
  27632. .studentDetail {
  27633. display: flex;
  27634. flex-direction: row;
  27635. flex-wrap: nowrap;
  27636. /* align-items: center; */
  27637. align-items: flex-start;
  27638. }
  27639. .tx {
  27640. width: 50px;
  27641. }
  27642. .tx > img {
  27643. width: 100%;
  27644. height: 100%;
  27645. }
  27646. .nameAndTime {
  27647. display: flex;
  27648. flex-direction: column;
  27649. flex-wrap: nowrap;
  27650. align-items: flex-start;
  27651. margin-left: 10px;
  27652. }
  27653. .worksAnswer {
  27654. color: #4078dd;
  27655. margin: 10px 0;
  27656. font-size: 16px;
  27657. position: relative;
  27658. }
  27659. .worksAnswer > img {
  27660. width: 500px;
  27661. height: 300px;
  27662. object-fit: contain;
  27663. margin: 0 auto;
  27664. display: block;
  27665. }
  27666. .commentTop {
  27667. border-bottom: 1px solid #eaeaea;
  27668. padding-bottom: 10px;
  27669. }
  27670. .commentBox {
  27671. padding-top: 15px;
  27672. }
  27673. .pl {
  27674. font-size: 18px;
  27675. }
  27676. .plPerson {
  27677. width: 100%;
  27678. }
  27679. .plName {
  27680. display: flex;
  27681. flex-direction: row;
  27682. flex-wrap: nowrap;
  27683. align-items: baseline;
  27684. color: #78787a;
  27685. width: 100%;
  27686. }
  27687. .deleteComment {
  27688. cursor: pointer;
  27689. margin-left: auto;
  27690. color: #237ade;
  27691. }
  27692. .plContent {
  27693. margin-top: 5px;
  27694. }
  27695. .evalCss {
  27696. background: #fff;
  27697. font-size: 18px;
  27698. }
  27699. .nav {
  27700. color: #9d9d9d;
  27701. padding: 5px 0 15px 20px;
  27702. }
  27703. .middleBox {
  27704. padding: 5px 0 15px 20px;
  27705. }
  27706. .pfBox {
  27707. padding-bottom: 30px;
  27708. }
  27709. .nameAndrate {
  27710. display: flex;
  27711. flex-direction: row;
  27712. flex-wrap: nowrap;
  27713. align-items: center;
  27714. padding-bottom: 10px;
  27715. height: 30px;
  27716. line-height: 30px;
  27717. }
  27718. .nameAndrate > div {
  27719. margin-left: 10px;
  27720. color: #000;
  27721. height: 30px;
  27722. }
  27723. .nameAndrate >>> .el-rate__icon {
  27724. font-size: 28px !important;
  27725. }
  27726. .pfBox > div:nth-child(2) {
  27727. background: #f7f6f9;
  27728. width: 400px;
  27729. min-height: 45px;
  27730. border-radius: 10px;
  27731. font-size: 16px;
  27732. display: flex;
  27733. flex-wrap: wrap;
  27734. align-items: center;
  27735. padding: 10px 20px;
  27736. box-sizing: border-box;
  27737. color: #000;
  27738. }
  27739. .bz {
  27740. display: flex;
  27741. flex-direction: row;
  27742. flex-wrap: nowrap;
  27743. align-items: flex-start;
  27744. }
  27745. .bz > div {
  27746. padding: 0 10px;
  27747. }
  27748. .select_box2_title {
  27749. background: #fff;
  27750. border-radius: 5px;
  27751. padding: 15px 10px;
  27752. box-sizing: border-box;
  27753. margin-bottom: 10px;
  27754. display: flex;
  27755. flex-direction: row;
  27756. flex-wrap: nowrap;
  27757. align-items: center;
  27758. }
  27759. .select_box2_title > div:nth-child(2) {
  27760. margin-left: 10px;
  27761. color: #c4c4c4;
  27762. }
  27763. .select_box2_box {
  27764. display: flex;
  27765. height: 500px;
  27766. }
  27767. .select_box2_img {
  27768. width: calc(100% - 310px);
  27769. height: 100%;
  27770. overflow: auto;
  27771. background: #fff;
  27772. border-radius: 5px;
  27773. }
  27774. .select_box2_img img {
  27775. width: 100%;
  27776. }
  27777. .select_box2_answer {
  27778. background: #fff;
  27779. margin-left: 10px;
  27780. border-radius: 5px;
  27781. width: 300px;
  27782. overflow: auto;
  27783. height: 90%;
  27784. display: flex;
  27785. flex-direction: column;
  27786. align-items: flex-start;
  27787. padding-top: 10px;
  27788. box-sizing: border-box;
  27789. position: relative;
  27790. }
  27791. .select_answer_title {
  27792. padding: 0 0 15px 20px;
  27793. color: #c4c4c4;
  27794. }
  27795. .select_box2_answer_box {
  27796. margin: 0 0 10px 20px;
  27797. width: 85%;
  27798. display: flex;
  27799. flex-direction: row;
  27800. flex-wrap: nowrap;
  27801. align-items: center;
  27802. }
  27803. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27804. color: #000;
  27805. }
  27806. .upAnswerCss {
  27807. position: absolute;
  27808. bottom: 15px;
  27809. right: 15px;
  27810. }
  27811. .upAnswerCss >>> .el-button {
  27812. width: 95px;
  27813. height: 35px;
  27814. line-height: 35px;
  27815. padding: 0;
  27816. }
  27817. .rightWidthCss {
  27818. width: 60%;
  27819. display: flex;
  27820. flex-direction: row;
  27821. align-items: flex-start;
  27822. }
  27823. .rightAnswer {
  27824. display: flex;
  27825. flex-direction: row;
  27826. flex-wrap: nowrap;
  27827. align-items: center;
  27828. color: red;
  27829. margin-bottom: 31px;
  27830. }
  27831. .rightAnswerCss {
  27832. display: flex;
  27833. flex-direction: column;
  27834. flex-wrap: nowrap;
  27835. padding-top: 60px;
  27836. }
  27837. .blueCss {
  27838. color: #767de1;
  27839. margin-left: 10px;
  27840. }
  27841. .redCss {
  27842. color: red;
  27843. }
  27844. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27845. color: rgb(0 123 255) !important;
  27846. }
  27847. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27848. color: rgb(0 123 255) !important;
  27849. }
  27850. .zuoyeYulan {
  27851. padding-top: 0;
  27852. font-size: 18px;
  27853. display: flex;
  27854. align-items: flex-end;
  27855. }
  27856. .buttonA {
  27857. margin-left: 10px;
  27858. padding: 0;
  27859. }
  27860. .displayBox {
  27861. margin-bottom: 10px;
  27862. display: block;
  27863. border-bottom: 3px solid #eee;
  27864. display: flex;
  27865. align-items: center;
  27866. }
  27867. .easy_comment {
  27868. width: calc(100% - 90px);
  27869. margin-left: 10px;
  27870. display: flex;
  27871. flex-wrap: wrap;
  27872. }
  27873. .easy_comment > div {
  27874. border: 1px solid #4a4a4a;
  27875. color: #666;
  27876. border-radius: 15px;
  27877. padding: 5px 10px;
  27878. font-size: 16px;
  27879. margin-bottom: 10px;
  27880. margin-right: 5px;
  27881. cursor: pointer;
  27882. }
  27883. .easy_comment div:hover {
  27884. border: 1px solid #f7ba2a;
  27885. color: #c69217;
  27886. }
  27887. .xuan_right_box {
  27888. padding: 10px 0;
  27889. background: #f0f4fa;
  27890. margin: 0 15px 0 25px;
  27891. border-bottom-left-radius: 5px;
  27892. border-bottom-right-radius: 5px;
  27893. width: 91.5%;
  27894. }
  27895. .tool_right_box {
  27896. display: flex;
  27897. align-items: center;
  27898. }
  27899. .tool_right_box >>> .katex {
  27900. font-size: 16px;
  27901. }
  27902. .tool_right_box + .tool_right_box {
  27903. margin-top: 10px;
  27904. }
  27905. .right_box_xuan {
  27906. border-radius: 5px;
  27907. padding: 5px;
  27908. margin-left: 10px;
  27909. min-width: 85px;
  27910. background: #fff;
  27911. color: #0061ff;
  27912. border: 1px solid #0061ff;
  27913. font-size: 14px;
  27914. }
  27915. .pButton:hover {
  27916. opacity: 1 !important;
  27917. }
  27918. .pButton {
  27919. position: fixed;
  27920. text-align: center;
  27921. cursor: pointer;
  27922. z-index: 999;
  27923. right: 20px;
  27924. top: 110px;
  27925. width: 50px;
  27926. height: 50px;
  27927. display: flex;
  27928. align-items: center;
  27929. justify-content: center;
  27930. border-radius: 5px;
  27931. }
  27932. .pzClass {
  27933. width: calc(100% - 340px);
  27934. }
  27935. .newDialogCss {
  27936. /* position: fixed;
  27937. right: 5%;
  27938. top: 50%;
  27939. width: 340px;
  27940. transform: translateY(-50%);
  27941. height: 60%;
  27942. box-shadow: 0px 0 8px 0px #555555;
  27943. border-radius: 15px;
  27944. z-index: 999; */
  27945. position: fixed;
  27946. right: 20px;
  27947. top: 101px;
  27948. width: 330px;
  27949. height: calc(100% - 80px);
  27950. z-index: 999;
  27951. background: #fff;
  27952. border-top-right-radius: 0px;
  27953. border-bottom-right-radius: 0px;
  27954. overflow: hidden;
  27955. }
  27956. .newDialogCss>.scoreList{
  27957. width:100%;
  27958. height:100%;
  27959. box-sizing:border-box;
  27960. padding:10px 15px;
  27961. overflow:auto;
  27962. padding-bottom:80px;
  27963. }
  27964. .pzTop {
  27965. color: #fff;
  27966. background: #000;
  27967. display: flex;
  27968. flex-direction: row;
  27969. flex-wrap: nowrap;
  27970. align-items: center;
  27971. justify-content: space-between;
  27972. height: 40px;
  27973. border-radius: 15px 15px 0 0;
  27974. user-select: none;
  27975. }
  27976. .pzTop2 .checkbox {
  27977. display: flex;
  27978. align-items: center;
  27979. padding: 5px 10px;
  27980. flex: 0 0 auto;
  27981. font-weight: bold;
  27982. border-bottom: 1px solid #eee;
  27983. justify-content: space-between;
  27984. }
  27985. .checkbox>.cb-tabList{
  27986. display:flex;
  27987. align-items:center;
  27988. }
  27989. .cb-tabList>div{
  27990. margin-right:20px;
  27991. font-weight:400;
  27992. cursor:pointer;
  27993. }
  27994. .cb-tabList>.cb-tabItem{
  27995. color:#1684FC;
  27996. position:relative;
  27997. }
  27998. .cb-tabItem::after{
  27999. content:"";
  28000. width:100%;
  28001. height:2px;
  28002. background:#1684FC;
  28003. position:absolute;
  28004. bottom:-5px;
  28005. left:0
  28006. }
  28007. .pzTop2 .check {
  28008. text-align: center;
  28009. cursor: pointer;
  28010. box-sizing: border-box;
  28011. display: flex;
  28012. }
  28013. .pzTop2 img {
  28014. width: 25px;
  28015. cursor: pointer;
  28016. }
  28017. .pzTop > div:nth-child(1) {
  28018. padding-left: 10px;
  28019. }
  28020. .pzTop > div:nth-child(2) {
  28021. width: 15px;
  28022. height: 15px;
  28023. padding-right: 10px;
  28024. cursor: pointer;
  28025. }
  28026. .pzTop > div:nth-child(2) > img {
  28027. width: 100%;
  28028. height: 100%;
  28029. }
  28030. .pzBox,
  28031. .noPzBox {
  28032. height: calc(100% - 60px);
  28033. /* background: #ededed; */
  28034. background: #fff;
  28035. /* border-radius: 0 0 15px 15px; */
  28036. }
  28037. .noPzBox {
  28038. display: flex;
  28039. flex-direction: column;
  28040. flex-wrap: nowrap;
  28041. justify-content: center;
  28042. align-items: center;
  28043. }
  28044. .pzList {
  28045. background: #f7f7f7;
  28046. width: 90%;
  28047. margin: 0 auto 15px;
  28048. border-radius: 5px;
  28049. }
  28050. .pzNavTop {
  28051. display: flex;
  28052. flex-direction: row;
  28053. flex-wrap: nowrap;
  28054. padding: 10px 10px 0 10px;
  28055. align-items: center;
  28056. }
  28057. .pzDelete {
  28058. cursor: pointer;
  28059. margin-left: auto;
  28060. font-size: 14px;
  28061. color: #afafaf;
  28062. }
  28063. .pzNavTop > div:nth-child(1) {
  28064. background: #3760af;
  28065. width: 35px;
  28066. height: 35px;
  28067. color: #fff;
  28068. text-align: center;
  28069. line-height: 35px;
  28070. border-radius: 50%;
  28071. font-size: 14px;
  28072. }
  28073. .pzNavTop > div:nth-child(2) {
  28074. font-size: 18px;
  28075. color: #959595;
  28076. margin-left: 5px;
  28077. }
  28078. .pzContent {
  28079. padding: 10px;
  28080. word-break: break-word;
  28081. }
  28082. .pzContent audio {
  28083. width: 100%;
  28084. }
  28085. .pzContent audio::-webkit-media-controls-panel {
  28086. background: #fff;
  28087. }
  28088. .pzContent >>> img {
  28089. max-width: 100%;
  28090. }
  28091. .pzListBox {
  28092. padding-top: 15px;
  28093. height: calc(100% - 110px);
  28094. overflow: auto;
  28095. }
  28096. .addPzButton {
  28097. position: relative;
  28098. margin-top: 3px;
  28099. width: 100%;
  28100. }
  28101. .addPzButton .img1 {
  28102. position: absolute;
  28103. top: 50%;
  28104. right: 25px;
  28105. transform: translateY(-50%);
  28106. height: 100%;
  28107. display: flex;
  28108. align-items: center;
  28109. }
  28110. .addPzButton .img1 div {
  28111. display: flex;
  28112. }
  28113. .addPzButton .img1 div img {
  28114. width: 28px;
  28115. margin-left: 10px;
  28116. cursor: pointer;
  28117. }
  28118. .addPzButton .img1 div span {
  28119. font-size: 14px;
  28120. margin: 4px 0 0 3px;
  28121. color: #afafaf;
  28122. }
  28123. .addPz {
  28124. background: #4b79ce;
  28125. width: 100px;
  28126. color: #fff;
  28127. font-size: 12px;
  28128. height: 30px;
  28129. margin: 0 auto;
  28130. text-align: center;
  28131. line-height: 30px;
  28132. border-radius: 10px;
  28133. cursor: pointer;
  28134. }
  28135. .addDialogCss {
  28136. position: fixed;
  28137. width: 600px;
  28138. height: 70%;
  28139. min-height: 450px;
  28140. box-shadow: 0px 0 8px 0px #555555;
  28141. border-radius: 15px;
  28142. z-index: 999;
  28143. left: 50%;
  28144. top: 50%;
  28145. margin: -18% 0 0 -300px;
  28146. }
  28147. .teacherPz {
  28148. display: flex;
  28149. flex-direction: row;
  28150. align-items: center;
  28151. flex-wrap: nowrap;
  28152. }
  28153. .teacherPzImg {
  28154. width: 30px;
  28155. height: 30px;
  28156. }
  28157. .teacherPzImg > img {
  28158. width: 100%;
  28159. height: 100%;
  28160. }
  28161. .addPzBox {
  28162. height: calc(100% - 40px);
  28163. background: #ededed;
  28164. border-bottom-left-radius: 15px;
  28165. border-bottom-right-radius: 15px;
  28166. }
  28167. .pzAudioClass {
  28168. margin: 15px 14px;
  28169. background: #fff;
  28170. height: 100%;
  28171. display: flex;
  28172. justify-content: center;
  28173. align-items: center;
  28174. }
  28175. .pzConText {
  28176. width: 95%;
  28177. height: 100%;
  28178. margin: 10px auto 0;
  28179. border: none;
  28180. background: #fff;
  28181. border-radius: 0px;
  28182. }
  28183. .pzConText >>> .text {
  28184. height: calc(100% - 82px);
  28185. }
  28186. .addTextCss {
  28187. background: #4b79ce;
  28188. width: 80px;
  28189. height: 30px;
  28190. text-align: center;
  28191. color: #fff;
  28192. line-height: 30px;
  28193. border-radius: 10px;
  28194. margin: 10px auto 0;
  28195. cursor: pointer;
  28196. }
  28197. .pzConText:focus-visible {
  28198. border: none !important;
  28199. }
  28200. .maxWidth {
  28201. width: 1000px;
  28202. }
  28203. .noPz {
  28204. width: 150px;
  28205. margin: 0 auto 20%;
  28206. }
  28207. .noPz > img {
  28208. width: 100%;
  28209. height: 100%;
  28210. }
  28211. .timeAndReply {
  28212. display: flex;
  28213. flex-direction: row;
  28214. flex-wrap: nowrap;
  28215. justify-content: space-between;
  28216. align-items: center;
  28217. font-size: 14px;
  28218. box-sizing: border-box;
  28219. padding: 0 10px 10px 0px;
  28220. }
  28221. .timeAndReply .time {
  28222. color: #bfbfbf;
  28223. padding: 0 0 0 10px;
  28224. box-sizing: border-box;
  28225. }
  28226. .timeAndReply > div:last-child {
  28227. cursor: pointer;
  28228. color: #777;
  28229. }
  28230. /* table 样式 */
  28231. .cont >>> table {
  28232. border-top: 1px solid #ccc;
  28233. border-left: 1px solid #ccc;
  28234. }
  28235. .cont >>> table td,
  28236. .cont >>> table th {
  28237. border-bottom: 1px solid #ccc;
  28238. border-right: 1px solid #ccc;
  28239. /* padding: 20px 5px; */
  28240. padding: 5px 10px;
  28241. max-width: 0px;
  28242. height: 30px;
  28243. vertical-align: baseline;
  28244. box-sizing: border-box;
  28245. }
  28246. .cont >>> table th {
  28247. border-bottom: 2px solid #ccc;
  28248. text-align: center;
  28249. }
  28250. /* blockquote 样式 */
  28251. .cont >>> blockquote {
  28252. display: block;
  28253. border-left: 8px solid #d0e5f2;
  28254. padding: 5px 10px;
  28255. margin: 10px 0;
  28256. line-height: 1.4;
  28257. font-size: 100%;
  28258. background-color: #f1f1f1;
  28259. }
  28260. /* code 样式 */
  28261. .cont >>> code {
  28262. display: inline-block;
  28263. /* *display: inline; */
  28264. zoom: 1;
  28265. background-color: #f1f1f1;
  28266. border-radius: 3px;
  28267. padding: 3px 5px;
  28268. margin: 0 3px;
  28269. }
  28270. .cont >>> pre code {
  28271. display: block;
  28272. }
  28273. /* ul ol 样式 */
  28274. .cont >>> ul,
  28275. ol {
  28276. margin: 10px 0 10px 20px;
  28277. }
  28278. .addPzCheck {
  28279. display: flex;
  28280. flex-direction: row;
  28281. flex-wrap: nowrap;
  28282. padding: 10px 15px 0;
  28283. }
  28284. .addPzCheck span {
  28285. cursor: pointer;
  28286. padding-bottom: 5px;
  28287. font-weight: bold;
  28288. }
  28289. .addPzCheck span + span {
  28290. margin-left: 10px;
  28291. }
  28292. .addPzCheck .isChooseActive {
  28293. color: #3e88f4;
  28294. border-bottom: 2px solid #2f80f3;
  28295. }
  28296. /* code 样式 */
  28297. .cont {
  28298. /* -webkit-user-modify: read-write; */
  28299. overflow-wrap: break-word;
  28300. -webkit-line-break: after-white-space;
  28301. word-break: break-word;
  28302. white-space: pre-line;
  28303. }
  28304. .scoreBox,
  28305. .scoreDetailBox {
  28306. display: flex;
  28307. align-items: center;
  28308. justify-content: flex-start;
  28309. margin-top: 20px;
  28310. font-size: 18px;
  28311. width: 100%;
  28312. }
  28313. .scoreBox .t,
  28314. .scoreDetailBox .t {
  28315. margin-right: 10px;
  28316. width: 100px;
  28317. text-align: right;
  28318. }
  28319. .scoreDetailBox {
  28320. align-items: flex-start;
  28321. }
  28322. .scoreDetailBox >>> .el-textarea {
  28323. width: calc(100% - 200px);
  28324. }
  28325. .scoreBox >>> .el-input {
  28326. width: 130px;
  28327. font-size: 38px;
  28328. }
  28329. .scoreBox >>> .el-input__inner {
  28330. height: 60px;
  28331. }
  28332. .answerScore {
  28333. position: absolute;
  28334. top: 10px;
  28335. right: 10px;
  28336. background: #0000008f;
  28337. border-radius: 5px;
  28338. padding: 3px 5px;
  28339. font-size: 14px;
  28340. color: #fff;
  28341. cursor: pointer;
  28342. }
  28343. .open_box .switch_box {
  28344. width: 100%;
  28345. margin: 0 auto;
  28346. display: flex;
  28347. justify-content: space-between;
  28348. }
  28349. .open_box .switch_box + .switch_box {
  28350. margin-top: 10px;
  28351. }
  28352. .deleteImg,.deleteImg1 {
  28353. width: 25px !important;
  28354. height: 25px !important;
  28355. cursor: pointer;
  28356. position: absolute;
  28357. top: 10px;
  28358. right: 10px;
  28359. }
  28360. .deleteImg2 {
  28361. width: 23px !important;
  28362. height: 23px !important;
  28363. top: 5px;
  28364. right: 5px;
  28365. }
  28366. .deleteImg1{
  28367. width: 23px !important;
  28368. height: 23px !important;
  28369. top: 5px !important;
  28370. right: 30px !important;
  28371. }
  28372. .rightW {
  28373. right: 40px;
  28374. }
  28375. .drawPBox {
  28376. display: flex;
  28377. flex-direction: column;
  28378. position: relative;
  28379. }
  28380. .drawPBox span {
  28381. font-size: 18px;
  28382. color: #606266;
  28383. padding-bottom: 10px;
  28384. margin: 10px 0;
  28385. border-bottom: 1px solid #eaeaea;
  28386. }
  28387. .drawPBox img {
  28388. width: 500px;
  28389. height: 300px;
  28390. object-fit: contain;
  28391. cursor: pointer;
  28392. margin: 0 auto;
  28393. }
  28394. .sentenBox {
  28395. background: #fff;
  28396. height: 450px;
  28397. overflow: auto;
  28398. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28399. background-position: 102%;
  28400. background-repeat: no-repeat;
  28401. background-size: 60%;
  28402. }
  28403. .addSen {
  28404. background: #409efe;
  28405. width: 90px;
  28406. color: #fff;
  28407. height: 35px;
  28408. text-align: center;
  28409. line-height: 35px;
  28410. border-radius: 5px;
  28411. float: right;
  28412. margin: 10px 20px 0 0;
  28413. cursor: pointer;
  28414. }
  28415. .sentenTop {
  28416. display: flex;
  28417. flex-direction: row;
  28418. flex-wrap: nowrap;
  28419. align-items: center;
  28420. padding: 55px 0 0 20px;
  28421. box-sizing: border-box;
  28422. }
  28423. .sentenTop > div:nth-child(2) {
  28424. width: 300px;
  28425. margin: 0 15px;
  28426. }
  28427. .sentenTop > div:nth-child(3) {
  28428. background: #409efe;
  28429. color: #fff;
  28430. width: 65px;
  28431. height: 35px;
  28432. text-align: center;
  28433. line-height: 35px;
  28434. border-radius: 5px;
  28435. cursor: pointer;
  28436. }
  28437. .cardList,
  28438. .cardList1 {
  28439. padding: 10px 0 10px 0;
  28440. display: flex;
  28441. flex-direction: row;
  28442. flex-wrap: wrap;
  28443. align-items: center;
  28444. box-sizing: border-box;
  28445. border-bottom: 1px solid #f4f4f4;
  28446. width: 98%;
  28447. margin: 0 auto;
  28448. min-width: 60%;
  28449. max-width: 85%;
  28450. }
  28451. .cardList1 {
  28452. padding: 10px 0 10px 10px !important;
  28453. margin: 0 !important;
  28454. }
  28455. .cardBox {
  28456. display: flex;
  28457. flex-direction: row;
  28458. flex-wrap: wrap;
  28459. align-items: center;
  28460. align-content: center;
  28461. }
  28462. .cardBox > div {
  28463. margin-bottom: 10px;
  28464. }
  28465. .isCard,
  28466. .isChooseCard,
  28467. .noCard,
  28468. .isCard1 {
  28469. min-width: 130px;
  28470. width: auto;
  28471. height: 60px;
  28472. text-align: center;
  28473. line-height: 60px;
  28474. font-size: 20px;
  28475. cursor: pointer;
  28476. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28477. background-size: cover;
  28478. transition: all 2s;
  28479. margin-right: 20px;
  28480. background-size: 100% 100%;
  28481. padding: 0 20px;
  28482. box-sizing: border-box;
  28483. }
  28484. .isCard > div,
  28485. .noCard > div,
  28486. .isCard1 > div {
  28487. white-space: nowrap;
  28488. overflow: hidden;
  28489. text-overflow: ellipsis;
  28490. width: 100%;
  28491. margin: 0 auto;
  28492. }
  28493. .noCard {
  28494. background-image: none;
  28495. }
  28496. .isCard1 {
  28497. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28498. }
  28499. .isChooseCard {
  28500. background-image: none;
  28501. border: 1px dashed #b9b9b9;
  28502. border-radius: 10px;
  28503. }
  28504. .card {
  28505. width: 130px;
  28506. height: 60px;
  28507. }
  28508. .card > img {
  28509. width: 100%;
  28510. height: 100%;
  28511. }
  28512. .rightCardBox {
  28513. margin: 10px 0 0 10px;
  28514. }
  28515. .rightCardBox > div:nth-child(1) {
  28516. margin-bottom: 10px;
  28517. }
  28518. .cardCss {
  28519. display: flex;
  28520. flex-direction: column;
  28521. flex-wrap: nowrap;
  28522. align-items: center;
  28523. border-bottom: 3px solid #b4c3d3;
  28524. padding: 0 0 5px 0;
  28525. margin-right: 10px;
  28526. }
  28527. .cardCss > div:nth-child(2) {
  28528. background: #5b7b9d;
  28529. color: #fff;
  28530. width: 20px;
  28531. height: 20px;
  28532. border-radius: 50%;
  28533. text-align: center;
  28534. line-height: 20px;
  28535. }
  28536. .isWrong {
  28537. display: flex;
  28538. flex-direction: row;
  28539. flex-wrap: nowrap;
  28540. align-content: center;
  28541. align-items: center;
  28542. }
  28543. .answerRight {
  28544. width: 25%;
  28545. }
  28546. .isTj {
  28547. display: flex;
  28548. flex-direction: row;
  28549. flex-wrap: nowrap;
  28550. align-items: center;
  28551. }
  28552. .isTj > div:nth-child(2) {
  28553. color: #727070;
  28554. margin-left: 10px;
  28555. }
  28556. .isTjImg {
  28557. width: 30px;
  28558. height: 30px;
  28559. }
  28560. .isTjImg > img {
  28561. width: 100%;
  28562. height: 100%;
  28563. }
  28564. .cardAnswerBox {
  28565. font-size: 18px;
  28566. width: 97%;
  28567. border: 5px;
  28568. padding: 0;
  28569. border-radius: 5px;
  28570. margin: 10px auto;
  28571. word-break: break-word;
  28572. }
  28573. .w_name {
  28574. margin-bottom: 10px;
  28575. }
  28576. .w_name span {
  28577. font-size: 16px;
  28578. }
  28579. .w_teachert {
  28580. width: 50px !important;
  28581. position: absolute;
  28582. height: auto !important;
  28583. z-index: 10;
  28584. right: 25px;
  28585. top: -25px;
  28586. }
  28587. /* .group_workBox {
  28588. } */
  28589. .group_workBox + .group_workBox {
  28590. margin-top: 20px;
  28591. }
  28592. .group_box {
  28593. padding-bottom: 20px;
  28594. border-bottom: 2px solid #f0f0f0;
  28595. margin-top: 10px;
  28596. }
  28597. .group_title {
  28598. display: flex;
  28599. align-items: center;
  28600. justify-content: space-between;
  28601. width: 95%;
  28602. }
  28603. .group_name {
  28604. background-image: url(../../assets/icon/groupN.png);
  28605. width: 220px;
  28606. background-size: 100% 100%;
  28607. height: 67px;
  28608. padding: 0 20px 0 43px;
  28609. box-sizing: border-box;
  28610. line-height: 63px;
  28611. color: #fff;
  28612. overflow: hidden;
  28613. white-space: nowrap;
  28614. text-overflow: ellipsis;
  28615. }
  28616. .group_work {
  28617. width: 100%;
  28618. padding: 0 10px;
  28619. box-sizing: border-box;
  28620. display: flex;
  28621. flex-wrap: wrap;
  28622. }
  28623. .g_d_box {
  28624. display: flex;
  28625. flex-flow: wrap;
  28626. justify-content: space-around;
  28627. }
  28628. .g_d_box .isChair {
  28629. background-image: url(../../assets/avatar.png) !important;
  28630. }
  28631. .g_d_group {
  28632. width: 500px;
  28633. margin-bottom: 80px;
  28634. }
  28635. .g_d_group_chair {
  28636. display: flex;
  28637. align-items: center;
  28638. justify-content: center;
  28639. }
  28640. .g_d_group_chair > div + div {
  28641. margin-left: 30px;
  28642. }
  28643. .g_d_group_chair > div,
  28644. .g_d_group_chair2 > div {
  28645. display: flex;
  28646. flex-direction: column;
  28647. align-items: center;
  28648. }
  28649. .g_d_group_chair > div > span:nth-child(1),
  28650. .g_d_group_chair2 > div > span:nth-child(1) {
  28651. background-image: url(../../assets/icon/chair.png);
  28652. width: 50px;
  28653. height: 50px;
  28654. display: block;
  28655. background-size: 100% 100%;
  28656. }
  28657. .g_d_group_tableBox {
  28658. display: flex;
  28659. align-items: center;
  28660. justify-content: center;
  28661. }
  28662. .g_d_group_chair2 {
  28663. display: flex;
  28664. flex-direction: column;
  28665. align-items: center;
  28666. justify-content: center;
  28667. }
  28668. .g_d_group_chair2 > div + div {
  28669. margin-top: 10px;
  28670. }
  28671. .g_d_group_table {
  28672. background-image: url(../../assets/icon/groupBg.png);
  28673. width: 354px;
  28674. height: 196px;
  28675. background-size: 100% 100%;
  28676. display: flex;
  28677. align-items: center;
  28678. justify-content: center;
  28679. flex-direction: column;
  28680. color: #fff;
  28681. }
  28682. .g_d_group_table > div:nth-child(1) {
  28683. font-size: 24px;
  28684. margin-bottom: 5px;
  28685. }
  28686. .g_d_group_table > div:nth-child(2) div {
  28687. cursor: pointer;
  28688. background: #2e77bf;
  28689. padding: 4px 10px;
  28690. border-radius: 5px;
  28691. }
  28692. /* .groupBox {
  28693. } */
  28694. .groupContent + .groupContent {
  28695. margin-top: 30px;
  28696. }
  28697. .groupTitle {
  28698. font-size: 24px;
  28699. color: rgb(80, 80, 80);
  28700. margin-bottom: 20px;
  28701. }
  28702. .groupName {
  28703. display: flex;
  28704. align-items: center;
  28705. }
  28706. .groupn {
  28707. font-size: 15px;
  28708. margin-right: 10px;
  28709. }
  28710. .groupName + .groupName {
  28711. margin-top: 15px;
  28712. }
  28713. .groupBtn {
  28714. margin-left: 10px;
  28715. }
  28716. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28717. text-align: left;
  28718. }
  28719. .g_d_btnBox {
  28720. display: flex;
  28721. justify-content: flex-end;
  28722. align-items: center;
  28723. margin-bottom: 20px;
  28724. }
  28725. .updateChair {
  28726. position: relative;
  28727. }
  28728. .updateChairBtn {
  28729. position: absolute;
  28730. width: 50px;
  28731. height: 50px;
  28732. overflow: hidden;
  28733. /* display: flex; */
  28734. align-items: center;
  28735. justify-content: center;
  28736. background: #00000087;
  28737. color: #fff;
  28738. border-radius: 50px;
  28739. display: none;
  28740. cursor: pointer;
  28741. }
  28742. .updateChair:hover .updateChairBtn {
  28743. display: flex;
  28744. }
  28745. .group_staic_box {
  28746. display: flex;
  28747. padding: 30px 40px 10px;
  28748. flex-wrap: wrap;
  28749. }
  28750. .group_staic {
  28751. /* width: 50%; */
  28752. margin-bottom: 20px;
  28753. display: flex;
  28754. align-items: center;
  28755. }
  28756. .group_staic span:nth-child(1) {
  28757. width: 150px;
  28758. text-align: right;
  28759. margin-right: 15px;
  28760. }
  28761. .group_staic span:nth-child(2) {
  28762. background: rgb(0 123 255);
  28763. color: #fff;
  28764. border-radius: 5px;
  28765. padding: 5px;
  28766. }
  28767. .codeFileBox {
  28768. height: 300px;
  28769. background: #fff;
  28770. display: flex;
  28771. align-items: center;
  28772. justify-content: center;
  28773. }
  28774. .codeFileBox img {
  28775. width: 200px;
  28776. margin: 0;
  28777. height: auto;
  28778. }
  28779. .codeFileBox div {
  28780. background: rgb(80, 142, 226);
  28781. color: #fff;
  28782. padding: 10px 20px;
  28783. border-radius: 25px;
  28784. cursor: pointer;
  28785. margin-left: 15px;
  28786. }
  28787. .radioBox {
  28788. display: flex;
  28789. flex-direction: column;
  28790. flex-wrap: nowrap;
  28791. align-items: flex-start;
  28792. }
  28793. .radioBox > div {
  28794. margin: 10px 0 0 10px;
  28795. }
  28796. /* .radioBox >>> .el-radio__input,
  28797. .radioBox >>> .el-checkbox__inner {
  28798. margin-left: 10px;
  28799. } */
  28800. .radioBox >>> .el-radio__label,
  28801. .radioBox >>> .el-checkbox__label {
  28802. display: flex;
  28803. align-items: center;
  28804. width: 100%;
  28805. }
  28806. .radioBox >>> .el-radio__label > span {
  28807. width: 100%;
  28808. display: -webkit-box;
  28809. overflow: hidden;
  28810. white-space: normal !important;
  28811. text-overflow: ellipsis;
  28812. word-wrap: break-word;
  28813. }
  28814. .inImg {
  28815. width: 100px;
  28816. cursor: pointer;
  28817. }
  28818. .inImg > img {
  28819. width: 100%;
  28820. height: 100%;
  28821. object-fit: cover;
  28822. }
  28823. .timuImgBox {
  28824. margin: 10px 0;
  28825. display: flex;
  28826. flex-direction: column;
  28827. flex-wrap: wrap;
  28828. align-items: flex-start;
  28829. }
  28830. .timuImg {
  28831. width: 150px;
  28832. margin: 5px 0;
  28833. cursor: pointer;
  28834. }
  28835. .timuImg > img {
  28836. width: 100%;
  28837. height: 100%;
  28838. object-fit: cover;
  28839. }
  28840. .worksTop {
  28841. display: flex;
  28842. flex-direction: row;
  28843. align-items: flex-end;
  28844. }
  28845. .worksTitle {
  28846. display: flex;
  28847. flex-direction: row;
  28848. flex-wrap: nowrap;
  28849. align-items: center;
  28850. }
  28851. .worksTitle::before,
  28852. .worksTop::before {
  28853. content: "";
  28854. display: block;
  28855. width: 3px;
  28856. height: 20px;
  28857. background: #0061ff;
  28858. border-radius: 3px;
  28859. margin: 0 5px 0 0;
  28860. }
  28861. .corOpen {
  28862. margin: 0 0 0 10px;
  28863. font-size: 14px;
  28864. cursor: pointer;
  28865. color: #505050;
  28866. }
  28867. .corOpen:hover {
  28868. color: #499eef;
  28869. }
  28870. .navCorOpenBox {
  28871. display: flex;
  28872. flex-direction: row;
  28873. align-items: center;
  28874. justify-content: space-between;
  28875. height: 55px;
  28876. background: #ffffff;
  28877. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28878. border-radius: 8px 8px 0px 0px;
  28879. z-index: 9;
  28880. position: relative;
  28881. }
  28882. .navCorOpen {
  28883. padding-right: 15px;
  28884. cursor: pointer;
  28885. width: 45px;
  28886. display: flex;
  28887. }
  28888. .navCorOpen > img {
  28889. width: 100%;
  28890. height: 100%;
  28891. }
  28892. .mlImg {
  28893. width: 40px !important;
  28894. min-width: 40px;
  28895. cursor: pointer;
  28896. transform: rotate(180deg);
  28897. }
  28898. .mlImg > img {
  28899. width: 100%;
  28900. height: 100%;
  28901. }
  28902. .navLeftCss {
  28903. width: 100% !important;
  28904. left: 0 !important;
  28905. }
  28906. .isContentCss {
  28907. width: 100% !important;
  28908. }
  28909. .isAllWidth {
  28910. width: 100% !important;
  28911. }
  28912. .group_switch {
  28913. margin-right: 10px;
  28914. height: 30px;
  28915. display: flex;
  28916. align-items: center;
  28917. }
  28918. .group_switch > span {
  28919. margin-right: 5px;
  28920. }
  28921. .fileC_box {
  28922. padding-top: 15px;
  28923. }
  28924. .fileC_box > .fileC_title {
  28925. padding: 10px 5px 14px 10px;
  28926. border-top: 1px solid #cad1dc;
  28927. font-size: 14px;
  28928. font-weight: 400;
  28929. color: #cad1dc;
  28930. width: calc(100% - 20px);
  28931. margin: 0 auto;
  28932. box-sizing: border-box;
  28933. }
  28934. .pl_select_box {
  28935. height: 40px;
  28936. line-height: 40px;
  28937. width: 100%;
  28938. cursor: pointer;
  28939. padding: 0 20px;
  28940. box-sizing: border-box;
  28941. border-radius: 5px;
  28942. border: 1px solid #d6d6d6;
  28943. white-space: nowrap;
  28944. overflow: hidden;
  28945. text-overflow: ellipsis;
  28946. background: #fff;
  28947. text-align: left;
  28948. }
  28949. .newButton {
  28950. width: 102px;
  28951. height: 36px;
  28952. background: #e7ebf1;
  28953. border-radius: 4px;
  28954. color: #0e1e33;
  28955. font-weight: 400;
  28956. font-size: 14px;
  28957. border: none;
  28958. float: right;
  28959. margin-left: 10px;
  28960. }
  28961. .el-table >>> .even_row {
  28962. background-color: #f0f4fa;
  28963. }
  28964. .stageBoxCss,
  28965. .stageBoxIsCss {
  28966. display: flex;
  28967. flex-direction: row;
  28968. flex-wrap: nowrap;
  28969. align-items: center;
  28970. height: 50px;
  28971. border-bottom: 1px solid #e2f5fc;
  28972. cursor: pointer;
  28973. width: 100%;
  28974. }
  28975. .stageBoxIsCss {
  28976. background: #0061ff;
  28977. color: #fff;
  28978. border-radius: 8px;
  28979. }
  28980. .closeTri,
  28981. .closeTri1 {
  28982. min-width: 15px;
  28983. width: 15px;
  28984. height: 15px;
  28985. }
  28986. .closeTri1 {
  28987. padding-left: 10px;
  28988. cursor: pointer;
  28989. }
  28990. .closeTri > img,
  28991. .closeTri1 > img {
  28992. width: 100%;
  28993. height: 100%;
  28994. /* transition: all .5s; */
  28995. }
  28996. .noToolBlue {
  28997. min-width: 10px;
  28998. width: 10px;
  28999. height: 10px;
  29000. background: #0061ff;
  29001. border-radius: 50%;
  29002. margin-left: 13px;
  29003. }
  29004. .stageChild,
  29005. .toolChild {
  29006. height: 0;
  29007. overflow: hidden;
  29008. transition: all 0.5s;
  29009. }
  29010. /* .toolChild { */
  29011. /* margin: 0 0 0 17px;
  29012. padding: 0 0 0 20px;
  29013. border-left: 1px solid #d7d7d7; */
  29014. /* } */
  29015. .toolChild > div + div{
  29016. margin-top:5px;
  29017. }
  29018. .gjCss {
  29019. display: flex;
  29020. flex-direction: row;
  29021. flex-wrap: nowrap;
  29022. align-items: center;
  29023. padding: 10px 0 10px 40px;
  29024. box-sizing: border-box;
  29025. font-size: 14px;
  29026. cursor: pointer;
  29027. border-radius:5px;
  29028. }
  29029. .toolChild > div {
  29030. position: relative;
  29031. width: 100%;
  29032. }
  29033. /* .toolChild > div::before { */
  29034. /* content: "";
  29035. width: 15px;
  29036. height: 1px;
  29037. background: #cad1dc;
  29038. position: absolute;
  29039. top: 24px;
  29040. left: -20px;
  29041. display: block; */
  29042. /* } */
  29043. .isGjCss {
  29044. /* color: #0061ff; */
  29045. color:#fff;
  29046. background: rgb(55, 129, 252);
  29047. /* background-color: #e0eafb !important;
  29048. color: #0061ff !important; */
  29049. }
  29050. .navItem {
  29051. background: #ffffff;
  29052. border-radius: 4px;
  29053. width: 100%;
  29054. margin: 10px auto;
  29055. position: relative;
  29056. height: 40px;
  29057. display: flex;
  29058. flex-direction: row;
  29059. flex-wrap: nowrap;
  29060. align-items: center;
  29061. }
  29062. .navItemList {
  29063. display: flex;
  29064. flex-direction: row;
  29065. flex-wrap: nowrap;
  29066. align-items: center;
  29067. padding: 0 13px;
  29068. cursor: pointer;
  29069. width: calc(100% - 60px);
  29070. height: 100%;
  29071. }
  29072. .navItemList > div:first-child {
  29073. min-width: 60px;
  29074. }
  29075. .navItemList > div:last-child {
  29076. width: calc(100% - 80px);
  29077. white-space: nowrap;
  29078. overflow: hidden;
  29079. text-overflow: ellipsis;
  29080. word-break: break-word;
  29081. }
  29082. /* .isItemList > div {
  29083. color: #fff !important;
  29084. } */
  29085. .tool_work_box {
  29086. width: 100%;
  29087. padding: 0 37px 0;
  29088. box-sizing: border-box;
  29089. }
  29090. .tool_box {
  29091. width: 100%;
  29092. padding: 0 0 0 20px;
  29093. }
  29094. .tool_type_box {
  29095. display: flex;
  29096. flex-direction: row;
  29097. align-items: baseline;
  29098. flex-wrap: nowrap;
  29099. justify-content: flex-start;
  29100. position: relative;
  29101. }
  29102. .toolSort {
  29103. display: flex;
  29104. flex-direction: row;
  29105. flex-wrap: wrap;
  29106. justify-content: flex-start;
  29107. align-items: flex-start;
  29108. padding: 0 0 15px 0;
  29109. }
  29110. .toolSort > div {
  29111. margin: 0 10px 0 0;
  29112. width: 135px;
  29113. box-sizing: border-box;
  29114. border: 2px solid transparent;
  29115. }
  29116. .tools {
  29117. width: 100%;
  29118. display: flex;
  29119. flex-direction: column;
  29120. flex-wrap: nowrap;
  29121. align-items: flex-start;
  29122. }
  29123. .whiteBIcon {
  29124. width: fit-content;
  29125. cursor: pointer;
  29126. display: flex;
  29127. flex-direction: column;
  29128. flex-wrap: nowrap;
  29129. align-items: center;
  29130. font-size: 14px;
  29131. }
  29132. .tool:hover {
  29133. border: 2px solid #a5c7ff;
  29134. border-radius: 5px;
  29135. }
  29136. .whiteBIcon > img {
  29137. width: 65px;
  29138. height: 100%;
  29139. }
  29140. .whiteBIcon > img {
  29141. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29142. border-radius: 15px;
  29143. }
  29144. .check {
  29145. /* width: 20px;
  29146. height: 20px; */
  29147. cursor: pointer;
  29148. margin: 10px 0;
  29149. position: absolute;
  29150. right: 2px;
  29151. top: -5px;
  29152. }
  29153. .noChoose,
  29154. .isChoose {
  29155. width: 15px;
  29156. height: 15px;
  29157. border-radius: 50%;
  29158. border: 1px solid #adadad;
  29159. }
  29160. .isChoose {
  29161. border: 4px solid #0363ff !important;
  29162. width: 10px;
  29163. height: 10px;
  29164. }
  29165. .isToolChoose {
  29166. border: 2px solid #5394ff !important;
  29167. border-radius: 5px;
  29168. box-shadow: 0 0 6px 0px #5394ff;
  29169. }
  29170. .checkDiv {
  29171. display: flex;
  29172. align-items: center;
  29173. }
  29174. .checkDiv span {
  29175. margin-left: 5px;
  29176. color: #858585;
  29177. }
  29178. .check img {
  29179. width: 20px;
  29180. height: 20px;
  29181. }
  29182. .lockTaskIcon {
  29183. width: 20px;
  29184. height: 20px;
  29185. position: absolute;
  29186. right: 10px;
  29187. top: 10px;
  29188. }
  29189. .lockTaskIcon > img {
  29190. width: 100%;
  29191. height: 100%;
  29192. }
  29193. .pick_box {
  29194. display: flex;
  29195. align-items: flex-start;
  29196. flex-wrap: wrap;
  29197. }
  29198. .selectBox {
  29199. width: 110px;
  29200. margin-left: 10px;
  29201. margin: 0 10px 0 auto;
  29202. }
  29203. .selectBox >>> .el-input__inner {
  29204. height: 30px;
  29205. line-height: 30px;
  29206. }
  29207. .selectBox >>> .el-input__icon {
  29208. line-height: 30px;
  29209. }
  29210. .sentenceTitle {
  29211. display: flex;
  29212. flex-direction: row;
  29213. flex-wrap: nowrap;
  29214. align-items: center;
  29215. }
  29216. .sentenceTitle::before {
  29217. content: attr(index);
  29218. background: #3681fc;
  29219. border-radius: 50%;
  29220. color: #fff;
  29221. width: 25px;
  29222. height: 25px;
  29223. min-width: 25px;
  29224. min-height: 25px;
  29225. text-align: center;
  29226. line-height: 25px;
  29227. margin-right: 5px;
  29228. }
  29229. .hfBox {
  29230. padding: 10px;
  29231. box-sizing: border-box;
  29232. }
  29233. .whoReplyWho {
  29234. display: flex;
  29235. flex-direction: row;
  29236. flex-wrap: nowrap;
  29237. align-items: baseline;
  29238. justify-content: flex-start;
  29239. }
  29240. .hfBottom {
  29241. display: flex;
  29242. flex-direction: row;
  29243. flex-wrap: nowrap;
  29244. align-items: center;
  29245. justify-content: space-between;
  29246. font-size: 14px;
  29247. }
  29248. .deleteHfItem {
  29249. cursor: pointer;
  29250. width: 20px;
  29251. height: 20px;
  29252. }
  29253. .deleteHfItem > img {
  29254. width: 100%;
  29255. height: 100%;
  29256. }
  29257. .whoReplyWho > .hfImg {
  29258. width: 12px;
  29259. height: 12px;
  29260. margin: 0 5px;
  29261. }
  29262. .whoReplyWho > .hfImg > img {
  29263. width: 100%;
  29264. height: 100%;
  29265. }
  29266. .hfContent {
  29267. padding-top: 10px;
  29268. box-sizing: border-box;
  29269. display: -webkit-box;
  29270. overflow: hidden;
  29271. white-space: normal !important;
  29272. text-overflow: ellipsis;
  29273. word-wrap: break-word;
  29274. -webkit-box-orient: vertical;
  29275. }
  29276. .hfTime {
  29277. text-align: left;
  29278. box-sizing: border-box;
  29279. padding: 10px 0 10px 0px;
  29280. color: #bfbfbf;
  29281. font-size: 14px;
  29282. }
  29283. .btnAllNT {
  29284. position: fixed;
  29285. bottom: 100px;
  29286. right: 40px;
  29287. z-index: 999;
  29288. display: flex;
  29289. flex-direction: row;
  29290. }
  29291. .btnAllNT > img {
  29292. cursor: pointer;
  29293. width: 80px;
  29294. }
  29295. .toolMask {
  29296. position: fixed;
  29297. width: 100%;
  29298. height: 100%;
  29299. background: #3f3c3c;
  29300. opacity: 0.5;
  29301. top: 0;
  29302. left: 0;
  29303. z-index: 999;
  29304. }
  29305. .addToolCss {
  29306. position: fixed;
  29307. z-index: 999;
  29308. background: #fff;
  29309. right: 5%;
  29310. bottom: 18%;
  29311. min-width: 1035px;
  29312. min-height: 300px;
  29313. border-radius: 10px;
  29314. box-shadow: 0 0 8px 1px #b2b2b2;
  29315. }
  29316. .toolTop {
  29317. display: flex;
  29318. flex-direction: row;
  29319. flex-wrap: nowrap;
  29320. justify-content: space-between;
  29321. align-items: center;
  29322. padding: 20px;
  29323. }
  29324. .toolTop > div:nth-child(2) {
  29325. width: 15px;
  29326. height: 15px;
  29327. padding-right: 10px;
  29328. cursor: pointer;
  29329. }
  29330. .toolTop > div:nth-child(2) > img {
  29331. width: 100%;
  29332. height: 100%;
  29333. }
  29334. .fullStyle>>>.el-dialog__body {
  29335. height: calc(100% - 125px) !important;
  29336. box-sizing: border-box;
  29337. padding: 30px 0 !important;
  29338. background: #fff !important;
  29339. }
  29340. .fullStyle>>>.el-dialog {
  29341. width: 100% !important;
  29342. max-width: 100% !important;
  29343. height: 100% !important;
  29344. margin: 0 !important;
  29345. }
  29346. .fullStyle {
  29347. width: 100% !important;
  29348. max-width: 100% !important;
  29349. height: 100% !important;
  29350. margin: 0 auto !important;
  29351. }
  29352. .fullStyle>>>.el-dialog__footer{
  29353. background: #fff !important;
  29354. }
  29355. .engUpBox {
  29356. width: 100%;
  29357. height: 100%;
  29358. }
  29359. .engTitle,
  29360. .engText {
  29361. display: flex;
  29362. flex-direction: row;
  29363. flex-wrap: nowrap;
  29364. align-items: flex-start;
  29365. padding: 0 20px 20px 20px;
  29366. box-sizing: border-box;
  29367. }
  29368. .engTitle > .div:first-child,
  29369. .engText > div:first-child {
  29370. min-width: 75px;
  29371. }
  29372. .correctBox{
  29373. width: 100%;
  29374. display: flex;
  29375. flex-direction: row;
  29376. flex-wrap: nowrap;
  29377. align-items: flex-start;
  29378. }
  29379. .oldBox{
  29380. width: 50%;
  29381. height: 100%;
  29382. display: flex;
  29383. flex-direction: column;
  29384. flex-wrap: nowrap;
  29385. align-items: center;
  29386. border-top: 1px solid #d9d9d9;
  29387. border-left: 1px solid #d9d9d9;
  29388. border-right: 1px solid #d9d9d9;
  29389. }
  29390. .oldBox>div:first-child{
  29391. width: 100%;
  29392. text-align: center;
  29393. background: #d9d9d9;
  29394. height: 35px;
  29395. line-height: 35px;
  29396. font-weight: bold;
  29397. }
  29398. .oldText{
  29399. width: 100%;
  29400. height: calc(100% - 35px);
  29401. overflow: auto;
  29402. margin: 10px 0;
  29403. display: flex;
  29404. flex-direction: column;
  29405. flex-wrap: nowrap;
  29406. align-content: center;
  29407. align-items: center;
  29408. }
  29409. .detailBox{
  29410. width: 50%;
  29411. padding: 10px;
  29412. background: #f6f6f6;
  29413. border-radius: 5px;
  29414. }
  29415. .oldDetail,.oldDetail1{
  29416. padding-bottom: 30px;
  29417. }
  29418. .oldImg{
  29419. width:30px;
  29420. height: 30px;
  29421. }
  29422. .oldImg>img{
  29423. width: 100%;
  29424. height: 100%;
  29425. }
  29426. .allName{
  29427. min-width: 200px;
  29428. white-space: nowrap;
  29429. overflow: hidden;
  29430. text-overflow: ellipsis;
  29431. word-break: break-word;
  29432. cursor: pointer;
  29433. text-align: center;
  29434. border: 1px solid #bcc2cc;
  29435. box-sizing: border-box;
  29436. }
  29437. .engUpTop{
  29438. max-height: 300px;
  29439. overflow: auto;
  29440. }
  29441. .isUpdateToolDetailClass{
  29442. padding: 0 !important;
  29443. }
  29444. .isUpdateToolDetailClass textarea{
  29445. padding:12px;
  29446. font-size: 16px;
  29447. min-height:100%;
  29448. width: 100%;
  29449. box-sizing:border-box;
  29450. outline: none;
  29451. border:none;
  29452. line-height: 30px;
  29453. resize: none;
  29454. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29455. color: #838383;
  29456. }
  29457. .show_taskD {
  29458. min-width: fit-content;
  29459. margin-left: 10px;
  29460. display: flex;
  29461. align-items: center;
  29462. font-size: 14px;
  29463. cursor: pointer;
  29464. color: #717c8d;
  29465. }
  29466. .show_taskD > img {
  29467. width: 15px;
  29468. margin-right: 5px;
  29469. transition: 0.2s all;
  29470. transform: rotate(-90deg);
  29471. }
  29472. .show_taskD.show > img {
  29473. transform: rotate(0deg);
  29474. }
  29475. .correctCss{
  29476. position: absolute;
  29477. bottom: -70px;
  29478. background: #409eff;
  29479. color: #fff;
  29480. }
  29481. .ScoreBtn {
  29482. background: rgba(87, 159, 248, 1);
  29483. display: flex;
  29484. justify-content: center;
  29485. align-items: center;
  29486. color: #fff;
  29487. font-size: 14px;
  29488. padding: 8px 12px;
  29489. border-radius: 5px;
  29490. cursor: pointer;
  29491. }
  29492. .max-height-popover .el-popover {
  29493. min-height: 200px;
  29494. max-height: 400px; /* 设置最大高度 */
  29495. overflow: auto; /* 超出部分显示滚动条 */
  29496. }
  29497. .stuLookScore {
  29498. position: absolute;
  29499. top: 12px;
  29500. right: 40px;
  29501. background: #0000008f;
  29502. border-radius: 5px;
  29503. padding: 3px 5px;
  29504. font-size: 14px;
  29505. color: #fff;
  29506. cursor: pointer;
  29507. }
  29508. .dialog_diyCopy >>> .el-dialog__header {
  29509. display: none !important;
  29510. }
  29511. .dialog_diyCopy >>> .el-dialog__body {
  29512. padding: 0 !important;
  29513. height: 100% !important;
  29514. }
  29515. .confirmOpenDigCss > div{
  29516. font-size: 14px;
  29517. color: rgba(0, 0, 0, 0.6);
  29518. }
  29519. .confirmOpenDigCss >>> .el-dialog{
  29520. border-radius: 6px;
  29521. }
  29522. .confirmOpenDigCss >>> .el-dialog__body{
  29523. padding: 25px !important;
  29524. }
  29525. .confirmOpenDigCss > span{
  29526. font-size: 16px;
  29527. font-weight: 600;
  29528. color: rgba(0, 0, 0, 0.8);
  29529. }
  29530. div::-webkit-scrollbar {
  29531. width: 10px;
  29532. height: 6px;
  29533. }
  29534. .Ovh{
  29535. margin: 5px 0;
  29536. width: 4em;
  29537. -webkit-line-clamp: 2;
  29538. display: -webkit-box;
  29539. -webkit-box-orient: vertical;
  29540. overflow: hidden;
  29541. text-overflow: ellipsis;
  29542. }
  29543. .pb_content >>> .katex {
  29544. font-size: 16px;
  29545. width: 100%;
  29546. white-space: normal;
  29547. }
  29548. .pb_content >>> .katex .base{
  29549. display: inline !important;
  29550. display: contents !important;
  29551. }
  29552. .pb_content >>> .katex .base .cjk_fallback{
  29553. white-space: normal !important;
  29554. display: inline !important;
  29555. }
  29556. </style>