studyStudent.vue 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435
  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. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24026. document.getElementsByClassName("navBox")[0].style.height =
  24027. a - 40 + 0+ "px";
  24028. }
  24029. } else {
  24030. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24031. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24032. }
  24033. }
  24034. }
  24035. this.Stbodywidth =
  24036. document.getElementsByClassName("student_body").length &&
  24037. document.getElementsByClassName("student_body")[0].offsetWidth;
  24038. },
  24039. closeDraw() {
  24040. this.bg = null;
  24041. this.drawShow = false;
  24042. },
  24043. showPicturePaint(url) {
  24044. let params = {
  24045. img: url,
  24046. };
  24047. this.ajax
  24048. .get(this.$store.state.api + "imgToBase64", params)
  24049. .then((res) => {
  24050. this.drawShow = true;
  24051. this.bg = res.data[0].img;
  24052. })
  24053. .catch((err) => {
  24054. console.error(err);
  24055. });
  24056. },
  24057. addImgDraw(base64) {
  24058. let file = { name: "批注图.png" };
  24059. let img = this.dataUrlToFile(base64, file);
  24060. this.beforeUpload1(img, 5);
  24061. },
  24062. addImgDrawImG(url) {
  24063. // console.log(url);
  24064. let params = [
  24065. {
  24066. wid: this.commentDetail.wid,
  24067. img: url,
  24068. },
  24069. ];
  24070. this.ajax
  24071. .post(this.$store.state.api + "updateCourseWorks", params)
  24072. .then((res) => {
  24073. this.$message({
  24074. message: "提交成功",
  24075. type: "success",
  24076. });
  24077. this.drawShow = false;
  24078. this.bg = "";
  24079. this.selectSWorks();
  24080. this.selectStudent();
  24081. })
  24082. .catch((err) => {
  24083. this.$message.error("提交失败");
  24084. console.error(err);
  24085. });
  24086. },
  24087. deletePicturePaint() {
  24088. this.$confirm("确定删除此批注吗?", "提示", {
  24089. confirmButtonText: "确定",
  24090. cancelButtonText: "取消",
  24091. type: "warning",
  24092. })
  24093. .then(() => {
  24094. let params = [
  24095. {
  24096. wid: this.commentDetail.wid,
  24097. img: "",
  24098. },
  24099. ];
  24100. this.ajax
  24101. .post(this.$store.state.api + "updateCourseWorks", params)
  24102. .then((res) => {
  24103. this.$message({
  24104. message: "删除成功",
  24105. type: "success",
  24106. });
  24107. this.selectSWorks();
  24108. this.selectStudent();
  24109. })
  24110. .catch((err) => {
  24111. this.$message.error("删除失败");
  24112. console.error(err);
  24113. });
  24114. })
  24115. .catch(() => {});
  24116. },
  24117. getAudioVideo(constraintsData) {
  24118. if (navigator.mediaDevices === undefined) {
  24119. navigator.mediaDevices = {};
  24120. }
  24121. if (navigator.mediaDevices.getUserMedia === undefined) {
  24122. navigator.mediaDevices.getUserMedia = function (constraints) {
  24123. // 首先,如果有getUserMedia的话,就获得它
  24124. var getUserMedia =
  24125. navigator.getUserMedia ||
  24126. navigator.webkitGetUserMedia ||
  24127. navigator.mozGetUserMedia ||
  24128. navigator.msGetUserMedia;
  24129. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24130. if (!getUserMedia) {
  24131. return Promise.reject({ code: 404 });
  24132. }
  24133. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24134. return new Promise(function (resolve, reject) {
  24135. getUserMedia.call(navigator, constraints, resolve, reject);
  24136. });
  24137. };
  24138. }
  24139. return navigator.mediaDevices.getUserMedia(constraintsData);
  24140. },
  24141. /**
  24142. * 开始录制
  24143. */
  24144. startRecording(callback) {
  24145. let _function = (screenStream) => {
  24146. this.addStreamStopListener(screenStream, () => {
  24147. console.log("流停止监听");
  24148. this.stopRecording();
  24149. this.$emit("streamStop", {});
  24150. // this.stopRecording();
  24151. });
  24152. var options = {
  24153. type: "video",
  24154. mimeType: "video/webm",
  24155. disableLogs: false,
  24156. getNativeBlob: false, // enable it for longer recordings
  24157. ignoreMutedMedia: false,
  24158. };
  24159. // this.video.srcObject = screenStream;
  24160. this.recorder = RecordRTC(screenStream, options);
  24161. this.recorder.startRecording();
  24162. this.recorder.screen = screenStream;
  24163. this.videoStart = true;
  24164. // callback(true);
  24165. };
  24166. this.getAudioVideo({ audio: true })
  24167. .then((res) => {
  24168. this.captureScreen(_function, true);
  24169. console.log("已点击允许,开启成功");
  24170. })
  24171. .catch((err) => {
  24172. // console.log('浏览器不支持,请更换浏览器')
  24173. // } else {
  24174. this.captureScreen(_function, false);
  24175. console.log("请检查是否存在麦克风");
  24176. });
  24177. },
  24178. /**
  24179. * 停止录制
  24180. */
  24181. stopRecording(callback) {
  24182. this.recorder.stopRecording(() => {
  24183. // this.video.src = this.video.srcObject = null;
  24184. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24185. const url = URL.createObjectURL(this.recorder.getBlob());
  24186. const a = document.createElement("a"); //this.fileName+
  24187. let videoFile = new File(
  24188. [this.recorder.getBlob()],
  24189. this.courseDetail.title + "录屏.mp4",
  24190. {
  24191. type: "video/mp4",
  24192. }
  24193. );
  24194. let downloadUrl = URL.createObjectURL(videoFile);
  24195. if(this.$refs.classRoomHelperRef){
  24196. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  24197. }
  24198. document.body.appendChild(a);
  24199. a.style.display = "none";
  24200. a.href = url;
  24201. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24202. a.click();
  24203. this.recorder.screen.stop();
  24204. this.recorder.destroy();
  24205. this.recorder = null;
  24206. this.videoStart = false;
  24207. // callback(false);
  24208. });
  24209. },
  24210. //初始化
  24211. captureScreen(callback, type) {
  24212. if (navigator.getDisplayMedia) {
  24213. //录制结束,文件下载
  24214. navigator
  24215. .getDisplayMedia({
  24216. video: true,
  24217. })
  24218. .then((screenStream) => {
  24219. if (type) {
  24220. navigator.mediaDevices
  24221. .getUserMedia({ audio: true })
  24222. .then((mic) => {
  24223. screenStream.addTrack(mic.getTracks()[0]);
  24224. callback(screenStream);
  24225. });
  24226. } else {
  24227. callback(screenStream);
  24228. }
  24229. })
  24230. .catch(function (error) {
  24231. console.log("error", error);
  24232. });
  24233. } else if (navigator.mediaDevices.getDisplayMedia) {
  24234. navigator.mediaDevices
  24235. .getDisplayMedia({
  24236. video: true,
  24237. })
  24238. .then((screenStream) => {
  24239. if (type) {
  24240. navigator.mediaDevices
  24241. .getUserMedia({ audio: true })
  24242. .then((mic) => {
  24243. screenStream.addTrack(mic.getTracks()[0]);
  24244. callback(screenStream);
  24245. });
  24246. } else {
  24247. callback(screenStream);
  24248. }
  24249. })
  24250. .catch(function (error) {
  24251. console.log("error", error);
  24252. });
  24253. } else {
  24254. var error = "getDisplayMedia API are not supported in this browser.";
  24255. console.log("error", error);
  24256. alert(error);
  24257. }
  24258. },
  24259. //流监听
  24260. addStreamStopListener(stream, callback) {
  24261. stream.addEventListener(
  24262. "ended",
  24263. function () {
  24264. callback();
  24265. callback = function () {};
  24266. },
  24267. false
  24268. );
  24269. stream.addEventListener(
  24270. "inactive",
  24271. function () {
  24272. callback();
  24273. callback = function () {};
  24274. },
  24275. false
  24276. );
  24277. stream.getTracks().forEach(function (track) {
  24278. track.addEventListener(
  24279. "ended",
  24280. function () {
  24281. callback();
  24282. callback = function () {};
  24283. },
  24284. false
  24285. );
  24286. track.addEventListener(
  24287. "inactive",
  24288. function () {
  24289. callback();
  24290. callback = function () {};
  24291. },
  24292. false
  24293. );
  24294. });
  24295. },
  24296. updateGroup() {
  24297. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24298. this.dialogVisibleGroup2 = true;
  24299. },
  24300. numberPan() {
  24301. if (
  24302. /[^\d]/.test(this.groupJson.number) ||
  24303. this.groupJson.number < 2 ||
  24304. this.groupJson.number > 10
  24305. ) {
  24306. this.$message.error("请输入2-10的数字");
  24307. this.groupJson.number = "";
  24308. }
  24309. },
  24310. updateGroupJson() {
  24311. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24312. if (
  24313. this.groupStudentUid[this.toolindex][i].length >
  24314. this.groupJson2.number
  24315. ) {
  24316. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24317. return;
  24318. }
  24319. }
  24320. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24321. this.islock = this.groupJson.islock == 1 ? true : false;
  24322. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24323. this.taskCount
  24324. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24325. let params = [
  24326. {
  24327. cid: this.id,
  24328. chapters: JSON.stringify(this.chapInfoList),
  24329. uid: this.userid,
  24330. unitIndex: this.courseType,
  24331. },
  24332. ];
  24333. this.ajax
  24334. .post(this.$store.state.api + "updateWorkNew4", params)
  24335. .then((res) => {
  24336. this.$message.success("设置成功");
  24337. this.getCourseDetail(2);
  24338. this.dialogVisibleGroup2 = false;
  24339. this.groupJson2 = {};
  24340. this.$forceUpdate();
  24341. })
  24342. .catch((err) => {
  24343. this.$message.error("网络不佳");
  24344. console.error(err);
  24345. });
  24346. },
  24347. lockChair() {
  24348. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24349. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24350. this.updateGroupJson();
  24351. },
  24352. selectGroup(index) {
  24353. this.getCourseDetail(2, index);
  24354. },
  24355. joinGroup(index) {
  24356. if (this.groupJson.islock == 2) {
  24357. this.$message.error("位置已被锁定,无法加入");
  24358. return;
  24359. }
  24360. if (
  24361. this.groupStudent[this.toolindex][index].length >
  24362. this.groupJson.number ||
  24363. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24364. ) {
  24365. this.$message.error("位置已满,无法加入");
  24366. return;
  24367. }
  24368. let params = [
  24369. {
  24370. cid: this.id,
  24371. stage: this.courseType,
  24372. task: this.taskCount,
  24373. tool: this.toolindex,
  24374. g: index,
  24375. uid: this.userid,
  24376. },
  24377. ];
  24378. this.ajax
  24379. .post(this.$store.state.api + "joinGroup", params)
  24380. .then((res) => {
  24381. this.$message.success("加入成功");
  24382. this.getCourseDetail(2);
  24383. })
  24384. .catch((err) => {
  24385. this.$message.error("网络不佳");
  24386. console.error(err);
  24387. });
  24388. },
  24389. exitGroup(id) {
  24390. if (this.groupJson.islock == 2) {
  24391. this.$message.error("位置已被锁定,无法退出");
  24392. return;
  24393. }
  24394. let params = [
  24395. {
  24396. gid: id,
  24397. },
  24398. ];
  24399. this.ajax
  24400. .post(this.$store.state.api + "exitGroup", params)
  24401. .then((res) => {
  24402. this.$message.success("退出成功");
  24403. this.getCourseDetail(2);
  24404. })
  24405. .catch((err) => {
  24406. this.$message.error("网络不佳");
  24407. console.error(err);
  24408. });
  24409. },
  24410. groupUpload(index, task, gindex) {
  24411. this.taskCount = task;
  24412. this.toolindex = index;
  24413. this.groupIndex = gindex;
  24414. this.dialogVisibleGroupWork = true;
  24415. },
  24416. updateGroupChair(user) {
  24417. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24418. el.label = index;
  24419. return index != user.group;
  24420. });
  24421. this.updateGroupUser = user;
  24422. this.dialogVisibleUpdateGroup = true;
  24423. },
  24424. updateChair() {
  24425. if (
  24426. this.groupStudent[this.toolindex][this.checkChair].length >
  24427. this.groupJson.number ||
  24428. this.groupStudent[this.toolindex][this.checkChair].length ==
  24429. this.groupJson.number
  24430. ) {
  24431. this.$message.error("位置已满,无法加入");
  24432. return;
  24433. }
  24434. let params = [
  24435. {
  24436. cid: this.id,
  24437. stage: this.courseType,
  24438. task: this.taskCount,
  24439. tool: this.toolindex,
  24440. g: this.checkChair,
  24441. uid: this.updateGroupUser.userid,
  24442. },
  24443. ];
  24444. this.ajax
  24445. .post(this.$store.state.api + "joinGroup", params)
  24446. .then((res) => {
  24447. this.$message.success("修改成功");
  24448. this.updateGroupUser = {};
  24449. this.checkChair = "";
  24450. this.updateGroupArray = {};
  24451. this.dialogVisibleUpdateGroup = false;
  24452. this.getCourseDetail(2);
  24453. })
  24454. .catch((err) => {
  24455. this.$message.error("网络不佳");
  24456. console.error(err);
  24457. });
  24458. },
  24459. deleteGroupChair(gindex) {
  24460. this.checkDeleteGroup = [];
  24461. this.deleteGroupUser = JSON.parse(
  24462. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24463. );
  24464. this.deleteGroupArray = this.groupJson.group[gindex];
  24465. this.groupIndex = gindex;
  24466. this.dialogVisibleDeleteGroup = true;
  24467. },
  24468. async deleteChair() {
  24469. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24470. const gid =
  24471. this.groupStudent[this.toolindex][this.groupIndex][
  24472. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24473. this.checkDeleteGroup[i]
  24474. )
  24475. ];
  24476. let params = [
  24477. {
  24478. gid: gid.id,
  24479. },
  24480. ];
  24481. var a = await this.deleteChairA(params);
  24482. if (i == this.checkDeleteGroup.length - 1) {
  24483. this.$message.success("退出成功");
  24484. this.dialogVisibleDeleteGroup = false;
  24485. this.deleteGroupUser = [];
  24486. this.deleteGroupArray = {};
  24487. this.groupIndex = "";
  24488. this.checkDeleteGroup = [];
  24489. this.getCourseDetail(2);
  24490. }
  24491. }
  24492. },
  24493. deleteChairA(params) {
  24494. return new Promise((resolve, reject) => {
  24495. this.ajax
  24496. .post(this.$store.state.api + "exitGroup", params)
  24497. .then((res) => {
  24498. resolve(1);
  24499. })
  24500. .catch((err) => {
  24501. this.$message.error("网络不佳");
  24502. console.error(err);
  24503. });
  24504. });
  24505. },
  24506. contract(i) {
  24507. if (this.isCloseList[i].isClose == 0) {
  24508. this.isCloseList[i].isClose = 1;
  24509. } else {
  24510. this.isCloseList[i].isClose = 0;
  24511. }
  24512. this.$forceUpdate();
  24513. },
  24514. openWordCloud(toolindex) {
  24515. this.wordCloudData = '';
  24516. let array = [];
  24517. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24518. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24519. array.push({ name: works });
  24520. }
  24521. if (this.isGroup) {
  24522. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24523. let works = this.courseGroup.group[i].works[toolindex];
  24524. for (var j = 0; j < works.length; j++) {
  24525. let answer = JSON.parse(works[j].works)[0].answer;
  24526. array.push({ name: answer });
  24527. }
  24528. }
  24529. }
  24530. let _result = ''
  24531. array.forEach(e=>{
  24532. _result +=e.name+','
  24533. })
  24534. this.wordCloudData = _result;
  24535. this.dialogVisibleWordCloud = true;
  24536. this.wordCloudKey += 1;
  24537. },
  24538. uploadWorks(i) {
  24539. this.$confirm("确定导出作业吗?", "提示", {
  24540. confirmButtonText: "确定",
  24541. cancelButtonText: "取消",
  24542. type: "warning",
  24543. })
  24544. .then(() => {
  24545. const loading = this.$loading.service({
  24546. background: "rgba(255, 255, 255, 0.7)",
  24547. target: document.body,
  24548. text: "文件加载中...",
  24549. });
  24550. const _worksStudent = this.worksStudent;
  24551. let url = [];
  24552. var counts = {};
  24553. for (var l = 0; l < _worksStudent[i].length; l++) {
  24554. var item = _worksStudent[i][l];
  24555. var name = item.sName;
  24556. if (!counts.hasOwnProperty(name)) {
  24557. counts[name] = 0;
  24558. } else {
  24559. counts[name]++;
  24560. }
  24561. if (counts[name] > 0) {
  24562. item.sName += " (" + counts[name] + ")";
  24563. }
  24564. }
  24565. for (var l = 0; l < _worksStudent[i].length; l++) {
  24566. var item = _worksStudent[i][l];
  24567. if (
  24568. item.works.indexOf(
  24569. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24570. ) !== -1 &&
  24571. item.works.indexOf("img") === -1
  24572. ) {
  24573. url.push({ name: item.sName, url: item.works });
  24574. }
  24575. }
  24576. // var toolList = [
  24577. // { name: "电子白板", tool: 1 },
  24578. // { name: "思维导图", tool: 3 },
  24579. // { name: "协同文档", tool: 6 },
  24580. // { name: "思维网格", tool: 7 },
  24581. // { name: "素材库", tool: 8 },
  24582. // { name: "学习资料", tool: 17 },
  24583. // { name: "便签", tool: 2 },
  24584. // { name: "问卷调查", tool: 4 },
  24585. // { name: "选择题", tool: 45 },
  24586. // { name: "倒计时", tool: 10 },
  24587. // { name: "问答", tool: 15 },
  24588. // { name: "课程设计", tool: 26 },
  24589. // { name: "训练服务器", tool: 18 },
  24590. // { name: "作业提交", tool: 16 },
  24591. // { name: "批量上传", tool: 50 },
  24592. // { name: "AIoT Blockly", tool: 21 },
  24593. // { name: "AI Python", tool: 23 },
  24594. // { name: "AI Blockly", tool: 24 },
  24595. // { name: "目标管理", tool: 25 },
  24596. // { name: "数学画板", tool: 31 },
  24597. // { name: "翻译", tool: 28 },
  24598. // { name: "魔盒识字", tool: 37 },
  24599. // { name: "数学画板", tool: 31 },
  24600. // { name: "24点", tool: 38 },
  24601. // { name: "GeoGebra", tool: 39 },
  24602. // { name: "源码编辑", tool: 32 },
  24603. // { name: "个人评价", tool: 40 },
  24604. // { name: "选择匹配", tool: 41 },
  24605. // { name: "汉字宫", tool: 44 },
  24606. // { name: "排序", tool: 47 },
  24607. // { name: "表格", tool: 48 },
  24608. // { name: "文档", tool: 52 },
  24609. // { name: "学生分组", tool: 49 },
  24610. // { name: "CocoPi", tool: 57 },
  24611. // { name: "模拟驾驶", tool: 58 },
  24612. // { name: "路径搜索", tool: 59 },
  24613. // { name: "深度学习", tool: 60 },
  24614. // { name: "全历史", tool: 61 },
  24615. // { name: "交互视频", tool: 62 },
  24616. // { name: "海龟编程", tool: 63 },
  24617. // { name: "挑人", tool: 65 },
  24618. // { name: "公式编辑", tool: 66 },
  24619. // { name: "分子结构", tool: 67 },
  24620. // { name: "时间轴", tool: 68 },
  24621. // ];
  24622. // var toolName = "";
  24623. // for(var w = 0;w<toolList.length;w++){
  24624. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24625. // toolName = toolList[w].name;
  24626. // }
  24627. // }
  24628. console.log(url);
  24629. this.downLoadAll(url, loading);
  24630. })
  24631. .catch(() => {});
  24632. },
  24633. downLoadAll(url, loading) {
  24634. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24635. const zip = new JSZip();
  24636. const cache = {};
  24637. const promises = [];
  24638. data.forEach((item) => {
  24639. const promise = getFile(item.url).then((data) => {
  24640. if (data.data != 1) {
  24641. // 下载文件, 并存成ArrayBuffer对象
  24642. const file_name =
  24643. item.name +
  24644. "." +
  24645. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24646. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24647. cache[file_name] = data.data;
  24648. }
  24649. });
  24650. promises.push(promise);
  24651. });
  24652. Promise.all(promises).then(() => {
  24653. zip.generateAsync({ type: "blob" }).then((content) => {
  24654. // 生成二进制流
  24655. FileSaver.saveAs(
  24656. content,
  24657. this.courseDetail.title + "-" + "作业提交工具.zip"
  24658. ); // 利用file-saver保存文件 自定义文件名
  24659. setTimeout(() => {
  24660. loading.close();
  24661. }, 2000);
  24662. });
  24663. });
  24664. },
  24665. pickStudent(stu) {
  24666. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24667. return;
  24668. }
  24669. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24670. confirmButtonText: "确定",
  24671. cancelButtonText: "取消",
  24672. type: "warning",
  24673. })
  24674. .then(() => {
  24675. let params = [
  24676. {
  24677. uid: stu.userid,
  24678. cid: this.id,
  24679. stage: this.courseType,
  24680. task: this.taskCount,
  24681. tool: this.toolindex,
  24682. },
  24683. ];
  24684. this.ajax
  24685. .post(this.$store.state.api + "updateCoursePick", params)
  24686. .then((res) => {
  24687. this.$message.success("操作成功");
  24688. this.getPick();
  24689. })
  24690. .catch((err) => {
  24691. this.$message.error("网络不佳");
  24692. console.error(err);
  24693. });
  24694. })
  24695. .catch(() => {});
  24696. },
  24697. selectUser(){
  24698. let params = {
  24699. userid: this.userid,
  24700. };
  24701. this.ajax
  24702. .get(this.$store.state.api + "selectUser", params)
  24703. .then((res) => {
  24704. this.userMes = res.data[0];
  24705. })
  24706. .catch((err) => {
  24707. console.error(err);
  24708. });
  24709. },
  24710. setEngText(i){
  24711. this.newEngIndex = i;
  24712. this.$forceUpdate();
  24713. },
  24714. addCorrect(){
  24715. this.$confirm("你确定提交批改嘛?", "提示", {
  24716. confirmButtonText: "确定",
  24717. showCancelButton: false,
  24718. closeOnClickModal: false,
  24719. type: "warning",
  24720. })
  24721. .then(() => {
  24722. let params = {
  24723. cid: this.id,
  24724. s: parseInt(this.courseType),
  24725. t: this.taskCount,
  24726. tool: this.toolindex,
  24727. wid: this.engWid,
  24728. c: this.userid,
  24729. 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) : "",
  24730. };
  24731. this.ajax
  24732. .get(this.$store.state.api + "addEngC", params)
  24733. .then((res) => {
  24734. this.$message.success("提交成功");
  24735. this.engUpdateDialogVisible = false;
  24736. })
  24737. .catch((err) => {
  24738. console.error(err);
  24739. });
  24740. })
  24741. .catch(() => {});
  24742. },
  24743. selectEngC(id,z){
  24744. let params = {
  24745. workid: id,
  24746. };
  24747. this.ajax
  24748. .get(this.$store.state.api + "selectEngC", params)
  24749. .then((res) => {
  24750. if(res.data[0].length == 0){
  24751. this.newEnglishList.engTitle = z.engTitle;
  24752. this.newEnglishList.engText = z.engText;
  24753. }else{
  24754. var a = res.data[0];
  24755. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24756. if(this.userMes[0].type == 2){
  24757. var snum = 0;
  24758. for(var i = 0;i<a.length;i++){
  24759. if(this.userMes[0].userid == a[i].correct){
  24760. this.newEnglishList = JSON.parse(a[i].cWork);
  24761. snum = 1;
  24762. }
  24763. }
  24764. if(snum == 0){
  24765. this.newEnglishList = { engTitle:"",engText:"" };
  24766. this.newEnglishList.engTitle = z.engTitle;
  24767. this.newEnglishList.engText = z.engText;
  24768. }
  24769. }else if(this.userMes[0].type == 1){
  24770. var num = 0;
  24771. for(var w= 0;w<a.length;w++){
  24772. if(this.userMes[0].userid == a[w].correct){
  24773. num = 1;
  24774. }
  24775. }
  24776. if(num == 0){
  24777. this.isNoUserid = true;
  24778. var c = JSON.parse(JSON.stringify(z));
  24779. this.oldEnglishJson1 = c;
  24780. }else{
  24781. this.isNoUserid = false;
  24782. }
  24783. var b = a.sort((item, index) => {
  24784. console.log(item)
  24785. if (item.correct === this.userMes[0].userid) {
  24786. return -1; // 将a移到前面
  24787. } else if (index.correct === this.userMes[0].userid) {
  24788. return 1; // 将b移到前面
  24789. } else {
  24790. return 0; // 保持默认顺序
  24791. }
  24792. });
  24793. for(var p = 0;p<b.length;p++){
  24794. for(var y = 0;y<ppp.length;y++){
  24795. if(b[p].id == ppp[y].id){
  24796. b[p].cWork = JSON.parse(ppp[y].cWork);
  24797. break
  24798. }
  24799. }
  24800. }
  24801. this.newEnglishList1 = b;
  24802. }
  24803. }
  24804. this.greyType = false;
  24805. setTimeout(() => {
  24806. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24807. if(this.newEnglishList1.length > 0){
  24808. if(this.isNoUserid == true){
  24809. this.engListLength = this.newEnglishList1.length + 1;
  24810. this.newEngIndex = -1;
  24811. }else{
  24812. this.engListLength = this.newEnglishList1.length;
  24813. this.newEngIndex = 0;
  24814. }
  24815. }
  24816. if(this.userMes[0].type == 2){
  24817. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24818. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24819. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24820. }else if(this.newEngIndex == -1){
  24821. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24822. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24823. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24824. }
  24825. }, 500);
  24826. this.engUpdateDialogVisible = true;
  24827. this.$forceUpdate();
  24828. })
  24829. .catch((err) => {
  24830. console.error(err);
  24831. });
  24832. },
  24833. getPick() {
  24834. let params = {
  24835. cid: this.id,
  24836. };
  24837. this.ajax
  24838. .get(this.$store.state.api + "getPick", params)
  24839. .then((res) => {
  24840. let array = [];
  24841. for (var i = 0; i < res.data[0].length; i++) {
  24842. array.push(res.data[0][i].userid);
  24843. }
  24844. this.isPickStudent = array;
  24845. if (array.indexOf(this.userid) !== -1) {
  24846. this.$confirm("你被老师选到啦!", "提示", {
  24847. confirmButtonText: "确定",
  24848. showCancelButton: false,
  24849. closeOnClickModal: false,
  24850. type: "warning",
  24851. })
  24852. .then(() => {
  24853. let pa = [
  24854. {
  24855. uid: this.userid,
  24856. cid: this.id,
  24857. },
  24858. ];
  24859. this.ajax
  24860. .post(this.$store.state.api + "deletePick", pa)
  24861. .then((res) => {
  24862. this.getPick();
  24863. })
  24864. .catch((err) => {
  24865. this.$message.error("网络不佳");
  24866. console.error(err);
  24867. });
  24868. })
  24869. .catch(() => {});
  24870. }
  24871. })
  24872. .catch((err) => {
  24873. this.$message.error("网络不佳");
  24874. console.error(err);
  24875. });
  24876. },
  24877. foldEva() {
  24878. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24879. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24880. } else {
  24881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24882. setTimeout(() => {
  24883. this.checkEva();
  24884. setTimeout(() => {
  24885. this.checkEva();
  24886. }, 500);
  24887. }, 0);
  24888. }
  24889. this.$forceUpdate();
  24890. },
  24891. panToolHeight(tool) {
  24892. var _tool = document.querySelectorAll('#'+tool)[0]
  24893. var _toolA = _tool ? _tool.offsetHeight : 0
  24894. var _toolC = 0
  24895. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24896. let boolean2 = (_toolA > _toolC) ? true : false
  24897. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24898. this.$forceUpdate();
  24899. },
  24900. async checkLink(url) {
  24901. // console.log(url)
  24902. let _url = url
  24903. try {
  24904. const response = await fetch(url);
  24905. if(!response.ok){
  24906. _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]))
  24907. }
  24908. // console.log(response.ok)
  24909. } catch (error) {
  24910. console.error('Error checking link:', error);
  24911. // console.log(false)
  24912. _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]))
  24913. }
  24914. // console.log(_url)
  24915. return _url
  24916. },
  24917. getScoreList(){
  24918. let params = {
  24919. cid: this.id,
  24920. };
  24921. this.ajax
  24922. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24923. .then((res) => {
  24924. let result = res.data;
  24925. this.scoreList.datalist = result[0];
  24926. this.scoreList.isScoreList = result[1];
  24927. })
  24928. .catch((err) => {
  24929. console.error(err);
  24930. });
  24931. },
  24932. setClassRoomHelperWidth(width){
  24933. this.classRoomHelperWidth = width
  24934. },
  24935. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24936. this.$refs.choseWorksDetailDialogRef.open({
  24937. toolType:tooc,
  24938. tType: this.tType,
  24939. toolIndex: toolIndex
  24940. });
  24941. this.changeSplitScreenBehavior({
  24942. code: 1,
  24943. form: {
  24944. toolType:tooc,
  24945. toolIndex: toolIndex,
  24946. courseType: this.courseType,
  24947. taskCount: this.taskCount,
  24948. type: 0
  24949. }
  24950. });
  24951. },
  24952. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24953. this.$refs.statisticalAnalysisRef.open({
  24954. worksStudent: this.worksStudent[toolIndex],
  24955. tType: this.tType,
  24956. toolIndex: toolIndex
  24957. });
  24958. this.changeSplitScreenBehavior({
  24959. code: 2,
  24960. form: {
  24961. toolType:4,
  24962. courseType: this.courseType,
  24963. taskCount: this.taskCount,
  24964. toolIndex: toolIndex,
  24965. type: 0
  24966. }
  24967. });
  24968. },
  24969. statisticalAnalysisRefresh(toolIndex) {
  24970. this.$refs.statisticalAnalysisRef.refreshData({
  24971. worksStudent: this.worksStudent[toolIndex],
  24972. tType: this.tType,
  24973. toolIndex: toolIndex
  24974. });
  24975. },
  24976. async splitScreenBehavior(type = 0) {
  24977. // return;
  24978. if (this.splitScreenData.loading)
  24979. return this.$message.info("操作过快,请稍等");
  24980. if (type == 0) {
  24981. //关闭分屏
  24982. this.splitScreenData.isOpen = false;
  24983. // this.splitScreenData.userId = "";
  24984. // this.splitScreenData.uid = "";
  24985. this.splitScreenData.behavior = null;
  24986. await this.updateSplitScreenData(1);
  24987. this.$message.success("已关闭分屏模式");
  24988. this.studentFreePreview(false);
  24989. this.OpenJobPreview(false);
  24990. // this.followingMode(false);
  24991. } else if (type == 1) {
  24992. //开启分屏
  24993. this.splitScreenData.isOpen = true;
  24994. this.splitScreenData.userId = this.userid;
  24995. this.splitScreenData.uid = this.splitScreenData.myUid;
  24996. this.splitScreenData.behavior = null;
  24997. let status = await this.updateSplitScreenData(0);
  24998. this.changeSplitScreenBehavior({form:{}})
  24999. if (status == 1) {
  25000. this.$message.success("已开启分屏");
  25001. this.studentFreePreview(false);
  25002. this.OpenJobPreview(true);
  25003. // this.followingMode(true);
  25004. } else {
  25005. this.splitScreenData.isOpen = false;
  25006. this.splitScreenData.userId = "";
  25007. this.splitScreenData.uid = "";
  25008. this.splitScreenData.behavior = null;
  25009. this.$message.success("分屏开启失败");
  25010. }
  25011. }
  25012. },
  25013. enterFullScreen() {
  25014. let element = document.documentElement;
  25015. if (element.requestFullscreen) {
  25016. element.requestFullscreen();
  25017. } else if (element.mozRequestFullScreen) { /* Firefox */
  25018. element.mozRequestFullScreen();
  25019. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25020. element.webkitRequestFullscreen();
  25021. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25022. element.msRequestFullscreen();
  25023. }
  25024. },
  25025. exitFullScreen() {
  25026. if (document.exitFullscreen) {
  25027. document.exitFullscreen();
  25028. } else if (document.mozCancelFullScreen) { /* Firefox */
  25029. document.mozCancelFullScreen();
  25030. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25031. document.webkitExitFullscreen();
  25032. } else if (document.msExitFullscreen) { /* IE/Edge */
  25033. document.msExitFullscreen();
  25034. }
  25035. },
  25036. confirmOpen(){
  25037. this.splitScreenData.isOpen = true;
  25038. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25039. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25040. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25041. this.confirmOpenDig = false
  25042. if (!document.fullscreenElement) {
  25043. this.enterFullScreen();
  25044. }
  25045. // if (this.timer2) {
  25046. // clearInterval(this.timer2);
  25047. // this.timer2 = null;
  25048. // }
  25049. // this.timer2 = setInterval(()=> {
  25050. // this.getSplitScreenData();//获取分屏数据
  25051. // }, 1000);
  25052. this.$message.success("分屏模式已开启");
  25053. },
  25054. getSplitScreenData() {
  25055. // return;
  25056. // if (this.tType != 1) return;
  25057. let params = {
  25058. cid: this.id
  25059. };
  25060. this.ajax
  25061. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25062. .then(async res => {
  25063. let data = res.data[0][0]["splitScreenData"];
  25064. console.log("获取了分屏数:", data);
  25065. if (data) {
  25066. data = JSON.parse(data);
  25067. if (
  25068. !this.splitScreenData.isOpen &&
  25069. data.isOpen &&
  25070. this.splitScreenData.myUid == data.uid
  25071. ) {
  25072. this.splitScreenData.isOpen = false;
  25073. this.splitScreenData.userId = "";
  25074. this.splitScreenData.uid = "";
  25075. this.splitScreenData.behavior = null;
  25076. await this.updateSplitScreenData(1);
  25077. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25078. this.confirmOpenDig = true
  25079. this.confirmOpenDigData = data
  25080. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25081. this.splitScreenData.isOpen = false;
  25082. this.splitScreenData.userId = "";
  25083. this.splitScreenData.uid = "";
  25084. this.splitScreenData.behavior = null;
  25085. this.$message.error("已结束分屏模式");
  25086. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25087. this.splitScreenData.isOpen = true;
  25088. this.splitScreenData.uid = data.uid;
  25089. this.splitScreenData.userId = data.userId;
  25090. this.splitScreenData.behavior = data.behavior;
  25091. }
  25092. this.doSplitScreenBehavior();
  25093. } else {
  25094. if (this.splitScreenData.isOpen) {
  25095. this.splitScreenData.isOpen = false;
  25096. this.splitScreenData.userId = "";
  25097. this.splitScreenData.uid = "";
  25098. this.splitScreenData.behavior = null;
  25099. this.$message.error("已结束分屏模式");
  25100. // if (this.timer2) {
  25101. // clearInterval(this.timer2);
  25102. // this.timer2 = null;
  25103. // }
  25104. // this.timer2 = setInterval(()=> {
  25105. // this.getSplitScreenData();//获取分屏数据
  25106. // }, 5000);
  25107. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25108. confirmButtonText: '确定', //确认按钮的文字
  25109. showCancelButton: false, //是否显示取消按钮
  25110. showClose: false, //是否显示关闭按钮
  25111. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25112. type: "warning",
  25113. })
  25114. .then(() => {
  25115. if (document.fullscreenElement) {
  25116. this.exitFullScreen();
  25117. }
  25118. })
  25119. .catch(() => {});
  25120. }
  25121. }
  25122. })
  25123. .catch(e => {
  25124. console.log("获取分屏数出错:", e);
  25125. });
  25126. },
  25127. doSplitScreenBehavior() {
  25128. if (
  25129. this.splitScreenData.isOpen &&
  25130. this.splitScreenData.uid != this.splitScreenData.myUid
  25131. ) {
  25132. let behavior = this.splitScreenData.behavior;
  25133. if (behavior) {
  25134. if (behavior.code === 99) {
  25135. //初始化
  25136. this.fullDialogVisible = false;
  25137. if(this.$refs.choseWorksDetailDialogRef.show){
  25138. this.$refs.choseWorksDetailDialogRef.close();
  25139. }
  25140. if(this.$refs.statisticalAnalysisRef.show){
  25141. this.$refs.statisticalAnalysisRef.close();
  25142. }
  25143. }
  25144. if (behavior.code === 0) {
  25145. //开启内容列表弹窗
  25146. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25147. }else{
  25148. this.fullDialogVisible = false;
  25149. }
  25150. if (behavior.code === 1) {
  25151. //关于选择题的作业详细的操作
  25152. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25153. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25154. this.courseType = behavior.form.courseType;
  25155. this.taskCount = behavior.form.taskCount;
  25156. }
  25157. this.$nextTick(() => {
  25158. if (this.$refs.choseWorksDetailDialogRef.show) {
  25159. //已经打开了
  25160. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25161. } else {
  25162. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25163. }
  25164. });
  25165. }else{
  25166. this.$refs.choseWorksDetailDialogRef.close()
  25167. }
  25168. if(behavior.code === 2){
  25169. if(this.$refs.statisticalAnalysisRef.show){
  25170. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25171. }else{
  25172. this.$refs.statisticalAnalysisRef.open({
  25173. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25174. tType: this.tType,
  25175. toolIndex: behavior.form.toolIndex
  25176. });
  25177. }
  25178. }else{
  25179. this.$refs.statisticalAnalysisRef.close();
  25180. }
  25181. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25182. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25183. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25184. if (behavior.form.courseType != this.courseType ||
  25185. behavior.form.taskCount != this.taskCount ||
  25186. behavior.form.toolType != this.toolindex
  25187. ) {
  25188. var a = document.scrollingElement;
  25189. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25190. if (target) {
  25191. target.scrollIntoView(true);
  25192. setTimeout(()=>{
  25193. let scrollBody = document.querySelector('.body_student').parentElement
  25194. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25195. }, 0);
  25196. // setTimeout(() => {
  25197. // a.scrollTop = 0
  25198. // }, 0);
  25199. }
  25200. }
  25201. if(this.courseType !=behavior.form.courseType){
  25202. this.courseType = behavior.form.courseType;
  25203. }
  25204. if(this.taskCount !=behavior.form.taskCount){
  25205. this.taskCount = behavior.form.taskCount;
  25206. }
  25207. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25208. this.toolindex = behavior.form.toolType;
  25209. }
  25210. // if(behavior.form.navId){
  25211. // this.navId = behavior.form.navId
  25212. // }
  25213. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25214. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25215. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25216. this.getCourseDetail()
  25217. }
  25218. this.setContent2(false)
  25219. }
  25220. } else {
  25221. }
  25222. }
  25223. },
  25224. updateSplitScreenData(empty = 0) {
  25225. return new Promise(resolve => {
  25226. if(this.userid!==this.courseDetail.userid){
  25227. if(!this.courseDetail.userid){
  25228. return setTimeout(()=>{
  25229. this.updateSplitScreenData(empty)
  25230. },2000)
  25231. }
  25232. return;
  25233. };
  25234. if (
  25235. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25236. this.splitScreenData.userId == this.userid
  25237. ) {
  25238. this.splitScreenData.loading = true;
  25239. let params = [
  25240. {
  25241. cid: this.id,
  25242. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25243. }
  25244. ];
  25245. this.ajax
  25246. .post(
  25247. this.$store.state.api + "update_courseSplitScreenData",
  25248. params
  25249. )
  25250. .then(res => {
  25251. this.splitScreenData.loading = false;
  25252. if (res.data == 1) {
  25253. resolve(1);
  25254. console.log("修改分屏数据成功");
  25255. }
  25256. })
  25257. .catch(e => {
  25258. this.splitScreenData.loading = false;
  25259. console.log("修改分屏数据失败", e);
  25260. resoleve(0);
  25261. });
  25262. } else if (empty == 2 && this.tType == 1) {
  25263. let params = [
  25264. {
  25265. cid: this.id,
  25266. nData: ""
  25267. }
  25268. ];
  25269. return this.ajax
  25270. .post(
  25271. this.$store.state.api + "update_courseSplitScreenData",
  25272. params
  25273. )
  25274. .then(_ => resolve(1))
  25275. .catch(_ => resolve(0));
  25276. } else {
  25277. return resolve(0);
  25278. }
  25279. });
  25280. },
  25281. changeSplitScreenBehavior(newValue) {
  25282. if (
  25283. this.splitScreenData.isOpen &&
  25284. this.splitScreenData.uid == this.splitScreenData.myUid
  25285. ) {
  25286. let _behavior = null;
  25287. if(!newValue){
  25288. _behavior = {}
  25289. }else{
  25290. _behavior = newValue
  25291. }
  25292. if(_behavior.form){
  25293. _behavior.form.taskCount = this.taskCount;
  25294. _behavior.form.courseType = this.courseType
  25295. }else{
  25296. _behavior.form = {
  25297. taskCount:this.taskCount,
  25298. courseType:this.courseType
  25299. }
  25300. }
  25301. this.splitScreenData.behavior = _behavior;
  25302. this.updateSplitScreenData(0);
  25303. }
  25304. },
  25305. studentFreePreview(flag) {
  25306. this.IsLookOpen = flag;
  25307. this.followingMode(flag)
  25308. this.updateLookOpen();
  25309. },
  25310. OpenJobPreview(flag) {
  25311. this.sIsOpen = flag;
  25312. this.updateSLook();
  25313. },
  25314. followingMode(flag) {
  25315. this.IsFollow = flag;
  25316. this.updateFollow();
  25317. },
  25318. StulookMode(flag) {
  25319. this.IsStulook = flag;
  25320. this.updateIsStulook();
  25321. },
  25322. },
  25323. directives: {
  25324. // 使用局部注册指令的方式
  25325. resize: {
  25326. // 指令的名称
  25327. bind(el, binding) {
  25328. // el为绑定的元素,binding为绑定给指令的对象
  25329. let width = "",
  25330. height = "";
  25331. function isReize() {
  25332. const style = document.defaultView.getComputedStyle(el);
  25333. if (width !== style.width || height !== style.height) {
  25334. binding.value(); // 关键
  25335. }
  25336. width = style.width;
  25337. height = style.height;
  25338. }
  25339. el.__vueSetInterval__ = setInterval(isReize, 300);
  25340. },
  25341. unbind(el) {
  25342. clearInterval(el.__vueSetInterval__);
  25343. },
  25344. },
  25345. autoHeight: {
  25346. update(el, binding) {
  25347. const { value } = binding
  25348. if (value && typeof value === 'number') {
  25349. el.style.height = `${value}px`
  25350. } else {
  25351. el.style.height = 'auto'
  25352. }
  25353. },
  25354. componentUpdated(el) {
  25355. el.style.height = `${el.scrollHeight + 5}px`
  25356. },
  25357. },
  25358. },
  25359. beforeDestroy() {
  25360. window.onresize = null;
  25361. clearInterval(this.timer);
  25362. clearInterval(this.timer2);
  25363. this.timer = null;
  25364. this.timer2 = null;
  25365. clearInterval(this.opertimer);
  25366. this.opertimer = null;
  25367. this.updateSplitScreenData(1);
  25368. },
  25369. computed: {
  25370. renderedFormula2() {
  25371. return function(val){
  25372. // 处理换行符和HTML实体
  25373. const normalized = val
  25374. .replace(/&amp;/g, '&')
  25375. .replace(/<br\/?>/g, '\n');
  25376. // 匹配行内公式($...$)和块级公式($$...$$)
  25377. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  25378. try {
  25379. return katex.renderToString(expr.trim(), {
  25380. displayMode: false,
  25381. throwOnError: false,
  25382. macros: {
  25383. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  25384. }
  25385. });
  25386. } catch (e) {
  25387. console.warn('KaTeX渲染失败:', e);
  25388. return `<span style="color:red">${expr}</span>`;
  25389. }
  25390. })
  25391. }
  25392. },
  25393. renderedFormula() {
  25394. return function(val){
  25395. try {
  25396. // 判断是否含有HTML标签,<tag ...>...</tag>
  25397. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  25398. if (!hasTag) {
  25399. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25400. // 纯文本,整体渲染
  25401. try {
  25402. return katex.renderToString(val.trim(), {
  25403. throwOnError: false,
  25404. strict: false,
  25405. output: "htmlAndMathml"
  25406. });
  25407. } catch (e) {
  25408. return val; // 渲染失败原样输出
  25409. }
  25410. } else {
  25411. // 有标签,对每个标签内容渲染
  25412. return val.replace(
  25413. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  25414. (match, tag, attrs, inner) => {
  25415. let html;
  25416. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25417. try {
  25418. html = katex.renderToString(inner.trim(), {
  25419. throwOnError: false,
  25420. strict: false,
  25421. output: "htmlAndMathml"
  25422. });
  25423. } catch (e) {
  25424. html = inner;
  25425. }
  25426. return `<${tag}${attrs}>${html}</${tag}>`;
  25427. }
  25428. );
  25429. }
  25430. } catch (e) {
  25431. console.error('KaTeX渲染错误:', e);
  25432. return val;
  25433. }
  25434. }
  25435. },
  25436. isAndroid() {
  25437. return /Android/i.test(navigator.userAgent);
  25438. },
  25439. getHeight(){
  25440. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25441. },
  25442. contentConvent() {
  25443. return function (c) {
  25444. return c
  25445. ? c
  25446. .replaceAll(/\r\n/g, "<br/>")
  25447. .replaceAll(/\n/g, "<br/>")
  25448. .replaceAll(/\s/g, " &nbsp")
  25449. : "";
  25450. };
  25451. },
  25452. MarkdownT() {
  25453. return function (c) {
  25454. let md = new MarkdownIt({
  25455. html: true, // 允许渲染 HTML
  25456. linkify: true, // 自动将URL链接转化为可点击链接
  25457. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  25458. });
  25459. return c
  25460. ? md.render(c) : "";
  25461. };
  25462. },
  25463. commentRight(){
  25464. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  25465. return "35px";
  25466. }
  25467. return `calc(${this.classRoomHelperWidth} + 5px)`
  25468. // if(this.$refs["classRoomHelperRef"].type==0){
  25469. // return "100px";
  25470. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25471. // return "502px"
  25472. // }else{
  25473. // return "0px"
  25474. // }
  25475. },
  25476. checkUpload() {
  25477. return function () {
  25478. var studentK = [];
  25479. if (this.plworkFile.length > 0) {
  25480. for (var z = 0; z < this.plworkFile.length; z++) {
  25481. studentK.push(this.plworkFile[z].username);
  25482. }
  25483. studentK = studentK.join(",");
  25484. }
  25485. var a = this.uploadStudentJuri.filter((el) => {
  25486. return studentK.indexOf(el.userid) == -1;
  25487. });
  25488. return a;
  25489. };
  25490. },
  25491. getSName() {
  25492. return function (name) {
  25493. var check = name;
  25494. this.uploadStudentJuri.forEach((el) => {
  25495. if (el.userid == check) {
  25496. check = el.name ? el.name : el.username;
  25497. }
  25498. });
  25499. return check;
  25500. };
  25501. },
  25502. getImgList() {
  25503. return function (val) {
  25504. let srcList = []; // 定义一个数组用来接收后面的img地址
  25505. val.replace(
  25506. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25507. function (match, capture) {
  25508. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25509. srcList.push(capture);
  25510. }
  25511. );
  25512. return srcList;
  25513. };
  25514. },
  25515. retrnToolHeight(){
  25516. return function (tool) {
  25517. var _tool = document.querySelectorAll('#'+tool)[0]
  25518. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25519. };
  25520. },
  25521. Correct() {
  25522. return function (c,d) {
  25523. let w = "";
  25524. let a = this.correctWord;
  25525. for(var k = 0;k<a.length;k++){
  25526. //diffWordsWithSpace
  25527. if(a.length > 1){
  25528. if(a[k].added == true){
  25529. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25530. }else if(a[k].removed == true){
  25531. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25532. }else{
  25533. w += '<span>' + a[k].value + '</span>';
  25534. }
  25535. }else{
  25536. w = c
  25537. }
  25538. console.log("👇👇!+++==")
  25539. console.log(w)
  25540. //diffChars方法
  25541. // if(w == ""){
  25542. // if(a.length > 1){
  25543. // if(a[k].added == true){
  25544. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25545. // }else if(a[k].removed == true){
  25546. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25547. // }
  25548. // }else{
  25549. // w = c
  25550. // }
  25551. // }else{
  25552. // if(k == a.length - 1){
  25553. // if(a[k].added == true){
  25554. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25555. // }else if(a[k].removed == true){
  25556. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25557. // }
  25558. // }else{
  25559. // if(a[k].added == true){
  25560. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25561. // }else if(a[k].removed == true){
  25562. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25563. // }
  25564. // }
  25565. // }
  25566. }
  25567. c = w;
  25568. return c;
  25569. };
  25570. },
  25571. },
  25572. mounted() {
  25573. document.body.addEventListener("click", (e) => {
  25574. if (this.isUpdateToolDetail1) {
  25575. this.updateToolDetail(this.toolDetailIndex);
  25576. }
  25577. });
  25578. try {
  25579. if (this.screenType == 2) {
  25580. window.topU.postMessage({ allScreen: 4 }, "*");
  25581. } else if (this.screenType == 3) {
  25582. window.topU.postMessage({ allScreen: 5 }, "*");
  25583. } else if (this.screenType == 1) {
  25584. window.topU.postMessage({ allScreen: 6 }, "*");
  25585. }
  25586. } catch (error) {
  25587. console.log(error)
  25588. }
  25589. this.setOperationTime();
  25590. this.selectEva();
  25591. this.getCourseDetail(10);
  25592. this.selectCount();
  25593. this.getHomeWork();
  25594. this.selectUser();
  25595. this.getAIJ();
  25596. this.contentDialog = false;
  25597. this.setContent2(true);
  25598. if (this.tType == 4) {
  25599. this.pzDialog = true;
  25600. this.selectPz();
  25601. }
  25602. // 获取评分列表
  25603. this.getScoreList()
  25604. this.updateSplitScreenData(2);
  25605. this.splitScreenData.myUid = uuidv4();
  25606. document.scrollingElement.scrollTop = 0;
  25607. window.addEventListener("resize", () => {
  25608. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25609. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25610. if (this.showType == 2 || this.showType == 3) {
  25611. document.getElementsByClassName("navBox")[0].style.height =
  25612. a - 40 + 0+ "px";
  25613. } else {
  25614. document.getElementsByClassName("navBox")[0].style.height =
  25615. a - 40 + "px";
  25616. }
  25617. });
  25618. let _this = this;
  25619. setTimeout(() => {
  25620. // _this.vedioTime = [];
  25621. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25622. // _this.vedioTime[i] = document.getElementsByClassName(
  25623. // "vjs-duration-display"
  25624. // )[i].textContent;
  25625. // }
  25626. }, 1000);
  25627. },
  25628. };
  25629. </script>
  25630. <style scoped>
  25631. @media screen and (max-width: 1280px) {
  25632. /* .courseIndex > div:first-child(2) {
  25633. width: 15% !important;
  25634. } */
  25635. /* .navText {
  25636. width: 120px !important;
  25637. } */
  25638. .evaCss {
  25639. flex-direction: column !important;
  25640. align-items: center !important;
  25641. }
  25642. .elist_input {
  25643. width: 90% !important;
  25644. }
  25645. .dialog_diy1 >>> .el-dialog {
  25646. width: 100% !important;
  25647. }
  25648. .rightWidthCss {
  25649. width: 100% !important;
  25650. }
  25651. .dialog_diy3 >>> .el-dialog {
  25652. width: 100% !important;
  25653. }
  25654. .addToolCss {
  25655. right: 0 !important;
  25656. width: 100% !important;
  25657. min-width: unset !important;
  25658. }
  25659. }
  25660. .evaCssMax {
  25661. flex-direction: column !important;
  25662. align-items: center !important;
  25663. }
  25664. /* .dialog_diy >>> .el-dialog { */
  25665. /* margin-top: 10vh !important; */
  25666. /* } */
  25667. .body_student {
  25668. width: 77%;
  25669. height: 100%;
  25670. position: absolute;
  25671. left: 22%;
  25672. top: 0;
  25673. }
  25674. .student_head {
  25675. width: 100%;
  25676. margin: 20px auto 0;
  25677. padding-bottom: 20px;
  25678. display: flex;
  25679. flex-direction: column;
  25680. flex-wrap: nowrap;
  25681. align-items: flex-start;
  25682. justify-content: flex-start;
  25683. }
  25684. .pb_left {
  25685. width: 15%;
  25686. margin-right: 10px;
  25687. background: rgb(255, 255, 255);
  25688. position: fixed;
  25689. height: calc(100% - 40px);
  25690. border-radius: 20px;
  25691. padding-bottom: 15px;
  25692. box-sizing: border-box;
  25693. }
  25694. .wheel > img,
  25695. .project > img,
  25696. .star > img,
  25697. .evaluate > img,
  25698. .up_photo > img,
  25699. .chapter_add > img,
  25700. .deleteWord > img,
  25701. .question > img,
  25702. .homework > img {
  25703. width: 100%;
  25704. height: 100%;
  25705. }
  25706. .upCover > img {
  25707. width: 131px;
  25708. height: 69px;
  25709. object-fit: cover;
  25710. }
  25711. .upCover {
  25712. width: calc(100% / 3.5);
  25713. position: relative;
  25714. margin: 0 15px 10px 0;
  25715. display: flex;
  25716. flex-direction: column;
  25717. flex-wrap: nowrap;
  25718. justify-content: center;
  25719. align-content: center;
  25720. align-items: center;
  25721. height: fit-content;
  25722. }
  25723. .upCover2 {
  25724. width: 100%;
  25725. position: relative;
  25726. margin: 0 15px 10px 0;
  25727. display: flex;
  25728. flex-direction: column;
  25729. flex-wrap: nowrap;
  25730. justify-content: center;
  25731. align-content: center;
  25732. align-items: center;
  25733. }
  25734. .upCover2 > img {
  25735. width: 100%;
  25736. height: 90px;
  25737. object-fit: contain;
  25738. }
  25739. .chapter_add {
  25740. width: 120px;
  25741. position: relative;
  25742. text-align: center;
  25743. }
  25744. .isAddThings {
  25745. margin-top: 20px;
  25746. position: relative;
  25747. text-align: center;
  25748. background: #f7f8fa;
  25749. height: 90px;
  25750. width: 90px;
  25751. display: flex;
  25752. flex-direction: column;
  25753. justify-content: center;
  25754. }
  25755. .deleteWord {
  25756. width: 22px;
  25757. height: 22px;
  25758. position: absolute;
  25759. right: -5px;
  25760. top: -5px;
  25761. cursor: pointer;
  25762. }
  25763. .box_course {
  25764. /* width: 60%; */
  25765. width: calc(100% - 300px);
  25766. }
  25767. .wheel {
  25768. width: 100%;
  25769. /* height: 100%; */
  25770. height: 650px;
  25771. }
  25772. .right_box {
  25773. display: flex;
  25774. flex-direction: column;
  25775. margin-left: 30px;
  25776. justify-content: space-around;
  25777. }
  25778. .right_box_title {
  25779. font-size: 23px;
  25780. }
  25781. .people {
  25782. display: flex;
  25783. }
  25784. .student_body {
  25785. width: 100%;
  25786. margin: 0 auto;
  25787. margin-top: 10px;
  25788. padding: 0 0 20px;
  25789. }
  25790. .study_top {
  25791. margin-top: 100px;
  25792. width: 100%;
  25793. height: auto;
  25794. padding-bottom: 20px;
  25795. margin-left: 2px;
  25796. min-height: 90%;
  25797. }
  25798. .study_top .checkbox {
  25799. display: flex;
  25800. align-items: center;
  25801. padding: 15px 0 15px 30px;
  25802. flex: 0 0 auto;
  25803. font-weight: bold;
  25804. border-bottom: 1px solid #eee;
  25805. }
  25806. .study_top .check {
  25807. padding-bottom: 5px;
  25808. text-align: center;
  25809. cursor: pointer;
  25810. height: 30px;
  25811. box-sizing: border-box;
  25812. display: flex;
  25813. }
  25814. .study_top .checked {
  25815. border-bottom: 4px solid #3fc6a0;
  25816. padding-bottom: 5px;
  25817. color: #3fc6a0;
  25818. display: flex;
  25819. height: 35px;
  25820. }
  25821. .study_top .checked > div,
  25822. .study_top .check > div {
  25823. margin-right: 5px;
  25824. }
  25825. .videoTop {
  25826. display: flex;
  25827. flex-direction: row;
  25828. justify-content: space-between;
  25829. background: #fff;
  25830. align-items: center;
  25831. width: 95%;
  25832. padding: 20px;
  25833. }
  25834. .filebox {
  25835. display: flex;
  25836. flex-wrap: wrap;
  25837. flex-direction: column;
  25838. padding: 0 0 5px;
  25839. position: relative;
  25840. }
  25841. .filebox:before {
  25842. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25843. position: absolute;
  25844. top: 20px;
  25845. left: 13px;
  25846. border-left: 2px dotted #cad1dc;
  25847. height: calc(100% - 15px);
  25848. }
  25849. .toolHeng2 > div:last-child::before {
  25850. height: calc(100% - 43px);
  25851. }
  25852. .filebox .tooldetail {
  25853. width: calc(100%);
  25854. margin: 0px 12px;
  25855. padding: 12px;
  25856. line-height: 30px;
  25857. word-break: break-word;
  25858. background: #ffffff;
  25859. border-radius: 8px 8px 8px 8px;
  25860. opacity: 1;
  25861. border: 1px solid #cad1dc;
  25862. overflow:hidden;
  25863. box-sizing:border-box;
  25864. }
  25865. .file {
  25866. display: flex;
  25867. flex-direction: column;
  25868. align-items: center;
  25869. justify-content: center;
  25870. cursor: pointer;
  25871. width: 200px;
  25872. }
  25873. .file div {
  25874. margin-top: 10px;
  25875. width: 150px;
  25876. text-align: center;
  25877. overflow: hidden;
  25878. white-space: nowrap;
  25879. text-overflow: ellipsis;
  25880. }
  25881. .media {
  25882. display: flex;
  25883. flex-direction: column;
  25884. align-items: center;
  25885. justify-content: center;
  25886. margin: 0 20px 20px 0;
  25887. cursor: pointer;
  25888. margin: 12px 0 5px 15px;
  25889. overflow: hidden;
  25890. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25891. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25892. box-sizing: border-box;
  25893. }
  25894. .media img {
  25895. height: 90px;
  25896. width: 160px;
  25897. object-fit: cover;
  25898. }
  25899. .media .title {
  25900. padding: 5px;
  25901. text-align: left;
  25902. width: 100%;
  25903. box-sizing: border-box;
  25904. }
  25905. .media .btn {
  25906. width: 100%;
  25907. height: 35px;
  25908. line-height: 35px;
  25909. color: #fff;
  25910. background: #606060;
  25911. text-align: center;
  25912. overflow: hidden;
  25913. white-space: nowrap;
  25914. text-overflow: ellipsis;
  25915. }
  25916. .detail_content_top {
  25917. width: 100%;
  25918. padding: 25px 0 25px 0;
  25919. }
  25920. .detail_title {
  25921. text-align: center;
  25922. font-size: 24px;
  25923. }
  25924. .detail_time {
  25925. font-size: 13px;
  25926. padding: 15px 0 0 40px;
  25927. }
  25928. .detail_content {
  25929. line-height: 2pc;
  25930. width: 90%;
  25931. margin: 0 auto;
  25932. padding-top: 30px;
  25933. text-indent: 30px;
  25934. overflow: auto;
  25935. height: 200px;
  25936. }
  25937. .score_box >>> .el-rate {
  25938. margin-left: 10px;
  25939. }
  25940. .dialog_change >>> .el-dialog {
  25941. border-radius: 5px;
  25942. }
  25943. .dialog_change >>> .el-dialog__header {
  25944. background: #f2f2f2;
  25945. text-align: center;
  25946. }
  25947. .dialog_change >>> .el-dialog__title {
  25948. line-height: 5px;
  25949. }
  25950. .dialog_change >>> .el-dialog__body {
  25951. background: #fff;
  25952. padding: 10px 20px;
  25953. }
  25954. .score_box {
  25955. display: flex;
  25956. align-items: center;
  25957. margin-bottom: 18px;
  25958. margin-top: 20px;
  25959. }
  25960. .up_photo {
  25961. width: 120px;
  25962. cursor: pointer;
  25963. margin-top: 10px;
  25964. }
  25965. .up_photo2 {
  25966. width: 180px;
  25967. box-sizing: border-box;
  25968. min-width: 180px;
  25969. height: 180px;
  25970. max-height: 180px;
  25971. min-height: 180px;
  25972. cursor: pointer;
  25973. display: flex;
  25974. flex-direction: column;
  25975. align-items: center;
  25976. justify-content: center;
  25977. background: rgb(242, 246, 255);
  25978. /* padding: 25px; */
  25979. margin-bottom: 10px;
  25980. }
  25981. .up_photo2 img {
  25982. width: 50%;
  25983. height: auto;
  25984. }
  25985. .up_photo2 span {
  25986. color: #898989;
  25987. }
  25988. .plworkBox {
  25989. display: flex;
  25990. align-items: center;
  25991. margin-top: 10px;
  25992. flex-wrap: wrap;
  25993. }
  25994. .upload_send {
  25995. margin: 30px auto 30px;
  25996. width: 60%;
  25997. background: #3681fc;
  25998. text-align: center;
  25999. height: 35px;
  26000. line-height: 35px;
  26001. color: #fff;
  26002. border-radius: 5px;
  26003. cursor: pointer;
  26004. }
  26005. .marginT {
  26006. margin-top: 20px;
  26007. }
  26008. .cd_content_steps {
  26009. display: flex;
  26010. width: 90%;
  26011. justify-content: space-around;
  26012. border-top: 1px solid #eeeeee;
  26013. }
  26014. .cd_steps_box {
  26015. display: flex;
  26016. justify-content: center;
  26017. align-items: center;
  26018. flex-direction: column;
  26019. cursor: pointer;
  26020. }
  26021. .first {
  26022. display: flex;
  26023. align-items: center;
  26024. margin: 15px 0 20px 0;
  26025. font-size: 20px;
  26026. }
  26027. .first > div:nth-child(2) {
  26028. font-size: 16px !important;
  26029. padding-left: 10px;
  26030. line-height: 26px;
  26031. box-sizing: border-box;
  26032. }
  26033. .blue_box_one {
  26034. text-align: center;
  26035. color: #fff;
  26036. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26037. border-radius: 7px;
  26038. margin: 10px;
  26039. cursor: pointer;
  26040. width: 95%;
  26041. height: 45px;
  26042. display: flex;
  26043. flex-direction: row;
  26044. justify-content: flex-start;
  26045. align-items: center;
  26046. }
  26047. .blue_box_one > div:nth-child(1) {
  26048. line-height: 30px;
  26049. margin: 0 5px 0 10px;
  26050. width: 30%;
  26051. min-width: 70px;
  26052. border-radius: 4px;
  26053. }
  26054. .blue_box_one > div:nth-child(2) {
  26055. white-space: nowrap;
  26056. text-overflow: ellipsis;
  26057. overflow: hidden;
  26058. word-break: break-all;
  26059. width: 70%;
  26060. text-align: left;
  26061. margin-right: 10px;
  26062. max-width: calc(100% - 85px);
  26063. }
  26064. .blue_box_one > div:nth-child(2):hover {
  26065. overflow: hidden;
  26066. text-overflow: ellipsis;
  26067. white-space: nowrap;
  26068. cursor: pointer;
  26069. }
  26070. .upFile {
  26071. margin: 0 auto;
  26072. width: 120px;
  26073. background: #3681fc;
  26074. color: #fff;
  26075. height: 30px;
  26076. text-align: center;
  26077. line-height: 30px;
  26078. border-radius: 5px;
  26079. font-size: 14px;
  26080. cursor: pointer;
  26081. }
  26082. .courseTitle {
  26083. width: 85%;
  26084. margin: 10px auto 26px auto;
  26085. display: flex;
  26086. flex-direction: row;
  26087. align-items: center;
  26088. justify-content: space-between;
  26089. text-align: center;
  26090. }
  26091. .courseTitle .ctitle {
  26092. font-size: 20px;
  26093. font-weight: bold;
  26094. color: #0e1e33;
  26095. white-space: nowrap;
  26096. overflow: hidden;
  26097. text-overflow: ellipsis;
  26098. }
  26099. .inviteBox {
  26100. font-size: 14px;
  26101. /* margin-top: 5px; */
  26102. color: #00000099;
  26103. text-align: center;
  26104. }
  26105. .courseTitle >>> .el-tooltip {
  26106. width: 100%;
  26107. white-space: nowrap;
  26108. overflow: hidden;
  26109. text-overflow: ellipsis;
  26110. word-break: break-word;
  26111. }
  26112. .ml {
  26113. margin-left: 20px;
  26114. color: #5b7dba;
  26115. border-left: 3px solid #5b7dba;
  26116. padding-left: 5px;
  26117. font-weight: bold;
  26118. }
  26119. .return {
  26120. width: 2rem;
  26121. height: 2rem;
  26122. cursor: pointer;
  26123. }
  26124. .return > img {
  26125. width: 100%;
  26126. height: 100%;
  26127. }
  26128. .returnBtn {
  26129. width: 86px;
  26130. height: 36px;
  26131. background: #3681fc;
  26132. border-radius: 4px;
  26133. color: #fff;
  26134. text-align: center;
  26135. line-height: 36px;
  26136. margin-right: 20px;
  26137. cursor: pointer;
  26138. font-size: 14px;
  26139. font-weight: 400;
  26140. display: flex;
  26141. flex-direction: row;
  26142. flex-wrap: nowrap;
  26143. align-items: center;
  26144. justify-content: center;
  26145. }
  26146. .reBtnIcon,
  26147. .commentIcon,
  26148. .vedioIcon,
  26149. .vedioIcon1 {
  26150. /* width: 36px; */
  26151. height: 36px;
  26152. border-radius: 4px;
  26153. position: relative;
  26154. /* background: #e0eafb; */
  26155. background: #0061ff;
  26156. cursor: pointer;
  26157. margin-right: 12px;
  26158. display: flex;
  26159. align-items: center;
  26160. padding: 0 10px;
  26161. box-sizing: border-box;
  26162. font-size: 14px;
  26163. color: #fff;
  26164. }
  26165. .reBtnIcon::before,
  26166. .commentIcon::before,
  26167. .vedioIcon::before,
  26168. .vedioIcon1::before {
  26169. content: "";
  26170. display: block;
  26171. background-size: 100% 100%;
  26172. background-repeat: no-repeat;
  26173. width: 20px;
  26174. height: 20px;
  26175. margin-right: 5px;
  26176. /* position: absolute; */
  26177. /* top: 8px;
  26178. left: 8px; */
  26179. }
  26180. .vedioIcon1 {
  26181. background: #f63564;
  26182. }
  26183. .reBtnIcon::before {
  26184. background-image: url("../../assets/icon/newIcons/refresh.png");
  26185. }
  26186. .commentIcon::before {
  26187. background-image: url("../../assets/icon/newIcons/comment.png");
  26188. }
  26189. .vedioIcon::before {
  26190. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26191. }
  26192. .vedioIcon1::before {
  26193. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26194. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26195. }
  26196. .tool {
  26197. display: flex;
  26198. flex-direction: column;
  26199. flex-wrap: nowrap;
  26200. width: 13%;
  26201. margin: 0 30px;
  26202. align-items: center;
  26203. position: relative;
  26204. padding: 10px 25px;
  26205. cursor: pointer;
  26206. }
  26207. .whiteBIcon {
  26208. width: 150px;
  26209. }
  26210. .whiteBIcon > img {
  26211. width: 100%;
  26212. height: 100%;
  26213. }
  26214. .mask {
  26215. background-color: rgba(0, 0, 0, 0);
  26216. position: fixed;
  26217. top: 0;
  26218. left: 0;
  26219. width: 100%;
  26220. height: 100%;
  26221. z-index: 20000;
  26222. display: flex;
  26223. align-items: center;
  26224. justify-content: center;
  26225. }
  26226. .progressBox {
  26227. width: 500px;
  26228. height: 180px;
  26229. background: #fff;
  26230. border-radius: 10px;
  26231. box-shadow: 0 0 6px 1px #bfbfbf;
  26232. display: flex;
  26233. align-items: center;
  26234. justify-content: center;
  26235. flex-direction: column;
  26236. position: relative;
  26237. color: #6c6c6c;
  26238. }
  26239. .progressBox >>> .el-progress-bar__outer {
  26240. background-color: #d1dfff !important;
  26241. }
  26242. .progressBox .lbox {
  26243. height: 50px;
  26244. font-size: 19px;
  26245. display: flex;
  26246. align-items: center;
  26247. color: #747474;
  26248. }
  26249. .progressBox .lbox img {
  26250. width: 40px;
  26251. margin-right: 20px;
  26252. }
  26253. .closeCss {
  26254. position: absolute;
  26255. top: 8px;
  26256. right: 8px;
  26257. cursor: pointer;
  26258. width: 20px;
  26259. height: 20px;
  26260. }
  26261. .closeCss > img {
  26262. width: 100%;
  26263. height: 100%;
  26264. }
  26265. .uploadVedio {
  26266. display: flex;
  26267. flex-direction: column;
  26268. flex-wrap: nowrap;
  26269. justify-content: center;
  26270. align-items: center;
  26271. margin: 0 15px 10px 0;
  26272. }
  26273. .uploadVedio > img {
  26274. width: 30px;
  26275. height: 30px;
  26276. }
  26277. .uploadVedio > span {
  26278. white-space: nowrap;
  26279. overflow: hidden;
  26280. text-overflow: ellipsis;
  26281. width: 75px;
  26282. margin-top: 7px;
  26283. }
  26284. .picName {
  26285. white-space: nowrap;
  26286. overflow: hidden;
  26287. text-overflow: ellipsis;
  26288. width: 75px;
  26289. margin-top: 7px;
  26290. }
  26291. .new_top {
  26292. display: flex;
  26293. background: #fff;
  26294. flex-direction: row;
  26295. justify-content: flex-start;
  26296. align-items: center;
  26297. height: 60px;
  26298. position: fixed;
  26299. top: 20px;
  26300. left: 22%;
  26301. width: 77%;
  26302. z-index: 999;
  26303. border-radius: 12px 12px 0 0;
  26304. border-bottom: 1px solid #cad1dc;
  26305. padding: 10px 0;
  26306. }
  26307. .new_topFixed {
  26308. width: 100%;
  26309. height: 40px;
  26310. position: fixed;
  26311. top: 0px;
  26312. display: block;
  26313. background: #f2f2f2;
  26314. z-index: 998;
  26315. }
  26316. .before {
  26317. position: absolute;
  26318. background: #c3dad4;
  26319. width: 6px;
  26320. height: 100%;
  26321. }
  26322. .courseIndex {
  26323. display: flex;
  26324. flex-direction: row;
  26325. align-items: center;
  26326. width: calc(100% - 745px);
  26327. }
  26328. .courseIndex > div:nth-child(1) {
  26329. margin: 0 0 0 10px;
  26330. font-size: 20px;
  26331. min-width: 100px;
  26332. font-weight: bold;
  26333. border-left: 4px solid #3363b9;
  26334. height: 32px;
  26335. text-align: center;
  26336. line-height: 35px;
  26337. }
  26338. .courseIndex > div:nth-child(2) {
  26339. font-size: 20px;
  26340. /* width: 300px; */
  26341. max-width: calc(100% - 105px);
  26342. white-space: nowrap;
  26343. overflow: hidden;
  26344. text-overflow: ellipsis;
  26345. }
  26346. .courseIndex > div:nth-child(3) {
  26347. border-bottom: 1px solid #d7d7d7;
  26348. padding-bottom: 5px;
  26349. background: #3681fc;
  26350. width: 55px;
  26351. min-width: 55px;
  26352. border-radius: 5px;
  26353. color: #fff;
  26354. text-align: center;
  26355. height: 20px;
  26356. line-height: 26px;
  26357. font-size: 14px;
  26358. margin: 0 0 0 10px;
  26359. }
  26360. .course_text {
  26361. padding: 20px 0 0 15px;
  26362. text-indent: 30px;
  26363. width: 80%;
  26364. min-height: 20px;
  26365. }
  26366. .vedioList {
  26367. background: #f2f2f2;
  26368. border: 1px solid #ececec;
  26369. /* width: 38.8%; */
  26370. /* width: 300px; */
  26371. width: 100%;
  26372. height: 445px;
  26373. border-radius: 10px;
  26374. overflow: hidden;
  26375. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26376. }
  26377. .vedioNav {
  26378. margin: 10px 0 0 15px;
  26379. border-bottom: 1px solid #d7d7d7;
  26380. padding-bottom: 5px;
  26381. background: #3681fc;
  26382. width: 55px;
  26383. min-width: 55px;
  26384. border-radius: 5px;
  26385. color: #fff;
  26386. text-align: center;
  26387. height: 20px;
  26388. line-height: 26px;
  26389. font-size: 14px;
  26390. }
  26391. .queTop {
  26392. display: flex;
  26393. padding: 20px 0 20px 30px;
  26394. width: 100%;
  26395. flex-direction: row;
  26396. justify-content: flex-start;
  26397. align-items: center;
  26398. box-sizing: border-box;
  26399. }
  26400. .queTopTitle {
  26401. display: flex;
  26402. flex-direction: row;
  26403. flex-wrap: nowrap;
  26404. align-items: center;
  26405. font-weight: bold;
  26406. font-size: 20px;
  26407. color: rgb(14, 30, 51);
  26408. }
  26409. .queTopTitle::before {
  26410. content: "";
  26411. width: 2px;
  26412. height: 22px;
  26413. background: #3681fc;
  26414. border-radius: 3px;
  26415. display: block;
  26416. margin: 2px 6px 0 0;
  26417. }
  26418. .queTopRight {
  26419. display: flex;
  26420. flex-direction: row;
  26421. flex-wrap: nowrap;
  26422. align-items: center;
  26423. }
  26424. .queTopClose {
  26425. margin-right: 20px;
  26426. cursor: pointer;
  26427. position: relative;
  26428. display: flex;
  26429. }
  26430. .closeImg,
  26431. .openImg {
  26432. width: 25px;
  26433. height: 25px;
  26434. position: absolute;
  26435. left: -20px;
  26436. top: -1px;
  26437. }
  26438. .closeImg > img,
  26439. .openImg > img {
  26440. width: 100%;
  26441. height: 100%;
  26442. }
  26443. .question {
  26444. width: 40px;
  26445. margin-right: 10px;
  26446. margin-top: 7px;
  26447. }
  26448. .queTitle {
  26449. margin-left: 5px;
  26450. font-size: 25px;
  26451. display: flex;
  26452. align-items: center;
  26453. }
  26454. .addEditor {
  26455. width: 100px;
  26456. height: 30px;
  26457. background: #42cda6;
  26458. color: #fff;
  26459. border-radius: 5px;
  26460. text-align: center;
  26461. line-height: 30px;
  26462. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26463. cursor: pointer;
  26464. }
  26465. /* .vedioName {
  26466. cursor: pointer;
  26467. margin: 0px 0px 10px 5px;
  26468. white-space: nowrap;
  26469. overflow: hidden;
  26470. text-overflow: ellipsis;
  26471. width: 100%;
  26472. } */
  26473. .vedioTime {
  26474. width: 35px;
  26475. position: absolute;
  26476. color: #fff;
  26477. bottom: 0px;
  26478. right: 0px;
  26479. text-align: center;
  26480. background: #46411f;
  26481. height: 20px;
  26482. font-size: 14px;
  26483. line-height: 20px;
  26484. }
  26485. .homework {
  26486. width: 200px;
  26487. display: flex;
  26488. flex-direction: column;
  26489. flex-wrap: nowrap;
  26490. align-items: center;
  26491. cursor: pointer;
  26492. }
  26493. .homebox {
  26494. display: flex;
  26495. flex-wrap: wrap;
  26496. flex-direction: row;
  26497. justify-content: flex-start;
  26498. align-items: center;
  26499. padding: 15px 0;
  26500. }
  26501. .isChooseActive {
  26502. color: #3681fc !important;
  26503. font-weight: bold !important;
  26504. }
  26505. .chooseWho {
  26506. display: flex;
  26507. width: 100%;
  26508. flex-direction: row;
  26509. flex-wrap: nowrap;
  26510. justify-content: flex-start;
  26511. padding-bottom: 10px;
  26512. }
  26513. .chooseWho > div {
  26514. cursor: pointer;
  26515. padding-bottom: 10px;
  26516. margin: 0 30px 0 0;
  26517. font-weight: 400;
  26518. color: #0e1e33;
  26519. }
  26520. .addPoint > div > img {
  26521. cursor: pointer;
  26522. width: 85px;
  26523. border-radius: 15px;
  26524. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26525. }
  26526. .addPoint > div {
  26527. display: flex;
  26528. flex-direction: column;
  26529. flex-wrap: nowrap;
  26530. align-items: center;
  26531. }
  26532. .isBorder > div {
  26533. margin: 0 0 10px 0;
  26534. align-items: flex-start !important;
  26535. }
  26536. .noiframeBox {
  26537. display: flex;
  26538. flex-wrap: wrap;
  26539. }
  26540. .iframeBox iframe {
  26541. width: 100%;
  26542. height: 800px;
  26543. border: none;
  26544. margin-bottom: 20px;
  26545. border: 1px solid #ccc;
  26546. }
  26547. .upload_toolBtn {
  26548. background: #3681fc;
  26549. color: #fff;
  26550. width: 110px;
  26551. text-align: center;
  26552. height: 35px;
  26553. line-height: 35px;
  26554. font-size: 14px;
  26555. border-radius: 5px;
  26556. cursor: pointer;
  26557. position: absolute;
  26558. right: 10px;
  26559. bottom: 0;
  26560. }
  26561. .binfo_input,
  26562. .pj {
  26563. font: inherit;
  26564. color: currentColor;
  26565. width: 100%;
  26566. margin: 0;
  26567. padding: 15px 14px;
  26568. display: block;
  26569. min-width: 0;
  26570. outline: none;
  26571. box-sizing: content-box;
  26572. background: none;
  26573. -webkit-tap-highlight-color: transparent;
  26574. border: 1px solid rgba(0, 0, 0, 0.23);
  26575. border-radius: 4px;
  26576. box-sizing: border-box;
  26577. resize: none;
  26578. }
  26579. .binfo_input:focus-visible {
  26580. border: 1px solid rgba(61, 103, 188);
  26581. }
  26582. .dialog_diy >>> .el-dialog__header,
  26583. .dialog_diy1 >>> .el-dialog__header {
  26584. background: #454545 !important;
  26585. padding: 15px 20px;
  26586. }
  26587. .dialog_diy >>> .el-dialog__title,
  26588. .dialog_diy1 >>> .el-dialog__title {
  26589. color: #fff;
  26590. }
  26591. .dialog_diy >>> .el-dialog__headerbtn,
  26592. .dialog_diy1 >>> .el-dialog__headerbtn {
  26593. top: 19px;
  26594. }
  26595. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26596. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26597. color: #fff;
  26598. }
  26599. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26600. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26601. color: #fff;
  26602. }
  26603. .dialog_diy1 >>> .el-dialog__body {
  26604. padding: 0;
  26605. }
  26606. .dialog_diy >>> .el-dialog__body,
  26607. .dialog_diy >>> .el-dialog__footer,
  26608. .dialog_diy1 >>> .el-dialog__footer {
  26609. background: #fafafa;
  26610. }
  26611. .markScore_diy >>> .el-dialog {
  26612. border-radius: 10px;
  26613. }
  26614. .markScore_diy >>> .el-dialog__body {
  26615. padding: 0;
  26616. height: 621px;
  26617. min-height: calc(100% - 60px);
  26618. }
  26619. .markScore_diy >>> .el-dialog__header {
  26620. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26621. }
  26622. .markScore_diy >>> .markScore_diyTit {
  26623. width: calc(100% - 60px);
  26624. display: flex;
  26625. justify-content: space-between;
  26626. align-items: center;
  26627. }
  26628. .a_addBox {
  26629. padding: 0 0 0 15px;
  26630. }
  26631. .a_add_box {
  26632. padding: 10px;
  26633. background: #fff;
  26634. margin-bottom: 10px;
  26635. border-radius: 5px;
  26636. box-shadow: 0 0 5px 0 #d5d5d5;
  26637. }
  26638. .a_add_head {
  26639. display: flex;
  26640. align-items: flex-start;
  26641. /* justify-content: space-between; */
  26642. flex-direction: column;
  26643. /* flex-direction: row; */
  26644. margin: 10px 0 20px 0;
  26645. font-size: 18px;
  26646. width: 100%;
  26647. }
  26648. .askIndex {
  26649. background: #3681fc;
  26650. border-radius: 50%;
  26651. color: #fff;
  26652. width: 25px;
  26653. height: 25px;
  26654. min-width: 25px;
  26655. min-height: 25px;
  26656. text-align: center;
  26657. line-height: 25px;
  26658. margin-right: 5px;
  26659. }
  26660. .a_add_head .a_add_head_input {
  26661. width: 300px;
  26662. }
  26663. .a_add_head .a_add_head_div {
  26664. display: flex;
  26665. align-items: center;
  26666. justify-content: space-between;
  26667. }
  26668. .a_add_body {
  26669. display: flex;
  26670. align-items: center;
  26671. }
  26672. .a_add_input {
  26673. display: flex;
  26674. align-items: center;
  26675. flex-wrap: wrap;
  26676. width: 100%;
  26677. }
  26678. .a_add_input >>> .el-radio-group,
  26679. .a_add_input >>> .el-checkbox-group {
  26680. width: 100%;
  26681. }
  26682. .a_add_input >>> .el-radio,
  26683. .a_add_input >>> .el-checkbox {
  26684. display: flex;
  26685. flex-direction: row;
  26686. flex-wrap: nowrap;
  26687. align-items: center;
  26688. padding: 15px 0;
  26689. }
  26690. .a_add_input >>> .el-radio:not(:last-child),
  26691. .a_add_input >>> .el-checkbox:not(:last-child) {
  26692. width: 100%;
  26693. border-bottom: 1px solid #efefef;
  26694. }
  26695. .redioStyle >>> .el-radio__label {
  26696. font-size: 18px;
  26697. }
  26698. .redioStyle >>> .el-radio__label > span,
  26699. .redioStyle >>> .el-checkbox__label > span {
  26700. word-break: break-all;
  26701. white-space: normal;
  26702. }
  26703. .redioStyle >>> .el-checkbox__label {
  26704. font-size: 18px;
  26705. }
  26706. .toolHeng2 {
  26707. width: 100%;
  26708. padding-left: 15px;
  26709. box-sizing: border-box;
  26710. }
  26711. .workNav {
  26712. font-size: 20px;
  26713. font-weight: bold;
  26714. color: #0e1e33;
  26715. display: flex;
  26716. flex-direction: row;
  26717. flex-wrap: nowrap;
  26718. align-items: center;
  26719. padding: 15px 0 15px 0;
  26720. }
  26721. .workNav::before {
  26722. content: "";
  26723. width: 2px;
  26724. height: 22px;
  26725. background: #3681fc;
  26726. border-radius: 3px;
  26727. display: block;
  26728. margin: 2px 6px 0 0;
  26729. }
  26730. .toolHeng {
  26731. display: flex;
  26732. flex-direction: row;
  26733. flex-wrap: wrap;
  26734. justify-content: flex-start;
  26735. align-items: center;
  26736. width: 100%;
  26737. }
  26738. .toolHeng > div {
  26739. padding-left: 20px;
  26740. }
  26741. .isWidth {
  26742. width: 20%;
  26743. }
  26744. .textTitle {
  26745. display: flex;
  26746. flex-direction: row;
  26747. flex-wrap: nowrap;
  26748. align-items: center;
  26749. width: 95%;
  26750. }
  26751. .textTitle >>> .el-form-item__label {
  26752. font-size: 22px;
  26753. color: #918f8f;
  26754. width: 100px;
  26755. }
  26756. .textTitle >>> .el-form-item__content {
  26757. width: calc(100% - 100px);
  26758. }
  26759. .textCss >>> .el-dialog {
  26760. width: 800px !important;
  26761. height: 400px;
  26762. background: #fafafa;
  26763. }
  26764. .textCss >>> .el-dialog__body {
  26765. margin: 55px 8% 0 8%;
  26766. padding: 0 !important;
  26767. }
  26768. .textCss >>> .el-dialog__footer {
  26769. padding-top: 38px;
  26770. }
  26771. .toolsCss >>> .el-dialog__body {
  26772. padding: 20px;
  26773. }
  26774. .lineCss >>> .el-dialog__body {
  26775. display: flex;
  26776. flex-direction: row;
  26777. align-items: center;
  26778. justify-content: center;
  26779. }
  26780. .newNav {
  26781. display: flex;
  26782. flex-direction: row;
  26783. align-items: baseline;
  26784. justify-content: flex-start;
  26785. }
  26786. .navListItem {
  26787. width: calc(100% - 20px);
  26788. height: 50px;
  26789. margin: 0px auto 10px;
  26790. display: flex;
  26791. flex-direction: row;
  26792. flex-wrap: nowrap;
  26793. align-items: center;
  26794. justify-content: space-between;
  26795. background: #f0f4fa;
  26796. border-radius: 6px 6px 6px 6px;
  26797. }
  26798. .navText {
  26799. cursor: pointer;
  26800. white-space: nowrap;
  26801. overflow: hidden;
  26802. text-overflow: ellipsis;
  26803. width: 220px;
  26804. padding: 0 10px;
  26805. font-weight: 400;
  26806. color: #0e1e33;
  26807. }
  26808. .downIcon {
  26809. width: 20px;
  26810. min-width: 20px;
  26811. height: 20px;
  26812. margin-right: 15px;
  26813. cursor: pointer;
  26814. }
  26815. .downIcon > img {
  26816. width: 100%;
  26817. height: 100%;
  26818. }
  26819. .noVedio {
  26820. display: flex;
  26821. flex-direction: row;
  26822. justify-content: center;
  26823. align-content: center;
  26824. }
  26825. .noNavText {
  26826. cursor: pointer;
  26827. margin: 0px 0px 10px 5px;
  26828. width: 112px;
  26829. }
  26830. .listNoVedio {
  26831. margin: 0 0 0 30px;
  26832. width: 97%;
  26833. }
  26834. .video-player >>> .video-js {
  26835. height: 100%;
  26836. }
  26837. .hangVedioList {
  26838. width: 90% !important;
  26839. height: 150px !important;
  26840. margin: 20px 0 0 30px;
  26841. }
  26842. .hangVedio {
  26843. width: 100%;
  26844. height: 170px !important;
  26845. align-items: flex-start !important;
  26846. }
  26847. .hangHand {
  26848. height: 150px !important;
  26849. }
  26850. .twoChild {
  26851. width: 95%;
  26852. margin: 10px;
  26853. border-radius: 5px;
  26854. background: #f2f2f2;
  26855. display: flex;
  26856. flex-direction: column;
  26857. flex-wrap: nowrap;
  26858. justify-content: flex-start;
  26859. align-items: flex-start;
  26860. transition: all 0.5s;
  26861. overflow: hidden;
  26862. height: 0;
  26863. background: #e7f3ff;
  26864. }
  26865. .twoChild > div:nth-child(1) {
  26866. margin-top: 5px;
  26867. }
  26868. .navChild {
  26869. width: 100%;
  26870. cursor: pointer;
  26871. margin-bottom: 10px;
  26872. position: relative;
  26873. }
  26874. .navChild img {
  26875. position: absolute;
  26876. right: 11px;
  26877. width: 15px;
  26878. top: 50%;
  26879. transform: translateY(-50%);
  26880. }
  26881. .navActive,
  26882. .toolActive {
  26883. height: auto !important;
  26884. overflow: auto !important;
  26885. /* padding-bottom: 16px; */
  26886. }
  26887. .toolActive {
  26888. padding: 0;
  26889. }
  26890. .navTask {
  26891. display: flex;
  26892. flex-direction: row;
  26893. flex-wrap: nowrap;
  26894. align-items: center;
  26895. align-content: flex-start;
  26896. height: 40px;
  26897. justify-content: flex-start;
  26898. padding: 0 10px;
  26899. width: 100%;
  26900. box-sizing: border-box;
  26901. }
  26902. .navTaskname {
  26903. white-space: nowrap;
  26904. text-overflow: ellipsis;
  26905. overflow: hidden;
  26906. word-break: break-all;
  26907. padding-left: 5px;
  26908. }
  26909. .openTaskActive {
  26910. /* background-color: #e0eafb !important;
  26911. color: #0061ff; */
  26912. color:#fff;
  26913. background: rgb(55, 129, 252) !important;
  26914. }
  26915. .iframeName {
  26916. margin: 5px 0;
  26917. border-left: 4px solid #41c4a4;
  26918. padding-left: 4px;
  26919. }
  26920. .toolTitle {
  26921. margin: 0px 0px 20px;
  26922. font-size: 20px;
  26923. font-weight: 500;
  26924. border-left: 4px solid #41c4a4;
  26925. padding-left: 4px;
  26926. }
  26927. .cru_selectBox {
  26928. overflow: auto;
  26929. width: 95%;
  26930. margin: 17px auto 0;
  26931. height: calc(100% - 40px - 21px - 20px - 17px);
  26932. background: #fff;
  26933. border-radius: 8px;
  26934. }
  26935. .cru_selectBox::-webkit-scrollbar,
  26936. .study_top::-webkit-scrollbar,
  26937. .textContent::-webkit-scrollbar {
  26938. /*滚动条整体样式*/
  26939. width: 6px;
  26940. /*高宽分别对应横竖滚动条的尺寸*/
  26941. height: 6px;
  26942. }
  26943. /*定义滚动条轨道 内阴影+圆角*/
  26944. .cru_selectBox::-webkit-scrollbar-track,
  26945. .study_top::-webkit-scrollbar-track,
  26946. .textContent::-webkit-scrollbar {
  26947. border-radius: 10px;
  26948. background-color: #b8bdc9;
  26949. }
  26950. /*定义滑块 内阴影+圆角*/
  26951. .cru_selectBox::-webkit-scrollbar-thumb,
  26952. .study_top::-webkit-scrollbar-thumb,
  26953. .textContent::-webkit-scrollbar-thumb {
  26954. border-radius: 10px;
  26955. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26956. background-color: #2c5ab3;
  26957. }
  26958. .vedioBox {
  26959. border-radius: 0 0 20px 20px;
  26960. background: #fff;
  26961. overflow: auto;
  26962. }
  26963. .taskBox {
  26964. width: 98%;
  26965. background: #f0f4fa;
  26966. margin: 10px auto;
  26967. padding: 0 10px;
  26968. border-radius: 4px;
  26969. box-sizing: border-box;
  26970. }
  26971. .vedioTaskBox {
  26972. width: 100%;
  26973. display: flex;
  26974. flex-direction: row;
  26975. flex-wrap: nowrap;
  26976. align-items: flex-start;
  26977. position: relative;
  26978. }
  26979. .toolBox {
  26980. margin: 15px 0 0 25px;
  26981. display: flex;
  26982. position: relative;
  26983. padding: 18px 20px;
  26984. border-top-left-radius: 5px;
  26985. border-top-right-radius: 5px;
  26986. width: 90%;
  26987. }
  26988. .btnAll {
  26989. position: absolute;
  26990. right: 0;
  26991. display: flex;
  26992. flex-direction: row;
  26993. flex-wrap: nowrap;
  26994. align-items: center;
  26995. }
  26996. .btnLeft,
  26997. .btnRight {
  26998. display: flex;
  26999. flex-direction: row;
  27000. flex-wrap: nowrap;
  27001. align-items: center;
  27002. padding: 5px 0;
  27003. }
  27004. .btnLeft {
  27005. border-right: 1px solid #cad1dc;
  27006. }
  27007. .btnLeft > .custom-tooltip {
  27008. background: #3681fc;
  27009. color: #fff;
  27010. }
  27011. .last:hover {
  27012. background: #3383fa !important;
  27013. color: #fff;
  27014. border: 1px solid #3383fa !important;
  27015. }
  27016. .last,
  27017. .returnBtn1 {
  27018. width: 90px;
  27019. height: 36px;
  27020. background: #ffffff;
  27021. border-radius: 4px;
  27022. border: 1px solid #0061ff;
  27023. color: #0061ff;
  27024. cursor: pointer;
  27025. display: flex;
  27026. flex-direction: row;
  27027. flex-wrap: nowrap;
  27028. align-items: center;
  27029. justify-content: center;
  27030. margin-left: 12px;
  27031. }
  27032. .returnBtn1 {
  27033. background: #f0f4fa;
  27034. border-radius: 4px;
  27035. border: 1px solid #cad1dc;
  27036. margin: 0 12px;
  27037. }
  27038. .lastImg {
  27039. min-width: 15px;
  27040. width: 15px;
  27041. height: 15px;
  27042. display: flex;
  27043. }
  27044. .lastText {
  27045. padding: 0 5px 0 5px;
  27046. box-sizing: border-box;
  27047. font-size: 14px;
  27048. }
  27049. .lastImg > img {
  27050. width: 100%;
  27051. height: 100%;
  27052. }
  27053. /* .vedioTimeBox {
  27054. display: flex;
  27055. flex-direction: row;
  27056. align-items: center;
  27057. flex-wrap: nowrap;
  27058. position: relative;
  27059. } */
  27060. .navBox {
  27061. background: #fff;
  27062. height: calc(100% - 40px);
  27063. overflow-y: auto;
  27064. overflow-x: hidden;
  27065. }
  27066. .worksBox {
  27067. margin: 0 0 10px 25px;
  27068. border-bottom: 1px solid #eeeeee;
  27069. padding: 18px 20px;
  27070. border-radius: 4px;
  27071. width: 90%;
  27072. }
  27073. .worksBTitle {
  27074. font-size: 20px;
  27075. padding-bottom: 15px;
  27076. border-bottom: 1px solid #eeeeee;
  27077. display: flex;
  27078. align-items: center;
  27079. }
  27080. .greenBox {
  27081. width: 5px;
  27082. height: 30px;
  27083. background: #63b6fa;
  27084. margin-right: 5px;
  27085. }
  27086. .worksDetailBox {
  27087. display: flex;
  27088. width: 100%;
  27089. flex-direction: row;
  27090. flex-wrap: wrap;
  27091. align-items: flex-end;
  27092. justify-content: flex-start;
  27093. padding: 15px 5px;
  27094. box-sizing: border-box;
  27095. }
  27096. .works {
  27097. display: flex;
  27098. flex-direction: column;
  27099. flex-wrap: nowrap;
  27100. align-items: flex-start;
  27101. justify-content: flex-start;
  27102. align-content: center;
  27103. max-width: 240px;
  27104. width: calc(100% / 3 - 10px);
  27105. height: auto;
  27106. margin-right: 10px;
  27107. margin-bottom: 10px;
  27108. overflow: hidden;
  27109. height: 140px;
  27110. box-shadow: 0 0 6px 1px #dfdada;
  27111. border-radius: 15px;
  27112. }
  27113. .workImg {
  27114. width: 100%;
  27115. /* height: calc(100% - 40px); */
  27116. height: 105px;
  27117. position: relative;
  27118. }
  27119. .workImg > img {
  27120. width: 100%;
  27121. height: 100%;
  27122. object-fit: contain;
  27123. cursor: pointer;
  27124. }
  27125. .worksName {
  27126. height: 40px;
  27127. line-height: 40px;
  27128. display: flex;
  27129. width: 100%;
  27130. flex-direction: row;
  27131. flex-wrap: nowrap;
  27132. justify-content: space-between;
  27133. align-items: center;
  27134. margin: 0 0 0 10px;
  27135. }
  27136. .worksName > div:nth-child(1) {
  27137. width: 110px;
  27138. white-space: nowrap;
  27139. overflow: hidden;
  27140. text-overflow: ellipsis;
  27141. }
  27142. .worksName > div:nth-child(2) {
  27143. color: #b7b4b5;
  27144. }
  27145. .noWorksS {
  27146. padding: 15px 0;
  27147. display: flex;
  27148. flex-direction: row;
  27149. flex-wrap: wrap;
  27150. align-items: center;
  27151. justify-content: flex-start;
  27152. }
  27153. .noWorksName,
  27154. .isWorksName,
  27155. .isWorksName2 {
  27156. background: #ddebf8;
  27157. color: #000;
  27158. width: 90px;
  27159. height: 25px;
  27160. text-align: center;
  27161. line-height: 25px;
  27162. border-radius: 4px;
  27163. margin: 10px 15px 10px 0;
  27164. white-space: nowrap;
  27165. overflow: hidden;
  27166. padding: 5px;
  27167. text-overflow: ellipsis;
  27168. cursor: pointer;
  27169. border: 1px solid #ddebf8;
  27170. }
  27171. .noWorksName {
  27172. background: #fff;
  27173. color: #0061ff;
  27174. border: 1px solid #0061ff;
  27175. }
  27176. .noWorksName > span{
  27177. max-width: 100%;
  27178. display: block;
  27179. overflow: hidden;
  27180. text-overflow: ellipsis;
  27181. white-space: nowrap;
  27182. }
  27183. .isWorksName2 {
  27184. width: 100px;
  27185. height: 40px;
  27186. line-height: 40px;
  27187. position: relative;
  27188. background: #dae6f9;
  27189. }
  27190. .isWorksName {
  27191. background: #e7ebf1 !important;
  27192. width: 100px;
  27193. height: 40px;
  27194. line-height: 40px;
  27195. position: relative;
  27196. color: #acb4bf;
  27197. border: 1px solid #cad1dc !important;
  27198. }
  27199. .isSelectName,
  27200. .noWorksName:hover {
  27201. background: #3383fa !important;
  27202. color: #fff !important;
  27203. border: 1px solid #3383fa !important;
  27204. }
  27205. .title {
  27206. background: #1e5cc9;
  27207. /* width: 98%; */
  27208. height: 45px;
  27209. color: #fff;
  27210. line-height: 45px;
  27211. padding-left: 20px;
  27212. box-sizing: border-box;
  27213. }
  27214. .textBox {
  27215. font-size: 20px;
  27216. width: 90%;
  27217. display: flex;
  27218. flex-direction: column;
  27219. align-items: center;
  27220. margin: 20px auto 0;
  27221. max-height: calc(100% - 75px);
  27222. overflow: auto;
  27223. }
  27224. .textContent {
  27225. font-size: 18px;
  27226. width: 95%;
  27227. max-width: 95%;
  27228. }
  27229. .answerBg {
  27230. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27231. background-size: 100% 100%;
  27232. width: 100%;
  27233. height: 100%;
  27234. color: #fff;
  27235. text-align: center;
  27236. display: flex;
  27237. flex-direction: column;
  27238. flex-wrap: nowrap;
  27239. align-items: center;
  27240. position: relative;
  27241. justify-content: center;
  27242. }
  27243. /* .answerBg > div:nth-child(1) { */
  27244. /* font-size: 22px;
  27245. padding: 25px 0 10px; */
  27246. /* } */
  27247. .answerContent {
  27248. width: 215px;
  27249. max-height: 60px;
  27250. word-break: break-all;
  27251. text-align: center;
  27252. /* white-space: nowrap; */
  27253. overflow: hidden;
  27254. text-overflow: ellipsis;
  27255. /* padding: 23px 0 0; */
  27256. -webkit-line-clamp: 3;
  27257. -webkit-box-orient: vertical;
  27258. display: -webkit-box;
  27259. font-size: 15px;
  27260. cursor: pointer;
  27261. }
  27262. .elist_input_box {
  27263. display: flex;
  27264. align-items: flex-start;
  27265. flex-wrap: nowrap;
  27266. padding: 10px 0 15px 30px;
  27267. flex-direction: column;
  27268. }
  27269. .elist_input {
  27270. /* width: 40%; */
  27271. width: 45%;
  27272. margin: 20px;
  27273. }
  27274. .elist_input .elist_input_box input {
  27275. font: inherit;
  27276. color: currentColor;
  27277. width: 200px;
  27278. padding: 8px 14px;
  27279. display: block;
  27280. min-width: 0;
  27281. outline: none;
  27282. border: 1px solid rgba(0, 0, 0, 0.23);
  27283. border-radius: 4px;
  27284. box-sizing: border-box;
  27285. background: #fff;
  27286. margin: 0 20px 0 0;
  27287. }
  27288. .elist_input .elist_input_box span {
  27289. height: 36px;
  27290. line-height: 36px;
  27291. color: rgb(82, 82, 82);
  27292. }
  27293. .elist_input .elist_input_box .remove {
  27294. height: 20px;
  27295. width: 20px;
  27296. background-size: 100% 100%;
  27297. background-position: unset;
  27298. margin-left: 5px;
  27299. }
  27300. .elist_input_box >>> .el-rate {
  27301. display: flex;
  27302. height: 36px;
  27303. align-items: center;
  27304. }
  27305. .elist_input_box .elist_inptu_text {
  27306. min-height: 50px;
  27307. /* width: 500px;
  27308. max-height: 150px; */
  27309. width: 100%;
  27310. line-height: 50px;
  27311. color: rgb(82, 82, 82);
  27312. overflow: auto;
  27313. text-indent: 5px;
  27314. background: #f7f6f9;
  27315. border-radius: 10px;
  27316. }
  27317. .elist_input_box .elist_inptu_text input {
  27318. width: 500px;
  27319. }
  27320. .elist_input_box >>> .el-rate__icon {
  27321. font-size: 24px;
  27322. }
  27323. .isClick {
  27324. background: #4d9def;
  27325. }
  27326. .bzBox {
  27327. display: flex;
  27328. flex-direction: row;
  27329. align-items: center;
  27330. }
  27331. .bzBox .yCss {
  27332. width: 7px;
  27333. height: 7px;
  27334. background: #fff;
  27335. margin: 0 16px 0 6px;
  27336. border-radius: 50%;
  27337. border: 5px solid #3681fc;
  27338. z-index: 99;
  27339. }
  27340. .bzBox > div:nth-child(2) {
  27341. font-size: 18px;
  27342. font-weight: bold;
  27343. color: #0e1e33;
  27344. }
  27345. .navTitile {
  27346. padding: 0 0px 0 15px;
  27347. font-size: 16px;
  27348. font-weight: bold;
  27349. color: #0e1e33;
  27350. height: 40px;
  27351. line-height: 40px;
  27352. }
  27353. .isTypeOne {
  27354. width: 240px;
  27355. height: 170px;
  27356. /* border: 1px solid #f8f8f8; */
  27357. border-radius: 10px;
  27358. box-shadow: 0 0 6px 1px #dfdada;
  27359. }
  27360. .e_add_top {
  27361. display: flex;
  27362. justify-content: space-between;
  27363. padding: 10px 20px;
  27364. border-radius: 3px;
  27365. background: #fff;
  27366. }
  27367. .e_add_title2 {
  27368. display: flex;
  27369. align-items: center;
  27370. }
  27371. .e_add_title2 span {
  27372. width: 40px;
  27373. }
  27374. .e_add_title {
  27375. display: flex;
  27376. align-items: center;
  27377. color: #b8b8b8;
  27378. font-size: 18px;
  27379. position: relative;
  27380. height: 40px;
  27381. }
  27382. .e_add_title span {
  27383. margin-right: 10px;
  27384. }
  27385. .e_add_title .el_input {
  27386. width: 300px;
  27387. }
  27388. .e_add_title >>> .el-input__inner {
  27389. width: 400px;
  27390. }
  27391. /* .e_add_btn {
  27392. } */
  27393. .e_add_content {
  27394. display: flex;
  27395. width: 100%;
  27396. max-width: 650px;
  27397. height: 550px;
  27398. }
  27399. .e_add_list {
  27400. background: #fff;
  27401. height: 500px;
  27402. width: 210px;
  27403. position: relative;
  27404. margin: 15px 5px 0 0;
  27405. flex-shrink: 0;
  27406. display: flex;
  27407. flex-direction: column;
  27408. }
  27409. .e_add_list_title {
  27410. font-size: 20px;
  27411. width: 100%;
  27412. box-sizing: border-box;
  27413. padding: 15px 40px;
  27414. text-align: center;
  27415. border-bottom: 1px solid #eaeaea;
  27416. position: relative;
  27417. display: flex;
  27418. align-items: center;
  27419. justify-content: center;
  27420. height: 57px;
  27421. background: #f6f6f6;
  27422. }
  27423. .e_add_list_title span {
  27424. overflow: hidden;
  27425. white-space: nowrap;
  27426. text-overflow: ellipsis;
  27427. }
  27428. .e_add_list_title img {
  27429. position: absolute;
  27430. right: 15px;
  27431. width: 25px;
  27432. cursor: pointer;
  27433. top: 50%;
  27434. transform: translateY(-50%);
  27435. }
  27436. .e_add_list_body {
  27437. height: calc(100% - 187px);
  27438. overflow: auto;
  27439. }
  27440. .e_add_list_child {
  27441. width: 100%;
  27442. display: flex;
  27443. align-items: center;
  27444. justify-content: center;
  27445. position: relative;
  27446. box-sizing: border-box;
  27447. padding: 15px 40px;
  27448. text-align: center;
  27449. }
  27450. .e_add_list_child span {
  27451. overflow: hidden;
  27452. white-space: nowrap;
  27453. text-overflow: ellipsis;
  27454. cursor: pointer;
  27455. }
  27456. .e_add_list_child img {
  27457. position: absolute;
  27458. right: 10px;
  27459. width: 21px;
  27460. cursor: pointer;
  27461. top: 50%;
  27462. transform: translateY(-50%);
  27463. }
  27464. .e_add_list_child + .e_add_list_child {
  27465. border-top: 1px solid #eaeaea;
  27466. }
  27467. .e_add_list_child .active {
  27468. color: #409eff;
  27469. }
  27470. .e_add_list_btn {
  27471. position: absolute;
  27472. bottom: 0;
  27473. height: 50px;
  27474. background: rgb(120, 120, 254);
  27475. width: 100%;
  27476. color: #fff;
  27477. font-size: 16px;
  27478. text-align: center;
  27479. line-height: 50px;
  27480. cursor: pointer;
  27481. }
  27482. .e_add_list_detail {
  27483. position: absolute;
  27484. bottom: 0;
  27485. height: 130px;
  27486. background: rgb(120, 120, 254);
  27487. width: 100%;
  27488. color: #fff;
  27489. font-size: 16px;
  27490. display: flex;
  27491. align-items: center;
  27492. justify-content: center;
  27493. }
  27494. .e_add_list_detail textarea {
  27495. height: 90%;
  27496. width: 95%;
  27497. border: none;
  27498. resize: none;
  27499. outline: none;
  27500. padding: 5px;
  27501. box-sizing: border-box;
  27502. }
  27503. .e_add_list_pbox {
  27504. width: 100%;
  27505. max-width: 650px;
  27506. /* height: 600px; */
  27507. }
  27508. .e_add_list_pbox_title {
  27509. height: 50px;
  27510. background: #fff;
  27511. display: flex;
  27512. align-items: center;
  27513. width: 100%;
  27514. box-sizing: border-box;
  27515. padding: 0 20px;
  27516. }
  27517. .type_title {
  27518. font-size: 18px;
  27519. font-weight: 700;
  27520. }
  27521. .type_content {
  27522. font-size: 16px;
  27523. /* margin-left: 30px; */
  27524. }
  27525. .type_content span + span {
  27526. margin-left: 20px;
  27527. }
  27528. .type_content span {
  27529. cursor: pointer;
  27530. padding-bottom: 5px;
  27531. box-sizing: border-box;
  27532. }
  27533. .type_content .active {
  27534. color: #409eff;
  27535. border-bottom: 2px solid #409eff;
  27536. }
  27537. .e_add_list_pbox_content {
  27538. height: calc(100% - 50px);
  27539. display: flex;
  27540. align-items: center;
  27541. width: 100%;
  27542. background: #fff;
  27543. }
  27544. .evaCss {
  27545. display: flex;
  27546. flex-direction: row;
  27547. flex-wrap: nowrap;
  27548. align-items: flex-start;
  27549. padding: 0 0 20px;
  27550. }
  27551. .cru_line {
  27552. position: absolute;
  27553. bottom: 0px;
  27554. transition: all 0.5s;
  27555. left: 0px;
  27556. width: 125px;
  27557. margin-left: -25px;
  27558. }
  27559. .isNoMessage {
  27560. width: 20%;
  27561. margin: 25% auto 0;
  27562. }
  27563. .isNoMessage > img {
  27564. width: 100%;
  27565. height: 100%;
  27566. }
  27567. .fullStyle >>> .el-dialog__body {
  27568. height: 100% !important;
  27569. }
  27570. .fullStyle >>> .el-dialog,
  27571. .fullStyle {
  27572. width: 100% !important;
  27573. max-width: 100% !important;
  27574. height: 100% !important;
  27575. margin: 0 !important;
  27576. }
  27577. .full_diy >>> .el-dialog {
  27578. margin: 0 !important;
  27579. height: 100%;
  27580. padding: 4px;
  27581. }
  27582. .full_diy >>> .el-dialog__body {
  27583. height: calc(100% - 100px);
  27584. }
  27585. .full_diy2 >>> .el-dialog__body {
  27586. height: calc(100% - 50px);
  27587. padding: 0;
  27588. }
  27589. .switchCss {
  27590. /* width: 100%; */
  27591. display: flex;
  27592. flex-direction: row;
  27593. flex-wrap: nowrap;
  27594. align-items: center;
  27595. /* justify-content: center; */
  27596. }
  27597. .isClickNav {
  27598. /* color: #499eef; */
  27599. color: #000;
  27600. }
  27601. .commentImg {
  27602. width: 25px;
  27603. height: 25px;
  27604. cursor: pointer;
  27605. }
  27606. .commentImg > img {
  27607. width: 100%;
  27608. height: 100%;
  27609. }
  27610. .comment {
  27611. background: #f9f9f9;
  27612. border-radius: 0 0 4px 4px;
  27613. display: flex;
  27614. flex-direction: row;
  27615. flex-wrap: nowrap;
  27616. align-items: center;
  27617. justify-content: flex-end;
  27618. height: 35px;
  27619. }
  27620. .commentList {
  27621. display: flex;
  27622. flex-direction: row;
  27623. flex-wrap: nowrap;
  27624. align-items: center;
  27625. justify-content: center;
  27626. align-content: center;
  27627. /* margin-left: 15px; */
  27628. /* margin-left: 8px; */
  27629. }
  27630. .scoreImg {
  27631. width: 17px;
  27632. height: 17px;
  27633. }
  27634. .studentDetail {
  27635. display: flex;
  27636. flex-direction: row;
  27637. flex-wrap: nowrap;
  27638. /* align-items: center; */
  27639. align-items: flex-start;
  27640. }
  27641. .tx {
  27642. width: 50px;
  27643. }
  27644. .tx > img {
  27645. width: 100%;
  27646. height: 100%;
  27647. }
  27648. .nameAndTime {
  27649. display: flex;
  27650. flex-direction: column;
  27651. flex-wrap: nowrap;
  27652. align-items: flex-start;
  27653. margin-left: 10px;
  27654. }
  27655. .worksAnswer {
  27656. color: #4078dd;
  27657. margin: 10px 0;
  27658. font-size: 16px;
  27659. position: relative;
  27660. }
  27661. .worksAnswer > img {
  27662. width: 500px;
  27663. height: 300px;
  27664. object-fit: contain;
  27665. margin: 0 auto;
  27666. display: block;
  27667. }
  27668. .commentTop {
  27669. border-bottom: 1px solid #eaeaea;
  27670. padding-bottom: 10px;
  27671. }
  27672. .commentBox {
  27673. padding-top: 15px;
  27674. }
  27675. .pl {
  27676. font-size: 18px;
  27677. }
  27678. .plPerson {
  27679. width: 100%;
  27680. }
  27681. .plName {
  27682. display: flex;
  27683. flex-direction: row;
  27684. flex-wrap: nowrap;
  27685. align-items: baseline;
  27686. color: #78787a;
  27687. width: 100%;
  27688. }
  27689. .deleteComment {
  27690. cursor: pointer;
  27691. margin-left: auto;
  27692. color: #237ade;
  27693. }
  27694. .plContent {
  27695. margin-top: 5px;
  27696. }
  27697. .evalCss {
  27698. background: #fff;
  27699. font-size: 18px;
  27700. }
  27701. .nav {
  27702. color: #9d9d9d;
  27703. padding: 5px 0 15px 20px;
  27704. }
  27705. .middleBox {
  27706. padding: 5px 0 15px 20px;
  27707. }
  27708. .pfBox {
  27709. padding-bottom: 30px;
  27710. }
  27711. .nameAndrate {
  27712. display: flex;
  27713. flex-direction: row;
  27714. flex-wrap: nowrap;
  27715. align-items: center;
  27716. padding-bottom: 10px;
  27717. height: 30px;
  27718. line-height: 30px;
  27719. }
  27720. .nameAndrate > div {
  27721. margin-left: 10px;
  27722. color: #000;
  27723. height: 30px;
  27724. }
  27725. .nameAndrate >>> .el-rate__icon {
  27726. font-size: 28px !important;
  27727. }
  27728. .pfBox > div:nth-child(2) {
  27729. background: #f7f6f9;
  27730. width: 400px;
  27731. min-height: 45px;
  27732. border-radius: 10px;
  27733. font-size: 16px;
  27734. display: flex;
  27735. flex-wrap: wrap;
  27736. align-items: center;
  27737. padding: 10px 20px;
  27738. box-sizing: border-box;
  27739. color: #000;
  27740. }
  27741. .bz {
  27742. display: flex;
  27743. flex-direction: row;
  27744. flex-wrap: nowrap;
  27745. align-items: flex-start;
  27746. }
  27747. .bz > div {
  27748. padding: 0 10px;
  27749. }
  27750. .select_box2_title {
  27751. background: #fff;
  27752. border-radius: 5px;
  27753. padding: 15px 10px;
  27754. box-sizing: border-box;
  27755. margin-bottom: 10px;
  27756. display: flex;
  27757. flex-direction: row;
  27758. flex-wrap: nowrap;
  27759. align-items: center;
  27760. }
  27761. .select_box2_title > div:nth-child(2) {
  27762. margin-left: 10px;
  27763. color: #c4c4c4;
  27764. }
  27765. .select_box2_box {
  27766. display: flex;
  27767. height: 500px;
  27768. }
  27769. .select_box2_img {
  27770. width: calc(100% - 310px);
  27771. height: 100%;
  27772. overflow: auto;
  27773. background: #fff;
  27774. border-radius: 5px;
  27775. }
  27776. .select_box2_img img {
  27777. width: 100%;
  27778. }
  27779. .select_box2_answer {
  27780. background: #fff;
  27781. margin-left: 10px;
  27782. border-radius: 5px;
  27783. width: 300px;
  27784. overflow: auto;
  27785. height: 90%;
  27786. display: flex;
  27787. flex-direction: column;
  27788. align-items: flex-start;
  27789. padding-top: 10px;
  27790. box-sizing: border-box;
  27791. position: relative;
  27792. }
  27793. .select_answer_title {
  27794. padding: 0 0 15px 20px;
  27795. color: #c4c4c4;
  27796. }
  27797. .select_box2_answer_box {
  27798. margin: 0 0 10px 20px;
  27799. width: 85%;
  27800. display: flex;
  27801. flex-direction: row;
  27802. flex-wrap: nowrap;
  27803. align-items: center;
  27804. }
  27805. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27806. color: #000;
  27807. }
  27808. .upAnswerCss {
  27809. position: absolute;
  27810. bottom: 15px;
  27811. right: 15px;
  27812. }
  27813. .upAnswerCss >>> .el-button {
  27814. width: 95px;
  27815. height: 35px;
  27816. line-height: 35px;
  27817. padding: 0;
  27818. }
  27819. .rightWidthCss {
  27820. width: 60%;
  27821. display: flex;
  27822. flex-direction: row;
  27823. align-items: flex-start;
  27824. }
  27825. .rightAnswer {
  27826. display: flex;
  27827. flex-direction: row;
  27828. flex-wrap: nowrap;
  27829. align-items: center;
  27830. color: red;
  27831. margin-bottom: 31px;
  27832. }
  27833. .rightAnswerCss {
  27834. display: flex;
  27835. flex-direction: column;
  27836. flex-wrap: nowrap;
  27837. padding-top: 60px;
  27838. }
  27839. .blueCss {
  27840. color: #767de1;
  27841. margin-left: 10px;
  27842. }
  27843. .redCss {
  27844. color: red;
  27845. }
  27846. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27847. color: rgb(0 123 255) !important;
  27848. }
  27849. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27850. color: rgb(0 123 255) !important;
  27851. }
  27852. .zuoyeYulan {
  27853. padding-top: 0;
  27854. font-size: 18px;
  27855. display: flex;
  27856. align-items: flex-end;
  27857. }
  27858. .buttonA {
  27859. margin-left: 10px;
  27860. padding: 0;
  27861. }
  27862. .displayBox {
  27863. margin-bottom: 10px;
  27864. display: block;
  27865. border-bottom: 3px solid #eee;
  27866. display: flex;
  27867. align-items: center;
  27868. }
  27869. .easy_comment {
  27870. width: calc(100% - 90px);
  27871. margin-left: 10px;
  27872. display: flex;
  27873. flex-wrap: wrap;
  27874. }
  27875. .easy_comment > div {
  27876. border: 1px solid #4a4a4a;
  27877. color: #666;
  27878. border-radius: 15px;
  27879. padding: 5px 10px;
  27880. font-size: 16px;
  27881. margin-bottom: 10px;
  27882. margin-right: 5px;
  27883. cursor: pointer;
  27884. }
  27885. .easy_comment div:hover {
  27886. border: 1px solid #f7ba2a;
  27887. color: #c69217;
  27888. }
  27889. .xuan_right_box {
  27890. padding: 10px 0;
  27891. background: #f0f4fa;
  27892. margin: 0 15px 0 25px;
  27893. border-bottom-left-radius: 5px;
  27894. border-bottom-right-radius: 5px;
  27895. width: 91.5%;
  27896. }
  27897. .tool_right_box {
  27898. display: flex;
  27899. align-items: center;
  27900. }
  27901. .tool_right_box >>> .katex {
  27902. font-size: 16px;
  27903. }
  27904. .tool_right_box + .tool_right_box {
  27905. margin-top: 10px;
  27906. }
  27907. .right_box_xuan {
  27908. border-radius: 5px;
  27909. padding: 5px;
  27910. margin-left: 10px;
  27911. min-width: 85px;
  27912. background: #fff;
  27913. color: #0061ff;
  27914. border: 1px solid #0061ff;
  27915. font-size: 14px;
  27916. }
  27917. .pButton:hover {
  27918. opacity: 1 !important;
  27919. }
  27920. .pButton {
  27921. position: fixed;
  27922. text-align: center;
  27923. cursor: pointer;
  27924. z-index: 999;
  27925. right: 20px;
  27926. top: 110px;
  27927. width: 50px;
  27928. height: 50px;
  27929. display: flex;
  27930. align-items: center;
  27931. justify-content: center;
  27932. border-radius: 5px;
  27933. }
  27934. .pzClass {
  27935. width: calc(100% - 340px);
  27936. }
  27937. .newDialogCss {
  27938. /* position: fixed;
  27939. right: 5%;
  27940. top: 50%;
  27941. width: 340px;
  27942. transform: translateY(-50%);
  27943. height: 60%;
  27944. box-shadow: 0px 0 8px 0px #555555;
  27945. border-radius: 15px;
  27946. z-index: 999; */
  27947. position: fixed;
  27948. right: 20px;
  27949. top: 101px;
  27950. width: 330px;
  27951. height: calc(100% - 80px);
  27952. z-index: 999;
  27953. background: #fff;
  27954. border-top-right-radius: 0px;
  27955. border-bottom-right-radius: 0px;
  27956. overflow: hidden;
  27957. }
  27958. .newDialogCss>.scoreList{
  27959. width:100%;
  27960. height:100%;
  27961. box-sizing:border-box;
  27962. padding:10px 15px;
  27963. overflow:auto;
  27964. padding-bottom:80px;
  27965. }
  27966. .pzTop {
  27967. color: #fff;
  27968. background: #000;
  27969. display: flex;
  27970. flex-direction: row;
  27971. flex-wrap: nowrap;
  27972. align-items: center;
  27973. justify-content: space-between;
  27974. height: 40px;
  27975. border-radius: 15px 15px 0 0;
  27976. user-select: none;
  27977. }
  27978. .pzTop2 .checkbox {
  27979. display: flex;
  27980. align-items: center;
  27981. padding: 5px 10px;
  27982. flex: 0 0 auto;
  27983. font-weight: bold;
  27984. border-bottom: 1px solid #eee;
  27985. justify-content: space-between;
  27986. }
  27987. .checkbox>.cb-tabList{
  27988. display:flex;
  27989. align-items:center;
  27990. }
  27991. .cb-tabList>div{
  27992. margin-right:20px;
  27993. font-weight:400;
  27994. cursor:pointer;
  27995. }
  27996. .cb-tabList>.cb-tabItem{
  27997. color:#1684FC;
  27998. position:relative;
  27999. }
  28000. .cb-tabItem::after{
  28001. content:"";
  28002. width:100%;
  28003. height:2px;
  28004. background:#1684FC;
  28005. position:absolute;
  28006. bottom:-5px;
  28007. left:0
  28008. }
  28009. .pzTop2 .check {
  28010. text-align: center;
  28011. cursor: pointer;
  28012. box-sizing: border-box;
  28013. display: flex;
  28014. }
  28015. .pzTop2 img {
  28016. width: 25px;
  28017. cursor: pointer;
  28018. }
  28019. .pzTop > div:nth-child(1) {
  28020. padding-left: 10px;
  28021. }
  28022. .pzTop > div:nth-child(2) {
  28023. width: 15px;
  28024. height: 15px;
  28025. padding-right: 10px;
  28026. cursor: pointer;
  28027. }
  28028. .pzTop > div:nth-child(2) > img {
  28029. width: 100%;
  28030. height: 100%;
  28031. }
  28032. .pzBox,
  28033. .noPzBox {
  28034. height: calc(100% - 60px);
  28035. /* background: #ededed; */
  28036. background: #fff;
  28037. /* border-radius: 0 0 15px 15px; */
  28038. }
  28039. .noPzBox {
  28040. display: flex;
  28041. flex-direction: column;
  28042. flex-wrap: nowrap;
  28043. justify-content: center;
  28044. align-items: center;
  28045. }
  28046. .pzList {
  28047. background: #f7f7f7;
  28048. width: 90%;
  28049. margin: 0 auto 15px;
  28050. border-radius: 5px;
  28051. }
  28052. .pzNavTop {
  28053. display: flex;
  28054. flex-direction: row;
  28055. flex-wrap: nowrap;
  28056. padding: 10px 10px 0 10px;
  28057. align-items: center;
  28058. }
  28059. .pzDelete {
  28060. cursor: pointer;
  28061. margin-left: auto;
  28062. font-size: 14px;
  28063. color: #afafaf;
  28064. }
  28065. .pzNavTop > div:nth-child(1) {
  28066. background: #3760af;
  28067. width: 35px;
  28068. height: 35px;
  28069. color: #fff;
  28070. text-align: center;
  28071. line-height: 35px;
  28072. border-radius: 50%;
  28073. font-size: 14px;
  28074. }
  28075. .pzNavTop > div:nth-child(2) {
  28076. font-size: 18px;
  28077. color: #959595;
  28078. margin-left: 5px;
  28079. }
  28080. .pzContent {
  28081. padding: 10px;
  28082. word-break: break-word;
  28083. }
  28084. .pzContent audio {
  28085. width: 100%;
  28086. }
  28087. .pzContent audio::-webkit-media-controls-panel {
  28088. background: #fff;
  28089. }
  28090. .pzContent >>> img {
  28091. max-width: 100%;
  28092. }
  28093. .pzListBox {
  28094. padding-top: 15px;
  28095. height: calc(100% - 110px);
  28096. overflow: auto;
  28097. }
  28098. .addPzButton {
  28099. position: relative;
  28100. margin-top: 3px;
  28101. width: 100%;
  28102. }
  28103. .addPzButton .img1 {
  28104. position: absolute;
  28105. top: 50%;
  28106. right: 25px;
  28107. transform: translateY(-50%);
  28108. height: 100%;
  28109. display: flex;
  28110. align-items: center;
  28111. }
  28112. .addPzButton .img1 div {
  28113. display: flex;
  28114. }
  28115. .addPzButton .img1 div img {
  28116. width: 28px;
  28117. margin-left: 10px;
  28118. cursor: pointer;
  28119. }
  28120. .addPzButton .img1 div span {
  28121. font-size: 14px;
  28122. margin: 4px 0 0 3px;
  28123. color: #afafaf;
  28124. }
  28125. .addPz {
  28126. background: #4b79ce;
  28127. width: 100px;
  28128. color: #fff;
  28129. font-size: 12px;
  28130. height: 30px;
  28131. margin: 0 auto;
  28132. text-align: center;
  28133. line-height: 30px;
  28134. border-radius: 10px;
  28135. cursor: pointer;
  28136. }
  28137. .addDialogCss {
  28138. position: fixed;
  28139. width: 600px;
  28140. height: 70%;
  28141. min-height: 450px;
  28142. box-shadow: 0px 0 8px 0px #555555;
  28143. border-radius: 15px;
  28144. z-index: 999;
  28145. left: 50%;
  28146. top: 50%;
  28147. margin: -18% 0 0 -300px;
  28148. }
  28149. .teacherPz {
  28150. display: flex;
  28151. flex-direction: row;
  28152. align-items: center;
  28153. flex-wrap: nowrap;
  28154. }
  28155. .teacherPzImg {
  28156. width: 30px;
  28157. height: 30px;
  28158. }
  28159. .teacherPzImg > img {
  28160. width: 100%;
  28161. height: 100%;
  28162. }
  28163. .addPzBox {
  28164. height: calc(100% - 40px);
  28165. background: #ededed;
  28166. border-bottom-left-radius: 15px;
  28167. border-bottom-right-radius: 15px;
  28168. }
  28169. .pzAudioClass {
  28170. margin: 15px 14px;
  28171. background: #fff;
  28172. height: 100%;
  28173. display: flex;
  28174. justify-content: center;
  28175. align-items: center;
  28176. }
  28177. .pzConText {
  28178. width: 95%;
  28179. height: 100%;
  28180. margin: 10px auto 0;
  28181. border: none;
  28182. background: #fff;
  28183. border-radius: 0px;
  28184. }
  28185. .pzConText >>> .text {
  28186. height: calc(100% - 82px);
  28187. }
  28188. .addTextCss {
  28189. background: #4b79ce;
  28190. width: 80px;
  28191. height: 30px;
  28192. text-align: center;
  28193. color: #fff;
  28194. line-height: 30px;
  28195. border-radius: 10px;
  28196. margin: 10px auto 0;
  28197. cursor: pointer;
  28198. }
  28199. .pzConText:focus-visible {
  28200. border: none !important;
  28201. }
  28202. .maxWidth {
  28203. width: 1000px;
  28204. }
  28205. .noPz {
  28206. width: 150px;
  28207. margin: 0 auto 20%;
  28208. }
  28209. .noPz > img {
  28210. width: 100%;
  28211. height: 100%;
  28212. }
  28213. .timeAndReply {
  28214. display: flex;
  28215. flex-direction: row;
  28216. flex-wrap: nowrap;
  28217. justify-content: space-between;
  28218. align-items: center;
  28219. font-size: 14px;
  28220. box-sizing: border-box;
  28221. padding: 0 10px 10px 0px;
  28222. }
  28223. .timeAndReply .time {
  28224. color: #bfbfbf;
  28225. padding: 0 0 0 10px;
  28226. box-sizing: border-box;
  28227. }
  28228. .timeAndReply > div:last-child {
  28229. cursor: pointer;
  28230. color: #777;
  28231. }
  28232. /* table 样式 */
  28233. .cont >>> table {
  28234. border-top: 1px solid #ccc;
  28235. border-left: 1px solid #ccc;
  28236. }
  28237. .cont >>> table td,
  28238. .cont >>> table th {
  28239. border-bottom: 1px solid #ccc;
  28240. border-right: 1px solid #ccc;
  28241. /* padding: 20px 5px; */
  28242. padding: 5px 10px;
  28243. max-width: 0px;
  28244. height: 30px;
  28245. vertical-align: baseline;
  28246. box-sizing: border-box;
  28247. }
  28248. .cont >>> table th {
  28249. border-bottom: 2px solid #ccc;
  28250. text-align: center;
  28251. }
  28252. /* blockquote 样式 */
  28253. .cont >>> blockquote {
  28254. display: block;
  28255. border-left: 8px solid #d0e5f2;
  28256. padding: 5px 10px;
  28257. margin: 10px 0;
  28258. line-height: 1.4;
  28259. font-size: 100%;
  28260. background-color: #f1f1f1;
  28261. }
  28262. /* code 样式 */
  28263. .cont >>> code {
  28264. display: inline-block;
  28265. /* *display: inline; */
  28266. zoom: 1;
  28267. background-color: #f1f1f1;
  28268. border-radius: 3px;
  28269. padding: 3px 5px;
  28270. margin: 0 3px;
  28271. }
  28272. .cont >>> pre code {
  28273. display: block;
  28274. }
  28275. /* ul ol 样式 */
  28276. .cont >>> ul,
  28277. ol {
  28278. margin: 10px 0 10px 20px;
  28279. }
  28280. .addPzCheck {
  28281. display: flex;
  28282. flex-direction: row;
  28283. flex-wrap: nowrap;
  28284. padding: 10px 15px 0;
  28285. }
  28286. .addPzCheck span {
  28287. cursor: pointer;
  28288. padding-bottom: 5px;
  28289. font-weight: bold;
  28290. }
  28291. .addPzCheck span + span {
  28292. margin-left: 10px;
  28293. }
  28294. .addPzCheck .isChooseActive {
  28295. color: #3e88f4;
  28296. border-bottom: 2px solid #2f80f3;
  28297. }
  28298. /* code 样式 */
  28299. .cont {
  28300. /* -webkit-user-modify: read-write; */
  28301. overflow-wrap: break-word;
  28302. -webkit-line-break: after-white-space;
  28303. word-break: break-word;
  28304. white-space: pre-line;
  28305. }
  28306. .scoreBox,
  28307. .scoreDetailBox {
  28308. display: flex;
  28309. align-items: center;
  28310. justify-content: flex-start;
  28311. margin-top: 20px;
  28312. font-size: 18px;
  28313. width: 100%;
  28314. }
  28315. .scoreBox .t,
  28316. .scoreDetailBox .t {
  28317. margin-right: 10px;
  28318. width: 100px;
  28319. text-align: right;
  28320. }
  28321. .scoreDetailBox {
  28322. align-items: flex-start;
  28323. }
  28324. .scoreDetailBox >>> .el-textarea {
  28325. width: calc(100% - 200px);
  28326. }
  28327. .scoreBox >>> .el-input {
  28328. width: 130px;
  28329. font-size: 38px;
  28330. }
  28331. .scoreBox >>> .el-input__inner {
  28332. height: 60px;
  28333. }
  28334. .answerScore {
  28335. position: absolute;
  28336. top: 10px;
  28337. right: 10px;
  28338. background: #0000008f;
  28339. border-radius: 5px;
  28340. padding: 3px 5px;
  28341. font-size: 14px;
  28342. color: #fff;
  28343. cursor: pointer;
  28344. }
  28345. .open_box .switch_box {
  28346. width: 100%;
  28347. margin: 0 auto;
  28348. display: flex;
  28349. justify-content: space-between;
  28350. }
  28351. .open_box .switch_box + .switch_box {
  28352. margin-top: 10px;
  28353. }
  28354. .deleteImg,.deleteImg1 {
  28355. width: 25px !important;
  28356. height: 25px !important;
  28357. cursor: pointer;
  28358. position: absolute;
  28359. top: 10px;
  28360. right: 10px;
  28361. }
  28362. .deleteImg2 {
  28363. width: 23px !important;
  28364. height: 23px !important;
  28365. top: 5px;
  28366. right: 5px;
  28367. }
  28368. .deleteImg1{
  28369. width: 23px !important;
  28370. height: 23px !important;
  28371. top: 5px !important;
  28372. right: 30px !important;
  28373. }
  28374. .rightW {
  28375. right: 40px;
  28376. }
  28377. .drawPBox {
  28378. display: flex;
  28379. flex-direction: column;
  28380. position: relative;
  28381. }
  28382. .drawPBox span {
  28383. font-size: 18px;
  28384. color: #606266;
  28385. padding-bottom: 10px;
  28386. margin: 10px 0;
  28387. border-bottom: 1px solid #eaeaea;
  28388. }
  28389. .drawPBox img {
  28390. width: 500px;
  28391. height: 300px;
  28392. object-fit: contain;
  28393. cursor: pointer;
  28394. margin: 0 auto;
  28395. }
  28396. .sentenBox {
  28397. background: #fff;
  28398. height: 450px;
  28399. overflow: auto;
  28400. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28401. background-position: 102%;
  28402. background-repeat: no-repeat;
  28403. background-size: 60%;
  28404. }
  28405. .addSen {
  28406. background: #409efe;
  28407. width: 90px;
  28408. color: #fff;
  28409. height: 35px;
  28410. text-align: center;
  28411. line-height: 35px;
  28412. border-radius: 5px;
  28413. float: right;
  28414. margin: 10px 20px 0 0;
  28415. cursor: pointer;
  28416. }
  28417. .sentenTop {
  28418. display: flex;
  28419. flex-direction: row;
  28420. flex-wrap: nowrap;
  28421. align-items: center;
  28422. padding: 55px 0 0 20px;
  28423. box-sizing: border-box;
  28424. }
  28425. .sentenTop > div:nth-child(2) {
  28426. width: 300px;
  28427. margin: 0 15px;
  28428. }
  28429. .sentenTop > div:nth-child(3) {
  28430. background: #409efe;
  28431. color: #fff;
  28432. width: 65px;
  28433. height: 35px;
  28434. text-align: center;
  28435. line-height: 35px;
  28436. border-radius: 5px;
  28437. cursor: pointer;
  28438. }
  28439. .cardList,
  28440. .cardList1 {
  28441. padding: 10px 0 10px 0;
  28442. display: flex;
  28443. flex-direction: row;
  28444. flex-wrap: wrap;
  28445. align-items: center;
  28446. box-sizing: border-box;
  28447. border-bottom: 1px solid #f4f4f4;
  28448. width: 98%;
  28449. margin: 0 auto;
  28450. min-width: 60%;
  28451. max-width: 85%;
  28452. }
  28453. .cardList1 {
  28454. padding: 10px 0 10px 10px !important;
  28455. margin: 0 !important;
  28456. }
  28457. .cardBox {
  28458. display: flex;
  28459. flex-direction: row;
  28460. flex-wrap: wrap;
  28461. align-items: center;
  28462. align-content: center;
  28463. }
  28464. .cardBox > div {
  28465. margin-bottom: 10px;
  28466. }
  28467. .isCard,
  28468. .isChooseCard,
  28469. .noCard,
  28470. .isCard1 {
  28471. min-width: 130px;
  28472. width: auto;
  28473. height: 60px;
  28474. text-align: center;
  28475. line-height: 60px;
  28476. font-size: 20px;
  28477. cursor: pointer;
  28478. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28479. background-size: cover;
  28480. transition: all 2s;
  28481. margin-right: 20px;
  28482. background-size: 100% 100%;
  28483. padding: 0 20px;
  28484. box-sizing: border-box;
  28485. }
  28486. .isCard > div,
  28487. .noCard > div,
  28488. .isCard1 > div {
  28489. white-space: nowrap;
  28490. overflow: hidden;
  28491. text-overflow: ellipsis;
  28492. width: 100%;
  28493. margin: 0 auto;
  28494. }
  28495. .noCard {
  28496. background-image: none;
  28497. }
  28498. .isCard1 {
  28499. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28500. }
  28501. .isChooseCard {
  28502. background-image: none;
  28503. border: 1px dashed #b9b9b9;
  28504. border-radius: 10px;
  28505. }
  28506. .card {
  28507. width: 130px;
  28508. height: 60px;
  28509. }
  28510. .card > img {
  28511. width: 100%;
  28512. height: 100%;
  28513. }
  28514. .rightCardBox {
  28515. margin: 10px 0 0 10px;
  28516. }
  28517. .rightCardBox > div:nth-child(1) {
  28518. margin-bottom: 10px;
  28519. }
  28520. .cardCss {
  28521. display: flex;
  28522. flex-direction: column;
  28523. flex-wrap: nowrap;
  28524. align-items: center;
  28525. border-bottom: 3px solid #b4c3d3;
  28526. padding: 0 0 5px 0;
  28527. margin-right: 10px;
  28528. }
  28529. .cardCss > div:nth-child(2) {
  28530. background: #5b7b9d;
  28531. color: #fff;
  28532. width: 20px;
  28533. height: 20px;
  28534. border-radius: 50%;
  28535. text-align: center;
  28536. line-height: 20px;
  28537. }
  28538. .isWrong {
  28539. display: flex;
  28540. flex-direction: row;
  28541. flex-wrap: nowrap;
  28542. align-content: center;
  28543. align-items: center;
  28544. }
  28545. .answerRight {
  28546. width: 25%;
  28547. }
  28548. .isTj {
  28549. display: flex;
  28550. flex-direction: row;
  28551. flex-wrap: nowrap;
  28552. align-items: center;
  28553. }
  28554. .isTj > div:nth-child(2) {
  28555. color: #727070;
  28556. margin-left: 10px;
  28557. }
  28558. .isTjImg {
  28559. width: 30px;
  28560. height: 30px;
  28561. }
  28562. .isTjImg > img {
  28563. width: 100%;
  28564. height: 100%;
  28565. }
  28566. .cardAnswerBox {
  28567. font-size: 18px;
  28568. width: 97%;
  28569. border: 5px;
  28570. padding: 0;
  28571. border-radius: 5px;
  28572. margin: 10px auto;
  28573. word-break: break-word;
  28574. }
  28575. .w_name {
  28576. margin-bottom: 10px;
  28577. }
  28578. .w_name span {
  28579. font-size: 16px;
  28580. }
  28581. .w_teachert {
  28582. width: 50px !important;
  28583. position: absolute;
  28584. height: auto !important;
  28585. z-index: 10;
  28586. right: 25px;
  28587. top: -25px;
  28588. }
  28589. /* .group_workBox {
  28590. } */
  28591. .group_workBox + .group_workBox {
  28592. margin-top: 20px;
  28593. }
  28594. .group_box {
  28595. padding-bottom: 20px;
  28596. border-bottom: 2px solid #f0f0f0;
  28597. margin-top: 10px;
  28598. }
  28599. .group_title {
  28600. display: flex;
  28601. align-items: center;
  28602. justify-content: space-between;
  28603. width: 95%;
  28604. }
  28605. .group_name {
  28606. background-image: url(../../assets/icon/groupN.png);
  28607. width: 220px;
  28608. background-size: 100% 100%;
  28609. height: 67px;
  28610. padding: 0 20px 0 43px;
  28611. box-sizing: border-box;
  28612. line-height: 63px;
  28613. color: #fff;
  28614. overflow: hidden;
  28615. white-space: nowrap;
  28616. text-overflow: ellipsis;
  28617. }
  28618. .group_work {
  28619. width: 100%;
  28620. padding: 0 10px;
  28621. box-sizing: border-box;
  28622. display: flex;
  28623. flex-wrap: wrap;
  28624. }
  28625. .g_d_box {
  28626. display: flex;
  28627. flex-flow: wrap;
  28628. justify-content: space-around;
  28629. }
  28630. .g_d_box .isChair {
  28631. background-image: url(../../assets/avatar.png) !important;
  28632. }
  28633. .g_d_group {
  28634. width: 500px;
  28635. margin-bottom: 80px;
  28636. }
  28637. .g_d_group_chair {
  28638. display: flex;
  28639. align-items: center;
  28640. justify-content: center;
  28641. }
  28642. .g_d_group_chair > div + div {
  28643. margin-left: 30px;
  28644. }
  28645. .g_d_group_chair > div,
  28646. .g_d_group_chair2 > div {
  28647. display: flex;
  28648. flex-direction: column;
  28649. align-items: center;
  28650. }
  28651. .g_d_group_chair > div > span:nth-child(1),
  28652. .g_d_group_chair2 > div > span:nth-child(1) {
  28653. background-image: url(../../assets/icon/chair.png);
  28654. width: 50px;
  28655. height: 50px;
  28656. display: block;
  28657. background-size: 100% 100%;
  28658. }
  28659. .g_d_group_tableBox {
  28660. display: flex;
  28661. align-items: center;
  28662. justify-content: center;
  28663. }
  28664. .g_d_group_chair2 {
  28665. display: flex;
  28666. flex-direction: column;
  28667. align-items: center;
  28668. justify-content: center;
  28669. }
  28670. .g_d_group_chair2 > div + div {
  28671. margin-top: 10px;
  28672. }
  28673. .g_d_group_table {
  28674. background-image: url(../../assets/icon/groupBg.png);
  28675. width: 354px;
  28676. height: 196px;
  28677. background-size: 100% 100%;
  28678. display: flex;
  28679. align-items: center;
  28680. justify-content: center;
  28681. flex-direction: column;
  28682. color: #fff;
  28683. }
  28684. .g_d_group_table > div:nth-child(1) {
  28685. font-size: 24px;
  28686. margin-bottom: 5px;
  28687. }
  28688. .g_d_group_table > div:nth-child(2) div {
  28689. cursor: pointer;
  28690. background: #2e77bf;
  28691. padding: 4px 10px;
  28692. border-radius: 5px;
  28693. }
  28694. /* .groupBox {
  28695. } */
  28696. .groupContent + .groupContent {
  28697. margin-top: 30px;
  28698. }
  28699. .groupTitle {
  28700. font-size: 24px;
  28701. color: rgb(80, 80, 80);
  28702. margin-bottom: 20px;
  28703. }
  28704. .groupName {
  28705. display: flex;
  28706. align-items: center;
  28707. }
  28708. .groupn {
  28709. font-size: 15px;
  28710. margin-right: 10px;
  28711. }
  28712. .groupName + .groupName {
  28713. margin-top: 15px;
  28714. }
  28715. .groupBtn {
  28716. margin-left: 10px;
  28717. }
  28718. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28719. text-align: left;
  28720. }
  28721. .g_d_btnBox {
  28722. display: flex;
  28723. justify-content: flex-end;
  28724. align-items: center;
  28725. margin-bottom: 20px;
  28726. }
  28727. .updateChair {
  28728. position: relative;
  28729. }
  28730. .updateChairBtn {
  28731. position: absolute;
  28732. width: 50px;
  28733. height: 50px;
  28734. overflow: hidden;
  28735. /* display: flex; */
  28736. align-items: center;
  28737. justify-content: center;
  28738. background: #00000087;
  28739. color: #fff;
  28740. border-radius: 50px;
  28741. display: none;
  28742. cursor: pointer;
  28743. }
  28744. .updateChair:hover .updateChairBtn {
  28745. display: flex;
  28746. }
  28747. .group_staic_box {
  28748. display: flex;
  28749. padding: 30px 40px 10px;
  28750. flex-wrap: wrap;
  28751. }
  28752. .group_staic {
  28753. /* width: 50%; */
  28754. margin-bottom: 20px;
  28755. display: flex;
  28756. align-items: center;
  28757. }
  28758. .group_staic span:nth-child(1) {
  28759. width: 150px;
  28760. text-align: right;
  28761. margin-right: 15px;
  28762. }
  28763. .group_staic span:nth-child(2) {
  28764. background: rgb(0 123 255);
  28765. color: #fff;
  28766. border-radius: 5px;
  28767. padding: 5px;
  28768. }
  28769. .codeFileBox {
  28770. height: 300px;
  28771. background: #fff;
  28772. display: flex;
  28773. align-items: center;
  28774. justify-content: center;
  28775. }
  28776. .codeFileBox img {
  28777. width: 200px;
  28778. margin: 0;
  28779. height: auto;
  28780. }
  28781. .codeFileBox div {
  28782. background: rgb(80, 142, 226);
  28783. color: #fff;
  28784. padding: 10px 20px;
  28785. border-radius: 25px;
  28786. cursor: pointer;
  28787. margin-left: 15px;
  28788. }
  28789. .radioBox {
  28790. display: flex;
  28791. flex-direction: column;
  28792. flex-wrap: nowrap;
  28793. align-items: flex-start;
  28794. }
  28795. .radioBox > div {
  28796. margin: 10px 0 0 10px;
  28797. }
  28798. /* .radioBox >>> .el-radio__input,
  28799. .radioBox >>> .el-checkbox__inner {
  28800. margin-left: 10px;
  28801. } */
  28802. .radioBox >>> .el-radio__label,
  28803. .radioBox >>> .el-checkbox__label {
  28804. display: flex;
  28805. align-items: center;
  28806. width: 100%;
  28807. }
  28808. .radioBox >>> .el-radio__label > span {
  28809. width: 100%;
  28810. display: -webkit-box;
  28811. overflow: hidden;
  28812. white-space: normal !important;
  28813. text-overflow: ellipsis;
  28814. word-wrap: break-word;
  28815. }
  28816. .inImg {
  28817. width: 100px;
  28818. cursor: pointer;
  28819. }
  28820. .inImg > img {
  28821. width: 100%;
  28822. height: 100%;
  28823. object-fit: cover;
  28824. }
  28825. .timuImgBox {
  28826. margin: 10px 0;
  28827. display: flex;
  28828. flex-direction: column;
  28829. flex-wrap: wrap;
  28830. align-items: flex-start;
  28831. }
  28832. .timuImg {
  28833. width: 150px;
  28834. margin: 5px 0;
  28835. cursor: pointer;
  28836. }
  28837. .timuImg > img {
  28838. width: 100%;
  28839. height: 100%;
  28840. object-fit: cover;
  28841. }
  28842. .worksTop {
  28843. display: flex;
  28844. flex-direction: row;
  28845. align-items: flex-end;
  28846. }
  28847. .worksTitle {
  28848. display: flex;
  28849. flex-direction: row;
  28850. flex-wrap: nowrap;
  28851. align-items: center;
  28852. }
  28853. .worksTitle::before,
  28854. .worksTop::before {
  28855. content: "";
  28856. display: block;
  28857. width: 3px;
  28858. height: 20px;
  28859. background: #0061ff;
  28860. border-radius: 3px;
  28861. margin: 0 5px 0 0;
  28862. }
  28863. .corOpen {
  28864. margin: 0 0 0 10px;
  28865. font-size: 14px;
  28866. cursor: pointer;
  28867. color: #505050;
  28868. }
  28869. .corOpen:hover {
  28870. color: #499eef;
  28871. }
  28872. .navCorOpenBox {
  28873. display: flex;
  28874. flex-direction: row;
  28875. align-items: center;
  28876. justify-content: space-between;
  28877. height: 55px;
  28878. background: #ffffff;
  28879. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28880. border-radius: 8px 8px 0px 0px;
  28881. z-index: 9;
  28882. position: relative;
  28883. }
  28884. .navCorOpen {
  28885. padding-right: 15px;
  28886. cursor: pointer;
  28887. width: 45px;
  28888. display: flex;
  28889. }
  28890. .navCorOpen > img {
  28891. width: 100%;
  28892. height: 100%;
  28893. }
  28894. .mlImg {
  28895. width: 40px !important;
  28896. min-width: 40px;
  28897. cursor: pointer;
  28898. transform: rotate(180deg);
  28899. }
  28900. .mlImg > img {
  28901. width: 100%;
  28902. height: 100%;
  28903. }
  28904. .navLeftCss {
  28905. width: 100% !important;
  28906. left: 0 !important;
  28907. }
  28908. .isContentCss {
  28909. width: 100% !important;
  28910. }
  28911. .isAllWidth {
  28912. width: 100% !important;
  28913. }
  28914. .group_switch {
  28915. margin-right: 10px;
  28916. height: 30px;
  28917. display: flex;
  28918. align-items: center;
  28919. }
  28920. .group_switch > span {
  28921. margin-right: 5px;
  28922. }
  28923. .fileC_box {
  28924. padding-top: 15px;
  28925. }
  28926. .fileC_box > .fileC_title {
  28927. padding: 10px 5px 14px 10px;
  28928. border-top: 1px solid #cad1dc;
  28929. font-size: 14px;
  28930. font-weight: 400;
  28931. color: #cad1dc;
  28932. width: calc(100% - 20px);
  28933. margin: 0 auto;
  28934. box-sizing: border-box;
  28935. }
  28936. .pl_select_box {
  28937. height: 40px;
  28938. line-height: 40px;
  28939. width: 100%;
  28940. cursor: pointer;
  28941. padding: 0 20px;
  28942. box-sizing: border-box;
  28943. border-radius: 5px;
  28944. border: 1px solid #d6d6d6;
  28945. white-space: nowrap;
  28946. overflow: hidden;
  28947. text-overflow: ellipsis;
  28948. background: #fff;
  28949. text-align: left;
  28950. }
  28951. .newButton {
  28952. width: 102px;
  28953. height: 36px;
  28954. background: #e7ebf1;
  28955. border-radius: 4px;
  28956. color: #0e1e33;
  28957. font-weight: 400;
  28958. font-size: 14px;
  28959. border: none;
  28960. float: right;
  28961. margin-left: 10px;
  28962. }
  28963. .el-table >>> .even_row {
  28964. background-color: #f0f4fa;
  28965. }
  28966. .stageBoxCss,
  28967. .stageBoxIsCss {
  28968. display: flex;
  28969. flex-direction: row;
  28970. flex-wrap: nowrap;
  28971. align-items: center;
  28972. height: 50px;
  28973. border-bottom: 1px solid #e2f5fc;
  28974. cursor: pointer;
  28975. width: 100%;
  28976. }
  28977. .stageBoxIsCss {
  28978. background: #0061ff;
  28979. color: #fff;
  28980. border-radius: 8px;
  28981. }
  28982. .closeTri,
  28983. .closeTri1 {
  28984. min-width: 15px;
  28985. width: 15px;
  28986. height: 15px;
  28987. }
  28988. .closeTri1 {
  28989. padding-left: 10px;
  28990. cursor: pointer;
  28991. }
  28992. .closeTri > img,
  28993. .closeTri1 > img {
  28994. width: 100%;
  28995. height: 100%;
  28996. /* transition: all .5s; */
  28997. }
  28998. .noToolBlue {
  28999. min-width: 10px;
  29000. width: 10px;
  29001. height: 10px;
  29002. background: #0061ff;
  29003. border-radius: 50%;
  29004. margin-left: 13px;
  29005. }
  29006. .stageChild,
  29007. .toolChild {
  29008. height: 0;
  29009. overflow: hidden;
  29010. transition: all 0.5s;
  29011. }
  29012. /* .toolChild { */
  29013. /* margin: 0 0 0 17px;
  29014. padding: 0 0 0 20px;
  29015. border-left: 1px solid #d7d7d7; */
  29016. /* } */
  29017. .toolChild > div + div{
  29018. margin-top:5px;
  29019. }
  29020. .gjCss {
  29021. display: flex;
  29022. flex-direction: row;
  29023. flex-wrap: nowrap;
  29024. align-items: center;
  29025. padding: 10px 0 10px 40px;
  29026. box-sizing: border-box;
  29027. font-size: 14px;
  29028. cursor: pointer;
  29029. border-radius:5px;
  29030. }
  29031. .toolChild > div {
  29032. position: relative;
  29033. width: 100%;
  29034. }
  29035. /* .toolChild > div::before { */
  29036. /* content: "";
  29037. width: 15px;
  29038. height: 1px;
  29039. background: #cad1dc;
  29040. position: absolute;
  29041. top: 24px;
  29042. left: -20px;
  29043. display: block; */
  29044. /* } */
  29045. .isGjCss {
  29046. /* color: #0061ff; */
  29047. color:#fff;
  29048. background: rgb(55, 129, 252);
  29049. /* background-color: #e0eafb !important;
  29050. color: #0061ff !important; */
  29051. }
  29052. .navItem {
  29053. background: #ffffff;
  29054. border-radius: 4px;
  29055. width: 100%;
  29056. margin: 10px auto;
  29057. position: relative;
  29058. height: 40px;
  29059. display: flex;
  29060. flex-direction: row;
  29061. flex-wrap: nowrap;
  29062. align-items: center;
  29063. }
  29064. .navItemList {
  29065. display: flex;
  29066. flex-direction: row;
  29067. flex-wrap: nowrap;
  29068. align-items: center;
  29069. padding: 0 13px;
  29070. cursor: pointer;
  29071. width: calc(100% - 60px);
  29072. height: 100%;
  29073. }
  29074. .navItemList > div:first-child {
  29075. min-width: 60px;
  29076. }
  29077. .navItemList > div:last-child {
  29078. width: calc(100% - 80px);
  29079. white-space: nowrap;
  29080. overflow: hidden;
  29081. text-overflow: ellipsis;
  29082. word-break: break-word;
  29083. }
  29084. /* .isItemList > div {
  29085. color: #fff !important;
  29086. } */
  29087. .tool_work_box {
  29088. width: 100%;
  29089. padding: 0 37px 0;
  29090. box-sizing: border-box;
  29091. }
  29092. .tool_box {
  29093. width: 100%;
  29094. padding: 0 0 0 20px;
  29095. }
  29096. .tool_type_box {
  29097. display: flex;
  29098. flex-direction: row;
  29099. align-items: baseline;
  29100. flex-wrap: nowrap;
  29101. justify-content: flex-start;
  29102. position: relative;
  29103. }
  29104. .toolSort {
  29105. display: flex;
  29106. flex-direction: row;
  29107. flex-wrap: wrap;
  29108. justify-content: flex-start;
  29109. align-items: flex-start;
  29110. padding: 0 0 15px 0;
  29111. }
  29112. .toolSort > div {
  29113. margin: 0 10px 0 0;
  29114. width: 135px;
  29115. box-sizing: border-box;
  29116. border: 2px solid transparent;
  29117. }
  29118. .tools {
  29119. width: 100%;
  29120. display: flex;
  29121. flex-direction: column;
  29122. flex-wrap: nowrap;
  29123. align-items: flex-start;
  29124. }
  29125. .whiteBIcon {
  29126. width: fit-content;
  29127. cursor: pointer;
  29128. display: flex;
  29129. flex-direction: column;
  29130. flex-wrap: nowrap;
  29131. align-items: center;
  29132. font-size: 14px;
  29133. }
  29134. .tool:hover {
  29135. border: 2px solid #a5c7ff;
  29136. border-radius: 5px;
  29137. }
  29138. .whiteBIcon > img {
  29139. width: 65px;
  29140. height: 100%;
  29141. }
  29142. .whiteBIcon > img {
  29143. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29144. border-radius: 15px;
  29145. }
  29146. .check {
  29147. /* width: 20px;
  29148. height: 20px; */
  29149. cursor: pointer;
  29150. margin: 10px 0;
  29151. position: absolute;
  29152. right: 2px;
  29153. top: -5px;
  29154. }
  29155. .noChoose,
  29156. .isChoose {
  29157. width: 15px;
  29158. height: 15px;
  29159. border-radius: 50%;
  29160. border: 1px solid #adadad;
  29161. }
  29162. .isChoose {
  29163. border: 4px solid #0363ff !important;
  29164. width: 10px;
  29165. height: 10px;
  29166. }
  29167. .isToolChoose {
  29168. border: 2px solid #5394ff !important;
  29169. border-radius: 5px;
  29170. box-shadow: 0 0 6px 0px #5394ff;
  29171. }
  29172. .checkDiv {
  29173. display: flex;
  29174. align-items: center;
  29175. }
  29176. .checkDiv span {
  29177. margin-left: 5px;
  29178. color: #858585;
  29179. }
  29180. .check img {
  29181. width: 20px;
  29182. height: 20px;
  29183. }
  29184. .lockTaskIcon {
  29185. width: 20px;
  29186. height: 20px;
  29187. position: absolute;
  29188. right: 10px;
  29189. top: 10px;
  29190. }
  29191. .lockTaskIcon > img {
  29192. width: 100%;
  29193. height: 100%;
  29194. }
  29195. .pick_box {
  29196. display: flex;
  29197. align-items: flex-start;
  29198. flex-wrap: wrap;
  29199. }
  29200. .selectBox {
  29201. width: 110px;
  29202. margin-left: 10px;
  29203. margin: 0 10px 0 auto;
  29204. }
  29205. .selectBox >>> .el-input__inner {
  29206. height: 30px;
  29207. line-height: 30px;
  29208. }
  29209. .selectBox >>> .el-input__icon {
  29210. line-height: 30px;
  29211. }
  29212. .sentenceTitle {
  29213. display: flex;
  29214. flex-direction: row;
  29215. flex-wrap: nowrap;
  29216. align-items: center;
  29217. }
  29218. .sentenceTitle::before {
  29219. content: attr(index);
  29220. background: #3681fc;
  29221. border-radius: 50%;
  29222. color: #fff;
  29223. width: 25px;
  29224. height: 25px;
  29225. min-width: 25px;
  29226. min-height: 25px;
  29227. text-align: center;
  29228. line-height: 25px;
  29229. margin-right: 5px;
  29230. }
  29231. .hfBox {
  29232. padding: 10px;
  29233. box-sizing: border-box;
  29234. }
  29235. .whoReplyWho {
  29236. display: flex;
  29237. flex-direction: row;
  29238. flex-wrap: nowrap;
  29239. align-items: baseline;
  29240. justify-content: flex-start;
  29241. }
  29242. .hfBottom {
  29243. display: flex;
  29244. flex-direction: row;
  29245. flex-wrap: nowrap;
  29246. align-items: center;
  29247. justify-content: space-between;
  29248. font-size: 14px;
  29249. }
  29250. .deleteHfItem {
  29251. cursor: pointer;
  29252. width: 20px;
  29253. height: 20px;
  29254. }
  29255. .deleteHfItem > img {
  29256. width: 100%;
  29257. height: 100%;
  29258. }
  29259. .whoReplyWho > .hfImg {
  29260. width: 12px;
  29261. height: 12px;
  29262. margin: 0 5px;
  29263. }
  29264. .whoReplyWho > .hfImg > img {
  29265. width: 100%;
  29266. height: 100%;
  29267. }
  29268. .hfContent {
  29269. padding-top: 10px;
  29270. box-sizing: border-box;
  29271. display: -webkit-box;
  29272. overflow: hidden;
  29273. white-space: normal !important;
  29274. text-overflow: ellipsis;
  29275. word-wrap: break-word;
  29276. -webkit-box-orient: vertical;
  29277. }
  29278. .hfTime {
  29279. text-align: left;
  29280. box-sizing: border-box;
  29281. padding: 10px 0 10px 0px;
  29282. color: #bfbfbf;
  29283. font-size: 14px;
  29284. }
  29285. .btnAllNT {
  29286. position: fixed;
  29287. bottom: 100px;
  29288. right: 40px;
  29289. z-index: 999;
  29290. display: flex;
  29291. flex-direction: row;
  29292. }
  29293. .btnAllNT > img {
  29294. cursor: pointer;
  29295. width: 80px;
  29296. }
  29297. .toolMask {
  29298. position: fixed;
  29299. width: 100%;
  29300. height: 100%;
  29301. background: #3f3c3c;
  29302. opacity: 0.5;
  29303. top: 0;
  29304. left: 0;
  29305. z-index: 999;
  29306. }
  29307. .addToolCss {
  29308. position: fixed;
  29309. z-index: 999;
  29310. background: #fff;
  29311. right: 5%;
  29312. bottom: 18%;
  29313. min-width: 1035px;
  29314. min-height: 300px;
  29315. border-radius: 10px;
  29316. box-shadow: 0 0 8px 1px #b2b2b2;
  29317. }
  29318. .toolTop {
  29319. display: flex;
  29320. flex-direction: row;
  29321. flex-wrap: nowrap;
  29322. justify-content: space-between;
  29323. align-items: center;
  29324. padding: 20px;
  29325. }
  29326. .toolTop > div:nth-child(2) {
  29327. width: 15px;
  29328. height: 15px;
  29329. padding-right: 10px;
  29330. cursor: pointer;
  29331. }
  29332. .toolTop > div:nth-child(2) > img {
  29333. width: 100%;
  29334. height: 100%;
  29335. }
  29336. .fullStyle>>>.el-dialog__body {
  29337. height: calc(100% - 125px) !important;
  29338. box-sizing: border-box;
  29339. padding: 30px 0 !important;
  29340. background: #fff !important;
  29341. }
  29342. .fullStyle>>>.el-dialog {
  29343. width: 100% !important;
  29344. max-width: 100% !important;
  29345. height: 100% !important;
  29346. margin: 0 !important;
  29347. }
  29348. .fullStyle {
  29349. width: 100% !important;
  29350. max-width: 100% !important;
  29351. height: 100% !important;
  29352. margin: 0 auto !important;
  29353. }
  29354. .fullStyle>>>.el-dialog__footer{
  29355. background: #fff !important;
  29356. }
  29357. .engUpBox {
  29358. width: 100%;
  29359. height: 100%;
  29360. }
  29361. .engTitle,
  29362. .engText {
  29363. display: flex;
  29364. flex-direction: row;
  29365. flex-wrap: nowrap;
  29366. align-items: flex-start;
  29367. padding: 0 20px 20px 20px;
  29368. box-sizing: border-box;
  29369. }
  29370. .engTitle > .div:first-child,
  29371. .engText > div:first-child {
  29372. min-width: 75px;
  29373. }
  29374. .correctBox{
  29375. width: 100%;
  29376. display: flex;
  29377. flex-direction: row;
  29378. flex-wrap: nowrap;
  29379. align-items: flex-start;
  29380. }
  29381. .oldBox{
  29382. width: 50%;
  29383. height: 100%;
  29384. display: flex;
  29385. flex-direction: column;
  29386. flex-wrap: nowrap;
  29387. align-items: center;
  29388. border-top: 1px solid #d9d9d9;
  29389. border-left: 1px solid #d9d9d9;
  29390. border-right: 1px solid #d9d9d9;
  29391. }
  29392. .oldBox>div:first-child{
  29393. width: 100%;
  29394. text-align: center;
  29395. background: #d9d9d9;
  29396. height: 35px;
  29397. line-height: 35px;
  29398. font-weight: bold;
  29399. }
  29400. .oldText{
  29401. width: 100%;
  29402. height: calc(100% - 35px);
  29403. overflow: auto;
  29404. margin: 10px 0;
  29405. display: flex;
  29406. flex-direction: column;
  29407. flex-wrap: nowrap;
  29408. align-content: center;
  29409. align-items: center;
  29410. }
  29411. .detailBox{
  29412. width: 50%;
  29413. padding: 10px;
  29414. background: #f6f6f6;
  29415. border-radius: 5px;
  29416. }
  29417. .oldDetail,.oldDetail1{
  29418. padding-bottom: 30px;
  29419. }
  29420. .oldImg{
  29421. width:30px;
  29422. height: 30px;
  29423. }
  29424. .oldImg>img{
  29425. width: 100%;
  29426. height: 100%;
  29427. }
  29428. .allName{
  29429. min-width: 200px;
  29430. white-space: nowrap;
  29431. overflow: hidden;
  29432. text-overflow: ellipsis;
  29433. word-break: break-word;
  29434. cursor: pointer;
  29435. text-align: center;
  29436. border: 1px solid #bcc2cc;
  29437. box-sizing: border-box;
  29438. }
  29439. .engUpTop{
  29440. max-height: 300px;
  29441. overflow: auto;
  29442. }
  29443. .isUpdateToolDetailClass{
  29444. padding: 0 !important;
  29445. }
  29446. .isUpdateToolDetailClass textarea{
  29447. padding:12px;
  29448. font-size: 16px;
  29449. min-height:100%;
  29450. width: 100%;
  29451. box-sizing:border-box;
  29452. outline: none;
  29453. border:none;
  29454. line-height: 30px;
  29455. resize: none;
  29456. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29457. color: #838383;
  29458. }
  29459. .show_taskD {
  29460. min-width: fit-content;
  29461. margin-left: 10px;
  29462. display: flex;
  29463. align-items: center;
  29464. font-size: 14px;
  29465. cursor: pointer;
  29466. color: #717c8d;
  29467. }
  29468. .show_taskD > img {
  29469. width: 15px;
  29470. margin-right: 5px;
  29471. transition: 0.2s all;
  29472. transform: rotate(-90deg);
  29473. }
  29474. .show_taskD.show > img {
  29475. transform: rotate(0deg);
  29476. }
  29477. .correctCss{
  29478. position: absolute;
  29479. bottom: -70px;
  29480. background: #409eff;
  29481. color: #fff;
  29482. }
  29483. .ScoreBtn {
  29484. background: rgba(87, 159, 248, 1);
  29485. display: flex;
  29486. justify-content: center;
  29487. align-items: center;
  29488. color: #fff;
  29489. font-size: 14px;
  29490. padding: 8px 12px;
  29491. border-radius: 5px;
  29492. cursor: pointer;
  29493. }
  29494. .max-height-popover .el-popover {
  29495. min-height: 200px;
  29496. max-height: 400px; /* 设置最大高度 */
  29497. overflow: auto; /* 超出部分显示滚动条 */
  29498. }
  29499. .stuLookScore {
  29500. position: absolute;
  29501. top: 12px;
  29502. right: 40px;
  29503. background: #0000008f;
  29504. border-radius: 5px;
  29505. padding: 3px 5px;
  29506. font-size: 14px;
  29507. color: #fff;
  29508. cursor: pointer;
  29509. }
  29510. .dialog_diyCopy >>> .el-dialog__header {
  29511. display: none !important;
  29512. }
  29513. .dialog_diyCopy >>> .el-dialog__body {
  29514. padding: 0 !important;
  29515. height: 100% !important;
  29516. }
  29517. .confirmOpenDigCss > div{
  29518. font-size: 14px;
  29519. color: rgba(0, 0, 0, 0.6);
  29520. }
  29521. .confirmOpenDigCss >>> .el-dialog{
  29522. border-radius: 6px;
  29523. }
  29524. .confirmOpenDigCss >>> .el-dialog__body{
  29525. padding: 25px !important;
  29526. }
  29527. .confirmOpenDigCss > span{
  29528. font-size: 16px;
  29529. font-weight: 600;
  29530. color: rgba(0, 0, 0, 0.8);
  29531. }
  29532. div::-webkit-scrollbar {
  29533. width: 10px;
  29534. height: 6px;
  29535. }
  29536. .Ovh{
  29537. margin: 5px 0;
  29538. width: 4em;
  29539. -webkit-line-clamp: 2;
  29540. display: -webkit-box;
  29541. -webkit-box-orient: vertical;
  29542. overflow: hidden;
  29543. text-overflow: ellipsis;
  29544. }
  29545. .pb_content >>> .katex {
  29546. font-size: 16px;
  29547. width: 100%;
  29548. white-space: normal;
  29549. }
  29550. .pb_content >>> .katex .base{
  29551. display: inline !important;
  29552. display: contents !important;
  29553. }
  29554. .pb_content >>> .katex .base .cjk_fallback{
  29555. white-space: normal !important;
  29556. display: inline !important;
  29557. }
  29558. </style>