studyStudent.vue 934 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854
  1. <template>
  2. <div class="pb_content" style="overflow: unset">
  3. <div
  4. class="pb_content_body"
  5. style="
  6. display: flex;
  7. height: 900px;
  8. position: relative;
  9. padding: 20px 0 20px 20px;
  10. box-sizing: border-box;
  11. "
  12. >
  13. <!-- <div class="btnAllNT">
  14. <img
  15. v-if="
  16. courseDetail.userid == userid ||
  17. (courseDetail.course_teacher &&
  18. courseDetail.course_teacher.indexOf(userid) != -1)
  19. "
  20. src="../../assets/icon/learn/addTool.png"
  21. @click="openToolAll"
  22. style="position: relative"
  23. />
  24. <img
  25. src="../../assets/icon/learn/last.png"
  26. @click="nextOrpreSteps(0)"
  27. />
  28. <img
  29. src="../../assets/icon/learn/next.png"
  30. @click="nextOrpreSteps(1)"
  31. />
  32. <img
  33. src="../../assets/icon/learn/return.png"
  34. @click.stop="
  35. goTo(
  36. '/courseDetail?userid=' +
  37. userid +
  38. '&oid=' +
  39. oid +
  40. '&org=' +
  41. org +
  42. '&cid=' +
  43. classId +
  44. '&courseId=' +
  45. id +
  46. '&tType=' +
  47. tType +
  48. '&screenType=' +
  49. screenType
  50. )
  51. "
  52. />
  53. </div> -->
  54. <div
  55. class="pButton"
  56. style="left: 0; top: 140px"
  57. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  58. @click="setContent2(true)"
  59. >
  60. <!-- 批 , getCourseDetail()-->
  61. <img
  62. src="../../assets/icon/newIcons/isRight.png"
  63. style="width: 45px"
  64. alt=""
  65. />
  66. </div>
  67. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  68. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  69. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  70. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  71. <div
  72. style="
  73. max-width: calc(100% - 40px);
  74. width: auto;
  75. white-space: nowrap;
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. word-break: break-word;
  79. display: block;
  80. "
  81. >
  82. <el-tooltip
  83. effect="light"
  84. :content="courseDetail.title"
  85. placement="top"
  86. >
  87. <div class="ctitle">
  88. {{ courseDetail.title }}
  89. </div>
  90. </el-tooltip>
  91. </div>
  92. <el-tooltip effect="light" content="收缩" placement="top">
  93. <div class="mlImg" @click="setContent2(false)">
  94. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  95. </div>
  96. </el-tooltip>
  97. </div>
  98. <div
  99. class="inviteBox"
  100. v-if="tcid && inviteCode"
  101. style="padding: 0 0 8px 0"
  102. >
  103. <div>
  104. <span>随机码:{{ inviteCode }}</span>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="cru_selectBox">
  109. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  110. <div class="stageChild" :class="{ navActive: item.isOpen }">
  111. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  112. <div
  113. class="navItem"
  114. :class="{
  115. openTaskActive:
  116. navIndex == taskCount &&
  117. nav.id == navId &&
  118. stageIndex == courseType,
  119. }"
  120. >
  121. <div v-if="nav.tool[0].tool != undefined">
  122. <div
  123. class="closeTri1"
  124. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  125. @click="openTask(stageIndex, navIndex, nav.id)"
  126. >
  127. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  128. </div>
  129. <div
  130. class="closeTri1"
  131. v-else
  132. @click="openTask(stageIndex, navIndex, nav.id)"
  133. >
  134. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  135. </div>
  136. </div>
  137. <div v-else class="noToolBlue"></div>
  138. <div
  139. @click="openTask(stageIndex, navIndex, nav.id)"
  140. class="navItemList"
  141. :class="{
  142. isItemList:
  143. navIndex == taskCount &&
  144. nav.id == navId &&
  145. stageIndex == courseType,
  146. }"
  147. >
  148. <div>任务{{ navIndex + 1 }}:</div>
  149. <el-tooltip
  150. effect="light"
  151. :content="nav.taskName"
  152. placement="top"
  153. >
  154. <div
  155. :style="{
  156. width:
  157. IsLookOpen && !nav.isLook
  158. ? 'calc(100% - 75px)'
  159. : 'auto',
  160. }"
  161. >
  162. {{ nav.taskName }}
  163. </div>
  164. </el-tooltip>
  165. </div>
  166. </div>
  167. <div
  168. v-if="nav.tool[0].tool != undefined"
  169. class="toolChild"
  170. :class="{ toolActive: nav.isOpen }"
  171. >
  172. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  173. <div
  174. class="gjCss"
  175. :class="{
  176. isGjCss: t.isTool,
  177. }"
  178. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  179. >
  180. <div>工具{{ toolIndex2 + 1 }}:</div>
  181. <div v-if="t.tool == 58">模拟驾驶</div>
  182. <div v-if="t.tool == 59">路径搜索</div>
  183. <div v-if="t.tool == 60">深度学习</div>
  184. <div v-if="t.tool == 10">倒计时</div>
  185. <div v-if="t.tool == 65">挑人</div>
  186. <div v-if="t.tool == 7">思维网格</div>
  187. <div v-if="t.tool == 1">电子白板</div>
  188. <div v-if="t.tool == 52">文档</div>
  189. <div v-if="t.tool == 3">思维导图</div>
  190. <div v-if="t.tool == 48">表格</div>
  191. <div v-if="t.tool == 49">学生分组</div>
  192. <div v-if="t.tool == 4">问卷调查</div>
  193. <div v-if="t.tool == 45">选择题</div>
  194. <div v-if="t.tool == 15">问答</div>
  195. <div v-if="t.tool == 16">作业提交</div>
  196. <div v-if="t.tool == 50">批量上传</div>
  197. <div v-if="t.tool == 41">选择匹配</div>
  198. <div v-if="t.tool == 47">排序</div>
  199. <div v-if="t.tool == 40">个人评价</div>
  200. <div v-if="t.tool == 18">训练平台</div>
  201. <div v-if="t.tool == 21">AIoT Blockly</div>
  202. <div v-if="t.tool == 23">AI Python</div>
  203. <div v-if="t.tool == 24">AI Blockly</div>
  204. <div v-if="t.tool == 32">源码编辑</div>
  205. <div v-if="t.tool == 57">CocoPi</div>
  206. <div v-if="t.tool == 63">海龟编程</div>
  207. <div v-if="t.tool == 28">翻译</div>
  208. <div v-if="t.tool == 31">数字画板</div>
  209. <div v-if="t.tool == 39">GeoGebra</div>
  210. <div v-if="t.tool == 66">公式编辑</div>
  211. <div v-if="t.tool == 67">分子结构</div>
  212. <div v-if="t.tool == 68">时间轴</div>
  213. <div v-if="t.tool == 69">英语写作</div>
  214. <div v-if="t.tool == 70">英语口语</div>
  215. <div v-if="t.tool == 25">目标管理</div>
  216. <div v-if="t.tool == 26">课程设计</div>
  217. <div v-if="t.tool == 62">交互视频</div>
  218. <div v-if="t.tool == 71">AI智能体</div>
  219. </div>
  220. </div>
  221. </div>
  222. </div>
  223. </div>
  224. </div>
  225. </div>
  226. </div>
  227. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  228. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }"></div>
  229. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  230. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType)? '100%' : 'calc(100% - 745px)'}">
  231. <div>任务{{ taskCount + 1 }}</div>
  232. <el-tooltip
  233. effect="light"
  234. :content="
  235. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  236. "
  237. placement="top"
  238. >
  239. <div>
  240. {{
  241. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  242. .task
  243. }}
  244. </div>
  245. </el-tooltip>
  246. </div>
  247. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  248. <div class="btnLeft">
  249. <el-tooltip effect="light" content="刷新" placement="top">
  250. <div class="reBtnIcon" @click="refreshCourse">
  251. <span>刷新</span>
  252. </div>
  253. </el-tooltip>
  254. <el-tooltip effect="light" content="评论" placement="top">
  255. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  256. <span>评论</span>
  257. </div>
  258. </el-tooltip>
  259. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  260. <el-tooltip effect="light" content="录制" placement="top">
  261. <div class="vedioIcon" @click="startRecording">
  262. <span>录制</span>
  263. </div>
  264. </el-tooltip>
  265. </div>
  266. <div v-else-if="tType == 1 || tType == 4">
  267. <el-tooltip effect="light" content="下载" placement="top">
  268. <div class="vedioIcon1" @click="stopRecording">
  269. <span>下载</span>
  270. </div>
  271. </el-tooltip>
  272. </div>
  273. </div>
  274. <div class="btnRight">
  275. <div
  276. class="last"
  277. @click="nextOrpreSteps(0)"
  278. v-if="!(IsFollow && tType == 2)"
  279. @mouseover="isHovered = true"
  280. @mouseout="isHovered = false"
  281. >
  282. <div class="lastImg">
  283. <img
  284. :src="
  285. isHovered
  286. ? require('../../assets/icon/newIcons/whiteLast.png')
  287. : require('../../assets/icon/newIcons/last.png')
  288. "
  289. alt=""
  290. />
  291. </div>
  292. <div class="lastText">上一步</div>
  293. </div>
  294. <div
  295. class="last"
  296. @click="nextOrpreSteps(1)"
  297. v-if="!(IsFollow && tType == 2)"
  298. @mouseover="isHovered1 = true"
  299. @mouseout="isHovered1 = false"
  300. >
  301. <div class="lastText">下一步</div>
  302. <div class="lastImg">
  303. <img
  304. :src="
  305. isHovered1
  306. ? require('../../assets/icon/newIcons/whiteNext.png')
  307. : require('../../assets/icon/newIcons/next.png')
  308. "
  309. alt=""
  310. />
  311. </div>
  312. </div>
  313. <div
  314. class="last"
  315. @click="juriVisible = true"
  316. v-if="tType == 1"
  317. @mouseover="isHovered2 = true"
  318. @mouseout="isHovered2 = false"
  319. >
  320. <div class="lastImg">
  321. <img
  322. :src="
  323. isHovered2
  324. ? require('../../assets/icon/newIcons/whiteLock.png')
  325. : require('../../assets/icon/newIcons/lock.png')
  326. "
  327. alt=""
  328. />
  329. </div>
  330. <div class="lastText">权限</div>
  331. </div>
  332. <div
  333. class="returnBtn1 returnIcon"
  334. @click.stop="
  335. goTo(
  336. '/courseDetail?userid=' +
  337. userid +
  338. '&oid=' +
  339. oid +
  340. '&org=' +
  341. org +
  342. '&cid=' +
  343. classId +
  344. '&courseId=' +
  345. id +
  346. '&tType=' +
  347. tType +
  348. '&screenType=' +
  349. screenType
  350. )
  351. "
  352. >
  353. <div class="lastImg">
  354. <img src="../../assets/icon/newIcon/return.png" alt="" />
  355. </div>
  356. <div class="lastText" style="color: #000">返回</div>
  357. </div>
  358. </div>
  359. <!-- <div
  360. class="returnBtn lockIcon"
  361. @click="juriVisible = true"
  362. v-if="tType == 1"
  363. >
  364. 权限
  365. </div>
  366. <div
  367. class="returnBtn vedioIcon"
  368. @click="startRecording"
  369. v-if="!videoStart && (tType == 1 || tType == 4)"
  370. >
  371. 录制
  372. </div>
  373. <div
  374. class="returnBtn"
  375. @click="stopRecording"
  376. v-else-if="tType == 1 || tType == 4"
  377. style="background: #ee5255"
  378. >
  379. 下载
  380. </div>
  381. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  382. 评论
  383. </div>
  384. <div
  385. class="returnBtn"
  386. @click="nextOrpreSteps(0)"
  387. v-if="!(IsFollow && tType == 2)"
  388. >
  389. 上一步
  390. </div>
  391. <div
  392. class="returnBtn"
  393. @click="nextOrpreSteps(1)"
  394. v-if="!(IsFollow && tType == 2)"
  395. >
  396. 下一步
  397. </div>
  398. <div class="returnBtn" @click="refreshCourse">刷新</div>
  399. <div
  400. class="returnBtn returnIcon"
  401. @click.stop="
  402. goTo(
  403. '/courseDetail?userid=' +
  404. userid +
  405. '&oid=' +
  406. oid +
  407. '&org=' +
  408. org +
  409. '&cid=' +
  410. classId +
  411. '&courseId=' +
  412. id +
  413. '&tType=' +
  414. tType +
  415. '&screenType=' +
  416. screenType
  417. )
  418. "
  419. >
  420. 返回
  421. </div> -->
  422. </div>
  423. </div>
  424. <div
  425. class="isNoMessage"
  426. v-if="
  427. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  428. .chapterData.length == 0 &&
  429. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  430. .toolChoose[0].tool.length == 0 &&
  431. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  432. .taskDetail == '' &&
  433. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  434. .eList &&
  435. !(
  436. courseDetail.userid == userid ||
  437. (courseDetail.course_teacher &&
  438. courseDetail.course_teacher.indexOf(userid) != -1)
  439. )
  440. "
  441. >
  442. <img src="../../assets/icon/isNoMessage.png" alt />
  443. </div>
  444. <div class="study_top" :class="{ pzClass: pzDialog }">
  445. <div
  446. class="vedioBox"
  447. v-if="
  448. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  449. .taskDetail != '' ||
  450. vChapterData[taskCount].length > 0 ||
  451. fileC[taskCount].length > 0
  452. "
  453. style="border-radius: 0 0 20px 20px"
  454. >
  455. <div
  456. class="taskBox"
  457. v-if="
  458. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  459. .taskDetail != ''
  460. "
  461. >
  462. <div
  463. style="
  464. display: flex;
  465. flex-wrap: nowrap;
  466. flex-direction: column;
  467. position: relative;
  468. "
  469. >
  470. <div
  471. style="
  472. padding: 15px 0;
  473. line-height: 29px;
  474. font-size: 18px;
  475. color: #0e1e33;
  476. "
  477. class="cont"
  478. v-if="
  479. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  480. .taskDetail != ''
  481. "
  482. v-html="
  483. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  484. .taskDetail
  485. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  486. taskCount
  487. ].taskDetail
  488. : '暂无描述'
  489. "
  490. ></div>
  491. </div>
  492. </div>
  493. <div
  494. class="student_head"
  495. v-if="
  496. vChapterData[taskCount].length > 0 ||
  497. fileC[taskCount].length > 0
  498. "
  499. >
  500. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  501. <div
  502. :class="
  503. contentDialog == false
  504. ? 'box_course isContentCss'
  505. : 'box_course'
  506. "
  507. v-if="
  508. vChapterData.length > 0 &&
  509. vChapterData[taskCount] &&
  510. showType !== ''
  511. "
  512. >
  513. <div class="wheel" style="height: auto" v-if="showType === 0">
  514. <div
  515. class="workd_media"
  516. style="height: 650px; width: calc(100% - 50px)"
  517. >
  518. <video-player
  519. class="video-player vjs-custom-skin"
  520. :class="contentDialog == false ? 'isAllWidth' : ''"
  521. :playsinline="true"
  522. :options="playerO[taskCount]"
  523. @play="onPlayerPlay($event)"
  524. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  525. ></video-player>
  526. </div>
  527. </div>
  528. <div
  529. class="wheel"
  530. v-if="showType == 1"
  531. style="
  532. box-shadow: 0 0 6px 1px #f2f2f2;
  533. width: 95%;
  534. margin: 0 auto;
  535. background: #f1f1f1;
  536. "
  537. >
  538. <div class="title">查看文档</div>
  539. <el-form class="textBox">
  540. <el-form-item class="textTitle">
  541. <div style="font-size: 22px">
  542. {{ text.name }}
  543. </div>
  544. </el-form-item>
  545. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  546. <div v-html="text.url" class="textContent cont"></div>
  547. </el-form>
  548. </div>
  549. <div
  550. class="wheel"
  551. v-if="
  552. pptImgUrl1.indexOf(
  553. 'https://view.officeapps.live.com/op/view.aspx?src='
  554. ) != -1 && showType == 2
  555. "
  556. style="width: 95%; margin: 0 auto"
  557. >
  558. <iframe
  559. style="width: 100%; height: 100%; border: none"
  560. :src="pptImgUrl1"
  561. ></iframe>
  562. </div>
  563. <div
  564. class="wheel"
  565. v-else-if="showType == 2"
  566. style="width: 95%; margin: 0 auto"
  567. >
  568. <iframe
  569. style="width: 100%; height: 100%; border: none"
  570. security="restricted"
  571. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  572. :src="pptImgUrl1"
  573. ></iframe>
  574. </div>
  575. <div
  576. class="wheel"
  577. v-if="showType == 3"
  578. style="width: 95%; margin: 0 auto"
  579. >
  580. <pdf
  581. :pdfUrl="pptImgUrl1"
  582. style="width: 100%; height: 100%; overflow: auto"
  583. ></pdf>
  584. </div>
  585. <div
  586. class="wheel"
  587. v-if="showType == 4"
  588. style="width: 95%; margin: 0 auto"
  589. >
  590. <el-image
  591. :src="pptImgUrl1"
  592. fit="contain"
  593. style="width: 100%; height: 100%; cursor: pointer"
  594. @click="previewImg(pptImgUrl1)"
  595. ></el-image>
  596. </div>
  597. </div>
  598. <div
  599. class="pButton"
  600. style="position: absolute; right: 20px; top: 0; z-index: 998"
  601. v-if="!contentDialog"
  602. @click="setContent(true)"
  603. >
  604. <!-- 批 -->
  605. <img
  606. src="../../assets/icon/newIcons/isLeft.png"
  607. style="width: 45px"
  608. alt=""
  609. />
  610. </div>
  611. <div
  612. v-if="contentDialog == true"
  613. :style="{
  614. width:
  615. (vChapterData[taskCount].length > 0 ||
  616. fileC[taskCount].length > 0) &&
  617. showType === ''
  618. ? 'calc(100%)'
  619. : '300px',
  620. margin:
  621. (vChapterData[taskCount].length > 0 ||
  622. fileC[taskCount].length > 0) &&
  623. showType === ''
  624. ? '0 15px'
  625. : '0 15px 0 0',
  626. }"
  627. >
  628. <div
  629. class="vedioList"
  630. v-if="
  631. vChapterData[taskCount].length > 0 ||
  632. fileC[taskCount].length > 0
  633. "
  634. style="height: 650px"
  635. >
  636. <div class="navCorOpenBox">
  637. <div class="navTitile">内容列表:</div>
  638. <div class="navCorOpen" @click="setContent(false)">
  639. <img
  640. src="../../assets/icon/newIcons/isRight.png"
  641. alt=""
  642. />
  643. </div>
  644. </div>
  645. <div class="navBox">
  646. <div
  647. v-show="
  648. vChapterData[taskCount].length > 0 ||
  649. fileC[taskCount].length > 0
  650. "
  651. style="padding: 10px 0 25px 0"
  652. >
  653. <div
  654. class="vedioTimeBox"
  655. v-for="(vitem, vindex) in vChapterData[taskCount]"
  656. :key="vindex + '1'"
  657. >
  658. <div class="navListItem" v-if="vitem.type == 2">
  659. <div
  660. @click="lookVedio(vitem.url, vindex)"
  661. class="navText"
  662. :class="isClickNav == vindex ? 'isClickNav' : ''"
  663. >
  664. <span v-if="vitem.text">{{ vitem.text }}-</span
  665. >{{ vitem.name }}
  666. </div>
  667. <div class="downIcon" @click="downloadFile2(vitem)">
  668. <img
  669. src="../../assets/icon/newIcon/down.png"
  670. alt
  671. />
  672. </div>
  673. </div>
  674. <div class="navListItem" v-if="vitem.type == 6">
  675. <div
  676. @click="lookText(taskCount, vindex)"
  677. class="navText"
  678. :class="isClickNav == vindex ? 'isClickNav' : ''"
  679. >
  680. {{ vitem.name }}.doc
  681. </div>
  682. <div
  683. class="downIcon"
  684. @click="checkFileFull1(vitem.type, vitem)"
  685. >
  686. <img
  687. src="../../assets/icon/newIcon/allScreen.png"
  688. alt
  689. />
  690. </div>
  691. </div>
  692. <div
  693. class="navListItem"
  694. v-if="vitem.type == 8 || vitem.type == 14"
  695. >
  696. <div
  697. @click="doUrl(vitem.url, vindex)"
  698. class="navText"
  699. :class="isClickNav == vindex ? 'isClickNav' : ''"
  700. >
  701. {{ vitem.title ? vitem.title : vitem.url }}
  702. </div>
  703. <div
  704. class="downIcon"
  705. @click="checkFileFull1(vitem.type, vitem)"
  706. >
  707. <img
  708. src="../../assets/icon/newIcon/allScreen.png"
  709. alt
  710. />
  711. </div>
  712. </div>
  713. <div class="navListItem" v-if="vitem.type == 3">
  714. <div
  715. @click="downFile(vitem, vindex)"
  716. class="navText"
  717. :class="isClickNav == vindex ? 'isClickNav' : ''"
  718. >
  719. <span v-if="vitem.text">{{ vitem.text }}-</span
  720. >{{ vitem.name }}
  721. </div>
  722. <div
  723. class="downIcon"
  724. @click="checkFileFull1(vitem.type, vitem)"
  725. >
  726. <img
  727. src="../../assets/icon/newIcon/allScreen.png"
  728. alt
  729. />
  730. </div>
  731. <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div>
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 12">
  739. <div class="navText" @click="downloadFile2(vitem)">
  740. <span v-if="vitem.text">{{ vitem.text }}-</span
  741. >{{ vitem.name }}
  742. </div>
  743. <div
  744. class="downIcon"
  745. @click="checkFileFull1(vitem.type, vitem)"
  746. >
  747. <img
  748. src="../../assets/icon/newIcon/allScreen.png"
  749. alt
  750. />
  751. </div>
  752. <div class="downIcon" @click="downloadFile2(vitem)">
  753. <img
  754. src="../../assets/icon/newIcon/down.png"
  755. alt
  756. />
  757. </div>
  758. </div>
  759. <div class="navListItem" v-if="vitem.type == 13">
  760. <div
  761. class="navText"
  762. @click="checkPhoto(vitem, vindex)"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.name }}
  766. </div>
  767. <div class="downIcon" @click="downloadFile2(vitem)">
  768. <img
  769. src="../../assets/icon/newIcon/down.png"
  770. alt
  771. />
  772. </div>
  773. </div>
  774. </div>
  775. <div
  776. class="fileC_box"
  777. v-if="fileC[taskCount].length > 0"
  778. >
  779. <div class="fileC_title">以下文件不支持预览</div>
  780. <div
  781. class="vedioTimeBox"
  782. v-for="(vitem, vindex) in fileC[taskCount]"
  783. :key="vindex + '1'"
  784. >
  785. <div class="navListItem" v-if="vitem.type == 12">
  786. <div class="navText" style="color: #acb4bf">
  787. <span v-if="vitem.text">{{ vitem.text }}-</span
  788. >{{ vitem.name }}
  789. </div>
  790. <div
  791. class="downIcon"
  792. @click="downloadFile2(vitem)"
  793. >
  794. <img
  795. src="../../assets/icon/newIcon/down.png"
  796. alt
  797. />
  798. </div>
  799. </div>
  800. </div>
  801. </div>
  802. </div>
  803. </div>
  804. </div>
  805. </div>
  806. </div>
  807. <div style="width: calc(100% - 315px)">
  808. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  809. <!-- <el-button
  810. type="primary"
  811. class="newButton"
  812. @click="checkFileFull(showType, pptImgUrl1)"
  813. >全屏查看</el-button
  814. >
  815. <el-button
  816. type="primary"
  817. class="newButton"
  818. @click="downloadFile(pptImgUrl1)"
  819. v-if="showType != 2"
  820. >文件下载</el-button
  821. > -->
  822. <el-button
  823. class="newButton"
  824. v-if="
  825. showType == 2 &&
  826. pptImgUrl1.indexOf(
  827. 'https://view.officeapps.live.com/op/view.aspx?src='
  828. ) == -1
  829. "
  830. type="primary"
  831. @click="openLine(pptImgUrl1)"
  832. >打开链接
  833. </el-button>
  834. </div>
  835. <!-- <div
  836. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  837. v-if="showType == 1"
  838. >
  839. <el-button
  840. type="primary"
  841. class="newButton"
  842. @click="checkFileFull(showType, text)"
  843. >全屏查看</el-button
  844. >
  845. </div> -->
  846. </div>
  847. </div>
  848. </div>
  849. <div class="student_body" v-resize="resize">
  850. <div
  851. class="vedioBox"
  852. :style="{
  853. borderRadius:
  854. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  855. .taskDetail == '' &&
  856. vChapterData[taskCount].length == 0 &&
  857. fileC[taskCount].length == 0
  858. ? '0 0 20px 20px'
  859. : '20px',
  860. }"
  861. v-if="
  862. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  863. .toolChoose[0].tool &&
  864. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  865. .toolChoose[0].tool.length > 0
  866. "
  867. >
  868. <div
  869. class="toolHeng2"
  870. style="position: relative"
  871. v-if="
  872. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  873. .toolChoose[0].tool &&
  874. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  875. .toolChoose[0].tool.length &&
  876. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  877. .toolChoose[0].tool.length > 0
  878. "
  879. >
  880. <div class="workNav">工作区</div>
  881. <div
  882. class="filebox"
  883. style="flex-wrap: nowrap"
  884. v-for="(tool, toolIndex) in chapInfoList[courseType]
  885. .chapterInfo[0].taskJson[taskCount].toolChoose"
  886. :key="toolIndex"
  887. >
  888. <div class="bzBox">
  889. <div class="yCss"></div>
  890. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  891. 工具{{ toolIndex + 1 }}
  892. </div>
  893. <div
  894. v-if="timeWorkList[toolIndex].length > 0"
  895. style="margin: 0 0 0 10px"
  896. >
  897. {{
  898. timeWorkList[toolIndex][0].time
  899. ? "时间:" + timeWorkList[toolIndex][0].time
  900. : ""
  901. }}
  902. </div>
  903. </div>
  904. <div class="toolBox">
  905. <div>
  906. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  907. :key="indexTool"-->
  908. <!-- <div class="iframeBox">
  909. <div
  910. class="addPoint isBorder"
  911. v-for="(tooC, toolCIndex) in tool.tool"
  912. :key="toolCIndex"
  913. >
  914. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  915. <div
  916. class="iframeName"
  917. >
  918. 电子白板
  919. </div>
  920. <iframe
  921. src="https://iwb.cocorobo.cn/"
  922. ref="whiteBoard"
  923. ></iframe>
  924. </div>
  925. </div>
  926. </div>-->
  927. <div class="noiframeBox">
  928. <div
  929. class="addPoint"
  930. v-for="(tooC, toolCIndex) in tool.tool"
  931. :key="toolCIndex"
  932. >
  933. <div v-if="tooC == 1">
  934. <img
  935. src="../../assets/icon/secondToolList/whiteBoard.png"
  936. alt
  937. @click="addTools(tooC, toolIndex, taskCount)"
  938. />
  939. <div style="margin: 5px 0">电子白板</div>
  940. </div>
  941. <div v-if="tooC == 3">
  942. <img
  943. src="../../assets/icon/secondToolList/mindMapping.png"
  944. alt
  945. @click="addTools(tooC, toolIndex, taskCount)"
  946. />
  947. <div style="margin: 5px 0">思维导图</div>
  948. </div>
  949. <div v-if="tooC == 6">
  950. <img
  951. src="../../assets/icon/secondToolList/doc.png"
  952. alt
  953. @click="addTools(tooC, toolIndex, taskCount)"
  954. />
  955. <div style="margin: 5px 0">协同文档</div>
  956. </div>
  957. <div v-if="tooC == 7">
  958. <img
  959. src="../../assets/icon/secondToolList/mindNetwork.png"
  960. alt
  961. @click="addTools(tooC, toolIndex, taskCount)"
  962. />
  963. <div style="margin: 5px 0">思维网格</div>
  964. </div>
  965. <div v-if="tooC == 8">
  966. <img
  967. src="../../assets/icon/secondToolList/library.png"
  968. alt
  969. @click="addTools(tooC, toolIndex, taskCount)"
  970. />
  971. <div style="margin: 5px 0">素材库</div>
  972. </div>
  973. <div v-if="tooC == 17">
  974. <img
  975. src="../../assets/icon/secondToolList/library.png"
  976. alt
  977. @click="addTools(tooC, toolIndex, taskCount)"
  978. />
  979. <div style="margin: 5px 0">学习资料</div>
  980. </div>
  981. <div v-if="tooC == 2">
  982. <img
  983. @click="addTools(tooC, toolIndex, taskCount)"
  984. src="../../assets/icon/secondToolList/note.png"
  985. alt
  986. />
  987. <div style="margin: 5px 0">便签</div>
  988. </div>
  989. <div v-if="tooC == 4">
  990. <img
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. src="../../assets/icon/thirdToolList/ask.png"
  993. alt
  994. />
  995. <div style="margin: 5px 0">问卷调查</div>
  996. <div class="upload_toolBtn" v-if="tType==='1'" @click="openStatisticalAnalysis(tooC,toolIndex,taskCount)"
  997. style="position: absolute;right: 33px;top: -30px;">
  998. 统计分析
  999. </div>
  1000. </div>
  1001. <div v-if="tooC == 45">
  1002. <img
  1003. @click="addTools(tooC, toolIndex, taskCount)"
  1004. src="../../assets/icon/thirdToolList/choose.png"
  1005. alt
  1006. />
  1007. <div style="margin: 5px 0">选择题</div>
  1008. </div>
  1009. <!-- <div v-if="tooC == 5">
  1010. <img
  1011. @click="addTools(tooC, toolIndex, taskCount)"
  1012. src="../../assets/icon/thirdToolList/score.png"
  1013. alt
  1014. />
  1015. <div style="margin: 5px 0">量规评分</div>
  1016. </div> -->
  1017. <div v-if="tooC == 10">
  1018. <img
  1019. @click="addTools(tooC, toolIndex, taskCount)"
  1020. src="../../assets/icon/thirdToolList/time.png"
  1021. alt
  1022. />
  1023. <div style="margin: 5px 0">倒计时</div>
  1024. </div>
  1025. <div v-if="tooC == 15">
  1026. <img
  1027. @click="addTools(tooC, toolIndex, taskCount)"
  1028. src="../../assets/icon/thirdToolList/answer.png"
  1029. alt
  1030. />
  1031. <div style="margin: 5px 0">问答</div>
  1032. </div>
  1033. <div v-if="tooC == 26">
  1034. <img
  1035. @click="addTools(tooC, toolIndex, taskCount)"
  1036. src="../../assets/icon/thirdToolList/courseDesign.png"
  1037. alt
  1038. />
  1039. <div style="margin: 5px 0">课程设计</div>
  1040. </div>
  1041. <div v-if="tooC == 18">
  1042. <img
  1043. @click="addTools(tooC, toolIndex, taskCount)"
  1044. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1045. alt
  1046. />
  1047. <div style="margin: 5px 0">训练服务器</div>
  1048. </div>
  1049. <div v-if="tooC == 16">
  1050. <img
  1051. @click="addTools(tooC, toolIndex, taskCount)"
  1052. src="../../assets/icon/thirdToolList/work.png"
  1053. alt
  1054. />
  1055. <div style="margin: 5px 0">作业提交</div>
  1056. </div>
  1057. <div v-if="tooC == 50">
  1058. <img
  1059. @click="addTools(tooC, toolIndex, taskCount)"
  1060. src="../../assets/icon/thirdToolList/plwork.png"
  1061. alt
  1062. />
  1063. <div style="margin: 5px 0">批量上传</div>
  1064. </div>
  1065. <div v-if="tooC == 21">
  1066. <img
  1067. @click="addTools(tooC, toolIndex, taskCount)"
  1068. src="../../assets/icon/fourthToolList/program.png"
  1069. alt
  1070. />
  1071. <div style="margin: 5px 0">AIoT Blockly</div>
  1072. </div>
  1073. <!-- <div v-if="tooC == 22">
  1074. <img
  1075. @click="addTools(tooC, toolIndex, taskCount)"
  1076. src="../../assets/icon/fourthToolList/program.png"
  1077. alt
  1078. />
  1079. <div style="margin: 5px 0">AI体验</div>
  1080. </div> -->
  1081. <div v-if="tooC == 23">
  1082. <img
  1083. @click="addTools(tooC, toolIndex, taskCount)"
  1084. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1085. alt
  1086. />
  1087. <div style="margin: 5px 0">AI Python</div>
  1088. </div>
  1089. <div v-if="tooC == 24">
  1090. <img
  1091. @click="addTools(tooC, toolIndex, taskCount)"
  1092. src="../../assets/icon/fourthToolList/AIprogram.png"
  1093. alt
  1094. />
  1095. <div style="margin: 5px 0">AI Blockly</div>
  1096. </div>
  1097. <div v-if="tooC == 25">
  1098. <img
  1099. @click="addTools(tooC, toolIndex, taskCount)"
  1100. src="../../assets/icon/thirdToolList/evalua.png"
  1101. alt
  1102. />
  1103. <div style="margin: 5px 0">目标管理</div>
  1104. </div>
  1105. <div v-if="tooC == 31">
  1106. <img
  1107. @click="addTools(tooC, toolIndex, taskCount)"
  1108. src="../../assets/icon/secondToolList/networkPanel.png"
  1109. alt
  1110. />
  1111. <div style="margin: 5px 0">数学画板</div>
  1112. </div>
  1113. <div v-if="tooC == 28">
  1114. <img
  1115. @click="addTools(tooC, toolIndex, taskCount)"
  1116. src="../../assets/icon/secondToolList/translation.png"
  1117. alt
  1118. />
  1119. <div style="margin: 5px 0">翻译</div>
  1120. </div>
  1121. <div v-if="tooC == 37">
  1122. <img
  1123. @click="addTools(tooC, toolIndex, taskCount)"
  1124. src="../../assets/icon/secondToolList/mohe.png"
  1125. alt
  1126. />
  1127. <div style="margin: 5px 0">魔盒识字</div>
  1128. </div>
  1129. <div v-if="tooC == 38">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/secondToolList/24game.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">24点</div>
  1136. </div>
  1137. <div v-if="tooC == 39">
  1138. <img
  1139. @click="addTools(tooC, toolIndex, taskCount)"
  1140. src="../../assets/icon/secondToolList/GeoGebra.png"
  1141. alt
  1142. />
  1143. <div style="margin: 5px 0">GeoGebra</div>
  1144. </div>
  1145. <div v-if="tooC == 32">
  1146. <img
  1147. @click="addTools(tooC, toolIndex, taskCount)"
  1148. src="../../assets/icon/thirdToolList/code.png"
  1149. alt
  1150. />
  1151. <div style="margin: 5px 0">源码编辑</div>
  1152. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1153. style="position: absolute;left: 110px;bottom: 30px;">
  1154. 上传文件
  1155. <input type="file" accept="*" style="display: none"
  1156. @change="beforeUpload1($event, 7, toolIndex)" />
  1157. </div> -->
  1158. </div>
  1159. <div v-if="tooC == 40">
  1160. <img
  1161. @click="addTools(tooC, toolIndex, taskCount)"
  1162. src="../../assets/icon/secondToolList/eval.png"
  1163. alt
  1164. />
  1165. <div style="margin: 5px 0">个人评价</div>
  1166. </div>
  1167. <div v-if="tooC == 41">
  1168. <img
  1169. @click="addTools(tooC, toolIndex, taskCount)"
  1170. src="../../assets/icon/thirdToolList/select.png"
  1171. alt
  1172. />
  1173. <div style="margin: 5px 0">选择匹配</div>
  1174. </div>
  1175. <div v-if="tooC == 44">
  1176. <img
  1177. @click="addTools(tooC, toolIndex, taskCount)"
  1178. src="../../assets/icon/thirdToolList/hanClass.png"
  1179. alt
  1180. />
  1181. <div style="margin: 5px 0">汉字宫</div>
  1182. </div>
  1183. <div v-if="tooC == 47">
  1184. <img
  1185. @click="addTools(tooC, toolIndex, taskCount)"
  1186. src="../../assets/icon/fourthToolList/conSentences.png"
  1187. alt
  1188. />
  1189. <div style="margin: 5px 0">排序</div>
  1190. </div>
  1191. <div v-if="tooC == 48">
  1192. <img
  1193. @click="addTools(tooC, toolIndex, taskCount)"
  1194. src="../../assets/icon/fourthToolList/table.png"
  1195. alt
  1196. />
  1197. <div style="margin: 5px 0">表格</div>
  1198. </div>
  1199. <div v-if="tooC == 52">
  1200. <img
  1201. @click="addTools(tooC, toolIndex, taskCount)"
  1202. src="../../assets/icon/fourthToolList/text.png"
  1203. alt
  1204. />
  1205. <div style="margin: 5px 0">文档</div>
  1206. </div>
  1207. <div v-if="tooC == 49">
  1208. <img
  1209. @click="addTools(tooC, toolIndex, taskCount)"
  1210. src="../../assets/icon/fourthToolList/group.png"
  1211. alt
  1212. />
  1213. <div style="margin: 5px 0">学生分组</div>
  1214. </div>
  1215. <div v-if="tooC == 57">
  1216. <img
  1217. @click="addTools(tooC, toolIndex, taskCount)"
  1218. src="../../assets/icon/fourthToolList/cocopi.png"
  1219. alt
  1220. />
  1221. <div style="margin: 5px 0">CocoPi</div>
  1222. </div>
  1223. <div v-if="tooC == 58">
  1224. <img
  1225. @click="addTools(tooC, toolIndex, taskCount)"
  1226. src="../../assets/icon/fourthToolList/car.png"
  1227. alt
  1228. />
  1229. <div style="margin: 5px 0">模拟驾驶</div>
  1230. </div>
  1231. <div v-if="tooC == 59">
  1232. <img
  1233. @click="addTools(tooC, toolIndex, taskCount)"
  1234. src="../../assets/icon/fourthToolList/lineSearch.png"
  1235. alt
  1236. />
  1237. <div style="margin: 5px 0">路径搜索</div>
  1238. </div>
  1239. <div v-if="tooC == 60">
  1240. <img
  1241. @click="addTools(tooC, toolIndex, taskCount)"
  1242. src="../../assets/icon/fourthToolList/deepLearning.png"
  1243. alt
  1244. />
  1245. <div style="margin: 5px 0">深度学习</div>
  1246. </div>
  1247. <div v-if="tooC == 61">
  1248. <img
  1249. @click="addTools(tooC, toolIndex, taskCount)"
  1250. src="../../assets/icon/fourthToolList/allHistory.png"
  1251. alt
  1252. />
  1253. <div style="margin: 5px 0">全历史</div>
  1254. </div>
  1255. <div v-if="tooC == 62">
  1256. <img
  1257. @click="addTools(tooC, toolIndex, taskCount)"
  1258. src="../../assets/icon/fourthToolList/interVideo.png"
  1259. alt
  1260. />
  1261. <div style="margin: 5px 0">交互视频</div>
  1262. </div>
  1263. <div v-if="tooC == 63">
  1264. <img
  1265. @click="addTools(tooC, toolIndex, taskCount)"
  1266. src="../../assets/icon/fourthToolList/Wood.png"
  1267. alt
  1268. />
  1269. <div style="margin: 5px 0">海龟编程</div>
  1270. </div>
  1271. <div v-if="tooC == 71">
  1272. <img
  1273. @click="addTools(tooC, toolIndex, taskCount)"
  1274. src="../../assets/icon/fourthToolList/chatgpt.png"
  1275. alt
  1276. />
  1277. <div style="margin: 5px 0">AI智能体</div>
  1278. </div>
  1279. <div v-if="tooC == 65">
  1280. <img
  1281. @click="addTools(tooC, toolIndex, taskCount)"
  1282. src="../../assets/icon/firstToolList/pickPeople.png"
  1283. alt
  1284. />
  1285. <div style="margin: 5px 0">挑人</div>
  1286. </div>
  1287. <div v-if="tooC == 66">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/secondToolList/formulaEdi.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">公式编辑</div>
  1294. </div>
  1295. <div v-if="tooC == 67">
  1296. <img
  1297. @click="addTools(tooC, toolIndex, taskCount)"
  1298. src="../../assets/icon/secondToolList/molStr.png"
  1299. alt
  1300. />
  1301. <div style="margin: 5px 0">分子结构</div>
  1302. </div>
  1303. <div v-if="tooC == 68">
  1304. <img
  1305. @click="addTools(tooC, toolIndex, taskCount)"
  1306. src="../../assets/icon/secondToolList/timeAxis.png"
  1307. alt
  1308. />
  1309. <div style="margin: 5px 0">时间轴</div>
  1310. </div>
  1311. <div v-if="tooC == 69">
  1312. <img
  1313. @click="addTools(tooC, toolIndex, taskCount)"
  1314. src="../../assets/icon/secondToolList/english.png"
  1315. alt
  1316. />
  1317. <div style="margin: 5px 0">英语写作</div>
  1318. </div>
  1319. <div v-if="tooC == 70">
  1320. <img
  1321. @click="addTools(tooC, toolIndex, taskCount)"
  1322. src="../../assets/icon/thirdToolList/englishVoice.png"
  1323. alt
  1324. />
  1325. <div style="margin: 5px 0">英语口语</div>
  1326. </div>
  1327. </div>
  1328. </div>
  1329. </div>
  1330. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1331. <!-- <div class="toolTitle">工具描述</div> -->
  1332. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1333. <div style="height:100%;"
  1334. v-html="contentConvent(tool.toolDetail)"
  1335. v-if="toolDetailIndex != toolIndex"
  1336. ></div>
  1337. <div v-else @click.stop="" style="height:100%;">
  1338. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1339. </div>
  1340. </div>
  1341. <el-button
  1342. type="primary"
  1343. v-if="tool.tool[0] == 32"
  1344. style="position: absolute; right: 30px; top: -45px"
  1345. @click="addImg($event)"
  1346. >上传作业<input
  1347. type="file"
  1348. accept="*"
  1349. style="display: none"
  1350. @change="beforeUpload1($event, 7, toolIndex)"
  1351. /></el-button>
  1352. <el-button
  1353. type="primary"
  1354. v-if="tool.tool[0] == 15"
  1355. style="position: absolute; right: 30px; top: -45px"
  1356. @click="openWordCloud(toolIndex)"
  1357. >生成词云</el-button
  1358. >
  1359. <el-button
  1360. type="primary"
  1361. v-if="
  1362. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1363. "
  1364. style="position: absolute; right: 30px; top: -45px"
  1365. @click="uploadWorks(toolIndex)"
  1366. >导出作业</el-button
  1367. >
  1368. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1369. position: absolute;
  1370. right: 30px;
  1371. transform: translateY(-130%);
  1372. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1373. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1374. </div>
  1375. <div
  1376. v-if="
  1377. tType &&
  1378. tType == 2 &&
  1379. !sIsOpen &&
  1380. tool.tool.indexOf(16) != -1
  1381. "
  1382. class="worksBox"
  1383. >
  1384. <div
  1385. class="zuoyeYulan"
  1386. v-if="workStudent[toolIndex].length > 0"
  1387. >
  1388. <span class="worksTitle">作业预览</span>
  1389. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1390. </div>
  1391. <div
  1392. class="worksDetailBox"
  1393. v-if="workStudent[toolIndex].length > 0"
  1394. >
  1395. <div
  1396. class="works"
  1397. style="
  1398. width: 200px;
  1399. height: 140px;
  1400. margin: 10px 10px 10px 0;
  1401. box-shadow: 0 0 6px 1px #dfdada;
  1402. "
  1403. v-for="(w, wIndex) in workStudent[toolIndex]"
  1404. :key="wIndex"
  1405. >
  1406. <div class="workImg" v-if="w.type == 0">
  1407. <img
  1408. :src="w.works"
  1409. @click="previewImg(w.works,w)"
  1410. alt
  1411. />
  1412. <div
  1413. class="answerScore"
  1414. v-if="w.score"
  1415. @click.stop="openScore(w)"
  1416. :class="{
  1417. rightW:
  1418. w.userid == userid || tType == 1 || tType == 4,
  1419. }"
  1420. >
  1421. {{ JSON.parse(w.score).wScore }}分
  1422. </div>
  1423. <div
  1424. class="answerScore"
  1425. @click.stop="openScore(w)"
  1426. v-else-if="courseDetail.userid == userid"
  1427. :class="{
  1428. rightW:
  1429. w.userid == userid || tType == 1 || tType == 4,
  1430. }"
  1431. >
  1432. 评分
  1433. </div>
  1434. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  1435. <el-popover
  1436. placement="top"
  1437. width="318"
  1438. trigger="hover"
  1439. >
  1440. <markScore
  1441. :loading="AIloading[toolIndex][wIndex].loading"
  1442. :markScoreVisible="markScoreVisible"
  1443. :ref="`markSco${toolIndex}${wIndex}`"
  1444. @updateLoading=updateLoading
  1445. @updateDocSco=updateDocSco
  1446. @refreshOther=refreshOther
  1447. @markScoreDig=markScoreDig
  1448. :tool="tool"
  1449. :wIndex="wIndex"
  1450. :scoCon="w"
  1451. :toolIndex="toolIndex"
  1452. :key="refreshKey"
  1453. :stage="courseType"
  1454. :task="taskCount"
  1455. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1456. >
  1457. </markScore>
  1458. <div
  1459. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1460. slot="reference"
  1461. >
  1462. <span v-if="AIloading[toolIndex][wIndex].sco">
  1463. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1464. </span>
  1465. <span v-else>
  1466. 评分
  1467. </span>
  1468. </div>
  1469. </el-popover>
  1470. </div>
  1471. <img
  1472. class="deleteImg"
  1473. src="../../assets/deleteworks.png"
  1474. v-if="
  1475. w.userid == userid || tType == 1 || tType == 4
  1476. "
  1477. @click.stop="deleteWorks(w.wid)"
  1478. alt
  1479. />
  1480. </div>
  1481. <div class="workImg" v-if="w.type == 1">
  1482. <img :src="word" @click="openFile(w.works)" alt />
  1483. <div
  1484. class="answerScore"
  1485. v-if="w.score"
  1486. @click.stop="openScore(w)"
  1487. :class="{
  1488. rightW:
  1489. w.userid == userid || tType == 1 || tType == 4,
  1490. }"
  1491. >
  1492. {{ JSON.parse(w.score).wScore }}分
  1493. </div>
  1494. <div
  1495. class="answerScore"
  1496. @click.stop="openScore(w)"
  1497. v-else-if="courseDetail.userid == userid"
  1498. :class="{
  1499. rightW:
  1500. w.userid == userid || tType == 1 || tType == 4,
  1501. }"
  1502. >
  1503. 评分
  1504. </div>
  1505. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  1506. <el-popover
  1507. placement="top"
  1508. width="318"
  1509. trigger="hover"
  1510. >
  1511. <markScore
  1512. :loading="AIloading[toolIndex][wIndex].loading"
  1513. :markScoreVisible="markScoreVisible"
  1514. :ref="`markSco${toolIndex}${wIndex}`"
  1515. @updateLoading=updateLoading
  1516. @updateDocSco=updateDocSco
  1517. @refreshOther=refreshOther
  1518. @markScoreDig=markScoreDig
  1519. :tool="tool"
  1520. :wIndex="wIndex"
  1521. :scoCon="w"
  1522. :toolIndex="toolIndex"
  1523. :key="refreshKey"
  1524. :stage="courseType"
  1525. :task="taskCount"
  1526. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1527. >
  1528. </markScore>
  1529. <div
  1530. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1531. slot="reference"
  1532. >
  1533. <span v-if="AIloading[toolIndex][wIndex].sco">
  1534. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1535. </span>
  1536. <span v-else>
  1537. 评分
  1538. </span>
  1539. </div>
  1540. </el-popover>
  1541. </div>
  1542. <img
  1543. class="deleteImg"
  1544. src="../../assets/deleteworks.png"
  1545. v-if="
  1546. w.userid == userid || tType == 1 || tType == 4
  1547. "
  1548. @click.stop="deleteWorks(w.wid)"
  1549. alt
  1550. />
  1551. </div>
  1552. <div class="workImg" v-if="w.type == 3">
  1553. <img
  1554. style="cursor: pointer"
  1555. :src="video"
  1556. @click="openVideo(w)"
  1557. alt
  1558. />
  1559. <div
  1560. class="answerScore"
  1561. v-if="w.score"
  1562. @click.stop="openScore(w)"
  1563. :class="{
  1564. rightW:
  1565. w.userid == userid || tType == 1 || tType == 4,
  1566. }"
  1567. >
  1568. {{ JSON.parse(w.score).wScore }}分
  1569. </div>
  1570. <div
  1571. class="answerScore"
  1572. @click.stop="openScore(w)"
  1573. v-else-if="courseDetail.userid == userid"
  1574. :class="{
  1575. rightW:
  1576. w.userid == userid || tType == 1 || tType == 4,
  1577. }"
  1578. >
  1579. 评分
  1580. </div>
  1581. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  1582. <el-popover
  1583. placement="top"
  1584. width="318"
  1585. trigger="hover"
  1586. >
  1587. <markScore
  1588. :loading="AIloading[toolIndex][wIndex].loading"
  1589. :markScoreVisible="markScoreVisible"
  1590. :ref="`markSco${toolIndex}${wIndex}`"
  1591. @updateLoading=updateLoading
  1592. @updateDocSco=updateDocSco
  1593. @refreshOther=refreshOther
  1594. @markScoreDig=markScoreDig
  1595. :tool="tool"
  1596. :wIndex="wIndex"
  1597. :scoCon="w"
  1598. :toolIndex="toolIndex"
  1599. :key="refreshKey"
  1600. :stage="courseType"
  1601. :task="taskCount"
  1602. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1603. >
  1604. </markScore>
  1605. <div
  1606. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1607. slot="reference"
  1608. >
  1609. <span v-if="AIloading[toolIndex][wIndex].sco">
  1610. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1611. </span>
  1612. <span v-else>
  1613. 评分
  1614. </span>
  1615. </div>
  1616. </el-popover>
  1617. </div>
  1618. <img
  1619. class="deleteImg"
  1620. src="../../assets/deleteworks.png"
  1621. v-if="
  1622. w.userid == userid || tType == 1 || tType == 4
  1623. "
  1624. @click.stop="deleteWorks(w.wid)"
  1625. alt
  1626. />
  1627. </div>
  1628. <div class="workImg" v-if="w.type == 12">
  1629. <img
  1630. style="cursor: pointer"
  1631. :src="word2"
  1632. @click="downloadFile(w.works)"
  1633. alt
  1634. />
  1635. <div
  1636. class="answerScore"
  1637. v-if="w.score"
  1638. @click.stop="openScore(w)"
  1639. :class="{
  1640. rightW:
  1641. w.userid == userid || tType == 1 || tType == 4,
  1642. }"
  1643. >
  1644. {{ JSON.parse(w.score).wScore }}分
  1645. </div>
  1646. <div
  1647. class="answerScore"
  1648. @click.stop="openScore(w)"
  1649. v-else-if="courseDetail.userid == userid"
  1650. :class="{
  1651. rightW:
  1652. w.userid == userid || tType == 1 || tType == 4,
  1653. }"
  1654. >
  1655. 评分
  1656. </div>
  1657. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  1658. <el-popover
  1659. placement="top"
  1660. width="318"
  1661. trigger="hover"
  1662. >
  1663. <markScore
  1664. :loading="AIloading[toolIndex][wIndex].loading"
  1665. :markScoreVisible="markScoreVisible"
  1666. :ref="`markSco${toolIndex}${wIndex}`"
  1667. @updateLoading=updateLoading
  1668. @updateDocSco=updateDocSco
  1669. @refreshOther=refreshOther
  1670. @markScoreDig=markScoreDig
  1671. :tool="tool"
  1672. :wIndex="wIndex"
  1673. :scoCon="w"
  1674. :toolIndex="toolIndex"
  1675. :key="refreshKey"
  1676. :stage="courseType"
  1677. :task="taskCount"
  1678. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1679. >
  1680. </markScore>
  1681. <div
  1682. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1683. slot="reference"
  1684. >
  1685. <span v-if="AIloading[toolIndex][wIndex].sco">
  1686. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1687. </span>
  1688. <span v-else>
  1689. 评分
  1690. </span>
  1691. </div>
  1692. </el-popover>
  1693. </div>
  1694. <img
  1695. class="deleteImg"
  1696. src="../../assets/deleteworks.png"
  1697. v-if="
  1698. w.userid == userid || tType == 1 || tType == 4
  1699. "
  1700. @click.stop="deleteWorks(w.wid)"
  1701. alt
  1702. />
  1703. </div>
  1704. <div class="worksName">
  1705. <div>{{ w.sName }}</div>
  1706. </div>
  1707. </div>
  1708. </div>
  1709. </div>
  1710. <div
  1711. v-if="
  1712. tType &&
  1713. tType == 2 &&
  1714. !sIsOpen &&
  1715. tool.tool.indexOf(32) != -1
  1716. "
  1717. class="worksBox"
  1718. >
  1719. <div
  1720. class="zuoyeYulan"
  1721. v-if="workStudent[toolIndex].length > 0"
  1722. >
  1723. <span class="worksTitle">作业预览</span>
  1724. </div>
  1725. <div
  1726. class="worksDetailBox"
  1727. v-if="workStudent[toolIndex].length > 0"
  1728. >
  1729. <div
  1730. class="works"
  1731. style="
  1732. width: 200px;
  1733. height: 140px;
  1734. margin: 10px 10px 10px 0;
  1735. box-shadow: 0 0 6px 1px #dfdada;
  1736. "
  1737. v-for="(w, wIndex) in workStudent[toolIndex]"
  1738. :key="wIndex"
  1739. >
  1740. <div class="workImg">
  1741. <img
  1742. :src="word2"
  1743. @click="downloadFile(w.works)"
  1744. alt
  1745. />
  1746. <div
  1747. class="answerScore"
  1748. v-if="w.score"
  1749. @click.stop="openScore(w)"
  1750. :class="{
  1751. rightW:
  1752. w.userid == userid || tType == 1 || tType == 4,
  1753. }"
  1754. >
  1755. {{ JSON.parse(w.score).wScore }}分
  1756. </div>
  1757. <div
  1758. class="answerScore"
  1759. @click.stop="openScore(w)"
  1760. v-else-if="courseDetail.userid == userid"
  1761. :class="{
  1762. rightW:
  1763. w.userid == userid || tType == 1 || tType == 4,
  1764. }"
  1765. >
  1766. 评分
  1767. </div>
  1768. <img
  1769. class="deleteImg"
  1770. src="../../assets/deleteworks.png"
  1771. v-if="
  1772. w.userid == userid || tType == 1 || tType == 4
  1773. "
  1774. @click.stop="deleteWorks(w.wid)"
  1775. alt
  1776. />
  1777. </div>
  1778. <div class="worksName">
  1779. <div>{{ w.sName }}</div>
  1780. </div>
  1781. </div>
  1782. </div>
  1783. </div>
  1784. <div
  1785. v-if="
  1786. tType &&
  1787. tType == 2 &&
  1788. !sIsOpen &&
  1789. tool.tool.indexOf(57) != -1
  1790. "
  1791. class="worksBox"
  1792. >
  1793. <div
  1794. class="zuoyeYulan"
  1795. v-if="workStudent[toolIndex].length > 0"
  1796. >
  1797. <span class="worksTitle">作业预览</span>
  1798. </div>
  1799. <div
  1800. class="worksDetailBox"
  1801. v-if="workStudent[toolIndex].length > 0"
  1802. >
  1803. <div
  1804. class="works"
  1805. style="
  1806. width: 200px;
  1807. height: 140px;
  1808. margin: 10px 10px 10px 0;
  1809. box-shadow: 0 0 6px 1px #dfdada;
  1810. "
  1811. v-for="(w, wIndex) in workStudent[toolIndex]"
  1812. :key="wIndex"
  1813. >
  1814. <div class="workImg">
  1815. <img
  1816. :src="word2"
  1817. @click="downloadFile(w.works)"
  1818. v-if="w.type == 12"
  1819. alt
  1820. />
  1821. <img
  1822. :src="word2"
  1823. @click="
  1824. openCocoPi(57, toolIndex, w.userid, w.sName)
  1825. "
  1826. v-else-if="w.type == 15"
  1827. alt
  1828. />
  1829. <div
  1830. class="answerScore"
  1831. v-if="w.score"
  1832. @click.stop="openScore(w)"
  1833. :class="{
  1834. rightW:
  1835. w.userid == userid || tType == 1 || tType == 4,
  1836. }"
  1837. >
  1838. {{ JSON.parse(w.score).wScore }}分
  1839. </div>
  1840. <div
  1841. class="answerScore"
  1842. @click.stop="openScore(w)"
  1843. v-else-if="courseDetail.userid == userid"
  1844. :class="{
  1845. rightW:
  1846. w.userid == userid || tType == 1 || tType == 4,
  1847. }"
  1848. >
  1849. 评分
  1850. </div>
  1851. <img
  1852. class="deleteImg"
  1853. src="../../assets/deleteworks.png"
  1854. v-if="
  1855. w.userid == userid || tType == 1 || tType == 4
  1856. "
  1857. @click.stop="deleteWorks(w.wid)"
  1858. alt
  1859. />
  1860. </div>
  1861. <div class="worksName">
  1862. <div>{{ w.sName }}</div>
  1863. </div>
  1864. </div>
  1865. </div>
  1866. </div>
  1867. <div
  1868. v-if="
  1869. tType &&
  1870. tType == 2 &&
  1871. !sIsOpen &&
  1872. tool.tool.indexOf(4) != -1
  1873. "
  1874. class="worksBox"
  1875. >
  1876. <div
  1877. class="zuoyeYulan"
  1878. v-if="workStudent[toolIndex].length > 0"
  1879. >
  1880. <span class="worksTitle">作业预览</span>
  1881. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1882. </div>
  1883. <div
  1884. class="worksDetailBox"
  1885. v-if="workStudent[toolIndex].length > 0"
  1886. >
  1887. <div
  1888. class="isWorksName2"
  1889. v-for="(w, wIndex) in workStudent[toolIndex]"
  1890. :key="wIndex"
  1891. @click="
  1892. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1893. "
  1894. >
  1895. {{ w.sName }}
  1896. <img
  1897. class="deleteImg deleteImg2"
  1898. src="../../assets/deleteworks.png"
  1899. v-if="w.userid == userid || tType == 1 || tType == 4"
  1900. @click.stop="deleteWorks(w.wid)"
  1901. alt
  1902. />
  1903. </div>
  1904. <!-- <div
  1905. class="works"
  1906. style="
  1907. width: 200px;
  1908. height: 140px;
  1909. border-radius: 10px;
  1910. box-shadow: 0 0 6px 1px #dfdada;
  1911. overflow: hidden;
  1912. "
  1913. v-for="(w, wIndex) in workStudent[toolIndex]"
  1914. :key="wIndex"
  1915. >
  1916. <div class="workImg">
  1917. <img
  1918. src="../../assets/icon/works/noImg.png"
  1919. @click="
  1920. openTools(
  1921. 4,
  1922. toolIndex,
  1923. taskCount,
  1924. w.works,
  1925. w.sName
  1926. )
  1927. "
  1928. alt
  1929. />
  1930. </div>
  1931. <div class="worksName">
  1932. <div>{{ w.sName }}</div>
  1933. <div>{{ w.time }}</div>
  1934. </div>
  1935. </div> -->
  1936. </div>
  1937. </div>
  1938. <div
  1939. v-if="
  1940. tType &&
  1941. ((tType == 2 && sIsOpen == true) ||
  1942. tType == 1 ||
  1943. tType == 4) &&
  1944. tool.tool.indexOf(62) != -1
  1945. "
  1946. class="worksBox"
  1947. >
  1948. <div
  1949. class="zuoyeYulan"
  1950. v-if="
  1951. worksStudent.length &&
  1952. worksStudent[toolIndex].length > 0
  1953. "
  1954. >
  1955. <div class="worksTop">
  1956. <div>作业预览</div>
  1957. <div
  1958. class="corOpen"
  1959. @click="contract(toolIndex)"
  1960. v-if="
  1961. (isCloseList[toolIndex].isCloseBoolean) &&
  1962. isCloseList[toolIndex].isClose == 0
  1963. "
  1964. >
  1965. 折叠
  1966. </div>
  1967. <div
  1968. class="corOpen"
  1969. @click="contract(toolIndex)"
  1970. v-if="isCloseList[toolIndex].isClose == 1"
  1971. >
  1972. 展开
  1973. </div>
  1974. </div>
  1975. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1976. </div>
  1977. <div>
  1978. <div
  1979. :id="'tool-' + toolIndex"
  1980. :style="{
  1981. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1982. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1983. }"
  1984. class="worksDetailBox"
  1985. v-if="
  1986. worksStudent.length &&
  1987. worksStudent[toolIndex].length > 0
  1988. "
  1989. >
  1990. <div
  1991. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1992. :key="wIndex"
  1993. class="isWorksName2"
  1994. @click="
  1995. openTools(
  1996. 62,
  1997. toolIndex,
  1998. taskCount,
  1999. w.works,
  2000. w.sName
  2001. )
  2002. "
  2003. >
  2004. {{ w.sName }}
  2005. <img
  2006. class="deleteImg deleteImg2"
  2007. src="../../assets/deleteworks.png"
  2008. v-if="
  2009. w.userid == userid || tType == 1 || tType == 4
  2010. "
  2011. @click.stop="deleteWorks(w.wid)"
  2012. alt
  2013. />
  2014. </div>
  2015. </div>
  2016. </div>
  2017. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2018. 未提交
  2019. </div>
  2020. <div
  2021. class="noWorksS"
  2022. v-if="noWorksS && noWorksS[toolIndex].length"
  2023. >
  2024. <div
  2025. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2026. :key="sIndex"
  2027. class="noWorksName"
  2028. >
  2029. <el-tooltip effect="dark" :content="s.student" placement="top">
  2030. <span>{{ s.student }}</span>
  2031. </el-tooltip>
  2032. </div>
  2033. </div>
  2034. </div>
  2035. <div
  2036. v-if="
  2037. tType &&
  2038. tType == 2 &&
  2039. !sIsOpen &&
  2040. tool.tool.indexOf(62) != -1
  2041. "
  2042. class="worksBox"
  2043. >
  2044. <div
  2045. class="zuoyeYulan"
  2046. v-if="workStudent[toolIndex].length > 0"
  2047. >
  2048. <span class="worksTitle">作业预览</span>
  2049. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2050. </div>
  2051. <div
  2052. class="worksDetailBox"
  2053. v-if="workStudent[toolIndex].length > 0"
  2054. >
  2055. <div
  2056. class="isWorksName2"
  2057. v-for="(w, wIndex) in workStudent[toolIndex]"
  2058. :key="wIndex"
  2059. @click="
  2060. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2061. "
  2062. >
  2063. {{ w.sName }}
  2064. <img
  2065. class="deleteImg deleteImg2"
  2066. src="../../assets/deleteworks.png"
  2067. v-if="w.userid == userid || tType == 1 || tType == 4"
  2068. @click.stop="deleteWorks(w.wid)"
  2069. alt
  2070. />
  2071. </div>
  2072. </div>
  2073. </div>
  2074. <div
  2075. v-if="
  2076. tType &&
  2077. tType == 2 &&
  2078. !sIsOpen &&
  2079. tool.tool.indexOf(45) != -1
  2080. "
  2081. class="worksBox"
  2082. >
  2083. <div
  2084. class="zuoyeYulan"
  2085. v-if="workStudent[toolIndex].length > 0"
  2086. >
  2087. <span class="worksTitle">作业预览</span>
  2088. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2089. </div>
  2090. <div
  2091. class="worksDetailBox"
  2092. v-if="workStudent[toolIndex].length > 0"
  2093. >
  2094. <div
  2095. class="isWorksName2"
  2096. v-for="(w, wIndex) in workStudent[toolIndex]"
  2097. :key="wIndex"
  2098. @click="
  2099. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2100. "
  2101. >
  2102. {{ w.sName }}
  2103. <img
  2104. class="deleteImg deleteImg2"
  2105. src="../../assets/deleteworks.png"
  2106. v-if="w.userid == userid || tType == 1 || tType == 4"
  2107. @click.stop="deleteWorks(w.wid)"
  2108. alt
  2109. />
  2110. </div>
  2111. </div>
  2112. </div>
  2113. <div
  2114. v-if="
  2115. tType &&
  2116. tType == 2 &&
  2117. !sIsOpen &&
  2118. tool.tool.indexOf(69) != -1
  2119. "
  2120. class="worksBox"
  2121. >
  2122. <div
  2123. class="zuoyeYulan"
  2124. v-if="workStudent[toolIndex].length > 0"
  2125. >
  2126. <span class="worksTitle">作业预览</span>
  2127. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2128. </div>
  2129. <div
  2130. class="worksDetailBox"
  2131. v-if="workStudent[toolIndex].length > 0"
  2132. >
  2133. <div
  2134. class="isWorksName2"
  2135. v-for="(w, wIndex) in workStudent[toolIndex]"
  2136. :key="wIndex"
  2137. @click="
  2138. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2139. "
  2140. >
  2141. {{ w.sName }}
  2142. <img
  2143. class="deleteImg deleteImg2"
  2144. src="../../assets/deleteworks.png"
  2145. v-if="w.userid == userid || tType == 1 || tType == 4"
  2146. @click.stop="deleteWorks(w.wid)"
  2147. alt
  2148. />
  2149. </div>
  2150. </div>
  2151. </div>
  2152. <div
  2153. v-if="
  2154. tType &&
  2155. tType == 2 &&
  2156. !sIsOpen &&
  2157. tool.tool.indexOf(15) != -1
  2158. "
  2159. class="worksBox"
  2160. >
  2161. <div
  2162. class="zuoyeYulan"
  2163. v-if="workStudent[toolIndex].length > 0"
  2164. >
  2165. <span class="worksTitle">作业预览</span>
  2166. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2167. </div>
  2168. <div
  2169. class="worksDetailBox"
  2170. v-if="workStudent[toolIndex].length > 0"
  2171. >
  2172. <div
  2173. class="works"
  2174. v-for="(w, wIndex) in workStudent[toolIndex]"
  2175. :key="wIndex"
  2176. >
  2177. <div class="workImg">
  2178. <!-- <img
  2179. src="../../assets/icon/works/noImg.png"
  2180. @click="openTools(15, toolIndex, taskCount, w.works)"
  2181. alt=""
  2182. />-->
  2183. <div class="answerBg">
  2184. <!-- <div>{{ w.sName }}</div> -->
  2185. <el-tooltip
  2186. class="item"
  2187. effect="light"
  2188. :content="JSON.parse(w.works)[0].answer"
  2189. placement="top"
  2190. >
  2191. <div class="answerContent">
  2192. {{ JSON.parse(w.works)[0].answer }}
  2193. </div>
  2194. </el-tooltip>
  2195. <div
  2196. class="answerScore"
  2197. v-if="w.score"
  2198. @click.stop="openScore(w)"
  2199. :class="{
  2200. rightW:
  2201. w.userid == userid ||
  2202. tType == 1 ||
  2203. tType == 4,
  2204. }"
  2205. >
  2206. {{ JSON.parse(w.score).wScore }}分
  2207. </div>
  2208. <div
  2209. class="answerScore"
  2210. @click.stop="openScore(w)"
  2211. v-else-if="courseDetail.userid == userid"
  2212. :class="{
  2213. rightW:
  2214. w.userid == userid ||
  2215. tType == 1 ||
  2216. tType == 4,
  2217. }"
  2218. >
  2219. 评分
  2220. </div>
  2221. <img
  2222. class="deleteImg"
  2223. src="../../assets/deleteworks.png"
  2224. v-if="
  2225. w.userid == userid || tType == 1 || tType == 4
  2226. "
  2227. @click.stop="deleteWorks(w.wid)"
  2228. alt
  2229. />
  2230. </div>
  2231. <div class="comment">
  2232. <div class="worksName">
  2233. <div>{{ w.sName }}</div>
  2234. </div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. </div>
  2240. <div
  2241. v-if="
  2242. tType &&
  2243. tType == 2 &&
  2244. !sIsOpen &&
  2245. tool.tool.indexOf(1) != -1
  2246. "
  2247. class="worksBox"
  2248. >
  2249. <div
  2250. class="zuoyeYulan"
  2251. v-if="workStudent[toolIndex].length > 0"
  2252. >
  2253. <span class="worksTitle">作业预览</span>
  2254. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2255. </div>
  2256. <div
  2257. class="worksDetailBox"
  2258. v-if="workStudent[toolIndex].length > 0"
  2259. >
  2260. <div
  2261. class="works"
  2262. style="
  2263. width: 200px;
  2264. height: 140px;
  2265. margin: 10px 10px 10px 0;
  2266. box-shadow: 0 0 6px 1px #dfdada;
  2267. "
  2268. v-for="(w, wIndex) in workStudent[toolIndex]"
  2269. :key="wIndex"
  2270. >
  2271. <div class="workImg">
  2272. <img
  2273. :src="w.works"
  2274. @click="previewImg(w.works,w)"
  2275. alt
  2276. />
  2277. <div
  2278. class="answerScore"
  2279. v-if="w.score"
  2280. @click.stop="openScore(w)"
  2281. :class="{
  2282. rightW:
  2283. w.userid == userid || tType == 1 || tType == 4,
  2284. }"
  2285. >
  2286. {{ JSON.parse(w.score).wScore }}分
  2287. </div>
  2288. <div
  2289. class="answerScore"
  2290. @click.stop="openScore(w)"
  2291. v-else-if="courseDetail.userid == userid"
  2292. :class="{
  2293. rightW:
  2294. w.userid == userid || tType == 1 || tType == 4,
  2295. }"
  2296. >
  2297. 评分
  2298. </div>
  2299. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  2300. <el-popover
  2301. placement="top"
  2302. width="318"
  2303. trigger="hover"
  2304. >
  2305. <markScore
  2306. :loading="AIloading[toolIndex][wIndex].loading"
  2307. :markScoreVisible="markScoreVisible"
  2308. :ref="`markSco${toolIndex}${wIndex}`"
  2309. @updateLoading=updateLoading
  2310. @updateDocSco=updateDocSco
  2311. @refreshOther=refreshOther
  2312. @markScoreDig=markScoreDig
  2313. :tool="tool"
  2314. :wIndex="wIndex"
  2315. :scoCon="w"
  2316. :toolIndex="toolIndex"
  2317. :key="refreshKey"
  2318. :stage="courseType"
  2319. :task="taskCount"
  2320. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2321. >
  2322. </markScore>
  2323. <div
  2324. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2325. slot="reference"
  2326. >
  2327. <span v-if="AIloading[toolIndex][wIndex].sco">
  2328. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2329. </span>
  2330. <span v-else>
  2331. 评分
  2332. </span>
  2333. </div>
  2334. </el-popover>
  2335. </div>
  2336. <img
  2337. class="deleteImg"
  2338. src="../../assets/deleteworks.png"
  2339. v-if="
  2340. w.userid == userid || tType == 1 || tType == 4
  2341. "
  2342. @click.stop="deleteWorks(w.wid)"
  2343. alt
  2344. />
  2345. </div>
  2346. <div class="worksName">
  2347. <div>{{ w.sName }}</div>
  2348. </div>
  2349. </div>
  2350. </div>
  2351. </div>
  2352. <div
  2353. v-if="
  2354. tType &&
  2355. tType == 2 &&
  2356. !sIsOpen &&
  2357. tool.tool.indexOf(3) != -1
  2358. "
  2359. class="worksBox"
  2360. >
  2361. <div
  2362. class="zuoyeYulan"
  2363. v-if="workStudent[toolIndex].length > 0"
  2364. >
  2365. <span class="worksTitle">作业预览</span>
  2366. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2367. </div>
  2368. <div
  2369. class="worksDetailBox"
  2370. v-if="workStudent[toolIndex].length > 0"
  2371. >
  2372. <div
  2373. class="works"
  2374. style="
  2375. width: 200px;
  2376. height: 140px;
  2377. margin: 10px 10px 10px 0;
  2378. box-shadow: 0 0 6px 1px #dfdada;
  2379. "
  2380. v-for="(w, wIndex) in workStudent[toolIndex]"
  2381. :key="wIndex"
  2382. >
  2383. <div class="workImg">
  2384. <img
  2385. :src="w.works"
  2386. @click="previewImg(w.works,w)"
  2387. alt
  2388. />
  2389. <div
  2390. class="answerScore"
  2391. v-if="w.score"
  2392. @click.stop="openScore(w)"
  2393. :class="{
  2394. rightW:
  2395. w.userid == userid || tType == 1 || tType == 4,
  2396. }"
  2397. >
  2398. {{ JSON.parse(w.score).wScore }}分
  2399. </div>
  2400. <div
  2401. class="answerScore"
  2402. @click.stop="openScore(w)"
  2403. v-else-if="courseDetail.userid == userid"
  2404. :class="{
  2405. rightW:
  2406. w.userid == userid || tType == 1 || tType == 4,
  2407. }"
  2408. >
  2409. 评分
  2410. </div>
  2411. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  2412. <el-popover
  2413. placement="top"
  2414. width="318"
  2415. trigger="hover"
  2416. >
  2417. <markScore
  2418. :loading="AIloading[toolIndex][wIndex].loading"
  2419. :markScoreVisible="markScoreVisible"
  2420. :ref="`markSco${toolIndex}${wIndex}`"
  2421. @updateLoading=updateLoading
  2422. @updateDocSco=updateDocSco
  2423. @refreshOther=refreshOther
  2424. @markScoreDig=markScoreDig
  2425. :tool="tool"
  2426. :wIndex="wIndex"
  2427. :scoCon="w"
  2428. :toolIndex="toolIndex"
  2429. :key="refreshKey"
  2430. :stage="courseType"
  2431. :task="taskCount"
  2432. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2433. >
  2434. </markScore>
  2435. <div
  2436. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2437. slot="reference"
  2438. >
  2439. <span v-if="AIloading[toolIndex][wIndex].sco">
  2440. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2441. </span>
  2442. <span v-else>
  2443. 评分
  2444. </span>
  2445. </div>
  2446. </el-popover>
  2447. </div>
  2448. <img
  2449. class="deleteImg"
  2450. src="../../assets/deleteworks.png"
  2451. v-if="
  2452. w.userid == userid || tType == 1 || tType == 4
  2453. "
  2454. @click.stop="deleteWorks(w.wid)"
  2455. alt
  2456. />
  2457. </div>
  2458. <div class="worksName">
  2459. <div>{{ w.sName }}</div>
  2460. </div>
  2461. </div>
  2462. </div>
  2463. </div>
  2464. <div
  2465. v-if="
  2466. tType &&
  2467. tType == 2 &&
  2468. !sIsOpen &&
  2469. tool.tool.indexOf(6) != -1
  2470. "
  2471. class="worksBox"
  2472. >
  2473. <div
  2474. class="zuoyeYulan"
  2475. v-if="workStudent[toolIndex].length > 0"
  2476. >
  2477. <span class="worksTitle">作业预览</span>
  2478. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2479. </div>
  2480. <div
  2481. class="worksDetailBox"
  2482. v-if="workStudent[toolIndex].length > 0"
  2483. >
  2484. <div
  2485. class="works"
  2486. style="
  2487. width: 200px;
  2488. height: 140px;
  2489. margin: 10px 10px 10px 0;
  2490. box-shadow: 0 0 6px 1px #dfdada;
  2491. "
  2492. v-for="(w, wIndex) in workStudent[toolIndex]"
  2493. :key="wIndex"
  2494. >
  2495. <div class="workImg">
  2496. <img
  2497. :src="w.works"
  2498. @click="previewImg(w.works,w)"
  2499. alt
  2500. />
  2501. <div
  2502. class="answerScore"
  2503. v-if="w.score"
  2504. @click.stop="openScore(w)"
  2505. :class="{
  2506. rightW:
  2507. w.userid == userid || tType == 1 || tType == 4,
  2508. }"
  2509. >
  2510. {{ JSON.parse(w.score).wScore }}分
  2511. </div>
  2512. <div
  2513. class="answerScore"
  2514. @click.stop="openScore(w)"
  2515. v-else-if="courseDetail.userid == userid"
  2516. :class="{
  2517. rightW:
  2518. w.userid == userid || tType == 1 || tType == 4,
  2519. }"
  2520. >
  2521. 评分
  2522. </div>
  2523. <img
  2524. class="deleteImg"
  2525. src="../../assets/deleteworks.png"
  2526. v-if="
  2527. w.userid == userid || tType == 1 || tType == 4
  2528. "
  2529. @click.stop="deleteWorks(w.wid)"
  2530. alt
  2531. />
  2532. </div>
  2533. <div class="worksName">
  2534. <div>{{ w.sName }}</div>
  2535. </div>
  2536. </div>
  2537. </div>
  2538. </div>
  2539. <div
  2540. v-if="
  2541. tType &&
  2542. tType == 2 &&
  2543. !sIsOpen &&
  2544. tool.tool.indexOf(7) != -1
  2545. "
  2546. class="worksBox"
  2547. >
  2548. <div
  2549. class="zuoyeYulan"
  2550. v-if="workStudent[toolIndex].length > 0"
  2551. >
  2552. <span class="worksTitle">作业预览</span>
  2553. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2554. </div>
  2555. <div
  2556. class="worksDetailBox"
  2557. v-if="workStudent[toolIndex].length > 0"
  2558. >
  2559. <div
  2560. class="works"
  2561. style="
  2562. width: 200px;
  2563. height: 140px;
  2564. margin: 10px 10px 10px 0;
  2565. box-shadow: 0 0 6px 1px #dfdada;
  2566. "
  2567. v-for="(w, wIndex) in workStudent[toolIndex]"
  2568. :key="wIndex"
  2569. >
  2570. <div class="workImg">
  2571. <img
  2572. :src="w.works"
  2573. @click="previewImg(w.works,w)"
  2574. alt
  2575. />
  2576. <div
  2577. class="answerScore"
  2578. v-if="w.score"
  2579. @click.stop="openScore(w)"
  2580. :class="{
  2581. rightW:
  2582. w.userid == userid || tType == 1 || tType == 4,
  2583. }"
  2584. >
  2585. {{ JSON.parse(w.score).wScore }}分
  2586. </div>
  2587. <div
  2588. class="answerScore"
  2589. @click.stop="openScore(w)"
  2590. v-else-if="courseDetail.userid == userid"
  2591. :class="{
  2592. rightW:
  2593. w.userid == userid || tType == 1 || tType == 4,
  2594. }"
  2595. >
  2596. 评分
  2597. </div>
  2598. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  2599. <el-popover
  2600. placement="top"
  2601. width="318"
  2602. trigger="hover"
  2603. >
  2604. <markScore
  2605. :loading="AIloading[toolIndex][wIndex].loading"
  2606. :markScoreVisible="markScoreVisible"
  2607. :ref="`markSco${toolIndex}${wIndex}`"
  2608. @updateLoading=updateLoading
  2609. @updateDocSco=updateDocSco
  2610. @refreshOther=refreshOther
  2611. @markScoreDig=markScoreDig
  2612. :tool="tool"
  2613. :wIndex="wIndex"
  2614. :scoCon="w"
  2615. :toolIndex="toolIndex"
  2616. :key="refreshKey"
  2617. :stage="courseType"
  2618. :task="taskCount"
  2619. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2620. >
  2621. </markScore>
  2622. <div
  2623. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2624. slot="reference"
  2625. >
  2626. <span v-if="AIloading[toolIndex][wIndex].sco">
  2627. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2628. </span>
  2629. <span v-else>
  2630. 评分
  2631. </span>
  2632. </div>
  2633. </el-popover>
  2634. </div>
  2635. <img
  2636. class="deleteImg"
  2637. src="../../assets/deleteworks.png"
  2638. v-if="
  2639. w.userid == userid || tType == 1 || tType == 4
  2640. "
  2641. @click.stop="deleteWorks(w.wid)"
  2642. alt
  2643. />
  2644. </div>
  2645. <div class="worksName">
  2646. <div>{{ w.sName }}</div>
  2647. </div>
  2648. </div>
  2649. </div>
  2650. </div>
  2651. <div
  2652. v-if="
  2653. tType &&
  2654. tType == 2 &&
  2655. !sIsOpen &&
  2656. tool.tool.indexOf(26) != -1
  2657. "
  2658. class="worksBox"
  2659. >
  2660. <div
  2661. class="zuoyeYulan"
  2662. v-if="workStudent[toolIndex].length > 0"
  2663. >
  2664. <span class="worksTitle">作业预览</span>
  2665. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2666. </div>
  2667. <div
  2668. class="worksDetailBox"
  2669. v-if="workStudent[toolIndex].length > 0"
  2670. >
  2671. <div
  2672. class="works"
  2673. style="
  2674. width: 200px;
  2675. height: 140px;
  2676. margin: 10px 10px 10px 0;
  2677. box-shadow: 0 0 6px 1px #dfdada;
  2678. "
  2679. v-for="(w, wIndex) in workStudent[toolIndex]"
  2680. :key="wIndex"
  2681. >
  2682. <div class="workImg">
  2683. <img
  2684. :src="w.works"
  2685. @click="previewImg(w.works,w)"
  2686. alt
  2687. />
  2688. <img
  2689. class="deleteImg"
  2690. src="../../assets/deleteworks.png"
  2691. v-if="
  2692. w.userid == userid || tType == 1 || tType == 4
  2693. "
  2694. @click.stop="deleteWorks(w.wid)"
  2695. alt
  2696. />
  2697. </div>
  2698. <div class="worksName">
  2699. <div>{{ w.sName }}</div>
  2700. </div>
  2701. </div>
  2702. </div>
  2703. </div>
  2704. <div
  2705. v-if="
  2706. tType &&
  2707. ((tType == 2 && sIsOpen == true) ||
  2708. tType == 1 ||
  2709. tType == 4) &&
  2710. tool.tool.indexOf(16) != -1
  2711. "
  2712. class="worksBox"
  2713. >
  2714. <div
  2715. class="zuoyeYulan"
  2716. style="display: flex;justify-content: space-between;align-items: center;"
  2717. v-if="
  2718. (worksStudent.length &&
  2719. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2720. "
  2721. >
  2722. <div class="worksTop">
  2723. <div>作业预览</div>
  2724. <div
  2725. class="corOpen"
  2726. @click="contract(toolIndex)"
  2727. v-if="
  2728. (isCloseList[toolIndex].isCloseBoolean) &&
  2729. isCloseList[toolIndex].isClose == 0
  2730. "
  2731. >
  2732. 折叠
  2733. </div>
  2734. <div
  2735. class="corOpen"
  2736. @click="contract(toolIndex)"
  2737. v-if="isCloseList[toolIndex].isClose == 1"
  2738. >
  2739. 展开
  2740. </div>
  2741. </div>
  2742. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  2743. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5"> -->
  2744. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  2745. 一键重置
  2746. </div>
  2747. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  2748. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2749. AI评分
  2750. </div>
  2751. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  2752. .taskDetail,tool)" >
  2753. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2754. AI评分
  2755. </div>
  2756. <div class="ScoreBtn" v-else >
  2757. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2758. 正在评分
  2759. </div>
  2760. </div>
  2761. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2762. </div>
  2763. <div
  2764. class="group_workBox"
  2765. v-for="(g, gindex) in courseGroup.group"
  2766. :key="gindex"
  2767. >
  2768. <div class="group_box">
  2769. <div class="group_title">
  2770. <el-tooltip
  2771. class="item"
  2772. effect="light"
  2773. :content="g.name"
  2774. placement="top"
  2775. >
  2776. <div class="group_name">{{ g.name }}</div>
  2777. </el-tooltip>
  2778. </div>
  2779. <div
  2780. class="group_work"
  2781. v-if="
  2782. g.works &&
  2783. g.works.length &&
  2784. g.works[toolIndex].length
  2785. "
  2786. >
  2787. <div
  2788. class="works"
  2789. style="
  2790. width: 200px;
  2791. height: 140px;
  2792. margin: 10px 10px 10px 0;
  2793. border-radius: 15px;
  2794. box-shadow: 0 0 6px 1px #dfdada;
  2795. "
  2796. v-for="(w, wIndex) in g.works[toolIndex]"
  2797. :key="wIndex"
  2798. :class="w.type == 1 ? 'isTypeOne' : ''"
  2799. >
  2800. <div class="workImg" v-if="w.type == 0">
  2801. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2802. <img
  2803. :src="w.works"
  2804. @click="previewImg(w.works,w)"
  2805. alt
  2806. />
  2807. <div
  2808. class="answerScore"
  2809. v-if="w.score"
  2810. @click.stop="openScore(w)"
  2811. :class="{
  2812. rightW:
  2813. w.userid == userid ||
  2814. tType == 1 ||
  2815. tType == 4 ||
  2816. w.ateacher == userid,
  2817. }"
  2818. >
  2819. {{ JSON.parse(w.score).wScore }}分
  2820. </div>
  2821. <div
  2822. class="answerScore"
  2823. @click.stop="openScore(w)"
  2824. v-else-if="courseDetail.userid == userid"
  2825. :class="{
  2826. rightW:
  2827. w.userid == userid ||
  2828. tType == 1 ||
  2829. tType == 4 ||
  2830. w.ateacher == userid,
  2831. }"
  2832. >
  2833. 评分
  2834. </div>
  2835. <img
  2836. class="deleteImg"
  2837. src="../../assets/deleteworks.png"
  2838. v-if="
  2839. w.userid == userid || tType == 1 || tType == 4
  2840. "
  2841. @click.stop="deleteWorks(w.wid)"
  2842. alt
  2843. />
  2844. </div>
  2845. <div class="workImg" v-if="w.type == 1">
  2846. <img :src="word" @click="openFile(w.works)" alt />
  2847. <!-- @click="openFile(w.works)" -->
  2848. <div
  2849. class="answerScore"
  2850. v-if="w.score"
  2851. @click.stop="openScore(w)"
  2852. :class="{
  2853. rightW:
  2854. w.userid == userid ||
  2855. tType == 1 ||
  2856. tType == 4 ||
  2857. w.ateacher == userid,
  2858. }"
  2859. >
  2860. {{ JSON.parse(w.score).wScore }}分
  2861. </div>
  2862. <div
  2863. class="answerScore"
  2864. @click.stop="openScore(w)"
  2865. v-else-if="courseDetail.userid == userid"
  2866. :class="{
  2867. rightW:
  2868. w.userid == userid ||
  2869. tType == 1 ||
  2870. tType == 4 ||
  2871. w.ateacher == userid,
  2872. }"
  2873. >
  2874. 评分
  2875. </div>
  2876. <img
  2877. class="deleteImg"
  2878. src="../../assets/deleteworks.png"
  2879. v-if="
  2880. w.userid == userid || tType == 1 || tType == 4
  2881. "
  2882. @click.stop="deleteWorks(w.wid)"
  2883. alt
  2884. />
  2885. </div>
  2886. <div class="workImg" v-if="w.type == 3">
  2887. <img
  2888. style="cursor: pointer"
  2889. :src="video"
  2890. @click="openVideo(w)"
  2891. alt
  2892. />
  2893. <!-- @click="openVideo(w.works)" -->
  2894. <div
  2895. class="answerScore"
  2896. v-if="w.score"
  2897. @click.stop="openScore(w)"
  2898. :class="{
  2899. rightW:
  2900. w.userid == userid ||
  2901. tType == 1 ||
  2902. tType == 4 ||
  2903. w.ateacher == userid,
  2904. }"
  2905. >
  2906. {{ JSON.parse(w.score).wScore }}分
  2907. </div>
  2908. <div
  2909. class="answerScore"
  2910. @click.stop="openScore(w)"
  2911. v-else-if="courseDetail.userid == userid"
  2912. :class="{
  2913. rightW:
  2914. w.userid == userid ||
  2915. tType == 1 ||
  2916. tType == 4 ||
  2917. w.ateacher == userid,
  2918. }"
  2919. >
  2920. 评分
  2921. </div>
  2922. <img
  2923. class="deleteImg"
  2924. src="../../assets/deleteworks.png"
  2925. v-if="
  2926. w.userid == userid || tType == 1 || tType == 4
  2927. "
  2928. @click.stop="deleteWorks(w.wid)"
  2929. alt
  2930. />
  2931. </div>
  2932. <div class="workImg" v-if="w.type == 12">
  2933. <img
  2934. style="cursor: pointer"
  2935. :src="word2"
  2936. @click="downloadFile(w.works)"
  2937. alt
  2938. />
  2939. <!-- @click="openVideo(w.works)" -->
  2940. <div
  2941. class="answerScore"
  2942. v-if="w.score"
  2943. @click.stop="openScore(w)"
  2944. :class="{
  2945. rightW:
  2946. w.userid == userid ||
  2947. tType == 1 ||
  2948. tType == 4 ||
  2949. w.ateacher == userid,
  2950. }"
  2951. >
  2952. {{ JSON.parse(w.score).wScore }}分
  2953. </div>
  2954. <div
  2955. class="answerScore"
  2956. @click.stop="openScore(w)"
  2957. v-else-if="courseDetail.userid == userid"
  2958. :class="{
  2959. rightW:
  2960. w.userid == userid ||
  2961. tType == 1 ||
  2962. tType == 4 ||
  2963. w.ateacher == userid,
  2964. }"
  2965. >
  2966. 评分
  2967. </div>
  2968. <img
  2969. class="deleteImg"
  2970. src="../../assets/deleteworks.png"
  2971. v-if="
  2972. w.userid == userid || tType == 1 || tType == 4
  2973. "
  2974. @click.stop="deleteWorks(w.wid)"
  2975. alt
  2976. />
  2977. </div>
  2978. <div class="comment" style="min-width: 200px">
  2979. <div class="worksName">
  2980. <div>{{ w.sName }}</div>
  2981. </div>
  2982. <div class="commentList">
  2983. <div class="commentList">
  2984. <div
  2985. class="commentImg"
  2986. @click="
  2987. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2988. "
  2989. >
  2990. <img
  2991. :src="w.isLikes == true ? likes : noLikes"
  2992. alt=""
  2993. />
  2994. </div>
  2995. <div>{{ w.likesCount }}</div>
  2996. </div>
  2997. <div
  2998. class="commentList"
  2999. style="margin-right: 15px"
  3000. >
  3001. <div
  3002. class="commentImg"
  3003. @click="
  3004. commentOther(
  3005. w,
  3006. toolIndex,
  3007. wIndex,
  3008. null,
  3009. g.id
  3010. )
  3011. "
  3012. >
  3013. <img
  3014. src="../../assets/icon/comment/comment.png"
  3015. alt=""
  3016. />
  3017. </div>
  3018. <div>{{ w.commentCount }}</div>
  3019. </div>
  3020. </div>
  3021. </div>
  3022. </div>
  3023. </div>
  3024. <div class="group_work" v-else>暂无提交作业</div>
  3025. </div>
  3026. </div>
  3027. <div
  3028. :id="'tool-' + toolIndex"
  3029. :style="{
  3030. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3031. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3032. }"
  3033. class="worksDetailBox"
  3034. v-if="
  3035. worksStudent.length &&
  3036. worksStudent[toolIndex].length > 0
  3037. "
  3038. >
  3039. <div
  3040. class="works"
  3041. style="
  3042. width: 200px;
  3043. height: 140px;
  3044. margin: 10px 10px 10px 0;
  3045. border-radius: 15px;
  3046. box-shadow: 0 0 6px 1px #dfdada;
  3047. "
  3048. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3049. :key="wIndex"
  3050. :class="w.type == 1 ? 'isTypeOne' : ''"
  3051. >
  3052. <div class="workImg" v-if="w.type == 0">
  3053. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3054. <img
  3055. :src="w.works"
  3056. @click="previewImg(w.works,w)"
  3057. alt
  3058. />
  3059. <div
  3060. class="answerScore"
  3061. v-if="w.score"
  3062. @click.stop="openScore(w)"
  3063. :class="{
  3064. rightW:
  3065. w.userid == userid ||
  3066. tType == 1 ||
  3067. tType == 4 ||
  3068. w.ateacher == userid,
  3069. }"
  3070. >
  3071. {{ JSON.parse(w.score).wScore }}分
  3072. </div>
  3073. <div
  3074. class="answerScore"
  3075. @click.stop="openScore(w)"
  3076. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3077. :class="{
  3078. rightW:
  3079. w.userid == userid ||
  3080. tType == 1 ||
  3081. tType == 4 ||
  3082. w.ateacher == userid,
  3083. }"
  3084. >
  3085. 评分
  3086. </div>
  3087. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3088. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  3089. <el-popover
  3090. placement="top"
  3091. width="318"
  3092. :disabled="AIloading[toolIndex][wIndex].loading"
  3093. trigger="hover"
  3094. >
  3095. <markScore
  3096. :loading="AIloading[toolIndex][wIndex].loading"
  3097. :markScoreVisible="markScoreVisible"
  3098. :ref="`markSco${toolIndex}${wIndex}`"
  3099. @updateLoading=updateLoading
  3100. @updateDocSco=updateDocSco
  3101. @refreshOther=refreshOther
  3102. @markScoreDig=markScoreDig
  3103. :tool="tool"
  3104. :wIndex="wIndex"
  3105. :scoCon="w"
  3106. :toolIndex="toolIndex"
  3107. :key="refreshKey"
  3108. :stage="courseType"
  3109. :task="taskCount"
  3110. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3111. >
  3112. </markScore>
  3113. <div
  3114. class="answerScore"
  3115. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3116. slot="reference"
  3117. :class="{
  3118. rightW:
  3119. w.userid == userid ||
  3120. tType == 1 ||
  3121. tType == 4 ||
  3122. w.ateacher == userid,
  3123. }"
  3124. >
  3125. <span v-if="AIloading[toolIndex][wIndex].sco">
  3126. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3127. </span>
  3128. <span v-else>
  3129. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3130. </span>
  3131. </div>
  3132. </el-popover>
  3133. </div>
  3134. <img
  3135. class="deleteImg"
  3136. src="../../assets/deleteworks.png"
  3137. v-if="
  3138. w.userid == userid || tType == 1 || tType == 4
  3139. "
  3140. @click.stop="deleteWorks(w.wid)"
  3141. alt
  3142. />
  3143. </div>
  3144. <div class="workImg" v-if="w.type == 1">
  3145. <img :src="word" @click="openFile(w.works)" alt />
  3146. <!-- @click="openFile(w.works)" -->
  3147. <div
  3148. class="answerScore"
  3149. v-if="w.score"
  3150. @click.stop="openScore(w)"
  3151. :class="{
  3152. rightW:
  3153. w.userid == userid ||
  3154. tType == 1 ||
  3155. tType == 4 ||
  3156. w.ateacher == userid,
  3157. }"
  3158. >
  3159. {{ JSON.parse(w.score).wScore }}分
  3160. </div>
  3161. <div
  3162. class="answerScore"
  3163. @click.stop="openScore(w)"
  3164. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3165. :class="{
  3166. rightW:
  3167. w.userid == userid ||
  3168. tType == 1 ||
  3169. tType == 4 ||
  3170. w.ateacher == userid,
  3171. }"
  3172. >
  3173. 评分
  3174. </div>
  3175. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3176. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  3177. <el-popover
  3178. placement="top"
  3179. width="318"
  3180. :disabled="AIloading[toolIndex][wIndex].loading"
  3181. trigger="hover"
  3182. >
  3183. <markScore
  3184. :loading="AIloading[toolIndex][wIndex].loading"
  3185. :markScoreVisible="markScoreVisible"
  3186. :ref="`markSco${toolIndex}${wIndex}`"
  3187. @updateLoading=updateLoading
  3188. @updateDocSco=updateDocSco
  3189. @refreshOther=refreshOther
  3190. @markScoreDig=markScoreDig
  3191. :tool="tool"
  3192. :wIndex="wIndex"
  3193. :scoCon="w"
  3194. :toolIndex="toolIndex"
  3195. :key="refreshKey"
  3196. :stage="courseType"
  3197. :task="taskCount"
  3198. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3199. >
  3200. </markScore>
  3201. <div
  3202. class="answerScore"
  3203. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3204. slot="reference"
  3205. :class="{
  3206. rightW:
  3207. w.userid == userid ||
  3208. tType == 1 ||
  3209. tType == 4 ||
  3210. w.ateacher == userid,
  3211. }"
  3212. >
  3213. <span v-if="AIloading[toolIndex][wIndex].sco">
  3214. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3215. </span>
  3216. <span v-else>
  3217. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3218. </span>
  3219. </div>
  3220. </el-popover>
  3221. </div>
  3222. <img
  3223. class="deleteImg"
  3224. src="../../assets/deleteworks.png"
  3225. v-if="
  3226. w.userid == userid || tType == 1 || tType == 4
  3227. "
  3228. @click.stop="deleteWorks(w.wid)"
  3229. alt
  3230. />
  3231. </div>
  3232. <div class="workImg" v-if="w.type == 3">
  3233. <img
  3234. style="cursor: pointer"
  3235. :src="video"
  3236. @click="openVideo(w)"
  3237. alt
  3238. />
  3239. <!-- @click="openVideo(w.works)" -->
  3240. <div
  3241. class="answerScore"
  3242. v-if="w.score"
  3243. @click.stop="openScore(w)"
  3244. :class="{
  3245. rightW:
  3246. w.userid == userid ||
  3247. tType == 1 ||
  3248. tType == 4 ||
  3249. w.ateacher == userid,
  3250. }"
  3251. >
  3252. {{ JSON.parse(w.score).wScore }}分
  3253. </div>
  3254. <div
  3255. class="answerScore"
  3256. @click.stop="openScore(w)"
  3257. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3258. :class="{
  3259. rightW:
  3260. w.userid == userid ||
  3261. tType == 1 ||
  3262. tType == 4 ||
  3263. w.ateacher == userid,
  3264. }"
  3265. >
  3266. 评分
  3267. </div>
  3268. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3269. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  3270. <el-popover
  3271. placement="top"
  3272. width="318"
  3273. :disabled="AIloading[toolIndex][wIndex].loading"
  3274. trigger="hover"
  3275. >
  3276. <markScore
  3277. :loading="AIloading[toolIndex][wIndex].loading"
  3278. :markScoreVisible="markScoreVisible"
  3279. :ref="`markSco${toolIndex}${wIndex}`"
  3280. @updateLoading=updateLoading
  3281. @updateDocSco=updateDocSco
  3282. @refreshOther=refreshOther
  3283. @markScoreDig=markScoreDig
  3284. :tool="tool"
  3285. :wIndex="wIndex"
  3286. :scoCon="w"
  3287. :toolIndex="toolIndex"
  3288. :key="refreshKey"
  3289. :stage="courseType"
  3290. :task="taskCount"
  3291. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3292. >
  3293. </markScore>
  3294. <div
  3295. class="answerScore"
  3296. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3297. slot="reference"
  3298. :class="{
  3299. rightW:
  3300. w.userid == userid ||
  3301. tType == 1 ||
  3302. tType == 4 ||
  3303. w.ateacher == userid,
  3304. }"
  3305. >
  3306. <span v-if="AIloading[toolIndex][wIndex].sco">
  3307. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3308. </span>
  3309. <span v-else>
  3310. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3311. </span>
  3312. </div>
  3313. </el-popover>
  3314. </div>
  3315. <img
  3316. class="deleteImg"
  3317. src="../../assets/deleteworks.png"
  3318. v-if="
  3319. w.userid == userid || tType == 1 || tType == 4
  3320. "
  3321. @click.stop="deleteWorks(w.wid)"
  3322. alt
  3323. />
  3324. </div>
  3325. <div class="workImg" v-if="w.type == 12">
  3326. <img
  3327. style="cursor: pointer"
  3328. :src="word2"
  3329. @click="downloadFile(w.works)"
  3330. alt
  3331. />
  3332. <!-- @click="openVideo(w.works)" -->
  3333. <div
  3334. class="answerScore"
  3335. v-if="w.score"
  3336. @click.stop="openScore(w)"
  3337. :class="{
  3338. rightW:
  3339. w.userid == userid ||
  3340. tType == 1 ||
  3341. tType == 4 ||
  3342. w.ateacher == userid,
  3343. }"
  3344. >
  3345. {{ JSON.parse(w.score).wScore }}分
  3346. </div>
  3347. <div
  3348. class="answerScore"
  3349. @click.stop="openScore(w)"
  3350. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3351. :class="{
  3352. rightW:
  3353. w.userid == userid ||
  3354. tType == 1 ||
  3355. tType == 4 ||
  3356. w.ateacher == userid,
  3357. }"
  3358. >
  3359. 评分
  3360. </div>
  3361. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3362. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  3363. <el-popover
  3364. placement="top"
  3365. width="318"
  3366. :disabled="AIloading[toolIndex][wIndex].loading"
  3367. trigger="hover"
  3368. >
  3369. <markScore
  3370. :loading="AIloading[toolIndex][wIndex].loading"
  3371. :markScoreVisible="markScoreVisible"
  3372. :ref="`markSco${toolIndex}${wIndex}`"
  3373. @updateLoading=updateLoading
  3374. @updateDocSco=updateDocSco
  3375. @refreshOther=refreshOther
  3376. @markScoreDig=markScoreDig
  3377. :tool="tool"
  3378. :wIndex="wIndex"
  3379. :scoCon="w"
  3380. :toolIndex="toolIndex"
  3381. :key="refreshKey"
  3382. :stage="courseType"
  3383. :task="taskCount"
  3384. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3385. >
  3386. </markScore>
  3387. <div
  3388. class="answerScore"
  3389. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3390. slot="reference"
  3391. :class="{
  3392. rightW:
  3393. w.userid == userid ||
  3394. tType == 1 ||
  3395. tType == 4 ||
  3396. w.ateacher == userid,
  3397. }"
  3398. >
  3399. <span v-if="AIloading[toolIndex][wIndex].sco">
  3400. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3401. </span>
  3402. <span v-else>
  3403. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3404. </span>
  3405. </div>
  3406. </el-popover>
  3407. </div>
  3408. <img
  3409. class="deleteImg"
  3410. src="../../assets/deleteworks.png"
  3411. v-if="
  3412. w.userid == userid || tType == 1 || tType == 4
  3413. "
  3414. @click.stop="deleteWorks(w.wid)"
  3415. alt
  3416. />
  3417. </div>
  3418. <div class="comment" style="min-width: 200px">
  3419. <div class="worksName">
  3420. <div>{{ w.sName }}</div>
  3421. </div>
  3422. <div class="commentList">
  3423. <div class="commentList">
  3424. <div
  3425. class="commentImg"
  3426. @click="
  3427. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3428. "
  3429. >
  3430. <img
  3431. :src="w.isLikes == true ? likes : noLikes"
  3432. alt=""
  3433. />
  3434. </div>
  3435. <div>{{ w.likesCount }}</div>
  3436. </div>
  3437. <div class="commentList" style="margin-right: 15px">
  3438. <div
  3439. class="commentImg"
  3440. @click="commentOther(w, toolIndex, wIndex)"
  3441. >
  3442. <img
  3443. src="../../assets/icon/comment/comment.png"
  3444. alt=""
  3445. />
  3446. </div>
  3447. <div>{{ w.commentCount }}</div>
  3448. </div>
  3449. </div>
  3450. </div>
  3451. </div>
  3452. </div>
  3453. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3454. 未提交
  3455. </div>
  3456. <div
  3457. class="noWorksS"
  3458. v-if="noWorksS && noWorksS[toolIndex].length"
  3459. >
  3460. <div
  3461. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3462. :key="sIndex"
  3463. class="noWorksName"
  3464. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3465. >
  3466. <el-tooltip effect="dark" :content="s.student" placement="top">
  3467. <span>{{ s.student }}</span>
  3468. </el-tooltip>
  3469. </div>
  3470. </div>
  3471. </div>
  3472. <div
  3473. v-if="
  3474. tType &&
  3475. ((tType == 2 && sIsOpen == true) ||
  3476. tType == 1 ||
  3477. tType == 4) &&
  3478. tool.tool.indexOf(70) != -1
  3479. "
  3480. class="worksBox"
  3481. >
  3482. <div
  3483. class="zuoyeYulan"
  3484. v-if="
  3485. (worksStudent.length &&
  3486. worksStudent[toolIndex].length > 0)
  3487. "
  3488. >
  3489. <div class="worksTop">
  3490. <div>作业预览</div>
  3491. <div
  3492. class="corOpen"
  3493. @click="contract(toolIndex)"
  3494. v-if="
  3495. (isCloseList[toolIndex].isCloseBoolean) &&
  3496. isCloseList[toolIndex].isClose == 0
  3497. "
  3498. >
  3499. 折叠
  3500. </div>
  3501. <div
  3502. class="corOpen"
  3503. @click="contract(toolIndex)"
  3504. v-if="isCloseList[toolIndex].isClose == 1"
  3505. >
  3506. 展开
  3507. </div>
  3508. </div>
  3509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3510. </div>
  3511. <div
  3512. :id="'tool-' + toolIndex"
  3513. :style="{
  3514. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3515. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3516. }"
  3517. class="worksDetailBox"
  3518. v-if="
  3519. worksStudent.length &&
  3520. worksStudent[toolIndex].length > 0
  3521. "
  3522. >
  3523. <div
  3524. class="works"
  3525. style="
  3526. width: 200px;
  3527. height: 140px;
  3528. margin: 10px 10px 10px 0;
  3529. border-radius: 15px;
  3530. box-shadow: 0 0 6px 1px #dfdada;
  3531. "
  3532. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3533. :key="wIndex"
  3534. :class="w.type == 1 ? 'isTypeOne' : ''"
  3535. >
  3536. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3537. <img :src="word" alt />
  3538. <img
  3539. class="deleteImg"
  3540. src="../../assets/deleteworks.png"
  3541. v-if="
  3542. w.userid == userid || tType == 1 || tType == 4
  3543. "
  3544. @click.stop="deleteWorks(w.wid)"
  3545. alt
  3546. />
  3547. </div>
  3548. <div class="comment" style="min-width: 200px">
  3549. <div class="worksName">
  3550. <div>{{ w.sName }}</div>
  3551. </div>
  3552. </div>
  3553. </div>
  3554. </div>
  3555. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3556. 未提交
  3557. </div>
  3558. <div
  3559. class="noWorksS"
  3560. v-if="noWorksS && noWorksS[toolIndex].length"
  3561. >
  3562. <div
  3563. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3564. :key="sIndex"
  3565. class="noWorksName"
  3566. >
  3567. <el-tooltip effect="dark" :content="s.student" placement="top">
  3568. <span>{{ s.student }}</span>
  3569. </el-tooltip>
  3570. </div>
  3571. </div>
  3572. </div>
  3573. <div
  3574. v-if="
  3575. tType &&
  3576. tType == 2 &&
  3577. !sIsOpen &&
  3578. tool.tool.indexOf(70) != -1
  3579. "
  3580. class="worksBox"
  3581. >
  3582. <div
  3583. class="zuoyeYulan"
  3584. v-if="workStudent[toolIndex].length > 0"
  3585. >
  3586. <span class="worksTitle">作业预览</span>
  3587. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3588. </div>
  3589. <div
  3590. class="worksDetailBox"
  3591. v-if="workStudent[toolIndex].length > 0"
  3592. >
  3593. <div
  3594. class="works"
  3595. style="
  3596. width: 200px;
  3597. height: 140px;
  3598. margin: 10px 10px 10px 0;
  3599. box-shadow: 0 0 6px 1px #dfdada;
  3600. "
  3601. v-for="(w, wIndex) in workStudent[toolIndex]"
  3602. :key="wIndex"
  3603. >
  3604. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3605. <img :src="word" alt />
  3606. <img
  3607. class="deleteImg"
  3608. src="../../assets/deleteworks.png"
  3609. v-if="
  3610. w.userid == userid || tType == 1 || tType == 4
  3611. "
  3612. @click.stop="deleteWorks(w.wid)"
  3613. alt
  3614. />
  3615. </div>
  3616. <div class="worksName">
  3617. <div>{{ w.sName }}</div>
  3618. </div>
  3619. </div>
  3620. </div>
  3621. </div>
  3622. <div
  3623. v-if="
  3624. tType &&
  3625. ((tType == 2 && sIsOpen == true) ||
  3626. tType == 1 ||
  3627. tType == 4) &&
  3628. tool.tool.indexOf(32) != -1
  3629. "
  3630. class="worksBox"
  3631. >
  3632. <div
  3633. class="zuoyeYulan"
  3634. v-if="
  3635. worksStudent.length &&
  3636. worksStudent[toolIndex].length > 0
  3637. "
  3638. >
  3639. <div class="worksTop">
  3640. <div>作业预览</div>
  3641. <div
  3642. class="corOpen"
  3643. @click="contract(toolIndex)"
  3644. v-if="
  3645. (isCloseList[toolIndex].isCloseBoolean) &&
  3646. isCloseList[toolIndex].isClose == 0
  3647. "
  3648. >
  3649. 折叠
  3650. </div>
  3651. <div
  3652. class="corOpen"
  3653. @click="contract(toolIndex)"
  3654. v-if="isCloseList[toolIndex].isClose == 1"
  3655. >
  3656. 展开
  3657. </div>
  3658. </div>
  3659. </div>
  3660. <div
  3661. :id="'tool-' + toolIndex"
  3662. :style="{
  3663. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3664. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3665. }"
  3666. class="worksDetailBox"
  3667. v-if="
  3668. worksStudent.length &&
  3669. worksStudent[toolIndex].length > 0
  3670. "
  3671. >
  3672. <div
  3673. class="works"
  3674. style="
  3675. width: 200px;
  3676. height: 140px;
  3677. margin: 10px 10px 10px 0;
  3678. border-radius: 15px;
  3679. box-shadow: 0 0 6px 1px #dfdada;
  3680. "
  3681. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3682. :key="wIndex"
  3683. :class="w.type == 1 ? 'isTypeOne' : ''"
  3684. >
  3685. <div class="workImg">
  3686. <img
  3687. :src="word2"
  3688. @click="downloadFile(w.works)"
  3689. alt
  3690. />
  3691. <div
  3692. class="answerScore"
  3693. v-if="w.score"
  3694. @click.stop="openScore(w)"
  3695. :class="{
  3696. rightW:
  3697. w.userid == userid ||
  3698. tType == 1 ||
  3699. tType == 4 ||
  3700. w.ateacher == userid,
  3701. }"
  3702. >
  3703. {{ JSON.parse(w.score).wScore }}分
  3704. </div>
  3705. <div
  3706. class="answerScore"
  3707. @click.stop="openScore(w)"
  3708. v-else-if="courseDetail.userid == userid"
  3709. :class="{
  3710. rightW:
  3711. w.userid == userid ||
  3712. tType == 1 ||
  3713. tType == 4 ||
  3714. w.ateacher == userid,
  3715. }"
  3716. >
  3717. 评分
  3718. </div>
  3719. <img
  3720. class="deleteImg"
  3721. src="../../assets/deleteworks.png"
  3722. v-if="
  3723. w.userid == userid || tType == 1 || tType == 4
  3724. "
  3725. @click.stop="deleteWorks(w.wid)"
  3726. alt
  3727. />
  3728. </div>
  3729. <div class="comment" style="min-width: 200px">
  3730. <div class="worksName">
  3731. <div>{{ w.sName }}</div>
  3732. </div>
  3733. <div class="commentList">
  3734. <div class="commentList">
  3735. <div
  3736. class="commentImg"
  3737. @click="
  3738. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3739. "
  3740. >
  3741. <img
  3742. :src="w.isLikes == true ? likes : noLikes"
  3743. alt=""
  3744. />
  3745. </div>
  3746. <div>{{ w.likesCount }}</div>
  3747. </div>
  3748. <div class="commentList" style="margin-right: 15px">
  3749. <div
  3750. class="commentImg"
  3751. @click="commentOther(w, toolIndex, wIndex)"
  3752. >
  3753. <img
  3754. src="../../assets/icon/comment/comment.png"
  3755. alt=""
  3756. />
  3757. </div>
  3758. <div>{{ w.commentCount }}</div>
  3759. </div>
  3760. </div>
  3761. </div>
  3762. </div>
  3763. </div>
  3764. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3765. 未提交
  3766. </div>
  3767. <div
  3768. class="noWorksS"
  3769. v-if="noWorksS && noWorksS[toolIndex].length"
  3770. >
  3771. <div
  3772. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3773. :key="sIndex"
  3774. class="noWorksName"
  3775. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3776. >
  3777. <el-tooltip effect="dark" :content="s.student" placement="top">
  3778. <span>{{ s.student }}</span>
  3779. </el-tooltip>
  3780. </div>
  3781. </div>
  3782. </div>
  3783. <div
  3784. v-if="
  3785. tType &&
  3786. ((tType == 2 && sIsOpen == true) ||
  3787. tType == 1 ||
  3788. tType == 4) &&
  3789. tool.tool.indexOf(57) != -1
  3790. "
  3791. class="worksBox"
  3792. >
  3793. <div
  3794. class="zuoyeYulan"
  3795. v-if="
  3796. worksStudent.length &&
  3797. worksStudent[toolIndex].length > 0
  3798. "
  3799. >
  3800. <div class="worksTop">
  3801. <div>作业预览</div>
  3802. <div
  3803. class="corOpen"
  3804. @click="contract(toolIndex)"
  3805. v-if="
  3806. (isCloseList[toolIndex].isCloseBoolean) &&
  3807. isCloseList[toolIndex].isClose == 0
  3808. "
  3809. >
  3810. 折叠
  3811. </div>
  3812. <div
  3813. class="corOpen"
  3814. @click="contract(toolIndex)"
  3815. v-if="isCloseList[toolIndex].isClose == 1"
  3816. >
  3817. 展开
  3818. </div>
  3819. </div>
  3820. </div>
  3821. <div
  3822. :id="'tool-' + toolIndex"
  3823. :style="{
  3824. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3825. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3826. }"
  3827. class="worksDetailBox"
  3828. v-if="
  3829. worksStudent.length &&
  3830. worksStudent[toolIndex].length > 0
  3831. "
  3832. >
  3833. <div
  3834. class="works"
  3835. style="
  3836. width: 200px;
  3837. height: 140px;
  3838. margin: 10px 10px 10px 0;
  3839. border-radius: 15px;
  3840. box-shadow: 0 0 6px 1px #dfdada;
  3841. "
  3842. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3843. :key="wIndex"
  3844. :class="w.type == 1 ? 'isTypeOne' : ''"
  3845. >
  3846. <div class="workImg">
  3847. <img
  3848. :src="word2"
  3849. @click="downloadFile(w.works)"
  3850. v-if="w.type == 12"
  3851. alt
  3852. />
  3853. <img
  3854. :src="word2"
  3855. @click="
  3856. openCocoPi(57, toolIndex, w.userid, w.sName)
  3857. "
  3858. v-else-if="w.type == 15"
  3859. alt
  3860. />
  3861. <div
  3862. class="answerScore"
  3863. v-if="w.score"
  3864. @click.stop="openScore(w)"
  3865. :class="{
  3866. rightW:
  3867. w.userid == userid ||
  3868. tType == 1 ||
  3869. tType == 4 ||
  3870. w.ateacher == userid,
  3871. }"
  3872. >
  3873. {{ JSON.parse(w.score).wScore }}分
  3874. </div>
  3875. <div
  3876. class="answerScore"
  3877. @click.stop="openScore(w)"
  3878. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3879. :class="{
  3880. rightW:
  3881. w.userid == userid ||
  3882. tType == 1 ||
  3883. tType == 4 ||
  3884. w.ateacher == userid,
  3885. }"
  3886. >
  3887. 评分
  3888. </div>
  3889. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3890. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  3891. <el-popover
  3892. placement="top"
  3893. width="318"
  3894. :disabled="AIloading[toolIndex][wIndex].loading"
  3895. trigger="hover"
  3896. >
  3897. <markScore
  3898. :loading="AIloading[toolIndex][wIndex].loading"
  3899. :markScoreVisible="markScoreVisible"
  3900. :ref="`markSco${toolIndex}${wIndex}`"
  3901. @updateLoading=updateLoading
  3902. @updateDocSco=updateDocSco
  3903. @refreshOther=refreshOther
  3904. @markScoreDig=markScoreDig
  3905. :tool="tool"
  3906. :wIndex="wIndex"
  3907. :scoCon="w"
  3908. :toolIndex="toolIndex"
  3909. :key="refreshKey"
  3910. :stage="courseType"
  3911. :task="taskCount"
  3912. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3913. >
  3914. </markScore>
  3915. <div
  3916. class="answerScore"
  3917. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3918. slot="reference"
  3919. :class="{
  3920. rightW:
  3921. w.userid == userid ||
  3922. tType == 1 ||
  3923. tType == 4 ||
  3924. w.ateacher == userid,
  3925. }"
  3926. >
  3927. <span v-if="AIloading[toolIndex][wIndex].sco">
  3928. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3929. </span>
  3930. <span v-else>
  3931. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3932. </span>
  3933. </div>
  3934. </el-popover>
  3935. </div>
  3936. <img
  3937. class="deleteImg"
  3938. src="../../assets/deleteworks.png"
  3939. v-if="
  3940. w.userid == userid || tType == 1 || tType == 4
  3941. "
  3942. @click.stop="deleteWorks(w.wid)"
  3943. alt
  3944. />
  3945. </div>
  3946. <div class="comment" style="min-width: 200px">
  3947. <div class="worksName">
  3948. <div>{{ w.sName }}</div>
  3949. </div>
  3950. <div class="commentList">
  3951. <div class="commentList">
  3952. <div
  3953. class="commentImg"
  3954. @click="
  3955. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3956. "
  3957. >
  3958. <img
  3959. :src="w.isLikes == true ? likes : noLikes"
  3960. alt=""
  3961. />
  3962. </div>
  3963. <div>{{ w.likesCount }}</div>
  3964. </div>
  3965. <div class="commentList" style="margin-right: 15px">
  3966. <div
  3967. class="commentImg"
  3968. @click="commentOther(w, toolIndex, wIndex)"
  3969. >
  3970. <img
  3971. src="../../assets/icon/comment/comment.png"
  3972. alt=""
  3973. />
  3974. </div>
  3975. <div>{{ w.commentCount }}</div>
  3976. </div>
  3977. </div>
  3978. </div>
  3979. </div>
  3980. </div>
  3981. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3982. 未提交
  3983. </div>
  3984. <div
  3985. class="noWorksS"
  3986. v-if="noWorksS && noWorksS[toolIndex].length"
  3987. >
  3988. <div
  3989. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3990. :key="sIndex"
  3991. class="noWorksName"
  3992. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3993. >
  3994. <el-tooltip effect="dark" :content="s.student" placement="top">
  3995. <span>{{ s.student }}</span>
  3996. </el-tooltip>
  3997. </div>
  3998. </div>
  3999. </div>
  4000. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  4001. <div style="display: flex;justify-content: space-between;align-items: center;">
  4002. <div
  4003. class="zuoyeYulan"
  4004. v-if="
  4005. worksStudent.length &&
  4006. worksStudent[toolIndex].length > 0
  4007. "
  4008. >
  4009. <span class="worksTitle">作业预览</span>
  4010. <div
  4011. class="corOpen"
  4012. @click="contract(toolIndex)"
  4013. v-if="
  4014. (isCloseList[toolIndex].isCloseBoolean) &&
  4015. isCloseList[toolIndex].isClose == 0
  4016. "
  4017. >
  4018. 折叠
  4019. </div>
  4020. <div
  4021. class="corOpen"
  4022. @click="contract(toolIndex)"
  4023. v-if="isCloseList[toolIndex].isClose == 1"
  4024. >
  4025. 展开
  4026. </div>
  4027. </div>
  4028. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  4029. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 5 "> -->
  4030. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  4031. 一键重置
  4032. </div>
  4033. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  4034. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4035. AI评分
  4036. </div>
  4037. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail,tool)" >
  4038. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4039. AI评分
  4040. </div>
  4041. <div class="ScoreBtn" v-else >
  4042. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4043. 正在评分
  4044. </div>
  4045. </div>
  4046. </div>
  4047. <div
  4048. :id="'tool-' + toolIndex"
  4049. :style="{
  4050. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4051. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4052. }"
  4053. class="worksDetailBox"
  4054. v-if="
  4055. worksStudent.length &&
  4056. worksStudent[toolIndex].length > 0
  4057. "
  4058. >
  4059. <div
  4060. class="works"
  4061. style="
  4062. width: 200px;
  4063. height: 140px;
  4064. margin: 10px 10px 10px 0;
  4065. border-radius: 15px;
  4066. box-shadow: 0 0 6px 1px #dfdada;
  4067. "
  4068. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4069. :key="wIndex"
  4070. :class="w.type == 1 ? 'isTypeOne' : ''"
  4071. >
  4072. <div class="workImg" v-if="w.type == 0">
  4073. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4074. <img
  4075. :src="w.works"
  4076. @click="previewImg(w.works,w)"
  4077. alt
  4078. />
  4079. <div
  4080. class="answerScore"
  4081. v-if="w.score"
  4082. @click.stop="openScore(w)"
  4083. :class="{
  4084. rightW:
  4085. w.userid == userid ||
  4086. tType == 1 ||
  4087. tType == 4 ||
  4088. w.ateacher == userid,
  4089. }"
  4090. >
  4091. {{ JSON.parse(w.score).wScore }}分
  4092. </div>
  4093. <div
  4094. class="answerScore"
  4095. @click.stop="openScore(w)"
  4096. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4097. :class="{
  4098. rightW:
  4099. w.userid == userid ||
  4100. tType == 1 ||
  4101. tType == 4 ||
  4102. w.ateacher == userid,
  4103. }"
  4104. >
  4105. 评分
  4106. </div>
  4107. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4108. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  4109. <el-popover
  4110. placement="top"
  4111. width="318"
  4112. :disabled="AIloading[toolIndex][wIndex].loading"
  4113. trigger="hover"
  4114. >
  4115. <markScore
  4116. :loading="AIloading[toolIndex][wIndex].loading"
  4117. :markScoreVisible="markScoreVisible"
  4118. :ref="`markSco${toolIndex}${wIndex}`"
  4119. @updateLoading=updateLoading
  4120. @updateDocSco=updateDocSco
  4121. @refreshOther=refreshOther
  4122. @markScoreDig=markScoreDig
  4123. :tool="tool"
  4124. :wIndex="wIndex"
  4125. :scoCon="w"
  4126. :toolIndex="toolIndex"
  4127. :key="refreshKey"
  4128. :stage="courseType"
  4129. :task="taskCount"
  4130. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4131. >
  4132. </markScore>
  4133. <div
  4134. class="answerScore"
  4135. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4136. slot="reference"
  4137. :class="{
  4138. rightW:
  4139. w.userid == userid ||
  4140. tType == 1 ||
  4141. tType == 4 ||
  4142. w.ateacher == userid,
  4143. }"
  4144. >
  4145. <span v-if="AIloading[toolIndex][wIndex].sco">
  4146. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4147. </span>
  4148. <span v-else>
  4149. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4150. </span>
  4151. </div>
  4152. </el-popover>
  4153. </div>
  4154. <img
  4155. class="deleteImg"
  4156. src="../../assets/deleteworks.png"
  4157. v-if="
  4158. w.userid == userid || tType == 1 || tType == 4
  4159. "
  4160. @click.stop="deleteWorks(w.wid)"
  4161. alt
  4162. />
  4163. </div>
  4164. <div
  4165. class="workImg"
  4166. style="cursor: pointer"
  4167. v-if="w.type == 1"
  4168. >
  4169. <img :src="word" @click="openFile(w.works)" alt />
  4170. <!-- @click="openFile(w.works)" -->
  4171. <div
  4172. class="answerScore"
  4173. v-if="w.score"
  4174. @click.stop="openScore(w)"
  4175. :class="{
  4176. rightW:
  4177. w.userid == userid ||
  4178. tType == 1 ||
  4179. tType == 4 ||
  4180. w.ateacher == userid,
  4181. }"
  4182. >
  4183. {{ JSON.parse(w.score).wScore }}分
  4184. </div>
  4185. <div
  4186. class="answerScore"
  4187. @click.stop="openScore(w)"
  4188. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4189. :class="{
  4190. rightW:
  4191. w.userid == userid ||
  4192. tType == 1 ||
  4193. tType == 4 ||
  4194. w.ateacher == userid,
  4195. }"
  4196. >
  4197. 评分
  4198. </div>
  4199. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4200. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  4201. <el-popover
  4202. placement="top"
  4203. width="318"
  4204. :disabled="AIloading[toolIndex][wIndex].loading"
  4205. trigger="hover"
  4206. >
  4207. <markScore
  4208. :loading="AIloading[toolIndex][wIndex].loading"
  4209. :markScoreVisible="markScoreVisible"
  4210. :ref="`markSco${toolIndex}${wIndex}`"
  4211. @updateLoading=updateLoading
  4212. @updateDocSco=updateDocSco
  4213. @refreshOther=refreshOther
  4214. @markScoreDig=markScoreDig
  4215. :tool="tool"
  4216. :wIndex="wIndex"
  4217. :scoCon="w"
  4218. :toolIndex="toolIndex"
  4219. :key="refreshKey"
  4220. :stage="courseType"
  4221. :task="taskCount"
  4222. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4223. >
  4224. </markScore>
  4225. <div
  4226. class="answerScore"
  4227. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4228. slot="reference"
  4229. :class="{
  4230. rightW:
  4231. w.userid == userid ||
  4232. tType == 1 ||
  4233. tType == 4 ||
  4234. w.ateacher == userid,
  4235. }"
  4236. >
  4237. <span v-if="AIloading[toolIndex][wIndex].sco">
  4238. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4239. </span>
  4240. <span v-else>
  4241. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4242. </span>
  4243. </div>
  4244. </el-popover>
  4245. </div>
  4246. <img
  4247. class="deleteImg"
  4248. src="../../assets/deleteworks.png"
  4249. v-if="
  4250. w.userid == userid || tType == 1 || tType == 4
  4251. "
  4252. @click.stop="deleteWorks(w.wid)"
  4253. alt
  4254. />
  4255. </div>
  4256. <div class="workImg" v-if="w.type == 3">
  4257. <img
  4258. style="cursor: pointer"
  4259. :src="video"
  4260. @click="openVideo(w)"
  4261. alt
  4262. />
  4263. <!-- @click="openVideo(w.works)" -->
  4264. <div
  4265. class="answerScore"
  4266. v-if="w.score"
  4267. @click.stop="openScore(w)"
  4268. :class="{
  4269. rightW:
  4270. w.userid == userid ||
  4271. tType == 1 ||
  4272. tType == 4 ||
  4273. w.ateacher == userid,
  4274. }"
  4275. >
  4276. {{ JSON.parse(w.score).wScore }}分
  4277. </div>
  4278. <div
  4279. class="answerScore"
  4280. @click.stop="openScore(w)"
  4281. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4282. :class="{
  4283. rightW:
  4284. w.userid == userid ||
  4285. tType == 1 ||
  4286. tType == 4 ||
  4287. w.ateacher == userid,
  4288. }"
  4289. >
  4290. 评分
  4291. </div>
  4292. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4293. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  4294. <el-popover
  4295. placement="top"
  4296. width="318"
  4297. :disabled="AIloading[toolIndex][wIndex].loading"
  4298. trigger="hover"
  4299. >
  4300. <markScore
  4301. :loading="AIloading[toolIndex][wIndex].loading"
  4302. :markScoreVisible="markScoreVisible"
  4303. :ref="`markSco${toolIndex}${wIndex}`"
  4304. @updateLoading=updateLoading
  4305. @updateDocSco=updateDocSco
  4306. @refreshOther=refreshOther
  4307. @markScoreDig=markScoreDig
  4308. :tool="tool"
  4309. :wIndex="wIndex"
  4310. :scoCon="w"
  4311. :toolIndex="toolIndex"
  4312. :key="refreshKey"
  4313. :stage="courseType"
  4314. :task="taskCount"
  4315. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4316. >
  4317. </markScore>
  4318. <div
  4319. class="answerScore"
  4320. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4321. slot="reference"
  4322. :class="{
  4323. rightW:
  4324. w.userid == userid ||
  4325. tType == 1 ||
  4326. tType == 4 ||
  4327. w.ateacher == userid,
  4328. }"
  4329. >
  4330. <span v-if="AIloading[toolIndex][wIndex].sco">
  4331. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4332. </span>
  4333. <span v-else>
  4334. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4335. </span>
  4336. </div>
  4337. </el-popover>
  4338. </div>
  4339. <img
  4340. class="deleteImg"
  4341. src="../../assets/deleteworks.png"
  4342. v-if="
  4343. w.userid == userid || tType == 1 || tType == 4
  4344. "
  4345. @click.stop="deleteWorks(w.wid)"
  4346. alt
  4347. />
  4348. </div>
  4349. <div class="comment" style="min-width: 200px">
  4350. <div class="worksName">
  4351. <div
  4352. style="cursor: pointer"
  4353. @click="
  4354. openSname(w.sName, w.wid, toolIndex, w.userid)
  4355. "
  4356. >
  4357. {{ w.sName }}
  4358. </div>
  4359. </div>
  4360. <div class="commentList">
  4361. <div class="commentList">
  4362. <div
  4363. class="commentImg"
  4364. @click="
  4365. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4366. "
  4367. >
  4368. <img
  4369. :src="w.isLikes == true ? likes : noLikes"
  4370. alt=""
  4371. />
  4372. </div>
  4373. <div>{{ w.likesCount }}</div>
  4374. </div>
  4375. <div class="commentList" style="margin-right: 15px">
  4376. <div
  4377. class="commentImg"
  4378. @click="commentOther(w, toolIndex, wIndex)"
  4379. >
  4380. <img
  4381. src="../../assets/icon/comment/comment.png"
  4382. alt=""
  4383. />
  4384. </div>
  4385. <div>{{ w.commentCount }}</div>
  4386. </div>
  4387. </div>
  4388. </div>
  4389. </div>
  4390. </div>
  4391. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4392. 未提交
  4393. </div>
  4394. <div
  4395. class="noWorksS"
  4396. v-if="noWorksS && noWorksS[toolIndex].length"
  4397. >
  4398. <div
  4399. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4400. :key="sIndex"
  4401. class="noWorksName"
  4402. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4403. >
  4404. <el-tooltip effect="dark" :content="s.student" placement="top">
  4405. <span>{{ s.student }}</span>
  4406. </el-tooltip>
  4407. </div>
  4408. </div>
  4409. </div>
  4410. <div
  4411. v-if="
  4412. tType &&
  4413. ((tType == 2 && sIsOpen == true) ||
  4414. tType == 1 ||
  4415. tType == 4) &&
  4416. tool.tool.indexOf(4) != -1 &&
  4417. (tool.askJson[0].answer ||
  4418. tool.askJson[0].answer === 0) &&
  4419. checkJson[toolIndex].length
  4420. "
  4421. class="xuan_right_box"
  4422. >
  4423. <div
  4424. class="tool_right_box"
  4425. v-for="(item, index) in tool.askJson"
  4426. :key="index"
  4427. >
  4428. <div style="width: calc(100% - 30px);">
  4429. <el-tooltip
  4430. effect="light"
  4431. :content="index + 1 + '、' + item.askstitle"
  4432. placement="top"
  4433. popper-class="text_tooltip"
  4434. >
  4435. <div
  4436. style="
  4437. width: calc(100% - 130px);
  4438. display: block;
  4439. white-space: nowrap;
  4440. overflow: hidden;
  4441. text-overflow: ellipsis;
  4442. word-break: break-word;
  4443. cursor: pointer;
  4444. "
  4445. >
  4446. {{ index + 1 + "、" + item.askstitle }}
  4447. </div>
  4448. </el-tooltip>
  4449. </div>
  4450. <div class="right_box_xuan">
  4451. <span>正确率</span>
  4452. <span>{{
  4453. (checkJson[toolIndex][index].right
  4454. ? checkJson[toolIndex][index].right
  4455. : 0) + "%"
  4456. }}</span>
  4457. </div>
  4458. </div>
  4459. </div>
  4460. <div
  4461. class="xuan_right_box"
  4462. style="background: unset; padding: 0 10px"
  4463. v-if="
  4464. tType &&
  4465. ((tType == 2 && sIsOpen == true) ||
  4466. tType == 1 ||
  4467. tType == 4) &&
  4468. tool.tool.indexOf(4) != -1
  4469. "
  4470. >
  4471. <AskStatic
  4472. v-if="
  4473. worksStudent.length &&
  4474. worksStudent[toolIndex].length > 0
  4475. "
  4476. :askJSON="tool"
  4477. :checkJson="checkJson[toolIndex]"
  4478. ></AskStatic>
  4479. </div>
  4480. <div
  4481. v-if="
  4482. tType &&
  4483. ((tType == 2 && sIsOpen == true) ||
  4484. tType == 1 ||
  4485. tType == 4) &&
  4486. tool.tool.indexOf(4) != -1
  4487. "
  4488. class="worksBox"
  4489. >
  4490. <div
  4491. class="zuoyeYulan"
  4492. v-if="
  4493. worksStudent.length &&
  4494. worksStudent[toolIndex].length > 0
  4495. "
  4496. >
  4497. <div class="worksTop">
  4498. <div>作业预览</div>
  4499. <div
  4500. class="corOpen"
  4501. @click="contract(toolIndex)"
  4502. v-if="
  4503. (isCloseList[toolIndex].isCloseBoolean) &&
  4504. isCloseList[toolIndex].isClose == 0
  4505. "
  4506. >
  4507. 折叠
  4508. </div>
  4509. <div
  4510. class="corOpen"
  4511. @click="contract(toolIndex)"
  4512. v-if="isCloseList[toolIndex].isClose == 1"
  4513. >
  4514. 展开
  4515. </div>
  4516. </div>
  4517. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4518. </div>
  4519. <div>
  4520. <div
  4521. :id="'tool-' + toolIndex"
  4522. :style="{
  4523. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4524. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4525. }"
  4526. class="worksDetailBox"
  4527. v-if="
  4528. worksStudent.length &&
  4529. worksStudent[toolIndex].length > 0
  4530. "
  4531. >
  4532. <div
  4533. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4534. :key="wIndex"
  4535. class="isWorksName2"
  4536. @click="
  4537. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4538. "
  4539. >
  4540. {{ w.sName }}
  4541. <img
  4542. class="deleteImg deleteImg2"
  4543. src="../../assets/deleteworks.png"
  4544. v-if="
  4545. w.userid == userid || tType == 1 || tType == 4
  4546. "
  4547. @click.stop="deleteWorks(w.wid)"
  4548. alt
  4549. />
  4550. </div>
  4551. <!-- <div class="works" style="
  4552. width: 200px;
  4553. height: 140px;
  4554. border-radius: 10px;
  4555. box-shadow: 0 0 6px 1px #dfdada;
  4556. overflow: hidden;
  4557. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4558. <div class="workImg">
  4559. <img src="../../assets/icon/works/noImg.png" @click="
  4560. openTools(
  4561. 4,
  4562. toolIndex,
  4563. taskCount,
  4564. w.works,
  4565. w.sName
  4566. )
  4567. " alt />
  4568. </div>
  4569. <div class="worksName">
  4570. <div>{{ w.sName }}</div>
  4571. <div>{{ w.time }}</div>
  4572. </div>
  4573. </div> -->
  4574. </div>
  4575. </div>
  4576. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4577. 未提交
  4578. </div>
  4579. <div
  4580. class="noWorksS"
  4581. v-if="noWorksS && noWorksS[toolIndex].length"
  4582. >
  4583. <div
  4584. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4585. :key="sIndex"
  4586. class="noWorksName"
  4587. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4588. >
  4589. <el-tooltip effect="dark" :content="s.student" placement="top">
  4590. <span>{{ s.student }}</span>
  4591. </el-tooltip>
  4592. </div>
  4593. </div>
  4594. </div>
  4595. <div
  4596. v-if="
  4597. tType &&
  4598. ((tType == 2 && sIsOpen == true) ||
  4599. tType == 1 ||
  4600. tType == 4) &&
  4601. tool.tool.indexOf(45) != -1 &&
  4602. (tool.testJson.testJson[0].answer ||
  4603. tool.testJson.testJson[0].answer === 0) &&
  4604. checkJson[toolIndex].length
  4605. "
  4606. class="xuan_right_box"
  4607. >
  4608. <div
  4609. class="tool_right_box"
  4610. v-for="(item, index) in tool.testJson.testJson"
  4611. :key="index"
  4612. >
  4613. <div class="right_box_xuan" style="margin-right: 10px">
  4614. <span>正确率</span>
  4615. <span>{{
  4616. (checkJson[toolIndex][index].right
  4617. ? checkJson[toolIndex][index].right
  4618. : 0) + "%"
  4619. }}</span>
  4620. </div>
  4621. <div style="width: calc(100% - 30px);">
  4622. <el-tooltip
  4623. effect="light"
  4624. :content="index + 1 + '、' + item.teststitle"
  4625. placement="top"
  4626. popper-class="text_tooltip"
  4627. >
  4628. <div
  4629. style="
  4630. width: calc(100% - 130px);
  4631. display: block;
  4632. white-space: nowrap;
  4633. overflow: hidden;
  4634. text-overflow: ellipsis;
  4635. word-break: break-word;
  4636. cursor: pointer;
  4637. "
  4638. >
  4639. {{ index + 1 + "、" + item.teststitle }}
  4640. </div>
  4641. </el-tooltip>
  4642. </div>
  4643. </div>
  4644. </div>
  4645. <div
  4646. class="xuan_right_box"
  4647. style="background: unset; padding: 0 10px; width: 91.5%"
  4648. v-if="
  4649. tType &&
  4650. ((tType == 2 && sIsOpen == true) ||
  4651. tType == 1 ||
  4652. tType == 4) &&
  4653. tool.tool.indexOf(45) != -1
  4654. "
  4655. >
  4656. <AskStatic2
  4657. v-if="
  4658. worksStudent.length &&
  4659. worksStudent[toolIndex].length > 0
  4660. "
  4661. :askJSON="tool"
  4662. :checkJson="checkJson[toolIndex]"
  4663. ></AskStatic2>
  4664. </div>
  4665. <div
  4666. v-if="
  4667. tType &&
  4668. ((tType == 2 && sIsOpen == true) ||
  4669. tType == 1 ||
  4670. tType == 4) &&
  4671. tool.tool.indexOf(45) != -1
  4672. "
  4673. class="worksBox"
  4674. >
  4675. <div
  4676. class="zuoyeYulan"
  4677. v-if="
  4678. worksStudent.length &&
  4679. worksStudent[toolIndex].length > 0
  4680. "
  4681. >
  4682. <div class="worksTop">
  4683. <div>作业预览</div>
  4684. <div
  4685. class="corOpen"
  4686. @click="contract(toolIndex)"
  4687. v-if="
  4688. (isCloseList[toolIndex].isCloseBoolean) &&
  4689. isCloseList[toolIndex].isClose == 0
  4690. "
  4691. >
  4692. 折叠
  4693. </div>
  4694. <div
  4695. class="corOpen"
  4696. @click="contract(toolIndex)"
  4697. v-if="isCloseList[toolIndex].isClose == 1"
  4698. >
  4699. 展开
  4700. </div>
  4701. </div>
  4702. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4703. </div>
  4704. <div>
  4705. <div
  4706. :id="'tool-' + toolIndex"
  4707. :style="{
  4708. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4709. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4710. }"
  4711. class="worksDetailBox"
  4712. v-if="
  4713. worksStudent.length &&
  4714. worksStudent[toolIndex].length > 0
  4715. "
  4716. >
  4717. <div
  4718. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4719. :key="wIndex"
  4720. class="isWorksName2"
  4721. @click="
  4722. openTools(
  4723. 45,
  4724. toolIndex,
  4725. taskCount,
  4726. w.works,
  4727. w.sName
  4728. )
  4729. "
  4730. >
  4731. {{ w.sName }}
  4732. <img
  4733. class="deleteImg deleteImg2"
  4734. src="../../assets/deleteworks.png"
  4735. v-if="
  4736. w.userid == userid || tType == 1 || tType == 4
  4737. "
  4738. @click.stop="deleteWorks(w.wid)"
  4739. alt
  4740. />
  4741. </div>
  4742. </div>
  4743. </div>
  4744. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4745. 未提交
  4746. </div>
  4747. <div
  4748. class="noWorksS"
  4749. v-if="noWorksS && noWorksS[toolIndex].length"
  4750. >
  4751. <div
  4752. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4753. :key="sIndex"
  4754. class="noWorksName"
  4755. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4756. >
  4757. <el-tooltip effect="dark" :content="s.student" placement="top">
  4758. <span>{{ s.student }}</span>
  4759. </el-tooltip>
  4760. </div>
  4761. </div>
  4762. </div>
  4763. <div
  4764. v-if="
  4765. tType &&
  4766. ((tType == 2 && sIsOpen == true) ||
  4767. tType == 1 ||
  4768. tType == 4) &&
  4769. tool.tool.indexOf(69) != -1
  4770. "
  4771. class="worksBox"
  4772. >
  4773. <div
  4774. class="zuoyeYulan"
  4775. v-if="
  4776. worksStudent.length &&
  4777. worksStudent[toolIndex].length > 0
  4778. "
  4779. >
  4780. <div class="worksTop">
  4781. <div>作业预览</div>
  4782. <div
  4783. class="corOpen"
  4784. @click="contract(toolIndex)"
  4785. v-if="
  4786. (isCloseList[toolIndex].isCloseBoolean) &&
  4787. isCloseList[toolIndex].isClose == 0
  4788. "
  4789. >
  4790. 折叠
  4791. </div>
  4792. <div
  4793. class="corOpen"
  4794. @click="contract(toolIndex)"
  4795. v-if="isCloseList[toolIndex].isClose == 1"
  4796. >
  4797. 展开
  4798. </div>
  4799. </div>
  4800. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4801. </div>
  4802. <div>
  4803. <div
  4804. :id="'tool-' + toolIndex"
  4805. :style="{
  4806. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4807. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4808. }"
  4809. class="worksDetailBox"
  4810. v-if="
  4811. worksStudent.length &&
  4812. worksStudent[toolIndex].length > 0
  4813. "
  4814. >
  4815. <div
  4816. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4817. :key="wIndex"
  4818. class="isWorksName2"
  4819. style="width: 160px;height: 65px;line-height: 65px;"
  4820. @click="
  4821. openTools(
  4822. 69,
  4823. toolIndex,
  4824. taskCount,
  4825. w.works,
  4826. w.sName,
  4827. w.wid
  4828. )
  4829. "
  4830. >
  4831. {{ w.sName }}
  4832. <img
  4833. class="deleteImg1"
  4834. src="../../assets/evaEnglish.png"
  4835. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4836. alt
  4837. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4838. />
  4839. <img
  4840. class="deleteImg deleteImg2"
  4841. src="../../assets/deleteworks.png"
  4842. v-if="
  4843. w.userid == userid || tType == 1 || tType == 4
  4844. "
  4845. @click.stop="deleteWorks(w.wid)"
  4846. alt
  4847. />
  4848. </div>
  4849. </div>
  4850. </div>
  4851. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4852. 未提交
  4853. </div>
  4854. <div
  4855. class="noWorksS"
  4856. v-if="noWorksS && noWorksS[toolIndex].length"
  4857. >
  4858. <div
  4859. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4860. :key="sIndex"
  4861. class="noWorksName"
  4862. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4863. >
  4864. <el-tooltip effect="dark" :content="s.student" placement="top">
  4865. <span>{{ s.student }}</span>
  4866. </el-tooltip>
  4867. </div>
  4868. </div>
  4869. </div>
  4870. <div
  4871. v-if="
  4872. tType &&
  4873. ((tType == 2 && sIsOpen == true) ||
  4874. tType == 1 ||
  4875. tType == 4) &&
  4876. tool.tool.indexOf(15) != -1
  4877. "
  4878. class="worksBox"
  4879. >
  4880. <div
  4881. class="zuoyeYulan"
  4882. v-if="
  4883. (worksStudent.length &&
  4884. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4885. "
  4886. >
  4887. <div class="worksTop">
  4888. <div>作业预览</div>
  4889. <div
  4890. class="corOpen"
  4891. @click="contract(toolIndex)"
  4892. v-if="
  4893. (isCloseList[toolIndex].isCloseBoolean) &&
  4894. isCloseList[toolIndex].isClose == 0
  4895. "
  4896. >
  4897. 折叠
  4898. </div>
  4899. <div
  4900. class="corOpen"
  4901. @click="contract(toolIndex)"
  4902. v-if="isCloseList[toolIndex].isClose == 1"
  4903. >
  4904. 展开
  4905. </div>
  4906. </div>
  4907. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4908. </div>
  4909. <div
  4910. class="group_workBox"
  4911. v-for="(g, gindex) in courseGroup.group"
  4912. :key="gindex"
  4913. >
  4914. <div class="group_box">
  4915. <div class="group_title">
  4916. <el-tooltip
  4917. class="item"
  4918. effect="light"
  4919. :content="g.name"
  4920. placement="top"
  4921. >
  4922. <div class="group_name">{{ g.name }}</div>
  4923. </el-tooltip>
  4924. </div>
  4925. <div
  4926. class="group_work"
  4927. v-if="
  4928. g.works &&
  4929. g.works.length &&
  4930. g.works[toolIndex].length
  4931. "
  4932. >
  4933. <div
  4934. class="works"
  4935. v-for="(w, wIndex) in g.works[toolIndex]"
  4936. :key="wIndex"
  4937. >
  4938. <div
  4939. class="workImg"
  4940. style="
  4941. border-radius: 15px;
  4942. box-shadow: 0px 0px 5px 5px #eee;
  4943. "
  4944. >
  4945. <div
  4946. class="answerBg"
  4947. style="border-radius: 15px 15px 0 0"
  4948. @click="
  4949. commentOther(w, toolIndex, wIndex, null, g.id)
  4950. "
  4951. >
  4952. <div class="answerContent">
  4953. {{ JSON.parse(w.works)[0].answer }}
  4954. </div>
  4955. <div
  4956. class="answerScore"
  4957. v-if="w.score"
  4958. @click.stop="openScore(w)"
  4959. :class="{
  4960. rightW:
  4961. w.userid == userid ||
  4962. tType == 1 ||
  4963. tType == 4,
  4964. }"
  4965. >
  4966. {{ JSON.parse(w.score).wScore }}分
  4967. </div>
  4968. <div
  4969. class="answerScore"
  4970. @click.stop="openScore(w)"
  4971. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4972. :class="{
  4973. rightW:
  4974. w.userid == userid ||
  4975. tType == 1 ||
  4976. tType == 4,
  4977. }"
  4978. >
  4979. 评分
  4980. </div>
  4981. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4982. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  4983. <el-popover
  4984. placement="top"
  4985. width="318"
  4986. :disabled="AIloading[toolIndex][wIndex].loading"
  4987. trigger="hover"
  4988. >
  4989. <markScore
  4990. :loading="AIloading[toolIndex][wIndex].loading"
  4991. :markScoreVisible="markScoreVisible"
  4992. :ref="`markSco${toolIndex}${wIndex}`"
  4993. @updateLoading=updateLoading
  4994. @updateDocSco=updateDocSco
  4995. @refreshOther=refreshOther
  4996. @markScoreDig=markScoreDig
  4997. :tool="tool"
  4998. :wIndex="wIndex"
  4999. :scoCon="w"
  5000. :toolIndex="toolIndex"
  5001. :key="refreshKey"
  5002. :stage="courseType"
  5003. :task="taskCount"
  5004. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5005. >
  5006. </markScore>
  5007. <div
  5008. class="answerScore"
  5009. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5010. slot="reference"
  5011. :class="{
  5012. rightW:
  5013. w.userid == userid ||
  5014. tType == 1 ||
  5015. tType == 4 ||
  5016. w.ateacher == userid,
  5017. }"
  5018. >
  5019. <span v-if="AIloading[toolIndex][wIndex].sco">
  5020. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5021. </span>
  5022. <span v-else>
  5023. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5024. </span>
  5025. </div>
  5026. </el-popover>
  5027. </div>
  5028. <img
  5029. class="deleteImg"
  5030. src="../../assets/deleteworks.png"
  5031. v-if="
  5032. w.userid == userid ||
  5033. tType == 1 ||
  5034. tType == 4
  5035. "
  5036. @click.stop="deleteWorks(w.wid)"
  5037. alt
  5038. />
  5039. </div>
  5040. <div class="comment">
  5041. <div class="worksName">
  5042. <div>{{ w.sName }}</div>
  5043. </div>
  5044. <div class="commentList">
  5045. <div
  5046. class="commentImg"
  5047. @click="
  5048. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5049. "
  5050. >
  5051. <img
  5052. :src="w.isLikes == true ? likes : noLikes"
  5053. alt=""
  5054. />
  5055. </div>
  5056. <div>{{ w.likesCount }}</div>
  5057. </div>
  5058. <div
  5059. class="commentList"
  5060. style="margin-right: 15px"
  5061. >
  5062. <div
  5063. class="commentImg"
  5064. @click="
  5065. commentOther(
  5066. w,
  5067. toolIndex,
  5068. wIndex,
  5069. null,
  5070. g.id
  5071. )
  5072. "
  5073. >
  5074. <img
  5075. src="../../assets/icon/comment/comment.png"
  5076. alt=""
  5077. />
  5078. </div>
  5079. <div>{{ w.commentCount }}</div>
  5080. </div>
  5081. </div>
  5082. </div>
  5083. </div>
  5084. </div>
  5085. <div class="group_work" v-else>暂无提交作业</div>
  5086. </div>
  5087. </div>
  5088. <div
  5089. :id="'tool-' + toolIndex"
  5090. :style="{
  5091. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5092. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5093. }"
  5094. class="worksDetailBox"
  5095. v-if="
  5096. worksStudent.length &&
  5097. worksStudent[toolIndex].length > 0
  5098. "
  5099. >
  5100. <div
  5101. class="works"
  5102. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5103. :key="wIndex"
  5104. >
  5105. <div
  5106. class="workImg"
  5107. style="
  5108. border-radius: 15px;
  5109. box-shadow: 0px 0px 5px 5px #eee;
  5110. "
  5111. >
  5112. <!-- <img
  5113. src="../../assets/icon/works/noImg.png"
  5114. @click="openTools(15, toolIndex, taskCount, w.works)"
  5115. alt=""
  5116. />-->
  5117. <div
  5118. class="answerBg"
  5119. style="border-radius: 15px 15px 0 0"
  5120. @click="commentOther(w, toolIndex, wIndex)"
  5121. >
  5122. <!-- <div>{{ w.sName }}</div> -->
  5123. <div class="answerContent">
  5124. {{ JSON.parse(w.works)[0].answer }}
  5125. </div>
  5126. <div
  5127. class="answerScore"
  5128. v-if="w.score"
  5129. @click.stop="openScore(w)"
  5130. :class="{
  5131. rightW:
  5132. w.userid == userid ||
  5133. tType == 1 ||
  5134. tType == 4,
  5135. }"
  5136. >
  5137. {{ JSON.parse(w.score).wScore }}分
  5138. </div>
  5139. <div
  5140. class="answerScore"
  5141. @click.stop="openScore(w)"
  5142. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5143. :class="{
  5144. rightW:
  5145. w.userid == userid ||
  5146. tType == 1 ||
  5147. tType == 4,
  5148. }"
  5149. >
  5150. 评分
  5151. </div>
  5152. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5153. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  5154. <el-popover
  5155. placement="top"
  5156. width="318"
  5157. :disabled="AIloading[toolIndex][wIndex].loading"
  5158. trigger="hover"
  5159. >
  5160. <markScore
  5161. :loading="AIloading[toolIndex][wIndex].loading"
  5162. :markScoreVisible="markScoreVisible"
  5163. :ref="`markSco${toolIndex}${wIndex}`"
  5164. @updateLoading=updateLoading
  5165. @updateDocSco=updateDocSco
  5166. @refreshOther=refreshOther
  5167. @markScoreDig=markScoreDig
  5168. :tool="tool"
  5169. :wIndex="wIndex"
  5170. :scoCon="w"
  5171. :toolIndex="toolIndex"
  5172. :key="refreshKey"
  5173. :stage="courseType"
  5174. :task="taskCount"
  5175. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5176. >
  5177. </markScore>
  5178. <div
  5179. class="answerScore"
  5180. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5181. slot="reference"
  5182. :class="{
  5183. rightW:
  5184. w.userid == userid ||
  5185. tType == 1 ||
  5186. tType == 4 ||
  5187. w.ateacher == userid,
  5188. }"
  5189. >
  5190. <span v-if="AIloading[toolIndex][wIndex].sco">
  5191. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5192. </span>
  5193. <span v-else>
  5194. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5195. </span>
  5196. </div>
  5197. </el-popover>
  5198. </div>
  5199. <img
  5200. class="deleteImg"
  5201. src="../../assets/deleteworks.png"
  5202. v-if="
  5203. w.userid == userid || tType == 1 || tType == 4
  5204. "
  5205. @click.stop="deleteWorks(w.wid)"
  5206. alt
  5207. />
  5208. </div>
  5209. <div class="comment">
  5210. <div class="worksName">
  5211. <div>{{ w.sName }}</div>
  5212. </div>
  5213. <div class="commentList">
  5214. <div
  5215. class="commentImg"
  5216. @click="
  5217. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5218. "
  5219. >
  5220. <img
  5221. :src="w.isLikes == true ? likes : noLikes"
  5222. alt=""
  5223. />
  5224. </div>
  5225. <div>{{ w.likesCount }}</div>
  5226. </div>
  5227. <div class="commentList" style="margin-right: 15px">
  5228. <div
  5229. class="commentImg"
  5230. @click="commentOther(w, toolIndex, wIndex)"
  5231. >
  5232. <img
  5233. src="../../assets/icon/comment/comment.png"
  5234. alt=""
  5235. />
  5236. </div>
  5237. <div>{{ w.commentCount }}</div>
  5238. </div>
  5239. </div>
  5240. </div>
  5241. </div>
  5242. </div>
  5243. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5244. 未提交
  5245. </div>
  5246. <div
  5247. class="noWorksS"
  5248. v-if="noWorksS && noWorksS[toolIndex].length"
  5249. >
  5250. <div
  5251. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5252. :key="sIndex"
  5253. class="noWorksName"
  5254. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5255. >
  5256. <el-tooltip effect="dark" :content="s.student" placement="top">
  5257. <span>{{ s.student }}</span>
  5258. </el-tooltip>
  5259. </div>
  5260. </div>
  5261. </div>
  5262. <div
  5263. v-if="
  5264. tType &&
  5265. ((tType == 2 && sIsOpen == true) ||
  5266. tType == 1 ||
  5267. tType == 4) &&
  5268. tool.tool.indexOf(1) != -1
  5269. "
  5270. class="worksBox"
  5271. >
  5272. <div
  5273. class="zuoyeYulan"
  5274. style="display: flex;justify-content: space-between;align-items: center;"
  5275. v-if="
  5276. (worksStudent.length &&
  5277. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5278. "
  5279. >
  5280. <div class="worksTop">
  5281. <div>作业预览</div>
  5282. <div
  5283. class="corOpen"
  5284. @click="contract(toolIndex)"
  5285. v-if="
  5286. (isCloseList[toolIndex].isCloseBoolean) &&
  5287. isCloseList[toolIndex].isClose == 0
  5288. "
  5289. >
  5290. 折叠
  5291. </div>
  5292. <div
  5293. class="corOpen"
  5294. @click="contract(toolIndex)"
  5295. v-if="isCloseList[toolIndex].isClose == 1"
  5296. >
  5297. 展开
  5298. </div>
  5299. </div>
  5300. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  5301. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  5302. 一键重置
  5303. </div>
  5304. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  5305. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5306. AI评分
  5307. </div>
  5308. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  5309. .taskDetail,tool)" >
  5310. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5311. AI评分
  5312. </div>
  5313. <div class="ScoreBtn" v-else >
  5314. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5315. 正在评分
  5316. </div>
  5317. </div>
  5318. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5319. </div>
  5320. <div
  5321. class="group_workBox"
  5322. v-for="(g, gindex) in courseGroup.group"
  5323. :key="gindex"
  5324. >
  5325. <div class="group_box">
  5326. <div class="group_title">
  5327. <el-tooltip
  5328. class="item"
  5329. effect="light"
  5330. :content="g.name"
  5331. placement="top"
  5332. >
  5333. <div class="group_name">{{ g.name }}</div>
  5334. </el-tooltip>
  5335. </div>
  5336. <div
  5337. class="group_work"
  5338. v-if="
  5339. g.works &&
  5340. g.works.length &&
  5341. g.works[toolIndex].length
  5342. "
  5343. >
  5344. <div
  5345. class="works"
  5346. style="
  5347. width: 200px;
  5348. height: 140px;
  5349. margin: 10px 10px 10px 0;
  5350. border-radius: 15px;
  5351. box-shadow: 0 0 6px 1px #dfdada;
  5352. "
  5353. v-for="(w, wIndex) in g.works[toolIndex]"
  5354. :key="wIndex"
  5355. :class="w.type == 1 ? 'isTypeOne' : ''"
  5356. >
  5357. <div class="workImg">
  5358. <img
  5359. :src="w.works"
  5360. @click="previewImg(w.works,w)"
  5361. alt
  5362. />
  5363. <div
  5364. class="answerScore"
  5365. v-if="w.score"
  5366. @click.stop="openScore(w)"
  5367. :class="{
  5368. rightW:
  5369. w.userid == userid ||
  5370. tType == 1 ||
  5371. tType == 4,
  5372. }"
  5373. >
  5374. {{ JSON.parse(w.score).wScore }}分
  5375. </div>
  5376. <div
  5377. class="answerScore"
  5378. @click.stop="openScore(w)"
  5379. v-else-if="courseDetail.userid == userid"
  5380. :class="{
  5381. rightW:
  5382. w.userid == userid ||
  5383. tType == 1 ||
  5384. tType == 4,
  5385. }"
  5386. >
  5387. 评分
  5388. </div>
  5389. <img
  5390. class="deleteImg"
  5391. src="../../assets/deleteworks.png"
  5392. v-if="
  5393. w.userid == userid || tType == 1 || tType == 4
  5394. "
  5395. @click.stop="deleteWorks(w.wid)"
  5396. alt
  5397. />
  5398. </div>
  5399. <div class="comment" style="min-width: 200px">
  5400. <div class="worksName">
  5401. <div>{{ w.sName }}</div>
  5402. </div>
  5403. <div class="commentList">
  5404. <div class="commentList">
  5405. <div
  5406. class="commentImg"
  5407. @click="
  5408. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5409. "
  5410. >
  5411. <img
  5412. :src="w.isLikes == true ? likes : noLikes"
  5413. alt=""
  5414. />
  5415. </div>
  5416. <div>{{ w.likesCount }}</div>
  5417. </div>
  5418. <div
  5419. class="commentList"
  5420. style="margin-right: 15px"
  5421. >
  5422. <div
  5423. class="commentImg"
  5424. @click="
  5425. commentOther(
  5426. w,
  5427. toolIndex,
  5428. wIndex,
  5429. null,
  5430. g.id
  5431. )
  5432. "
  5433. >
  5434. <img
  5435. src="../../assets/icon/comment/comment.png"
  5436. alt=""
  5437. />
  5438. </div>
  5439. <div>{{ w.commentCount }}</div>
  5440. </div>
  5441. </div>
  5442. </div>
  5443. </div>
  5444. </div>
  5445. <div class="group_work" v-else>暂无提交作业</div>
  5446. </div>
  5447. </div>
  5448. <div
  5449. :id="'tool-' + toolIndex"
  5450. :style="{
  5451. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5452. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5453. }"
  5454. class="worksDetailBox"
  5455. v-if="
  5456. worksStudent.length &&
  5457. worksStudent[toolIndex].length > 0
  5458. "
  5459. >
  5460. <div
  5461. class="works"
  5462. style="
  5463. width: 200px;
  5464. height: 140px;
  5465. margin: 10px 10px 10px 0;
  5466. border-radius: 15px;
  5467. box-shadow: 0 0 6px 1px #dfdada;
  5468. "
  5469. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5470. :key="wIndex"
  5471. >
  5472. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5473. <div class="workImg">
  5474. <img
  5475. :src="w.works"
  5476. @click="previewImg(w.works,w)"
  5477. alt
  5478. />
  5479. <div
  5480. class="answerScore"
  5481. v-if="w.score"
  5482. @click.stop="openScore(w)"
  5483. :class="{
  5484. rightW:
  5485. w.userid == userid || tType == 1 || tType == 4,
  5486. }"
  5487. >
  5488. {{ JSON.parse(w.score).wScore }}分
  5489. </div>
  5490. <div
  5491. class="answerScore"
  5492. @click.stop="openScore(w)"
  5493. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5494. :class="{
  5495. rightW:
  5496. w.userid == userid || tType == 1 || tType == 4,
  5497. }"
  5498. >
  5499. 评分
  5500. </div>
  5501. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  5502. <el-popover
  5503. placement="top"
  5504. width="318"
  5505. :disabled="AIloading[toolIndex][wIndex].loading"
  5506. trigger="hover"
  5507. >
  5508. <markScore
  5509. :loading="AIloading[toolIndex][wIndex].loading"
  5510. :markScoreVisible="markScoreVisible"
  5511. :ref="`markSco${toolIndex}${wIndex}`"
  5512. @updateLoading=updateLoading
  5513. @updateDocSco=updateDocSco
  5514. @refreshOther=refreshOther
  5515. @markScoreDig=markScoreDig
  5516. :tool="tool"
  5517. :wIndex="wIndex"
  5518. :scoCon="w"
  5519. :toolIndex="toolIndex"
  5520. :key="refreshKey"
  5521. :stage="courseType"
  5522. :task="taskCount"
  5523. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5524. >
  5525. </markScore>
  5526. <div
  5527. class="answerScore"
  5528. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5529. slot="reference"
  5530. :class="{
  5531. rightW:
  5532. w.userid == userid ||
  5533. tType == 1 ||
  5534. tType == 4 ||
  5535. w.ateacher == userid,
  5536. }"
  5537. >
  5538. <span v-if="AIloading[toolIndex][wIndex].sco">
  5539. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5540. </span>
  5541. <span v-else>
  5542. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5543. </span>
  5544. </div>
  5545. </el-popover>
  5546. </div>
  5547. <img
  5548. class="deleteImg"
  5549. src="../../assets/deleteworks.png"
  5550. v-if="
  5551. w.userid == userid || tType == 1 || tType == 4
  5552. "
  5553. @click.stop="deleteWorks(w.wid)"
  5554. alt
  5555. />
  5556. </div>
  5557. <div class="comment" style="min-width: 200px">
  5558. <div class="worksName">
  5559. <div>{{ w.sName }}</div>
  5560. </div>
  5561. <div class="commentList">
  5562. <div class="commentList">
  5563. <div
  5564. class="commentImg"
  5565. @click="
  5566. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5567. "
  5568. >
  5569. <img
  5570. :src="w.isLikes == true ? likes : noLikes"
  5571. alt=""
  5572. />
  5573. </div>
  5574. <div>{{ w.likesCount }}</div>
  5575. </div>
  5576. <div class="commentList" style="margin-right: 15px">
  5577. <div
  5578. class="commentImg"
  5579. @click="commentOther(w, toolIndex, wIndex)"
  5580. >
  5581. <img
  5582. src="../../assets/icon/comment/comment.png"
  5583. alt=""
  5584. />
  5585. </div>
  5586. <div>{{ w.commentCount }}</div>
  5587. </div>
  5588. </div>
  5589. </div>
  5590. </div>
  5591. </div>
  5592. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5593. 未提交
  5594. </div>
  5595. <div
  5596. class="noWorksS"
  5597. v-if="noWorksS && noWorksS[toolIndex].length"
  5598. >
  5599. <div
  5600. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5601. :key="sIndex"
  5602. class="noWorksName"
  5603. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5604. >
  5605. <el-tooltip effect="dark" :content="s.student" placement="top">
  5606. <span>{{ s.student }}</span>
  5607. </el-tooltip>
  5608. </div>
  5609. </div>
  5610. </div>
  5611. <div
  5612. v-if="
  5613. tType &&
  5614. ((tType == 2 && sIsOpen == true) ||
  5615. tType == 1 ||
  5616. tType == 4) &&
  5617. tool.tool.indexOf(3) != -1
  5618. "
  5619. class="worksBox"
  5620. >
  5621. <div
  5622. class="zuoyeYulan"
  5623. style="display: flex;justify-content: space-between;align-items: center;"
  5624. v-if="
  5625. (worksStudent.length &&
  5626. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5627. "
  5628. >
  5629. <div class="worksTop">
  5630. <div>作业预览</div>
  5631. <div
  5632. class="corOpen"
  5633. @click="contract(toolIndex)"
  5634. v-if="
  5635. (isCloseList[toolIndex].isCloseBoolean) &&
  5636. isCloseList[toolIndex].isClose == 0
  5637. "
  5638. >
  5639. 折叠
  5640. </div>
  5641. <div
  5642. class="corOpen"
  5643. @click="contract(toolIndex)"
  5644. v-if="isCloseList[toolIndex].isClose == 1"
  5645. >
  5646. 展开
  5647. </div>
  5648. </div>
  5649. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  5650. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  5651. 一键重置
  5652. </div>
  5653. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  5654. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5655. AI评分
  5656. </div>
  5657. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  5658. .taskDetail,tool)" >
  5659. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5660. AI评分
  5661. </div>
  5662. <div class="ScoreBtn" v-else >
  5663. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5664. 正在评分
  5665. </div>
  5666. </div>
  5667. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5668. </div>
  5669. <div
  5670. class="group_workBox"
  5671. v-for="(g, gindex) in courseGroup.group"
  5672. :key="gindex"
  5673. >
  5674. <div class="group_box">
  5675. <div class="group_title">
  5676. <el-tooltip
  5677. class="item"
  5678. effect="light"
  5679. :content="g.name"
  5680. placement="top"
  5681. >
  5682. <div class="group_name">{{ g.name }}</div>
  5683. </el-tooltip>
  5684. </div>
  5685. <div
  5686. class="group_work"
  5687. v-if="
  5688. g.works &&
  5689. g.works.length &&
  5690. g.works[toolIndex].length
  5691. "
  5692. >
  5693. <div
  5694. class="works"
  5695. style="
  5696. width: 200px;
  5697. height: 140px;
  5698. margin: 10px 10px 10px 0;
  5699. border-radius: 15px;
  5700. box-shadow: 0 0 6px 1px #dfdada;
  5701. "
  5702. v-for="(w, wIndex) in g.works[toolIndex]"
  5703. :key="wIndex"
  5704. :class="w.type == 1 ? 'isTypeOne' : ''"
  5705. >
  5706. <div class="workImg">
  5707. <img
  5708. :src="w.works"
  5709. @click="previewImg(w.works,w)"
  5710. alt
  5711. />
  5712. <div
  5713. class="answerScore"
  5714. v-if="w.score"
  5715. @click.stop="openScore(w)"
  5716. :class="{
  5717. rightW:
  5718. w.userid == userid ||
  5719. tType == 1 ||
  5720. tType == 4,
  5721. }"
  5722. >
  5723. {{ JSON.parse(w.score).wScore }}分
  5724. </div>
  5725. <div
  5726. class="answerScore"
  5727. @click.stop="openScore(w)"
  5728. v-else-if="courseDetail.userid == userid"
  5729. :class="{
  5730. rightW:
  5731. w.userid == userid ||
  5732. tType == 1 ||
  5733. tType == 4,
  5734. }"
  5735. >
  5736. 评分
  5737. </div>
  5738. <img
  5739. class="deleteImg"
  5740. src="../../assets/deleteworks.png"
  5741. v-if="
  5742. w.userid == userid || tType == 1 || tType == 4
  5743. "
  5744. @click.stop="deleteWorks(w.wid)"
  5745. alt
  5746. />
  5747. </div>
  5748. <div class="comment" style="min-width: 200px">
  5749. <div class="worksName">
  5750. <div>{{ w.sName }}</div>
  5751. </div>
  5752. <div class="commentList">
  5753. <div class="commentList">
  5754. <div
  5755. class="commentImg"
  5756. @click="
  5757. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5758. "
  5759. >
  5760. <img
  5761. :src="w.isLikes == true ? likes : noLikes"
  5762. alt=""
  5763. />
  5764. </div>
  5765. <div>{{ w.likesCount }}</div>
  5766. </div>
  5767. <div
  5768. class="commentList"
  5769. style="margin-right: 15px"
  5770. >
  5771. <div
  5772. class="commentImg"
  5773. @click="
  5774. commentOther(
  5775. w,
  5776. toolIndex,
  5777. wIndex,
  5778. null,
  5779. g.id
  5780. )
  5781. "
  5782. >
  5783. <img
  5784. src="../../assets/icon/comment/comment.png"
  5785. alt=""
  5786. />
  5787. </div>
  5788. <div>{{ w.commentCount }}</div>
  5789. </div>
  5790. </div>
  5791. </div>
  5792. </div>
  5793. </div>
  5794. <div class="group_work" v-else>暂无提交作业</div>
  5795. </div>
  5796. </div>
  5797. <div
  5798. :id="'tool-' + toolIndex"
  5799. :style="{
  5800. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5801. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5802. }"
  5803. class="worksDetailBox"
  5804. v-if="
  5805. worksStudent.length &&
  5806. worksStudent[toolIndex].length > 0
  5807. "
  5808. >
  5809. <div
  5810. class="works"
  5811. style="
  5812. width: 200px;
  5813. height: 140px;
  5814. margin: 10px 10px 10px 0;
  5815. border-radius: 15px;
  5816. box-shadow: 0 0 6px 1px #dfdada;
  5817. "
  5818. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5819. :key="wIndex"
  5820. >
  5821. <!-- @click="previewImg(w.works)" -->
  5822. <div class="workImg">
  5823. <img
  5824. :src="w.works"
  5825. @click="previewImg(w.works,w)"
  5826. alt
  5827. />
  5828. <div
  5829. class="answerScore"
  5830. v-if="w.score"
  5831. @click.stop="openScore(w)"
  5832. :class="{
  5833. rightW:
  5834. w.userid == userid || tType == 1 || tType == 4,
  5835. }"
  5836. >
  5837. {{ JSON.parse(w.score).wScore }}分
  5838. </div>
  5839. <div
  5840. class="answerScore"
  5841. @click.stop="openScore(w)"
  5842. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5843. :class="{
  5844. rightW:
  5845. w.userid == userid || tType == 1 || tType == 4,
  5846. }"
  5847. >
  5848. 评分
  5849. </div>
  5850. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5851. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  5852. <el-popover
  5853. placement="top"
  5854. width="318"
  5855. :disabled="AIloading[toolIndex][wIndex].loading"
  5856. trigger="hover"
  5857. >
  5858. <markScore
  5859. :loading="AIloading[toolIndex][wIndex].loading"
  5860. :markScoreVisible="markScoreVisible"
  5861. :ref="`markSco${toolIndex}${wIndex}`"
  5862. @updateLoading=updateLoading
  5863. @updateDocSco=updateDocSco
  5864. @refreshOther=refreshOther
  5865. @markScoreDig=markScoreDig
  5866. :tool="tool"
  5867. :wIndex="wIndex"
  5868. :scoCon="w"
  5869. :toolIndex="toolIndex"
  5870. :key="refreshKey"
  5871. :stage="courseType"
  5872. :task="taskCount"
  5873. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5874. >
  5875. </markScore>
  5876. <div
  5877. class="answerScore"
  5878. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5879. slot="reference"
  5880. :class="{
  5881. rightW:
  5882. w.userid == userid ||
  5883. tType == 1 ||
  5884. tType == 4 ||
  5885. w.ateacher == userid,
  5886. }"
  5887. >
  5888. <span v-if="AIloading[toolIndex][wIndex].sco">
  5889. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5890. </span>
  5891. <span v-else>
  5892. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5893. </span>
  5894. </div>
  5895. </el-popover>
  5896. </div>
  5897. <img
  5898. class="deleteImg"
  5899. src="../../assets/deleteworks.png"
  5900. v-if="
  5901. w.userid == userid || tType == 1 || tType == 4
  5902. "
  5903. @click.stop="deleteWorks(w.wid)"
  5904. alt
  5905. />
  5906. </div>
  5907. <div class="comment" style="min-width: 200px">
  5908. <div class="worksName">
  5909. <div>{{ w.sName }}</div>
  5910. </div>
  5911. <div class="commentList">
  5912. <div class="commentList">
  5913. <div
  5914. class="commentImg"
  5915. @click="
  5916. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5917. "
  5918. >
  5919. <img
  5920. :src="w.isLikes == true ? likes : noLikes"
  5921. alt=""
  5922. />
  5923. </div>
  5924. <div>{{ w.likesCount }}</div>
  5925. </div>
  5926. <div class="commentList" style="margin-right: 15px">
  5927. <div
  5928. class="commentImg"
  5929. @click="commentOther(w, toolIndex, wIndex)"
  5930. >
  5931. <img
  5932. src="../../assets/icon/comment/comment.png"
  5933. alt=""
  5934. />
  5935. </div>
  5936. <div>{{ w.commentCount }}</div>
  5937. </div>
  5938. </div>
  5939. </div>
  5940. </div>
  5941. </div>
  5942. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5943. 未提交
  5944. </div>
  5945. <div
  5946. class="noWorksS"
  5947. v-if="noWorksS && noWorksS[toolIndex].length"
  5948. >
  5949. <div
  5950. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5951. :key="sIndex"
  5952. class="noWorksName"
  5953. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5954. >
  5955. <el-tooltip effect="dark" :content="s.student" placement="top">
  5956. <span>{{ s.student }}</span>
  5957. </el-tooltip>
  5958. </div>
  5959. </div>
  5960. </div>
  5961. <div
  5962. v-if="
  5963. tType &&
  5964. ((tType == 2 && sIsOpen == true) ||
  5965. tType == 1 ||
  5966. tType == 4) &&
  5967. tool.tool.indexOf(6) != -1
  5968. "
  5969. class="worksBox"
  5970. >
  5971. <div
  5972. class="zuoyeYulan"
  5973. v-if="
  5974. (worksStudent.length &&
  5975. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5976. "
  5977. >
  5978. <div class="worksTop">
  5979. <div>作业预览</div>
  5980. <div
  5981. class="corOpen"
  5982. @click="contract(toolIndex)"
  5983. v-if="
  5984. (isCloseList[toolIndex].isCloseBoolean) &&
  5985. isCloseList[toolIndex].isClose == 0
  5986. "
  5987. >
  5988. 折叠
  5989. </div>
  5990. <div
  5991. class="corOpen"
  5992. @click="contract(toolIndex)"
  5993. v-if="isCloseList[toolIndex].isClose == 1"
  5994. >
  5995. 展开
  5996. </div>
  5997. </div>
  5998. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5999. </div>
  6000. <div
  6001. class="group_workBox"
  6002. v-for="(g, gindex) in courseGroup.group"
  6003. :key="gindex"
  6004. >
  6005. <div class="group_box">
  6006. <div class="group_title">
  6007. <el-tooltip
  6008. class="item"
  6009. effect="light"
  6010. :content="g.name"
  6011. placement="top"
  6012. >
  6013. <div class="group_name">{{ g.name }}</div>
  6014. </el-tooltip>
  6015. </div>
  6016. <div
  6017. class="group_work"
  6018. v-if="
  6019. g.works &&
  6020. g.works.length &&
  6021. g.works[toolIndex].length
  6022. "
  6023. >
  6024. <div
  6025. class="works"
  6026. style="
  6027. width: 200px;
  6028. height: 140px;
  6029. margin: 10px 10px 10px 0;
  6030. border-radius: 15px;
  6031. box-shadow: 0 0 6px 1px #dfdada;
  6032. "
  6033. v-for="(w, wIndex) in g.works[toolIndex]"
  6034. :key="wIndex"
  6035. :class="w.type == 1 ? 'isTypeOne' : ''"
  6036. >
  6037. <div class="workImg">
  6038. <img
  6039. :src="w.works"
  6040. @click="previewImg(w.works,w)"
  6041. alt
  6042. />
  6043. <div
  6044. class="answerScore"
  6045. v-if="w.score"
  6046. @click.stop="openScore(w)"
  6047. :class="{
  6048. rightW:
  6049. w.userid == userid ||
  6050. tType == 1 ||
  6051. tType == 4,
  6052. }"
  6053. >
  6054. {{ JSON.parse(w.score).wScore }}分
  6055. </div>
  6056. <div
  6057. class="answerScore"
  6058. @click.stop="openScore(w)"
  6059. v-else-if="courseDetail.userid == userid"
  6060. :class="{
  6061. rightW:
  6062. w.userid == userid ||
  6063. tType == 1 ||
  6064. tType == 4,
  6065. }"
  6066. >
  6067. 评分
  6068. </div>
  6069. <img
  6070. class="deleteImg"
  6071. src="../../assets/deleteworks.png"
  6072. v-if="
  6073. w.userid == userid || tType == 1 || tType == 4
  6074. "
  6075. @click.stop="deleteWorks(w.wid)"
  6076. alt
  6077. />
  6078. </div>
  6079. <div class="comment" style="min-width: 200px">
  6080. <div class="worksName">
  6081. <div>{{ w.sName }}</div>
  6082. </div>
  6083. <div class="commentList">
  6084. <div class="commentList">
  6085. <div
  6086. class="commentImg"
  6087. @click="
  6088. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6089. "
  6090. >
  6091. <img
  6092. :src="w.isLikes == true ? likes : noLikes"
  6093. alt=""
  6094. />
  6095. </div>
  6096. <div>{{ w.likesCount }}</div>
  6097. </div>
  6098. <div
  6099. class="commentList"
  6100. style="margin-right: 15px"
  6101. >
  6102. <div
  6103. class="commentImg"
  6104. @click="
  6105. commentOther(
  6106. w,
  6107. toolIndex,
  6108. wIndex,
  6109. null,
  6110. g.id
  6111. )
  6112. "
  6113. >
  6114. <img
  6115. src="../../assets/icon/comment/comment.png"
  6116. alt=""
  6117. />
  6118. </div>
  6119. <div>{{ w.commentCount }}</div>
  6120. </div>
  6121. </div>
  6122. </div>
  6123. </div>
  6124. </div>
  6125. <div class="group_work" v-else>暂无提交作业</div>
  6126. </div>
  6127. </div>
  6128. <div
  6129. :id="'tool-' + toolIndex"
  6130. :style="{
  6131. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6132. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6133. }"
  6134. class="worksDetailBox"
  6135. v-if="
  6136. worksStudent.length &&
  6137. worksStudent[toolIndex].length > 0
  6138. "
  6139. >
  6140. <div
  6141. class="works"
  6142. style="
  6143. width: 200px;
  6144. height: 140px;
  6145. margin: 10px 10px 10px 0;
  6146. border-radius: 15px;
  6147. box-shadow: 0 0 6px 1px #dfdada;
  6148. "
  6149. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6150. :key="wIndex"
  6151. >
  6152. <!-- @click="previewImg(w.works)" -->
  6153. <div class="workImg">
  6154. <img
  6155. :src="w.works"
  6156. @click="previewImg(w.works,w)"
  6157. alt
  6158. />
  6159. <div
  6160. class="answerScore"
  6161. v-if="w.score"
  6162. @click.stop="openScore(w)"
  6163. :class="{
  6164. rightW:
  6165. w.userid == userid || tType == 1 || tType == 4,
  6166. }"
  6167. >
  6168. {{ JSON.parse(w.score).wScore }}分
  6169. </div>
  6170. <div
  6171. class="answerScore"
  6172. @click.stop="openScore(w)"
  6173. v-else-if="courseDetail.userid == userid"
  6174. :class="{
  6175. rightW:
  6176. w.userid == userid || tType == 1 || tType == 4,
  6177. }"
  6178. >
  6179. 评分
  6180. </div>
  6181. <img
  6182. class="deleteImg"
  6183. src="../../assets/deleteworks.png"
  6184. v-if="
  6185. w.userid == userid || tType == 1 || tType == 4
  6186. "
  6187. @click.stop="deleteWorks(w.wid)"
  6188. alt
  6189. />
  6190. </div>
  6191. <div class="comment" style="min-width: 200px">
  6192. <div class="worksName">
  6193. <div>{{ w.sName }}</div>
  6194. </div>
  6195. <div class="commentList">
  6196. <div class="commentList">
  6197. <div
  6198. class="commentImg"
  6199. @click="
  6200. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6201. "
  6202. >
  6203. <img
  6204. :src="w.isLikes == true ? likes : noLikes"
  6205. alt=""
  6206. />
  6207. </div>
  6208. <div>{{ w.likesCount }}</div>
  6209. </div>
  6210. <div class="commentList" style="margin-right: 15px">
  6211. <div
  6212. class="commentImg"
  6213. @click="commentOther(w, toolIndex, wIndex)"
  6214. >
  6215. <img
  6216. src="../../assets/icon/comment/comment.png"
  6217. alt=""
  6218. />
  6219. </div>
  6220. <div>{{ w.commentCount }}</div>
  6221. </div>
  6222. </div>
  6223. </div>
  6224. </div>
  6225. </div>
  6226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6227. 未提交
  6228. </div>
  6229. <div
  6230. class="noWorksS"
  6231. v-if="noWorksS && noWorksS[toolIndex].length"
  6232. >
  6233. <div
  6234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6235. :key="sIndex"
  6236. class="noWorksName"
  6237. >
  6238. <el-tooltip effect="dark" :content="s.student" placement="top">
  6239. <span>{{ s.student }}</span>
  6240. </el-tooltip>
  6241. </div>
  6242. </div>
  6243. </div>
  6244. <div
  6245. v-if="
  6246. tType &&
  6247. ((tType == 2 && sIsOpen == true) ||
  6248. tType == 1 ||
  6249. tType == 4) &&
  6250. tool.tool.indexOf(7) != -1
  6251. "
  6252. class="worksBox"
  6253. >
  6254. <div
  6255. class="zuoyeYulan"
  6256. style="display: flex;justify-content: space-between;align-items: center;"
  6257. v-if="
  6258. (worksStudent.length &&
  6259. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  6260. "
  6261. >
  6262. <div class="worksTop">
  6263. <div>作业预览</div>
  6264. <div
  6265. class="corOpen"
  6266. @click="contract(toolIndex)"
  6267. v-if="
  6268. (isCloseList[toolIndex].isCloseBoolean) &&
  6269. isCloseList[toolIndex].isClose == 0
  6270. "
  6271. >
  6272. 折叠
  6273. </div>
  6274. <div
  6275. class="corOpen"
  6276. @click="contract(toolIndex)"
  6277. v-if="isCloseList[toolIndex].isClose == 1"
  6278. >
  6279. 展开
  6280. </div>
  6281. </div>
  6282. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  6283. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  6284. 一键重置
  6285. </div>
  6286. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  6287. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6288. AI评分
  6289. </div>
  6290. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  6291. .taskDetail,tool)" >
  6292. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6293. AI评分
  6294. </div>
  6295. <div class="ScoreBtn" v-else >
  6296. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6297. 正在评分
  6298. </div>
  6299. </div>
  6300. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6301. </div>
  6302. <div
  6303. class="group_workBox"
  6304. v-for="(g, gindex) in courseGroup.group"
  6305. :key="gindex"
  6306. >
  6307. <div class="group_box">
  6308. <div class="group_title">
  6309. <el-tooltip
  6310. class="item"
  6311. effect="light"
  6312. :content="g.name"
  6313. placement="top"
  6314. >
  6315. <div class="group_name">{{ g.name }}</div>
  6316. </el-tooltip>
  6317. </div>
  6318. <div
  6319. class="group_work"
  6320. v-if="
  6321. g.works &&
  6322. g.works.length &&
  6323. g.works[toolIndex].length
  6324. "
  6325. >
  6326. <div
  6327. class="works"
  6328. style="
  6329. width: 200px;
  6330. height: 140px;
  6331. margin: 10px 10px 10px 0;
  6332. border-radius: 15px;
  6333. box-shadow: 0 0 6px 1px #dfdada;
  6334. "
  6335. v-for="(w, wIndex) in g.works[toolIndex]"
  6336. :key="wIndex"
  6337. :class="w.type == 1 ? 'isTypeOne' : ''"
  6338. >
  6339. <div class="workImg">
  6340. <img
  6341. :src="w.works"
  6342. @click="previewImg(w.works,w)"
  6343. alt
  6344. />
  6345. <div
  6346. class="answerScore"
  6347. v-if="w.score"
  6348. @click.stop="openScore(w)"
  6349. :class="{
  6350. rightW:
  6351. w.userid == userid ||
  6352. tType == 1 ||
  6353. tType == 4,
  6354. }"
  6355. >
  6356. {{ JSON.parse(w.score).wScore }}分
  6357. </div>
  6358. <div
  6359. class="answerScore"
  6360. @click.stop="openScore(w)"
  6361. v-else-if="courseDetail.userid == userid"
  6362. :class="{
  6363. rightW:
  6364. w.userid == userid ||
  6365. tType == 1 ||
  6366. tType == 4,
  6367. }"
  6368. >
  6369. 评分
  6370. </div>
  6371. <img
  6372. class="deleteImg"
  6373. src="../../assets/deleteworks.png"
  6374. v-if="
  6375. w.userid == userid || tType == 1 || tType == 4
  6376. "
  6377. @click.stop="deleteWorks(w.wid)"
  6378. alt
  6379. />
  6380. </div>
  6381. <div class="comment" style="min-width: 200px">
  6382. <div class="worksName">
  6383. <div>{{ w.sName }}</div>
  6384. </div>
  6385. <div class="commentList">
  6386. <div class="commentList">
  6387. <div
  6388. class="commentImg"
  6389. @click="
  6390. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6391. "
  6392. >
  6393. <img
  6394. :src="w.isLikes == true ? likes : noLikes"
  6395. alt=""
  6396. />
  6397. </div>
  6398. <div>{{ w.likesCount }}</div>
  6399. </div>
  6400. <div
  6401. class="commentList"
  6402. style="margin-right: 15px"
  6403. >
  6404. <div
  6405. class="commentImg"
  6406. @click="
  6407. commentOther(
  6408. w,
  6409. toolIndex,
  6410. wIndex,
  6411. null,
  6412. g.id
  6413. )
  6414. "
  6415. >
  6416. <img
  6417. src="../../assets/icon/comment/comment.png"
  6418. alt=""
  6419. />
  6420. </div>
  6421. <div>{{ w.commentCount }}</div>
  6422. </div>
  6423. </div>
  6424. </div>
  6425. </div>
  6426. </div>
  6427. <div class="group_work" v-else>暂无提交作业</div>
  6428. </div>
  6429. </div>
  6430. <div
  6431. :id="'tool-' + toolIndex"
  6432. :style="{
  6433. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6434. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6435. }"
  6436. class="worksDetailBox"
  6437. v-if="
  6438. worksStudent.length &&
  6439. worksStudent[toolIndex].length > 0
  6440. "
  6441. >
  6442. <div
  6443. class="works"
  6444. style="
  6445. width: 200px;
  6446. height: 140px;
  6447. margin: 10px 10px 10px 0;
  6448. border-radius: 15px;
  6449. box-shadow: 0 0 6px 1px #dfdada;
  6450. "
  6451. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6452. :key="wIndex"
  6453. >
  6454. <!-- @click="previewImg(w.works)" -->
  6455. <div class="workImg">
  6456. <img
  6457. :src="w.works"
  6458. @click="previewImg(w.works,w)"
  6459. alt
  6460. />
  6461. <div
  6462. class="answerScore"
  6463. v-if="w.score"
  6464. @click.stop="openScore(w)"
  6465. :class="{
  6466. rightW:
  6467. w.userid == userid || tType == 1 || tType == 4,
  6468. }"
  6469. >
  6470. {{ JSON.parse(w.score).wScore }}分
  6471. </div>
  6472. <div
  6473. class="answerScore"
  6474. @click.stop="openScore(w)"
  6475. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  6476. :class="{
  6477. rightW:
  6478. w.userid == userid || tType == 1 || tType == 4,
  6479. }"
  6480. >
  6481. 评分
  6482. </div>
  6483. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6484. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  6485. <el-popover
  6486. placement="top"
  6487. width="318"
  6488. :disabled="AIloading[toolIndex][wIndex].loading"
  6489. trigger="hover"
  6490. >
  6491. <markScore
  6492. :loading="AIloading[toolIndex][wIndex].loading"
  6493. :markScoreVisible="markScoreVisible"
  6494. :ref="`markSco${toolIndex}${wIndex}`"
  6495. @updateLoading=updateLoading
  6496. @updateDocSco=updateDocSco
  6497. @refreshOther=refreshOther
  6498. @markScoreDig=markScoreDig
  6499. :tool="tool"
  6500. :wIndex="wIndex"
  6501. :scoCon="w"
  6502. :toolIndex="toolIndex"
  6503. :key="refreshKey"
  6504. :stage="courseType"
  6505. :task="taskCount"
  6506. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6507. >
  6508. </markScore>
  6509. <div
  6510. class="answerScore"
  6511. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  6512. slot="reference"
  6513. :class="{
  6514. rightW:
  6515. w.userid == userid ||
  6516. tType == 1 ||
  6517. tType == 4 ||
  6518. w.ateacher == userid,
  6519. }"
  6520. >
  6521. <span v-if="AIloading[toolIndex][wIndex].sco">
  6522. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6523. </span>
  6524. <span v-else>
  6525. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  6526. </span>
  6527. </div>
  6528. </el-popover>
  6529. </div>
  6530. <img
  6531. class="deleteImg"
  6532. src="../../assets/deleteworks.png"
  6533. v-if="
  6534. w.userid == userid || tType == 1 || tType == 4
  6535. "
  6536. @click.stop="deleteWorks(w.wid)"
  6537. alt
  6538. />
  6539. </div>
  6540. <div class="comment" style="min-width: 200px">
  6541. <div class="worksName">
  6542. <div>{{ w.sName }}</div>
  6543. </div>
  6544. <div class="commentList">
  6545. <div class="commentList">
  6546. <div
  6547. class="commentImg"
  6548. @click="
  6549. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6550. "
  6551. >
  6552. <img
  6553. :src="w.isLikes == true ? likes : noLikes"
  6554. alt=""
  6555. />
  6556. </div>
  6557. <div>{{ w.likesCount }}</div>
  6558. </div>
  6559. <div class="commentList" style="margin-right: 15px">
  6560. <div
  6561. class="commentImg"
  6562. @click="commentOther(w, toolIndex, wIndex)"
  6563. >
  6564. <img
  6565. src="../../assets/icon/comment/comment.png"
  6566. alt=""
  6567. />
  6568. </div>
  6569. <div>{{ w.commentCount }}</div>
  6570. </div>
  6571. </div>
  6572. </div>
  6573. </div>
  6574. </div>
  6575. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6576. 未提交
  6577. </div>
  6578. <div
  6579. class="noWorksS"
  6580. v-if="noWorksS && noWorksS[toolIndex].length"
  6581. >
  6582. <div
  6583. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6584. :key="sIndex"
  6585. class="noWorksName"
  6586. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6587. >
  6588. <el-tooltip effect="dark" :content="s.student" placement="top">
  6589. <span>{{ s.student }}</span>
  6590. </el-tooltip>
  6591. </div>
  6592. </div>
  6593. </div>
  6594. <div
  6595. v-if="
  6596. tType &&
  6597. ((tType == 2 && sIsOpen == true) ||
  6598. tType == 1 ||
  6599. tType == 4) &&
  6600. tool.tool.indexOf(26) != -1
  6601. "
  6602. class="worksBox"
  6603. >
  6604. <div
  6605. class="zuoyeYulan"
  6606. v-if="
  6607. worksStudent.length &&
  6608. worksStudent[toolIndex].length > 0
  6609. "
  6610. >
  6611. <div class="worksTop">
  6612. <div>作业预览</div>
  6613. <div
  6614. class="corOpen"
  6615. @click="contract(toolIndex)"
  6616. v-if="
  6617. (isCloseList[toolIndex].isCloseBoolean) &&
  6618. isCloseList[toolIndex].isClose == 0
  6619. "
  6620. >
  6621. 折叠
  6622. </div>
  6623. <div
  6624. class="corOpen"
  6625. @click="contract(toolIndex)"
  6626. v-if="isCloseList[toolIndex].isClose == 1"
  6627. >
  6628. 展开
  6629. </div>
  6630. </div>
  6631. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6632. </div>
  6633. <div
  6634. :id="'tool-' + toolIndex"
  6635. :style="{
  6636. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6637. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6638. }"
  6639. class="worksDetailBox"
  6640. v-if="
  6641. worksStudent.length &&
  6642. worksStudent[toolIndex].length > 0
  6643. "
  6644. >
  6645. <div
  6646. class="works"
  6647. style="width: 240px; height: 140px; overflow: hidden"
  6648. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6649. :key="wIndex"
  6650. :class="w.type == 1 ? 'isTypeOne' : ''"
  6651. >
  6652. <div class="workImg" v-if="w.type == 0">
  6653. <img
  6654. :src="w.works"
  6655. @click="previewImg(w.works,w)"
  6656. alt
  6657. />
  6658. <img
  6659. class="deleteImg"
  6660. src="../../assets/deleteworks.png"
  6661. v-if="
  6662. w.userid == userid || tType == 1 || tType == 4
  6663. "
  6664. @click.stop="deleteWorks(w.wid)"
  6665. alt
  6666. />
  6667. </div>
  6668. <div class="workImg" v-if="w.type == 1">
  6669. <img :src="word" @click="openFile(w.works)" alt />
  6670. <img
  6671. class="deleteImg"
  6672. src="../../assets/deleteworks.png"
  6673. v-if="
  6674. w.userid == userid || tType == 1 || tType == 4
  6675. "
  6676. @click.stop="deleteWorks(w.wid)"
  6677. alt
  6678. />
  6679. </div>
  6680. <div class="worksName">
  6681. <div>{{ w.sName }}</div>
  6682. </div>
  6683. </div>
  6684. </div>
  6685. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6686. 未提交
  6687. </div>
  6688. <div
  6689. class="noWorksS"
  6690. v-if="noWorksS && noWorksS[toolIndex].length"
  6691. >
  6692. <div
  6693. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6694. :key="sIndex"
  6695. class="noWorksName"
  6696. >
  6697. <el-tooltip effect="dark" :content="s.student" placement="top">
  6698. <span>{{ s.student }}</span>
  6699. </el-tooltip>
  6700. </div>
  6701. </div>
  6702. </div>
  6703. <div
  6704. v-if="
  6705. tType &&
  6706. ((tType == 2 && sIsOpen == true) ||
  6707. tType == 1 ||
  6708. tType == 4) &&
  6709. tool.tool.indexOf(40) != -1
  6710. "
  6711. class="worksBox"
  6712. >
  6713. <div
  6714. class="zuoyeYulan"
  6715. v-if="
  6716. worksStudent.length &&
  6717. worksStudent[toolIndex].length > 0
  6718. "
  6719. >
  6720. <div class="worksTop">
  6721. <div>作业预览</div>
  6722. <div
  6723. class="corOpen"
  6724. @click="contract(toolIndex)"
  6725. v-if="
  6726. (isCloseList[toolIndex].isCloseBoolean) &&
  6727. isCloseList[toolIndex].isClose == 0
  6728. "
  6729. >
  6730. 折叠
  6731. </div>
  6732. <div
  6733. class="corOpen"
  6734. @click="contract(toolIndex)"
  6735. v-if="isCloseList[toolIndex].isClose == 1"
  6736. >
  6737. 展开
  6738. </div>
  6739. </div>
  6740. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6741. </div>
  6742. <div
  6743. :id="'tool-' + toolIndex"
  6744. :style="{
  6745. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6746. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6747. }"
  6748. class="worksDetailBox"
  6749. v-if="
  6750. worksStudent.length &&
  6751. worksStudent[toolIndex].length > 0
  6752. "
  6753. >
  6754. <div
  6755. class="works"
  6756. style="
  6757. width: 200px;
  6758. height: 140px;
  6759. margin: 10px 10px 10px 0;
  6760. border-radius: 15px;
  6761. box-shadow: 0 0 6px 1px #dfdada;
  6762. "
  6763. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6764. :key="wIndex"
  6765. :class="w.type == 1 ? 'isTypeOne' : ''"
  6766. >
  6767. <div class="workImg">
  6768. <img
  6769. src="../../assets/icon/works/noImg.png"
  6770. @click="openPj(w.works, toolIndex)"
  6771. alt
  6772. />
  6773. <img
  6774. class="deleteImg"
  6775. src="../../assets/deleteworks.png"
  6776. v-if="
  6777. w.userid == userid || tType == 1 || tType == 4
  6778. "
  6779. @click.stop="deleteWorks(w.wid)"
  6780. alt
  6781. />
  6782. </div>
  6783. <div class="comment" style="min-width: 200px">
  6784. <div class="worksName">
  6785. <div>{{ w.sName }}</div>
  6786. </div>
  6787. <div class="commentList">
  6788. <div class="commentList">
  6789. <div
  6790. class="commentImg"
  6791. @click="
  6792. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6793. "
  6794. >
  6795. <img
  6796. :src="w.isLikes == true ? likes : noLikes"
  6797. alt=""
  6798. />
  6799. </div>
  6800. <div>{{ w.likesCount }}</div>
  6801. </div>
  6802. <div class="commentList" style="margin-right: 15px">
  6803. <div
  6804. class="commentImg"
  6805. @click="commentOther(w, toolIndex, wIndex)"
  6806. >
  6807. <img
  6808. src="../../assets/icon/comment/comment.png"
  6809. alt=""
  6810. />
  6811. </div>
  6812. <div>{{ w.commentCount }}</div>
  6813. </div>
  6814. </div>
  6815. </div>
  6816. </div>
  6817. </div>
  6818. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6819. 未提交
  6820. </div>
  6821. <div
  6822. class="noWorksS"
  6823. v-if="noWorksS && noWorksS[toolIndex].length"
  6824. >
  6825. <div
  6826. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6827. :key="sIndex"
  6828. class="noWorksName"
  6829. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6830. >
  6831. <el-tooltip effect="dark" :content="s.student" placement="top">
  6832. <span>{{ s.student }}</span>
  6833. </el-tooltip>
  6834. </div>
  6835. </div>
  6836. </div>
  6837. <div
  6838. v-if="
  6839. tType &&
  6840. tType == 2 &&
  6841. !sIsOpen &&
  6842. tool.tool.indexOf(40) != -1
  6843. "
  6844. class="worksBox"
  6845. >
  6846. <div
  6847. class="zuoyeYulan"
  6848. v-if="workStudent[toolIndex].length > 0"
  6849. >
  6850. <span class="worksTitle">作业预览</span>
  6851. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6852. </div>
  6853. <div
  6854. class="worksDetailBox"
  6855. v-if="workStudent[toolIndex].length > 0"
  6856. >
  6857. <div
  6858. class="works"
  6859. style="
  6860. width: 200px;
  6861. height: 140px;
  6862. margin: 10px 10px 10px 0;
  6863. "
  6864. v-for="(w, wIndex) in workStudent[toolIndex]"
  6865. :key="wIndex"
  6866. >
  6867. <div class="workImg">
  6868. <img
  6869. src="../../assets/icon/works/noImg.png"
  6870. @click="openPj(w.works, toolIndex)"
  6871. alt
  6872. />
  6873. <img
  6874. class="deleteImg"
  6875. src="../../assets/deleteworks.png"
  6876. v-if="
  6877. w.userid == userid || tType == 1 || tType == 4
  6878. "
  6879. @click.stop="deleteWorks(w.wid)"
  6880. alt
  6881. />
  6882. </div>
  6883. <div class="worksName">
  6884. <div>{{ w.sName }}</div>
  6885. </div>
  6886. </div>
  6887. </div>
  6888. </div>
  6889. <div
  6890. v-if="
  6891. tType &&
  6892. ((tType == 2 && sIsOpen == true) ||
  6893. tType == 1 ||
  6894. tType == 4) &&
  6895. tool.tool.indexOf(41) != -1
  6896. "
  6897. >
  6898. <AnswerData2
  6899. v-if="
  6900. worksStudent.length &&
  6901. worksStudent[toolIndex].length > 0
  6902. "
  6903. :problemJson="tool.selectJson.answer"
  6904. :people="worksStudent[toolIndex]"
  6905. ></AnswerData2>
  6906. </div>
  6907. <div
  6908. v-if="
  6909. tType &&
  6910. ((tType == 2 && sIsOpen == true) ||
  6911. tType == 1 ||
  6912. tType == 4) &&
  6913. tool.tool.indexOf(41) != -1
  6914. "
  6915. class="worksBox"
  6916. >
  6917. <div
  6918. class="zuoyeYulan"
  6919. v-if="
  6920. worksStudent.length &&
  6921. worksStudent[toolIndex].length > 0
  6922. "
  6923. >
  6924. <div class="worksTop">
  6925. <div>作业预览</div>
  6926. <div
  6927. class="corOpen"
  6928. @click="contract(toolIndex)"
  6929. v-if="
  6930. (isCloseList[toolIndex].isCloseBoolean) &&
  6931. isCloseList[toolIndex].isClose == 0
  6932. "
  6933. >
  6934. 折叠
  6935. </div>
  6936. <div
  6937. class="corOpen"
  6938. @click="contract(toolIndex)"
  6939. v-if="isCloseList[toolIndex].isClose == 1"
  6940. >
  6941. 展开
  6942. </div>
  6943. </div>
  6944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6945. </div>
  6946. <div
  6947. :id="'tool-' + toolIndex"
  6948. :style="{
  6949. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6950. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6951. }"
  6952. class="worksDetailBox"
  6953. v-if="
  6954. worksStudent.length &&
  6955. worksStudent[toolIndex].length > 0
  6956. "
  6957. >
  6958. <div
  6959. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6960. :key="wIndex"
  6961. class="isWorksName2"
  6962. @click="openXz(w, toolIndex)"
  6963. >
  6964. {{ w.sName }}
  6965. <img
  6966. class="deleteImg deleteImg2"
  6967. src="../../assets/deleteworks.png"
  6968. v-if="w.userid == userid || tType == 1 || tType == 4"
  6969. @click.stop="deleteWorks(w.wid)"
  6970. alt
  6971. />
  6972. </div>
  6973. <!-- <div
  6974. class="works"
  6975. style="
  6976. width: 200px;
  6977. height: 140px;
  6978. margin: 10px 10px 10px 0;
  6979. border-radius: 15px;
  6980. box-shadow: 0 0 6px 1px #dfdada;
  6981. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6982. :class="w.type == 5 ? 'isTypeOne' : ''">
  6983. <div class="workImg">
  6984. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6985. </div>
  6986. <div class="worksName">
  6987. <div>{{ w.sName }}</div>
  6988. </div>
  6989. </div> -->
  6990. </div>
  6991. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6992. 未提交
  6993. </div>
  6994. <div
  6995. class="noWorksS"
  6996. v-if="noWorksS && noWorksS[toolIndex].length"
  6997. >
  6998. <div
  6999. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7000. :key="sIndex"
  7001. class="noWorksName"
  7002. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  7003. >
  7004. <el-tooltip effect="dark" :content="s.student" placement="top">
  7005. <span>{{ s.student }}</span>
  7006. </el-tooltip>
  7007. </div>
  7008. </div>
  7009. </div>
  7010. <div
  7011. v-if="
  7012. tType &&
  7013. tType == 2 &&
  7014. !sIsOpen &&
  7015. tool.tool.indexOf(41) != -1
  7016. "
  7017. class="worksBox"
  7018. >
  7019. <div
  7020. class="zuoyeYulan"
  7021. v-if="workStudent[toolIndex].length > 0"
  7022. >
  7023. <span class="worksTitle">作业预览</span>
  7024. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7025. </div>
  7026. <div
  7027. class="worksDetailBox"
  7028. v-if="workStudent[toolIndex].length > 0"
  7029. >
  7030. <div
  7031. class="works"
  7032. style="
  7033. width: 200px;
  7034. height: 140px;
  7035. margin: 10px 10px 10px 0;
  7036. "
  7037. v-for="(w, wIndex) in workStudent[toolIndex]"
  7038. :key="wIndex"
  7039. >
  7040. <div class="workImg">
  7041. <img
  7042. src="../../assets/icon/works/noImg.png"
  7043. @click="openXz(w, toolIndex)"
  7044. alt
  7045. />
  7046. <img
  7047. class="deleteImg"
  7048. src="../../assets/deleteworks.png"
  7049. v-if="
  7050. w.userid == userid || tType == 1 || tType == 4
  7051. "
  7052. @click.stop="deleteWorks(w.wid)"
  7053. alt
  7054. />
  7055. </div>
  7056. <div class="worksName">
  7057. <div>{{ w.sName }}</div>
  7058. </div>
  7059. </div>
  7060. </div>
  7061. </div>
  7062. <div v-if="false" class="xuan_right_box">
  7063. <div
  7064. class="tool_right_box"
  7065. v-for="(item, index) in tool.sentenceList"
  7066. :key="index"
  7067. >
  7068. <div>
  7069. <span
  7070. style="word-break: break-all; white-space: normal"
  7071. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  7072. >
  7073. </div>
  7074. <div class="right_box_xuan">
  7075. <span>正确率</span>
  7076. <span>{{
  7077. (checkJson[toolIndex][index].right
  7078. ? checkJson[toolIndex][index].right
  7079. : 0) + "%"
  7080. }}</span>
  7081. </div>
  7082. <div class="right_box_xuan">
  7083. <span>答对人数</span>
  7084. <span>{{
  7085. checkJson[toolIndex][index].rightPerson.length
  7086. }}</span>
  7087. </div>
  7088. </div>
  7089. </div>
  7090. <div
  7091. v-if="
  7092. tType &&
  7093. ((tType == 2 && sIsOpen == true) ||
  7094. tType == 1 ||
  7095. tType == 4) &&
  7096. tool.tool.indexOf(47) != -1
  7097. "
  7098. >
  7099. <AnswerData
  7100. v-if="
  7101. checkJson[toolIndex].length &&
  7102. (tool.sentenceList || tool.sentenceList.length > 0)
  7103. "
  7104. :people="checkJson[toolIndex]"
  7105. ></AnswerData>
  7106. </div>
  7107. <div
  7108. v-if="
  7109. tType &&
  7110. tType == 2 &&
  7111. !sIsOpen &&
  7112. tool.tool.indexOf(47) != -1
  7113. "
  7114. class="worksBox"
  7115. >
  7116. <div
  7117. class="zuoyeYulan"
  7118. v-if="workStudent[toolIndex].length > 0"
  7119. >
  7120. <span class="worksTitle">作业预览</span>
  7121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7122. </div>
  7123. <div
  7124. class="worksDetailBox"
  7125. v-if="workStudent[toolIndex].length > 0"
  7126. >
  7127. <div
  7128. class="works"
  7129. style="
  7130. width: 200px;
  7131. height: 140px;
  7132. margin: 10px 10px 10px 0;
  7133. "
  7134. v-for="(w, wIndex) in workStudent[toolIndex]"
  7135. :key="wIndex"
  7136. >
  7137. <!-- @click="openXz(w, toolIndex)" -->
  7138. <div class="workImg" @click="openSen(w, toolIndex)">
  7139. <img src="../../assets/icon/works/noImg.png" alt />
  7140. <img
  7141. class="deleteImg"
  7142. src="../../assets/deleteworks.png"
  7143. v-if="
  7144. w.userid == userid || tType == 1 || tType == 4
  7145. "
  7146. @click.stop="deleteWorks(w.wid)"
  7147. alt
  7148. />
  7149. </div>
  7150. <div class="worksName">
  7151. <div>
  7152. {{ w.sName }}
  7153. </div>
  7154. </div>
  7155. </div>
  7156. </div>
  7157. </div>
  7158. <div
  7159. v-if="
  7160. tType &&
  7161. ((tType == 2 && sIsOpen == true) ||
  7162. tType == 1 ||
  7163. tType == 4) &&
  7164. tool.tool.indexOf(47) != -1
  7165. "
  7166. class="worksBox"
  7167. >
  7168. <div
  7169. class="zuoyeYulan"
  7170. v-if="
  7171. worksStudent.length &&
  7172. worksStudent[toolIndex].length > 0
  7173. "
  7174. >
  7175. <div class="worksTop">
  7176. <div>作业预览</div>
  7177. <div
  7178. class="corOpen"
  7179. @click="contract(toolIndex)"
  7180. v-if="
  7181. (isCloseList[toolIndex].isCloseBoolean) &&
  7182. isCloseList[toolIndex].isClose == 0
  7183. "
  7184. >
  7185. 折叠
  7186. </div>
  7187. <div
  7188. class="corOpen"
  7189. @click="contract(toolIndex)"
  7190. v-if="isCloseList[toolIndex].isClose == 1"
  7191. >
  7192. 展开
  7193. </div>
  7194. </div>
  7195. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7196. </div>
  7197. <div
  7198. :id="'tool-' + toolIndex"
  7199. :style="{
  7200. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7201. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7202. }"
  7203. class="worksDetailBox"
  7204. v-if="
  7205. worksStudent.length &&
  7206. worksStudent[toolIndex].length > 0
  7207. "
  7208. >
  7209. <!-- @click="openXz(w, toolIndex)" -->
  7210. <div
  7211. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7212. :key="wIndex"
  7213. class="isWorksName2"
  7214. @click="openSen(w, toolIndex)"
  7215. >
  7216. {{ w.sName }}
  7217. <img
  7218. class="deleteImg deleteImg2"
  7219. src="../../assets/deleteworks.png"
  7220. v-if="w.userid == userid || tType == 1 || tType == 4"
  7221. @click.stop="deleteWorks(w.wid)"
  7222. alt
  7223. />
  7224. </div>
  7225. </div>
  7226. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7227. 未提交
  7228. </div>
  7229. <div
  7230. class="noWorksS"
  7231. v-if="noWorksS && noWorksS[toolIndex].length"
  7232. >
  7233. <div
  7234. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7235. :key="sIndex"
  7236. class="noWorksName"
  7237. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7238. >
  7239. <el-tooltip effect="dark" :content="s.student" placement="top">
  7240. <span>{{ s.student }}</span>
  7241. </el-tooltip>
  7242. </div>
  7243. </div>
  7244. </div>
  7245. <div
  7246. v-if="
  7247. tType &&
  7248. ((tType == 2 && sIsOpen == true) ||
  7249. tType == 1 ||
  7250. tType == 4) &&
  7251. tool.tool.indexOf(48) != -1
  7252. "
  7253. class="worksBox"
  7254. >
  7255. <div
  7256. class="zuoyeYulan"
  7257. style="display: flex;justify-content: space-between;align-items: center;"
  7258. v-if="
  7259. worksStudent.length &&
  7260. worksStudent[toolIndex].length > 0
  7261. "
  7262. >
  7263. <div class="worksTop">
  7264. <div>作业预览</div>
  7265. <div
  7266. class="corOpen"
  7267. @click="contract(toolIndex)"
  7268. v-if="
  7269. (isCloseList[toolIndex].isCloseBoolean) &&
  7270. isCloseList[toolIndex].isClose == 0
  7271. "
  7272. >
  7273. 折叠
  7274. </div>
  7275. <div
  7276. class="corOpen"
  7277. @click="contract(toolIndex)"
  7278. v-if="isCloseList[toolIndex].isClose == 1"
  7279. >
  7280. 展开
  7281. </div>
  7282. </div>
  7283. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  7284. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  7285. 一键重置
  7286. </div>
  7287. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7288. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7289. AI评分
  7290. </div>
  7291. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7292. .taskDetail,tool)" >
  7293. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7294. AI评分
  7295. </div>
  7296. <div class="ScoreBtn" v-else >
  7297. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7298. 正在评分
  7299. </div>
  7300. </div>
  7301. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7302. </div>
  7303. <div
  7304. :id="'tool-' + toolIndex"
  7305. :style="{
  7306. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7307. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7308. }"
  7309. class="worksDetailBox"
  7310. v-if="
  7311. worksStudent.length &&
  7312. worksStudent[toolIndex].length > 0
  7313. "
  7314. >
  7315. <div
  7316. class="works"
  7317. style="
  7318. width: 200px;
  7319. height: 140px;
  7320. margin: 10px 10px 10px 0;
  7321. border-radius: 15px;
  7322. box-shadow: 0 0 6px 1px #dfdada;
  7323. "
  7324. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7325. :key="wIndex"
  7326. :class="w.type == 1 ? 'isTypeOne' : ''"
  7327. >
  7328. <div class="workImg">
  7329. <img :src="word" @click="openTable(w)" alt />
  7330. <!-- @click="openFile(w.works)" -->
  7331. <div
  7332. class="answerScore"
  7333. v-if="w.score"
  7334. @click.stop="openScore(w)"
  7335. :class="{
  7336. rightW:
  7337. w.userid == userid ||
  7338. tType == 1 ||
  7339. tType == 4 ||
  7340. w.ateacher == userid,
  7341. }"
  7342. >
  7343. {{ JSON.parse(w.score).wScore }}分
  7344. </div>
  7345. <div
  7346. class="answerScore"
  7347. @click.stop="openScore(w)"
  7348. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7349. :class="{
  7350. rightW:
  7351. w.userid == userid ||
  7352. tType == 1 ||
  7353. tType == 4 ||
  7354. w.ateacher == userid,
  7355. }"
  7356. >
  7357. 评分
  7358. </div>
  7359. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7360. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  7361. <el-popover
  7362. placement="top"
  7363. width="318"
  7364. :disabled="AIloading[toolIndex][wIndex].loading"
  7365. trigger="hover"
  7366. >
  7367. <markScore
  7368. :loading="AIloading[toolIndex][wIndex].loading"
  7369. :markScoreVisible="markScoreVisible"
  7370. :ref="`markSco${toolIndex}${wIndex}`"
  7371. @updateLoading=updateLoading
  7372. @updateDocSco=updateDocSco
  7373. @refreshOther=refreshOther
  7374. @markScoreDig=markScoreDig
  7375. :tool="tool"
  7376. :wIndex="wIndex"
  7377. :scoCon="w"
  7378. :toolIndex="toolIndex"
  7379. :key="refreshKey"
  7380. :stage="courseType"
  7381. :task="taskCount"
  7382. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7383. >
  7384. </markScore>
  7385. <div
  7386. class="answerScore"
  7387. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7388. slot="reference"
  7389. :class="{
  7390. rightW:
  7391. w.userid == userid ||
  7392. tType == 1 ||
  7393. tType == 4 ||
  7394. w.ateacher == userid,
  7395. }"
  7396. >
  7397. <span v-if="AIloading[toolIndex][wIndex].sco">
  7398. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7399. </span>
  7400. <span v-else>
  7401. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7402. </span>
  7403. </div>
  7404. </el-popover>
  7405. </div>
  7406. <img
  7407. class="deleteImg"
  7408. src="../../assets/deleteworks.png"
  7409. v-if="
  7410. w.userid == userid || tType == 1 || tType == 4
  7411. "
  7412. @click.stop="deleteWorks(w.wid)"
  7413. alt
  7414. />
  7415. </div>
  7416. <div class="comment" style="min-width: 200px">
  7417. <div class="worksName">
  7418. <div>{{ w.sName }}</div>
  7419. </div>
  7420. <div class="commentList">
  7421. <div class="commentList">
  7422. <div
  7423. class="commentImg"
  7424. @click="
  7425. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7426. "
  7427. >
  7428. <img
  7429. :src="w.isLikes == true ? likes : noLikes"
  7430. alt=""
  7431. />
  7432. </div>
  7433. <div>{{ w.likesCount }}</div>
  7434. </div>
  7435. <div class="commentList" style="margin-right: 15px">
  7436. <div
  7437. class="commentImg"
  7438. @click="commentOther(w, toolIndex, wIndex)"
  7439. >
  7440. <img
  7441. src="../../assets/icon/comment/comment.png"
  7442. alt=""
  7443. />
  7444. </div>
  7445. <div>{{ w.commentCount }}</div>
  7446. </div>
  7447. </div>
  7448. </div>
  7449. </div>
  7450. </div>
  7451. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7452. 未提交
  7453. </div>
  7454. <div
  7455. class="noWorksS"
  7456. v-if="noWorksS && noWorksS[toolIndex].length"
  7457. >
  7458. <div
  7459. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7460. :key="sIndex"
  7461. class="noWorksName"
  7462. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7463. >
  7464. <el-tooltip effect="dark" :content="s.student" placement="top">
  7465. <span>{{ s.student }}</span>
  7466. </el-tooltip>
  7467. </div>
  7468. </div>
  7469. </div>
  7470. <div
  7471. v-if="
  7472. tType &&
  7473. tType == 2 &&
  7474. !sIsOpen &&
  7475. tool.tool.indexOf(48) != -1
  7476. "
  7477. class="worksBox"
  7478. >
  7479. <div
  7480. class="zuoyeYulan"
  7481. v-if="workStudent[toolIndex].length > 0"
  7482. >
  7483. <span class="worksTitle">作业预览</span>
  7484. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7485. </div>
  7486. <div
  7487. class="worksDetailBox"
  7488. v-if="workStudent[toolIndex].length > 0"
  7489. >
  7490. <div
  7491. class="works"
  7492. style="
  7493. width: 200px;
  7494. height: 140px;
  7495. margin: 10px 10px 10px 0;
  7496. box-shadow: 0 0 6px 1px #dfdada;
  7497. "
  7498. v-for="(w, wIndex) in workStudent[toolIndex]"
  7499. :key="wIndex"
  7500. >
  7501. <div class="workImg">
  7502. <img :src="word" @click="openTable(w)" alt />
  7503. <div
  7504. class="answerScore"
  7505. v-if="w.score"
  7506. @click.stop="openScore(w)"
  7507. :class="{
  7508. rightW:
  7509. w.userid == userid || tType == 1 || tType == 4,
  7510. }"
  7511. >
  7512. {{ JSON.parse(w.score).wScore }}分
  7513. </div>
  7514. <div
  7515. class="answerScore"
  7516. @click.stop="openScore(w)"
  7517. v-else-if="courseDetail.userid == userid"
  7518. :class="{
  7519. rightW:
  7520. w.userid == userid || tType == 1 || tType == 4,
  7521. }"
  7522. >
  7523. 评分
  7524. </div>
  7525. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  7526. <el-popover
  7527. placement="top"
  7528. width="318"
  7529. trigger="hover"
  7530. >
  7531. <markScore
  7532. :loading="AIloading[toolIndex][wIndex].loading"
  7533. :markScoreVisible="markScoreVisible"
  7534. :ref="`markSco${toolIndex}${wIndex}`"
  7535. @updateLoading=updateLoading
  7536. @updateDocSco=updateDocSco
  7537. @refreshOther=refreshOther
  7538. @markScoreDig=markScoreDig
  7539. :tool="tool"
  7540. :wIndex="wIndex"
  7541. :scoCon="w"
  7542. :toolIndex="toolIndex"
  7543. :key="refreshKey"
  7544. :stage="courseType"
  7545. :task="taskCount"
  7546. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7547. >
  7548. </markScore>
  7549. <div
  7550. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7551. slot="reference"
  7552. >
  7553. <span v-if="AIloading[toolIndex][wIndex].sco">
  7554. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  7555. </span>
  7556. <span v-else>
  7557. 评分
  7558. </span>
  7559. </div>
  7560. </el-popover>
  7561. </div>
  7562. <img
  7563. class="deleteImg"
  7564. src="../../assets/deleteworks.png"
  7565. v-if="
  7566. w.userid == userid || tType == 1 || tType == 4
  7567. "
  7568. @click.stop="deleteWorks(w.wid)"
  7569. alt
  7570. />
  7571. </div>
  7572. <div class="worksName">
  7573. <div>{{ w.sName }}</div>
  7574. </div>
  7575. </div>
  7576. </div>
  7577. </div>
  7578. <div
  7579. v-if="
  7580. tType &&
  7581. ((tType == 2 && sIsOpen == true) ||
  7582. tType == 1 ||
  7583. tType == 4) &&
  7584. tool.tool.indexOf(52) != -1
  7585. "
  7586. class="worksBox"
  7587. >
  7588. <div
  7589. class="zuoyeYulan"
  7590. style="display: flex;justify-content: space-between;align-items: center;"
  7591. v-if="
  7592. worksStudent.length &&
  7593. worksStudent[toolIndex].length > 0
  7594. "
  7595. >
  7596. <div class="worksTop">
  7597. <div>作业预览</div>
  7598. <div
  7599. class="corOpen"
  7600. @click="contract(toolIndex)"
  7601. v-if="
  7602. (isCloseList[toolIndex].isCloseBoolean) &&
  7603. isCloseList[toolIndex].isClose == 0
  7604. "
  7605. >
  7606. 折叠
  7607. </div>
  7608. <div
  7609. class="corOpen"
  7610. @click="contract(toolIndex)"
  7611. v-if="isCloseList[toolIndex].isClose == 1"
  7612. >
  7613. 展开
  7614. </div>
  7615. </div>
  7616. <div style="display: flex;" v-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1)) && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5">
  7617. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 5"> -->
  7618. <div @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,tool)" style="margin-right:10px" class="ScoreBtn">
  7619. 一键重置
  7620. </div>
  7621. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7622. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7623. AI评分
  7624. </div>
  7625. <div class="ScoreBtn" v-else-if="!loopLoading[toolIndex].loading" @click="loopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  7626. .taskDetail,tool)" >
  7627. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7628. AI评分
  7629. </div>
  7630. <div class="ScoreBtn" v-else >
  7631. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7632. 正在评分
  7633. </div>
  7634. </div>
  7635. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7636. </div>
  7637. <div
  7638. :id="'tool-' + toolIndex"
  7639. :style="{
  7640. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7641. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7642. }"
  7643. class="worksDetailBox"
  7644. v-if="
  7645. worksStudent.length &&
  7646. worksStudent[toolIndex].length > 0
  7647. "
  7648. >
  7649. <div
  7650. class="works"
  7651. style="
  7652. width: 200px;
  7653. height: 140px;
  7654. margin: 10px 10px 10px 0;
  7655. border-radius: 15px;
  7656. box-shadow: 0 0 6px 1px #dfdada;
  7657. "
  7658. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7659. :key="wIndex"
  7660. :class="w.type == 1 ? 'isTypeOne' : ''"
  7661. >
  7662. <div class="workImg">
  7663. <img :src="word" @click="openWord(w)" alt />
  7664. <!-- @click="openFile(w.works)" -->
  7665. <div
  7666. class="answerScore"
  7667. v-if="w.score"
  7668. @click.stop="openScore(w)"
  7669. :class="{
  7670. rightW:
  7671. w.userid == userid ||
  7672. tType == 1 ||
  7673. tType == 4 ||
  7674. w.ateacher == userid,
  7675. }"
  7676. >
  7677. {{ JSON.parse(w.score).wScore }}分
  7678. </div>
  7679. <div
  7680. class="answerScore"
  7681. @click.stop="openScore(w)"
  7682. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7683. :class="{
  7684. rightW:
  7685. w.userid == userid ||
  7686. tType == 1 ||
  7687. tType == 4 ||
  7688. w.ateacher == userid,
  7689. }"
  7690. >
  7691. 评分
  7692. </div>
  7693. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7694. <div v-else-if="(courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) || (w.userid == userid && sIsOpen)) && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  7695. <!-- <div
  7696. class="answerScore"
  7697. @click="markScoreDig(w.userid,toolIndex)"
  7698. :class="{
  7699. rightW:
  7700. w.userid == userid ||
  7701. tType == 1 ||
  7702. tType == 4 ||
  7703. w.ateacher == userid,
  7704. }"
  7705. >
  7706. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  7707. </div> -->
  7708. <!-- @show="handleShow(toolIndex,wIndex)"
  7709. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  7710. <el-popover
  7711. placement="top"
  7712. width="318"
  7713. :disabled="AIloading[toolIndex][wIndex].loading"
  7714. trigger="hover"
  7715. >
  7716. <markScore
  7717. :loading="AIloading[toolIndex][wIndex].loading"
  7718. :markScoreVisible="markScoreVisible"
  7719. :ref="`markSco${toolIndex}${wIndex}`"
  7720. @updateLoading=updateLoading
  7721. @updateDocSco=updateDocSco
  7722. @refreshOther=refreshOther
  7723. @markScoreDig=markScoreDig
  7724. :tool="tool"
  7725. :wIndex="wIndex"
  7726. :scoCon="w"
  7727. :toolIndex="toolIndex"
  7728. :key="refreshKey"
  7729. :stage="courseType"
  7730. :task="taskCount"
  7731. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7732. >
  7733. </markScore>
  7734. <div
  7735. class="answerScore"
  7736. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7737. slot="reference"
  7738. :class="{
  7739. rightW:
  7740. w.userid == userid ||
  7741. tType == 1 ||
  7742. tType == 4 ||
  7743. w.ateacher == userid,
  7744. }"
  7745. >
  7746. <span v-if="AIloading[toolIndex][wIndex].sco">
  7747. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7748. </span>
  7749. <span v-else>
  7750. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7751. </span>
  7752. </div>
  7753. </el-popover>
  7754. </div>
  7755. <img
  7756. class="deleteImg"
  7757. src="../../assets/deleteworks.png"
  7758. v-if="
  7759. w.userid == userid || tType == 1 || tType == 4
  7760. "
  7761. @click.stop="deleteWorks(w.wid)"
  7762. alt
  7763. />
  7764. </div>
  7765. <div class="comment" style="min-width: 200px">
  7766. <div class="worksName">
  7767. <div>{{ w.sName }}</div>
  7768. </div>
  7769. <div class="commentList">
  7770. <div class="commentList">
  7771. <div
  7772. class="commentImg"
  7773. @click="
  7774. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7775. "
  7776. >
  7777. <img
  7778. :src="w.isLikes == true ? likes : noLikes"
  7779. alt=""
  7780. />
  7781. </div>
  7782. <div>{{ w.likesCount }}</div>
  7783. </div>
  7784. <div class="commentList" style="margin-right: 15px">
  7785. <div
  7786. class="commentImg"
  7787. @click="commentOther(w, toolIndex, wIndex)"
  7788. >
  7789. <img
  7790. src="../../assets/icon/comment/comment.png"
  7791. alt=""
  7792. />
  7793. </div>
  7794. <div>{{ w.commentCount }}</div>
  7795. </div>
  7796. </div>
  7797. </div>
  7798. </div>
  7799. </div>
  7800. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7801. 未提交
  7802. </div>
  7803. <div
  7804. class="noWorksS"
  7805. v-if="noWorksS && noWorksS[toolIndex].length"
  7806. >
  7807. <div
  7808. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7809. :key="sIndex"
  7810. class="noWorksName"
  7811. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7812. >
  7813. <el-tooltip effect="dark" :content="s.student" placement="top">
  7814. <span>{{ s.student }}</span>
  7815. </el-tooltip>
  7816. </div>
  7817. </div>
  7818. </div>
  7819. <div
  7820. v-if="
  7821. tType &&
  7822. tType == 2 &&
  7823. !sIsOpen &&
  7824. tool.tool.indexOf(52) != -1
  7825. "
  7826. class="worksBox"
  7827. >
  7828. <div
  7829. class="zuoyeYulan"
  7830. v-if="workStudent[toolIndex].length > 0"
  7831. >
  7832. <span class="worksTitle">作业预览</span>
  7833. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7834. </div>
  7835. <div
  7836. class="worksDetailBox"
  7837. v-if="workStudent[toolIndex].length > 0"
  7838. >
  7839. <div
  7840. class="works"
  7841. style="
  7842. width: 200px;
  7843. height: 140px;
  7844. margin: 10px 10px 10px 0;
  7845. box-shadow: 0 0 6px 1px #dfdada;
  7846. "
  7847. v-for="(w, wIndex) in workStudent[toolIndex]"
  7848. :key="wIndex"
  7849. >
  7850. <div class="workImg">
  7851. <img :src="word" @click="openWord(w)" alt />
  7852. <div
  7853. class="answerScore"
  7854. v-if="w.score"
  7855. @click.stop="openScore(w)"
  7856. :class="{
  7857. rightW:
  7858. w.userid == userid || tType == 1 || tType == 4,
  7859. }"
  7860. >
  7861. {{ JSON.parse(w.score).wScore }}分
  7862. </div>
  7863. <div
  7864. class="answerScore"
  7865. @click.stop="openScore(w)"
  7866. v-else-if="courseDetail.userid == userid"
  7867. :class="{
  7868. rightW:
  7869. w.userid == userid || tType == 1 || tType == 4,
  7870. }"
  7871. >
  7872. 评分
  7873. </div>
  7874. <div class="stuLookScore" v-if=" w.userid == userid || tType == 1 && courseDetail.state == 5 && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length))">
  7875. <el-popover
  7876. placement="top"
  7877. width="318"
  7878. trigger="hover"
  7879. >
  7880. <markScore
  7881. :loading="AIloading[toolIndex][wIndex].loading"
  7882. :markScoreVisible="markScoreVisible"
  7883. :ref="`markSco${toolIndex}${wIndex}`"
  7884. @updateLoading=updateLoading
  7885. @updateDocSco=updateDocSco
  7886. @refreshOther=refreshOther
  7887. @markScoreDig=markScoreDig
  7888. :tool="tool"
  7889. :wIndex="wIndex"
  7890. :scoCon="w"
  7891. :toolIndex="toolIndex"
  7892. :key="refreshKey"
  7893. :stage="courseType"
  7894. :task="taskCount"
  7895. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7896. >
  7897. </markScore>
  7898. <div
  7899. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7900. slot="reference"
  7901. >
  7902. <span v-if="AIloading[toolIndex][wIndex].sco">
  7903. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  7904. </span>
  7905. <span v-else>
  7906. 评分
  7907. </span>
  7908. </div>
  7909. </el-popover>
  7910. </div>
  7911. <img
  7912. class="deleteImg"
  7913. src="../../assets/deleteworks.png"
  7914. v-if="
  7915. w.userid == userid || tType == 1 || tType == 4
  7916. "
  7917. @click.stop="deleteWorks(w.wid)"
  7918. alt
  7919. />
  7920. </div>
  7921. <div class="worksName">
  7922. <div>{{ w.sName }}</div>
  7923. </div>
  7924. </div>
  7925. </div>
  7926. </div>
  7927. <div
  7928. v-if="tool.tool.indexOf(49) != -1"
  7929. class="xuan_right_box"
  7930. style="margin: 0 15px 0 25px; width: 93%"
  7931. >
  7932. <div
  7933. v-if="courseDetail.userid == userid"
  7934. style="
  7935. display: flex;
  7936. justify-content: flex-end;
  7937. margin-right: 10px;
  7938. "
  7939. >
  7940. <el-button
  7941. type="primary"
  7942. size="small"
  7943. @click="addTools(49, toolIndex, taskCount)"
  7944. >分组设置</el-button
  7945. >
  7946. </div>
  7947. <div
  7948. v-if="groupStudentUid[toolIndex]"
  7949. class="group_staic_box"
  7950. >
  7951. <div
  7952. v-for="(gp, gd) in tool.groupJson.group"
  7953. :key="gd"
  7954. class="group_staic"
  7955. >
  7956. <span> {{ gp.name }}</span>
  7957. <span>
  7958. 目前人数{{
  7959. groupStudentUid[toolIndex][gd].length
  7960. }}人</span
  7961. >
  7962. </div>
  7963. </div>
  7964. </div>
  7965. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7966. <div
  7967. class="zuoyeYulan"
  7968. v-if="
  7969. worksStudent.length &&
  7970. worksStudent[toolIndex].length > 0
  7971. "
  7972. >
  7973. <span class="worksTitle">作业预览</span>
  7974. </div>
  7975. <div>
  7976. <div
  7977. class="group_workBox"
  7978. v-for="(g, gindex) in tool.groupJson.group"
  7979. :key="gindex"
  7980. >
  7981. <div
  7982. class="group_box"
  7983. v-if="
  7984. groupStudentUid[toolIndex] &&
  7985. worksStudent[toolIndex] &&
  7986. (worksStudent[toolIndex][gindex].length ||
  7987. groupStudentUid[toolIndex][gindex].indexOf(
  7988. userid
  7989. ) != -1)
  7990. "
  7991. >
  7992. <div class="group_title">
  7993. <el-tooltip
  7994. class="item"
  7995. effect="light"
  7996. :content="g.name"
  7997. placement="top"
  7998. >
  7999. <div class="group_name">{{ g.name }}</div>
  8000. </el-tooltip>
  8001. <el-button
  8002. type="primary"
  8003. v-if="
  8004. groupStudentUid[toolIndex][gindex].indexOf(
  8005. userid
  8006. ) != -1
  8007. "
  8008. @click="groupUpload(toolIndex, taskCount, gindex)"
  8009. >上传作业</el-button
  8010. >
  8011. </div>
  8012. <div class="group_work">
  8013. <div
  8014. class="works"
  8015. style="
  8016. width: 200px;
  8017. height: 140px;
  8018. margin: 10px 10px 10px 0;
  8019. border-radius: 15px;
  8020. box-shadow: 0 0 6px 1px #dfdada;
  8021. "
  8022. v-for="(w, wIndex) in worksStudent[toolIndex][
  8023. gindex
  8024. ]"
  8025. :key="wIndex"
  8026. :class="w.type == 1 ? 'isTypeOne' : ''"
  8027. >
  8028. <div class="workImg" v-if="w.type == 0">
  8029. <img
  8030. :src="w.works"
  8031. @click="previewImg(w.works,w)"
  8032. alt
  8033. />
  8034. <div
  8035. class="answerScore"
  8036. v-if="w.score"
  8037. @click.stop="openScore(w)"
  8038. :class="{
  8039. rightW:
  8040. w.userid == userid ||
  8041. tType == 1 ||
  8042. tType == 4 ||
  8043. w.ateacher == userid,
  8044. }"
  8045. >
  8046. {{ JSON.parse(w.score).wScore }}分
  8047. </div>
  8048. <div
  8049. class="answerScore"
  8050. @click.stop="openScore(w)"
  8051. v-else-if="courseDetail.userid == userid"
  8052. :class="{
  8053. rightW:
  8054. w.userid == userid ||
  8055. tType == 1 ||
  8056. tType == 4 ||
  8057. w.ateacher == userid,
  8058. }"
  8059. >
  8060. 评分
  8061. </div>
  8062. <img
  8063. class="deleteImg"
  8064. src="../../assets/deleteworks.png"
  8065. v-if="
  8066. w.userid == userid ||
  8067. tType == 1 ||
  8068. tType == 4
  8069. "
  8070. @click.stop="deleteWorks(w.wid)"
  8071. alt
  8072. />
  8073. </div>
  8074. <div class="workImg" v-if="w.type == 1">
  8075. <img
  8076. :src="word"
  8077. @click="openFile(w.works)"
  8078. alt
  8079. />
  8080. <!-- @click="openFile(w.works)" -->
  8081. <div
  8082. class="answerScore"
  8083. v-if="w.score"
  8084. @click.stop="openScore(w)"
  8085. :class="{
  8086. rightW:
  8087. w.userid == userid ||
  8088. tType == 1 ||
  8089. tType == 4 ||
  8090. w.ateacher == userid,
  8091. }"
  8092. >
  8093. {{ JSON.parse(w.score).wScore }}分
  8094. </div>
  8095. <div
  8096. class="answerScore"
  8097. @click.stop="openScore(w)"
  8098. v-else-if="courseDetail.userid == userid"
  8099. :class="{
  8100. rightW:
  8101. w.userid == userid ||
  8102. tType == 1 ||
  8103. tType == 4 ||
  8104. w.ateacher == userid,
  8105. }"
  8106. >
  8107. 评分
  8108. </div>
  8109. <img
  8110. class="deleteImg"
  8111. src="../../assets/deleteworks.png"
  8112. v-if="
  8113. w.userid == userid ||
  8114. tType == 1 ||
  8115. tType == 4
  8116. "
  8117. @click.stop="deleteWorks(w.wid)"
  8118. alt
  8119. />
  8120. </div>
  8121. <div class="workImg" v-if="w.type == 3">
  8122. <img
  8123. style="cursor: pointer"
  8124. :src="video"
  8125. @click="openVideo(w)"
  8126. alt
  8127. />
  8128. <!-- @click="openVideo(w.works)" -->
  8129. <div
  8130. class="answerScore"
  8131. v-if="w.score"
  8132. @click.stop="openScore(w)"
  8133. :class="{
  8134. rightW:
  8135. w.userid == userid ||
  8136. tType == 1 ||
  8137. tType == 4 ||
  8138. w.ateacher == userid,
  8139. }"
  8140. >
  8141. {{ JSON.parse(w.score).wScore }}分
  8142. </div>
  8143. <div
  8144. class="answerScore"
  8145. @click.stop="openScore(w)"
  8146. v-else-if="courseDetail.userid == userid"
  8147. :class="{
  8148. rightW:
  8149. w.userid == userid ||
  8150. tType == 1 ||
  8151. tType == 4 ||
  8152. w.ateacher == userid,
  8153. }"
  8154. >
  8155. 评分
  8156. </div>
  8157. <img
  8158. class="deleteImg"
  8159. src="../../assets/deleteworks.png"
  8160. v-if="
  8161. w.userid == userid ||
  8162. tType == 1 ||
  8163. tType == 4
  8164. "
  8165. @click.stop="deleteWorks(w.wid)"
  8166. alt
  8167. />
  8168. </div>
  8169. <div class="workImg" v-if="w.type == 12">
  8170. <img
  8171. style="cursor: pointer"
  8172. :src="word2"
  8173. @click="downloadFile(w.works)"
  8174. alt
  8175. />
  8176. <!-- @click="openVideo(w.works)" -->
  8177. <div
  8178. class="answerScore"
  8179. v-if="w.score"
  8180. @click.stop="openScore(w)"
  8181. :class="{
  8182. rightW:
  8183. w.userid == userid ||
  8184. tType == 1 ||
  8185. tType == 4 ||
  8186. w.ateacher == userid,
  8187. }"
  8188. >
  8189. {{ JSON.parse(w.score).wScore }}分
  8190. </div>
  8191. <div
  8192. class="answerScore"
  8193. @click.stop="openScore(w)"
  8194. v-else-if="courseDetail.userid == userid"
  8195. :class="{
  8196. rightW:
  8197. w.userid == userid ||
  8198. tType == 1 ||
  8199. tType == 4 ||
  8200. w.ateacher == userid,
  8201. }"
  8202. >
  8203. 评分
  8204. </div>
  8205. <img
  8206. class="deleteImg"
  8207. src="../../assets/deleteworks.png"
  8208. v-if="
  8209. w.userid == userid ||
  8210. tType == 1 ||
  8211. tType == 4
  8212. "
  8213. @click.stop="deleteWorks(w.wid)"
  8214. alt
  8215. />
  8216. </div>
  8217. <div class="comment" style="min-width: 200px">
  8218. <div class="worksName">
  8219. <div>{{ w.sName }}</div>
  8220. </div>
  8221. <div class="commentList">
  8222. <div class="commentList">
  8223. <div
  8224. class="commentImg"
  8225. @click="
  8226. isLikes(
  8227. w.wid,
  8228. userid,
  8229. 1,
  8230. null,
  8231. w.isLikes,
  8232. w.sName
  8233. )
  8234. "
  8235. >
  8236. <img
  8237. :src="
  8238. w.isLikes == true ? likes : noLikes
  8239. "
  8240. alt=""
  8241. />
  8242. </div>
  8243. <div>{{ w.likesCount }}</div>
  8244. </div>
  8245. <div
  8246. class="commentList"
  8247. style="margin-right: 15px"
  8248. >
  8249. <div
  8250. class="commentImg"
  8251. @click="
  8252. commentOther(
  8253. w,
  8254. toolIndex,
  8255. wIndex,
  8256. gindex
  8257. )
  8258. "
  8259. >
  8260. <img
  8261. src="../../assets/icon/comment/comment.png"
  8262. alt=""
  8263. />
  8264. </div>
  8265. <div>{{ w.commentCount }}</div>
  8266. </div>
  8267. </div>
  8268. </div>
  8269. </div>
  8270. </div>
  8271. </div>
  8272. </div>
  8273. </div>
  8274. </div>
  8275. <div style="width:92%;margin: 0 0 0 40px;" v-if="courseDetail.state == 5 && tool.eList && tool.eList.length">
  8276. <evaTable :eList="tool.eList"></evaTable>
  8277. </div>
  8278. </div>
  8279. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  8280. 上传文件
  8281. <input
  8282. type="file"
  8283. accept="image/png, image/gif, image/jpeg"
  8284. style="display: none"
  8285. @change="beforeUpload1($event, 2, index)"
  8286. />
  8287. </div>-->
  8288. </div>
  8289. </div>
  8290. <!-- <div
  8291. class="vedioBox"
  8292. style="margin-top: 10px"
  8293. v-if="
  8294. courseDetail.userid == userid ||
  8295. (courseDetail.course_teacher &&
  8296. courseDetail.course_teacher.indexOf(userid) != -1)
  8297. "
  8298. :style="{
  8299. borderRadius:
  8300. !(
  8301. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8302. .toolChoose[0].tool &&
  8303. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8304. .toolChoose[0].tool.length > 0
  8305. ) &&
  8306. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8307. .taskDetail == '' &&
  8308. vChapterData[taskCount].length == 0 &&
  8309. fileC[taskCount].length == 0
  8310. ? '0 0 20px 20px'
  8311. : '20px',
  8312. }"
  8313. >
  8314. <div
  8315. class="queTop"
  8316. @click="isClose = !isClose"
  8317. style="
  8318. padding: 15px 0 15px 37px;
  8319. justify-content: space-between;
  8320. "
  8321. >
  8322. <div class="queTopTitle">新增工具</div>
  8323. <div class="queTopRight">
  8324. <div class="queTopClose" v-if="isClose == 0">
  8325. 展开
  8326. <div class="closeImg">
  8327. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8328. </div>
  8329. </div>
  8330. <div class="queTopClose" v-if="isClose == 1">
  8331. 折叠
  8332. <div class="openImg">
  8333. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8334. </div>
  8335. </div>
  8336. <el-button
  8337. style="margin: 0 30px 0 auto"
  8338. type="primary"
  8339. size="small"
  8340. v-if="isClose == 1 && checktoolArray.length > 0"
  8341. @click.stop="addToolChoose"
  8342. >确定</el-button
  8343. >
  8344. </div>
  8345. </div>
  8346. <div
  8347. class="tool_work_box"
  8348. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8349. >
  8350. <div class="tool_box">
  8351. <div class="tool_type_box">
  8352. <div class="chooseWho">
  8353. <div
  8354. :class="toolType == 0 ? 'isChooseActive' : ''"
  8355. @click="(toolType = 0), $forceUpdate()"
  8356. >
  8357. 互动类
  8358. </div>
  8359. <div
  8360. :class="toolType == 1 ? 'isChooseActive' : ''"
  8361. @click="(toolType = 1), $forceUpdate()"
  8362. >
  8363. 思维类
  8364. </div>
  8365. <div
  8366. :class="toolType == 2 ? 'isChooseActive' : ''"
  8367. @click="(toolType = 2), $forceUpdate()"
  8368. >
  8369. 测评类
  8370. </div>
  8371. <div
  8372. :class="toolType == 3 ? 'isChooseActive' : ''"
  8373. @click="(toolType = 3), $forceUpdate()"
  8374. >
  8375. 编程类
  8376. </div>
  8377. <div
  8378. :class="toolType == 5 ? 'isChooseActive' : ''"
  8379. @click="(toolType = 5), $forceUpdate()"
  8380. >
  8381. 学科类
  8382. </div>
  8383. </div>
  8384. </div>
  8385. <div>
  8386. <div class="toolSort" v-if="toolType == 0">
  8387. <div class="tool">
  8388. <div class="whiteBIcon" @click="addTools2(10)">
  8389. <img
  8390. src="../../assets/icon/thirdToolList/time.png"
  8391. alt
  8392. />
  8393. <div style="margin: 5px 0">倒计时</div>
  8394. </div>
  8395. <div class="check" @click="addTools2(10)">
  8396. <img
  8397. src="../../assets/icon/checkNo.png"
  8398. alt
  8399. v-if="checktoolArray.indexOf(10) == -1"
  8400. />
  8401. <div class="checkDiv" v-else>
  8402. <img src="../../assets/icon/checkedIs.png" alt /><span
  8403. >已选择</span
  8404. >
  8405. </div>
  8406. </div>
  8407. </div>
  8408. <div class="tool">
  8409. <div class="whiteBIcon" @click="addTools2(65)">
  8410. <img
  8411. src="../../assets/icon/firstToolList/pickPeople.png"
  8412. alt
  8413. />
  8414. <div style="margin: 5px 0">挑人</div>
  8415. </div>
  8416. <div class="check" @click="addTools2(65)">
  8417. <img
  8418. src="../../assets/icon/checkNo.png"
  8419. alt
  8420. v-if="checktoolArray.indexOf(65) == -1"
  8421. />
  8422. <div class="checkDiv" v-else>
  8423. <img src="../../assets/icon/checkedIs.png" alt /><span
  8424. >已选择</span
  8425. >
  8426. </div>
  8427. </div>
  8428. </div>
  8429. </div>
  8430. <div class="toolSort" v-if="toolType == 1">
  8431. <div class="tool">
  8432. <div class="whiteBIcon" @click="addTools2(7)">
  8433. <img
  8434. src="../../assets/icon/secondToolList/mindNetwork.png"
  8435. alt
  8436. />
  8437. <div style="margin: 5px 0">思维网格</div>
  8438. </div>
  8439. <div class="check" @click="addTools2(7)">
  8440. <img
  8441. src="../../assets/icon/checkNo.png"
  8442. alt
  8443. v-if="checktoolArray.indexOf(7) == -1"
  8444. />
  8445. <div class="checkDiv" v-else>
  8446. <img src="../../assets/icon/checkedIs.png" alt /><span
  8447. >已选择</span
  8448. >
  8449. </div>
  8450. </div>
  8451. </div>
  8452. <div class="tool">
  8453. <div class="whiteBIcon" @click="addTools2(1)">
  8454. <img
  8455. src="../../assets/icon/secondToolList/whiteBoard.png"
  8456. alt
  8457. />
  8458. <div style="margin: 5px 0">电子白板</div>
  8459. </div>
  8460. <div class="check" @click="addTools2(1)">
  8461. <img
  8462. src="../../assets/icon/checkNo.png"
  8463. alt
  8464. v-if="checktoolArray.indexOf(1) == -1"
  8465. />
  8466. <div class="checkDiv" v-else>
  8467. <img src="../../assets/icon/checkedIs.png" alt /><span
  8468. >已选择</span
  8469. >
  8470. </div>
  8471. </div>
  8472. </div>
  8473. <div class="tool">
  8474. <div class="whiteBIcon" @click="addTools2(52)">
  8475. <img
  8476. src="../../assets/icon/fourthToolList/text.png"
  8477. alt
  8478. />
  8479. <div style="margin: 5px 0">文档</div>
  8480. </div>
  8481. <div class="check" @click="addTools2(52)">
  8482. <img
  8483. src="../../assets/icon/checkNo.png"
  8484. alt
  8485. v-if="checktoolArray.indexOf(52) == -1"
  8486. />
  8487. <div class="checkDiv" v-else>
  8488. <img src="../../assets/icon/checkedIs.png" alt /><span
  8489. >已选择</span
  8490. >
  8491. </div>
  8492. </div>
  8493. </div>
  8494. <div class="tool">
  8495. <div class="whiteBIcon" @click="addTools2(3)">
  8496. <img
  8497. src="../../assets/icon/secondToolList/mindMapping.png"
  8498. alt
  8499. />
  8500. <div style="margin: 5px 0">思维导图</div>
  8501. </div>
  8502. <div class="check" @click="addTools2(3)">
  8503. <img
  8504. src="../../assets/icon/checkNo.png"
  8505. alt
  8506. v-if="checktoolArray.indexOf(3) == -1"
  8507. />
  8508. <div class="checkDiv" v-else>
  8509. <img src="../../assets/icon/checkedIs.png" alt /><span
  8510. >已选择</span
  8511. >
  8512. </div>
  8513. </div>
  8514. </div>
  8515. <div class="tool">
  8516. <div class="whiteBIcon" @click="addTools2(48)">
  8517. <img
  8518. src="../../assets/icon/fourthToolList/table.png"
  8519. alt
  8520. />
  8521. <div style="margin: 5px 0">表格</div>
  8522. </div>
  8523. <div class="check" @click="addTools2(48)">
  8524. <img
  8525. src="../../assets/icon/checkNo.png"
  8526. alt
  8527. v-if="checktoolArray.indexOf(48) == -1"
  8528. />
  8529. <div class="checkDiv" v-else>
  8530. <img src="../../assets/icon/checkedIs.png" alt /><span
  8531. >已选择</span
  8532. >
  8533. </div>
  8534. </div>
  8535. </div>
  8536. </div>
  8537. <div class="toolSort" v-if="toolType == 6">
  8538. <div v-show="tooC == 49">
  8539. <img
  8540. @click="addTools(tooC, toolIndex, taskCount)"
  8541. src="../../assets/icon/fourthToolList/group.png"
  8542. alt
  8543. />
  8544. <div style="margin: 5px 0">学生分组</div>
  8545. </div>
  8546. </div>
  8547. <div class="toolSort" v-if="toolType == 2">
  8548. <div class="tool">
  8549. <div class="whiteBIcon" @click="addTools2(16)">
  8550. <img
  8551. src="../../assets/icon/thirdToolList/work.png"
  8552. alt
  8553. />
  8554. <div style="margin: 5px 0">作业提交</div>
  8555. </div>
  8556. <div class="check" @click="addTools2(16)">
  8557. <img
  8558. src="../../assets/icon/checkNo.png"
  8559. alt
  8560. v-if="checktoolArray.indexOf(16) == -1"
  8561. />
  8562. <div class="checkDiv" v-else>
  8563. <img src="../../assets/icon/checkedIs.png" alt /><span
  8564. >已选择</span
  8565. >
  8566. </div>
  8567. </div>
  8568. </div>
  8569. <div class="tool">
  8570. <div class="whiteBIcon" @click="addTools2(50)">
  8571. <img
  8572. src="../../assets/icon/thirdToolList/plwork.png"
  8573. alt
  8574. />
  8575. <div style="margin: 5px 0">批量上传</div>
  8576. </div>
  8577. <div class="check" @click="addTools2(50)">
  8578. <img
  8579. src="../../assets/icon/checkNo.png"
  8580. alt
  8581. v-if="checktoolArray.indexOf(50) == -1"
  8582. />
  8583. <div class="checkDiv" v-else>
  8584. <img src="../../assets/icon/checkedIs.png" alt /><span
  8585. >已选择</span
  8586. >
  8587. </div>
  8588. </div>
  8589. </div>
  8590. </div>
  8591. <div class="toolSort" v-if="toolType == 3">
  8592. <div class="tool">
  8593. <div class="whiteBIcon" @click="addTools2(18)">
  8594. <img
  8595. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8596. alt
  8597. />
  8598. <div style="margin: 5px 0">训练平台</div>
  8599. </div>
  8600. <div class="check" @click="addTools2(18)">
  8601. <img
  8602. src="../../assets/icon/checkNo.png"
  8603. alt
  8604. v-if="checktoolArray.indexOf(18) == -1"
  8605. />
  8606. <div class="checkDiv" v-else>
  8607. <img src="../../assets/icon/checkedIs.png" alt /><span
  8608. >已选择</span
  8609. >
  8610. </div>
  8611. </div>
  8612. </div>
  8613. <div class="tool">
  8614. <div class="whiteBIcon" @click="addTools2(21)">
  8615. <img
  8616. src="../../assets/icon/fourthToolList/program.png"
  8617. alt
  8618. />
  8619. <div style="margin: 5px 0">AIoT Blockly</div>
  8620. </div>
  8621. <div class="check" @click="addTools2(21)">
  8622. <img
  8623. src="../../assets/icon/checkNo.png"
  8624. alt
  8625. v-if="checktoolArray.indexOf(21) == -1"
  8626. />
  8627. <div class="checkDiv" v-else>
  8628. <img src="../../assets/icon/checkedIs.png" alt /><span
  8629. >已选择</span
  8630. >
  8631. </div>
  8632. </div>
  8633. </div>
  8634. <div class="tool">
  8635. <div class="whiteBIcon" @click="addTools2(23)">
  8636. <img
  8637. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8638. alt
  8639. />
  8640. <div style="margin: 5px 0">AI Python</div>
  8641. </div>
  8642. <div class="check" @click="addTools2(23)">
  8643. <img
  8644. src="../../assets/icon/checkNo.png"
  8645. alt
  8646. v-if="checktoolArray.indexOf(23) == -1"
  8647. />
  8648. <div class="checkDiv" v-else>
  8649. <img src="../../assets/icon/checkedIs.png" alt /><span
  8650. >已选择</span
  8651. >
  8652. </div>
  8653. </div>
  8654. </div>
  8655. <div class="tool">
  8656. <div class="whiteBIcon" @click="addTools2(24)">
  8657. <img
  8658. src="../../assets/icon/fourthToolList/AIprogram.png"
  8659. alt
  8660. />
  8661. <div style="margin: 5px 0">AI Blockly</div>
  8662. </div>
  8663. <div class="check" @click="addTools2(24)">
  8664. <img
  8665. src="../../assets/icon/checkNo.png"
  8666. alt
  8667. v-if="checktoolArray.indexOf(24) == -1"
  8668. />
  8669. <div class="checkDiv" v-else>
  8670. <img src="../../assets/icon/checkedIs.png" alt /><span
  8671. >已选择</span
  8672. >
  8673. </div>
  8674. </div>
  8675. </div>
  8676. <div class="tool">
  8677. <div class="whiteBIcon" @click="addTools2(32)">
  8678. <img
  8679. src="../../assets/icon/thirdToolList/code.png"
  8680. alt
  8681. />
  8682. <div style="margin: 5px 0">源码编辑</div>
  8683. </div>
  8684. <div class="check" @click="addTools2(32)">
  8685. <img
  8686. src="../../assets/icon/checkNo.png"
  8687. alt
  8688. v-if="checktoolArray.indexOf(32) == -1"
  8689. />
  8690. <div class="checkDiv" v-else>
  8691. <img src="../../assets/icon/checkedIs.png" alt /><span
  8692. >已选择</span
  8693. >
  8694. </div>
  8695. </div>
  8696. </div>
  8697. <div class="tool">
  8698. <div class="whiteBIcon" @click="addTools2(57)">
  8699. <img
  8700. src="../../assets/icon/fourthToolList/cocopi.png"
  8701. alt
  8702. />
  8703. <div style="margin: 5px 0">CocoPi</div>
  8704. </div>
  8705. <div class="check" @click="addTools2(57)">
  8706. <img
  8707. src="../../assets/icon/checkNo.png"
  8708. alt
  8709. v-if="checktoolArray.indexOf(57) == -1"
  8710. />
  8711. <div class="checkDiv" v-else>
  8712. <img src="../../assets/icon/checkedIs.png" alt /><span
  8713. >已选择</span
  8714. >
  8715. </div>
  8716. </div>
  8717. </div>
  8718. <div class="tool">
  8719. <div class="whiteBIcon" @click="addTools2(63)">
  8720. <img
  8721. src="../../assets/icon/fourthToolList/Wood.png"
  8722. alt
  8723. />
  8724. <div style="margin: 5px 0">海龟编程</div>
  8725. </div>
  8726. <div class="check" @click="addTools2(63)">
  8727. <img
  8728. src="../../assets/icon/checkNo.png"
  8729. alt
  8730. v-if="checktoolArray.indexOf(63) == -1"
  8731. />
  8732. <div class="checkDiv" v-else>
  8733. <img src="../../assets/icon/checkedIs.png" alt /><span
  8734. >已选择</span
  8735. >
  8736. </div>
  8737. </div>
  8738. </div>
  8739. </div>
  8740. <div class="toolSort" v-if="toolType == 5">
  8741. <div class="tool">
  8742. <div class="whiteBIcon" @click="addTools2(28)">
  8743. <img
  8744. src="../../assets/icon/secondToolList/translation.png"
  8745. alt
  8746. />
  8747. <div style="margin: 5px 0">翻译</div>
  8748. </div>
  8749. <div class="check" @click="addTools2(28)">
  8750. <img
  8751. src="../../assets/icon/checkNo.png"
  8752. alt
  8753. v-if="checktoolArray.indexOf(28) == -1"
  8754. />
  8755. <div class="checkDiv" v-else>
  8756. <img src="../../assets/icon/checkedIs.png" alt /><span
  8757. >已选择</span
  8758. >
  8759. </div>
  8760. </div>
  8761. </div>
  8762. <div class="tool">
  8763. <div class="whiteBIcon" @click="addTools2(31)">
  8764. <img
  8765. src="../../assets/icon/secondToolList/networkPanel.png"
  8766. alt
  8767. />
  8768. <div style="margin: 5px 0">数字画板</div>
  8769. </div>
  8770. <div class="check" @click="addTools2(31)">
  8771. <img
  8772. src="../../assets/icon/checkNo.png"
  8773. alt
  8774. v-if="checktoolArray.indexOf(31) == -1"
  8775. />
  8776. <div class="checkDiv" v-else>
  8777. <img src="../../assets/icon/checkedIs.png" alt /><span
  8778. >已选择</span
  8779. >
  8780. </div>
  8781. </div>
  8782. </div>
  8783. <div class="tool">
  8784. <div class="whiteBIcon" @click="addTools2(39)">
  8785. <img
  8786. src="../../assets/icon/secondToolList/GeoGebra.png"
  8787. alt
  8788. />
  8789. <div style="margin: 5px 0">GeoGebra</div>
  8790. </div>
  8791. <div class="check" @click="addTools2(39)">
  8792. <img
  8793. src="../../assets/icon/checkNo.png"
  8794. alt
  8795. v-if="checktoolArray.indexOf(39) == -1"
  8796. />
  8797. <div class="checkDiv" v-else>
  8798. <img src="../../assets/icon/checkedIs.png" alt /><span
  8799. >已选择</span
  8800. >
  8801. </div>
  8802. </div>
  8803. </div>
  8804. <div class="tool">
  8805. <div class="whiteBIcon" @click="addTools2(66)">
  8806. <img
  8807. src="../../assets/icon/secondToolList/formulaEdi.png"
  8808. alt
  8809. />
  8810. <div style="margin: 5px 0">公式编辑</div>
  8811. </div>
  8812. <div class="check" @click="addTools2(66)">
  8813. <img
  8814. src="../../assets/icon/checkNo.png"
  8815. alt
  8816. v-if="checktoolArray.indexOf(66) == -1"
  8817. />
  8818. <div class="checkDiv" v-else>
  8819. <img src="../../assets/icon/checkedIs.png" alt /><span
  8820. >已选择</span
  8821. >
  8822. </div>
  8823. </div>
  8824. </div>
  8825. <div class="tool">
  8826. <div class="whiteBIcon" @click="addTools2(67)">
  8827. <img
  8828. src="../../assets/icon/secondToolList/molStr.png"
  8829. alt
  8830. />
  8831. <div style="margin: 5px 0">分子结构</div>
  8832. </div>
  8833. <div class="check" @click="addTools2(67)">
  8834. <img
  8835. src="../../assets/icon/checkNo.png"
  8836. alt
  8837. v-if="checktoolArray.indexOf(67) == -1"
  8838. />
  8839. <div class="checkDiv" v-else>
  8840. <img src="../../assets/icon/checkedIs.png" alt /><span
  8841. >已选择</span
  8842. >
  8843. </div>
  8844. </div>
  8845. </div>
  8846. <div class="tool">
  8847. <div class="whiteBIcon" @click="addTools2(68)">
  8848. <img
  8849. src="../../assets/icon/secondToolList/timeAxis.png"
  8850. alt
  8851. />
  8852. <div style="margin: 5px 0">时间轴</div>
  8853. </div>
  8854. <div class="check" @click="addTools2(68)">
  8855. <img
  8856. src="../../assets/icon/checkNo.png"
  8857. alt
  8858. v-if="checktoolArray.indexOf(68) == -1"
  8859. />
  8860. <div class="checkDiv" v-else>
  8861. <img src="../../assets/icon/checkedIs.png" alt /><span
  8862. >已选择</span
  8863. >
  8864. </div>
  8865. </div>
  8866. </div>
  8867. </div>
  8868. <div class="toolSort" v-if="toolType == 7">
  8869. <div class="tool">
  8870. <div class="whiteBIcon" @click="addTools2(40)">
  8871. <img
  8872. src="../../assets/icon/secondToolList/eval.png"
  8873. alt
  8874. />
  8875. <div style="margin: 5px 0">个人评价</div>
  8876. </div>
  8877. <div class="check" @click="addTools2(40)">
  8878. <img
  8879. src="../../assets/icon/checkNo.png"
  8880. alt
  8881. v-if="checktoolArray.indexOf(40) == -1"
  8882. />
  8883. <div class="checkDiv" v-else>
  8884. <img src="../../assets/icon/checkedIs.png" alt /><span
  8885. >已选择</span
  8886. >
  8887. </div>
  8888. </div>
  8889. </div>
  8890. </div>
  8891. <div class="toolSort" v-if="toolType == 4">
  8892. <div class="tool">
  8893. <div class="whiteBIcon" @click="addTools2(26)">
  8894. <img
  8895. src="../../assets/icon/thirdToolList/courseDesign.png"
  8896. alt
  8897. />
  8898. <div style="margin: 5px 0">课程设计</div>
  8899. </div>
  8900. <div class="check" @click="addTools2(26)">
  8901. <img
  8902. src="../../assets/icon/checkNo.png"
  8903. alt
  8904. v-if="checktoolArray.indexOf(26) == -1"
  8905. />
  8906. <div class="checkDiv" v-else>
  8907. <img src="../../assets/icon/checkedIs.png" alt /><span
  8908. >已选择</span
  8909. >
  8910. </div>
  8911. </div>
  8912. </div>
  8913. <div class="tool">
  8914. <div class="whiteBIcon" @click="addTools2(25)">
  8915. <img
  8916. src="../../assets/icon/thirdToolList/evalua.png"
  8917. alt
  8918. />
  8919. <div style="margin: 5px 0">目标管理</div>
  8920. </div>
  8921. <div class="check" @click="addTools2(25)">
  8922. <img
  8923. src="../../assets/icon/checkNo.png"
  8924. alt
  8925. v-if="checktoolArray.indexOf(25) == -1"
  8926. />
  8927. <div class="checkDiv" v-else>
  8928. <img src="../../assets/icon/checkedIs.png" alt /><span
  8929. >已选择</span
  8930. >
  8931. </div>
  8932. </div>
  8933. </div>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div> -->
  8939. <div
  8940. class="vedioBox"
  8941. style="margin-top: 10px; border-radius: 20px"
  8942. v-if="
  8943. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8944. .eList &&
  8945. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8946. .eList.length &&
  8947. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8948. .eList.length > 0 &&
  8949. tType != 2
  8950. "
  8951. >
  8952. <div
  8953. class="queTop"
  8954. style="
  8955. font-size: 20px;
  8956. padding: 15px 0 15px 37px;
  8957. font-weight: bold;
  8958. "
  8959. >
  8960. <!-- <div class="question" style="width: 30px">
  8961. <img src="../assets/icon/toolIcon.png" alt />
  8962. </div>
  8963. <div class="queTitle">
  8964. <div>工具</div>
  8965. </div>-->
  8966. 评一评
  8967. </div>
  8968. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8969. <div class="elist_input" :style="{marginLeft: '20px',width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : 'calc(100% - 20px)'}">
  8970. <el-table
  8971. :data="
  8972. chapInfoList[courseType].chapterInfo[0].taskJson[
  8973. taskCount
  8974. ].eList
  8975. "
  8976. :header-cell-style="{ background: '#F0F4FA' }"
  8977. :row-class-name="tableRowClassName"
  8978. border
  8979. stripe
  8980. style="width: 100%"
  8981. >
  8982. <el-table-column :width="courseDetail.state == 5? '230': '150'" label="目标" align="center">
  8983. <template slot-scope="scope"
  8984. >
  8985. <div style="display:flex;justify-content: center;align-items: center;">
  8986. <img
  8987. class="blueRootCss"
  8988. v-if="scope.row.isai == 1 || !scope.row.isai && courseDetail.state == 5"
  8989. src="../../assets/icon/newIcons/blueRoot.png"
  8990. alt=""
  8991. />
  8992. <div v-if="courseDetail.state == 5">
  8993. {{
  8994. scope.row.target
  8995. ? scope.row.target
  8996. : "-"
  8997. }}
  8998. </div>
  8999. <div v-else>
  9000. {{
  9001. scope.row.target
  9002. ? scope.row.target[scope.row.target.length - 1]
  9003. : "-"
  9004. }}
  9005. </div>
  9006. </div>
  9007. </template
  9008. ></el-table-column
  9009. >
  9010. <el-table-column
  9011. label="评价维度"
  9012. align="center"
  9013. v-if="courseDetail.state != 5"
  9014. >
  9015. <template slot-scope="scope"
  9016. ><div>{{ scope.row.value }}</div></template
  9017. >
  9018. </el-table-column>
  9019. <el-table-column
  9020. :label="courseDetail.state == 5? '评价标准' : '维度描述'"
  9021. align="center"
  9022. >
  9023. <template slot-scope="scope"
  9024. ><div>
  9025. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  9026. </div></template
  9027. >
  9028. </el-table-column>
  9029. <el-table-column
  9030. label="细则"
  9031. align="center"
  9032. v-if="courseDetail.state == 5"
  9033. >
  9034. <template slot-scope="scope"
  9035. ><div style="display:flex;justify-content: space-around;margin:auto" v-if="scope.row.rule">
  9036. <el-popover
  9037. placement="top"
  9038. width="350"
  9039. trigger="hover"
  9040. >
  9041. <div v-html="scope.row.rule" style="white-space:pre-wrap"></div>
  9042. <div slot="reference" style="color:#4383FF;cursor: pointer;">查看</div>
  9043. </el-popover>
  9044. </div>
  9045. <div v-else>-</div>
  9046. </template
  9047. >
  9048. </el-table-column>
  9049. </el-table>
  9050. <!-- <div
  9051. v-for="(eItem, eIndex) in chapInfoList[courseType]
  9052. .chapterInfo[0].taskJson[taskCount].eList"
  9053. :key="eIndex"
  9054. class="elist_input_box"
  9055. >
  9056. <div style="width: 95%">
  9057. <div
  9058. style="
  9059. display: flex;
  9060. flex-direction: row;
  9061. flex-wrap: nowrap;
  9062. align-items: center;
  9063. "
  9064. >
  9065. <div style="max-width: calc(100% - 285px)">
  9066. <span>{{ eItem.value }}</span>
  9067. </div>
  9068. <div
  9069. style="
  9070. padding-left: 25px;
  9071. display: flex;
  9072. flex-direction: row;
  9073. align-items: center;
  9074. "
  9075. >
  9076. <el-rate
  9077. v-model="eItem.score"
  9078. :colors="colors"
  9079. disabled
  9080. ></el-rate>
  9081. </div>
  9082. </div>
  9083. <div class="elist_inptu_text" style="padding-left: 10px">
  9084. <span v-if="eItem.detail != ''">{{
  9085. eItem.detail
  9086. }}</span>
  9087. <span v-else style="color: #b2b1b3; font-size: 14px"
  9088. >暂无描述...</span
  9089. >
  9090. </div>
  9091. </div>
  9092. </div> -->
  9093. </div>
  9094. <div
  9095. v-if="evalua"
  9096. style="
  9097. border: 1px solid #e5e5e5;
  9098. max-width: 650px;
  9099. width: 100%;
  9100. margin-top: 20px;
  9101. box-shadow: 3px 1px 15px 3px #e0e0e0;
  9102. "
  9103. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  9104. >
  9105. <div class="e_add_top">
  9106. <div class="e_add_title" style="width: 100%">
  9107. <!-- <span>目标管理名称</span> -->
  9108. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  9109. <img
  9110. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  9111. src="../../assets/line.png"
  9112. class="cru_line"
  9113. style="
  9114. width: 125px;
  9115. height: 20px;
  9116. bottom: -10px;
  9117. left: 5px;
  9118. "
  9119. />
  9120. <!-- <el-input
  9121. v-model="eTitle"
  9122. placeholder="请输入名称"
  9123. @change="setMindData"
  9124. ></el-input>-->
  9125. <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>
  9126. <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>
  9127. </div>
  9128. </div>
  9129. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  9130. <div class="e_add_list_pbox">
  9131. <div class="e_add_list_pbox_title">
  9132. <!-- <span class="type_title">切换模式</span> -->
  9133. <div class="type_content">
  9134. <span
  9135. :class="{ active: typeMode == 1 }"
  9136. @click="typeMode = 1"
  9137. >目标树</span
  9138. >
  9139. <span
  9140. :class="{ active: typeMode == 2 }"
  9141. @click="typeMode = 2"
  9142. >目标罗盘</span
  9143. >
  9144. <!-- <span
  9145. :class="{ active: typeMode == 3 }"
  9146. @click="typeMode = 3"
  9147. >目标看板</span
  9148. > -->
  9149. </div>
  9150. </div>
  9151. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  9152. <Mind
  9153. :showBar="false"
  9154. :mindData="data"
  9155. style="width: 100%"
  9156. v-show="typeMode == 1"
  9157. ></Mind>
  9158. <Sunburst
  9159. :Josn="eJson"
  9160. :num="eJSONNum"
  9161. style="width: 100%"
  9162. v-if="typeMode == 2"
  9163. ></Sunburst>
  9164. <SeeBoard
  9165. :Josn="eJson"
  9166. :num="eJSONNum"
  9167. :ename="eTitle"
  9168. style="width: 100%"
  9169. v-if="typeMode == 3"
  9170. >
  9171. </SeeBoard>
  9172. </div>
  9173. </div>
  9174. </div>
  9175. </div>
  9176. </div>
  9177. </div>
  9178. <!-- <div
  9179. class="project_box"
  9180. style="margin-top: 15px; padding-bottom: 30px"
  9181. >
  9182. <div
  9183. style="
  9184. display: flex;
  9185. flex-wrap: nowrap;
  9186. flex-direction: column;
  9187. position: relative;
  9188. "
  9189. >
  9190. <div class="queTop">
  9191. <div class="question">
  9192. <img src="../../assets/icon/homeWork.png" alt="" />
  9193. </div>
  9194. <div class="queTitle">
  9195. <div>作业提交<span>(提交图文视频等)</span></div>
  9196. <div>:任务:{{ task.task }}</div>
  9197. </div>
  9198. </div>
  9199. <div class="ediBottom">
  9200. <div
  9201. class="addEditor"
  9202. style="margin-top: 23px"
  9203. @click="openAddWork"
  9204. v-if="!isNoHomeWork"
  9205. >
  9206. 选择文件
  9207. </div>
  9208. <div
  9209. class="addEditor"
  9210. style="margin-top: 23px"
  9211. @click="openAddWork"
  9212. v-else
  9213. >
  9214. 已提交
  9215. </div>
  9216. </div>
  9217. </div>
  9218. </div>-->
  9219. </div>
  9220. </div>
  9221. <el-dialog
  9222. title="作业提交"
  9223. :visible.sync="dialogVisible"
  9224. :append-to-body="true"
  9225. width="500px"
  9226. :before-close="handleClose"
  9227. class="dialog_change"
  9228. >
  9229. <div class="marginT">
  9230. <div>上传文件</div>
  9231. <div
  9232. class="chapter_add"
  9233. @click="addImg($event)"
  9234. v-if="studyJuri[0].cover.length == 0"
  9235. >
  9236. <div class="up_photo">
  9237. <img src="../../assets/icon/uploadImg.png" alt />
  9238. </div>
  9239. <!-- <input
  9240. type="file"
  9241. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9242. style="display: none"
  9243. @change="beforeUpload1($event, 1)"
  9244. /> -->
  9245. <input
  9246. type="file"
  9247. accept="*"
  9248. style="display: none"
  9249. @change="beforeUpload1($event, 1)"
  9250. />
  9251. <!-- <input
  9252. type="file"
  9253. accept="image/*"
  9254. capture="camera"
  9255. style="display: none"
  9256. @change="beforeUpload1($event, 1)"
  9257. /> -->
  9258. </div>
  9259. <div
  9260. class="chapter_add"
  9261. style="
  9262. display: flex;
  9263. width: 100%;
  9264. flex-direction: row;
  9265. flex-wrap: wrap;
  9266. justify-content: flex-start;
  9267. padding: 15px 0;
  9268. "
  9269. v-if="studyJuri[0].cover.length > 0"
  9270. >
  9271. <div class="upCover">
  9272. <img
  9273. :src="studyJuri[0].cover[0].url"
  9274. alt
  9275. v-if="fileType == 0"
  9276. />
  9277. <img :src="word" alt v-else-if="fileType == 1" />
  9278. <img :src="video" alt v-else-if="fileType == 2" />
  9279. <img :src="word2" alt v-else-if="fileType == 3" />
  9280. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9281. <div class="deleteWord" @click="clean(1)">
  9282. <img src="../../assets/icon/deleteWorks.png" alt />
  9283. </div>
  9284. </div>
  9285. </div>
  9286. </div>
  9287. <div
  9288. class="upload_send"
  9289. @click="addCourseWorksCopy(taskCount)"
  9290. v-if="!proVisible"
  9291. >
  9292. 提交
  9293. </div>
  9294. </el-dialog>
  9295. </div>
  9296. </div>
  9297. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  9298. <classRoomHelper v-if="!['2'].includes(tType)" :videoStart="videoStart" @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(
  9299. '/courseDetail?userid=' +
  9300. userid +
  9301. '&oid=' +
  9302. oid +
  9303. '&org=' +
  9304. org +
  9305. '&cid=' +
  9306. classId +
  9307. '&courseId=' +
  9308. id +
  9309. '&tType=' +
  9310. tType +
  9311. '&screenType=' +
  9312. screenType
  9313. )"></classRoomHelper>
  9314. <div
  9315. class="pButton"
  9316. @click="(pzDialog = true), selectPz()"
  9317. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  9318. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  9319. >
  9320. <!-- 批 -->
  9321. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  9322. </div>
  9323. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  9324. <div class="pzTop2">
  9325. <!-- <div>评论</div>
  9326. <div @click="pzDialog = false">
  9327. <img src="../../assets/close1.png" alt="" />
  9328. </div> -->
  9329. <div class="checkbox">
  9330. <!-- <div class="check" style="font-size: 25px; position: unset">
  9331. 评论
  9332. </div> -->
  9333. <div class="cb-tabList">
  9334. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  9335. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  9336. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  9337. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  9338. </div>
  9339. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  9340. <el-option label="时间降序" :value="1"></el-option>
  9341. <el-option label="时间升序" :value="2"></el-option>
  9342. <el-option label="我的评课" :value="3"></el-option>
  9343. </el-select>
  9344. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  9345. </div>
  9346. </div>
  9347. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  9348. <div class="pzListBox" v-if="pzList && pzList.length">
  9349. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  9350. <div class="pzNavTop">
  9351. <div>评</div>
  9352. <div>
  9353. {{
  9354. pz.username && pz.username.length > 5
  9355. ? pz.username.substring(0, 5) + "..."
  9356. : pz.username
  9357. }}的评论
  9358. </div>
  9359. <div
  9360. class="pzDelete"
  9361. v-if="pz.userid == userid"
  9362. @click="deletePz(pz.id)"
  9363. >
  9364. 删除
  9365. </div>
  9366. </div>
  9367. <div
  9368. @click="checkImg(getImgList(pz.content))"
  9369. class="pzContent cont"
  9370. v-html="pz.content"
  9371. v-if="pz.type == '1'"
  9372. ></div>
  9373. <div class="pzContent" v-if="pz.type == '2'">
  9374. <audio :src="pz.content" controls="controls" ref="audio">
  9375. Your browser does not support the audio element.
  9376. </audio>
  9377. </div>
  9378. <div class="pzContent" v-if="pz.type == '3'">
  9379. <img
  9380. :src="pz.content"
  9381. style="width: 90%; margin: 0 auto; display: block"
  9382. @click="previewImg(pz.content)"
  9383. />
  9384. </div>
  9385. <div class="timeAndReply">
  9386. <div class="time">
  9387. {{ pz.time }}
  9388. </div>
  9389. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  9390. </div>
  9391. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  9392. <div
  9393. v-for="(h, hIndex) in pz.hfList"
  9394. :key="hIndex"
  9395. class="hfItem"
  9396. >
  9397. <div class="whoReplyWho">
  9398. <div class="hfName">{{ h.username }}</div>
  9399. <div class="hfImg">
  9400. <img src="../../assets/icon/newIcons/right.png" alt="" />
  9401. </div>
  9402. <div class="hfName">{{ pz.username }}</div>
  9403. </div>
  9404. <div class="hfContent" v-html="h.content"></div>
  9405. <div class="hfBottom">
  9406. <div class="hfTime">{{ h.time }}</div>
  9407. <div
  9408. class="deleteHfItem"
  9409. @click="deleteReply(h.id)"
  9410. v-if="userid == h.userid"
  9411. >
  9412. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  9413. </div>
  9414. </div>
  9415. </div>
  9416. </div>
  9417. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  9418. <div class="replyInput">
  9419. <el-input v-model="reply[pzIndex]"></el-input>
  9420. </div>
  9421. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  9422. </div> -->
  9423. </div>
  9424. </div>
  9425. <div class="noPz" v-else>
  9426. <img src="../../assets/icon/noPz.png" alt="" />
  9427. </div>
  9428. <div class="addPzButton">
  9429. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  9430. 添加评论
  9431. </div>
  9432. <!-- <div class="img1">
  9433. <div @click="(addPzDialog = true), (pzType = 2)">
  9434. <img src="../../assets/audio.png" /><span>音频</span>
  9435. </div>
  9436. </div> -->
  9437. </div>
  9438. </div>
  9439. <div class="scoreList" v-if="commentTagShow==1">
  9440. <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"/>
  9441. </div>
  9442. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  9443. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  9444. </div>
  9445. </div>
  9446. <div
  9447. v-if="toolDialogVisible == true"
  9448. class="toolMask"
  9449. @click="toolDialogVisible = false"
  9450. ></div>
  9451. <div v-if="toolDialogVisible == true" class="addToolCss">
  9452. <div class="toolTop">
  9453. <div style="font-weight: bold">新增工具</div>
  9454. <div @click="toolDialogVisible = false">
  9455. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  9456. </div>
  9457. </div>
  9458. <div class="tool_box">
  9459. <div class="tool_type_box">
  9460. <div class="chooseWho">
  9461. <div
  9462. :class="toolType == 0 ? 'isChooseActive' : ''"
  9463. @click="(toolType = 0), $forceUpdate()"
  9464. >
  9465. 互动类
  9466. </div>
  9467. <div
  9468. :class="toolType == 1 ? 'isChooseActive' : ''"
  9469. @click="(toolType = 1), $forceUpdate()"
  9470. >
  9471. 思维类
  9472. </div>
  9473. <div
  9474. :class="toolType == 2 ? 'isChooseActive' : ''"
  9475. @click="(toolType = 2), $forceUpdate()"
  9476. >
  9477. 测评类
  9478. </div>
  9479. <div
  9480. :class="toolType == 3 ? 'isChooseActive' : ''"
  9481. @click="(toolType = 3), $forceUpdate()"
  9482. >
  9483. 编程类
  9484. </div>
  9485. <div
  9486. :class="toolType == 5 ? 'isChooseActive' : ''"
  9487. @click="(toolType = 5), $forceUpdate()"
  9488. >
  9489. 学科类
  9490. </div>
  9491. </div>
  9492. </div>
  9493. <div>
  9494. <div class="toolSort" v-if="toolType == 0">
  9495. <div
  9496. class="tool"
  9497. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  9498. @click="addTools2(10)"
  9499. >
  9500. <div class="whiteBIcon">
  9501. <img src="../../assets/icon/thirdToolList/time.png" alt />
  9502. <div style="margin: 5px 0">倒计时</div>
  9503. </div>
  9504. <div class="check">
  9505. <div
  9506. v-if="checktoolArray.indexOf(10) == -1"
  9507. class="noChoose"
  9508. ></div>
  9509. <div v-else class="isChoose"></div>
  9510. </div>
  9511. </div>
  9512. <div
  9513. class="tool"
  9514. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  9515. @click="addTools2(65)"
  9516. >
  9517. <div class="whiteBIcon">
  9518. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  9519. <div style="margin: 5px 0">挑人</div>
  9520. </div>
  9521. <div class="check">
  9522. <div
  9523. v-if="checktoolArray.indexOf(65) == -1"
  9524. class="noChoose"
  9525. ></div>
  9526. <div v-else class="isChoose"></div>
  9527. </div>
  9528. </div>
  9529. </div>
  9530. <div class="toolSort" v-if="toolType == 1">
  9531. <div
  9532. class="tool"
  9533. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  9534. @click="addTools2(7)"
  9535. >
  9536. <div class="whiteBIcon">
  9537. <img
  9538. src="../../assets/icon/secondToolList/mindNetwork.png"
  9539. alt
  9540. />
  9541. <div style="margin: 5px 0">思维网格</div>
  9542. </div>
  9543. <div class="check">
  9544. <div
  9545. v-if="checktoolArray.indexOf(7) == -1"
  9546. class="noChoose"
  9547. ></div>
  9548. <div v-else class="isChoose"></div>
  9549. </div>
  9550. </div>
  9551. <div
  9552. class="tool"
  9553. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  9554. @click="addTools2(1)"
  9555. >
  9556. <div class="whiteBIcon">
  9557. <img
  9558. src="../../assets/icon/secondToolList/whiteBoard.png"
  9559. alt
  9560. />
  9561. <div style="margin: 5px 0">电子白板</div>
  9562. </div>
  9563. <div class="check">
  9564. <div
  9565. v-if="checktoolArray.indexOf(1) == -1"
  9566. class="noChoose"
  9567. ></div>
  9568. <div v-else class="isChoose"></div>
  9569. </div>
  9570. </div>
  9571. <div
  9572. class="tool"
  9573. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  9574. @click="addTools2(52)"
  9575. >
  9576. <div class="whiteBIcon">
  9577. <img src="../../assets/icon/fourthToolList/text.png" alt />
  9578. <div style="margin: 5px 0">文档</div>
  9579. </div>
  9580. <div class="check">
  9581. <div
  9582. v-if="checktoolArray.indexOf(52) == -1"
  9583. class="noChoose"
  9584. ></div>
  9585. <div v-else class="isChoose"></div>
  9586. </div>
  9587. </div>
  9588. <div
  9589. class="tool"
  9590. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  9591. @click="addTools2(3)"
  9592. >
  9593. <div class="whiteBIcon">
  9594. <img
  9595. src="../../assets/icon/secondToolList/mindMapping.png"
  9596. alt
  9597. />
  9598. <div style="margin: 5px 0">思维导图</div>
  9599. </div>
  9600. <div class="check">
  9601. <div
  9602. v-if="checktoolArray.indexOf(3) == -1"
  9603. class="noChoose"
  9604. ></div>
  9605. <div v-else class="isChoose"></div>
  9606. </div>
  9607. </div>
  9608. <div
  9609. class="tool"
  9610. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  9611. @click="addTools2(48)"
  9612. >
  9613. <div class="whiteBIcon">
  9614. <img src="../../assets/icon/fourthToolList/table.png" alt />
  9615. <div style="margin: 5px 0">表格</div>
  9616. </div>
  9617. <div class="check">
  9618. <div
  9619. v-if="checktoolArray.indexOf(48) == -1"
  9620. class="noChoose"
  9621. ></div>
  9622. <div v-else class="isChoose"></div>
  9623. </div>
  9624. </div>
  9625. </div>
  9626. <div class="toolSort" v-if="toolType == 6">
  9627. <div v-show="tooC == 49">
  9628. <img
  9629. @click="addTools(tooC, toolIndex, taskCount)"
  9630. src="../../assets/icon/fourthToolList/group.png"
  9631. alt
  9632. />
  9633. <div style="margin: 5px 0">学生分组</div>
  9634. </div>
  9635. </div>
  9636. <div class="toolSort" v-if="toolType == 2">
  9637. <div
  9638. class="tool"
  9639. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  9640. @click="addTools2(16)"
  9641. >
  9642. <div class="whiteBIcon">
  9643. <img src="../../assets/icon/thirdToolList/work.png" alt />
  9644. <div style="margin: 5px 0">作业提交</div>
  9645. </div>
  9646. <div class="check">
  9647. <div
  9648. v-if="checktoolArray.indexOf(16) == -1"
  9649. class="noChoose"
  9650. ></div>
  9651. <div v-else class="isChoose"></div>
  9652. </div>
  9653. </div>
  9654. <div
  9655. class="tool"
  9656. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  9657. @click="addTools2(50)"
  9658. >
  9659. <div class="whiteBIcon">
  9660. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  9661. <div style="margin: 5px 0">批量上传</div>
  9662. </div>
  9663. <div class="check">
  9664. <div
  9665. v-if="checktoolArray.indexOf(50) == -1"
  9666. class="noChoose"
  9667. ></div>
  9668. <div v-else class="isChoose"></div>
  9669. </div>
  9670. </div>
  9671. </div>
  9672. <div class="toolSort" v-if="toolType == 3">
  9673. <div
  9674. class="tool"
  9675. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9676. @click="addTools2(18)"
  9677. >
  9678. <div class="whiteBIcon">
  9679. <img
  9680. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9681. alt
  9682. />
  9683. <div style="margin: 5px 0">训练平台</div>
  9684. </div>
  9685. <div class="check">
  9686. <div
  9687. v-if="checktoolArray.indexOf(18) == -1"
  9688. class="noChoose"
  9689. ></div>
  9690. <div v-else class="isChoose"></div>
  9691. </div>
  9692. </div>
  9693. <div
  9694. class="tool"
  9695. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9696. @click="addTools2(21)"
  9697. >
  9698. <div class="whiteBIcon">
  9699. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9700. <div style="margin: 5px 0">AIoT Blockly</div>
  9701. </div>
  9702. <div class="check">
  9703. <div
  9704. v-if="checktoolArray.indexOf(21) == -1"
  9705. class="noChoose"
  9706. ></div>
  9707. <div v-else class="isChoose"></div>
  9708. </div>
  9709. </div>
  9710. <div
  9711. class="tool"
  9712. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9713. @click="addTools2(23)"
  9714. >
  9715. <div class="whiteBIcon">
  9716. <img
  9717. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9718. alt
  9719. />
  9720. <div style="margin: 5px 0">AI Python</div>
  9721. </div>
  9722. <div class="check">
  9723. <div
  9724. v-if="checktoolArray.indexOf(23) == -1"
  9725. class="noChoose"
  9726. ></div>
  9727. <div v-else class="isChoose"></div>
  9728. </div>
  9729. </div>
  9730. <div
  9731. class="tool"
  9732. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9733. @click="addTools2(24)"
  9734. >
  9735. <div class="whiteBIcon">
  9736. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9737. <div style="margin: 5px 0">AI Blockly</div>
  9738. </div>
  9739. <div class="check">
  9740. <div
  9741. v-if="checktoolArray.indexOf(24) == -1"
  9742. class="noChoose"
  9743. ></div>
  9744. <div v-else class="isChoose"></div>
  9745. </div>
  9746. </div>
  9747. <div
  9748. class="tool"
  9749. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9750. @click="addTools2(32)"
  9751. >
  9752. <div class="whiteBIcon">
  9753. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9754. <div style="margin: 5px 0">源码编辑</div>
  9755. </div>
  9756. <div class="check">
  9757. <div
  9758. v-if="checktoolArray.indexOf(32) == -1"
  9759. class="noChoose"
  9760. ></div>
  9761. <div v-else class="isChoose"></div>
  9762. </div>
  9763. </div>
  9764. <div
  9765. class="tool"
  9766. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9767. @click="addTools2(57)"
  9768. >
  9769. <div class="whiteBIcon">
  9770. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9771. <div style="margin: 5px 0">CocoPi</div>
  9772. </div>
  9773. <div class="check">
  9774. <div
  9775. v-if="checktoolArray.indexOf(57) == -1"
  9776. class="noChoose"
  9777. ></div>
  9778. <div v-else class="isChoose"></div>
  9779. </div>
  9780. </div>
  9781. <div
  9782. class="tool"
  9783. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9784. @click="addTools2(63)"
  9785. >
  9786. <div class="whiteBIcon">
  9787. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9788. <div style="margin: 5px 0">海龟编程</div>
  9789. </div>
  9790. <div class="check">
  9791. <div
  9792. v-if="checktoolArray.indexOf(63) == -1"
  9793. class="noChoose"
  9794. ></div>
  9795. <div v-else class="isChoose"></div>
  9796. </div>
  9797. </div>
  9798. <div
  9799. class="tool"
  9800. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9801. @click="addTools2(71)"
  9802. >
  9803. <div class="whiteBIcon">
  9804. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9805. <div style="margin: 5px 0">AI智能体</div>
  9806. </div>
  9807. <div class="check">
  9808. <div
  9809. v-if="checktoolArray.indexOf(71) == -1"
  9810. class="noChoose"
  9811. ></div>
  9812. <div v-else class="isChoose"></div>
  9813. </div>
  9814. </div>
  9815. </div>
  9816. <div class="toolSort" v-if="toolType == 7">
  9817. <div
  9818. class="tool"
  9819. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9820. @click="addTools2(40)"
  9821. >
  9822. <div class="whiteBIcon">
  9823. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9824. <div style="margin: 5px 0">个人评价</div>
  9825. </div>
  9826. <div class="check">
  9827. <div
  9828. v-if="checktoolArray.indexOf(40) == -1"
  9829. class="noChoose"
  9830. ></div>
  9831. <div v-else class="isChoose"></div>
  9832. </div>
  9833. </div>
  9834. </div>
  9835. <div class="toolSort" v-if="toolType == 5">
  9836. <div
  9837. class="tool"
  9838. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9839. @click="addTools2(28)"
  9840. >
  9841. <div class="whiteBIcon">
  9842. <img
  9843. src="../../assets/icon/secondToolList/translation.png"
  9844. alt
  9845. />
  9846. <div style="margin: 5px 0">翻译</div>
  9847. </div>
  9848. <div class="check">
  9849. <div
  9850. v-if="checktoolArray.indexOf(28) == -1"
  9851. class="noChoose"
  9852. ></div>
  9853. <div v-else class="isChoose"></div>
  9854. </div>
  9855. </div>
  9856. <div
  9857. class="tool"
  9858. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9859. @click="addTools2(31)"
  9860. >
  9861. <div class="whiteBIcon">
  9862. <img
  9863. src="../../assets/icon/secondToolList/networkPanel.png"
  9864. alt
  9865. />
  9866. <div style="margin: 5px 0">数字画板</div>
  9867. </div>
  9868. <div class="check">
  9869. <div
  9870. v-if="checktoolArray.indexOf(31) == -1"
  9871. class="noChoose"
  9872. ></div>
  9873. <div v-else class="isChoose"></div>
  9874. </div>
  9875. </div>
  9876. <div
  9877. class="tool"
  9878. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9879. @click="addTools2(39)"
  9880. >
  9881. <div class="whiteBIcon">
  9882. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9883. <div style="margin: 5px 0">GeoGebra</div>
  9884. </div>
  9885. <div class="check">
  9886. <div
  9887. v-if="checktoolArray.indexOf(39) == -1"
  9888. class="noChoose"
  9889. ></div>
  9890. <div v-else class="isChoose"></div>
  9891. </div>
  9892. </div>
  9893. <div
  9894. class="tool"
  9895. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9896. @click="addTools2(66)"
  9897. >
  9898. <div class="whiteBIcon">
  9899. <img
  9900. src="../../assets/icon/secondToolList/formulaEdi.png"
  9901. alt
  9902. />
  9903. <div style="margin: 5px 0">公式编辑</div>
  9904. </div>
  9905. <div class="check">
  9906. <div
  9907. v-if="checktoolArray.indexOf(66) == -1"
  9908. class="noChoose"
  9909. ></div>
  9910. <div v-else class="isChoose"></div>
  9911. </div>
  9912. </div>
  9913. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9914. <div class="whiteBIcon" @click="addTools2(67)">
  9915. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9916. <div style="margin: 5px 0">分子结构</div>
  9917. </div>
  9918. <div class="check" @click="addTools2(67)">
  9919. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9920. <div v-else class="isChoose"></div>
  9921. </div>
  9922. </div> -->
  9923. <div
  9924. class="tool"
  9925. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9926. @click="addTools2(68)"
  9927. >
  9928. <div class="whiteBIcon">
  9929. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9930. <div style="margin: 5px 0">时间轴</div>
  9931. </div>
  9932. <div class="check">
  9933. <div
  9934. v-if="checktoolArray.indexOf(68) == -1"
  9935. class="noChoose"
  9936. ></div>
  9937. <div v-else class="isChoose"></div>
  9938. </div>
  9939. </div>
  9940. <!-- <div
  9941. class="tool"
  9942. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9943. @click="addTools2(69)"
  9944. >
  9945. <div class="whiteBIcon">
  9946. <img src="../../assets/icon/secondToolList/english.png" alt />
  9947. <div style="margin: 5px 0">英语写作</div>
  9948. </div>
  9949. <div class="check">
  9950. <div
  9951. v-if="checktoolArray.indexOf(69) == -1"
  9952. class="noChoose"
  9953. ></div>
  9954. <div v-else class="isChoose"></div>
  9955. </div>
  9956. </div> -->
  9957. </div>
  9958. <div class="toolSort" v-if="toolType == 4">
  9959. <div
  9960. class="tool"
  9961. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9962. @click="addTools2(26)"
  9963. >
  9964. <div class="whiteBIcon">
  9965. <img
  9966. src="../../assets/icon/thirdToolList/courseDesign.png"
  9967. alt
  9968. />
  9969. <div style="margin: 5px 0">课程设计</div>
  9970. </div>
  9971. <div class="check">
  9972. <div
  9973. v-if="checktoolArray.indexOf(26) == -1"
  9974. class="noChoose"
  9975. ></div>
  9976. <div v-else class="isChoose"></div>
  9977. </div>
  9978. </div>
  9979. <div
  9980. class="tool"
  9981. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9982. @click="addTools2(25)"
  9983. >
  9984. <div class="whiteBIcon">
  9985. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9986. <div style="margin: 5px 0">目标管理</div>
  9987. </div>
  9988. <div class="check">
  9989. <div
  9990. v-if="checktoolArray.indexOf(25) == -1"
  9991. class="noChoose"
  9992. ></div>
  9993. <div v-else class="isChoose"></div>
  9994. </div>
  9995. </div>
  9996. </div>
  9997. </div>
  9998. </div>
  9999. <span
  10000. slot="footer"
  10001. class="dialog-footer"
  10002. style="display: block; text-align: center; padding: 0 0 10px 0"
  10003. >
  10004. <el-button @click="toolDialogVisible = false">取 消</el-button>
  10005. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  10006. </span>
  10007. </div>
  10008. <div
  10009. v-if="replyDialogVisible == true"
  10010. class="addDialogCss"
  10011. v-el-drag-dialog
  10012. >
  10013. <div class="pzTop">
  10014. <div class="teacherPz">
  10015. <div class="teacherPzImg">
  10016. <img src="../../assets/icon/teacherPz.png" alt="" />
  10017. </div>
  10018. <div style="margin-left: 10px; height: 25px">添加回复</div>
  10019. </div>
  10020. <div @click="replyDialogVisible = false">
  10021. <img src="../../assets/close1.png" class="pzClose" alt="" />
  10022. </div>
  10023. </div>
  10024. <div class="addPzBox">
  10025. <!-- <div class="addPzCheck">
  10026. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  10027. >文本</span
  10028. >
  10029. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  10030. >音频</span
  10031. >
  10032. </div> -->
  10033. <div style="height: calc(100% - 50px)">
  10034. <editor-bar
  10035. class="binfo_input pzConText"
  10036. style="width: 100% !important; margin: 0 auto"
  10037. placeholder="请输入回复描述"
  10038. v-model="reply"
  10039. @change="change"
  10040. ></editor-bar>
  10041. </div>
  10042. <div class="addTextCss" @click="addHf">确定</div>
  10043. </div>
  10044. </div>
  10045. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  10046. <div class="pzTop">
  10047. <div class="teacherPz">
  10048. <div class="teacherPzImg">
  10049. <img src="../../assets/icon/teacherPz.png" alt="" />
  10050. </div>
  10051. <div style="margin-left: 10px; height: 25px">教师评论</div>
  10052. </div>
  10053. <div @click="addPzDialog = false">
  10054. <img src="../../assets/close1.png" class="pzClose" alt="" />
  10055. </div>
  10056. </div>
  10057. <div class="addPzBox">
  10058. <div class="addPzCheck">
  10059. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  10060. >文本</span
  10061. >
  10062. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  10063. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  10064. >音频</span
  10065. >
  10066. </div>
  10067. <div style="height: calc(100% - 95px)">
  10068. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  10069. v-if="pzType == 1"></textarea> -->
  10070. <editor-bar
  10071. class="binfo_input pzConText"
  10072. style="width: 100% !important"
  10073. placeholder="请输入任务描述"
  10074. v-model="pzConText"
  10075. @change="change"
  10076. v-if="pzType == 1"
  10077. ></editor-bar>
  10078. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  10079. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  10080. <div @click="addImg($event)">
  10081. <el-button type="primary">上传图片</el-button>
  10082. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  10083. @change="beforeUpload1($event, 4)" />
  10084. </div>
  10085. </div> -->
  10086. </div>
  10087. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  10088. 确定
  10089. </div>
  10090. </div>
  10091. </div>
  10092. <div v-if="proVisible" class="mask">
  10093. <div class="progressBox">
  10094. <!-- <div id="closePro" class="closeCss">
  10095. <img src="../../assets/icon/close.png" alt />
  10096. </div> -->
  10097. <div class="lbox">
  10098. <img src="../../assets/loading.gif" />上传中,请稍后
  10099. </div>
  10100. <div style="margin-bottom: 10px">
  10101. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  10102. </div>
  10103. <el-progress
  10104. :text-inside="true"
  10105. :stroke-width="20"
  10106. :percentage="progress"
  10107. style="width: 80%"
  10108. ></el-progress>
  10109. </div>
  10110. </div>
  10111. <div v-if="proVisible2" class="mask">
  10112. <div class="progressBox">
  10113. <div class="lbox">
  10114. <img src="../../assets/loading.gif" />上传中,请稍后
  10115. </div>
  10116. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  10117. </div>
  10118. </div>
  10119. <el-dialog :visible.sync="pictureDialog" size="tiny">
  10120. <img width="100%" :src="dialogImageUrl" alt />
  10121. </el-dialog>
  10122. <el-dialog
  10123. :title="noteName != '' ? noteName : '查看问卷'"
  10124. :visible.sync="dialogVisible5"
  10125. :append-to-body="true"
  10126. width="1000px"
  10127. :before-close="handleClose"
  10128. class="dialog_diy dialog_diy3"
  10129. >
  10130. <div>
  10131. <div
  10132. class="a_add_title"
  10133. style="
  10134. display: flex;
  10135. flex-direction: row;
  10136. align-items: center;
  10137. justify-content: center;
  10138. "
  10139. >
  10140. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10141. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  10142. </div>
  10143. <div class="a_addBox">
  10144. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10145. 题目内容
  10146. </div>
  10147. <div
  10148. class="a_add_box"
  10149. v-for="(item1, index1) in askJson.askCount"
  10150. :key="index1"
  10151. >
  10152. <div class="a_add_head">
  10153. <div style="display: flex">
  10154. <span class="askIndex"> {{ index1 + 1 }}</span>
  10155. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  10156. </div>
  10157. <img
  10158. v-if="askJson.askJson[index1].img"
  10159. :src="askJson.askJson[index1].img"
  10160. style="height: 300px; margin-top: 10px; max-width: 100%"
  10161. />
  10162. </div>
  10163. <div class="a_add_body">
  10164. <div class="a_add_input">
  10165. <el-radio-group
  10166. v-model="radio[index1]"
  10167. v-if="
  10168. askJson.askJson[index1].type == '1' ||
  10169. !askJson.askJson[index1].type
  10170. "
  10171. >
  10172. <el-radio
  10173. v-for="(item2, checkIndex) in askJson.askJson[index1]
  10174. .checkList"
  10175. :key="checkIndex"
  10176. :label="checkIndex"
  10177. :disabled="isAnswer"
  10178. class="redioStyle"
  10179. ><span v-html="item2"></span
  10180. ></el-radio>
  10181. </el-radio-group>
  10182. <el-checkbox-group
  10183. v-model="radio[index1]"
  10184. v-if="askJson.askJson[index1].type == '2'"
  10185. >
  10186. <el-checkbox
  10187. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  10188. .checkList"
  10189. :key="checkIndex1"
  10190. :label="checkIndex1"
  10191. :disabled="isAnswer"
  10192. class="redioStyle"
  10193. ><span v-html="item2"></span>
  10194. </el-checkbox>
  10195. </el-checkbox-group>
  10196. </div>
  10197. </div>
  10198. </div>
  10199. </div>
  10200. </div>
  10201. <span slot="footer" class="dialog-footer">
  10202. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  10203. >取 消</el-button
  10204. >
  10205. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  10206. >确 定</el-button
  10207. >
  10208. </span>
  10209. </el-dialog>
  10210. <el-dialog
  10211. :title="noteName != '' ? noteName : '查看问卷'"
  10212. :visible.sync="dialogVisible5Teacher"
  10213. :append-to-body="true"
  10214. width="1000px"
  10215. :before-close="handleClose"
  10216. class="dialog_diy dialog_diy3"
  10217. >
  10218. <div>
  10219. <div class="w_name">
  10220. 学生姓名:<span>{{ sStudent.student }}</span>
  10221. </div>
  10222. <div
  10223. class="a_add_title"
  10224. style="
  10225. display: flex;
  10226. flex-direction: row;
  10227. align-items: center;
  10228. justify-content: center;
  10229. "
  10230. >
  10231. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10232. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  10233. </div>
  10234. <div class="a_addBox">
  10235. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10236. 题目内容
  10237. </div>
  10238. <div
  10239. class="a_add_box"
  10240. v-for="(item1, index1) in askJson.askCount"
  10241. :key="index1"
  10242. >
  10243. <div class="a_add_head">
  10244. <div style="display: flex">
  10245. <span class="askIndex">{{ index1 + 1 }}</span>
  10246. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  10247. </div>
  10248. <img
  10249. v-if="askJson.askJson[index1].img"
  10250. :src="askJson.askJson[index1].img"
  10251. style="height: 300px; margin-top: 10px; max-width: 100%"
  10252. />
  10253. </div>
  10254. <div class="a_add_body">
  10255. <div class="a_add_input">
  10256. <el-radio-group
  10257. v-model="radio[index1]"
  10258. v-if="
  10259. askJson.askJson[index1].type == '1' ||
  10260. !askJson.askJson[index1].type
  10261. "
  10262. >
  10263. <el-radio
  10264. v-for="(item2, checkIndex) in askJson.askJson[index1]
  10265. .checkList"
  10266. :key="checkIndex"
  10267. :label="checkIndex"
  10268. :disabled="isAnswer"
  10269. class="redioStyle"
  10270. ><span v-html="item2"></span
  10271. ></el-radio>
  10272. </el-radio-group>
  10273. <el-checkbox-group
  10274. v-model="radio[index1]"
  10275. v-if="askJson.askJson[index1].type == '2'"
  10276. >
  10277. <el-checkbox
  10278. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  10279. .checkList"
  10280. :key="checkIndex1"
  10281. :label="checkIndex1"
  10282. :disabled="isAnswer"
  10283. class="redioStyle"
  10284. ><span v-html="item2"></span>
  10285. </el-checkbox>
  10286. </el-checkbox-group>
  10287. </div>
  10288. </div>
  10289. </div>
  10290. </div>
  10291. </div>
  10292. <span slot="footer" class="dialog-footer">
  10293. <el-button
  10294. @click="dialogVisible5Teacher = false"
  10295. v-show="noteName == ''"
  10296. >取 消</el-button
  10297. >
  10298. <el-button
  10299. type="primary"
  10300. @click="addStudentAskTeacher"
  10301. v-show="noteName == ''"
  10302. >确 定</el-button
  10303. >
  10304. </span>
  10305. </el-dialog>
  10306. <el-dialog
  10307. :title="noteName != '' ? noteName : '查看选择题'"
  10308. :visible.sync="dialogVisibleChoice"
  10309. :append-to-body="true"
  10310. width="1000px"
  10311. :before-close="handleClose"
  10312. class="dialog_diy dialog_diy3"
  10313. >
  10314. <div>
  10315. <!-- <div class="a_add_title" style="
  10316. display: flex;
  10317. flex-direction: row;
  10318. align-items: center;
  10319. justify-content: center;
  10320. ">
  10321. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10322. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  10323. </div> -->
  10324. <div class="a_addBox">
  10325. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10326. 题目内容
  10327. </div>
  10328. <div
  10329. class="a_add_box"
  10330. v-for="(item1, index1) in testJson.testCount"
  10331. :key="index1"
  10332. >
  10333. <div class="a_add_head">
  10334. <div style="display: flex">
  10335. <span class="askIndex">{{ index1 + 1 }}</span>
  10336. <div
  10337. v-if="testJson.testJson[index1].type == '1'"
  10338. style="margin-right: 5px; min-width: 70px"
  10339. >
  10340. (单选题)
  10341. </div>
  10342. <div
  10343. v-if="testJson.testJson[index1].type == '2'"
  10344. style="margin-right: 5px; min-width: 70px"
  10345. >
  10346. (多选题)
  10347. </div>
  10348. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10349. </div>
  10350. <img
  10351. v-if="testJson.testJson[index1].img"
  10352. :src="testJson.testJson[index1].img"
  10353. style="height: 300px; margin-top: 10px; max-width: 100%"
  10354. />
  10355. </div>
  10356. <div
  10357. class="timuImgBox"
  10358. v-if="
  10359. testJson.testJson[index1].timuList &&
  10360. testJson.testJson[index1].timuList.length
  10361. "
  10362. >
  10363. <div
  10364. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10365. :key="tIndex"
  10366. class="timuImg"
  10367. @click.stop="previewImg(timg.src)"
  10368. >
  10369. <img :src="timg.src" alt="" />
  10370. </div>
  10371. </div>
  10372. <div class="a_add_body">
  10373. <div class="a_add_input">
  10374. <el-radio-group
  10375. v-model="radio[index1]"
  10376. v-if="testJson.testJson[index1].type == '1'"
  10377. >
  10378. <div class="radioBox">
  10379. <el-radio
  10380. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10381. .checkList"
  10382. :key="checkIndex"
  10383. :label="checkIndex"
  10384. :disabled="isAnswer"
  10385. class="redioStyle"
  10386. >
  10387. <div
  10388. style="margin-right: 10px"
  10389. v-if="item2 && item2.imgType && item2.imgType == 1"
  10390. >
  10391. <div class="inImg" @click.stop="previewImg(item2.src)">
  10392. <img :src="item2.src" alt="" />
  10393. </div>
  10394. </div>
  10395. <span v-else v-html="item2"></span>
  10396. </el-radio>
  10397. </div>
  10398. </el-radio-group>
  10399. <el-checkbox-group
  10400. v-model="radio[index1]"
  10401. v-if="testJson.testJson[index1].type == '2'"
  10402. >
  10403. <div class="radioBox">
  10404. <el-checkbox
  10405. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10406. .checkList"
  10407. :key="checkIndex"
  10408. :label="checkIndex"
  10409. :disabled="isAnswer"
  10410. class="redioStyle"
  10411. >
  10412. <div
  10413. style="margin-right: 10px"
  10414. v-if="item2 && item2.imgType && item2.imgType == 1"
  10415. >
  10416. <div class="inImg" @click.stop="previewImg(item2.src)">
  10417. <img :src="item2.src" alt="" />
  10418. </div>
  10419. </div>
  10420. <span v-else v-html="item2"></span>
  10421. </el-checkbox>
  10422. </div>
  10423. </el-checkbox-group>
  10424. </div>
  10425. </div>
  10426. </div>
  10427. </div>
  10428. </div>
  10429. <span slot="footer" class="dialog-footer">
  10430. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  10431. >取 消</el-button
  10432. >
  10433. <el-button
  10434. type="primary"
  10435. @click="addStudentTest"
  10436. v-show="noteName == ''"
  10437. >确 定</el-button
  10438. >
  10439. </span>
  10440. </el-dialog>
  10441. <el-dialog
  10442. :title="noteName != '' ? noteName : '查看选择题'"
  10443. :visible.sync="dialogVisibleChoiceTeacher"
  10444. :append-to-body="true"
  10445. width="1000px"
  10446. :before-close="handleClose"
  10447. class="dialog_diy dialog_diy3"
  10448. >
  10449. <div>
  10450. <div class="w_name">
  10451. 学生姓名:<span>{{ sStudent.student }}</span>
  10452. </div>
  10453. <div class="a_addBox">
  10454. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10455. 题目内容
  10456. </div>
  10457. <div
  10458. class="a_add_box"
  10459. v-for="(item1, index1) in testJson.testCount"
  10460. :key="index1"
  10461. >
  10462. <div class="a_add_head">
  10463. <div style="display: flex">
  10464. <span class="askIndex">{{ index1 + 1 }}</span>
  10465. <div
  10466. v-if="testJson.testJson[index1].type == '1'"
  10467. style="margin-right: 5px; min-width: 70px"
  10468. >
  10469. (单选题)
  10470. </div>
  10471. <div
  10472. v-if="testJson.testJson[index1].type == '2'"
  10473. style="margin-right: 5px; min-width: 70px"
  10474. >
  10475. (多选题)
  10476. </div>
  10477. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10478. </div>
  10479. <img
  10480. v-if="testJson.testJson[index1].img"
  10481. :src="testJson.testJson[index1].img"
  10482. style="height: 300px; margin-top: 10px; max-width: 100%"
  10483. />
  10484. </div>
  10485. <div
  10486. class="timuImgBox"
  10487. v-if="
  10488. testJson.testJson[index1].timuList &&
  10489. testJson.testJson[index1].timuList.length
  10490. "
  10491. >
  10492. <div
  10493. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10494. :key="tIndex"
  10495. class="timuImg"
  10496. @click.stop="previewImg(timg.src)"
  10497. >
  10498. <img :src="timg.src" alt="" />
  10499. </div>
  10500. </div>
  10501. <div class="a_add_body">
  10502. <div class="a_add_input">
  10503. <el-radio-group
  10504. v-model="radio[index1]"
  10505. v-if="testJson.testJson[index1].type == '1'"
  10506. >
  10507. <div class="radioBox">
  10508. <el-radio
  10509. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10510. .checkList"
  10511. :key="checkIndex"
  10512. :label="checkIndex"
  10513. :disabled="isAnswer"
  10514. class="redioStyle"
  10515. >
  10516. <div
  10517. style="margin-right: 10px"
  10518. v-if="item2 && item2.imgType && item2.imgType == 1"
  10519. >
  10520. <div class="inImg" @click.stop="previewImg(item2.src)">
  10521. <img :src="item2.src" alt="" />
  10522. </div>
  10523. </div>
  10524. <span v-else v-html="item2"></span>
  10525. </el-radio>
  10526. </div>
  10527. </el-radio-group>
  10528. <el-checkbox-group
  10529. v-model="radio[index1]"
  10530. v-if="testJson.testJson[index1].type == '2'"
  10531. >
  10532. <div class="radioBox">
  10533. <el-checkbox
  10534. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10535. .checkList"
  10536. :key="checkIndex"
  10537. :label="checkIndex"
  10538. :disabled="isAnswer"
  10539. class="redioStyle"
  10540. >
  10541. <div
  10542. style="margin-right: 10px"
  10543. v-if="item2 && item2.imgType && item2.imgType == 1"
  10544. >
  10545. <div class="inImg" @click.stop="previewImg(item2.src)">
  10546. <img :src="item2.src" alt="" />
  10547. </div>
  10548. </div>
  10549. <span v-else v-html="item2"></span>
  10550. </el-checkbox>
  10551. </div>
  10552. </el-checkbox-group>
  10553. </div>
  10554. </div>
  10555. </div>
  10556. </div>
  10557. </div>
  10558. <span slot="footer" class="dialog-footer">
  10559. <el-button
  10560. @click="dialogVisibleChoiceTeacher = false"
  10561. v-show="noteName == ''"
  10562. >取 消</el-button
  10563. >
  10564. <el-button
  10565. type="primary"
  10566. @click="addStudentTestTeacher"
  10567. v-show="noteName == ''"
  10568. >确 定</el-button
  10569. >
  10570. </span>
  10571. </el-dialog>
  10572. <el-dialog
  10573. title="查看富文本"
  10574. :visible.sync="dialogVisible1"
  10575. :append-to-body="true"
  10576. width="500px"
  10577. :before-close="handleClose"
  10578. class="dialog_diy textCss"
  10579. >
  10580. <el-form style="font-size: 20px">
  10581. <el-form-item label="文本标题" class="textTitle">
  10582. <div style="font-size: 20px">{{ text.name }}</div>
  10583. </el-form-item>
  10584. <div>富文本内容</div>
  10585. <div
  10586. v-html="text.url"
  10587. style="font-size: 18px; padding: 40px 0 0 0"
  10588. ></div>
  10589. </el-form>
  10590. <span slot="footer" class="dialog-footer">
  10591. <el-button type="primary" @click="dialogVisible1 = false"
  10592. >确定</el-button
  10593. >
  10594. </span>
  10595. </el-dialog>
  10596. <el-dialog
  10597. title="文件预览"
  10598. :visible.sync="dialogVisible3"
  10599. width="50%"
  10600. :before-close="handleClose"
  10601. class="dialog_diy"
  10602. :class="{ fullStyle: full }"
  10603. >
  10604. <div slot="title" class="header-title">
  10605. <div style="color: #fff">文件预览</div>
  10606. <div style="position: absolute; top: 19px; right: 50px">
  10607. <img
  10608. src="../../assets/full.png"
  10609. style="height: 16px; cursor: pointer"
  10610. alt=""
  10611. @click="fullTools"
  10612. />
  10613. </div>
  10614. </div>
  10615. <pdf
  10616. v-if="showPDF"
  10617. :pdfUrl="pptImgUrl"
  10618. style="width: 100%; height: 520px; overflow: auto"
  10619. :class="{ fullStyle: full }"
  10620. ></pdf>
  10621. <iframe
  10622. v-else
  10623. :src="pptImgUrl"
  10624. frameborder="0"
  10625. width="100%"
  10626. height="600"
  10627. :class="{ fullStyle: full }"
  10628. ></iframe>
  10629. </el-dialog>
  10630. <el-dialog
  10631. title="文件预览"
  10632. :visible.sync="dialogVisible6"
  10633. width="50%"
  10634. :before-close="handleClose"
  10635. class="dialog_diy"
  10636. >
  10637. <iframe
  10638. :src="pptImgUrl1"
  10639. frameborder="0"
  10640. width="100%"
  10641. height="600"
  10642. ></iframe>
  10643. </el-dialog>
  10644. <el-dialog
  10645. title="提示"
  10646. :visible.sync="dialogVisible4"
  10647. :append-to-body="true"
  10648. width="800px"
  10649. :before-close="handleClose"
  10650. class="dialog_diy notice"
  10651. >
  10652. <div>此功能暂未开放!</div>
  10653. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  10654. </el-dialog>
  10655. <el-dialog
  10656. title="问答"
  10657. :visible.sync="answerDialogVisible"
  10658. :append-to-body="true"
  10659. width="800px"
  10660. :before-close="handleClose"
  10661. class="dialog_diy"
  10662. >
  10663. <div>
  10664. <div
  10665. style="
  10666. display: flex;
  10667. flex-wrap: nowrap;
  10668. flex-direction: column;
  10669. position: relative;
  10670. "
  10671. >
  10672. <div class="queTop" style="padding: 20px 0 20px 0">
  10673. <div class="question">
  10674. <img src="../../assets/icon/question.png" alt />
  10675. </div>
  10676. <div class="queTitle">
  10677. <div style="width: 90px; min-width: 90px">提问:</div>
  10678. <div>{{ answerQ }}</div>
  10679. </div>
  10680. </div>
  10681. <div class="ediBottom">
  10682. <textarea
  10683. rows="6"
  10684. class="binfo_input"
  10685. cols
  10686. style="width: 95%; height: 120px"
  10687. v-model="questionAnswer"
  10688. ></textarea>
  10689. </div>
  10690. </div>
  10691. </div>
  10692. <div slot="footer">
  10693. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10694. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10695. </div>
  10696. </el-dialog>
  10697. <el-dialog
  10698. title="问答"
  10699. :visible.sync="answerDialogVisibleTeacher"
  10700. :append-to-body="true"
  10701. width="800px"
  10702. :before-close="handleClose"
  10703. class="dialog_diy"
  10704. >
  10705. <div>
  10706. <div class="w_name">
  10707. 学生姓名:<span>{{ sStudent.student }}</span>
  10708. </div>
  10709. <div
  10710. style="
  10711. display: flex;
  10712. flex-wrap: nowrap;
  10713. flex-direction: column;
  10714. position: relative;
  10715. "
  10716. >
  10717. <div class="queTop" style="padding: 20px 0 20px 0">
  10718. <div class="question">
  10719. <img src="../../assets/icon/question.png" alt />
  10720. </div>
  10721. <div class="queTitle">
  10722. <div style="width: 90px; min-width: 90px">提问:</div>
  10723. <div>{{ answerQ }}</div>
  10724. </div>
  10725. </div>
  10726. <div class="ediBottom">
  10727. <textarea
  10728. rows="6"
  10729. class="binfo_input"
  10730. cols
  10731. style="width: 95%; height: 120px"
  10732. v-model="questionAnswer"
  10733. ></textarea>
  10734. </div>
  10735. </div>
  10736. </div>
  10737. <div slot="footer">
  10738. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10739. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10740. </div>
  10741. </el-dialog>
  10742. <el-dialog
  10743. title="倒计时"
  10744. :visible.sync="timeDialogVisible"
  10745. :append-to-body="true"
  10746. width="800px"
  10747. :before-close="handleClose"
  10748. class="dialog_diy"
  10749. >
  10750. <div>
  10751. <div style="margin-bottom: 20px; color: #999">
  10752. 提示:点击“+”或“-”修改倒计时时长。
  10753. </div>
  10754. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10755. </div>
  10756. <div slot="footer">
  10757. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10758. </div>
  10759. </el-dialog>
  10760. <el-dialog
  10761. title="权限设置"
  10762. :visible.sync="juriVisible"
  10763. :append-to-body="true"
  10764. width="400px"
  10765. :before-close="handleClose"
  10766. class="dialog_diy"
  10767. >
  10768. <div>
  10769. <div class="open_box">
  10770. <div class="switch_box">
  10771. <span>允许学生查看所有作业</span>
  10772. <el-switch
  10773. v-model="sIsOpen"
  10774. active-text=""
  10775. class="switchCss"
  10776. @change="updateSLook"
  10777. ></el-switch>
  10778. </div>
  10779. <div
  10780. class="switch_box"
  10781. v-if="
  10782. courseDetail.userid == userid ||
  10783. (courseDetail.course_teacher &&
  10784. courseDetail.course_teacher.indexOf(userid) != -1)
  10785. "
  10786. >
  10787. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10788. <span>禁止学生查看所有阶段</span>
  10789. <el-switch
  10790. v-model="IsLookOpen"
  10791. active-text=""
  10792. class="switchCss"
  10793. @change="updateLookOpen"
  10794. ></el-switch>
  10795. </div>
  10796. <div class="switch_box" v-if="courseDetail.userid == userid">
  10797. <span>开启跟随模式</span>
  10798. <el-switch
  10799. v-model="IsFollow"
  10800. active-text=""
  10801. class="switchCss"
  10802. @change="updateFollow"
  10803. ></el-switch>
  10804. </div>
  10805. </div>
  10806. </div>
  10807. <div slot="footer">
  10808. <el-button
  10809. style="background: #409efe; color: #fff"
  10810. @click="juriVisible = false"
  10811. >关 闭</el-button
  10812. >
  10813. </div>
  10814. </el-dialog>
  10815. <el-dialog
  10816. title="查看视频"
  10817. :visible.sync="videoVisible"
  10818. :append-to-body="true"
  10819. width="1000px"
  10820. :before-close="handleClose"
  10821. class="dialog_diy1"
  10822. >
  10823. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10824. <video-player
  10825. class="video-player vjs-custom-skin"
  10826. :playsinline="true"
  10827. :options="videoDetail"
  10828. @play="onPlayerPlay($event)"
  10829. style="width: 100%; height: 100%"
  10830. ></video-player>
  10831. </div>
  10832. <div slot="footer">
  10833. <el-button
  10834. style="background: #409efe; color: #fff"
  10835. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10836. >
  10837. 关 闭</el-button
  10838. >
  10839. </div>
  10840. </el-dialog>
  10841. <el-dialog
  10842. title="查看详情"
  10843. :visible.sync="commentDialogVisible"
  10844. :append-to-body="true"
  10845. width="800px"
  10846. :before-close="handleClose"
  10847. class="dialog_diy"
  10848. >
  10849. <div class="commentTop">
  10850. <div class="studentDetail">
  10851. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10852. <div class="nameAndTime">
  10853. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10854. <div>{{ commentDetail.time }}</div>
  10855. </div>
  10856. <div
  10857. class="returnBtn"
  10858. style="margin-left: auto; width: 80px"
  10859. v-if="
  10860. commentDetail.works &&
  10861. commentDetail.type == 0 &&
  10862. (tType == 1 || tType == 4)
  10863. "
  10864. @click="
  10865. showPicturePaint(
  10866. commentDetail.img ? commentDetail.img : commentDetail.works
  10867. )
  10868. "
  10869. >
  10870. 教师批注
  10871. </div>
  10872. </div>
  10873. <div
  10874. class="worksAnswer"
  10875. v-if="commentDetail.works && commentDetail.type == 2"
  10876. >
  10877. {{ JSON.parse(commentDetail.works)[0].answer }}
  10878. </div>
  10879. <div
  10880. class="worksAnswer"
  10881. v-if="commentDetail.works && commentDetail.type == 1"
  10882. >
  10883. <img
  10884. src="../../assets/teacherWork.png"
  10885. v-if="commentDetail.ateacher"
  10886. class="w_teachert"
  10887. />
  10888. <pdf
  10889. v-if="showPDF"
  10890. :pdfUrl="pptImgUrl"
  10891. style="width: 100%; height: 520px; overflow: auto"
  10892. :class="{ fullStyle: full }"
  10893. ></pdf>
  10894. <iframe
  10895. v-else
  10896. :src="pptImgUrl"
  10897. frameborder="0"
  10898. width="100%"
  10899. height="600"
  10900. :class="{ fullStyle: full }"
  10901. ></iframe>
  10902. </div>
  10903. <div
  10904. class="worksAnswer"
  10905. v-if="commentDetail.works && commentDetail.type == 0"
  10906. >
  10907. <img
  10908. src="../../assets/teacherWork.png"
  10909. v-if="commentDetail.ateacher"
  10910. class="w_teachert"
  10911. style="right: 105px"
  10912. />
  10913. <img
  10914. :src="commentDetail.works"
  10915. alt=""
  10916. @click="previewImg(commentDetail.works)"
  10917. />
  10918. </div>
  10919. <div
  10920. class="worksAnswer"
  10921. v-if="commentDetail.works && commentDetail.type == 3"
  10922. >
  10923. <img
  10924. src="../../assets/teacherWork.png"
  10925. v-if="commentDetail.ateacher"
  10926. class="w_teachert"
  10927. />
  10928. <video-player
  10929. class="video-player vjs-custom-skin"
  10930. :playsinline="true"
  10931. :options="videoDetail"
  10932. @play="onPlayerPlay($event)"
  10933. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10934. ></video-player>
  10935. </div>
  10936. <div
  10937. class="worksAnswer"
  10938. v-if="commentDetail.works && commentDetail.type == 10"
  10939. >
  10940. <div class="cont" v-html="commentDetail.works.text"></div>
  10941. </div>
  10942. <div
  10943. v-if="commentDetail.works && commentDetail.type == 12"
  10944. >
  10945. <!-- class="worksAnswer codeFileBox" -->
  10946. <!-- @click="downloadFile(commentDetail.works)" -->
  10947. <!-- <img src="../../assets/icon/codeFile.png" />
  10948. <div>点击下载文件</div> -->
  10949. <div style="margin-top: 15px;" v-html="commentDetail.works"></div>
  10950. </div>
  10951. <div
  10952. class="worksAnswer codeFileBox"
  10953. v-if="commentDetail.works && commentDetail.type == 15"
  10954. @click="
  10955. openCocoPi(
  10956. 57,
  10957. commentIndexJson.toolIndex,
  10958. commentDetail.userid,
  10959. commentDetail.sName
  10960. )
  10961. "
  10962. >
  10963. <img src="../../assets/icon/codeFile.png" />
  10964. <div>点击打开CocoPi</div>
  10965. </div>
  10966. <div
  10967. class="worksAnswer"
  10968. v-if="commentDetail.works && commentDetail.type == 13"
  10969. >
  10970. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10971. </div>
  10972. <div
  10973. class="worksAnswer"
  10974. v-if="commentDetail.works && commentDetail.type == 4"
  10975. >
  10976. <div class="evalCss">
  10977. <div class="nav">请选择星星进行评分</div>
  10978. <div class="middleBox" v-if="eScore.eStar">
  10979. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10980. <div class="nameAndrate">
  10981. <div>{{ e.value }}</div>
  10982. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10983. </div>
  10984. <div v-if="e.detail">{{ e.detail }}</div>
  10985. </div>
  10986. <div class="bz">
  10987. <textarea
  10988. disabled
  10989. rows="4"
  10990. class="pj"
  10991. style="
  10992. padding: 10px 5px;
  10993. width: 70%;
  10994. background: #f7f6f9;
  10995. font-size: 14px;
  10996. text-indent: 10px;
  10997. color: #000;
  10998. "
  10999. cols
  11000. v-model="eScore.eBzText"
  11001. placeholder="请输入评价内容..."
  11002. ></textarea>
  11003. </div>
  11004. </div>
  11005. </div>
  11006. </div>
  11007. <div class="comment">
  11008. <div class="commentList">
  11009. <div class="commentImg">
  11010. <img
  11011. @click="
  11012. isLikes(
  11013. commentDetail.wid,
  11014. userid,
  11015. 1,
  11016. null,
  11017. commentDetail.isLikes,
  11018. commentDetail.sName
  11019. )
  11020. "
  11021. :src="commentDetail.isLikes == true ? likes : noLikes"
  11022. alt=""
  11023. />
  11024. </div>
  11025. <div>{{ commentDetail.likesCount }}</div>
  11026. </div>
  11027. <div class="commentList">
  11028. <div class="commentImg">
  11029. <img src="../../assets/icon/comment/comment.png" alt="" />
  11030. </div>
  11031. <div>{{ commentDetail.commentCount }}</div>
  11032. </div>
  11033. </div>
  11034. <div class="drawPBox" v-if="commentDetail.img">
  11035. <span>教师批注</span>
  11036. <img
  11037. :src="commentDetail.img"
  11038. alt=""
  11039. @click="previewImg(commentDetail.img)"
  11040. />
  11041. <span
  11042. class="deleteImg"
  11043. v-if="tType == 1 || tType == 4"
  11044. @click.stop="deletePicturePaint(commentDetail.wid)"
  11045. style="
  11046. font-size: 14px;
  11047. width: auto !important;
  11048. color: #b4b4b4;
  11049. top: unset;
  11050. bottom: 0;
  11051. border: none;
  11052. padding: 0;
  11053. height: auto !important;
  11054. margin: 0;
  11055. "
  11056. >删除</span
  11057. >
  11058. </div>
  11059. </div>
  11060. <div class="commentBox">
  11061. <div class="pl">评论:</div>
  11062. <div style="max-height: 200px; overflow: auto">
  11063. <div
  11064. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  11065. style="padding: 10px 0 0 0"
  11066. >
  11067. <div
  11068. class="studentDetail"
  11069. style="padding-top: 10px"
  11070. v-for="(co, coIndex) in commentDetail.commentJson"
  11071. :key="coIndex"
  11072. >
  11073. <div class="tx" style="min-width: 50px">
  11074. <img src="../../assets/avatar.png" alt="" />
  11075. </div>
  11076. <div class="plPerson">
  11077. <div class="plName">
  11078. <div>{{ co.commentPeople }}</div>
  11079. <div style="margin-left: 5px">
  11080. {{ co.commentTime }}
  11081. </div>
  11082. <div
  11083. class="deleteComment"
  11084. v-if="userid == co.userid"
  11085. @click="deleteComment(co.wid)"
  11086. >
  11087. 删除
  11088. </div>
  11089. </div>
  11090. <div class="plContent">{{ co.commentText }}</div>
  11091. </div>
  11092. </div>
  11093. </div>
  11094. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  11095. </div>
  11096. </div>
  11097. <div style="margin-top: 10px">
  11098. <div class="displayBox">
  11099. <div
  11100. style="
  11101. color: #556db4;
  11102. font-size: 14px;
  11103. font-weight: bold;
  11104. padding-bottom: 10px;
  11105. "
  11106. >
  11107. 评价
  11108. </div>
  11109. <div class="easy_comment" v-if="false">
  11110. <div
  11111. v-for="(p, pIndex) in PlTextList"
  11112. :key="pIndex"
  11113. @click="fastText(p, 1)"
  11114. >
  11115. {{ p }}
  11116. </div>
  11117. </div>
  11118. </div>
  11119. <div>
  11120. <textarea
  11121. rows="3"
  11122. class="pj"
  11123. style="padding: 10px 5px"
  11124. cols
  11125. v-model="commentText"
  11126. placeholder="请输入评论"
  11127. ></textarea>
  11128. </div>
  11129. </div>
  11130. <div slot="footer">
  11131. <el-button
  11132. @click="
  11133. (commentDialogVisible = false),
  11134. (commentIndexJson = {}),
  11135. videoDetail.sources && videoDetail.sources[0]
  11136. ? (videoDetail.sources[0].src = '')
  11137. : ''
  11138. "
  11139. >取 消</el-button
  11140. >
  11141. <el-button
  11142. type="primary"
  11143. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  11144. >确 定</el-button
  11145. >
  11146. </div>
  11147. </el-dialog>
  11148. <el-dialog
  11149. title="查看文档"
  11150. :visible.sync="fullDialogVisible"
  11151. :append-to-body="true"
  11152. width="100%"
  11153. :before-close="handleClose"
  11154. :show-close="false"
  11155. class="dialog_diy full_diy"
  11156. :class="{ full_diy2: fulltype == 3 }"
  11157. >
  11158. <div slot="title" class="header-title">
  11159. <div style="color: #fff">查看文档</div>
  11160. <div
  11161. @click="fullDialogVisible = false"
  11162. style="
  11163. cursor: pointer;
  11164. position: absolute;
  11165. top: 20px;
  11166. right: 20px;
  11167. color: #fff;
  11168. "
  11169. >
  11170. 退出全屏
  11171. </div>
  11172. </div>
  11173. <div style="height: 100%">
  11174. <div
  11175. class="wheel"
  11176. v-if="
  11177. fulltype == 2 &&
  11178. fullUrl.indexOf(
  11179. 'https://view.officeapps.live.com/op/view.aspx?src='
  11180. ) != -1
  11181. "
  11182. style="width: 95%; margin: 0 auto"
  11183. >
  11184. <iframe
  11185. style="width: 100%; height: 100%; border: none"
  11186. :src="fullUrl"
  11187. ></iframe>
  11188. </div>
  11189. <iframe
  11190. v-else-if="fulltype == 2"
  11191. style="width: 100%; height: 100%; border: none"
  11192. :src="fullUrl"
  11193. security="restricted"
  11194. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  11195. ></iframe>
  11196. <pdf
  11197. v-else-if="fulltype == 3"
  11198. :pdfUrl="fullUrl"
  11199. style="width: 100%; height: 100%; overflow: auto"
  11200. ></pdf>
  11201. <div
  11202. class="wheel"
  11203. v-if="fulltype == 1"
  11204. style="
  11205. box-shadow: 0 0 6px 1px #f2f2f2;
  11206. width: 100%;
  11207. background: #f1f1f1;
  11208. "
  11209. >
  11210. <div class="title" style="width: 100%; box-sizing: border-box">
  11211. 查看文档
  11212. </div>
  11213. <el-form class="textBox" style="height: 90%">
  11214. <el-form-item class="textTitle">
  11215. <div style="font-size: 22px">
  11216. {{ fullUrl.name }}
  11217. </div>
  11218. </el-form-item>
  11219. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  11220. <div
  11221. v-html="fullUrl.url"
  11222. class="textContent"
  11223. style="height: auto"
  11224. ></div>
  11225. </el-form>
  11226. </div>
  11227. </div>
  11228. <!-- <div slot="footer">
  11229. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  11230. </div> -->
  11231. </el-dialog>
  11232. <el-dialog
  11233. title="个人评价"
  11234. :visible.sync="studentEvalDialogVisible"
  11235. :append-to-body="true"
  11236. width="800px"
  11237. :before-close="handleClose"
  11238. class="dialog_diy"
  11239. >
  11240. <div class="evalCss">
  11241. <div class="nav">请选择星星进行评分</div>
  11242. <div class="middleBox" v-if="eScore.eStar">
  11243. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11244. <div class="nameAndrate">
  11245. <div>{{ e.value }}</div>
  11246. <el-rate
  11247. v-model="eScore.eStar[eIndex]"
  11248. :disabled="isStar"
  11249. ></el-rate>
  11250. </div>
  11251. <div v-if="e.detail">{{ e.detail }}</div>
  11252. </div>
  11253. <div class="easy_comment" v-if="false">
  11254. <div
  11255. v-for="(p, pIndex) in PlTextList"
  11256. :key="pIndex"
  11257. @click="fastText(p, 2)"
  11258. >
  11259. {{ p }}
  11260. </div>
  11261. </div>
  11262. <div class="bz">
  11263. <textarea
  11264. :disabled="isStar"
  11265. rows="4"
  11266. class="pj"
  11267. style="
  11268. padding: 10px 5px;
  11269. width: 70%;
  11270. background: #f7f6f9;
  11271. font-size: 14px;
  11272. text-indent: 10px;
  11273. "
  11274. cols
  11275. v-model="eScore.eBzText"
  11276. placeholder="请输入评价内容..."
  11277. ></textarea>
  11278. </div>
  11279. </div>
  11280. </div>
  11281. <div slot="footer">
  11282. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  11283. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  11284. >确 定</el-button
  11285. >
  11286. </div>
  11287. </el-dialog>
  11288. <el-dialog
  11289. title="个人评价"
  11290. :visible.sync="studentEvalDialogVisibleTeacher"
  11291. :append-to-body="true"
  11292. width="800px"
  11293. :before-close="handleClose"
  11294. class="dialog_diy"
  11295. >
  11296. <div class="w_name">
  11297. 学生姓名:<span>{{ sStudent.student }}</span>
  11298. </div>
  11299. <div class="evalCss">
  11300. <div class="nav">请选择星星进行评分</div>
  11301. <div class="middleBox" v-if="eScore.eStar">
  11302. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11303. <div class="nameAndrate">
  11304. <div>{{ e.value }}</div>
  11305. <el-rate
  11306. v-model="eScore.eStar[eIndex]"
  11307. :disabled="isStar"
  11308. ></el-rate>
  11309. </div>
  11310. <div v-if="e.detail">{{ e.detail }}</div>
  11311. </div>
  11312. <div class="easy_comment" v-if="false">
  11313. <div
  11314. v-for="(p, pIndex) in PlTextList"
  11315. :key="pIndex"
  11316. @click="fastText(p, 2)"
  11317. >
  11318. {{ p }}
  11319. </div>
  11320. </div>
  11321. <div class="bz">
  11322. <textarea
  11323. :disabled="isStar"
  11324. rows="4"
  11325. class="pj"
  11326. style="
  11327. padding: 10px 5px;
  11328. width: 70%;
  11329. background: #f7f6f9;
  11330. font-size: 14px;
  11331. text-indent: 10px;
  11332. "
  11333. cols
  11334. v-model="eScore.eBzText"
  11335. placeholder="请输入评价内容..."
  11336. ></textarea>
  11337. </div>
  11338. </div>
  11339. </div>
  11340. <div slot="footer">
  11341. <el-button @click="studentEvalDialogVisibleTeacher = false"
  11342. >取 消</el-button
  11343. >
  11344. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  11345. >确 定</el-button
  11346. >
  11347. </div>
  11348. </el-dialog>
  11349. <el-dialog
  11350. title="选择匹配"
  11351. :visible.sync="dialogVisibleSelect"
  11352. :append-to-body="true"
  11353. width="90%"
  11354. :before-close="handleClose"
  11355. class="dialog_diy dialog_diy3"
  11356. >
  11357. <div v-if="selectJson">
  11358. <div class="select_box2">
  11359. <div class="select_box2_title">
  11360. <div>选择匹配</div>
  11361. <div>请选择对应的答案进行答题!</div>
  11362. </div>
  11363. <div class="select_box2_box">
  11364. <div class="select_box2_img">
  11365. <img
  11366. :src="selectJson.url"
  11367. @click="previewImg(selectJson.url)"
  11368. alt=""
  11369. />
  11370. </div>
  11371. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11372. <div style="padding-top: 15px">
  11373. <div class="select_answer_title" v-if="isSelect">
  11374. {{ selectAnswer.stu }}
  11375. </div>
  11376. <div class="select_answer_title" v-else>
  11377. 根据题目选择对应答案
  11378. </div>
  11379. <div
  11380. class="select_box2_answer_box"
  11381. v-for="(item2, checkIndex) in selectJson.select"
  11382. :key="checkIndex"
  11383. >
  11384. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11385. <el-select
  11386. :disabled="isSelect"
  11387. v-model="selectAnswer.answer[checkIndex]"
  11388. placeholder="请选择正确答案"
  11389. >
  11390. <el-option
  11391. v-for="(e, eIndex) in selectJson.select"
  11392. :key="eIndex"
  11393. :label="e"
  11394. :value="eIndex"
  11395. >
  11396. </el-option>
  11397. </el-select>
  11398. </div>
  11399. </div>
  11400. <div
  11401. class="rightAnswerCss"
  11402. v-if="isSelect && (tType == 1 || tType == 4)"
  11403. >
  11404. <div
  11405. v-for="(a, aIndex) in selectJson.answer"
  11406. :key="aIndex"
  11407. class="rightAnswer"
  11408. >
  11409. <div
  11410. v-if="selectAnswer.answer[aIndex] === a"
  11411. style="color: #767de1"
  11412. >
  11413. 回答正确
  11414. </div>
  11415. <div v-else>回答错误</div>
  11416. <div
  11417. style="margin-left: 10px"
  11418. v-if="selectAnswer.answer[aIndex] !== a"
  11419. >
  11420. 正确答案:
  11421. </div>
  11422. <div
  11423. :class="
  11424. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11425. "
  11426. >
  11427. {{ selectJson.select[a] }}
  11428. </div>
  11429. </div>
  11430. </div>
  11431. </div>
  11432. <div class="upAnswerCss">
  11433. <el-button
  11434. type="primary"
  11435. @click="addSelectAnswer"
  11436. v-if="!isSelect"
  11437. >提交答案</el-button
  11438. >
  11439. </div>
  11440. </div>
  11441. </div>
  11442. </div>
  11443. </el-dialog>
  11444. <el-dialog
  11445. title="选择匹配"
  11446. :visible.sync="dialogVisibleSelectTeacher"
  11447. :append-to-body="true"
  11448. width="90%"
  11449. :before-close="handleClose"
  11450. class="dialog_diy dialog_diy3"
  11451. >
  11452. <div v-if="selectJson">
  11453. <div class="w_name">
  11454. 学生姓名:<span>{{ sStudent.student }}</span>
  11455. </div>
  11456. <div class="select_box2">
  11457. <div class="select_box2_title">
  11458. <div>选择匹配</div>
  11459. <div>请选择对应的答案进行答题!</div>
  11460. </div>
  11461. <div class="select_box2_box">
  11462. <div class="select_box2_img">
  11463. <img
  11464. :src="selectJson.url"
  11465. @click="previewImg(selectJson.url)"
  11466. alt=""
  11467. />
  11468. </div>
  11469. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11470. <div style="padding-top: 15px">
  11471. <div class="select_answer_title" v-if="isSelect">
  11472. {{ selectAnswer.stu }}
  11473. </div>
  11474. <div class="select_answer_title" v-else>
  11475. 根据题目选择对应答案
  11476. </div>
  11477. <div
  11478. class="select_box2_answer_box"
  11479. v-for="(item2, checkIndex) in selectJson.select"
  11480. :key="checkIndex"
  11481. >
  11482. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11483. <el-select
  11484. :disabled="isSelect"
  11485. v-model="selectAnswer.answer[checkIndex]"
  11486. placeholder="请选择正确答案"
  11487. >
  11488. <el-option
  11489. v-for="(e, eIndex) in selectJson.select"
  11490. :key="eIndex"
  11491. :label="e"
  11492. :value="eIndex"
  11493. >
  11494. </el-option>
  11495. </el-select>
  11496. </div>
  11497. </div>
  11498. <div
  11499. class="rightAnswerCss"
  11500. v-if="isSelect && (tType == 1 || tType == 4)"
  11501. >
  11502. <div
  11503. v-for="(a, aIndex) in selectJson.answer"
  11504. :key="aIndex"
  11505. class="rightAnswer"
  11506. >
  11507. <div
  11508. v-if="selectAnswer.answer[aIndex] === a"
  11509. style="color: #767de1"
  11510. >
  11511. 回答正确
  11512. </div>
  11513. <div v-else>回答错误</div>
  11514. <div
  11515. style="margin-left: 10px"
  11516. v-if="selectAnswer.answer[aIndex] !== a"
  11517. >
  11518. 正确答案:
  11519. </div>
  11520. <div
  11521. :class="
  11522. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11523. "
  11524. >
  11525. {{ selectJson.select[a] }}
  11526. </div>
  11527. </div>
  11528. </div>
  11529. </div>
  11530. <div class="upAnswerCss">
  11531. <el-button
  11532. type="primary"
  11533. @click="addSelectAnswerTeacher"
  11534. v-if="!isSelect"
  11535. >提交答案</el-button
  11536. >
  11537. </div>
  11538. </div>
  11539. </div>
  11540. </div>
  11541. </el-dialog>
  11542. <el-dialog
  11543. title="教师评分"
  11544. :visible.sync="dialogVisibleScore"
  11545. :append-to-body="true"
  11546. width="800px"
  11547. :before-close="handleClose"
  11548. class="dialog_diy"
  11549. >
  11550. <div>
  11551. <div class="studentDetail">
  11552. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  11553. <div class="nameAndTime">
  11554. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  11555. <div>{{ commentDetail.time }}</div>
  11556. </div>
  11557. </div>
  11558. <div
  11559. class="worksAnswer"
  11560. v-if="commentDetail.works && commentDetail.type == 2"
  11561. >
  11562. {{ JSON.parse(commentDetail.works)[0].answer }}
  11563. </div>
  11564. <div
  11565. class="worksAnswer"
  11566. v-if="commentDetail.works && commentDetail.type == 1"
  11567. >
  11568. <pdf
  11569. v-if="showPDF"
  11570. :pdfUrl="pptImgUrl"
  11571. style="width: 100%; height: 520px; overflow: auto"
  11572. :class="{ fullStyle: full }"
  11573. ></pdf>
  11574. <iframe
  11575. v-else
  11576. :src="pptImgUrl"
  11577. frameborder="0"
  11578. width="100%"
  11579. height="600"
  11580. :class="{ fullStyle: full }"
  11581. ></iframe>
  11582. </div>
  11583. <div
  11584. class="worksAnswer"
  11585. v-if="commentDetail.works && commentDetail.type == 0"
  11586. >
  11587. <img
  11588. :src="commentDetail.works"
  11589. alt=""
  11590. @click="previewImg(commentDetail.works)"
  11591. />
  11592. </div>
  11593. <div
  11594. class="worksAnswer"
  11595. v-if="commentDetail.works && commentDetail.type == 3"
  11596. >
  11597. <video-player
  11598. class="video-player vjs-custom-skin"
  11599. :playsinline="true"
  11600. :options="videoDetail"
  11601. @play="onPlayerPlay($event)"
  11602. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  11603. ></video-player>
  11604. </div>
  11605. <div
  11606. class="worksAnswer codeFileBox"
  11607. v-if="commentDetail.works && commentDetail.type == 12"
  11608. @click="downloadFile(commentDetail.works)"
  11609. >
  11610. <img src="../../assets/icon/codeFile.png" />
  11611. <div>点击下载文件</div>
  11612. </div>
  11613. <div
  11614. class="worksAnswer codeFileBox"
  11615. v-if="commentDetail.works && commentDetail.type == 15"
  11616. @click="
  11617. openCocoPi(
  11618. 57,
  11619. commentIndexJson.toolIndex,
  11620. commentDetail.userid,
  11621. commentDetail.sName
  11622. )
  11623. "
  11624. >
  11625. <img src="../../assets/icon/codeFile.png" />
  11626. <div>点击打开CocoPi</div>
  11627. </div>
  11628. <div
  11629. class="worksAnswer"
  11630. v-if="commentDetail.works && commentDetail.type == 13"
  11631. >
  11632. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11633. </div>
  11634. <div class="scoreBox">
  11635. <span class="t">请输入分数</span>
  11636. <el-input-number
  11637. :disabled="courseDetail.userid != userid"
  11638. v-model="wScore"
  11639. :controls="false"
  11640. :min="0"
  11641. :max="100"
  11642. ></el-input-number>
  11643. </div>
  11644. <div class="scoreDetailBox">
  11645. <span class="t">评分评论</span>
  11646. <el-input
  11647. type="textarea"
  11648. :rows="5"
  11649. :disabled="courseDetail.userid != userid"
  11650. resize="none"
  11651. v-model="scoreDetail"
  11652. placeholder="请输入对学生的评价"
  11653. >
  11654. </el-input>
  11655. </div>
  11656. </div>
  11657. <span slot="footer" class="dialog-footer">
  11658. <el-button
  11659. @click="
  11660. (dialogVisibleScore = false),
  11661. (commentIndexJson = {}),
  11662. videoDetail.sources && videoDetail.sources[0]
  11663. ? (videoDetail.sources[0].src = '')
  11664. : ''
  11665. "
  11666. >取 消</el-button
  11667. >
  11668. <el-button
  11669. type="primary"
  11670. v-if="courseDetail.userid == userid"
  11671. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11672. >确 定
  11673. </el-button>
  11674. </span>
  11675. </el-dialog>
  11676. <el-dialog
  11677. title="排序"
  11678. :visible.sync="dialogVisibleSentence"
  11679. :append-to-body="true"
  11680. width="1000px"
  11681. :before-close="handleClose"
  11682. class="dialog_diy dialog_diy3"
  11683. >
  11684. <div>
  11685. <div class="sentenBox">
  11686. <div
  11687. v-for="(st, stIndex) in sentenceList"
  11688. :key="stIndex"
  11689. style="padding-bottom: 20px"
  11690. >
  11691. <div
  11692. style="padding: 15px 0 10px 20px"
  11693. class="sentenceTitle"
  11694. :index="stIndex + 1"
  11695. >
  11696. 题目{{ stIndex + 1 }}:请选择正确顺序
  11697. </div>
  11698. <div class="cardList" v-if="st.chooseSenList">
  11699. <div class="cardBox">
  11700. <div
  11701. v-for="(r, rIndex) in st.chooseSenList"
  11702. :key="rIndex"
  11703. @click="returnCard(r, stIndex, rIndex)"
  11704. >
  11705. <el-tooltip
  11706. class="item"
  11707. effect="light"
  11708. :content="r"
  11709. placement="top"
  11710. v-if="r != '' && r != undefined"
  11711. >
  11712. <div
  11713. :class="{
  11714. isCard: r,
  11715. isChooseCard: r == '' || r == undefined,
  11716. }"
  11717. >
  11718. <div>{{ r }}</div>
  11719. </div>
  11720. </el-tooltip>
  11721. <div
  11722. :class="{
  11723. isCard: r,
  11724. isChooseCard: r == '' || r == undefined,
  11725. }"
  11726. v-else
  11727. >
  11728. <div>{{ r }}</div>
  11729. </div>
  11730. </div>
  11731. </div>
  11732. </div>
  11733. <div class="cardList" v-if="st.addChangeSen">
  11734. <div class="cardBox">
  11735. <div
  11736. v-for="(s, sIndex) in st.addChangeSen"
  11737. :key="sIndex"
  11738. @click="setRightAnswer(s, stIndex, sIndex)"
  11739. >
  11740. <el-tooltip
  11741. class="item"
  11742. effect="light"
  11743. :content="s"
  11744. placement="top"
  11745. v-if="s != '' && s != undefined"
  11746. >
  11747. <div
  11748. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11749. >
  11750. <div>{{ s }}</div>
  11751. </div>
  11752. </el-tooltip>
  11753. <div
  11754. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11755. v-else
  11756. >
  11757. <div>{{ s }}</div>
  11758. </div>
  11759. </div>
  11760. </div>
  11761. </div>
  11762. </div>
  11763. </div>
  11764. </div>
  11765. <span slot="footer" class="dialog-footer">
  11766. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11767. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11768. </span>
  11769. </el-dialog>
  11770. <el-dialog
  11771. title="排序"
  11772. :visible.sync="dialogVisibleSentenceTeacher"
  11773. :append-to-body="true"
  11774. width="1000px"
  11775. :before-close="handleClose"
  11776. class="dialog_diy dialog_diy3"
  11777. >
  11778. <div>
  11779. <div class="w_name">
  11780. 学生姓名:<span>{{ sStudent.student }}</span>
  11781. </div>
  11782. <div class="sentenBox">
  11783. <div
  11784. v-for="(st, stIndex) in sentenceList"
  11785. :key="stIndex"
  11786. style="padding-bottom: 20px"
  11787. >
  11788. <div
  11789. style="padding: 15px 0 10px 20px"
  11790. class="sentenceTitle"
  11791. :index="stIndex + 1"
  11792. >
  11793. 题目{{ stIndex + 1 }}:请选择正确顺序
  11794. </div>
  11795. <div class="cardList" v-if="st.chooseSenList">
  11796. <div class="cardBox">
  11797. <div
  11798. v-for="(r, rIndex) in st.chooseSenList"
  11799. :key="rIndex"
  11800. @click="returnCard(r, stIndex, rIndex)"
  11801. >
  11802. <el-tooltip
  11803. class="item"
  11804. effect="light"
  11805. :content="r"
  11806. placement="top"
  11807. v-if="r != '' && r != undefined"
  11808. >
  11809. <div
  11810. :class="{
  11811. isCard: r,
  11812. isChooseCard: r == '' || r == undefined,
  11813. }"
  11814. >
  11815. <div>{{ r }}</div>
  11816. </div>
  11817. </el-tooltip>
  11818. <div
  11819. :class="{
  11820. isCard: r,
  11821. isChooseCard: r == '' || r == undefined,
  11822. }"
  11823. v-else
  11824. >
  11825. <div>{{ r }}</div>
  11826. </div>
  11827. </div>
  11828. </div>
  11829. </div>
  11830. <div class="cardList" v-if="st.addChangeSen">
  11831. <div class="cardBox">
  11832. <div
  11833. v-for="(s, sIndex) in st.addChangeSen"
  11834. :key="sIndex"
  11835. @click="setRightAnswer(s, stIndex, sIndex)"
  11836. >
  11837. <el-tooltip
  11838. class="item"
  11839. effect="light"
  11840. :content="s"
  11841. placement="top"
  11842. v-if="s != '' && s != undefined"
  11843. >
  11844. <div
  11845. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11846. >
  11847. <div>{{ s }}</div>
  11848. </div>
  11849. </el-tooltip>
  11850. <div
  11851. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11852. v-else
  11853. >
  11854. <div>{{ s }}</div>
  11855. </div>
  11856. </div>
  11857. </div>
  11858. </div>
  11859. </div>
  11860. </div>
  11861. </div>
  11862. <span slot="footer" class="dialog-footer">
  11863. <el-button @click="dialogVisibleSentenceTeacher = false"
  11864. >取 消</el-button
  11865. >
  11866. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11867. </span>
  11868. </el-dialog>
  11869. <el-dialog
  11870. title="排序"
  11871. :visible.sync="dialogVisibleSentence1"
  11872. :append-to-body="true"
  11873. width="1000px"
  11874. :before-close="handleClose"
  11875. class="dialog_diy dialog_diy3"
  11876. >
  11877. <div>
  11878. <div class="sentenBox">
  11879. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11880. {{ sentenceList1.stuName }}的作业
  11881. </div>
  11882. <div
  11883. v-for="(st, stIndex) in sentenceList1"
  11884. :key="stIndex"
  11885. style="padding-bottom: 20px"
  11886. >
  11887. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11888. 第{{ stIndex + 1 }}题
  11889. </div>
  11890. <div class="isWrong">
  11891. <div class="cardList1" v-if="st.chooseSenList">
  11892. <div class="cardBox">
  11893. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11894. <el-tooltip
  11895. class="item"
  11896. effect="light"
  11897. :content="s"
  11898. placement="top"
  11899. >
  11900. <div class="isCard">
  11901. <div>{{ s }}</div>
  11902. </div>
  11903. </el-tooltip>
  11904. </div>
  11905. </div>
  11906. <div class="cardAnswerBox">
  11907. 组成句子:{{ st.chooseSenList.join(" ") }}
  11908. </div>
  11909. </div>
  11910. <div v-if="tType == 2" class="isTj">
  11911. <div class="isTjImg">
  11912. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11913. </div>
  11914. <div>已提交</div>
  11915. </div>
  11916. <div
  11917. class="answerRight isTj"
  11918. v-if="
  11919. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11920. (tType == 1 || tType == 4)
  11921. "
  11922. >
  11923. <div class="isTjImg">
  11924. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11925. </div>
  11926. <div>回答正确</div>
  11927. </div>
  11928. <div
  11929. class="answerRight isTj"
  11930. v-if="
  11931. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11932. (tType == 1 || tType == 4)
  11933. "
  11934. >
  11935. <div class="isTjImg">
  11936. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11937. </div>
  11938. <div>回答错误</div>
  11939. </div>
  11940. </div>
  11941. <div
  11942. v-if="
  11943. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11944. (tType == 1 || tType == 4)
  11945. "
  11946. >
  11947. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11948. <div
  11949. class="cardList"
  11950. v-if="st.rightAnswer"
  11951. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11952. >
  11953. <div class="cardBox">
  11954. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11955. <el-tooltip
  11956. class="item"
  11957. effect="light"
  11958. :content="r"
  11959. placement="top"
  11960. >
  11961. <div class="isCard1">
  11962. <div>{{ r }}</div>
  11963. </div>
  11964. </el-tooltip>
  11965. </div>
  11966. </div>
  11967. <div class="cardAnswerBox">
  11968. 组成句子:{{ st.rightAnswer.join(" ") }}
  11969. </div>
  11970. </div>
  11971. </div>
  11972. </div>
  11973. </div>
  11974. </div>
  11975. <span slot="footer" class="dialog-footer">
  11976. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11977. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11978. >确 定</el-button
  11979. >
  11980. </span>
  11981. </el-dialog>
  11982. <el-dialog
  11983. title="教师提交作业"
  11984. :visible.sync="dialogVisibleWorks"
  11985. :append-to-body="true"
  11986. width="500px"
  11987. :before-close="handleClose"
  11988. class="dialog_change"
  11989. >
  11990. <div class="marginT">
  11991. <div class="w_name">
  11992. 学生姓名:<span>{{ sStudent.student }}</span>
  11993. </div>
  11994. <div>上传文件</div>
  11995. <div
  11996. class="chapter_add"
  11997. @click="addImg($event)"
  11998. v-if="studyJuri[0].cover.length == 0"
  11999. >
  12000. <div class="up_photo">
  12001. <img src="../../assets/uploadImg2.png" alt />
  12002. </div>
  12003. <!-- <input
  12004. type="file"
  12005. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12006. style="display: none"
  12007. @change="beforeUpload1($event, 1)"
  12008. /> -->
  12009. <input
  12010. type="file"
  12011. accept="*"
  12012. style="display: none"
  12013. @change="beforeUpload1($event, 1)"
  12014. />
  12015. </div>
  12016. <!-- capture="camera" -->
  12017. <div
  12018. class="chapter_add"
  12019. style="
  12020. display: flex;
  12021. width: 100%;
  12022. flex-direction: row;
  12023. flex-wrap: wrap;
  12024. justify-content: flex-start;
  12025. padding: 15px 0;
  12026. "
  12027. v-if="studyJuri[0].cover.length > 0"
  12028. >
  12029. <div class="upCover">
  12030. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12031. <img :src="word" alt v-else-if="fileType == 1" />
  12032. <img :src="video" alt v-else-if="fileType == 2" />
  12033. <img :src="word2" alt v-else-if="fileType == 3" />
  12034. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12035. <div class="deleteWord" @click="clean(1)">
  12036. <img src="../../assets/icon/deleteWorks.png" alt />
  12037. </div>
  12038. </div>
  12039. </div>
  12040. </div>
  12041. <div
  12042. class="upload_send"
  12043. @click="addCourseWorksTeacher(taskCount)"
  12044. v-if="!proVisible"
  12045. >
  12046. 提交
  12047. </div>
  12048. </el-dialog>
  12049. <ImgDraw
  12050. :drawShow="drawShow"
  12051. @closeDraw="closeDraw"
  12052. @addImgDraw="addImgDraw"
  12053. :bg="bg"
  12054. ></ImgDraw>
  12055. <el-dialog
  12056. title="表格"
  12057. :visible.sync="dialogVisibleTable"
  12058. :append-to-body="true"
  12059. width="95%"
  12060. :before-close="handleClose"
  12061. class="dialog_diy"
  12062. >
  12063. <el-form>
  12064. <div
  12065. style="
  12066. display: flex;
  12067. align-items: center;
  12068. justify-content: space-between;
  12069. "
  12070. >
  12071. <span>表格内容</span>
  12072. <el-button type="primary" size="small" @click="returnTableText"
  12073. >还原模板</el-button
  12074. >
  12075. </div>
  12076. <Table
  12077. v-model="tableJson.text"
  12078. @change="change"
  12079. v-if="dialogVisibleTable"
  12080. ></Table>
  12081. </el-form>
  12082. <span slot="footer" class="dialog-footer">
  12083. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  12084. <el-button type="primary" @click="addTableWorks">确定</el-button>
  12085. </span>
  12086. </el-dialog>
  12087. <el-dialog
  12088. title="表格"
  12089. :visible.sync="dialogVisibleTableTeacher"
  12090. :append-to-body="true"
  12091. width="95%"
  12092. :before-close="handleClose"
  12093. class="dialog_diy"
  12094. >
  12095. <el-form>
  12096. <div class="w_name">
  12097. 学生姓名:<span>{{ sStudent.student }}</span>
  12098. </div>
  12099. <div>表格内容</div>
  12100. <Table
  12101. v-model="tableJson.text"
  12102. @change="change"
  12103. v-if="dialogVisibleTableTeacher"
  12104. ></Table>
  12105. </el-form>
  12106. <span slot="footer" class="dialog-footer">
  12107. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  12108. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  12109. </span>
  12110. </el-dialog>
  12111. <el-dialog
  12112. title="文档"
  12113. :visible.sync="dialogVisibleWord"
  12114. :append-to-body="true"
  12115. width="95%"
  12116. :before-close="handleClose"
  12117. class="dialog_diy"
  12118. >
  12119. <el-form>
  12120. <div
  12121. style="
  12122. display: flex;
  12123. align-items: center;
  12124. justify-content: space-between;
  12125. "
  12126. >
  12127. <span>文档内容</span>
  12128. <el-button type="primary" size="small" @click="returnWordText"
  12129. >还原模板</el-button
  12130. >
  12131. </div>
  12132. <editor-bar
  12133. v-model="wordJson.text"
  12134. v-if="dialogVisibleWord"
  12135. ></editor-bar>
  12136. </el-form>
  12137. <span slot="footer" class="dialog-footer">
  12138. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  12139. <el-button type="primary" @click="addWordWorks">确定</el-button>
  12140. </span>
  12141. </el-dialog>
  12142. <el-dialog
  12143. title="文档"
  12144. :visible.sync="dialogVisibleWordTeacher"
  12145. :append-to-body="true"
  12146. width="95%"
  12147. :before-close="handleClose"
  12148. class="dialog_diy"
  12149. >
  12150. <el-form>
  12151. <div class="w_name">
  12152. 学生姓名:<span>{{ sStudent.student }}</span>
  12153. </div>
  12154. <div>文档内容</div>
  12155. <editor-bar
  12156. v-model="wordJson.text"
  12157. v-if="dialogVisibleWordTeacher"
  12158. ></editor-bar>
  12159. </el-form>
  12160. <span slot="footer" class="dialog-footer">
  12161. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  12162. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  12163. </span>
  12164. </el-dialog>
  12165. <el-dialog
  12166. title="表格"
  12167. :visible.sync="dialogVisibleTable2"
  12168. :append-to-body="true"
  12169. width="95%"
  12170. :before-close="handleClose"
  12171. class="dialog_diy"
  12172. >
  12173. <el-form>
  12174. <div class="cont" v-html="tableJson.text"></div>
  12175. </el-form>
  12176. <span slot="footer" class="dialog-footer">
  12177. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  12178. </span>
  12179. </el-dialog>
  12180. <el-dialog
  12181. title="文档"
  12182. :visible.sync="dialogVisibleTable3"
  12183. :append-to-body="true"
  12184. width="95%"
  12185. :before-close="handleClose"
  12186. class="dialog_diy"
  12187. >
  12188. <el-form>
  12189. <div class="cont" v-html="tableJson.text"></div>
  12190. </el-form>
  12191. <span slot="footer" class="dialog-footer">
  12192. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  12193. </span>
  12194. </el-dialog>
  12195. <el-dialog
  12196. title="分组设置"
  12197. :visible.sync="dialogVisibleGroup"
  12198. :append-to-body="true"
  12199. width="95%"
  12200. :before-close="handleClose"
  12201. class="dialog_diy"
  12202. >
  12203. <div v-if="dialogVisibleGroup">
  12204. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  12205. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  12206. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  12207. </div>
  12208. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  12209. @click="lockChair">
  12210. 锁定位置
  12211. </div>
  12212. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  12213. 解锁位置
  12214. </div> -->
  12215. <div class="group_switch">
  12216. <span>开放选座</span>
  12217. <el-switch
  12218. v-model="islock"
  12219. active-text=""
  12220. class="switchCss"
  12221. @change="lockChair"
  12222. ></el-switch>
  12223. </div>
  12224. <div
  12225. type="primary"
  12226. @click="updateGroup"
  12227. class="returnBtn"
  12228. style="background-color: #225bc7"
  12229. >
  12230. 分组设置
  12231. </div>
  12232. </div>
  12233. <div>
  12234. <div
  12235. class="g_d_box"
  12236. v-if="groupJson.group && groupStudent[toolindex]"
  12237. >
  12238. <div
  12239. class="g_d_group"
  12240. v-for="(g, gindex) in groupJson.group"
  12241. :key="gindex"
  12242. >
  12243. <div class="g_d_group_chair">
  12244. <div v-if="groupJson.number > 1">
  12245. <span
  12246. :class="{
  12247. isChair:
  12248. groupStudent[toolindex][gindex] &&
  12249. groupStudent[toolindex][gindex][0],
  12250. updateChair:
  12251. courseDetail.userid == userid &&
  12252. groupStudent[toolindex][gindex] &&
  12253. groupStudent[toolindex][gindex][0] &&
  12254. groupJson.islock == 2,
  12255. }"
  12256. ><span
  12257. class="updateChairBtn"
  12258. @click="
  12259. updateGroupChair(
  12260. groupStudent[toolindex][gindex] &&
  12261. groupStudent[toolindex][gindex][0]
  12262. )
  12263. "
  12264. >修改</span
  12265. ></span
  12266. ><span>{{
  12267. groupStudent[toolindex][gindex] &&
  12268. groupStudent[toolindex][gindex][0]
  12269. ? groupStudent[toolindex][gindex] &&
  12270. groupStudent[toolindex][gindex][0].name
  12271. : "空位置"
  12272. }}</span>
  12273. </div>
  12274. <div v-if="groupJson.number > 4">
  12275. <span
  12276. :class="{
  12277. isChair:
  12278. groupStudent[toolindex][gindex] &&
  12279. groupStudent[toolindex][gindex][4],
  12280. updateChair:
  12281. courseDetail.userid == userid &&
  12282. groupStudent[toolindex][gindex] &&
  12283. groupStudent[toolindex][gindex][4] &&
  12284. groupJson.islock == 2,
  12285. }"
  12286. ><span
  12287. class="updateChairBtn"
  12288. @click="
  12289. updateGroupChair(
  12290. groupStudent[toolindex][gindex] &&
  12291. groupStudent[toolindex][gindex][4]
  12292. )
  12293. "
  12294. >修改</span
  12295. ></span
  12296. ><span>{{
  12297. groupStudent[toolindex][gindex] &&
  12298. groupStudent[toolindex][gindex][4]
  12299. ? groupStudent[toolindex][gindex] &&
  12300. groupStudent[toolindex][gindex][4].name
  12301. : "空位置"
  12302. }}</span>
  12303. </div>
  12304. <div v-if="groupJson.number > 8">
  12305. <span
  12306. :class="{
  12307. isChair:
  12308. groupStudent[toolindex][gindex] &&
  12309. groupStudent[toolindex][gindex][8],
  12310. updateChair:
  12311. courseDetail.userid == userid &&
  12312. groupStudent[toolindex][gindex] &&
  12313. groupStudent[toolindex][gindex][8] &&
  12314. groupJson.islock == 2,
  12315. }"
  12316. ><span
  12317. class="updateChairBtn"
  12318. @click="
  12319. updateGroupChair(
  12320. groupStudent[toolindex][gindex] &&
  12321. groupStudent[toolindex][gindex][8]
  12322. )
  12323. "
  12324. >修改</span
  12325. ></span
  12326. ><span>{{
  12327. groupStudent[toolindex][gindex] &&
  12328. groupStudent[toolindex][gindex][8]
  12329. ? groupStudent[toolindex][gindex] &&
  12330. groupStudent[toolindex][gindex][8].name
  12331. : "空位置"
  12332. }}</span>
  12333. </div>
  12334. </div>
  12335. <div class="g_d_group_tableBox">
  12336. <div class="g_d_group_chair2">
  12337. <div v-if="groupJson.number > 2">
  12338. <span
  12339. :class="{
  12340. isChair:
  12341. groupStudent[toolindex][gindex] &&
  12342. groupStudent[toolindex][gindex][2],
  12343. updateChair:
  12344. courseDetail.userid == userid &&
  12345. groupStudent[toolindex][gindex] &&
  12346. groupStudent[toolindex][gindex][2] &&
  12347. groupJson.islock == 2,
  12348. }"
  12349. ><span
  12350. class="updateChairBtn"
  12351. @click="
  12352. updateGroupChair(
  12353. groupStudent[toolindex][gindex] &&
  12354. groupStudent[toolindex][gindex][2]
  12355. )
  12356. "
  12357. >修改</span
  12358. ></span
  12359. ><span>{{
  12360. groupStudent[toolindex][gindex] &&
  12361. groupStudent[toolindex][gindex][2]
  12362. ? groupStudent[toolindex][gindex] &&
  12363. groupStudent[toolindex][gindex][2].name
  12364. : "空位置"
  12365. }}</span>
  12366. </div>
  12367. <div v-if="groupJson.number > 6">
  12368. <span
  12369. :class="{
  12370. isChair:
  12371. groupStudent[toolindex][gindex] &&
  12372. groupStudent[toolindex][gindex][6],
  12373. updateChair:
  12374. courseDetail.userid == userid &&
  12375. groupStudent[toolindex][gindex] &&
  12376. groupStudent[toolindex][gindex][6] &&
  12377. groupJson.islock == 2,
  12378. }"
  12379. ><span
  12380. class="updateChairBtn"
  12381. @click="
  12382. updateGroupChair(
  12383. groupStudent[toolindex][gindex] &&
  12384. groupStudent[toolindex][gindex][6]
  12385. )
  12386. "
  12387. >修改</span
  12388. ></span
  12389. ><span>{{
  12390. groupStudent[toolindex][gindex] &&
  12391. groupStudent[toolindex][gindex][6]
  12392. ? groupStudent[toolindex][gindex] &&
  12393. groupStudent[toolindex][gindex][6].name
  12394. : "空位置"
  12395. }}</span>
  12396. </div>
  12397. </div>
  12398. <div class="g_d_group_table">
  12399. <div>
  12400. {{ g.name }}
  12401. </div>
  12402. <div>
  12403. <div
  12404. v-if="
  12405. courseDetail.userid == userid && groupJson.islock == 2
  12406. "
  12407. @click="deleteGroupChair(gindex)"
  12408. >
  12409. 移除组员
  12410. </div>
  12411. <div
  12412. @click="selectGroup(gindex)"
  12413. v-else-if="
  12414. groupStudentUid[toolindex] &&
  12415. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  12416. "
  12417. >
  12418. 加入分组
  12419. </div>
  12420. <div
  12421. @click="
  12422. exitGroup(
  12423. groupStudent[toolindex][gindex] &&
  12424. groupStudent[toolindex][gindex][
  12425. groupStudentUid[toolindex][gindex].indexOf(userid)
  12426. ].id
  12427. )
  12428. "
  12429. v-else-if="
  12430. groupStudentUid[toolindex] &&
  12431. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  12432. "
  12433. >
  12434. 退出分组
  12435. </div>
  12436. </div>
  12437. </div>
  12438. <div class="g_d_group_chair2">
  12439. <div v-if="groupJson.number > 3">
  12440. <span
  12441. :class="{
  12442. isChair:
  12443. groupStudent[toolindex][gindex] &&
  12444. groupStudent[toolindex][gindex][3],
  12445. updateChair:
  12446. courseDetail.userid == userid &&
  12447. groupStudent[toolindex][gindex] &&
  12448. groupStudent[toolindex][gindex][3] &&
  12449. groupJson.islock == 2,
  12450. }"
  12451. ><span
  12452. class="updateChairBtn"
  12453. @click="
  12454. updateGroupChair(
  12455. groupStudent[toolindex][gindex] &&
  12456. groupStudent[toolindex][gindex][3]
  12457. )
  12458. "
  12459. >修改</span
  12460. ></span
  12461. ><span>{{
  12462. groupStudent[toolindex][gindex] &&
  12463. groupStudent[toolindex][gindex][3]
  12464. ? groupStudent[toolindex][gindex] &&
  12465. groupStudent[toolindex][gindex][3].name
  12466. : "空位置"
  12467. }}</span>
  12468. </div>
  12469. <div v-if="groupJson.number > 7">
  12470. <span
  12471. :class="{
  12472. isChair:
  12473. groupStudent[toolindex][gindex] &&
  12474. groupStudent[toolindex][gindex][7],
  12475. updateChair:
  12476. courseDetail.userid == userid &&
  12477. groupStudent[toolindex][gindex] &&
  12478. groupStudent[toolindex][gindex][7] &&
  12479. groupJson.islock == 2,
  12480. }"
  12481. ><span
  12482. class="updateChairBtn"
  12483. @click="
  12484. updateGroupChair(
  12485. groupStudent[toolindex][gindex] &&
  12486. groupStudent[toolindex][gindex][7]
  12487. )
  12488. "
  12489. >修改</span
  12490. ></span
  12491. ><span>{{
  12492. groupStudent[toolindex][gindex] &&
  12493. groupStudent[toolindex][gindex][7]
  12494. ? groupStudent[toolindex][gindex] &&
  12495. groupStudent[toolindex][gindex][7].name
  12496. : "空位置"
  12497. }}</span>
  12498. </div>
  12499. </div>
  12500. </div>
  12501. <div class="g_d_group_chair">
  12502. <div v-if="groupJson.number > 1">
  12503. <span
  12504. :class="{
  12505. isChair:
  12506. groupStudent[toolindex][gindex] &&
  12507. groupStudent[toolindex][gindex][1],
  12508. updateChair:
  12509. courseDetail.userid == userid &&
  12510. groupStudent[toolindex][gindex] &&
  12511. groupStudent[toolindex][gindex][1] &&
  12512. groupJson.islock == 2,
  12513. }"
  12514. ><span
  12515. class="updateChairBtn"
  12516. @click="
  12517. updateGroupChair(
  12518. groupStudent[toolindex][gindex] &&
  12519. groupStudent[toolindex][gindex][1]
  12520. )
  12521. "
  12522. >修改</span
  12523. ></span
  12524. ><span>{{
  12525. groupStudent[toolindex][gindex] &&
  12526. groupStudent[toolindex][gindex][1]
  12527. ? groupStudent[toolindex][gindex] &&
  12528. groupStudent[toolindex][gindex][1].name
  12529. : "空位置"
  12530. }}</span>
  12531. </div>
  12532. <div v-if="groupJson.number > 5">
  12533. <span
  12534. :class="{
  12535. isChair:
  12536. groupStudent[toolindex][gindex] &&
  12537. groupStudent[toolindex][gindex][5],
  12538. updateChair:
  12539. courseDetail.userid == userid &&
  12540. groupStudent[toolindex][gindex] &&
  12541. groupStudent[toolindex][gindex][5] &&
  12542. groupJson.islock == 2,
  12543. }"
  12544. ><span
  12545. class="updateChairBtn"
  12546. @click="
  12547. updateGroupChair(
  12548. groupStudent[toolindex][gindex] &&
  12549. groupStudent[toolindex][gindex][5]
  12550. )
  12551. "
  12552. >修改</span
  12553. ></span
  12554. ><span>{{
  12555. groupStudent[toolindex][gindex] &&
  12556. groupStudent[toolindex][gindex][5]
  12557. ? groupStudent[toolindex][gindex] &&
  12558. groupStudent[toolindex][gindex][5].name
  12559. : "空位置"
  12560. }}</span>
  12561. </div>
  12562. <div v-if="groupJson.number > 9">
  12563. <span
  12564. :class="{
  12565. isChair:
  12566. groupStudent[toolindex][gindex] &&
  12567. groupStudent[toolindex][gindex][9],
  12568. updateChair:
  12569. courseDetail.userid == userid &&
  12570. groupStudent[toolindex][gindex] &&
  12571. groupStudent[toolindex][gindex][9] &&
  12572. groupJson.islock == 2,
  12573. }"
  12574. ><span
  12575. class="updateChairBtn"
  12576. @click="
  12577. updateGroupChair(
  12578. groupStudent[toolindex][gindex] &&
  12579. groupStudent[toolindex][gindex][9]
  12580. )
  12581. "
  12582. >修改</span
  12583. ></span
  12584. ><span>{{
  12585. groupStudent[toolindex][gindex] &&
  12586. groupStudent[toolindex][gindex][9]
  12587. ? groupStudent[toolindex][gindex] &&
  12588. groupStudent[toolindex][gindex][9].name
  12589. : "空位置"
  12590. }}</span>
  12591. </div>
  12592. </div>
  12593. </div>
  12594. </div>
  12595. </div>
  12596. </div>
  12597. <span slot="footer" class="dialog-footer">
  12598. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  12599. </span>
  12600. </el-dialog>
  12601. <el-dialog
  12602. title="分组设置"
  12603. :visible.sync="dialogVisibleGroup2"
  12604. :append-to-body="true"
  12605. width="650px"
  12606. :before-close="handleClose"
  12607. class="dialog_diy"
  12608. >
  12609. <div class="groupBox">
  12610. <div v-if="groupJson2.group" class="groupContent">
  12611. <div class="groupTitle">请设置小组数量及名称</div>
  12612. <div
  12613. v-for="(item, index) in groupJson2.group"
  12614. :key="index"
  12615. class="groupName"
  12616. >
  12617. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12618. <el-input
  12619. v-model="item.name"
  12620. placeholder="请输入名称..."
  12621. style="width: 250px"
  12622. ></el-input>
  12623. <!-- <div class="groupBtn">
  12624. <el-button type="primary" size="small" @click="addGroup(index)">
  12625. 添加</el-button>
  12626. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12627. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12628. </div> -->
  12629. </div>
  12630. </div>
  12631. <div class="groupContent">
  12632. <div class="groupTitle">请设置每组人数</div>
  12633. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12634. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12635. <el-input
  12636. v-model="groupJson.number"
  12637. style="width: 150px"
  12638. placeholder="请输入2-10的数字"
  12639. @change="numberPan"
  12640. ></el-input>
  12641. </div>
  12642. </div>
  12643. <span slot="footer" class="dialog-footer">
  12644. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12645. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12646. </span>
  12647. </el-dialog>
  12648. <el-dialog
  12649. title="作业提交"
  12650. :visible.sync="dialogVisibleGroupWork"
  12651. :append-to-body="true"
  12652. width="500px"
  12653. :before-close="handleClose"
  12654. class="dialog_change"
  12655. >
  12656. <div class="marginT">
  12657. <div>上传文件</div>
  12658. <div
  12659. class="chapter_add"
  12660. @click="addImg($event)"
  12661. v-if="studyJuri[0].cover.length == 0"
  12662. >
  12663. <div class="up_photo">
  12664. <img src="../../assets/icon/uploadImg.png" alt />
  12665. </div>
  12666. <!-- <input
  12667. type="file"
  12668. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12669. style="display: none"
  12670. @change="beforeUpload1($event, 1)"
  12671. /> -->
  12672. <input
  12673. type="file"
  12674. accept="*"
  12675. style="display: none"
  12676. @change="beforeUpload1($event, 1)"
  12677. />
  12678. </div>
  12679. <!-- capture="camera" -->
  12680. <div
  12681. class="chapter_add"
  12682. style="
  12683. display: flex;
  12684. width: 100%;
  12685. flex-direction: row;
  12686. flex-wrap: wrap;
  12687. justify-content: flex-start;
  12688. padding: 15px 0;
  12689. "
  12690. v-if="studyJuri[0].cover.length > 0"
  12691. >
  12692. <div class="upCover">
  12693. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12694. <img :src="word" alt v-else-if="fileType == 1" />
  12695. <img :src="video" alt v-else-if="fileType == 2" />
  12696. <img :src="word2" alt v-else-if="fileType == 3" />
  12697. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12698. <div class="deleteWord" @click="clean(1)">
  12699. <img src="../../assets/icon/deleteWorks.png" alt />
  12700. </div>
  12701. </div>
  12702. </div>
  12703. </div>
  12704. <div
  12705. class="upload_send"
  12706. @click="addCourseWorks2(taskCount)"
  12707. v-if="!proVisible"
  12708. >
  12709. 提交
  12710. </div>
  12711. </el-dialog>
  12712. <el-dialog
  12713. title="修改分组"
  12714. :visible.sync="dialogVisibleUpdateGroup"
  12715. :append-to-body="true"
  12716. width="350px"
  12717. :before-close="handleClose"
  12718. class="dialog_diy"
  12719. >
  12720. <div>
  12721. <h2>
  12722. {{ this.updateGroupUser.name }}
  12723. </h2>
  12724. <div style="color: rgb(171 171 171); margin-top: 10px">
  12725. 请选择要进入的分组
  12726. </div>
  12727. <el-radio-group v-model="checkChair">
  12728. <el-radio
  12729. style="display: block; margin-top: 20px"
  12730. v-for="(item, index) in updateGroupArray"
  12731. :label="item.label"
  12732. :key="index"
  12733. >{{ item.name }}</el-radio
  12734. >
  12735. </el-radio-group>
  12736. </div>
  12737. <span slot="footer" class="dialog-footer">
  12738. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12739. <el-button type="primary" @click="updateChair">确定</el-button>
  12740. </span>
  12741. </el-dialog>
  12742. <el-dialog
  12743. title="移除组员"
  12744. :visible.sync="dialogVisibleDeleteGroup"
  12745. :append-to-body="true"
  12746. width="350px"
  12747. :before-close="handleClose"
  12748. class="dialog_diy"
  12749. >
  12750. <div>
  12751. <h2>
  12752. {{ this.deleteGroupArray.name }}
  12753. </h2>
  12754. <div style="color: rgb(171 171 171); margin-top: 10px">
  12755. 请选择要删除的组员
  12756. </div>
  12757. <el-checkbox-group v-model="checkDeleteGroup">
  12758. <el-checkbox
  12759. style="display: flex; margin-top: 20px"
  12760. v-for="(item, index) in deleteGroupUser"
  12761. :label="item.userid"
  12762. :key="index"
  12763. >{{ item.name }}</el-checkbox
  12764. >
  12765. </el-checkbox-group>
  12766. </div>
  12767. <span slot="footer" class="dialog-footer">
  12768. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12769. <el-button type="primary" @click="deleteChair">确定</el-button>
  12770. </span>
  12771. </el-dialog>
  12772. <el-dialog
  12773. title="批量上传"
  12774. :visible.sync="dialogVisiblePl"
  12775. :append-to-body="true"
  12776. width="700px"
  12777. :before-close="handleClose"
  12778. class="dialog_change"
  12779. >
  12780. <div class="marginT">
  12781. <div class="plworkBox">
  12782. <div
  12783. class="chapter_add"
  12784. style="
  12785. display: flex;
  12786. width: 150px;
  12787. flex-direction: row;
  12788. flex-wrap: wrap;
  12789. justify-content: flex-start;
  12790. margin: 0 10px 10px 0;
  12791. "
  12792. v-for="(item, index) in plworkFile"
  12793. :key="index"
  12794. >
  12795. <div class="upCover2">
  12796. <img
  12797. :src="item.url"
  12798. alt
  12799. v-if="item.fileType == 1"
  12800. @click="previewImg(item.url)"
  12801. />
  12802. <img :src="word" alt v-else-if="item.fileType == 4" />
  12803. <img :src="video" alt v-else />
  12804. <!-- <span class="picName">{{ item.name }}</span> -->
  12805. <!-- <el-input
  12806. v-model="item.username"
  12807. placeholder="请输入学生名字"
  12808. style="margin-top: 10px"
  12809. ></el-input> -->
  12810. <div
  12811. class="pl_select_box"
  12812. @click="
  12813. getUpdateMore(true, checkUpload(), item.username, index)
  12814. "
  12815. >
  12816. {{ getSName(item.username) }}
  12817. </div>
  12818. <!-- <el-select
  12819. style="margin-top: 10px"
  12820. v-model="item.username"
  12821. filterable
  12822. allow-create
  12823. placeholder="请选择学生"
  12824. >
  12825. <el-option
  12826. v-for="item1 in checkUpload()"
  12827. :key="item1.userid"
  12828. :label="item1.name ? item1.name : item1.username"
  12829. :value="item1.userid"
  12830. >
  12831. </el-option>
  12832. </el-select> -->
  12833. <div class="deleteWord" @click="clean2(index)">
  12834. <img src="../../assets/icon/deleteWorks.png" alt />
  12835. </div>
  12836. </div>
  12837. </div>
  12838. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12839. <div class="up_photo2">
  12840. <img src="../../assets/icon/plwork.png" alt />
  12841. <span>点击上传文件</span>
  12842. </div>
  12843. <input
  12844. type="file"
  12845. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12846. multiple="multiple"
  12847. style="display: none"
  12848. @change="beforeUpload3($event, 6)"
  12849. />
  12850. </div>
  12851. </div>
  12852. </div>
  12853. <!-- capture="camera" -->
  12854. <div
  12855. class="upload_send"
  12856. @click="addCourseWorksPl(taskCount)"
  12857. v-if="!proVisible2"
  12858. >
  12859. 提交
  12860. </div>
  12861. </el-dialog>
  12862. <el-dialog
  12863. title="修改名称"
  12864. :visible.sync="dialogVisibleSname"
  12865. width="500px"
  12866. :before-close="handleClose"
  12867. class="dialog_diy"
  12868. center
  12869. >
  12870. <div
  12871. style="
  12872. text-align: center;
  12873. display: flex;
  12874. align-items: center;
  12875. justify-content: center;
  12876. "
  12877. >
  12878. <span class="tian1">名称</span>
  12879. <div
  12880. class="pl_select_box"
  12881. style="margin-left: 10px; width: 200px"
  12882. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12883. >
  12884. {{ getSName(worksSName) }}
  12885. </div>
  12886. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12887. placeholder="请选择学生">
  12888. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12889. :value="item.userid">
  12890. </el-option>
  12891. </el-select> -->
  12892. <!-- <el-input
  12893. v-model="worksSName"
  12894. style="width: 250px; margin: 15px 0px"
  12895. ></el-input> -->
  12896. </div>
  12897. <span slot="footer" class="dialog-footer">
  12898. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12899. <el-button type="primary" @click="updateName">确 定</el-button>
  12900. </span>
  12901. </el-dialog>
  12902. <el-dialog
  12903. title="英语写作"
  12904. :visible.sync="engDialogVisible"
  12905. :append-to-body="true"
  12906. width="800px"
  12907. :before-close="handleClose"
  12908. class="dialog_diy"
  12909. >
  12910. <onlineWrite
  12911. v-if="engDialogVisible"
  12912. :englishList="englishList"
  12913. :myAnswerList1="myAnswerList1"
  12914. ref="engJson"
  12915. ></onlineWrite>
  12916. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12917. <el-button @click="engDialogVisible = false">取 消</el-button>
  12918. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12919. </span>
  12920. </el-dialog>
  12921. <el-dialog
  12922. title="英语写作"
  12923. :visible.sync="engUpdateDialogVisible"
  12924. :append-to-body="true"
  12925. width="800px"
  12926. :before-close="handleClose"
  12927. class="dialog_diy fullStyle"
  12928. >
  12929. <div class="engUpBox">
  12930. <div class="engUpTop">
  12931. <div class="engTitle">
  12932. <div>作文题目:</div>
  12933. <div>{{ englishList1.engTitle }}</div>
  12934. </div>
  12935. <div class="engText">
  12936. <div>作文内容:</div>
  12937. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12938. </div>
  12939. </div>
  12940. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12941. <div class="oldBox">
  12942. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12943. <div class="oldText">
  12944. <div class="detailBox">
  12945. <div class="oldDetail">
  12946. <div>标题:</div>
  12947. <div>{{ oldEnglishJson.engTitle }} </div>
  12948. </div>
  12949. <div class="oldDetail1">
  12950. <div>正文:</div>
  12951. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12952. </div>
  12953. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12954. <div>图片:</div>
  12955. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12956. </div>
  12957. </div>
  12958. </div>
  12959. </div>
  12960. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12961. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12962. <div class="oldText">
  12963. <div class="detailBox" style="position: relative;">
  12964. <div class="oldDetail">
  12965. <div>标题:</div>
  12966. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12967. <div v-else v-html="newEnglishList.engTitle"></div>
  12968. </div>
  12969. <div class="oldDetail">
  12970. <div>正文:</div>
  12971. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12972. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12973. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  12974. </div>
  12975. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12976. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12977. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12978. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12979. </div>
  12980. </div>
  12981. </div>
  12982. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12983. <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">
  12984. <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>
  12985. <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>
  12986. </div>
  12987. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12988. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12989. <div class="detailBox" style="position: relative;">
  12990. <div class="oldDetail">
  12991. <div>标题:</div>
  12992. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12993. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12994. </div>
  12995. <div class="oldDetail">
  12996. <div>正文:</div>
  12997. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12998. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12999. </div>
  13000. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  13001. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  13002. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  13003. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  13004. </div>
  13005. </div>
  13006. <div class="oldText" v-else-if="newEngIndex == -1">
  13007. <div class="detailBox" style="position: relative;">
  13008. <div class="oldDetail">
  13009. <div>标题:</div>
  13010. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  13011. <div v-else v-html="newEnglishList.engTitle"></div>
  13012. </div>
  13013. <div class="oldDetail">
  13014. <div>正文:</div>
  13015. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  13016. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  13017. </div>
  13018. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  13019. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  13020. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  13021. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  13022. </div>
  13023. </div>
  13024. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  13025. <div class="detailBox" style="position: relative;">
  13026. <div class="oldDetail">
  13027. <div>标题:</div>
  13028. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  13029. <div v-else>
  13030. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  13031. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  13032. </div>
  13033. </div>
  13034. <div class="oldDetail">
  13035. <div>正文:</div>
  13036. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  13037. <div v-else>
  13038. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  13039. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  13040. </div>
  13041. </div>
  13042. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  13043. <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>
  13044. <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>
  13045. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  13046. </div>
  13047. </div>
  13048. </div>
  13049. </div>
  13050. </div>
  13051. <span slot="footer" class="dialog-footer">
  13052. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  13053. <el-button type="primary" @click="addCorrect">确 定</el-button>
  13054. </span>
  13055. </el-dialog>
  13056. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  13057. <interVideo
  13058. :dialogVisibleVideo.sync="dialogVisibleVideo"
  13059. :videoJson="videoJson"
  13060. :userid="userid"
  13061. :id="id"
  13062. :courseType="courseType"
  13063. :taskCount="taskCount"
  13064. :toolindex="toolindex"
  13065. :videoType="videoType"
  13066. ></interVideo>
  13067. <UpdateMore
  13068. :dialogVisibleMember.sync="dialogVisibleMember"
  13069. :cList="uploadStudentJuri"
  13070. :userid="userid"
  13071. :searchTN="worksSName2"
  13072. @setPlname="setPlname"
  13073. ></UpdateMore>
  13074. <wordCloud
  13075. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  13076. :data="wordCloudData"
  13077. ></wordCloud>
  13078. <el-dialog
  13079. title="挑人"
  13080. :visible.sync="dialogVisiblePickPeople"
  13081. width="650px"
  13082. :before-close="handleClose"
  13083. class="dialog_diy"
  13084. center
  13085. >
  13086. <div class="pick_box">
  13087. <div
  13088. class="noWorksName"
  13089. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  13090. v-for="(item, index) in uploadStudentJuri"
  13091. :key="index"
  13092. @click="pickStudent(item)"
  13093. >
  13094. {{ item.name }}
  13095. </div>
  13096. </div>
  13097. </el-dialog>
  13098. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  13099. :englishVoiceJson='englishVoiceJson'
  13100. :userid="userid"
  13101. :id="id"
  13102. :courseType="courseType"
  13103. :taskCount="taskCount"
  13104. :toolindex="toolindex"
  13105. @selectSWorks="selectSWorks"
  13106. @selectStudent="selectStudent"
  13107. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  13108. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  13109. :userid="userid"
  13110. :dialogVisibleENScore.sync='dialogVisibleENScore'
  13111. :commentDetail="commentDetail"
  13112. :courseDetail="courseDetail"
  13113. :wScore="wScore"
  13114. :scoreDetail="scoreDetail"
  13115. @selectSWorks="selectSWorks"
  13116. @selectStudent="selectStudent"></checkEnglishVoice>
  13117. <el-dialog
  13118. title="教师评分"
  13119. :visible.sync="markScoreVisible"
  13120. :append-to-body="true"
  13121. width="1000px"
  13122. :fullscreen="markfullscreen"
  13123. :before-close="markScorehandleClose"
  13124. class="markScore_diy"
  13125. >
  13126. <div slot="title">
  13127. <div class="markScore_diyTit">
  13128. <div>{{tType == 1 ? "教师评分" : "作业弹框"}} </div>
  13129. <div @click="markFullScreenBtn" style="cursor: pointer;"><img src="../../assets/icon/newIcons/fullScreen.png" alt=""></div>
  13130. </div>
  13131. </div>
  13132. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  13133. <!-- @updateDocSco="updateDocSco" -->
  13134. <markDialog
  13135. :key="markScoreVisible.toString()"
  13136. :uid="markScoreUid"
  13137. :toolIndex="markScoretoolIndex"
  13138. :stage="courseType"
  13139. :task="taskCount"
  13140. :taskDetail="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail"
  13141. :tool="toolListS"
  13142. :languageSetting="languageSetting"
  13143. :scoTit="markScoreTit"
  13144. :tType="tType"
  13145. :sIsOpen="sIsOpen"
  13146. :markScoreworksStudent="markScoreworksStudent"
  13147. :markScoreVisible="markScoreVisible"
  13148. ></markDialog>
  13149. </el-dialog>
  13150. <!-- 查看Txt,md等文件 -->
  13151. <el-dialog
  13152. title="文件预览"
  13153. :visible.sync="dialogVisibleTxt"
  13154. width="50%"
  13155. :before-close="handleCloseTxt"
  13156. class="dialog_diy"
  13157. :class="{ fullStyle: full }"
  13158. >
  13159. <div slot="title" class="header-title">
  13160. <div style="color: #fff">文件预览</div>
  13161. <div style="position: absolute; top: 19px; right: 50px">
  13162. <img
  13163. src="../../assets/full.png"
  13164. style="height: 16px; cursor: pointer"
  13165. alt=""
  13166. @click="fullTools"
  13167. />
  13168. </div>
  13169. </div>
  13170. <div>{{TxtMd}}</div>
  13171. </el-dialog>
  13172. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh"/>
  13173. </div>
  13174. </template>
  13175. <script>
  13176. import "../../common/aws-sdk-2.235.1.min.js";
  13177. // import pdf from "../components/pdf3";
  13178. import pdf from "../components/vpdf";
  13179. import AskStatic from "../components/askStatic";
  13180. import AskStatic2 from "../components/askStatic2";
  13181. import AnswerData2 from "../components/answerData2";
  13182. import AnswerData from "../components/answerData";
  13183. import EditorBar from "../tools/wangEnduit.vue";
  13184. import Table from "../tools/table.vue";
  13185. import Time from "../tools/time.vue";
  13186. import Mind from "../tools/jsmind.vue";
  13187. import Sunburst from "../tools/sunburst";
  13188. import SeeBoard from "../tools/seeBoard";
  13189. import * as imageConversion from "image-conversion";
  13190. import Audio from "../components/audio.vue";
  13191. import ImgDraw from "../tools/imgDraw/imgDraw";
  13192. import { Empty } from "element-ui";
  13193. import RecordRTC from "recordrtc";
  13194. import interVideo from "../interVideo/index.vue";
  13195. import UpdateMore from "../updateMore/updateMore.vue";
  13196. import wordCloud from "../wordCloud/index.vue";
  13197. import axios from "axios";
  13198. import JSZip from "jszip";
  13199. import FileSaver from "file-saver";
  13200. import onlineWrite from "./commpont/onlineWrite";
  13201. import englishEva from "../components/englishEva";
  13202. import * as Diff from 'diff'
  13203. import EnglishVoice from '../EnglishVoice2/index.vue'
  13204. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  13205. import correctText from '../components/correctText.vue'
  13206. import scoreItem from '../scoreList/scoreItem.vue'
  13207. import scoreZong from '../scoreZong/index.vue'
  13208. import classRoomHelper from '../classRoomHelper/index.vue'
  13209. import markScore from "./commpont/markScore";
  13210. import markDialog from "./commpont/markDialog";
  13211. import evaTable from './commpont/evaTable'
  13212. import { v4 as uuidv4 } from "uuid";
  13213. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  13214. const getFile = (url) => {
  13215. return new Promise((resolve, reject) => {
  13216. var credentials = {
  13217. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13218. secretAccessKey: "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",
  13219. }; //秘钥形式的登录上传
  13220. window.AWS.config.update(credentials);
  13221. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13222. let url2 = url;
  13223. let _url2 = "";
  13224. if (
  13225. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  13226. ) {
  13227. _url2 = url2.split(
  13228. "https://view.officeapps.live.com/op/view.aspx?src="
  13229. )[1];
  13230. } else {
  13231. _url2 = url2;
  13232. }
  13233. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  13234. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  13235. var params = {
  13236. Bucket: "ccrb",
  13237. Key: name
  13238. };
  13239. s3.getObject(params, function (err, data) {
  13240. if (err) {
  13241. console.log(err, err.stack)
  13242. resolve({ data: 1 });
  13243. }else {
  13244. resolve({ data: data.Body });
  13245. console.log(data);
  13246. } // sxuccessful response
  13247. });
  13248. // axios({
  13249. // method: "get",
  13250. // url,
  13251. // responseType: "blob",
  13252. // })
  13253. // .then((data) => {
  13254. // resolve({ data: data.data });
  13255. // })
  13256. // .catch((error) => {
  13257. // resolve({ data: 1 });
  13258. // // reject(error.toString());
  13259. // });
  13260. });
  13261. };
  13262. export default {
  13263. components: {
  13264. EditorBar,
  13265. Time,
  13266. pdf,
  13267. AskStatic,
  13268. AskStatic2,
  13269. Mind,
  13270. Sunburst,
  13271. SeeBoard,
  13272. AnswerData2,
  13273. AnswerData,
  13274. Audio,
  13275. ImgDraw,
  13276. Table,
  13277. interVideo,
  13278. UpdateMore,
  13279. wordCloud,
  13280. onlineWrite,
  13281. englishEva,
  13282. EnglishVoice,
  13283. checkEnglishVoice,
  13284. correctText,
  13285. scoreItem,
  13286. classRoomHelper,
  13287. scoreZong,
  13288. markScore,
  13289. markDialog,
  13290. evaTable,
  13291. statisticalAnalysis
  13292. },
  13293. data() {
  13294. return {
  13295. bg: null,
  13296. drawShow: false,
  13297. dialogVisible: false,
  13298. dialogVisiblePl: false,
  13299. commentDialogVisible: false,
  13300. dialogVisibleMember: false,
  13301. dialogVisibleWordCloud: false,
  13302. videoVisible: false,
  13303. isStar: false,
  13304. studentEvalDialogVisible: false,
  13305. studentEvalDialogVisibleTeacher: false,
  13306. dialogVisibleSelect: false,
  13307. dialogVisibleSelectTeacher: false,
  13308. dialogVisibleScore: false,
  13309. dialogVisibleENScore: false,
  13310. dialogVisibleSentence: false,
  13311. dialogVisibleSentenceTeacher: false,
  13312. dialogVisibleSentence1: false,
  13313. dialogVisibleWorks: false,
  13314. dialogVisibleTable: false,
  13315. dialogVisibleTableTeacher: false,
  13316. dialogVisibleWord: false,
  13317. dialogVisibleWordTeacher: false,
  13318. dialogVisibleTable2: false,
  13319. dialogVisibleTable3: false,
  13320. dialogVisibleGroupWork: false,
  13321. dialogVisibleUpdateGroup: false,
  13322. dialogVisibleDeleteGroup: false,
  13323. dialogVisibleSname: false,
  13324. dialogVisibleVideo: false,
  13325. dialogVisiblePickPeople: false,
  13326. engDialogVisible: false,
  13327. engUpdateDialogVisible:false,
  13328. engEvaDialogVisible: false,
  13329. evaEngJson: {
  13330. teacherJson: {},
  13331. studentJson: {},
  13332. message: {},
  13333. },
  13334. isNoUserid:false,
  13335. engListLength:0,
  13336. engWid:"",
  13337. newEnglishList:{
  13338. engTitle:"",
  13339. engText:"",
  13340. },
  13341. newEnglishList1:[],
  13342. oldEnglishJson:{},
  13343. oldEnglishJson1:{},
  13344. englishList1:{},
  13345. englishList:{},
  13346. myAnswerList1:{},
  13347. topHeight:0,
  13348. newEngIndex:-1,
  13349. englishToolIndex:0,
  13350. userMes:{},
  13351. englishToolIndex:0,
  13352. worksSName: "",
  13353. classJuri: [],
  13354. uploadStudentJuri: [],
  13355. uploadCid: "",
  13356. snameWid: "",
  13357. sStudent: {},
  13358. sTool: "",
  13359. bzText: "",
  13360. commentDetail: [],
  13361. selectAnswer: [],
  13362. videoDetail: {},
  13363. selectJson: {},
  13364. englishList: {},
  13365. topHeight:0,
  13366. eScore: { eBzText: "", eStar: [] },
  13367. id: this.$route.query.courseId,
  13368. userid: this.$route.query.userid,
  13369. classId: this.$route.query.cid,
  13370. // courseTypeLine: this.$route.query.type,
  13371. oid: this.$route.query.oid,
  13372. org: this.$route.query.org,
  13373. tType: this.$route.query.tType,
  13374. courseType: this.$route.query.type,
  13375. screenType: this.$route.query.screenType,
  13376. tcid2: this.$route.query.tcid,
  13377. tcid: "",
  13378. pptImgUrl: "",
  13379. pptImgUrl1: "",
  13380. commentText: "",
  13381. full: false,
  13382. sIsOpen: false,
  13383. IsLookOpen: false,
  13384. IsFollow: false,
  13385. pzDialog: false,
  13386. contentDialog: false,
  13387. mlDialog: false,
  13388. type: 1,
  13389. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  13390. sentenceList1: [],
  13391. tableJson: [],
  13392. tableJsonO: [],
  13393. wordJson: [],
  13394. wordJsonO: [],
  13395. vedio: [],
  13396. text: [],
  13397. textList: [],
  13398. line: [],
  13399. lineList: [],
  13400. chapTools: [],
  13401. chapToolList: [],
  13402. file: [],
  13403. fileC: [],
  13404. vedioTime: [],
  13405. upToolImg: "",
  13406. preTime: 0,
  13407. rateList: {
  13408. ca: 0,
  13409. },
  13410. rateParams: [],
  13411. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  13412. studyJuri: [
  13413. {
  13414. content: "",
  13415. cover: [],
  13416. upVedio: [],
  13417. upFile: [],
  13418. },
  13419. ],
  13420. isClose: 0,
  13421. plworkFile: [],
  13422. mr: require("../../assets/vedioPic.png"),
  13423. word: require("../../assets/icon/isWord.png"),
  13424. word2: require("../../assets/icon/word2.png"),
  13425. video: require("../../assets/icon/isVideo.png"),
  13426. noLikes: require("../../assets/icon/comment/noLikes.png"),
  13427. likes: require("../../assets/icon/comment/likes.png"),
  13428. scoreImg: require("../../assets/score.png"),
  13429. courseDetail: {},
  13430. reply: "",
  13431. isSelect: false,
  13432. chapInfo: [],
  13433. chapInfoList: [],
  13434. taskCount: 0,
  13435. imgList: [],
  13436. noImgList: [],
  13437. pzList: [],
  13438. timeWorkList: [],
  13439. PlTextList: [
  13440. "Excellent!",
  13441. "nice!",
  13442. "很有创意!",
  13443. "还不错哦~",
  13444. "继续努力哦~",
  13445. ],
  13446. isClickNav: "",
  13447. navId: "",
  13448. playerOptions: {
  13449. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13450. autoplay: false, //如果true,浏览器准备好时开始回放。
  13451. muted: false, // 默认情况下将会消除任何音频。
  13452. loop: false, // 导致视频一结束就重新开始。
  13453. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13454. language: "zh-CN",
  13455. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13456. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13457. sources: [
  13458. {
  13459. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13460. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13461. },
  13462. ],
  13463. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13464. // poster: dataRes.imgUrl, //你的封面地址
  13465. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13466. controlBar: {
  13467. timeDivider: true, //当前时间和持续时间的分隔符
  13468. durationDisplay: true, //显示持续时间
  13469. remainingTimeDisplay: false, //是否显示剩余时间功能
  13470. fullscreenToggle: true, //全屏按钮
  13471. },
  13472. },
  13473. playerOptions1: {
  13474. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13475. autoplay: false, //如果true,浏览器准备好时开始回放。
  13476. muted: false, // 默认情况下将会消除任何音频。
  13477. loop: false, // 导致视频一结束就重新开始。
  13478. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13479. language: "zh-CN",
  13480. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13481. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13482. sources: [
  13483. {
  13484. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13485. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13486. },
  13487. ],
  13488. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13489. // poster: dataRes.imgUrl, //你的封面地址
  13490. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13491. controlBar: {
  13492. timeDivider: true, //当前时间和持续时间的分隔符
  13493. durationDisplay: true, //显示持续时间
  13494. remainingTimeDisplay: false, //是否显示剩余时间功能
  13495. fullscreenToggle: true, //全屏按钮
  13496. },
  13497. },
  13498. playerO: {},
  13499. noneBtnImg: false,
  13500. proVisible: false,
  13501. proVisible2: false,
  13502. progress: 0,
  13503. isFinishSize: 0,
  13504. isAllSize: 0,
  13505. questionAnswer: "",
  13506. answerQ: "", //问答标题
  13507. rateJson: [],
  13508. wbCount: 0,
  13509. wordCount: 0,
  13510. mindCount: 0,
  13511. askCount: 0,
  13512. noteCount: 0,
  13513. mindNetWorkCount: 0,
  13514. libraryCount: 0,
  13515. workCount: 0,
  13516. timeCount: 0,
  13517. answerCount: 0,
  13518. trainCount: 0,
  13519. evalCount: 0,
  13520. dialogImageUrl: "",
  13521. pictureDialog: false,
  13522. toolTypeList: [],
  13523. dialogVisible1: false,
  13524. dialogVisible2: false,
  13525. dialogVisible3: false,
  13526. dialogVisible6: false,
  13527. dialogVisible4: false,
  13528. isNoHomeWork: false,
  13529. dialogVisible5: false,
  13530. dialogVisible5Teacher: false,
  13531. dialogVisibleChoice: false,
  13532. dialogVisibleChoiceTeacher: false,
  13533. answerDialogVisible: false,
  13534. answerDialogVisibleTeacher: false,
  13535. juriVisible: false,
  13536. timeDialogVisible: false,
  13537. replyDialogVisible: false,
  13538. toolDialogVisible: false,
  13539. replyIndex: 0,
  13540. replyPid: "",
  13541. radio: [],
  13542. isAsk: false,
  13543. askJson: {
  13544. askCount: 1,
  13545. askTitle: "",
  13546. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13547. },
  13548. testJson: {},
  13549. videoType:0,
  13550. checkJson: [],
  13551. askList: [],
  13552. answerList: [],
  13553. navList: [],
  13554. addPzDialog: false,
  13555. pzConText: "",
  13556. worksStudent: [],
  13557. isCloseList: [],
  13558. workStudent: [],
  13559. groupStudent: [],
  13560. groupStudentUid: [],
  13561. noWorksS: [],
  13562. isWorksS: [],
  13563. noWorksStudent: [],
  13564. toolindex: 0,
  13565. toolDetailIndex: null,
  13566. groupIndex: 0,
  13567. workTypeB: false,
  13568. workTypeC: false,
  13569. isAnswer: false,
  13570. isHovered: false,
  13571. isHovered1: false,
  13572. isHovered2: false,
  13573. commentTagShow:0,
  13574. timer: null,
  13575. opertimer: null,
  13576. showType: 0,
  13577. fileType: 0,
  13578. showPDF: false,
  13579. noteName: "",
  13580. evaJuri: [],
  13581. evalua: "",
  13582. eTitle: "",
  13583. eName: "",
  13584. eJson: {},
  13585. fid: "", //一级
  13586. sid: "", //二级
  13587. tid: "", //二级
  13588. typeMode: 1,
  13589. eJSONNum: 0,
  13590. Etype: 1,
  13591. data: {
  13592. meta: {
  13593. name: "example",
  13594. author: "dd@163.com",
  13595. version: "0.2",
  13596. },
  13597. format: "node_array",
  13598. data: [{ id: "root", isroot: true, topic: "" }],
  13599. },
  13600. fullDialogVisible: false,
  13601. fulltype: "",
  13602. fullUrl: "",
  13603. commentIndexJson: {},
  13604. Stbodywidth: 0,
  13605. ispzType: 0,
  13606. pzType: 1,
  13607. wScore: 0,
  13608. scoreDetail: "",
  13609. videoStart: false,
  13610. recorder: null,
  13611. groupJson: {},
  13612. islock: false,
  13613. groupJson2: {},
  13614. dialogVisibleGroup: false,
  13615. dialogVisibleGroup2: false,
  13616. updateGroupArray: [],
  13617. updateGroupUser: {},
  13618. deleteGroupUser: [],
  13619. deleteGroupArray: {},
  13620. checkChair: "",
  13621. checkDeleteGroup: [],
  13622. inviteCode: "",
  13623. courseGroupStudent: [],
  13624. courseGroupStudentUid: [],
  13625. courseGroup: {},
  13626. isGroup: false,
  13627. toolIndex: null,
  13628. tool: {},
  13629. isWorkTool: [
  13630. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13631. ], //, 40
  13632. videoJson: {},
  13633. toolType: 0,
  13634. checktoolArray: [],
  13635. vChapterData: [],
  13636. isUpdateToolDetail: false,
  13637. isUpdateToolDetail1: false,
  13638. updateToolDetailInner: "",
  13639. checkboxList: [],
  13640. plIndex: "",
  13641. worksSName2: "",
  13642. worksSid: "",
  13643. wordCloudData: [],
  13644. isPickStudent: [],
  13645. pzStype: 1,
  13646. downLoading: false,
  13647. greyType: false,
  13648. correctWord: [],
  13649. EnglishVoiceDialog: false,
  13650. englishVoiceJson: {},
  13651. englishVoiceJsonWork:[],
  13652. scoreList:{
  13653. listdata:[],
  13654. isScoreList:[],
  13655. },
  13656. classRoomHelperWidth: '85px',
  13657. orgArray:[],
  13658. oidArray:[],
  13659. refreshKey:0,
  13660. AIloading:[],
  13661. worksStudentCopy:[],
  13662. loopLoading:[],
  13663. markScoreVisible:false,
  13664. markScoretoolIndex:0,
  13665. markScoreUid:'',
  13666. markScoreTit:{},
  13667. markfullscreen:false,
  13668. xianObj: ["DOCX", "MD", "TXT", "PDF",'JPG',"PNG"],
  13669. markScoreworksStudent:[],
  13670. finalMarkList : -1,
  13671. isaiNum : 0,
  13672. dialogVisibleTxt:false,
  13673. TxtMd :'',
  13674. languageSetting: 0, //0中文 1繁体 2英文
  13675. toolListS:[],
  13676. commentDetailCopy:''
  13677. };
  13678. },
  13679. methods: {
  13680. getAIJ(){
  13681. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13682. let oid = res.data[0];
  13683. let org = res.data[1];
  13684. let oidArray = [];
  13685. let orgArray = [];
  13686. oid.forEach(i=>oidArray.push(i.oid))
  13687. org.forEach(i=>orgArray.push(i.oid))
  13688. this.orgArray = orgArray;
  13689. this.oidArray = oidArray;
  13690. })
  13691. },
  13692. // 评分弹框全屏
  13693. markFullScreenBtn(){
  13694. this.markfullscreen = !this.markfullscreen
  13695. },
  13696. insertMemorandum(_html){//保存行为操作
  13697. //variable
  13698. //btn
  13699. let params = [{
  13700. uid:this.userid,
  13701. courseId:this.id+(this.tcid2?this.tcid2:""),
  13702. content:_html
  13703. }]
  13704. console.log(params)
  13705. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13706. if(res.data==1){
  13707. console.log('保存操作成功')
  13708. }else{
  13709. console.log('保存操作失败')
  13710. }
  13711. }).catch(e=>{
  13712. console.log('保存操作失败')
  13713. console.log(e)
  13714. })
  13715. },
  13716. // 获取文档id
  13717. createFileid(url) {
  13718. let _this = this;
  13719. return new Promise((resolve, reject) => {
  13720. try {
  13721. _this.ajax
  13722. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  13723. url: url
  13724. })
  13725. .then(res => {
  13726. let _data = res.data.FunctionResponse;
  13727. if (_data.result && _data.result.id) {
  13728. resolve(_data.result.id);
  13729. } else {
  13730. resolve(1);
  13731. }
  13732. })
  13733. .catch(function(error) {
  13734. resolve(1);
  13735. });
  13736. } catch (e) {
  13737. resolve(1);
  13738. }
  13739. });
  13740. },
  13741. // 一键重置
  13742. resetLoopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13743. let jude = false
  13744. this.AIloading.forEach((e,index)=>{
  13745. if(index == toolIndex){
  13746. e.forEach(k=>{
  13747. if(k.loading == true)
  13748. jude=true
  13749. })
  13750. }
  13751. })
  13752. if(jude) return this.$message.info('正在进行AI评分中,请稍后')
  13753. this.$confirm('确认一键重置?')
  13754. .then(_ => {
  13755. this.allEmptyScoBtn(con,stage,task,toolIndex)
  13756. })
  13757. .catch(_ => {});
  13758. },
  13759. // 一键重置
  13760. async allEmptyScoBtn(con,stage,task,toolIndex){
  13761. for (let index = 0; index < con.length; index++) {
  13762. await this.allEmptySco(con[index].userid,stage,task,toolIndex)
  13763. }
  13764. this.$message.success('重置完成')
  13765. // this.refreshAssembly();
  13766. this.worksStudent.forEach((e,index)=>{
  13767. if(toolIndex == index){
  13768. console.log('6666');
  13769. e.forEach((i,inx)=>{
  13770. let mk = `markSco${index}${inx}`
  13771. this.$refs[mk][0].getData()
  13772. })
  13773. }
  13774. })
  13775. },
  13776. // 一键重置
  13777. allEmptySco(uid,stage,task,toolIndex){
  13778. let params = [{
  13779. cid: this.id,
  13780. uid:uid,
  13781. s:stage,
  13782. t:task,
  13783. tool:toolIndex ? toolIndex : ''
  13784. }];
  13785. return new Promise(resolve => { this.ajax
  13786. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  13787. .then(res => {
  13788. resolve(1);
  13789. })
  13790. .catch(err => {
  13791. console.error(err);
  13792. });
  13793. })
  13794. .catch(error => {
  13795. console.log(error);
  13796. });
  13797. },
  13798. // AI评分循环打分
  13799. async loopEva(con,tit,stage,task,toolIndex,toolDetail,taskDetail,toolList){
  13800. let jude = false
  13801. this.AIloading.forEach((e,index)=>{
  13802. if(index == toolIndex){
  13803. e.forEach(k=>{
  13804. if(k.loading == true)
  13805. jude=true
  13806. })
  13807. }
  13808. })
  13809. if(jude) return this.$message.info('请勿同时间进行AI评分')
  13810. this.AIloading.forEach((e,index)=>{
  13811. if(index == toolIndex){
  13812. e.forEach(k=>{
  13813. k.loading=true
  13814. })
  13815. }
  13816. })
  13817. this.loopLoading[toolIndex].loading=true
  13818. let laws = ""
  13819. let std = ""
  13820. let text = ''
  13821. if(toolList && toolList.eList && toolList.eList.length){
  13822. for (let i = 0; i < toolList.eList.length; i++) {
  13823. if(toolList.eList[i].isai == 1){
  13824. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  13825. }
  13826. }
  13827. for (let i = 0; i < toolList.eList.length; i++) {
  13828. if(toolList.eList[i].isai == 1){
  13829. let a = toolList.eList[i].detail
  13830. if (isNaN(parseFloat(a)) && a) {
  13831. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13832. }else{
  13833. var result = a
  13834. }
  13835. std += `纬度${i}:“${result}”, \n`;
  13836. }
  13837. }
  13838. for (let i = 0; i < toolList.eList.length; i++) {
  13839. if(toolList.eList[i].isai == 1){
  13840. let a = toolList.eList[i].detail
  13841. if (isNaN(parseFloat(a)) && a) {
  13842. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13843. }else{
  13844. var result = a
  13845. }
  13846. text += `{'${result}' : '评价等级0-5(数字)'},`;
  13847. }
  13848. }
  13849. }else{
  13850. let titRule = 0
  13851. let titRule2 = 0
  13852. tit.forEach((e, index) => {
  13853. if (!e.isai) {
  13854. e.isai = 1;
  13855. }
  13856. });
  13857. tit.forEach((e, index) => {
  13858. if (e.isai == 1) {
  13859. titRule2++
  13860. if (e.rule) {
  13861. titRule++
  13862. }
  13863. }
  13864. });
  13865. if (titRule != titRule2) {
  13866. this.AIloading.forEach((e,index)=>{
  13867. if(index == toolIndex){
  13868. e.forEach(k=>{
  13869. k.loading=false
  13870. })
  13871. }
  13872. })
  13873. this.loopLoading[toolIndex].loading=false
  13874. this.$message.info('细则努力生成中,请稍候……')
  13875. return
  13876. }
  13877. for (let i = 0; i < tit.length; i++) {
  13878. if(tit[i].isai == 1){
  13879. laws += ` 细则${i}:${tit[i].rule}, \n`;
  13880. }
  13881. }
  13882. for (let i = 0; i < tit.length; i++) {
  13883. if(tit[i].isai == 1){
  13884. let a = tit[i].detail
  13885. if (isNaN(parseFloat(a)) && a) {
  13886. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13887. }else{
  13888. var result = a
  13889. }
  13890. std += `纬度${i}:“${result}”, \n`;
  13891. }
  13892. }
  13893. for (let i = 0; i < tit.length; i++) {
  13894. if(tit[i].isai == 1){
  13895. let a = tit[i].detail
  13896. if (isNaN(parseFloat(a)) && a) {
  13897. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13898. }else{
  13899. var result = a
  13900. }
  13901. text += `{'${result}' : '评价等级0-5(数字)'},`;
  13902. }
  13903. }
  13904. }
  13905. let forAllList = []
  13906. // console.log('con',con)
  13907. for (let i = 0; i < con.length; i++) {
  13908. let _fileid = ''
  13909. let wok = con[i].works
  13910. // console.log('con',con);
  13911. // console.log('con[i].type',con[i].type);
  13912. if(con[i].type == 0 || con[i].type == 1 || con[i].type == 12){
  13913. let a = wok.slice(wok.lastIndexOf(".") + 1)
  13914. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  13915. _fileid = await this.createFileid(con[i].works);
  13916. }else{
  13917. this.AIloading[toolIndex][i].loading=false;
  13918. continue;
  13919. }
  13920. }
  13921. // console.log('con[i].type',con[i])
  13922. // console.log('con[i].type',con[i].type)
  13923. if(_fileid == 1 || con[i].type == 3){
  13924. this.AIloading[toolIndex][i].loading=false;
  13925. continue;
  13926. }
  13927. let msg = `NOTICE
  13928. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  13929. Language: ${this.getLang()}
  13930. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  13931. Instruction: Based on the context, follow "Format example", write content.
  13932. #目标#
  13933. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  13934. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  13935. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  13936. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  13937. ${con[i].type == 0 ? '提取图片内容进行评价' : ''}
  13938. #评分资料#
  13939. 评价标准:${std}
  13940. 评价细则:${laws}
  13941. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text }
  13942. 任务描述:${taskDetail}
  13943. 工具描述:${toolDetail}
  13944. #输出要求#
  13945. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  13946. “评语”控制在150字左右。
  13947. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  13948. #输出格式#
  13949. [${text}{'comment':'评语(150个汉字左右)'}]
  13950. `
  13951. let mk = `markSco${toolIndex}${i}`
  13952. let mkAwit = this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task,_fileid,con[i].type)
  13953. forAllList.push(mkAwit)
  13954. }
  13955. Promise.all(forAllList).then(values=>{
  13956. console.log('values',values)
  13957. this.$message({
  13958. message: "评价成功",
  13959. type: "success"
  13960. });
  13961. // this.refreshKey++
  13962. // this.worksStudent.forEach((e,index)=>{
  13963. // if(toolIndex == index){
  13964. // e.forEach((i,inx)=>{
  13965. // let mk = `markSco${index}${inx}`
  13966. // this.$refs[mk][0].getData()
  13967. // })
  13968. // }
  13969. // })
  13970. this.AIloading[toolIndex].forEach(e=>{
  13971. e.loading =false
  13972. })
  13973. this.loopLoading[toolIndex].loading = false;
  13974. }).catch(reason=>{
  13975. console.error('reasonreasonreasonreasonreason',reason);
  13976. // 输出“失败原因”
  13977. })
  13978. },
  13979. // 获取评价细则
  13980. againEva(i,k){
  13981. let msg = `NOTICE
  13982. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  13983. Language: ${this.getLang()}
  13984. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13985. Instruction: Based on the context, follow "Format example", write content.
  13986. #Context
  13987. ##要求
  13988. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  13989. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  13990. ##制定标准资料
  13991. 评价维度:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value}
  13992. 维度描述:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail}
  13993. # Format example
  13994. ==
  13995. 0 星,作业内容与作业要求无关;
  13996. 1 星,没有识别问题和需求;
  13997. 2 星,问题或需求没有被清晰理解或准确识别;
  13998. 3 星,问题或需求的一部分被识别;
  13999. 4 星,问题或需求的大部分被识别;
  14000. 5 星,问题或需求都被识别。
  14001. ==
  14002. `
  14003. let params = {
  14004. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  14005. message: [{"type":"text", "text":msg.replaceAll('\n', " ").replaceAll('*', "")}],
  14006. session_name: uuidv4(),
  14007. userId: this.userid,
  14008. file_ids: [],
  14009. model:'gpt-4o-2024-08-06'
  14010. };
  14011. // console.log('params',params);
  14012. this.ajax
  14013. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  14014. .then(response => {
  14015. let data = response.data.FunctionResponse;
  14016. // console.log("data", data);
  14017. if (data.message) {
  14018. let content = data.message;
  14019. var regex = new RegExp('==([^=]+)==');
  14020. let match = content.match(regex);
  14021. if (match) {
  14022. content = match[1].trim().replaceAll(' ','');
  14023. // 获取匹配到的内容并去除两端空格
  14024. // console.log('contentInsideDoubleEquals', content);
  14025. if(content.indexOf('0星') == -1 || content.indexOf('2星') == -1 || content.indexOf('3星') == -1 || content.indexOf('4星') == -1 || content.indexOf('5星') == -1){
  14026. console.log("未有星级。");
  14027. this.againEva(i,k)
  14028. return
  14029. }
  14030. // return
  14031. } else {
  14032. console.log("未找到匹配的内容。");
  14033. this.againEva(i,k)
  14034. return
  14035. }
  14036. let elist = JSON.parse(JSON.stringify(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]))
  14037. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  14038. elist.rule = JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  14039. this.$set(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,k,elist)
  14040. this.$forceUpdate();
  14041. let params2 = [
  14042. {
  14043. cid: this.id,
  14044. chapters: JSON.stringify(this.chapInfoList),
  14045. uid: this.userid,
  14046. unitIndex: this.courseType,
  14047. },
  14048. ];
  14049. this.ajax
  14050. .post(this.$store.state.api + "updateWorkNew4", params2)
  14051. .then((res) => {
  14052. this.getCourseDetail(2);
  14053. this.$forceUpdate();
  14054. })
  14055. .catch((err) => {
  14056. this.$message.error("网络不佳");
  14057. console.error(err);
  14058. });
  14059. // 进行进一步处理或解析outputContent
  14060. // } else {
  14061. // console.log("No match found for # Output section.");
  14062. // }
  14063. }
  14064. })
  14065. .catch(error => {
  14066. console.log(error);
  14067. });
  14068. },
  14069. // 关闭评分弹框
  14070. markScorehandleClose(done) {
  14071. // this.refreshKey++
  14072. this.worksStudent.forEach((e,index)=>{
  14073. if(this.markScoretoolIndex == index){
  14074. e.forEach((i,inx)=>{
  14075. let mk = `markSco${index}${inx}`
  14076. if(this.$refs[mk] && this.$refs[mk][0]){
  14077. this.$refs[mk][0].getData()
  14078. }
  14079. })
  14080. }
  14081. })
  14082. done();
  14083. },
  14084. // 关闭txtMd预览弹框
  14085. handleCloseTxt(done){
  14086. this.TxtMd = ''
  14087. done();
  14088. },
  14089. // Txt,Md作业查看
  14090. lookTxt(val){
  14091. this.dialogVisibleTxt =true
  14092. this.TxtMd = ''
  14093. getFile(val).then(res=>{
  14094. this.TxtMd = res.data;
  14095. })
  14096. },
  14097. // 组件刷新
  14098. refreshAssembly(val){
  14099. this.refreshKey++
  14100. // console.log(this.refreshKey)
  14101. },
  14102. updateLoading(payload){
  14103. this.AIloading[payload.val][payload.val2].loading=payload.val3
  14104. },
  14105. handleShow(toolIndex,val) {
  14106. let mk = `markSco${toolIndex}${val}`
  14107. // console.log(mk);
  14108. this.$refs[mk][0].getData()
  14109. },
  14110. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  14111. markScoreDig2(uname,worksStudent,uid,tidx,titlist,val = 0,toolList){
  14112. // console.log('this.AIloading',this.AIloading)
  14113. let jude = false
  14114. this.AIloading.forEach((e,index)=>{
  14115. if(index == tidx){
  14116. e.forEach(k=>{
  14117. if(k.loading == true)
  14118. jude=true
  14119. })
  14120. }
  14121. })
  14122. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  14123. if(val) return
  14124. // console.log(uname,worksStudent,uid,tidx,titlist)
  14125. this.markScoreTit=titlist;
  14126. this.markScoreUid=uid;
  14127. this.toolListS=toolList
  14128. this.markScoretoolIndex=tidx;
  14129. this.markScoreworksStudent = worksStudent;
  14130. this.markfullscreen = false;
  14131. this.markScoreVisible = true;
  14132. if( this.tType == 1 ){
  14133. this.insertMemorandum(`查看<span class="variable">${uname}</span>的作业`)
  14134. }
  14135. },
  14136. // 点击markScore显示评分框
  14137. markScoreDig(data){
  14138. // console.log('data',data)
  14139. let jude = false
  14140. this.AIloading.forEach((e,index)=>{
  14141. if(index == data.val2){
  14142. e.forEach(k=>{
  14143. if(k.loading == true)
  14144. jude=true
  14145. })
  14146. }
  14147. })
  14148. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  14149. this.markScoreTit=data.tit
  14150. this.markScoreUid=data.val
  14151. this.markScoretoolIndex=data.val2
  14152. this.markfullscreen = false
  14153. this.markScoreVisible = true
  14154. this.insertMemorandum(`查看<span class="variable">${data.uname}</span>的作业`)
  14155. },
  14156. // 刷新其他组件分数
  14157. refreshOther(v){
  14158. // console.log('v',v)
  14159. this.AIloading[v.tid].forEach((e,i)=>{
  14160. if(i == v.wid){
  14161. e.loading =false
  14162. }
  14163. })
  14164. // this.worksStudent.forEach((e,index)=>{
  14165. // if(toolIndex != index){
  14166. // e.forEach((i,inx)=>{
  14167. // let mk = `markSco${index}${inx}`
  14168. // this.$refs[mk][0].getData()
  14169. // })
  14170. // }
  14171. // })
  14172. },
  14173. updateDocSco(payload){
  14174. // console.log('payload',payload)
  14175. this.AIloading[payload.val][payload.val2].sco=payload.val3
  14176. },
  14177. gx(){
  14178. this.$forceUpdate();
  14179. },
  14180. isUpdateCorrect(t,p){
  14181. if(this.greyType == false){
  14182. this.isUpdateText = t;
  14183. this.greyType = true;
  14184. }else{
  14185. if(p == 1){
  14186. this.newEnglishList.engText = this.isUpdateText;
  14187. }else if(p == 2){
  14188. this.oldEnglishJson1.engText = this.isUpdateText;
  14189. }else if(p == 3){
  14190. this.newEnglishList.engText = this.isUpdateText;
  14191. }else{
  14192. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  14193. }
  14194. this.greyType = false
  14195. }
  14196. },
  14197. aiCorrect(t,p){
  14198. let aiText = "";
  14199. const loading = this.$loading.service({
  14200. background: "rgba(255, 255, 255)",
  14201. target: document.querySelectorAll(".loadingText")[0],
  14202. });
  14203. let param = {
  14204. model: "gpt-3.5-turbo",
  14205. temperature: 0,
  14206. max_tokens: 2048,
  14207. top_p: 1,
  14208. frequency_penalty: 0,
  14209. presence_penalty: 0,
  14210. messages: [
  14211. {
  14212. role: "user",
  14213. content:
  14214.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  14215. },
  14216. ],
  14217. uid: this.userid,
  14218. stream: false,
  14219. };
  14220. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  14221. (res) => {
  14222. if (
  14223. res.data.FunctionResponse &&
  14224. res.data.FunctionResponse.result &&
  14225. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  14226. ) {
  14227. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  14228. return;
  14229. }
  14230. aiText =
  14231. res.data.FunctionResponse.choices[0].message.content;
  14232. aiText = aiText.replace(/%/g,"%25");
  14233. // let w = "";
  14234. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  14235. // for(var k = 0;k<a.length;k++){
  14236. // //diffWordsWithSpace
  14237. // if(a.length > 1){
  14238. // if(a[k].added == true){
  14239. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  14240. // }else if(a[k].removed == true){
  14241. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  14242. // }else{
  14243. // w += '<span>' + a[k].value + '</span>';
  14244. // }
  14245. // }else{
  14246. // if(p == 1){
  14247. // w = this.newEnglishList.engText;
  14248. // }else if(p == 2){
  14249. // w = this.oldEnglishJson1.engText;
  14250. // }else if(p == 3){
  14251. // w = this.newEnglishList.engText;
  14252. // }else{
  14253. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  14254. // }
  14255. // }
  14256. // }
  14257. if(p == 1){
  14258. this.newEnglishList.engText = aiText;
  14259. }else if(p == 2){
  14260. this.oldEnglishJson1.engText = aiText;
  14261. }else if(p == 3){
  14262. this.newEnglishList.engText = aiText;
  14263. }else{
  14264. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  14265. }
  14266. loading.close();
  14267. },
  14268. (err) => {
  14269. console.log(err);
  14270. loading.close();
  14271. }
  14272. );
  14273. },
  14274. addToolChoose() {
  14275. if (!this.checktoolArray.length) {
  14276. this.$message.error("请选择要添加的任务");
  14277. return;
  14278. }
  14279. if (
  14280. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14281. this.taskCount
  14282. ].toolChoose[0].tool.length
  14283. ) {
  14284. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14285. this.taskCount
  14286. ].toolChoose[0].tool = this.checktoolArray;
  14287. } else {
  14288. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14289. this.taskCount
  14290. ].toolChoose.push({
  14291. tool: this.checktoolArray,
  14292. toolDetail: "",
  14293. toolType: 0,
  14294. askCount: 1,
  14295. askTitle: "",
  14296. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14297. });
  14298. }
  14299. let params = [
  14300. {
  14301. cid: this.id,
  14302. chapters: JSON.stringify(this.chapInfoList),
  14303. uid: this.userid,
  14304. unitIndex: this.courseType,
  14305. },
  14306. ];
  14307. this.ajax
  14308. .post(this.$store.state.api + "updateWorkNew4", params)
  14309. .then((res) => {
  14310. this.$message({
  14311. message: "添加成功",
  14312. type: "success",
  14313. });
  14314. this.checktoolArray = [];
  14315. this.getCourseDetail(2);
  14316. this.checkBz(
  14317. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14318. this.taskCount
  14319. ].toolChoose.length - 1
  14320. );
  14321. this.toolDialogVisible = false;
  14322. this.refreshCourse();
  14323. this.$forceUpdate();
  14324. })
  14325. .catch((err) => {
  14326. console.error(err);
  14327. });
  14328. },
  14329. checkBz(index) {
  14330. this.isUpdateToolDetail = false;
  14331. this.$forceUpdate();
  14332. setTimeout(() => {
  14333. document.scrollingElement.scrollTop =
  14334. document.querySelectorAll(".filebox")[index].offsetTop +
  14335. document.querySelector(".student_body").offsetTop;
  14336. }, 500);
  14337. },
  14338. updateToolDetail(i, type) {
  14339. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  14340. this.toolDetailIndex = i
  14341. this.isUpdateToolDetail1 = true;
  14342. setTimeout(() => {
  14343. this.updateToolDetailInner = JSON.parse(
  14344. JSON.stringify(
  14345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14346. this.taskCount
  14347. ].toolChoose[i].toolDetail
  14348. )
  14349. );
  14350. document.querySelector(".checkTextArea").focus();
  14351. }, 0);
  14352. } else if((this.isUpdateToolDetail1 && type != 2)){
  14353. // this.toolDetailIndex = i;
  14354. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14355. this.taskCount
  14356. ].toolChoose[i].toolDetail = JSON.parse(
  14357. JSON.stringify(this.updateToolDetailInner)
  14358. );
  14359. let params = [
  14360. {
  14361. cid: this.id,
  14362. chapters: JSON.stringify(this.chapInfoList),
  14363. uid: this.userid,
  14364. unitIndex: this.courseType,
  14365. },
  14366. ];
  14367. this.ajax
  14368. .post(this.$store.state.api + "updateWorkNew4", params)
  14369. .then((res) => {
  14370. this.isUpdateToolDetail1 = false;
  14371. this.$message({
  14372. message: "修改成功",
  14373. type: "success",
  14374. });
  14375. this.toolDetailIndex = null;
  14376. this.updateToolDetailInner = "";
  14377. this.getCourseDetail(2);
  14378. this.$forceUpdate();
  14379. })
  14380. .catch((err) => {
  14381. console.error(err);
  14382. });
  14383. } else if((this.isUpdateToolDetail1 && type == 2)){
  14384. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14385. this.taskCount
  14386. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  14387. JSON.stringify(this.updateToolDetailInner)
  14388. );
  14389. let params = [
  14390. {
  14391. cid: this.id,
  14392. chapters: JSON.stringify(this.chapInfoList),
  14393. uid: this.userid,
  14394. unitIndex: this.courseType,
  14395. },
  14396. ];
  14397. this.ajax
  14398. .post(this.$store.state.api + "updateWorkNew4", params)
  14399. .then((res) => {
  14400. this.$message({
  14401. message: "修改成功",
  14402. type: "success",
  14403. });
  14404. this.toolDetailIndex = i;
  14405. this.isUpdateToolDetail1 = true;
  14406. setTimeout(() => {
  14407. this.updateToolDetailInner = JSON.parse(
  14408. JSON.stringify(
  14409. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14410. this.taskCount
  14411. ].toolChoose[i].toolDetail
  14412. )
  14413. );
  14414. document.querySelector(".checkTextArea").focus();
  14415. }, 0);
  14416. this.getCourseDetail(2);
  14417. this.$forceUpdate();
  14418. })
  14419. .catch((err) => {
  14420. console.error(err);
  14421. });
  14422. }
  14423. },
  14424. jumpGj(i, j, k, l) {
  14425. this.refreshAssembly()
  14426. for (var z = 0; z < this.navList.length; z++) {
  14427. for (var q = 0; q < this.navList[z].task.length; q++) {
  14428. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  14429. this.navList[z].task[q].tool[w].isTool = false;
  14430. }
  14431. }
  14432. }
  14433. this.navList[i].task[j].tool[k].isTool =
  14434. !this.navList[i].task[j].tool[k].isTool;
  14435. var a = document.scrollingElement;
  14436. let target = document.querySelector(`#gj${k}`);
  14437. if (target) {
  14438. target.scrollIntoView(true);
  14439. setTimeout(() => {
  14440. a.scrollTop = a.scrollTop - 150;
  14441. }, 0);
  14442. }
  14443. this.navId = ""
  14444. let flag = this.courseType == i;
  14445. let flag2 = this.taskCount == j
  14446. if (l) {
  14447. this.courseType = i;
  14448. // this.navId = l;
  14449. this.taskCount = j;
  14450. this.selectPz();
  14451. this.getHomeWork();
  14452. this.getCourseDetail(2);
  14453. if(flag){
  14454. if(flag2){
  14455. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14456. }else{
  14457. 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>`)
  14458. }
  14459. }else{
  14460. 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>`)
  14461. }
  14462. }
  14463. // var b = this.$refs["bz" + k][0];
  14464. // a.scrollTop = b.offsetTop;
  14465. },
  14466. addTools2(i) {
  14467. if (i == 4) {
  14468. // this.openTools2(4);
  14469. this.$message.error("暂未开放");
  14470. return;
  14471. }
  14472. if (i == 45) {
  14473. // this.openTools2(45);
  14474. this.$message.error("暂未开放");
  14475. return;
  14476. }
  14477. if (i == 47) {
  14478. // this.openTools2(47);
  14479. this.$message.error("暂未开放");
  14480. return;
  14481. }
  14482. if (i == 49) {
  14483. // this.openTools2(49);
  14484. this.$message.error("暂未开放");
  14485. return;
  14486. }
  14487. if (i == 62) {
  14488. // this.openTools(itemTaskIndex, 62, toolIndex);
  14489. this.$message.error("暂未开放");
  14490. return;
  14491. }
  14492. if (i == 15) {
  14493. // this.openTools(itemTaskIndex, 15, toolIndex);
  14494. this.$message.error("暂未开放");
  14495. return;
  14496. }
  14497. if (i == 40) {
  14498. // this.openTools(itemTaskIndex, 40, toolIndex);
  14499. this.$message.error("暂未开放");
  14500. return;
  14501. }
  14502. if (i == 41) {
  14503. // this.openTools(itemTaskIndex, 41, toolIndex);
  14504. this.$message.error("暂未开放");
  14505. return;
  14506. }
  14507. if (i == 42) {
  14508. // this.openTools(itemTaskIndex, 42, toolIndex);
  14509. this.$message.error("暂未开放");
  14510. return;
  14511. }
  14512. if (this.checktoolArray.length > 0) {
  14513. if (this.checktoolArray.indexOf(i) != -1) {
  14514. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  14515. } else {
  14516. this.checktoolArray = [];
  14517. this.checktoolArray.push(i);
  14518. }
  14519. } else {
  14520. this.checktoolArray.push(i);
  14521. }
  14522. this.$forceUpdate();
  14523. },
  14524. jump() {
  14525. window.parent.postMessage({ tools: "43" }, "*");
  14526. },
  14527. getUpdateMore(f, checkboxList, searchTN, index) {
  14528. this.dialogVisibleMember = f;
  14529. this.checkboxList = checkboxList;
  14530. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  14531. this.plIndex = index;
  14532. },
  14533. setPlname(a) {
  14534. if (this.plworkFile.length) {
  14535. this.plworkFile[this.plIndex].username = a;
  14536. } else {
  14537. this.worksSName = a;
  14538. }
  14539. this.dialogVisibleMember = false;
  14540. },
  14541. previewImg(url,w) {
  14542. this.$hevueImgPreview(url);
  14543. if(w){
  14544. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14545. }
  14546. },
  14547. checkImg(list) {
  14548. if (!list.length) {
  14549. return;
  14550. }
  14551. this.$hevueImgPreview({
  14552. multiple: true, // 开启多图预览模式
  14553. imgList: list, // 需要预览的多图数组
  14554. });
  14555. },
  14556. change(val) {
  14557. console.log(val);
  14558. },
  14559. goTo(path) {
  14560. this.$router.push(path);
  14561. },
  14562. handlePictureCardPreview(url) {
  14563. this.dialogImageUrl = url;
  14564. this.pictureDialog = true;
  14565. },
  14566. clean(type) {
  14567. if (type == 1) {
  14568. this.studyJuri[0].cover.splice(0, 1);
  14569. } else if (type == 2) {
  14570. this.studyJuri[0].upVedio.splice(0, 1);
  14571. } else {
  14572. this.studyJuri[0].upFile.splice(0, 1);
  14573. }
  14574. },
  14575. clean2(index) {
  14576. this.plworkFile.splice(index, 1);
  14577. },
  14578. handleClose(done) {
  14579. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  14580. this.videoDetail.sources[0].src = "";
  14581. }
  14582. this.commentIndexJson = {};
  14583. done();
  14584. },
  14585. fullTools() {
  14586. this.full = !this.full;
  14587. },
  14588. imgChange(file, fileList, type) {
  14589. if (type == 1) {
  14590. var _tmp = this.studyJuri[0].cover;
  14591. } else if (type == 2) {
  14592. var _tmp = this.studyJuri[0].upVedio;
  14593. } else {
  14594. var _tmp = this.studyJuri[0].upFile;
  14595. }
  14596. this.noneBtnImg = _tmp.length >= 1;
  14597. },
  14598. setContent(bool) {
  14599. this.contentDialog = bool;
  14600. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  14601. document.querySelector(".workd_media").style.height = "650px";
  14602. } else if (document.querySelector(".workd_media")) {
  14603. document.querySelector(".workd_media").style.height = "auto";
  14604. }
  14605. },
  14606. setContent2(bool) {
  14607. this.mlDialog = bool;
  14608. if (
  14609. bool &&
  14610. this.contentDialog &&
  14611. document.querySelector(".workd_media")
  14612. ) {
  14613. document.querySelector(".workd_media").style.height = "650px";
  14614. } else if (document.querySelector(".workd_media")) {
  14615. document.querySelector(".workd_media").style.height = "auto";
  14616. }
  14617. },
  14618. openToolAll() {
  14619. this.toolDialogVisible = true;
  14620. },
  14621. addImg(e) {
  14622. var el = e.currentTarget;
  14623. // this.$message.success('触发上传')
  14624. el.getElementsByTagName("input")[0].click();
  14625. e.target.value = "";
  14626. },
  14627. addSelectAnswer() {
  14628. let params = [
  14629. {
  14630. uid: this.userid,
  14631. cid: this.id,
  14632. stage: this.courseType,
  14633. task: this.taskCount,
  14634. tool: this.toolindex,
  14635. content: this.selectAnswer.answer,
  14636. type: 7,
  14637. },
  14638. ];
  14639. this.ajax
  14640. .post(this.$store.state.api + "addCourseWorks", params)
  14641. .then((res) => {
  14642. this.$message({
  14643. message: "提交成功",
  14644. type: "success",
  14645. });
  14646. this.dialogVisibleSelect = false;
  14647. // this.selectAnswer = {};
  14648. this.selectSWorks();
  14649. this.selectStudent();
  14650. })
  14651. .catch((err) => {
  14652. this.$message.error("提交失败");
  14653. console.error(err);
  14654. });
  14655. },
  14656. addSelectAnswerTeacher() {
  14657. let params = [
  14658. {
  14659. uid: this.sStudent.userid,
  14660. cid: this.id,
  14661. stage: this.courseType,
  14662. task: this.taskCount,
  14663. tool: this.toolindex,
  14664. content: this.selectAnswer.answer,
  14665. type: 7,
  14666. },
  14667. ];
  14668. this.ajax
  14669. .post(this.$store.state.api + "addCourseWorks", params)
  14670. .then((res) => {
  14671. this.$message({
  14672. message: "提交成功",
  14673. type: "success",
  14674. });
  14675. this.dialogVisibleSelectTeacher = false;
  14676. // this.selectAnswer = {};
  14677. this.selectSWorks();
  14678. this.selectStudent();
  14679. })
  14680. .catch((err) => {
  14681. this.$message.error("提交失败");
  14682. console.error(err);
  14683. });
  14684. },
  14685. addSenWorks() {
  14686. for (var i = 0; i < this.sentenceList.length; i++) {
  14687. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14688. if (
  14689. this.sentenceList[i].chooseSenList[j] == undefined ||
  14690. this.sentenceList[i].chooseSenList[j] == ""
  14691. ) {
  14692. this.$message.error("请将答案填写完整!");
  14693. return;
  14694. }
  14695. }
  14696. }
  14697. let params = [
  14698. {
  14699. uid: this.userid,
  14700. cid: this.id,
  14701. stage: this.courseType,
  14702. task: this.taskCount,
  14703. tool: this.toolindex,
  14704. content: JSON.stringify(this.sentenceList),
  14705. type: 9,
  14706. },
  14707. ];
  14708. this.ajax
  14709. .post(this.$store.state.api + "addCourseWorks", params)
  14710. .then((res) => {
  14711. this.$message({
  14712. message: "提交成功",
  14713. type: "success",
  14714. });
  14715. this.dialogVisibleSentence = false;
  14716. // this.selectAnswer = {};
  14717. this.selectSWorks();
  14718. this.selectStudent();
  14719. })
  14720. .catch((err) => {
  14721. this.$message.error("提交失败");
  14722. console.error(err);
  14723. });
  14724. },
  14725. addSenWorksTeacher() {
  14726. for (var i = 0; i < this.sentenceList.length; i++) {
  14727. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14728. if (
  14729. this.sentenceList[i].chooseSenList[j] == undefined ||
  14730. this.sentenceList[i].chooseSenList[j] == ""
  14731. ) {
  14732. this.$message.error("请将答案填写完整!");
  14733. return;
  14734. }
  14735. }
  14736. }
  14737. let params = [
  14738. {
  14739. uid: this.sStudent.userid,
  14740. cid: this.id,
  14741. stage: this.courseType,
  14742. task: this.taskCount,
  14743. tool: this.toolindex,
  14744. content: JSON.stringify(this.sentenceList),
  14745. type: 9,
  14746. },
  14747. ];
  14748. this.ajax
  14749. .post(this.$store.state.api + "addCourseWorks", params)
  14750. .then((res) => {
  14751. this.$message({
  14752. message: "提交成功",
  14753. type: "success",
  14754. });
  14755. this.dialogVisibleSentenceTeacher = false;
  14756. // this.selectAnswer = {};
  14757. this.selectSWorks();
  14758. this.selectStudent();
  14759. })
  14760. .catch((err) => {
  14761. this.$message.error("提交失败");
  14762. console.error(err);
  14763. });
  14764. },
  14765. returnTableText() {
  14766. this.$confirm("确定还原此模板吗?", "提示", {
  14767. confirmButtonText: "确定",
  14768. cancelButtonText: "取消",
  14769. type: "warning",
  14770. })
  14771. .then(() => {
  14772. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  14773. })
  14774. .catch(() => {});
  14775. },
  14776. addTableWorks() {
  14777. let params = [
  14778. {
  14779. uid: this.userid,
  14780. cid: this.id,
  14781. stage: this.courseType,
  14782. task: this.taskCount,
  14783. tool: this.toolindex,
  14784. content: JSON.stringify(this.tableJson),
  14785. type: 10,
  14786. },
  14787. ];
  14788. this.ajax
  14789. .post(this.$store.state.api + "addCourseWorks", params)
  14790. .then((res) => {
  14791. this.$message({
  14792. message: "提交成功",
  14793. type: "success",
  14794. });
  14795. this.dialogVisibleTable = false;
  14796. // this.selectAnswer = {};
  14797. this.selectSWorks();
  14798. this.selectStudent();
  14799. })
  14800. .catch((err) => {
  14801. this.$message.error("提交失败");
  14802. console.error(err);
  14803. });
  14804. },
  14805. tableRowClassName({ row, rowIndex }) {
  14806. if ((rowIndex + 1) % 2 === 0) {
  14807. return "even_row";
  14808. } else {
  14809. return "";
  14810. }
  14811. },
  14812. addTableWorksTeacher() {
  14813. let params = [
  14814. {
  14815. uid: this.sStudent.userid,
  14816. cid: this.id,
  14817. stage: this.courseType,
  14818. task: this.taskCount,
  14819. tool: this.toolindex,
  14820. content: JSON.stringify(this.tableJson),
  14821. type: 10,
  14822. },
  14823. ];
  14824. this.ajax
  14825. .post(this.$store.state.api + "addCourseWorks", params)
  14826. .then((res) => {
  14827. this.$message({
  14828. message: "提交成功",
  14829. type: "success",
  14830. });
  14831. this.dialogVisibleTableTeacher = false;
  14832. // this.selectAnswer = {};
  14833. this.selectSWorks();
  14834. this.selectStudent();
  14835. })
  14836. .catch((err) => {
  14837. this.$message.error("提交失败");
  14838. console.error(err);
  14839. });
  14840. },
  14841. returnWordText() {
  14842. this.$confirm("确定还原此模板吗?", "提示", {
  14843. confirmButtonText: "确定",
  14844. cancelButtonText: "取消",
  14845. type: "warning",
  14846. })
  14847. .then(() => {
  14848. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  14849. })
  14850. .catch(() => {});
  14851. },
  14852. addWordWorks() {
  14853. let params = [
  14854. {
  14855. uid: this.userid,
  14856. cid: this.id,
  14857. stage: this.courseType,
  14858. task: this.taskCount,
  14859. tool: this.toolindex,
  14860. content: JSON.stringify(this.wordJson),
  14861. type: 13,
  14862. atool: 52,
  14863. },
  14864. ];
  14865. this.ajax
  14866. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14867. .then((res) => {
  14868. this.$message({
  14869. message: "提交成功",
  14870. type: "success",
  14871. });
  14872. this.dialogVisibleWord = false;
  14873. // this.selectAnswer = {};
  14874. this.selectSWorks();
  14875. this.selectStudent();
  14876. })
  14877. .catch((err) => {
  14878. this.$message.error("提交失败");
  14879. console.error(err);
  14880. });
  14881. },
  14882. addWordWorksTeacher() {
  14883. let params = [
  14884. {
  14885. uid: this.sStudent.userid,
  14886. cid: this.id,
  14887. stage: this.courseType,
  14888. task: this.taskCount,
  14889. tool: this.toolindex,
  14890. content: JSON.stringify(this.wordJson),
  14891. type: 13,
  14892. atool: 52,
  14893. },
  14894. ];
  14895. this.ajax
  14896. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14897. .then((res) => {
  14898. this.$message({
  14899. message: "提交成功",
  14900. type: "success",
  14901. });
  14902. this.dialogVisibleWordTeacher = false;
  14903. // this.selectAnswer = {};
  14904. this.selectSWorks();
  14905. this.selectStudent();
  14906. })
  14907. .catch((err) => {
  14908. this.$message.error("提交失败");
  14909. console.error(err);
  14910. });
  14911. },
  14912. addCourseWorksCopy(i){
  14913. let arr = this.workStudent[this.toolindex].filter(e=>{
  14914. return e.userid = this.userid
  14915. })
  14916. if (arr.length > 0) {
  14917. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  14918. confirmButtonText: "确定",
  14919. cancelButtonText: "取消",
  14920. type: "warning",
  14921. })
  14922. .then(() => {
  14923. this.addCourseWorks(i)
  14924. })
  14925. .catch(() => {});
  14926. }else{
  14927. this.addCourseWorks(i)
  14928. }
  14929. },
  14930. addCourseWorks(i) {
  14931. var typesql;
  14932. if (this.fileType === 0) {
  14933. typesql = 1;
  14934. } else if (this.fileType === 1) {
  14935. typesql = 4;
  14936. } else if (this.fileType === 2) {
  14937. typesql = 5;
  14938. } else if (this.fileType === 3) {
  14939. typesql = 12;
  14940. }
  14941. if (!this.studyJuri[0].cover[0].url) {
  14942. this.$message.error("请上传文件");
  14943. return;
  14944. }
  14945. let params = [
  14946. {
  14947. uid: this.userid,
  14948. cid: this.id,
  14949. stage: this.courseType,
  14950. task: i,
  14951. tool: this.toolindex,
  14952. content: this.studyJuri[0].cover[0].url,
  14953. type: typesql,
  14954. },
  14955. ];
  14956. this.ajax
  14957. .post(this.$store.state.api + "addCourseWorksR1", params)
  14958. .then((res) => {
  14959. this.$message({
  14960. message: "提交成功",
  14961. type: "success",
  14962. });
  14963. this.studyJuri[0].cover = [];
  14964. this.dialogVisible = false;
  14965. this.getCourseDetail(2);
  14966. })
  14967. .catch((err) => {
  14968. this.$message.error("提交失败");
  14969. console.error(err);
  14970. });
  14971. },
  14972. addCourseWorksPl(i) {
  14973. let _files = this.plworkFile;
  14974. var c = 1;
  14975. for (var k = 0; k < _files.length; k++) {
  14976. if (!_files[k].username) {
  14977. c = 2;
  14978. }
  14979. }
  14980. if (c == 2) {
  14981. this.$message.error("请填写学生姓名");
  14982. return;
  14983. }
  14984. let params = [
  14985. {
  14986. ateacher: this.userid,
  14987. cid: this.id,
  14988. stage: this.courseType,
  14989. task: i,
  14990. tool: this.toolindex,
  14991. content: JSON.stringify(_files),
  14992. },
  14993. ];
  14994. this.ajax
  14995. .post(this.$store.state.api + "addCourseWorksPl", params)
  14996. .then((res) => {
  14997. this.$message({
  14998. message: "提交成功",
  14999. type: "success",
  15000. });
  15001. this.plworkFile = [];
  15002. this.dialogVisiblePl = false;
  15003. this.getCourseDetail(2);
  15004. })
  15005. .catch((err) => {
  15006. this.$message.error("提交失败");
  15007. console.error(err);
  15008. });
  15009. },
  15010. addCourseWorks2(i) {
  15011. var typesql;
  15012. if (this.fileType === 0) {
  15013. typesql = 0;
  15014. } else if (this.fileType === 1) {
  15015. typesql = 1;
  15016. } else if (this.fileType === 2) {
  15017. typesql = 3;
  15018. } else if (this.fileType === 3) {
  15019. typesql = 12;
  15020. }
  15021. if (!this.studyJuri[0].cover[0].url) {
  15022. this.$message.error("请上传文件");
  15023. return;
  15024. }
  15025. let params = [
  15026. {
  15027. uid: this.userid,
  15028. cid: this.id,
  15029. stage: this.courseType,
  15030. task: i,
  15031. tool: this.toolindex,
  15032. content: JSON.stringify({
  15033. type: typesql,
  15034. groupIndex: this.groupIndex,
  15035. url: this.studyJuri[0].cover[0].url,
  15036. }),
  15037. type: 11,
  15038. atool: 49,
  15039. text: "",
  15040. },
  15041. ];
  15042. this.ajax
  15043. .post(this.$store.state.api + "addCourseWorks5", params)
  15044. .then((res) => {
  15045. this.$message({
  15046. message: "提交成功",
  15047. type: "success",
  15048. });
  15049. this.studyJuri[0].cover = [];
  15050. this.dialogVisibleGroupWork = false;
  15051. this.getCourseDetail(2);
  15052. })
  15053. .catch((err) => {
  15054. this.$message.error("提交失败");
  15055. console.error(err);
  15056. });
  15057. },
  15058. addEnglishWork() {
  15059. this.myAnList = this.$refs['engJson'].myAnswerList;
  15060. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  15061. this.$message.error("请输入作文标题和正文!");
  15062. return;
  15063. }
  15064. let params = [
  15065. {
  15066. uid: this.userid,
  15067. cid: this.id,
  15068. stage: this.courseType,
  15069. task: this.taskCount,
  15070. tool: this.englishToolIndex,
  15071. content: JSON.stringify(this.myAnList),
  15072. type: 16,
  15073. atool: 69,
  15074. text: "",
  15075. },
  15076. ];
  15077. this.ajax
  15078. .post(this.$store.state.api + "addCourseWorks5", params)
  15079. .then((res) => {
  15080. this.$message({
  15081. message: "提交成功",
  15082. type: "success",
  15083. });
  15084. this.myAnList = {};
  15085. this.englishList = {};
  15086. this.englishToolIndex = 0;
  15087. this.engDialogVisible = false;
  15088. this.selectSWorks();
  15089. this.selectStudent();
  15090. })
  15091. .catch((err) => {
  15092. this.$message.error("提交失败");
  15093. console.error(err);
  15094. });
  15095. },
  15096. addCourseWorksGong(i, data, tool) {
  15097. let params = [
  15098. {
  15099. uid: this.userid,
  15100. cid: this.id,
  15101. stage: this.courseType,
  15102. task: this.taskCount,
  15103. tool: i,
  15104. content: data,
  15105. type: 12,
  15106. atool: tool,
  15107. text: "",
  15108. },
  15109. ];
  15110. this.ajax
  15111. .post(this.$store.state.api + "addCourseWorks5", params)
  15112. .then((res) => {
  15113. this.$message({
  15114. message: "提交成功",
  15115. type: "success",
  15116. });
  15117. this.studyJuri[0].cover = [];
  15118. this.selectSWorks();
  15119. this.selectStudent();
  15120. })
  15121. .catch((err) => {
  15122. this.$message.error("提交失败");
  15123. console.error(err);
  15124. });
  15125. },
  15126. addCourseWorksGongTeacher(i, data, tool) {
  15127. let params = [
  15128. {
  15129. uid: this.sStudent.userid,
  15130. cid: this.id,
  15131. stage: this.courseType,
  15132. task: this.taskCount,
  15133. tool: i,
  15134. content: data,
  15135. type: 12,
  15136. atool: tool,
  15137. text: "",
  15138. },
  15139. ];
  15140. this.ajax
  15141. .post(this.$store.state.api + "addCourseWorks5", params)
  15142. .then((res) => {
  15143. this.$message({
  15144. message: "提交成功",
  15145. type: "success",
  15146. });
  15147. this.studyJuri[0].cover = [];
  15148. this.dialogVisibleWorks = false;
  15149. this.selectSWorks();
  15150. this.selectStudent();
  15151. })
  15152. .catch((err) => {
  15153. this.$message.error("提交失败");
  15154. console.error(err);
  15155. });
  15156. },
  15157. addCourseWorksGongPl(i, data, tool, type) {
  15158. let params = [
  15159. {
  15160. uid: this.sStudent.userid,
  15161. cid: this.id,
  15162. stage: this.courseType,
  15163. task: this.taskCount,
  15164. tool: i,
  15165. content: data,
  15166. type: type,
  15167. atool: tool,
  15168. text: "",
  15169. },
  15170. ];
  15171. this.ajax
  15172. .post(this.$store.state.api + "addCourseWorks5", params)
  15173. .then((res) => {
  15174. this.$message({
  15175. message: "提交成功",
  15176. type: "success",
  15177. });
  15178. this.studyJuri[0].cover = [];
  15179. this.dialogVisibleWorks = false;
  15180. this.selectSWorks();
  15181. this.selectStudent();
  15182. })
  15183. .catch((err) => {
  15184. this.$message.error("提交失败");
  15185. console.error(err);
  15186. });
  15187. },
  15188. addCourseWorksTeacher(i) {
  15189. var typesql;
  15190. if (this.sTool == 32) {
  15191. this.addCourseWorksGongTeacher(
  15192. this.toolindex,
  15193. this.studyJuri[0].cover[0].url,
  15194. this.sTool
  15195. );
  15196. return;
  15197. }
  15198. if (this.fileType === 0) {
  15199. typesql = 1;
  15200. } else if (this.fileType === 1) {
  15201. typesql = 4;
  15202. } else if (this.fileType === 2) {
  15203. typesql = 5;
  15204. } else if (this.fileType === 3) {
  15205. typesql = 12;
  15206. }
  15207. if (this.sTool == 50) {
  15208. this.addCourseWorksGongPl(
  15209. this.toolindex,
  15210. this.studyJuri[0].cover[0].url,
  15211. this.sTool,
  15212. typesql
  15213. );
  15214. return;
  15215. }
  15216. if (!this.studyJuri[0].cover[0].url) {
  15217. this.$message.error("请上传文件");
  15218. return;
  15219. }
  15220. let params = [
  15221. {
  15222. uid: this.sStudent.userid,
  15223. cid: this.id,
  15224. stage: this.courseType,
  15225. task: i,
  15226. tool: this.toolindex,
  15227. content: this.studyJuri[0].cover[0].url,
  15228. type: typesql,
  15229. ateacher: this.userid,
  15230. },
  15231. ];
  15232. this.ajax
  15233. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15234. .then((res) => {
  15235. this.$message({
  15236. message: "提交成功",
  15237. type: "success",
  15238. });
  15239. this.studyJuri[0].cover = [];
  15240. this.dialogVisibleWorks = false;
  15241. this.getCourseDetail(2);
  15242. })
  15243. .catch((err) => {
  15244. this.$message.error("提交失败");
  15245. console.error(err);
  15246. });
  15247. },
  15248. selectUploadStudent(type) {
  15249. const loading = this.$loading.service({
  15250. background: "rgba(255, 255, 255, 0.7)",
  15251. target: document.body,
  15252. });
  15253. let params = {
  15254. cid: this.uploadCid,
  15255. oid: this.oid,
  15256. cn: "",
  15257. };
  15258. this.ajax
  15259. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  15260. .then((res) => {
  15261. loading.close();
  15262. var studentK = [];
  15263. if (this.isWorksS[this.toolindex].length > 0) {
  15264. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  15265. studentK.push(this.isWorksS[this.toolindex][z].uid);
  15266. }
  15267. studentK = studentK.join(",");
  15268. }
  15269. this.uploadStudentJuri = res.data[0].filter((el) => {
  15270. return studentK.indexOf(el.userid) == -1;
  15271. });
  15272. if (this.worksSName && this.worksSid) {
  15273. this.uploadStudentJuri.push({
  15274. userid: this.worksSid,
  15275. name: this.worksSName,
  15276. });
  15277. }
  15278. if (type == 1) {
  15279. this.plworkFile = [];
  15280. this.dialogVisibleSname = true;
  15281. } else if (type == 2) {
  15282. this.dialogVisiblePl = true;
  15283. }
  15284. })
  15285. .catch((err) => {
  15286. loading.close();
  15287. console.error(err);
  15288. });
  15289. },
  15290. selectPickStudent() {
  15291. const loading = this.$loading.service({
  15292. background: "rgba(255, 255, 255, 0.7)",
  15293. target: document.body,
  15294. });
  15295. let params = {
  15296. cid: this.uploadCid,
  15297. oid: this.oid,
  15298. cn: "",
  15299. };
  15300. this.ajax
  15301. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  15302. .then((res) => {
  15303. loading.close();
  15304. this.uploadStudentJuri = res.data[0];
  15305. this.dialogVisiblePickPeople = true;
  15306. })
  15307. .catch((err) => {
  15308. loading.close();
  15309. console.error(err);
  15310. });
  15311. },
  15312. arrayToArray(arrayo, arrayt) {
  15313. let array1 = arrayo;
  15314. let array2 = arrayt;
  15315. let commonElements = [];
  15316. for (let i = 0; i < array1.length; i++) {
  15317. for (let j = 0; j < array2.length; j++) {
  15318. if (array1[i] === array2[j]) {
  15319. commonElements.push(array1[i]);
  15320. }
  15321. }
  15322. }
  15323. return commonElements;
  15324. },
  15325. selectWorksStudent() {
  15326. let params = {
  15327. oid: this.oid,
  15328. cid: this.courseDetail.juri,
  15329. };
  15330. this.ajax
  15331. .get(this.$store.state.api + "selectWorksStudent", params)
  15332. .then((res) => {
  15333. var a = res.data[0];
  15334. for (var i = 0; i < this.isWorksS.length; i++) {
  15335. this.noWorksS[i] = [];
  15336. var studentK = [];
  15337. if (this.isWorksS[i].length > 0) {
  15338. for (var z = 0; z < this.isWorksS[i].length; z++) {
  15339. studentK.push(this.isWorksS[i][z].uid);
  15340. }
  15341. studentK = studentK.join(",");
  15342. for (var j = 0; j < a.length; j++) {
  15343. if (studentK.indexOf(a[j].userid) == -1) {
  15344. if (this.tcid) {
  15345. // a[j].classid.indexOf(this.tcid) != -1
  15346. if (
  15347. this.arrayToArray(
  15348. a[j].classid.split(","),
  15349. this.tcid.split(",")
  15350. ).length
  15351. ) {
  15352. this.noWorksS[i].push({
  15353. student: a[j].name,
  15354. userid: a[j].userid,
  15355. });
  15356. }
  15357. } else {
  15358. this.noWorksS[i].push({
  15359. student: a[j].name,
  15360. userid: a[j].userid,
  15361. });
  15362. }
  15363. }
  15364. }
  15365. } else {
  15366. for (var k = 0; k < a.length; k++) {
  15367. if (this.tcid) {
  15368. if (
  15369. this.arrayToArray(
  15370. a[k].classid.split(","),
  15371. this.tcid.split(",")
  15372. ).length
  15373. ) {
  15374. this.noWorksS[i].push({
  15375. student: a[k].name,
  15376. userid: a[k].userid,
  15377. });
  15378. }
  15379. } else {
  15380. this.noWorksS[i].push({
  15381. student: a[k].name,
  15382. userid: a[k].userid,
  15383. });
  15384. }
  15385. }
  15386. }
  15387. }
  15388. this.$forceUpdate();
  15389. if (
  15390. Object.keys(this.commentDetail).length &&
  15391. Object.keys(this.commentIndexJson).length &&
  15392. !this.dialogVisibleScore && !this.dialogVisibleENScore
  15393. ) {
  15394. let a = 1;
  15395. let c = this.commentIndexJson;
  15396. if (
  15397. this.commentIndexJson.gindex ||
  15398. this.commentIndexJson.gindex === 0
  15399. ) {
  15400. for (
  15401. var i = 0;
  15402. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15403. i++
  15404. ) {
  15405. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  15406. groupA: for (var k = 0; k < _el.length; k++) {
  15407. let el = _el[k];
  15408. if (el.wid == this.commentDetail.wid) {
  15409. a = 2;
  15410. this.commentOther(
  15411. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  15412. this.commentIndexJson.toolIndex,
  15413. k,
  15414. this.commentIndexJson.gindex
  15415. );
  15416. break groupA;
  15417. }
  15418. }
  15419. }
  15420. if (a === 1) {
  15421. this.commentDetail = [];
  15422. this.commentIndexJson = {};
  15423. this.commentDialogVisible = false;
  15424. this.$message("此作业已被删除");
  15425. }
  15426. } else {
  15427. if (this.isGroup && this.commentIndexJson.gid) {
  15428. groupA: for (
  15429. var i = 0;
  15430. i < this.courseGroup.group.length;
  15431. i++
  15432. ) {
  15433. let _group = this.courseGroup.group[i];
  15434. if (_group.id == this.commentIndexJson.gid) {
  15435. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  15436. for (var k = 0; k < _el2.length; k++) {
  15437. let el2 = _el2[k];
  15438. if (el2.wid == this.commentDetail.wid) {
  15439. a = 2;
  15440. this.commentOther(
  15441. _el2[k],
  15442. this.commentIndexJson.toolIndex,
  15443. k,
  15444. null,
  15445. this.commentIndexJson.gid
  15446. );
  15447. break groupA;
  15448. }
  15449. }
  15450. }
  15451. }
  15452. }
  15453. if (a == 1) {
  15454. for (
  15455. var i = 0;
  15456. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15457. i++
  15458. ) {
  15459. let el =
  15460. this.worksStudent[this.commentIndexJson.toolIndex][i];
  15461. if (el.wid == this.commentDetail.wid) {
  15462. a = 2;
  15463. this.commentOther(
  15464. this.worksStudent[this.commentIndexJson.toolIndex][i],
  15465. this.commentIndexJson.toolIndex,
  15466. i
  15467. );
  15468. break;
  15469. }
  15470. }
  15471. }
  15472. if (a === 1) {
  15473. this.commentDetail = [];
  15474. this.commentIndexJson = {};
  15475. this.commentDialogVisible = false;
  15476. this.$message("此作业已被删除");
  15477. }
  15478. }
  15479. }
  15480. })
  15481. .catch((err) => {
  15482. console.error(err);
  15483. });
  15484. },
  15485. selectStudent() {
  15486. //学生查看自己作业
  15487. let params = {
  15488. uid: this.userid,
  15489. cid: this.id,
  15490. s: this.courseType,
  15491. t: this.taskCount,
  15492. };
  15493. this.ajax
  15494. .get(this.$store.state.api + "selectStudentWorks", params)
  15495. .then((res) => {
  15496. var a =
  15497. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15498. this.taskCount
  15499. ].toolChoose;
  15500. var b = res.data[0];
  15501. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15502. var y = [
  15503. "AVI",
  15504. "NAVI",
  15505. "MPEG",
  15506. "ASF",
  15507. "MOV",
  15508. "WMV",
  15509. "3GP",
  15510. "RM",
  15511. "RMVB",
  15512. "FLV",
  15513. "F4V",
  15514. "H.264",
  15515. "H.265",
  15516. "REAL VIDEO",
  15517. "MKV",
  15518. "WebM",
  15519. "HDDVD",
  15520. "MP4",
  15521. "MPG",
  15522. "M4V",
  15523. "MGV",
  15524. "OGV",
  15525. "QTM",
  15526. "STR",
  15527. "AMC",
  15528. "DVX",
  15529. "EVO",
  15530. "DAT",
  15531. "OGG",
  15532. "OGM",
  15533. ];
  15534. for (var i = 0; i < a.length; i++) {
  15535. this.workStudent[i] = [];
  15536. for (var j = 0; j < b.length; j++) {
  15537. if (i == b[j].tool) {
  15538. if (
  15539. (b[j].type == 1 ||
  15540. b[j].type == 4 ||
  15541. b[j].type == 5 ||
  15542. b[j].type == 6 ||
  15543. b[j].type == 12 ||
  15544. b[j].type == 7) &&
  15545. a[i].tool[0] != 15 &&
  15546. a[i].tool[0] != 4 &&
  15547. a[i].tool[0] != 45 &&
  15548. a[i].tool[0] != 50 &&
  15549. a[i].tool[0] != 32 &&
  15550. a[i].tool[0] != 57 &&
  15551. a[i].tool[0] != 52 &&
  15552. a[i].tool[0] != 69
  15553. ) {
  15554. if (
  15555. c.indexOf(
  15556. b[j].content
  15557. .split(".")
  15558. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15559. ) != -1 &&
  15560. a[i].tool[0] == 16 &&
  15561. b[j].atool != 50
  15562. ) {
  15563. this.workStudent[i].push({
  15564. works: b[j].content,
  15565. sName: b[j].name,
  15566. score: b[j].score,
  15567. img: b[j].img,
  15568. type: 1,
  15569. time: b[j].time,
  15570. userid: b[j].userid,
  15571. wid: b[j].id,
  15572. });
  15573. } else if (
  15574. y.indexOf(
  15575. b[j].content
  15576. .split(".")
  15577. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15578. ) != -1 &&
  15579. a[i].tool[0] == 16 &&
  15580. b[j].atool != 50
  15581. ) {
  15582. this.workStudent[i].push({
  15583. userid: b[j].userid,
  15584. wid: b[j].id,
  15585. works: b[j].content,
  15586. sName: b[j].name,
  15587. score: b[j].score,
  15588. img: b[j].img,
  15589. type: 3,
  15590. time: b[j].time,
  15591. });
  15592. } else if (b[j].type == 6 && b[j].atool != 50) {
  15593. this.workStudent[i].push({
  15594. userid: b[j].userid,
  15595. wid: b[j].id,
  15596. works: b[j].content,
  15597. sName: b[j].name,
  15598. score: b[j].score,
  15599. img: b[j].img,
  15600. type: 4,
  15601. time: b[j].time,
  15602. });
  15603. } else if (b[j].type == 7 && b[j].atool != 50) {
  15604. this.workStudent[i].push({
  15605. userid: b[j].userid,
  15606. wid: b[j].id,
  15607. works: b[j].content,
  15608. sName: b[j].name,
  15609. score: b[j].score,
  15610. img: b[j].img,
  15611. type: 5,
  15612. time: b[j].time,
  15613. });
  15614. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15615. this.workStudent[i].push({
  15616. works: b[j].content,
  15617. sName: b[j].name,
  15618. score: b[j].score,
  15619. img: b[j].img,
  15620. type: 12,
  15621. time: b[j].time,
  15622. userid: b[j].userid,
  15623. wid: b[j].id,
  15624. });
  15625. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15626. this.workStudent[i].push({
  15627. works: b[j].content,
  15628. sName: b[j].name,
  15629. score: b[j].score,
  15630. img: b[j].img,
  15631. type: 0,
  15632. time: b[j].time,
  15633. userid: b[j].userid,
  15634. wid: b[j].id,
  15635. });
  15636. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15637. this.workStudent[i].push({
  15638. works: b[j].content,
  15639. sName: b[j].name,
  15640. score: b[j].score,
  15641. img: b[j].img,
  15642. type: 0,
  15643. time: b[j].time,
  15644. userid: b[j].userid,
  15645. wid: b[j].id,
  15646. });
  15647. }
  15648. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15649. this.workStudent[i].push({
  15650. works: b[j].content,
  15651. sName: b[j].name,
  15652. score: b[j].score,
  15653. img: b[j].img,
  15654. type: 2,
  15655. time: b[j].time,
  15656. userid: b[j].userid,
  15657. wid: b[j].id,
  15658. });
  15659. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15660. //问卷
  15661. this.workStudent[i].push({
  15662. works: b[j].content,
  15663. sName: b[j].name,
  15664. score: b[j].score,
  15665. img: b[j].img,
  15666. type: 2,
  15667. time: b[j].time,
  15668. userid: b[j].userid,
  15669. wid: b[j].id,
  15670. });
  15671. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15672. //选择题
  15673. this.workStudent[i].push({
  15674. works: b[j].content,
  15675. sName: b[j].name,
  15676. score: b[j].score,
  15677. img: b[j].img,
  15678. type: 8,
  15679. time: b[j].time,
  15680. userid: b[j].userid,
  15681. wid: b[j].id,
  15682. });
  15683. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15684. //选择题
  15685. this.workStudent[i].push({
  15686. works: b[j].content,
  15687. sName: b[j].name,
  15688. score: b[j].score,
  15689. img: b[j].img,
  15690. type: 9,
  15691. time: b[j].time,
  15692. userid: b[j].userid,
  15693. wid: b[j].id,
  15694. });
  15695. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15696. //选择题
  15697. this.workStudent[i].push({
  15698. works: b[j].content,
  15699. sName: b[j].name,
  15700. score: b[j].score,
  15701. img: b[j].img,
  15702. type: 10,
  15703. time: b[j].time,
  15704. userid: b[j].userid,
  15705. wid: b[j].id,
  15706. });
  15707. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15708. //选择题
  15709. this.workStudent[i].push({
  15710. works: b[j].content,
  15711. sName: b[j].name,
  15712. score: b[j].score,
  15713. img: b[j].img,
  15714. type: 13,
  15715. time: b[j].time,
  15716. userid: b[j].userid,
  15717. wid: b[j].id,
  15718. });
  15719. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  15720. //选择题
  15721. this.workStudent[i].push({
  15722. works: b[j].content,
  15723. sName: b[j].name,
  15724. score: b[j].score,
  15725. img: b[j].img,
  15726. type: 12,
  15727. time: b[j].time,
  15728. userid: b[j].userid,
  15729. wid: b[j].id,
  15730. });
  15731. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  15732. //选择题
  15733. this.workStudent[i].push({
  15734. works: b[j].content,
  15735. sName: b[j].name,
  15736. score: b[j].score,
  15737. img: b[j].img,
  15738. type: 12,
  15739. time: b[j].time,
  15740. userid: b[j].userid,
  15741. wid: b[j].id,
  15742. });
  15743. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  15744. //选择题
  15745. this.workStudent[i].push({
  15746. works: b[j].content,
  15747. sName: b[j].name,
  15748. score: b[j].score,
  15749. img: b[j].img,
  15750. type: 15,
  15751. time: b[j].time,
  15752. userid: b[j].userid,
  15753. wid: b[j].id,
  15754. });
  15755. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15756. //英语写作
  15757. this.workStudent[i].push({
  15758. works: b[j].content,
  15759. sName: b[j].name,
  15760. score: b[j].score,
  15761. img: b[j].img,
  15762. type: 16,
  15763. time: b[j].time,
  15764. userid: b[j].userid,
  15765. wid: b[j].id,
  15766. aiCode: b[j].aiCode,
  15767. teacherCode: b[j].teacherCode
  15768. });
  15769. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15770. //英语写作
  15771. this.workStudent[i].push({
  15772. works: b[j].content,
  15773. sName: b[j].name,
  15774. score: b[j].score,
  15775. img: b[j].img,
  15776. type: 17,
  15777. time: b[j].time,
  15778. userid: b[j].userid,
  15779. wid: b[j].id,
  15780. });
  15781. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15782. //英语口语
  15783. this.workStudent[i].push({
  15784. works: b[j].content,
  15785. sName: b[j].name,
  15786. score: b[j].score,
  15787. img: b[j].img,
  15788. type: 14,
  15789. time: b[j].time,
  15790. userid: b[j].userid,
  15791. wid: b[j].id,
  15792. });
  15793. }
  15794. }
  15795. }
  15796. }
  15797. })
  15798. .catch((err) => {
  15799. console.error(err);
  15800. });
  15801. },
  15802. openVideo(w) {
  15803. this.videoDetail = {};
  15804. this.playerOptions1.sources[0].src = w.works;
  15805. this.videoDetail = this.playerOptions1;
  15806. this.videoVisible = true;
  15807. },
  15808. isLikes(wid, uid, t, c, isLikes,sName) {
  15809. if (isLikes == false) {
  15810. let params = [
  15811. {
  15812. wid: wid,
  15813. lid: uid,
  15814. t: t,
  15815. c: c,
  15816. },
  15817. ];
  15818. this.ajax
  15819. .post(this.$store.state.api + "insertComment", params)
  15820. .then((res) => {
  15821. this.$message({
  15822. message: "点赞成功",
  15823. type: "success",
  15824. });
  15825. this.selectSWorks();
  15826. this.selectStudent();
  15827. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  15828. })
  15829. .catch((err) => {
  15830. this.$message.error("点赞失败");
  15831. console.error(err);
  15832. });
  15833. } else {
  15834. let params = {
  15835. wid: wid,
  15836. lid: uid,
  15837. type: t,
  15838. };
  15839. this.ajax
  15840. .get(this.$store.state.api + "deleteComment", params)
  15841. .then((res) => {
  15842. this.$message({
  15843. message: "取消点赞成功",
  15844. type: "success",
  15845. });
  15846. this.selectSWorks();
  15847. this.selectStudent();
  15848. })
  15849. .catch((err) => {
  15850. console.error(err);
  15851. });
  15852. }
  15853. },
  15854. deleteComment(wid) {
  15855. this.$confirm("确定删除此评论吗?", "提示", {
  15856. confirmButtonText: "确定",
  15857. cancelButtonText: "取消",
  15858. type: "warning",
  15859. })
  15860. .then(() => {
  15861. let params = {
  15862. id: wid,
  15863. };
  15864. this.ajax
  15865. .get(this.$store.state.api + "deleteComment2", params)
  15866. .then((res) => {
  15867. this.$message({
  15868. message: "删除评论成功",
  15869. type: "success",
  15870. });
  15871. this.selectSWorks();
  15872. this.selectStudent();
  15873. })
  15874. .catch((err) => {
  15875. console.error(err);
  15876. });
  15877. })
  15878. .catch(() => {});
  15879. },
  15880. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  15881. this.commentIndexJson = {
  15882. toolIndex: toolIndex,
  15883. wIndex: wIndex,
  15884. gindex: gindex,
  15885. gid: gid,
  15886. };
  15887. this.commentDialogVisible = true;
  15888. // console.log('wwwwww',w)
  15889. if(JSON.stringify(this.commentDetailCopy) == JSON.stringify(w.works)) return
  15890. this.commentDetailCopy = w.works
  15891. this.commentDetail = [];
  15892. this.commentDetail = w;
  15893. if (w.works && w.type == 1) {
  15894. // this.pptImgUrl = "";
  15895. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15896. if (
  15897. a.indexOf(
  15898. w.works
  15899. .split(".")
  15900. [w.works.split(".").length - 1].toLocaleUpperCase()
  15901. ) != -1
  15902. ) {
  15903. let _uuurl = await this.checkLink(w.works);
  15904. this.pptImgUrl =
  15905. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15906. this.showPDF = false;
  15907. } else if (
  15908. w.works
  15909. .split(".")
  15910. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15911. ) {
  15912. this.pptImgUrl = w.works;
  15913. this.showPDF = true;
  15914. }
  15915. } else if (w.works && w.type == 3) {
  15916. this.videoDetail = {};
  15917. this.playerOptions1.sources[0].src = w.works;
  15918. this.videoDetail = this.playerOptions1;
  15919. // this.videoVisible = true;
  15920. } else if (w.works && w.type == 4) {
  15921. this.eScore = JSON.parse(w.works);
  15922. this.rateJson =
  15923. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15924. this.taskCount
  15925. ].toolChoose[toolIndex].rateJson;
  15926. } else if (w.works && w.type == 10) {
  15927. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15928. } else if (w.works && w.type == 12) {
  15929. getFile(this.commentDetail.works).then(res => {
  15930. this.commentDetail.works = res.data;
  15931. });
  15932. // this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15933. }else if (w.works && w.type == 13) {
  15934. this.wordJson =
  15935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15936. this.taskCount
  15937. ].toolChoose[toolIndex].wordJson;
  15938. }
  15939. },
  15940. async openScore(w, index) {
  15941. this.wScore = 0;
  15942. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15943. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15944. this.commentDetail = [];
  15945. if(w.type == 17){
  15946. this.dialogVisibleENScore = true;
  15947. }else{
  15948. this.dialogVisibleScore = true;
  15949. }
  15950. this.commentDetail = w;
  15951. if (w.works && w.type == 1) {
  15952. this.pptImgUrl = "";
  15953. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15954. if (
  15955. a.indexOf(
  15956. w.works
  15957. .split(".")
  15958. [w.works.split(".").length - 1].toLocaleUpperCase()
  15959. ) != -1
  15960. ) {
  15961. let _uuurl = await this.checkLink(w.works);
  15962. this.pptImgUrl =
  15963. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15964. this.showPDF = false;
  15965. } else if (
  15966. w.works
  15967. .split(".")
  15968. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15969. ) {
  15970. this.pptImgUrl = w.works;
  15971. this.showPDF = true;
  15972. }
  15973. } else if (w.works && w.type == 3) {
  15974. this.videoDetail = {};
  15975. this.playerOptions1.sources[0].src = w.works;
  15976. this.videoDetail = this.playerOptions1;
  15977. }else if(w.type == 17){
  15978. let englishVoiceJson = {}
  15979. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15980. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15981. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15982. .toolChoose[index].englishVoiceJson
  15983. : {};
  15984. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15985. }
  15986. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15987. },
  15988. addComment(wid, uid, t,detail) {
  15989. if (this.commentText == "") {
  15990. this.$message.error("请输入评论");
  15991. return;
  15992. }
  15993. let params2 = [
  15994. {
  15995. wid: wid,
  15996. lid: uid,
  15997. t: t,
  15998. },
  15999. ];
  16000. this.ajax
  16001. .post(this.$store.state.api + "getComment", params2)
  16002. .then((res) => {
  16003. if (res.data[0].length > 0) {
  16004. this.$message.error("一个作业只能评论一条");
  16005. } else {
  16006. let params = [
  16007. {
  16008. wid: wid,
  16009. lid: uid,
  16010. t: t,
  16011. c: this.commentText,
  16012. },
  16013. ];
  16014. this.ajax
  16015. .post(this.$store.state.api + "insertComment", params)
  16016. .then((res) => {
  16017. this.$message({
  16018. message: "评论成功",
  16019. type: "success",
  16020. });
  16021. this.commentText = "";
  16022. this.selectSWorks();
  16023. this.selectStudent();
  16024. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  16025. })
  16026. .catch((err) => {
  16027. this.$message.error("评论失败");
  16028. console.error(err);
  16029. });
  16030. }
  16031. })
  16032. .catch((err) => {
  16033. // this.$message.error("评论失败");
  16034. console.error(err);
  16035. });
  16036. },
  16037. scoreWork(wid,sName) {
  16038. if (this.wScore == 0) {
  16039. this.$message.error("请评分");
  16040. return;
  16041. }
  16042. let params = [
  16043. {
  16044. wid: wid,
  16045. score: JSON.stringify({
  16046. wScore: this.wScore,
  16047. detail: this.scoreDetail,
  16048. }),
  16049. },
  16050. ];
  16051. this.ajax
  16052. .post(this.$store.state.api + "scoreWork", params)
  16053. .then((res) => {
  16054. this.$message({
  16055. message: "评分成功",
  16056. type: "success",
  16057. });
  16058. this.wScore = 0;
  16059. this.scoreDetail = "";
  16060. this.dialogVisibleScore = false;
  16061. this.selectSWorks();
  16062. this.selectStudent();
  16063. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  16064. })
  16065. .catch((err) => {
  16066. this.$message.error("评分失败");
  16067. console.error(err);
  16068. });
  16069. },
  16070. openXz(w, i) {
  16071. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16072. .taskJson[this.taskCount].toolChoose[i].selectJson
  16073. ? JSON.parse(
  16074. JSON.stringify(
  16075. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16076. this.taskCount
  16077. ].toolChoose[i].selectJson
  16078. )
  16079. )
  16080. : { url: "", select: [], answer: [] };
  16081. var a = w.works.split(",");
  16082. for (var k = 0; k < a.length; k++) {
  16083. a[k] = parseInt(a[k]);
  16084. }
  16085. this.selectAnswer = { answer: a, stu: w.sName };
  16086. this.isSelect = true;
  16087. this.dialogVisibleSelect = true;
  16088. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16089. },
  16090. openSen(w, i) {
  16091. this.sentenceList1 = JSON.parse(w.works);
  16092. this.sentenceList1.stuName = w.sName;
  16093. this.dialogVisibleSentence1 = true;
  16094. },
  16095. openPj(w, toolindex) {
  16096. this.isStar = true;
  16097. this.eScore = JSON.parse(w);
  16098. this.rateJson =
  16099. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16100. this.taskCount
  16101. ].toolChoose[toolindex].rateJson;
  16102. this.studentEvalDialogVisible = true;
  16103. },
  16104. openEnglishEva(id,i){
  16105. let params = {
  16106. wid: id
  16107. };
  16108. this.ajax
  16109. .get(this.$store.state.api + "selectEngWork", params)
  16110. .then((res) => {
  16111. this.evaEngJson.message = res.data[0][0];
  16112. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  16113. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  16114. .toolChoose[i].englishList;
  16115. this.engEvaDialogVisible = true;
  16116. })
  16117. .catch((err) => {
  16118. console.error(err);
  16119. });
  16120. },
  16121. deleteWorks(id) {
  16122. this.$confirm("确定删除此作业吗?", "提示", {
  16123. confirmButtonText: "确定",
  16124. cancelButtonText: "取消",
  16125. type: "warning",
  16126. })
  16127. .then(() => {
  16128. let params = [
  16129. {
  16130. id: id
  16131. },
  16132. ];
  16133. this.ajax
  16134. .post(this.$store.state.api + "deleteCourseWork", params)
  16135. .then((res) => {
  16136. this.$message({
  16137. message: "删除成功",
  16138. type: "success",
  16139. });
  16140. this.selectStudent();
  16141. this.selectSWorks();
  16142. this.selectSLook();
  16143. })
  16144. .catch((err) => {
  16145. this.$message.error("网络异常");
  16146. console.error(err);
  16147. });
  16148. })
  16149. .catch(() => {});
  16150. },
  16151. // deleteWorksTwo(w,stage,task) {
  16152. // // let mk = `markSco${toolIndex}${wIndex}`
  16153. // // console.log(this.$refs[mk][0].homeworkVal)
  16154. // // let wid = this.$refs[mk][0].homeworkVal.id
  16155. // // console.log('wid',wid);
  16156. // this.$confirm("确定删除此作业吗?", "提示", {
  16157. // confirmButtonText: "确定",
  16158. // cancelButtonText: "取消",
  16159. // type: "warning",
  16160. // })
  16161. // .then(() => {
  16162. // let params = [
  16163. // {
  16164. // id: w.wid,
  16165. // cid: this.id,
  16166. // uid:w.userid,
  16167. // s:stage,
  16168. // t:task
  16169. // },
  16170. // ];
  16171. // // return console.log(params)
  16172. // this.ajax
  16173. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  16174. // .then((res) => {
  16175. // this.$message({
  16176. // message: "删除成功",
  16177. // type: "success",
  16178. // });
  16179. // this.selectStudent();
  16180. // this.selectSWorks();
  16181. // this.selectSLook();
  16182. // })
  16183. // .catch((err) => {
  16184. // this.$message.error("网络异常");
  16185. // console.error(err);
  16186. // });
  16187. // })
  16188. // .catch(() => {});
  16189. // },
  16190. noIsAi(){
  16191. this.$message.info('您暂未设置AI评分,请修改该工具的评价设置后使用。')
  16192. },
  16193. getLang(){
  16194. let lang = ''
  16195. if(this.languageSetting == 0){
  16196. lang = 'Chinese.'
  16197. }else if(this.languageSetting == 1){
  16198. lang = 'Traditional Chinese.'
  16199. }else if(this.languageSetting == 2){
  16200. lang = 'English.'
  16201. }
  16202. return lang
  16203. },
  16204. selectSWorks(gindex) {
  16205. //教师查看全部作业
  16206. let params = {
  16207. cid: this.id,
  16208. s: this.courseType,
  16209. t: this.taskCount,
  16210. };
  16211. this.ajax
  16212. .get(this.$store.state.api + "selectSWorks", params)
  16213. .then((res) => {
  16214. var a =
  16215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16216. this.taskCount
  16217. ].toolChoose;
  16218. var b = res.data[0];
  16219. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16220. var y = [
  16221. "AVI",
  16222. "NAVI",
  16223. "MPEG",
  16224. "ASF",
  16225. "MOV",
  16226. "WMV",
  16227. "3GP",
  16228. "RM",
  16229. "RMVB",
  16230. "FLV",
  16231. "F4V",
  16232. "H.264",
  16233. "H.265",
  16234. "REAL VIDEO",
  16235. "MKV",
  16236. "WebM",
  16237. "HDDVD",
  16238. "MP4",
  16239. "MPG",
  16240. "M4V",
  16241. "MGV",
  16242. "OGV",
  16243. "QTM",
  16244. "STR",
  16245. "AMC",
  16246. "DVX",
  16247. "EVO",
  16248. "DAT",
  16249. "OGG",
  16250. "OGM",
  16251. ];
  16252. var d = res.data[1];
  16253. var e = res.data[2];
  16254. var f = res.data[3];
  16255. let _worksStudent = [];
  16256. var _worksStudent2 = [];
  16257. for (var i = 0; i < a.length; i++) {
  16258. _worksStudent[i] = [];
  16259. _worksStudent2[i] = [];
  16260. if (
  16261. !this.isCloseList[i] ||
  16262. this.isCloseList[i].isClose == undefined
  16263. ) {
  16264. this.isCloseList[i] = { isClose: 0 };
  16265. }
  16266. this.groupStudent[i] = [];
  16267. this.groupStudentUid[i] = [];
  16268. if (this.isGroup) {
  16269. for (
  16270. var groupI = 0;
  16271. groupI < this.courseGroup.group.length;
  16272. groupI++
  16273. ) {
  16274. this.courseGroup.group[groupI].works[i] = [];
  16275. }
  16276. }
  16277. this.isWorksS[i] = [];
  16278. this.checkJson[i] = [];
  16279. if (a[i].tool[0] == 49) {
  16280. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  16281. this.groupStudent[i][gA] = [];
  16282. this.groupStudentUid[i][gA] = [];
  16283. _worksStudent[i][gA] = [];
  16284. _worksStudent2[i][gA] = [];
  16285. this.isCloseList[i][gA] = [];
  16286. for (var g = 0; g < f.length; g++) {
  16287. if (
  16288. f[g].ttype == 2 &&
  16289. this.tcid &&
  16290. this.arrayToArray(
  16291. (f[g].classid ? f[g].classid.split(",") : []),
  16292. this.tcid.split(",")
  16293. ).length == 0
  16294. ) {
  16295. continue;
  16296. }
  16297. let _classId = this.arrayToArray(
  16298. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  16299. this.classId ? this.classId.split(",") : []
  16300. )
  16301. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  16302. (f[g].classid ? f[g].classid.split(",") : []),
  16303. this.tcid.split(",")
  16304. ).length !== 0 || this.arrayToArray(
  16305. (f[g].classid ? f[g].classid.split(",") : []),
  16306. _classId
  16307. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  16308. this.groupStudent[i][gA].push(f[g]);
  16309. this.groupStudentUid[i][gA].push(f[g].userid);
  16310. }
  16311. }
  16312. }
  16313. this.$forceUpdate();
  16314. }
  16315. for (var j = 0; j < b.length; j++) {
  16316. if (
  16317. b[j].ttype == 2 &&
  16318. this.tcid &&
  16319. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  16320. .length == 0
  16321. ) {
  16322. continue;
  16323. }
  16324. var likesCount = 0;
  16325. var commentCount = 0;
  16326. var isLikes = false;
  16327. var commentJson = [];
  16328. var likeJson = [];
  16329. var data = b[j];
  16330. if (i == b[j].tool) {
  16331. if (data.type == 2 && a[i].tool[0] == 4) {
  16332. // if(JSON.parse(data.content)[0].anwer){
  16333. var checkL =
  16334. JSON.parse(data.content)[0].anwer instanceof Array
  16335. ? JSON.parse(data.content)[0].anwer
  16336. : JSON.parse(data.content)[0].anwer.split(",");
  16337. for (var z = 0; z < checkL.length; z++) {
  16338. if (!this.checkJson[i][z]) {
  16339. this.checkJson[i].push({
  16340. checkCount: [],
  16341. checkPerson: [],
  16342. rightPerson: [],
  16343. });
  16344. }
  16345. if (!this.checkJson[i][z].checkCount.length) {
  16346. this.checkJson[i][z].checkCount = [];
  16347. let _askItemCount = JSON.parse(data.content)[0].askJson
  16348. .askJson[z].askItem;
  16349. for (var aic = 0; aic < _askItemCount; aic++) {
  16350. this.checkJson[i][z].checkCount.push(0);
  16351. }
  16352. }
  16353. if (checkL[z] instanceof Array) {
  16354. if (
  16355. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  16356. checkL[z].sort().join(",")
  16357. ) {
  16358. this.checkJson[i][z].rightPerson.push(data.name);
  16359. }
  16360. for (var q = 0; q < checkL[z].length; q++) {
  16361. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16362. ? this.checkJson[i][z].checkPerson[
  16363. parseInt(checkL[z][q])
  16364. ].push(data.name)
  16365. : (this.checkJson[i][z].checkPerson[
  16366. parseInt(checkL[z][q])
  16367. ] = [data.name]);
  16368. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16369. ? this.checkJson[i][z].checkCount[
  16370. parseInt(checkL[z][q])
  16371. ]++
  16372. : (this.checkJson[i][z].checkCount[
  16373. parseInt(checkL[z][q])
  16374. ] = 1);
  16375. }
  16376. } else {
  16377. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  16378. this.checkJson[i][z].rightPerson.push(data.name);
  16379. }
  16380. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16381. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16382. ? this.checkJson[i][z].checkPerson[
  16383. parseInt(checkL[z])
  16384. ].push(data.name)
  16385. : (this.checkJson[i][z].checkPerson[
  16386. parseInt(checkL[z])
  16387. ] = [data.name]);
  16388. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16389. ? this.checkJson[i][z].checkCount[
  16390. parseInt(checkL[z])
  16391. ]++
  16392. : (this.checkJson[i][z].checkCount[
  16393. parseInt(checkL[z])
  16394. ] = 1);
  16395. }
  16396. }
  16397. }
  16398. } else if (data.type == 8 && a[i].tool[0] == 45) {
  16399. var checkL = JSON.parse(data.content)[0].anwer;
  16400. for (var z = 0; z < checkL.length; z++) {
  16401. if (!this.checkJson[i][z]) {
  16402. this.checkJson[i].push({
  16403. checkCount: [],
  16404. checkPerson: [],
  16405. rightPerson: [],
  16406. });
  16407. }
  16408. if (!this.checkJson[i][z].checkCount.length) {
  16409. this.checkJson[i][z].checkCount = [];
  16410. let _askItemCount = JSON.parse(data.content)[0].testJson
  16411. .testJson[z].testItem;
  16412. for (var aic = 0; aic < _askItemCount; aic++) {
  16413. this.checkJson[i][z].checkCount.push(0);
  16414. }
  16415. }
  16416. if (checkL[z] instanceof Array) {
  16417. if (
  16418. JSON.parse(data.content)[0]
  16419. .testJson.testJson[z].answer.sort()
  16420. .join(",") == checkL[z].sort().join(",")
  16421. ) {
  16422. this.checkJson[i][z].rightPerson.push(data.name);
  16423. }
  16424. for (var q = 0; q < checkL[z].length; q++) {
  16425. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16426. ? this.checkJson[i][z].checkPerson[
  16427. parseInt(checkL[z][q])
  16428. ].push(data.name)
  16429. : (this.checkJson[i][z].checkPerson[
  16430. parseInt(checkL[z][q])
  16431. ] = [data.name]);
  16432. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16433. ? this.checkJson[i][z].checkCount[
  16434. parseInt(checkL[z][q])
  16435. ]++
  16436. : (this.checkJson[i][z].checkCount[
  16437. parseInt(checkL[z][q])
  16438. ] = 1);
  16439. }
  16440. } else {
  16441. if (
  16442. JSON.parse(data.content)[0].testJson.testJson[z]
  16443. .answer == checkL[z]
  16444. ) {
  16445. this.checkJson[i][z].rightPerson.push(data.name);
  16446. }
  16447. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16448. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16449. ? this.checkJson[i][z].checkPerson[
  16450. parseInt(checkL[z])
  16451. ].push(data.name)
  16452. : (this.checkJson[i][z].checkPerson[
  16453. parseInt(checkL[z])
  16454. ] = [data.name]);
  16455. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16456. ? this.checkJson[i][z].checkCount[
  16457. parseInt(checkL[z])
  16458. ]++
  16459. : (this.checkJson[i][z].checkCount[
  16460. parseInt(checkL[z])
  16461. ] = 1);
  16462. }
  16463. }
  16464. }
  16465. } else if (data.type == 9 && a[i].tool[0] == 47) {
  16466. var checkL = JSON.parse(data.content);
  16467. for (var z = 0; z < checkL.length; z++) {
  16468. if (!this.checkJson[i][z]) {
  16469. this.checkJson[i].push({
  16470. checkCount: [],
  16471. checkPerson: [],
  16472. rightPerson: [],
  16473. });
  16474. }
  16475. this.checkJson[i][z].checkPerson.push(data.name);
  16476. if (
  16477. checkL[z].chooseSenList.toString() ==
  16478. checkL[z].rightAnswer.toString()
  16479. ) {
  16480. this.checkJson[i][z].rightPerson.push(data.name);
  16481. }
  16482. }
  16483. }
  16484. for (var k = 0; k < d.length; k++) {
  16485. //点赞
  16486. if (d[k].workId == b[j].id) {
  16487. likesCount++;
  16488. likeJson.push(d[k])
  16489. if (d[k].likesId == this.userid) {
  16490. isLikes = true;
  16491. }
  16492. }
  16493. }
  16494. for (var l = 0; l < e.length; l++) {
  16495. //评论
  16496. if (e[l].workId == b[j].id) {
  16497. if (e[l].comment != "") {
  16498. commentCount++;
  16499. commentJson.push({
  16500. commentText: e[l].comment,
  16501. commentTime: e[l].commentTime,
  16502. commentPeople: e[l].commentPeople,
  16503. userid: e[l].userid,
  16504. wid: e[l].id,
  16505. });
  16506. }
  16507. }
  16508. }
  16509. if (
  16510. (b[j].type == 1 ||
  16511. b[j].type == 4 ||
  16512. b[j].type == 5 ||
  16513. b[j].type == 6 ||
  16514. b[j].type == 12 ||
  16515. b[j].type == 7) &&
  16516. a[i].tool[0] != 15 &&
  16517. a[i].tool[0] != 4 &&
  16518. a[i].tool[0] != 45 &&
  16519. a[i].tool[0] != 50 &&
  16520. a[i].tool[0] != 32 &&
  16521. a[i].tool[0] != 57 &&
  16522. a[i].tool[0] != 52
  16523. ) {
  16524. if (
  16525. c.indexOf(
  16526. b[j].content
  16527. .split(".")
  16528. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16529. ) != -1 &&
  16530. a[i].tool[0] == 16 &&
  16531. b[j].atool != 50
  16532. ) {
  16533. let _works = {
  16534. userid: b[j].userid,
  16535. ateacher: b[j].ateacher,
  16536. wid: b[j].id,
  16537. works: b[j].content,
  16538. sName: b[j].name,
  16539. type: 1,
  16540. ttype:b[j].ttype,
  16541. time: b[j].time,
  16542. score: b[j].score,
  16543. img: b[j].img,
  16544. likesCount: likesCount,
  16545. commentCount: commentCount,
  16546. isLikes: isLikes,
  16547. commentJson: commentJson,
  16548. likeJson:likeJson
  16549. };
  16550. if (this.isGroup) {
  16551. let isGw = 1;
  16552. for (
  16553. var groupI = 0;
  16554. groupI < this.courseGroup.group.length;
  16555. groupI++
  16556. ) {
  16557. let gid = this.courseGroup.group[groupI].id;
  16558. if (
  16559. this.courseGroupStudentUid[gid].indexOf(
  16560. b[j].userid
  16561. ) != -1
  16562. ) {
  16563. isGw = 2;
  16564. this.courseGroup.group[groupI].works[i].push(_works);
  16565. break;
  16566. }
  16567. }
  16568. if (isGw == 1) {
  16569. _worksStudent[i].push(_works);
  16570. }
  16571. } else {
  16572. _worksStudent[i].push(_works);
  16573. }
  16574. _worksStudent2[i].push(_works);
  16575. this.isWorksS[i].push({
  16576. uid: b[j].userid,
  16577. sName: b[j].name,
  16578. });
  16579. } else if (
  16580. y.indexOf(
  16581. b[j].content
  16582. .split(".")
  16583. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16584. ) != -1 &&
  16585. a[i].tool[0] == 16 &&
  16586. b[j].atool != 50
  16587. ) {
  16588. let _works = {
  16589. userid: b[j].userid,
  16590. ateacher: b[j].ateacher,
  16591. wid: b[j].id,
  16592. works: b[j].content,
  16593. sName: b[j].name,
  16594. type: 3,
  16595. ttype:b[j].ttype,
  16596. time: b[j].time,
  16597. score: b[j].score,
  16598. img: b[j].img,
  16599. likesCount: likesCount,
  16600. commentCount: commentCount,
  16601. isLikes: isLikes,
  16602. commentJson: commentJson,
  16603. likeJson:likeJson
  16604. };
  16605. if (this.isGroup) {
  16606. let isGw = 1;
  16607. for (
  16608. var groupI = 0;
  16609. groupI < this.courseGroup.group.length;
  16610. groupI++
  16611. ) {
  16612. let gid = this.courseGroup.group[groupI].id;
  16613. if (
  16614. this.courseGroupStudentUid[gid].indexOf(
  16615. b[j].userid
  16616. ) != -1
  16617. ) {
  16618. isGw = 2;
  16619. this.courseGroup.group[groupI].works[i].push(_works);
  16620. break;
  16621. }
  16622. }
  16623. if (isGw == 1) {
  16624. _worksStudent[i].push(_works);
  16625. }
  16626. } else {
  16627. _worksStudent[i].push(_works);
  16628. }
  16629. _worksStudent2[i].push(_works);
  16630. this.isWorksS[i].push({
  16631. uid: b[j].userid,
  16632. sName: b[j].name,
  16633. });
  16634. } else if (b[j].type == 6 && b[j].atool != 50) {
  16635. let _works = {
  16636. userid: b[j].userid,
  16637. ateacher: b[j].ateacher,
  16638. wid: b[j].id,
  16639. works: b[j].content,
  16640. sName: b[j].name,
  16641. type: 4,
  16642. ttype:b[j].ttype,
  16643. time: b[j].time,
  16644. score: b[j].score,
  16645. img: b[j].img,
  16646. likesCount: likesCount,
  16647. commentCount: commentCount,
  16648. isLikes: isLikes,
  16649. commentJson: commentJson,
  16650. likeJson:likeJson
  16651. };
  16652. _worksStudent[i].push(_works);
  16653. _worksStudent2[i].push(_works);
  16654. this.isWorksS[i].push({
  16655. uid: b[j].userid,
  16656. sName: b[j].name,
  16657. });
  16658. } else if (b[j].type == 7 && b[j].atool != 50) {
  16659. let _work = {
  16660. userid: b[j].userid,
  16661. ateacher: b[j].ateacher,
  16662. wid: b[j].id,
  16663. works: b[j].content,
  16664. sName: b[j].name,
  16665. type: 5,
  16666. ttype:b[j].ttype,
  16667. time: b[j].time,
  16668. score: b[j].score,
  16669. img: b[j].img,
  16670. likesCount: likesCount,
  16671. commentCount: commentCount,
  16672. isLikes: isLikes,
  16673. commentJson: commentJson,
  16674. likeJson:likeJson
  16675. };
  16676. _worksStudent[i].push(_work);
  16677. _worksStudent2[i].push(_work);
  16678. this.isWorksS[i].push({
  16679. uid: b[j].userid,
  16680. sName: b[j].name,
  16681. });
  16682. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  16683. let _works = {
  16684. userid: b[j].userid,
  16685. ateacher: b[j].ateacher,
  16686. wid: b[j].id,
  16687. works: b[j].content,
  16688. sName: b[j].name,
  16689. type: 12,
  16690. ttype:b[j].ttype,
  16691. time: b[j].time,
  16692. score: b[j].score,
  16693. img: b[j].img,
  16694. likesCount: likesCount,
  16695. commentCount: commentCount,
  16696. isLikes: isLikes,
  16697. commentJson: commentJson,
  16698. likeJson:likeJson
  16699. };
  16700. if (this.isGroup) {
  16701. let isGw = 1;
  16702. for (
  16703. var groupI = 0;
  16704. groupI < this.courseGroup.group.length;
  16705. groupI++
  16706. ) {
  16707. let gid = this.courseGroup.group[groupI].id;
  16708. if (
  16709. this.courseGroupStudentUid[gid].indexOf(
  16710. b[j].userid
  16711. ) != -1
  16712. ) {
  16713. isGw = 2;
  16714. this.courseGroup.group[groupI].works[i].push(_works);
  16715. break;
  16716. }
  16717. }
  16718. if (isGw == 1) {
  16719. _worksStudent[i].push(_works);
  16720. }
  16721. } else {
  16722. _worksStudent[i].push(_works);
  16723. }
  16724. _worksStudent2[i].push(_works);
  16725. this.isWorksS[i].push({
  16726. uid: b[j].userid,
  16727. sName: b[j].name,
  16728. });
  16729. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  16730. let _works = {
  16731. userid: b[j].userid,
  16732. ateacher: b[j].ateacher,
  16733. wid: b[j].id,
  16734. works: b[j].content,
  16735. sName: b[j].name,
  16736. type: 0,
  16737. ttype:b[j].ttype,
  16738. time: b[j].time,
  16739. score: b[j].score,
  16740. img: b[j].img,
  16741. likesCount: likesCount,
  16742. commentCount: commentCount,
  16743. isLikes: isLikes,
  16744. commentJson: commentJson,
  16745. likeJson:likeJson
  16746. };
  16747. if (this.isGroup) {
  16748. let isGw = 1;
  16749. for (
  16750. var groupI = 0;
  16751. groupI < this.courseGroup.group.length;
  16752. groupI++
  16753. ) {
  16754. let gid = this.courseGroup.group[groupI].id;
  16755. if (
  16756. this.courseGroupStudentUid[gid].indexOf(
  16757. b[j].userid
  16758. ) != -1
  16759. ) {
  16760. isGw = 2;
  16761. this.courseGroup.group[groupI].works[i].push(_works);
  16762. break;
  16763. }
  16764. }
  16765. if (isGw == 1) {
  16766. _worksStudent[i].push(_works);
  16767. }
  16768. } else {
  16769. _worksStudent[i].push(_works);
  16770. }
  16771. _worksStudent2[i].push(_works);
  16772. this.isWorksS[i].push({
  16773. uid: b[j].userid,
  16774. sName: b[j].name,
  16775. });
  16776. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  16777. let _works = {
  16778. userid: b[j].userid,
  16779. ateacher: b[j].ateacher,
  16780. wid: b[j].id,
  16781. works: b[j].content,
  16782. sName: b[j].name,
  16783. type: 0,
  16784. ttype:b[j].ttype,
  16785. time: b[j].time,
  16786. score: b[j].score,
  16787. img: b[j].img,
  16788. likesCount: likesCount,
  16789. commentCount: commentCount,
  16790. isLikes: isLikes,
  16791. commentJson: commentJson,
  16792. likeJson:likeJson
  16793. };
  16794. if (this.isGroup) {
  16795. let isGw = 1;
  16796. for (
  16797. var groupI = 0;
  16798. groupI < this.courseGroup.group.length;
  16799. groupI++
  16800. ) {
  16801. let gid = this.courseGroup.group[groupI].id;
  16802. if (
  16803. this.courseGroupStudentUid[gid].indexOf(
  16804. b[j].userid
  16805. ) != -1
  16806. ) {
  16807. isGw = 2;
  16808. this.courseGroup.group[groupI].works[i].push(_works);
  16809. break;
  16810. }
  16811. }
  16812. if (isGw == 1) {
  16813. _worksStudent[i].push(_works);
  16814. }
  16815. } else {
  16816. _worksStudent[i].push(_works);
  16817. }
  16818. _worksStudent2[i].push(_works);
  16819. this.isWorksS[i].push({
  16820. uid: b[j].userid,
  16821. sName: b[j].name,
  16822. });
  16823. }
  16824. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  16825. let _works = {
  16826. userid: b[j].userid,
  16827. ateacher: b[j].ateacher,
  16828. wid: b[j].id,
  16829. works: b[j].content,
  16830. sName: b[j].name,
  16831. type: 2,
  16832. ttype:b[j].ttype,
  16833. time: b[j].time,
  16834. score: b[j].score,
  16835. img: b[j].img,
  16836. likesCount: likesCount,
  16837. commentCount: commentCount,
  16838. isLikes: isLikes,
  16839. commentJson: commentJson,
  16840. likeJson:likeJson
  16841. };
  16842. if (this.isGroup) {
  16843. let isGw = 1;
  16844. for (
  16845. var groupI = 0;
  16846. groupI < this.courseGroup.group.length;
  16847. groupI++
  16848. ) {
  16849. let gid = this.courseGroup.group[groupI].id;
  16850. if (
  16851. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  16852. -1
  16853. ) {
  16854. isGw = 2;
  16855. this.courseGroup.group[groupI].works[i].push(_works);
  16856. break;
  16857. }
  16858. }
  16859. if (isGw == 1) {
  16860. _worksStudent[i].push(_works);
  16861. }
  16862. } else {
  16863. _worksStudent[i].push(_works);
  16864. }
  16865. _worksStudent2[i].push(_works);
  16866. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16867. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  16868. //问卷
  16869. let _work = {
  16870. userid: b[j].userid,
  16871. ateacher: b[j].ateacher,
  16872. wid: b[j].id,
  16873. works: b[j].content,
  16874. sName: b[j].name,
  16875. type: 2,
  16876. ttype:b[j].ttype,
  16877. time: b[j].time,
  16878. score: b[j].score,
  16879. img: b[j].img,
  16880. likesCount: likesCount,
  16881. commentCount: commentCount,
  16882. isLikes: isLikes,
  16883. commentJson: commentJson,
  16884. likeJson:likeJson
  16885. };
  16886. _worksStudent[i].push(_work);
  16887. _worksStudent2[i].push(_work);
  16888. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16889. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  16890. //选择题
  16891. let _work = {
  16892. userid: b[j].userid,
  16893. ateacher: b[j].ateacher,
  16894. wid: b[j].id,
  16895. works: b[j].content,
  16896. sName: b[j].name,
  16897. type: 8,
  16898. ttype:b[j].ttype,
  16899. time: b[j].time,
  16900. score: b[j].score,
  16901. img: b[j].img,
  16902. likesCount: likesCount,
  16903. commentCount: commentCount,
  16904. isLikes: isLikes,
  16905. commentJson: commentJson,
  16906. likeJson:likeJson
  16907. };
  16908. _worksStudent[i].push(_work);
  16909. _worksStudent2[i].push(_work);
  16910. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16911. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  16912. //选择题
  16913. let _work = {
  16914. userid: b[j].userid,
  16915. ateacher: b[j].ateacher,
  16916. wid: b[j].id,
  16917. works: b[j].content,
  16918. sName: b[j].name,
  16919. type: 9,
  16920. ttype:b[j].ttype,
  16921. time: b[j].time,
  16922. score: b[j].score,
  16923. img: b[j].img,
  16924. likesCount: likesCount,
  16925. commentCount: commentCount,
  16926. isLikes: isLikes,
  16927. commentJson: commentJson,
  16928. likeJson:likeJson
  16929. };
  16930. _worksStudent[i].push(_work);
  16931. _worksStudent2[i].push(_work);
  16932. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16933. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16934. //选择题
  16935. let _work = {
  16936. userid: b[j].userid,
  16937. ateacher: b[j].ateacher,
  16938. wid: b[j].id,
  16939. works: b[j].content,
  16940. sName: b[j].name,
  16941. type: 10,
  16942. ttype:b[j].ttype,
  16943. time: b[j].time,
  16944. score: b[j].score,
  16945. img: b[j].img,
  16946. likesCount: likesCount,
  16947. commentCount: commentCount,
  16948. isLikes: isLikes,
  16949. commentJson: commentJson,
  16950. likeJson:likeJson
  16951. };
  16952. _worksStudent[i].push(_work);
  16953. _worksStudent2[i].push(_work);
  16954. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16955. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16956. //选择题
  16957. let _work = {
  16958. userid: b[j].userid,
  16959. ateacher: b[j].ateacher,
  16960. wid: b[j].id,
  16961. works: b[j].content,
  16962. sName: b[j].name,
  16963. type: 13,
  16964. ttype:b[j].ttype,
  16965. time: b[j].time,
  16966. score: b[j].score,
  16967. img: b[j].img,
  16968. likesCount: likesCount,
  16969. commentCount: commentCount,
  16970. isLikes: isLikes,
  16971. commentJson: commentJson,
  16972. likeJson:likeJson
  16973. };
  16974. _worksStudent[i].push(_work);
  16975. _worksStudent2[i].push(_work);
  16976. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16977. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16978. //选择题
  16979. let _work = {
  16980. userid: b[j].userid,
  16981. ateacher: b[j].ateacher,
  16982. wid: b[j].id,
  16983. works: b[j].content,
  16984. sName: b[j].name,
  16985. type: 16,
  16986. ttype:b[j].ttype,
  16987. time: b[j].time,
  16988. score: b[j].score,
  16989. img: b[j].img,
  16990. likesCount: likesCount,
  16991. commentCount: commentCount,
  16992. isLikes: isLikes,
  16993. commentJson: commentJson,
  16994. aiCode: b[j].aiCode,
  16995. teacherCode: b[j].teacherCode,
  16996. likeJson:likeJson
  16997. };
  16998. _worksStudent[i].push(_work);
  16999. _worksStudent2[i].push(_work);
  17000. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17001. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  17002. //选择题
  17003. let _work = {
  17004. userid: b[j].userid,
  17005. ateacher: b[j].ateacher,
  17006. wid: b[j].id,
  17007. works: b[j].content,
  17008. sName: b[j].name,
  17009. type: 17,
  17010. ttype:b[j].ttype,
  17011. time: b[j].time,
  17012. score: b[j].score,
  17013. img: b[j].img,
  17014. likesCount: likesCount,
  17015. commentCount: commentCount,
  17016. isLikes: isLikes,
  17017. commentJson: commentJson,
  17018. likeJson:likeJson
  17019. };
  17020. _worksStudent[i].push(_work);
  17021. _worksStudent2[i].push(_work);
  17022. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17023. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  17024. //交互视频
  17025. let _work = {
  17026. userid: b[j].userid,
  17027. ateacher: b[j].ateacher,
  17028. wid: b[j].id,
  17029. works: b[j].content,
  17030. sName: b[j].name,
  17031. type: 14,
  17032. ttype:b[j].ttype,
  17033. time: b[j].time,
  17034. score: b[j].score,
  17035. img: b[j].img,
  17036. likesCount: likesCount,
  17037. commentCount: commentCount,
  17038. isLikes: isLikes,
  17039. commentJson: commentJson,
  17040. likeJson:likeJson
  17041. };
  17042. _worksStudent[i].push(_work);
  17043. _worksStudent2[i].push(_work);
  17044. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17045. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  17046. let _gindex = JSON.parse(b[j].content);
  17047. if (
  17048. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  17049. b[j].userid
  17050. ) != -1
  17051. ) {
  17052. let _work = {
  17053. userid: b[j].userid,
  17054. ateacher: b[j].ateacher,
  17055. wid: b[j].id,
  17056. works: _gindex.url,
  17057. sName: b[j].name,
  17058. type: _gindex.type,
  17059. ttype:b[j].ttype,
  17060. time: b[j].time,
  17061. score: b[j].score,
  17062. img: b[j].img,
  17063. likesCount: likesCount,
  17064. commentCount: commentCount,
  17065. isLikes: isLikes,
  17066. commentJson: commentJson,
  17067. likeJson:likeJson
  17068. };
  17069. _worksStudent[i][_gindex.groupIndex].push(_work);
  17070. _worksStudent2[i][_gindex.groupIndex].push(_work);
  17071. }
  17072. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17073. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  17074. let _work = {
  17075. userid: b[j].userid,
  17076. ateacher: b[j].ateacher,
  17077. wid: b[j].id,
  17078. works: b[j].content,
  17079. sName: b[j].name ? b[j].name : b[j].userid,
  17080. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  17081. ttype:b[j].ttype,
  17082. time: b[j].time,
  17083. score: b[j].score,
  17084. img: b[j].img,
  17085. likesCount: likesCount,
  17086. commentCount: commentCount,
  17087. isLikes: isLikes,
  17088. commentJson: commentJson,
  17089. likeJson:likeJson
  17090. };
  17091. _worksStudent[i].push(_work);
  17092. _worksStudent2[i].push(_work);
  17093. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17094. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  17095. let _work = {
  17096. userid: b[j].userid,
  17097. ateacher: b[j].ateacher,
  17098. wid: b[j].id,
  17099. works: b[j].content,
  17100. sName: b[j].name ? b[j].name : b[j].userid,
  17101. type: 12,
  17102. ttype:b[j].ttype,
  17103. time: b[j].time,
  17104. score: b[j].score,
  17105. img: b[j].img,
  17106. likesCount: likesCount,
  17107. commentCount: commentCount,
  17108. isLikes: isLikes,
  17109. commentJson: commentJson,
  17110. likeJson:likeJson
  17111. };
  17112. _worksStudent[i].push(_work);
  17113. _worksStudent2[i].push(_work);
  17114. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17115. } else if (
  17116. a[i].tool[0] == 57 &&
  17117. b[j].atool == 57 &&
  17118. b[j].type == 12
  17119. ) {
  17120. let _work = {
  17121. userid: b[j].userid,
  17122. ateacher: b[j].ateacher,
  17123. wid: b[j].id,
  17124. works: b[j].content,
  17125. sName: b[j].name ? b[j].name : b[j].userid,
  17126. type: 12,
  17127. ttype:b[j].ttype,
  17128. time: b[j].time,
  17129. score: b[j].score,
  17130. img: b[j].img,
  17131. likesCount: likesCount,
  17132. commentCount: commentCount,
  17133. isLikes: isLikes,
  17134. commentJson: commentJson,
  17135. likeJson:likeJson
  17136. };
  17137. _worksStudent[i].push(_work);
  17138. _worksStudent2[i].push(_work);
  17139. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17140. } else if (
  17141. a[i].tool[0] == 57 &&
  17142. b[j].atool == 57 &&
  17143. b[j].type == 15
  17144. ) {
  17145. let _work = {
  17146. userid: b[j].userid,
  17147. ateacher: b[j].ateacher,
  17148. wid: b[j].id,
  17149. works: b[j].content,
  17150. sName: b[j].name ? b[j].name : b[j].userid,
  17151. type: 15,
  17152. ttype:b[j].ttype,
  17153. time: b[j].time,
  17154. score: b[j].score,
  17155. img: b[j].img,
  17156. likesCount: likesCount,
  17157. commentCount: commentCount,
  17158. isLikes: isLikes,
  17159. commentJson: commentJson,
  17160. likeJson:likeJson
  17161. };
  17162. _worksStudent[i].push(_work);
  17163. _worksStudent2[i].push(_work);
  17164. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17165. }
  17166. }
  17167. }
  17168. if (_worksStudent[i] && _worksStudent[i].length) {
  17169. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  17170. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  17171. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  17172. var scoreA = parseFloat(jscoreA);
  17173. var scoreB = parseFloat(jscoreB);
  17174. if (scoreA == scoreB) {
  17175. return b.likesCount - a.likesCount;
  17176. }
  17177. return scoreB - scoreA;
  17178. });
  17179. if (this.isGroup) {
  17180. for (
  17181. var groupI = 0;
  17182. groupI < this.courseGroup.group.length;
  17183. groupI++
  17184. ) {
  17185. this.courseGroup.group[groupI].works[i] =
  17186. this.courseGroup.group[groupI].works[i].sort(function (
  17187. a,
  17188. b
  17189. ) {
  17190. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  17191. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  17192. var scoreA = parseFloat(jscoreA);
  17193. var scoreB = parseFloat(jscoreB);
  17194. if (scoreA == scoreB) {
  17195. return b.likesCount - a.likesCount;
  17196. }
  17197. return scoreB - scoreA;
  17198. });
  17199. }
  17200. }
  17201. }
  17202. }
  17203. this.timeWorkList = _worksStudent2;
  17204. for (var i = 0; i < a.length; i++) {
  17205. for (var j = 0; j < b.length; j++) {
  17206. var data = b[j];
  17207. if (i == b[j].tool) {
  17208. if (data.type == 2 || data.type == 8) {
  17209. for (var z = 0; z < this.checkJson[i].length; z++) {
  17210. this.checkJson[i][z].checkPerent = [];
  17211. this.checkJson[i][z].right = Math.round(
  17212. (this.checkJson[i][z].rightPerson.length /
  17213. parseInt(_worksStudent[i].length)) *
  17214. 100
  17215. );
  17216. let aaaa = this.checkJson[i][z];
  17217. for (
  17218. var k = 0;
  17219. k < this.checkJson[i][z].checkCount.length;
  17220. k++
  17221. ) {
  17222. this.checkJson[i][z].checkPerent.push(
  17223. Math.round(
  17224. (this.checkJson[i][z].checkCount[k] /
  17225. parseInt(_worksStudent[i].length)) *
  17226. 100
  17227. )
  17228. );
  17229. }
  17230. }
  17231. } else if (data.type == 9) {
  17232. for (var z = 0; z < this.checkJson[i].length; z++) {
  17233. this.checkJson[i][z].checkPerent = [];
  17234. this.checkJson[i][z].right = Math.round(
  17235. (this.checkJson[i][z].rightPerson.length /
  17236. this.checkJson[i][z].checkPerson.length) *
  17237. 100
  17238. );
  17239. }
  17240. }
  17241. }
  17242. }
  17243. }
  17244. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  17245. this.joinGroup(gindex);
  17246. }
  17247. this.worksStudent = _worksStudent;
  17248. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  17249. console.log('88888999999')
  17250. this.worksStudentCopy=this.worksStudent
  17251. this.AIloading=[]
  17252. this.loopLoading=[]
  17253. this.worksStudent.forEach((e,index)=>{
  17254. this.loopLoading.push({loading:false})
  17255. this.AIloading.push([])
  17256. e.forEach(k=>{
  17257. this.AIloading[index].push({loading:false,sco:0})
  17258. })
  17259. })
  17260. this.refreshAssembly()
  17261. }
  17262. this.selectWorksStudent();
  17263. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17264. this.$nextTick(()=>{
  17265. setTimeout(()=>{
  17266. setTimeout(()=>{
  17267. this.panToolHeight('tool-'+ci);
  17268. }, 500)
  17269. }, 0)
  17270. })
  17271. }
  17272. })
  17273. .catch((err) => {
  17274. console.error(err);
  17275. });
  17276. },
  17277. pngToWhiteBg(file) {
  17278. const _file = file;
  17279. let read = new FileReader();
  17280. read.readAsDataURL(file); // 文件转base64
  17281. return new Promise((resolve, reject) => {
  17282. read.onload = (e) => {
  17283. let img = new Image();
  17284. img.src = e.target.result;
  17285. img.onload = async () => {
  17286. // 生成canvas
  17287. let canvas = document.createElement("canvas");
  17288. let context = canvas.getContext("2d");
  17289. // 绘制图片到canvas上
  17290. canvas.width = img.width;
  17291. canvas.height = img.height;
  17292. // 在canvas绘制前填充白色背景
  17293. context.fillStyle = "#fff";
  17294. context.fillRect(0, 0, canvas.width, canvas.height);
  17295. context.drawImage(img, 0, 0);
  17296. let base64 = canvas.toDataURL(file["type"], 1);
  17297. let newFile = this.dataUrlToFile(base64, _file);
  17298. resolve(newFile);
  17299. };
  17300. };
  17301. });
  17302. },
  17303. dataUrlToFile(dataurl, file) {
  17304. let arr = dataurl.split(","),
  17305. mime = arr[0].match(/:(.*?);/)[1],
  17306. bstr = atob(arr[1]),
  17307. n = bstr.length,
  17308. u8arr = new Uint8Array(n);
  17309. while (n--) {
  17310. u8arr[n] = bstr.charCodeAt(n);
  17311. }
  17312. // return new Blob([u8arr], { type: mime });
  17313. return new File([new Blob([u8arr], { type: mime })], file.name, {
  17314. type: mime,
  17315. });
  17316. },
  17317. async beforeUpload1(event, type, i) {
  17318. // this.$message.success('进入上传')
  17319. var file = "";
  17320. if (type == 5) {
  17321. file = event;
  17322. } else {
  17323. file = event.target.files[0];
  17324. }
  17325. var credentials = {
  17326. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17327. secretAccessKey: "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",
  17328. }; //秘钥形式的登录上传
  17329. window.AWS.config.update(credentials);
  17330. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17331. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17332. var _this = this;
  17333. _this.progress = 0;
  17334. _this.proVisible = true;
  17335. _this.isFinishSize = 0;
  17336. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  17337. var b = [
  17338. "DOC",
  17339. "DOCX",
  17340. "DOCM",
  17341. "DOTM",
  17342. "DOTX",
  17343. "PPTX",
  17344. "PPSX",
  17345. "PPT",
  17346. "PPS",
  17347. "PPTM",
  17348. "POTM",
  17349. "PPAM",
  17350. "POTX",
  17351. "PPSM",
  17352. ];
  17353. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17354. var photoA = [
  17355. "BMP",
  17356. "GIF",
  17357. "PNG",
  17358. "JPEG",
  17359. "JPEG",
  17360. "JPG",
  17361. "TIF",
  17362. "PCX",
  17363. "TGA",
  17364. "EXIF",
  17365. "FPX",
  17366. "SVG",
  17367. "APNG",
  17368. ];
  17369. // if (
  17370. // b.indexOf(
  17371. // file.name
  17372. // .split(".")
  17373. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17374. // ) != -1
  17375. // ) {
  17376. // if (file.size / 1024 / 1024 > 10) {
  17377. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  17378. // return;
  17379. // }
  17380. // } else if (
  17381. // excelA.indexOf(
  17382. // file.name
  17383. // .split(".")
  17384. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17385. // ) != "-1"
  17386. // ) {
  17387. // if (file.size / 1024 / 1024 > 5) {
  17388. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  17389. // return;
  17390. // }
  17391. // }
  17392. if (
  17393. photoA.indexOf(
  17394. file.name
  17395. .split(".")
  17396. [file.name.split(".").length - 1].toLocaleUpperCase()
  17397. ) != -1 &&
  17398. type != 4
  17399. ) {
  17400. // const blob = await imageConversion.compress(file, 0.8)
  17401. file = await this.pngToWhiteBg(file);
  17402. const blob = await imageConversion.compressAccurately(file, 256);
  17403. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17404. file = new File([blob], file.name, { type: file.type });
  17405. }
  17406. if (file) {
  17407. var params = {
  17408. Key:
  17409. file.name.split(".")[0] +
  17410. new Date().getTime() +
  17411. "." +
  17412. file.name.split(".")[file.name.split(".").length - 1],
  17413. ContentType: file.type,
  17414. Body: file,
  17415. "Access-Control-Allow-Credentials": "*",
  17416. ACL: "public-read",
  17417. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17418. var options = {
  17419. // partSize: 2048 * 1024 * 1024,
  17420. partSize: 1024 * 1024 * 1024,
  17421. queueSize: 2,
  17422. leavePartsOnError: true,
  17423. };
  17424. bucket
  17425. .upload(params, options)
  17426. .on("httpUploadProgress", function (evt) {
  17427. //这里可以写进度条
  17428. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17429. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  17430. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  17431. })
  17432. .send(function (err, data) {
  17433. _this.progress = 100;
  17434. _this.isFinishSize = _this.isAllSize;
  17435. setTimeout(() => {
  17436. _this.proVisible = false;
  17437. }, 1000);
  17438. if (err) {
  17439. var a = _this.$refs.upload1.uploadFiles;
  17440. a.splice(a.length - 1, a.length);
  17441. _this.$message.error("上传失败");
  17442. } else {
  17443. // _this.$message.success('上传成功')
  17444. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17445. var c = [
  17446. "AVI",
  17447. "NAVI",
  17448. "MPEG",
  17449. "ASF",
  17450. "MOV",
  17451. "WMV",
  17452. "3GP",
  17453. "RM",
  17454. "RMVB",
  17455. "FLV",
  17456. "F4V",
  17457. "H.264",
  17458. "H.265",
  17459. "REAL VIDEO",
  17460. "MKV",
  17461. "WebM",
  17462. "HDDVD",
  17463. "MP4",
  17464. "MPG",
  17465. "M4V",
  17466. "MGV",
  17467. "OGV",
  17468. "QTM",
  17469. "STR",
  17470. "AMC",
  17471. "DVX",
  17472. "EVO",
  17473. "DAT",
  17474. "OGG",
  17475. "OGM",
  17476. ];
  17477. if (type == 1) {
  17478. _this.studyJuri[0].cover.push({
  17479. name: file.name,
  17480. url: data.Location,
  17481. uid: file.uid,
  17482. });
  17483. if (
  17484. c.indexOf(
  17485. _this.studyJuri[0].cover[0].url
  17486. .split(".")
  17487. [
  17488. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17489. ].toLocaleUpperCase()
  17490. ) != -1
  17491. ) {
  17492. _this.fileType = 2;
  17493. } else if (
  17494. b.indexOf(
  17495. _this.studyJuri[0].cover[0].url
  17496. .split(".")
  17497. [
  17498. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17499. ].toLocaleUpperCase()
  17500. ) != -1
  17501. ) {
  17502. _this.fileType = 1;
  17503. } else if (
  17504. photoA.indexOf(
  17505. _this.studyJuri[0].cover[0].url
  17506. .split(".")
  17507. [
  17508. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17509. ].toLocaleUpperCase()
  17510. ) != -1
  17511. ) {
  17512. _this.fileType = 0;
  17513. } else {
  17514. _this.fileType = 3;
  17515. }
  17516. _this.imgChange(null, null, type);
  17517. } else if (type == 2) {
  17518. _this.upToolImg = data.Location;
  17519. _this.imgChange(null, null, type);
  17520. _this.addCourseWorks(i);
  17521. } else if (type == 4) {
  17522. _this.addPz("3", data.Location);
  17523. } else if (type == 5) {
  17524. _this.addImgDrawImG(data.Location);
  17525. } else if (type == 6) {
  17526. var _ftype = 1;
  17527. if (
  17528. c.indexOf(
  17529. data.Location.split(".")[
  17530. data.Location.split(".").length - 1
  17531. ].toLocaleUpperCase()
  17532. ) != -1
  17533. ) {
  17534. _ftype = 5;
  17535. } else if (
  17536. b.indexOf(
  17537. data.Location.split(".")[
  17538. data.Location.split(".").length - 1
  17539. ].toLocaleUpperCase()
  17540. ) != -1
  17541. ) {
  17542. _ftype = 4;
  17543. } else {
  17544. _ftype = 1;
  17545. }
  17546. _this.plworkFile.push({
  17547. name: file.name,
  17548. url: data.Location,
  17549. uid: file.uid,
  17550. fileType: _ftype,
  17551. username:
  17552. _this.plworkFile.length > 10
  17553. ? _this.plworkFile.length + 1
  17554. : "0" + (_this.plworkFile.length + 1),
  17555. });
  17556. } else if (type == 7) {
  17557. _this.addCourseWorksGong(i, data.Location, 32);
  17558. } else if (type == 8) {
  17559. _this.addCourseWorksGong(i, data.Location, 57);
  17560. }
  17561. _this.imgChange(null, null, type);
  17562. console.log(data.Location);
  17563. // _this.$message.success('上传成功'+data.Location)
  17564. }
  17565. });
  17566. }
  17567. },
  17568. async beforeUpload3(event, type, i) {
  17569. // this.$message.success('进入上传')
  17570. let file = "";
  17571. let cfindex2 = 0;
  17572. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  17573. file = event.target.files[cfindex];
  17574. var credentials = {
  17575. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17576. secretAccessKey: "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",
  17577. }; //秘钥形式的登录上传
  17578. window.AWS.config.update(credentials);
  17579. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17580. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17581. var _this = this;
  17582. // _this.progress = 0;
  17583. _this.proVisible2 = true;
  17584. var b = [
  17585. "DOC",
  17586. "DOCX",
  17587. "DOCM",
  17588. "DOTM",
  17589. "DOTX",
  17590. "PPTX",
  17591. "PPSX",
  17592. "PPT",
  17593. "PPS",
  17594. "PPTM",
  17595. "POTM",
  17596. "PPAM",
  17597. "POTX",
  17598. "PPSM",
  17599. ];
  17600. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17601. var photoA = [
  17602. "BMP",
  17603. "GIF",
  17604. "PNG",
  17605. "JPEG",
  17606. "JPG",
  17607. "TIF",
  17608. "PCX",
  17609. "TGA",
  17610. "EXIF",
  17611. "FPX",
  17612. "SVG",
  17613. "APNG",
  17614. ];
  17615. if (
  17616. photoA.indexOf(
  17617. file.name
  17618. .split(".")
  17619. [file.name.split(".").length - 1].toLocaleUpperCase()
  17620. ) != -1 &&
  17621. type != 4
  17622. ) {
  17623. // const blob = await imageConversion.compress(file, 0.8)
  17624. file = await this.pngToWhiteBg(file);
  17625. const blob = await imageConversion.compressAccurately(file, 256);
  17626. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17627. file = new File([blob], file.name, { type: file.type });
  17628. }
  17629. if (file) {
  17630. var params = {
  17631. Key:
  17632. file.name.split(".")[0] +
  17633. new Date().getTime() +
  17634. "." +
  17635. file.name.split(".")[file.name.split(".").length - 1],
  17636. ContentType: file.type,
  17637. Body: file,
  17638. "Access-Control-Allow-Credentials": "*",
  17639. ACL: "public-read",
  17640. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17641. var options = {
  17642. // partSize: 2048 * 1024 * 1024,
  17643. partSize: 1024 * 1024 * 1024,
  17644. queueSize: 2,
  17645. leavePartsOnError: true,
  17646. };
  17647. bucket
  17648. .upload(params, options)
  17649. .on("httpUploadProgress", function (evt) {
  17650. //这里可以写进度条
  17651. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17652. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17653. })
  17654. .send(function (err, data) {
  17655. // _this.progress = 100;
  17656. cfindex2++;
  17657. setTimeout(() => {
  17658. if (
  17659. cfindex2 == event.target.files.length - 1 ||
  17660. cfindex2 > event.target.files.length - 1
  17661. ) {
  17662. _this.proVisible2 = false;
  17663. }
  17664. }, 1000);
  17665. if (err) {
  17666. var a = _this.$refs.upload1.uploadFiles;
  17667. a.splice(a.length - 1, a.length);
  17668. _this.$message.error("上传失败");
  17669. } else {
  17670. // _this.$message.success('上传成功')
  17671. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17672. var c = [
  17673. "AVI",
  17674. "NAVI",
  17675. "MPEG",
  17676. "ASF",
  17677. "MOV",
  17678. "WMV",
  17679. "3GP",
  17680. "RM",
  17681. "RMVB",
  17682. "FLV",
  17683. "F4V",
  17684. "H.264",
  17685. "H.265",
  17686. "REAL VIDEO",
  17687. "MKV",
  17688. "WebM",
  17689. "HDDVD",
  17690. "MP4",
  17691. "MPG",
  17692. "M4V",
  17693. "MGV",
  17694. "OGV",
  17695. "QTM",
  17696. "STR",
  17697. "AMC",
  17698. "DVX",
  17699. "EVO",
  17700. "DAT",
  17701. "OGG",
  17702. "OGM",
  17703. ];
  17704. if (type == 1) {
  17705. _this.studyJuri[0].cover.push({
  17706. name: file.name,
  17707. url: data.Location,
  17708. uid: file.uid,
  17709. });
  17710. if (
  17711. c.indexOf(
  17712. _this.studyJuri[0].cover[0].url
  17713. .split(".")
  17714. [
  17715. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17716. ].toLocaleUpperCase()
  17717. ) != -1
  17718. ) {
  17719. _this.fileType = 2;
  17720. } else if (
  17721. b.indexOf(
  17722. _this.studyJuri[0].cover[0].url
  17723. .split(".")
  17724. [
  17725. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17726. ].toLocaleUpperCase()
  17727. ) != -1
  17728. ) {
  17729. _this.fileType = 1;
  17730. } else {
  17731. _this.fileType = 0;
  17732. }
  17733. _this.imgChange(null, null, type);
  17734. } else if (type == 2) {
  17735. _this.upToolImg = data.Location;
  17736. _this.imgChange(null, null, type);
  17737. _this.addCourseWorks(i);
  17738. } else if (type == 4) {
  17739. _this.addPz("3", data.Location);
  17740. } else if (type == 5) {
  17741. _this.addImgDrawImG(data.Location);
  17742. } else if (type == 6) {
  17743. var _ftype = 1;
  17744. if (
  17745. c.indexOf(
  17746. data.Location.split(".")[
  17747. data.Location.split(".").length - 1
  17748. ].toLocaleUpperCase()
  17749. ) != -1
  17750. ) {
  17751. _ftype = 5;
  17752. } else if (
  17753. b.indexOf(
  17754. data.Location.split(".")[
  17755. data.Location.split(".").length - 1
  17756. ].toLocaleUpperCase()
  17757. ) != -1
  17758. ) {
  17759. _ftype = 4;
  17760. } else {
  17761. _ftype = 1;
  17762. }
  17763. _this.plworkFile.push({
  17764. name: file.name,
  17765. url: data.Location,
  17766. uid: file.uid,
  17767. fileType: _ftype,
  17768. username:
  17769. _this.plworkFile.length + 1 > 9
  17770. ? _this.plworkFile.length + 1
  17771. : "0" + (_this.plworkFile.length + 1),
  17772. });
  17773. }
  17774. _this.imgChange(null, null, type);
  17775. console.log(data.Location);
  17776. // _this.$message.success('上传成功'+data.Location)
  17777. }
  17778. });
  17779. }
  17780. }
  17781. },
  17782. beforeUpload2(event, type) {
  17783. var file = event.target.files[0];
  17784. var credentials = {
  17785. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17786. secretAccessKey: "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",
  17787. }; //秘钥形式的登录上传
  17788. window.AWS.config.update(credentials);
  17789. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17790. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17791. var _this = this;
  17792. _this.progress = 0;
  17793. _this.proVisible = true;
  17794. if (file) {
  17795. var params = {
  17796. Key:
  17797. file.name.split(".")[0] +
  17798. new Date().getTime() +
  17799. "." +
  17800. file.name.split(".")[file.name.split(".").length - 1],
  17801. ContentType: file.type,
  17802. Body: file,
  17803. "Access-Control-Allow-Credentials": "*",
  17804. ACL: "public-read",
  17805. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17806. var options = {
  17807. partSize: 2048 * 1024 * 1024,
  17808. queueSize: 2,
  17809. leavePartsOnError: true,
  17810. };
  17811. bucket
  17812. .upload(params, options)
  17813. .on("httpUploadProgress", function (evt) {
  17814. //这里可以写进度条
  17815. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17816. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17817. })
  17818. .send(function (err, data) {
  17819. _this.progress = 100;
  17820. setTimeout(() => {
  17821. _this.proVisible = false;
  17822. }, 1000);
  17823. if (err) {
  17824. var a = _this.$refs.upload1.uploadFiles;
  17825. a.splice(a.length - 1, a.length);
  17826. _this.$message.error("上传失败");
  17827. } else {
  17828. if (type == 2) {
  17829. _this.studyJuri[0].upVedio.push({
  17830. name: file.name,
  17831. url: data.Location,
  17832. uid: file.uid,
  17833. });
  17834. _this.imgChange(null, null, type);
  17835. } else if (type == 3) {
  17836. _this.studyJuri[0].upFile.push({
  17837. name: file.name,
  17838. url: data.Location,
  17839. uid: file.uid,
  17840. });
  17841. _this.imgChange(null, null, type);
  17842. }
  17843. console.log(data.Location);
  17844. }
  17845. });
  17846. }
  17847. },
  17848. allScrell() {
  17849. window.parent.postMessage({ allScreen: this.screenType }, "*");
  17850. },
  17851. nextOrpreSteps(t) {
  17852. if (this.IsFollow && this.tType == 2) {
  17853. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17854. return;
  17855. }
  17856. var b = this.chapInfoList.length - 1;
  17857. if (t == 0) {
  17858. if (this.courseType == 0) {
  17859. if (this.taskCount == 0) {
  17860. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  17861. if (this.IsLookOpen) {
  17862. if (
  17863. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  17864. ) {
  17865. if (
  17866. this.courseDetail.userid != this.userid &&
  17867. (!this.courseDetail.course_teacher ||
  17868. (this.courseDetail.course_teacher &&
  17869. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17870. ) {
  17871. this.$message.error("任务未解锁");
  17872. } else {
  17873. this.$message.error("上一任务未解锁");
  17874. }
  17875. return;
  17876. }
  17877. }
  17878. this.navList[this.courseType].isOpen = false;
  17879. this.courseType = b;
  17880. this.taskCount =
  17881. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17882. .length - 1;
  17883. this.navList[this.courseType].isOpen = true;
  17884. } else {
  17885. this.taskCount--;
  17886. }
  17887. } else {
  17888. if (this.taskCount == 0) {
  17889. this.navList[this.courseType].isOpen = false;
  17890. this.courseType--;
  17891. this.taskCount =
  17892. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17893. .length - 1;
  17894. this.navList[this.courseType].isOpen = true;
  17895. } else {
  17896. this.taskCount--;
  17897. }
  17898. }
  17899. } else {
  17900. if (this.courseType == b) {
  17901. if (
  17902. this.taskCount ==
  17903. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17904. 1
  17905. ) {
  17906. this.navList[this.courseType].isOpen = false;
  17907. this.courseType = 0;
  17908. this.taskCount = 0;
  17909. this.navList[this.courseType].isOpen = true;
  17910. } else {
  17911. var bbb = parseInt(this.taskCount) + 1;
  17912. if (
  17913. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17914. .isLook &&
  17915. this.courseDetail.userid != this.userid &&
  17916. (!this.courseDetail.course_teacher ||
  17917. (this.courseDetail.course_teacher &&
  17918. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17919. this.IsLookOpen
  17920. ) {
  17921. this.$message.error("任务未解锁");
  17922. return;
  17923. }
  17924. this.taskCount++;
  17925. if (this.IsLookOpen) {
  17926. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17927. this.taskCount
  17928. ].isLook = true;
  17929. this.addCourseState(3);
  17930. }
  17931. }
  17932. } else {
  17933. if (
  17934. this.taskCount ==
  17935. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17936. 1
  17937. ) {
  17938. var bbb = parseInt(this.courseType) + 1;
  17939. if (
  17940. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17941. this.courseDetail.userid != this.userid &&
  17942. (!this.courseDetail.course_teacher ||
  17943. (this.courseDetail.course_teacher &&
  17944. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17945. this.IsLookOpen
  17946. ) {
  17947. this.$message.error("任务未解锁");
  17948. return;
  17949. }
  17950. this.navList[this.courseType].isOpen = false;
  17951. this.courseType++;
  17952. this.taskCount = 0;
  17953. this.navList[this.courseType].isOpen = true;
  17954. } else {
  17955. var bbb = parseInt(this.taskCount) + 1;
  17956. if (
  17957. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17958. .isLook &&
  17959. this.courseDetail.userid != this.userid &&
  17960. (!this.courseDetail.course_teacher ||
  17961. (this.courseDetail.course_teacher &&
  17962. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17963. this.IsLookOpen
  17964. ) {
  17965. this.$message.error("任务未解锁");
  17966. return;
  17967. }
  17968. this.taskCount++;
  17969. }
  17970. if (this.IsLookOpen) {
  17971. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17972. this.taskCount
  17973. ].isLook = true;
  17974. this.addCourseState(3);
  17975. }
  17976. }
  17977. // if (
  17978. // this.taskCount ==
  17979. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17980. // ) {
  17981. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17982. // } else {
  17983. // this.taskCount++;
  17984. // }
  17985. }
  17986. document.scrollingElement.scrollTop = 0;
  17987. this.showType = 7;
  17988. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17989. // if (this.vedio[this.taskCount].length > 0) {
  17990. // var a =
  17991. // document.getElementsByClassName("box_course")[this.taskCount]
  17992. // .offsetHeight;
  17993. // document.getElementsByClassName("vedioList")[
  17994. // this.taskCount
  17995. // ].style.height = a + "px";
  17996. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17997. // a - 40 + "px";
  17998. // }
  17999. this.isNoHomeWork = false;
  18000. (this.studyJuri = [
  18001. {
  18002. content: "",
  18003. cover: [],
  18004. upVedio: [],
  18005. upFile: [],
  18006. },
  18007. ]),
  18008. (this.radio = []);
  18009. this.isClickNav = "";
  18010. this.selectPz();
  18011. this.getHomeWork();
  18012. this.getCourseDetail(2);
  18013. this.$forceUpdate();
  18014. },
  18015. openTask(s, n, i) {
  18016. this.refreshAssembly()
  18017. if (this.IsFollow && this.tType == 2) {
  18018. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  18019. return;
  18020. }
  18021. if (this.IsLookOpen) {
  18022. if (
  18023. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  18024. this.courseDetail.userid != this.userid &&
  18025. (!this.courseDetail.course_teacher ||
  18026. (this.courseDetail.course_teacher &&
  18027. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  18028. ) {
  18029. this.$message.error("任务未解锁");
  18030. return;
  18031. }
  18032. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  18033. if (
  18034. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  18035. .isLook
  18036. ) {
  18037. this.$message.error("上一任务未解锁");
  18038. return;
  18039. }
  18040. } else if (s > this.courseType) {
  18041. if (n > 0) {
  18042. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  18043. this.$message.error("上一任务未解锁");
  18044. return;
  18045. }
  18046. } else {
  18047. if (
  18048. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  18049. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  18050. ].isLook
  18051. ) {
  18052. this.$message.error("上一任务未解锁");
  18053. return;
  18054. }
  18055. }
  18056. }
  18057. }
  18058. if (this.navList[s].task[n].isOpen == true) {
  18059. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  18060. return;
  18061. }
  18062. let flag = this.courseType==s;
  18063. this.courseType = s;
  18064. this.navId = i;
  18065. this.taskCount = n;
  18066. this.navList[this.courseType].task[this.taskCount].isOpen =
  18067. !this.navList[this.courseType].task[this.taskCount].isOpen;
  18068. if (this.IsLookOpen) {
  18069. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18070. this.taskCount
  18071. ].isLook = true;
  18072. this.addCourseState(3);
  18073. }
  18074. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  18075. this.isCloseList[ci].isClose = 0;
  18076. this.isCloseList[ci].isCloseBoolean = false;
  18077. this.$nextTick(()=>{
  18078. setTimeout(()=>{
  18079. setTimeout(()=>{
  18080. this.panToolHeight('tool-'+ci);
  18081. }, 0)
  18082. }, 0)
  18083. })
  18084. }
  18085. this.showType = 7;
  18086. this.isNoHomeWork = false;
  18087. (this.studyJuri = [
  18088. {
  18089. content: "",
  18090. cover: [],
  18091. upVedio: [],
  18092. upFile: [],
  18093. },
  18094. ]),
  18095. (this.radio = []);
  18096. document.scrollingElement.scrollTop = 0;
  18097. // setTimeout(() => {
  18098. // let a = document.getElementById(i);
  18099. // if (a.offsetTop - 110 == 0) {
  18100. // window.scrollTo(0, 0);
  18101. // } else {
  18102. // window.scrollTo(0, a.offsetTop);
  18103. // }
  18104. // }, 0);
  18105. for (var z = 0; z < this.navList.length; z++) {
  18106. for (var q = 0; q < this.navList[z].task.length; q++) {
  18107. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  18108. this.navList[z].task[q].tool[w].isTool = false;
  18109. }
  18110. }
  18111. }
  18112. this.selectPz();
  18113. this.getHomeWork();
  18114. this.getCourseDetail(2);
  18115. if(flag){
  18116. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  18117. }else{
  18118. 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>`)
  18119. }
  18120. },
  18121. get(i) {
  18122. if (this.IsFollow && this.tType == 2) {
  18123. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  18124. return;
  18125. }
  18126. // for(var k=0;k<this.navList.length;k++){
  18127. // this.navList[k].isOpen = false;
  18128. // }
  18129. // this.navList[i].isOpen = true;
  18130. this.navList[i].isOpen = !this.navList[i].isOpen;
  18131. if (this.navList[i].isOpen) {
  18132. this.openTask(i, 0, i + "-0");
  18133. }
  18134. },
  18135. addQuestion() {
  18136. this.answerList.push({
  18137. answerTitle: this.answerQ,
  18138. answer: this.questionAnswer,
  18139. });
  18140. let params = [
  18141. {
  18142. uid: this.userid,
  18143. cid: this.id,
  18144. stage: this.courseType,
  18145. task: this.taskCount,
  18146. tool: this.toolindex,
  18147. content: JSON.stringify(this.answerList),
  18148. type: 3,
  18149. },
  18150. ];
  18151. this.ajax
  18152. .post(this.$store.state.api + "addCourseWorks", params)
  18153. .then((res) => {
  18154. this.$message({
  18155. message: "提交成功",
  18156. type: "success",
  18157. });
  18158. this.answerList = [];
  18159. this.answerDialogVisible = false;
  18160. this.selectStudent();
  18161. this.selectSWorks();
  18162. this.selectSLook();
  18163. })
  18164. .catch((err) => {
  18165. this.$message.error("提交失败");
  18166. console.error(err);
  18167. });
  18168. },
  18169. addQuestionTeacher() {
  18170. this.answerList.push({
  18171. answerTitle: this.answerQ,
  18172. answer: this.questionAnswer,
  18173. });
  18174. let params = [
  18175. {
  18176. uid: this.sStudent.userid,
  18177. cid: this.id,
  18178. stage: this.courseType,
  18179. task: this.taskCount,
  18180. tool: this.toolindex,
  18181. content: JSON.stringify(this.answerList),
  18182. type: 3,
  18183. ateacher: this.userid,
  18184. },
  18185. ];
  18186. this.ajax
  18187. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18188. .then((res) => {
  18189. this.$message({
  18190. message: "提交成功",
  18191. type: "success",
  18192. });
  18193. this.answerList = [];
  18194. this.questionAnswer = "";
  18195. this.answerDialogVisibleTeacher = false;
  18196. this.selectStudent();
  18197. this.selectSWorks();
  18198. this.selectSLook();
  18199. })
  18200. .catch((err) => {
  18201. this.$message.error("提交失败");
  18202. console.error(err);
  18203. });
  18204. },
  18205. refreshCourse() {
  18206. // window.location.reload();
  18207. this.navList = [];
  18208. this.getCourseDetail(1);
  18209. },
  18210. getCourseDetail(type, gindex) {
  18211. let loading;
  18212. if (type != 2) {
  18213. loading = this.$loading.service({
  18214. background: "rgba(255, 255, 255, 0.7)",
  18215. target: document.querySelector(".student_table"),
  18216. });
  18217. }
  18218. this.downLoading = false
  18219. // this.navList[0].isOpen = false;
  18220. // this.navList[this.courseType].isOpen = true;
  18221. // this.courseType = this.courseTypeLine;
  18222. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18223. let params = {
  18224. courseId: this.id,
  18225. };
  18226. this.ajax
  18227. .get(this.$store.state.api + "selectCourseDetail3", params)
  18228. .then((res) => {
  18229. if (type != 2) {
  18230. loading.close();
  18231. if (
  18232. this.courseType >
  18233. JSON.parse(res.data[0][0].chapters).length - 1
  18234. ) {
  18235. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  18236. }
  18237. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  18238. .chapterInfo[0].taskJson;
  18239. var b = [
  18240. "AVI",
  18241. "NAVI",
  18242. "MPEG",
  18243. "ASF",
  18244. "MOV",
  18245. "WMV",
  18246. "3GP",
  18247. "RM",
  18248. "RMVB",
  18249. "FLV",
  18250. "F4V",
  18251. "H.264",
  18252. "H.265",
  18253. "REAL VIDEO",
  18254. "MKV",
  18255. "WebM",
  18256. "HDDVD",
  18257. "MP4",
  18258. "MPG",
  18259. "M4V",
  18260. "MGV",
  18261. "OGV",
  18262. "QTM",
  18263. "STR",
  18264. "AMC",
  18265. "DVX",
  18266. "EVO",
  18267. "DAT",
  18268. "OGG",
  18269. "OGM",
  18270. "MP3",
  18271. ];
  18272. let _chapterData = [];
  18273. for (var i = 0; i < a.length; i++) {
  18274. var c = a[i].chapterData;
  18275. this.vedio[i] = [];
  18276. this.textList[i] = [];
  18277. this.lineList[i] = [];
  18278. this.chapToolList[i] = [];
  18279. this.file[i] = [];
  18280. this.fileC[i] = [];
  18281. _chapterData[i] = c.filter((el) => {
  18282. return el.type != 12;
  18283. });
  18284. this.fileC[i] = c.filter((el) => {
  18285. return el.type == 12;
  18286. });
  18287. // else if (c[j].type == 12) {
  18288. // this.fileC[i].push(c[j]);
  18289. // }
  18290. for (var j = 0; j < c.length; j++) {
  18291. if (c[j].type == 7) {
  18292. this.chapToolList[i].push(c[j]);
  18293. } else if (c[j].type == 8 || c[j].type == 14) {
  18294. this.lineList[i].push(c[j]);
  18295. } else if (c[j].type == 6) {
  18296. this.textList[i].push(c[j]);
  18297. } else {
  18298. if (
  18299. b.indexOf(
  18300. c[j].url
  18301. .split(".")
  18302. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18303. ) != -1
  18304. ) {
  18305. this.vedio[i].push(c[j]);
  18306. } else {
  18307. this.file[i].push(c[j]);
  18308. }
  18309. }
  18310. }
  18311. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18312. d.sources[0].src =
  18313. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18314. this.playerO[i] = d;
  18315. }
  18316. this.courseDetail = res.data[0][0];
  18317. this.tcid = this.arrayToArray(
  18318. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  18319. this.tcid2 ? this.tcid2.split(",") : []
  18320. ).join(",");
  18321. this.evalua = res.data[0][0].evaId;
  18322. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  18323. this.courseType
  18324. ];
  18325. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18326. if (this.tcid && res.data[1].length) {
  18327. let _inviteA = [];
  18328. for (var ik = 0; ik < res.data[1].length; ik++) {
  18329. _inviteA.push({
  18330. cid: res.data[1][ik].classid,
  18331. ic: res.data[1][ik].code,
  18332. });
  18333. }
  18334. for (var ik = 0; ik < _inviteA.length; ik++) {
  18335. if (
  18336. this.arrayToArray(
  18337. _inviteA[ik].cid.split(","),
  18338. this.tcid.split(",")
  18339. ).length
  18340. ) {
  18341. this.inviteCode = _inviteA[ik].ic;
  18342. break;
  18343. }
  18344. }
  18345. }
  18346. for (var l = 0; l < this.chapInfoList.length; l++) {
  18347. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18348. for (var m = 0; m < w.length; m++) {
  18349. w[m].id = l + "-" + m;
  18350. }
  18351. }
  18352. if (
  18353. _chapterData[this.taskCount].length &&
  18354. _chapterData[this.taskCount][0].type == 2
  18355. ) {
  18356. this.showType = 0;
  18357. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18358. } else {
  18359. if (_chapterData[this.taskCount].length > 0) {
  18360. let _url = _chapterData[this.taskCount][0].url;
  18361. if (
  18362. _chapterData[this.taskCount][0].type == 8 ||
  18363. _chapterData[this.taskCount][0].type == 14
  18364. ) {
  18365. this.showType = 2;
  18366. if (
  18367. _url.indexOf("https://") == -1 &&
  18368. _url.indexOf("http://") == -1
  18369. ) {
  18370. _url = "https://" + _url;
  18371. }
  18372. this.pptImgUrl1 = _url;
  18373. } else if (_chapterData[this.taskCount][0].type == 3) {
  18374. if (
  18375. _url
  18376. .split(".")
  18377. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18378. ) {
  18379. this.showType = 3;
  18380. this.pptImgUrl1 = _url;
  18381. } else if (
  18382. this.isAssetTypeAnImage(
  18383. _url
  18384. .split(".")
  18385. [_url.split(".").length - 1].toLocaleLowerCase()
  18386. )
  18387. ) {
  18388. this.showType = 4;
  18389. this.pptImgUrl1 = _url;
  18390. } else {
  18391. this.showType = 2;
  18392. this.pptImgUrl1 =
  18393. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18394. encodeURIComponent(_url);
  18395. }
  18396. } else if (_chapterData[this.taskCount][0].type == 13) {
  18397. this.showType = 4;
  18398. this.pptImgUrl1 = _url;
  18399. } else if (_chapterData[this.taskCount][0].type == 6) {
  18400. this.showType = 1;
  18401. this.text = this.textList[this.taskCount][0];
  18402. }
  18403. }
  18404. }
  18405. this.isClickNav = 0;
  18406. if (
  18407. !_chapterData[this.taskCount].length ||
  18408. _chapterData[this.taskCount][0].type == 12
  18409. ) {
  18410. this.isClickNav = "";
  18411. this.showType = "";
  18412. }
  18413. this.vChapterData = _chapterData;
  18414. } else {
  18415. this.showType = 0;
  18416. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  18417. .chapterInfo[0].taskJson;
  18418. var b = [
  18419. "AVI",
  18420. "NAVI",
  18421. "MPEG",
  18422. "ASF",
  18423. "MOV",
  18424. "WMV",
  18425. "3GP",
  18426. "RM",
  18427. "RMVB",
  18428. "FLV",
  18429. "F4V",
  18430. "H.264",
  18431. "H.265",
  18432. "REAL VIDEO",
  18433. "MKV",
  18434. "WebM",
  18435. "HDDVD",
  18436. "MP4",
  18437. "MPG",
  18438. "M4V",
  18439. "MGV",
  18440. "OGV",
  18441. "QTM",
  18442. "STR",
  18443. "AMC",
  18444. "DVX",
  18445. "EVO",
  18446. "DAT",
  18447. "OGG",
  18448. "OGM",
  18449. "MP3",
  18450. ];
  18451. let _chapterData = [];
  18452. for (var i = 0; i < a.length; i++) {
  18453. var c = a[i].chapterData;
  18454. this.vedio[i] = [];
  18455. this.textList[i] = [];
  18456. this.lineList[i] = [];
  18457. this.chapToolList[i] = [];
  18458. this.file[i] = [];
  18459. this.fileC[i] = [];
  18460. _chapterData[i] = c.filter((el) => {
  18461. return el.type != 12;
  18462. });
  18463. this.fileC[i] = c.filter((el) => {
  18464. return el.type == 12;
  18465. });
  18466. for (var j = 0; j < c.length; j++) {
  18467. if (c[j].type == 7) {
  18468. this.chapToolList[i].push(c[j]);
  18469. } else if (c[j].type == 8 || c[j].type == 14) {
  18470. this.lineList[i].push(c[j]);
  18471. } else if (c[j].type == 6) {
  18472. this.textList[i].push(c[j]);
  18473. } else {
  18474. if (
  18475. b.indexOf(
  18476. c[j].url
  18477. .split(".")
  18478. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18479. ) != -1
  18480. ) {
  18481. this.vedio[i].push(c[j]);
  18482. } else {
  18483. this.file[i].push(c[j]);
  18484. }
  18485. }
  18486. }
  18487. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18488. d.sources[0].src =
  18489. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18490. this.playerO[i] = d;
  18491. }
  18492. if (
  18493. _chapterData[this.taskCount].length &&
  18494. _chapterData[this.taskCount][0].type == 2
  18495. ) {
  18496. this.showType = 0;
  18497. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18498. } else {
  18499. if (_chapterData[this.taskCount].length > 0) {
  18500. let _url = _chapterData[this.taskCount][0].url;
  18501. if (
  18502. _chapterData[this.taskCount][0].type == 8 ||
  18503. _chapterData[this.taskCount][0].type == 14
  18504. ) {
  18505. this.showType = 2;
  18506. if (
  18507. _url.indexOf("https://") == -1 &&
  18508. _url.indexOf("http://") == -1
  18509. ) {
  18510. _url = "https://" + _url;
  18511. }
  18512. this.pptImgUrl1 = _url;
  18513. } else if (_chapterData[this.taskCount][0].type == 3) {
  18514. if (
  18515. _url
  18516. .split(".")
  18517. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18518. ) {
  18519. this.showType = 3;
  18520. this.pptImgUrl1 = _url;
  18521. } else if (
  18522. this.isAssetTypeAnImage(
  18523. _url
  18524. .split(".")
  18525. [_url.split(".").length - 1].toLocaleLowerCase()
  18526. )
  18527. ) {
  18528. this.showType = 4;
  18529. this.pptImgUrl1 = _url;
  18530. } else {
  18531. this.showType = 2;
  18532. this.pptImgUrl1 =
  18533. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18534. encodeURIComponent(_url);
  18535. }
  18536. } else if (_chapterData[this.taskCount][0].type == 13) {
  18537. this.showType = 4;
  18538. this.pptImgUrl1 = _url;
  18539. } else if (_chapterData[this.taskCount][0].type == 6) {
  18540. this.showType = 1;
  18541. this.text = this.textList[this.taskCount][0];
  18542. }
  18543. }
  18544. }
  18545. this.isClickNav = 0;
  18546. if (
  18547. !_chapterData[this.taskCount].length ||
  18548. _chapterData[this.taskCount][0].type == 12
  18549. ) {
  18550. this.isClickNav = "";
  18551. this.showType = "";
  18552. }
  18553. this.vChapterData = _chapterData;
  18554. this.$forceUpdate();
  18555. }
  18556. // console.log('this.chapInfoList22222',JS);
  18557. if(res.data[0][0].setting){
  18558. try {
  18559. this.languageSetting = (JSON.parse(res.data[0][0].setting).languageSetting || JSON.parse(res.data[0][0].setting).languageSetting == 0) ? JSON.parse(res.data[0][0].setting).languageSetting : 0;
  18560. }catch(error){
  18561. console.error(error)
  18562. }
  18563. }
  18564. // finalMarkList用来判断哪个工具为评分工具
  18565. if(this.courseDetail.state == 5){
  18566. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  18567. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  18568. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  18569. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  18570. // // 没有的话在选其他工具为评分工具
  18571. // if(adc.length > 0){
  18572. // for (let k = chap.length - 1; k >= 0; k--) {
  18573. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  18574. // this.finalMarkList = k;
  18575. // break;
  18576. // }
  18577. // }
  18578. // }else{
  18579. // for (let k = chap.length - 1; k >= 0; k--) {
  18580. // 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) {
  18581. // this.finalMarkList = k;
  18582. // break;
  18583. // }
  18584. // }
  18585. // }
  18586. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  18587. // 不然会无限循环报错,会很难受
  18588. let aiSNum = 0
  18589. if(chapInfoListCopy[this.taskCount].eList && chapInfoListCopy[this.taskCount].eList.length){
  18590. chapInfoListCopy[this.taskCount].eList.forEach(e=>{
  18591. if (e.isai == 2) {
  18592. aiSNum++
  18593. }
  18594. })
  18595. if(aiSNum == chapInfoListCopy[this.taskCount].eList.length){
  18596. this.isaiNum = aiSNum
  18597. }else{
  18598. this.isaiNum = 0
  18599. }
  18600. for (let k = 0; k < chapInfoListCopy[this.taskCount].eList.length; k++) {
  18601. if(!chapInfoListCopy[this.taskCount].eList[k].rule){
  18602. this.againEva(this.taskCount,k)
  18603. }
  18604. }
  18605. }
  18606. }
  18607. // else {
  18608. // this.courseDetail = res.data[0][0];
  18609. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18610. // }
  18611. let _this = this;
  18612. if (_this.timer) {
  18613. clearInterval(_this.timer);
  18614. _this.timer = null;
  18615. }
  18616. if (_this.tcid) {
  18617. _this.getCourseGroup(gindex);
  18618. } else {
  18619. _this.selectSWorks(gindex);
  18620. }
  18621. _this.selectStudent();
  18622. _this.selectSLook();
  18623. _this.getPick();
  18624. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18625. _this.setCTask();
  18626. }
  18627. if (_this.dialogVisibleGroup) {
  18628. _this.groupJson =
  18629. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18630. _this.taskCount
  18631. ].toolChoose[_this.toolindex].groupJson;
  18632. }
  18633. _this.$nextTick(() => {
  18634. setTimeout(() => {
  18635. _this.checkEva();
  18636. }, 1000);
  18637. });
  18638. _this.timer = setInterval(function () {
  18639. // _this.getCourseDetail(2);
  18640. if (_this.tcid) {
  18641. _this.getCourseGroup(gindex);
  18642. } else {
  18643. _this.selectSWorks(gindex);
  18644. }
  18645. _this.selectStudent();
  18646. _this.selectSLook();
  18647. _this.getPick();
  18648. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18649. _this.setCTask();
  18650. }
  18651. if (_this.dialogVisibleGroup) {
  18652. _this.groupJson =
  18653. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18654. _this.taskCount
  18655. ].toolChoose[_this.toolindex].groupJson;
  18656. }
  18657. if (_this.tType == 4 || _this.ispzType == 4) {
  18658. _this.selectPz();
  18659. }
  18660. }, 5000);
  18661. _this.$nextTick(function () {
  18662. setTimeout(() => {
  18663. // var a =
  18664. // document.getElementsByClassName("box_course")[0].offsetHeight;
  18665. // document.getElementsByClassName("vedioList")[0].style.height =
  18666. // a + "px";
  18667. // document.getElementsByClassName("navBox")[0].style.height =
  18668. // a - 40 + "px";
  18669. // if (_this.vedio[_this.taskCount].length > 0) {
  18670. // _this.vedioTime = [];
  18671. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18672. // _this.vedioTime[i] = document.getElementsByClassName(
  18673. // "vjs-duration-display"
  18674. // )[i].textContent;
  18675. // }
  18676. // }
  18677. }, 1000);
  18678. });
  18679. })
  18680. .catch((err) => {
  18681. loading.close();
  18682. console.error(err);
  18683. });
  18684. },
  18685. getCourseGroup(gindex) {
  18686. let params = {
  18687. cid: this.id,
  18688. classid: this.tcid ? this.tcid : "1",
  18689. };
  18690. this.ajax
  18691. .get(this.$store.state.api + "getCourseGroup", params)
  18692. .then((res) => {
  18693. if (res.data && res.data[0].length) {
  18694. if (!this.isGroup) {
  18695. let courseGroup = JSON.parse(res.data[0][0].group);
  18696. courseGroup.group = courseGroup.group.filter((el) => {
  18697. el.works = [];
  18698. return el;
  18699. });
  18700. if (courseGroup.isopen == 2) {
  18701. this.isGroup = false;
  18702. this.selectSWorks(gindex);
  18703. return;
  18704. }
  18705. this.courseGroup = courseGroup;
  18706. let groupPerson = res.data[1];
  18707. let group = JSON.parse(res.data[0][0].group).group;
  18708. let courseGroupStudent = {};
  18709. let courseGroupStudentUid = {};
  18710. for (var i = 0; i < group.length; i++) {
  18711. courseGroupStudent[group[i].id] = [];
  18712. courseGroupStudentUid[group[i].id] = [];
  18713. for (var j = 0; j < groupPerson.length; j++) {
  18714. if (groupPerson[j].groupCid == group[i].id) {
  18715. courseGroupStudent[group[i].id].push(groupPerson[j]);
  18716. courseGroupStudentUid[group[i].id].push(
  18717. groupPerson[j].userid
  18718. );
  18719. }
  18720. }
  18721. }
  18722. this.courseGroupStudent = courseGroupStudent;
  18723. this.courseGroupStudentUid = courseGroupStudentUid;
  18724. }
  18725. if (this.courseGroup.isopen == 2) {
  18726. this.isGroup = false;
  18727. } else {
  18728. this.isGroup = true;
  18729. }
  18730. this.selectSWorks(gindex);
  18731. } else {
  18732. this.selectSWorks(gindex);
  18733. this.isGroup = false;
  18734. }
  18735. })
  18736. .catch((err) => {
  18737. // this.$message.error("网络不佳");
  18738. console.error(err);
  18739. });
  18740. },
  18741. setOperationTime() {
  18742. let _this = this;
  18743. if (_this.opertimer) {
  18744. clearInterval(_this.opertimer);
  18745. _this.opertimer = null;
  18746. }
  18747. _this.opertimer = setInterval(() => {
  18748. _this.setoTime("600");
  18749. }, 600000);
  18750. },
  18751. setoTime(time) {
  18752. let params = [
  18753. {
  18754. uid: this.userid,
  18755. cid: this.id,
  18756. type: "2",
  18757. time: time,
  18758. },
  18759. ];
  18760. this.ajax
  18761. .post(this.$store.state.api + "addOperationTimeT2", params)
  18762. .then((res) => {})
  18763. .catch((err) => {
  18764. console.error(err);
  18765. });
  18766. },
  18767. addPz(type, content) {
  18768. if (type == "1" && this.pzConText == "") {
  18769. this.$message.error("评论不能为空!");
  18770. return;
  18771. }
  18772. let params = [
  18773. {
  18774. cid: this.id,
  18775. uid: this.userid,
  18776. s: this.courseType,
  18777. t: this.taskCount,
  18778. c: type == "1" ? this.pzConText : content,
  18779. type: type,
  18780. },
  18781. ];
  18782. this.ajax
  18783. .post(this.$store.state.api + "addPz2", params)
  18784. .then((res) => {
  18785. this.$message({
  18786. message: "添加成功",
  18787. type: "success",
  18788. });
  18789. this.pzConText = "";
  18790. this.addPzDialog = false;
  18791. this.selectPz();
  18792. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  18793. })
  18794. .catch((err) => {
  18795. this.$message.error("添加失败");
  18796. console.error(err);
  18797. });
  18798. },
  18799. setReplyIndex(id, i) {
  18800. this.replyIndex = i;
  18801. this.replyPid = id;
  18802. this.replyDialogVisible = true;
  18803. },
  18804. addHf() {
  18805. if (this.reply == "") {
  18806. this.$message.error("回复不能为空!");
  18807. return;
  18808. }
  18809. let params = [
  18810. {
  18811. cid: this.id,
  18812. uid: this.userid,
  18813. s: this.courseType,
  18814. t: this.taskCount,
  18815. type: "1",
  18816. ct: 2,
  18817. pid: this.replyPid,
  18818. c: this.reply,
  18819. },
  18820. ];
  18821. this.ajax
  18822. .post(this.$store.state.api + "addHf", params)
  18823. .then((res) => {
  18824. this.reply = "";
  18825. this.$message({
  18826. message: "回复成功",
  18827. type: "success",
  18828. });
  18829. this.replyDialogVisible = false;
  18830. this.selectPz();
  18831. })
  18832. .catch((err) => {
  18833. this.$message.error("回复失败");
  18834. console.error(err);
  18835. });
  18836. },
  18837. deletePz(id) {
  18838. this.$confirm("确定删除此评论吗?", "提示", {
  18839. confirmButtonText: "确定",
  18840. cancelButtonText: "取消",
  18841. type: "warning",
  18842. })
  18843. .then(() => {
  18844. let params = [
  18845. {
  18846. id: id,
  18847. },
  18848. ];
  18849. this.ajax
  18850. .post(this.$store.state.api + "deletePz", params)
  18851. .then((res) => {
  18852. this.$message({
  18853. message: "删除成功",
  18854. type: "success",
  18855. });
  18856. this.selectPz();
  18857. })
  18858. .catch((err) => {
  18859. this.$message.error("网络异常");
  18860. console.error(err);
  18861. });
  18862. })
  18863. .catch(() => {});
  18864. },
  18865. deleteReply(id) {
  18866. this.$confirm("确定删除此回复吗?", "提示", {
  18867. confirmButtonText: "确定",
  18868. cancelButtonText: "取消",
  18869. type: "warning",
  18870. })
  18871. .then(() => {
  18872. let params = [
  18873. {
  18874. id: id,
  18875. },
  18876. ];
  18877. this.ajax
  18878. .post(this.$store.state.api + "deleteReply", params)
  18879. .then((res) => {
  18880. this.$message({
  18881. message: "删除成功",
  18882. type: "success",
  18883. });
  18884. this.selectPz();
  18885. })
  18886. .catch((err) => {
  18887. this.$message.error("网络异常");
  18888. console.error(err);
  18889. });
  18890. })
  18891. .catch(() => {});
  18892. },
  18893. setPz() {
  18894. if (this.ispzType == 4) {
  18895. this.ispzType = 0;
  18896. this.pzDialog = false;
  18897. return;
  18898. }
  18899. this.ispzType = 4;
  18900. this.pzDialog = true;
  18901. this.selectPz();
  18902. },
  18903. selectPz() {
  18904. let params = {
  18905. cid: this.id,
  18906. s: this.courseType,
  18907. t: this.taskCount,
  18908. type: this.pzStype,
  18909. uid: this.userid,
  18910. };
  18911. this.ajax
  18912. .get(this.$store.state.api + "selectPzListType", params)
  18913. .then((res) => {
  18914. this.pzList = res.data[0];
  18915. var a = res.data[1];
  18916. for (var i = 0; i < a.length; i++) {
  18917. for (var j = 0; j < this.pzList.length; j++) {
  18918. if (!this.pzList[j].hfList) {
  18919. this.pzList[j].hfList = [];
  18920. }
  18921. if (a[i].pid == this.pzList[j].id) {
  18922. this.pzList[j].hfList.push(a[i]);
  18923. }
  18924. }
  18925. }
  18926. })
  18927. .catch((err) => {
  18928. console.error(err);
  18929. });
  18930. },
  18931. // selectHf() {
  18932. // let params = {
  18933. // cid: this.id,
  18934. // s: this.courseType,
  18935. // t: this.taskCount,
  18936. // };
  18937. // this.ajax
  18938. // .get(this.$store.state.api + "selectHfList", params)
  18939. // .then((res) => {
  18940. // var a = res.data[0];
  18941. // for (var i = 0; i < a.length; i++) {
  18942. // for (var j = 0; j < this.pzList.length; j++) {
  18943. // if (!this.pzList[i].hfList) {
  18944. // this.pzList[i].hfList = [];
  18945. // }
  18946. // if (a[i].pid == this.pzList[j].id) {
  18947. // this.pzList[i].hfList.push(a[i]);
  18948. // }
  18949. // }
  18950. // }
  18951. // })
  18952. // .catch((err) => {
  18953. // console.error(err);
  18954. // });
  18955. // },
  18956. updateSLook() {
  18957. let params = {
  18958. sopen: this.sIsOpen == false ? 1 : 2,
  18959. cid: this.id,
  18960. };
  18961. this.ajax
  18962. .get(this.$store.state.api + "updateCourseSLook", params)
  18963. .then((res) => {
  18964. if (this.sIsOpen == true) {
  18965. this.$message({
  18966. message: "权限设置成功",
  18967. type: "success",
  18968. });
  18969. } else {
  18970. this.$message({
  18971. message: "权限关闭成功",
  18972. type: "success",
  18973. });
  18974. }
  18975. })
  18976. .catch((err) => {
  18977. console.error(err);
  18978. });
  18979. },
  18980. updateFollow() {
  18981. let params = [
  18982. {
  18983. sopen: this.IsFollow == false ? 1 : 2,
  18984. cid: this.id,
  18985. },
  18986. ];
  18987. this.ajax
  18988. .post(this.$store.state.api + "updateCourseFollow", params)
  18989. .then((res) => {
  18990. if (this.IsFollow == true) {
  18991. this.$message({
  18992. message: "开启成功",
  18993. type: "success",
  18994. });
  18995. } else {
  18996. this.$message({
  18997. message: "关闭成功",
  18998. type: "success",
  18999. });
  19000. }
  19001. this.setCTask();
  19002. })
  19003. .catch((err) => {
  19004. console.error(err);
  19005. });
  19006. },
  19007. setCTask() {
  19008. let params = [
  19009. {
  19010. sopen: this.courseType + "-" + this.taskCount,
  19011. cid: this.id,
  19012. },
  19013. ];
  19014. this.ajax
  19015. .post(this.$store.state.api + "updateCourseFollowC", params)
  19016. .then((res) => {})
  19017. .catch((err) => {
  19018. console.error(err);
  19019. });
  19020. },
  19021. updateLookOpen() {
  19022. let params = [
  19023. {
  19024. sopen: this.IsLookOpen == false ? 1 : 2,
  19025. cid: this.id,
  19026. },
  19027. ];
  19028. this.ajax
  19029. .post(this.$store.state.api + "updateCourseLookOpen", params)
  19030. .then((res) => {
  19031. if (this.IsLookOpen == true) {
  19032. // if (this.courseType != 0 && this.taskCount != 0) {
  19033. // this.openTask(0, 0, "0-0");
  19034. // }
  19035. this.$message({
  19036. message: "权限设置成功",
  19037. type: "success",
  19038. });
  19039. } else {
  19040. this.$message({
  19041. message: "权限关闭成功",
  19042. type: "success",
  19043. });
  19044. }
  19045. this.getCourseState(2);
  19046. })
  19047. .catch((err) => {
  19048. console.error(err);
  19049. });
  19050. },
  19051. selectSLook() {
  19052. let params = {
  19053. cid: this.id,
  19054. };
  19055. this.ajax
  19056. .get(this.$store.state.api + "selectCourseSLook", params)
  19057. .then((res) => {
  19058. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  19059. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  19060. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  19061. if (!this.IsLookOpen) {
  19062. this.setNavList();
  19063. } else {
  19064. this.getCourseState(1);
  19065. }
  19066. if (this.IsFollow && this.tType == 2) {
  19067. this.setContent2(false);
  19068. let _followC = res.data[0][0].followC.split("-");
  19069. if (
  19070. this.courseType != _followC[0] ||
  19071. this.taskCount != _followC[1]
  19072. ) {
  19073. this.navList[this.courseType].isOpen = false;
  19074. this.courseType = _followC[0];
  19075. this.navList[this.courseType].isOpen = true;
  19076. this.taskCount = parseInt(_followC[1]);
  19077. this.navId = res.data[0][0].followC;
  19078. document.scrollingElement.scrollTop = 0;
  19079. this.getCourseDetail(2);
  19080. }
  19081. }
  19082. })
  19083. .catch((err) => {
  19084. console.error(err);
  19085. });
  19086. },
  19087. setNavList() {
  19088. if (this.navList.length == 0) {
  19089. this.navList = [];
  19090. var copyList = [];
  19091. for (var l = 0; l < this.chapInfoList.length; l++) {
  19092. var q = this.chapInfoList[l].dyName;
  19093. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  19094. var e;
  19095. copyList.push({
  19096. dyName: q,
  19097. isOpen: l === 0 ? true : false,
  19098. task: [],
  19099. });
  19100. for (var r = 0; r < w.length; r++) {
  19101. e = w[r].task;
  19102. if (this.chapInfoList[l].easy == 1) {
  19103. copyList[l].task.push({
  19104. taskName: q,
  19105. id: l + "-" + r,
  19106. isLook: w[r].isLook,
  19107. isOpen: r === 0 ? true : false,
  19108. tool: [],
  19109. });
  19110. } else {
  19111. copyList[l].task.push({
  19112. taskName: e,
  19113. id: l + "-" + r,
  19114. isLook: w[r].isLook,
  19115. isOpen: r === 0 ? true : false,
  19116. tool: [],
  19117. });
  19118. }
  19119. var t = w[r].toolChoose;
  19120. for (var k = 0; k < t.length; k++) {
  19121. var tool = t[k].tool[0];
  19122. copyList[l].task[r].tool.push({
  19123. tool: tool,
  19124. isTool: false,
  19125. });
  19126. }
  19127. // this.navId = this.navId ? this.navId : l + "-" + r;
  19128. // this.navId = l + "-" + r;
  19129. }
  19130. }
  19131. this.navList = copyList;
  19132. this.navList[0].isOpen = false;
  19133. this.navList[this.courseType].isOpen = true;
  19134. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  19135. } else {
  19136. this.setNavList2();
  19137. }
  19138. },
  19139. setNavList2() {
  19140. for (var l = 0; l < this.chapInfoList.length; l++) {
  19141. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  19142. for (var r = 0; r < w.length; r++) {
  19143. this.navList[l].task[r].isLook = w[r].isLook;
  19144. }
  19145. }
  19146. if (
  19147. this.IsLookOpen &&
  19148. !this.navList[this.courseType].task[this.taskCount].isLook
  19149. ) {
  19150. this.openTask(0, 0, "0-0");
  19151. }
  19152. this.$forceUpdate();
  19153. },
  19154. getCourseState(type) {
  19155. let params = {
  19156. cid: this.id,
  19157. };
  19158. this.ajax
  19159. .get(this.$store.state.api + "getCourseState", params)
  19160. .then((res) => {
  19161. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  19162. this.chapInfoList = JSON.parse(res.data[0][0].state);
  19163. console.log('this.chapInfoList',this.chapInfoList);
  19164. this.setNavList();
  19165. this.$forceUpdate();
  19166. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  19167. this.addCourseState(2);
  19168. } else {
  19169. this.addCourseState(1);
  19170. }
  19171. })
  19172. .catch((err) => {
  19173. console.error(err);
  19174. });
  19175. },
  19176. addCourseState(type) {
  19177. let _state = this.chapInfoList;
  19178. // this.courseType this.taskCount
  19179. if (type == 1 || type == 2) {
  19180. for (var i = 0; i < _state.length; i++) {
  19181. let el = _state[i].chapterInfo[0].taskJson;
  19182. for (var j = 0; j < el.length; j++) {
  19183. // if (i == 0 && j == 0) {
  19184. // el[j].isLook = true;
  19185. // } else {
  19186. // el[j].isLook = false;
  19187. // }
  19188. if (
  19189. this.courseType > i ||
  19190. (this.courseType == i && this.taskCount + 1 > j)
  19191. ) {
  19192. el[j].isLook = true;
  19193. } else {
  19194. el[j].isLook = false;
  19195. }
  19196. }
  19197. }
  19198. }
  19199. let params = [
  19200. {
  19201. cid: this.id,
  19202. state: JSON.stringify(_state),
  19203. },
  19204. ];
  19205. this.ajax
  19206. .post(
  19207. this.$store.state.api +
  19208. (type == 1 ? "addCourseState" : "updateCourseSate"),
  19209. params
  19210. )
  19211. .then((res) => {
  19212. if (this.IsLookOpen) {
  19213. this.setNavList();
  19214. }
  19215. if (type == 3 && type == 2) {
  19216. this.getCourseState(1);
  19217. }
  19218. })
  19219. .catch((err) => {
  19220. console.error(err);
  19221. });
  19222. },
  19223. getHomeWork() {
  19224. let params = {
  19225. cid: this.id,
  19226. stage: this.courseType,
  19227. task: this.taskCount,
  19228. uid: this.userid,
  19229. };
  19230. this.ajax
  19231. .get(this.$store.state.api + "selectWork", params)
  19232. .then((res) => {
  19233. if (res.data[0].length > 0) {
  19234. this.studyJuri = JSON.parse(res.data[0][0].content);
  19235. this.isNoHomeWork = true;
  19236. }
  19237. })
  19238. .catch((err) => {
  19239. console.error(err);
  19240. });
  19241. },
  19242. isAssetTypeAnImage(ext) {
  19243. return (
  19244. [
  19245. "png",
  19246. "jpg",
  19247. "jpeg",
  19248. "bmp",
  19249. "gif",
  19250. "webp",
  19251. "psd",
  19252. "svg",
  19253. "tiff",
  19254. ].indexOf(ext) !== -1
  19255. );
  19256. },
  19257. switchVideo(media) {
  19258. this.playerO = {};
  19259. this.playerOptions.poster = "";
  19260. this.playerOptions.sources[0].src = media;
  19261. this.playerO = this.playerOptions;
  19262. },
  19263. onPlayerPlay() {},
  19264. onPlayerTimeupdate(player) {
  19265. let gklog = player.cache_.currentTime; //当前播放的秒数
  19266. let a = player.cache_.duration; //视频的总时长
  19267. let gklog2 = parseInt(gklog);
  19268. // if(gklog2 == '3'){
  19269. // player.pause()
  19270. // setTimeout(()=>{
  19271. // player.currentTime(gklog2+1)
  19272. // player.play()
  19273. // },1000)
  19274. // }
  19275. console.log(" onPlayerTimeupdate!", gklog);
  19276. console.log(" onPlayerTimeupdate!", gklog2);
  19277. },
  19278. lookVedio(u, i) {
  19279. this.isClickNav = "";
  19280. // this.playerOptions.sources[0].src = u;
  19281. var d = JSON.parse(JSON.stringify(this.playerOptions));
  19282. d.sources[0].src = u;
  19283. this.playerO[this.taskCount] = d;
  19284. this.showType = 0;
  19285. // this.isClickNav = "video" + i;
  19286. this.isClickNav = i;
  19287. this.$forceUpdate();
  19288. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  19289. },
  19290. lookText(i, t) {
  19291. this.isClickNav = "";
  19292. // this.text = this.textList[i][t];
  19293. this.text = this.vChapterData[i][t];
  19294. // this.dialogVisible1 = true;
  19295. this.showType = 1;
  19296. // this.isClickNav = "text" + t;
  19297. this.isClickNav = t;
  19298. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  19299. },
  19300. lookTools(i, t) {
  19301. this.chapTools = this.chapToolList[i][t];
  19302. this.dialogVisible2 = true;
  19303. },
  19304. async openFile(f) {
  19305. this.pptImgUrl = "";
  19306. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19307. if (
  19308. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  19309. -1
  19310. ) {
  19311. let _uuurl = await this.checkLink(f);
  19312. this.pptImgUrl =
  19313. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19314. this.showPDF = false;
  19315. this.dialogVisible3 = true;
  19316. } else if (
  19317. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19318. ) {
  19319. this.pptImgUrl = f;
  19320. this.showPDF = true;
  19321. this.dialogVisible3 = true;
  19322. }
  19323. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  19324. },
  19325. openTable(f) {
  19326. this.tableJson = JSON.parse(f.works);
  19327. this.dialogVisibleTable2 = true;
  19328. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  19329. },
  19330. openWord(f) {
  19331. this.tableJson = JSON.parse(f.works);
  19332. this.dialogVisibleTable3 = true;
  19333. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  19334. },
  19335. doUrl(url, i) {
  19336. this.isClickNav = "";
  19337. this.pptImgUrl1 = "";
  19338. this.showType = 2;
  19339. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  19340. url = "https://" + url;
  19341. }
  19342. this.pptImgUrl1 = "";
  19343. setTimeout(() => {
  19344. this.pptImgUrl1 = url;
  19345. }, 500);
  19346. // this.isClickNav = "line" + i;
  19347. this.isClickNav = i;
  19348. this.$forceUpdate();
  19349. },
  19350. checkPhoto(f, i) {
  19351. this.showType = 4;
  19352. this.pptImgUrl1 = f.url;
  19353. this.isClickNav = i;
  19354. this.$forceUpdate();
  19355. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  19356. },
  19357. async downFile(f, i) {
  19358. this.isClickNav = "";
  19359. this.pptImgUrl1 = "";
  19360. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  19361. if (
  19362. a.indexOf(
  19363. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  19364. ) != -1
  19365. ) {
  19366. let _uuurl = await this.checkLink(f.url);
  19367. this.pptImgUrl1 =
  19368. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19369. // this.dialogVisible3 = true;
  19370. this.showType = 2;
  19371. } else if (
  19372. this.isAssetTypeAnImage(
  19373. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  19374. )
  19375. ) {
  19376. this.showType = 4;
  19377. this.pptImgUrl1 = f.url;
  19378. } else if (
  19379. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19380. "PDF"
  19381. ) {
  19382. this.pptImgUrl1 = f.url;
  19383. // this.dialogVisible3 = true;
  19384. this.showType = 3;
  19385. } else {
  19386. window.open(this.file[i].url);
  19387. }
  19388. // this.isClickNav = "word" + i;
  19389. this.isClickNav = i;
  19390. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  19391. },
  19392. downFileList(i) {
  19393. window.open(this.noImgList[i].url);
  19394. },
  19395. openAddWork() {
  19396. this.dialogVisible = true;
  19397. },
  19398. addBzWorks() {
  19399. let params = [
  19400. {
  19401. uid: this.userid,
  19402. cid: this.id,
  19403. stage: this.courseType,
  19404. task: this.taskCount,
  19405. tool: this.toolindex,
  19406. content: JSON.stringify(this.eScore),
  19407. type: 6,
  19408. },
  19409. ];
  19410. this.ajax
  19411. .post(this.$store.state.api + "addCourseWorks", params)
  19412. .then((res) => {
  19413. this.$message({
  19414. message: "提交成功",
  19415. type: "success",
  19416. });
  19417. this.eScore = { eBzText: "", eStar: [] };
  19418. this.studentEvalDialogVisible = false;
  19419. this.selectSWorks();
  19420. })
  19421. .catch((err) => {
  19422. this.$message.error("提交失败");
  19423. console.error(err);
  19424. });
  19425. },
  19426. addBzWorksTeacher() {
  19427. let params = [
  19428. {
  19429. uid: this.sStudent.userid,
  19430. cid: this.id,
  19431. stage: this.courseType,
  19432. task: this.taskCount,
  19433. tool: this.toolindex,
  19434. content: JSON.stringify(this.eScore),
  19435. type: 6,
  19436. },
  19437. ];
  19438. this.ajax
  19439. .post(this.$store.state.api + "addCourseWorks", params)
  19440. .then((res) => {
  19441. this.$message({
  19442. message: "提交成功",
  19443. type: "success",
  19444. });
  19445. this.eScore = { eBzText: "", eStar: [] };
  19446. this.studentEvalDialogVisibleTeacher = false;
  19447. this.selectSWorks();
  19448. })
  19449. .catch((err) => {
  19450. this.$message.error("提交失败");
  19451. console.error(err);
  19452. });
  19453. },
  19454. addStudentAsk() {
  19455. if (!this.radio.length) {
  19456. this.$message.error("请选择选项");
  19457. return;
  19458. }
  19459. for (var i = 0; i < this.askJson.askCount; i++) {
  19460. if (
  19461. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19462. (this.radio[i] !== 0 && !this.radio[i])
  19463. ) {
  19464. this.$message.error("请选择选项");
  19465. return;
  19466. }
  19467. }
  19468. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19469. let params = [
  19470. {
  19471. uid: this.userid,
  19472. cid: this.id,
  19473. stage: this.courseType,
  19474. task: this.taskCount,
  19475. tool: this.toolindex,
  19476. content: JSON.stringify(this.askList),
  19477. type: 2,
  19478. },
  19479. ];
  19480. this.ajax
  19481. .post(this.$store.state.api + "addCourseWorks", params)
  19482. .then((res) => {
  19483. this.$message({
  19484. message: "提交成功",
  19485. type: "success",
  19486. });
  19487. this.askList = [];
  19488. this.dialogVisible5 = false;
  19489. this.selectStudent();
  19490. this.selectSWorks();
  19491. this.selectSLook();
  19492. })
  19493. .catch((err) => {
  19494. this.$message.error("提交失败");
  19495. console.error(err);
  19496. });
  19497. },
  19498. addStudentAskTeacher() {
  19499. if (!this.radio.length) {
  19500. this.$message.error("请选择选项");
  19501. return;
  19502. }
  19503. for (var i = 0; i < this.askJson.askCount; i++) {
  19504. if (
  19505. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19506. (this.radio[i] !== 0 && !this.radio[i])
  19507. ) {
  19508. this.$message.error("请选择选项");
  19509. return;
  19510. }
  19511. }
  19512. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19513. let params = [
  19514. {
  19515. uid: this.sStudent.userid,
  19516. cid: this.id,
  19517. stage: this.courseType,
  19518. task: this.taskCount,
  19519. tool: this.toolindex,
  19520. content: JSON.stringify(this.askList),
  19521. type: 2,
  19522. },
  19523. ];
  19524. this.ajax
  19525. .post(this.$store.state.api + "addCourseWorks", params)
  19526. .then((res) => {
  19527. this.$message({
  19528. message: "提交成功",
  19529. type: "success",
  19530. });
  19531. this.askList = [];
  19532. this.dialogVisible5Teacher = false;
  19533. this.selectStudent();
  19534. this.selectSWorks();
  19535. this.selectSLook();
  19536. })
  19537. .catch((err) => {
  19538. this.$message.error("提交失败");
  19539. console.error(err);
  19540. });
  19541. },
  19542. addStudentTest() {
  19543. if (!this.radio.length) {
  19544. this.$message.error("请选择选项");
  19545. return;
  19546. }
  19547. for (var i = 0; i < this.testJson.testCount; i++) {
  19548. if (
  19549. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19550. (this.radio[i] !== 0 && !this.radio[i])
  19551. ) {
  19552. this.$message.error("请选择选项");
  19553. return;
  19554. }
  19555. }
  19556. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19557. let params = [
  19558. {
  19559. uid: this.userid,
  19560. cid: this.id,
  19561. stage: this.courseType,
  19562. task: this.taskCount,
  19563. tool: this.toolindex,
  19564. content: JSON.stringify(this.askList),
  19565. type: 8,
  19566. },
  19567. ];
  19568. this.ajax
  19569. .post(this.$store.state.api + "addCourseWorks", params)
  19570. .then((res) => {
  19571. this.$message({
  19572. message: "提交成功",
  19573. type: "success",
  19574. });
  19575. this.askList = [];
  19576. this.dialogVisibleChoice = false;
  19577. this.selectStudent();
  19578. this.selectSWorks();
  19579. this.selectSLook();
  19580. })
  19581. .catch((err) => {
  19582. this.$message.error("提交失败");
  19583. console.error(err);
  19584. });
  19585. },
  19586. addStudentTestTeacher() {
  19587. if (!this.radio.length) {
  19588. this.$message.error("请选择选项");
  19589. return;
  19590. }
  19591. for (var i = 0; i < this.testJson.testCount; i++) {
  19592. if (
  19593. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19594. (this.radio[i] !== 0 && !this.radio[i])
  19595. ) {
  19596. this.$message.error("请选择选项");
  19597. return;
  19598. }
  19599. }
  19600. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19601. let params = [
  19602. {
  19603. uid: this.sStudent.userid,
  19604. cid: this.id,
  19605. stage: this.courseType,
  19606. task: this.taskCount,
  19607. tool: this.toolindex,
  19608. content: JSON.stringify(this.askList),
  19609. type: 8,
  19610. },
  19611. ];
  19612. this.ajax
  19613. .post(this.$store.state.api + "addCourseWorks", params)
  19614. .then((res) => {
  19615. this.$message({
  19616. message: "提交成功",
  19617. type: "success",
  19618. });
  19619. this.askList = [];
  19620. this.dialogVisibleChoiceTeacher = false;
  19621. this.selectStudent();
  19622. this.selectSWorks();
  19623. this.selectSLook();
  19624. })
  19625. .catch((err) => {
  19626. this.$message.error("提交失败");
  19627. console.error(err);
  19628. });
  19629. },
  19630. addWork() {
  19631. if (this.studyJuri[0].content == "") {
  19632. this.$message.error("请将信息填写完整");
  19633. return;
  19634. } else if (this.studyJuri[0].cover.length == 0) {
  19635. this.$message.error("请将信息填写完整");
  19636. return;
  19637. } else if (this.studyJuri[0].upVedio.length == 0) {
  19638. this.$message.error("请将信息填写完整");
  19639. return;
  19640. }
  19641. if (this.isNoHomeWork) {
  19642. this.$confirm(
  19643. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  19644. "提示",
  19645. {
  19646. confirmButtonText: "确定",
  19647. cancelButtonText: "取消",
  19648. type: "warning",
  19649. }
  19650. )
  19651. .then(() => {
  19652. let params = [
  19653. {
  19654. uid: this.userid,
  19655. cid: this.id,
  19656. stage: this.courseType,
  19657. task: this.taskCount,
  19658. content: JSON.stringify(this.studyJuri),
  19659. },
  19660. ];
  19661. this.ajax
  19662. .post(this.$store.state.api + "addWorks", params)
  19663. .then((res) => {
  19664. this.$message({
  19665. message: "提交成功",
  19666. type: "success",
  19667. });
  19668. this.isNoHomeWork = true;
  19669. this.dialogVisible = false;
  19670. })
  19671. .catch((err) => {
  19672. this.$message.error("提交失败");
  19673. console.error(err);
  19674. });
  19675. })
  19676. .catch(() => {});
  19677. } else {
  19678. let params = [
  19679. {
  19680. uid: this.userid,
  19681. cid: this.id,
  19682. stage: this.courseType,
  19683. task: this.taskCount,
  19684. content: JSON.stringify(this.studyJuri),
  19685. },
  19686. ];
  19687. this.ajax
  19688. .post(this.$store.state.api + "addWorks", params)
  19689. .then((res) => {
  19690. this.$message({
  19691. message: "提交成功",
  19692. type: "success",
  19693. });
  19694. this.isNoHomeWork = true;
  19695. this.dialogVisible = false;
  19696. })
  19697. .catch((err) => {
  19698. this.$message.error("提交失败");
  19699. console.error(err);
  19700. });
  19701. }
  19702. },
  19703. selectCount() {
  19704. let params = {
  19705. cid: this.id,
  19706. chid: this.courseType,
  19707. uid: this.userid,
  19708. };
  19709. this.ajax
  19710. .get(this.$store.state.api + "selectToolsCount", params)
  19711. .then((res) => {
  19712. for (var i = 0; i < res.data[0].length; i++) {
  19713. if (res.data[0][i].tools == 1) {
  19714. this.wbCount = res.data[0][i].count;
  19715. } else if (res.data[0][i].tools == 2) {
  19716. this.wordCount = res.data[0][i].count;
  19717. } else if (res.data[0][i].tools == 3) {
  19718. this.mindCount = res.data[0][i].count;
  19719. } else if (res.data[0][i].tools == 4) {
  19720. this.askCount = res.data[0][i].count;
  19721. } else if (res.data[0][i].tools == 6) {
  19722. this.noteCount = res.data[0][i].count;
  19723. } else if (res.data[0][i].tools == 7) {
  19724. this.mindNetWorkCount = res.data[0][i].count;
  19725. } else if (res.data[0][i].tools == 8) {
  19726. this.libraryCount = res.data[0][i].count;
  19727. } else if (res.data[0][i].tools == 16) {
  19728. this.workCount = res.data[0][i].count;
  19729. } else if (res.data[0][i].tools == 10) {
  19730. this.timeCount = res.data[0][i].count;
  19731. } else if (res.data[0][i].tools == 15) {
  19732. this.answerCount = res.data[0][i].count;
  19733. } else if (res.data[0][i].tools == 18) {
  19734. this.trainCount = res.data[0][i].count;
  19735. }
  19736. }
  19737. })
  19738. .catch((err) => {
  19739. console.error(err);
  19740. });
  19741. },
  19742. openTools(t, i, index, c, sName,id) {
  19743. var z = JSON.parse(c);
  19744. this.noteName = sName;
  19745. if (t == 4) {
  19746. this.radio = [];
  19747. this.isAnswer = false;
  19748. let b = z[0].anwer;
  19749. this.radio = b;
  19750. this.askJson = z[0].askJson;
  19751. this.isAnswer = true;
  19752. this.dialogVisible5 = true;
  19753. } else if (t == 45) {
  19754. this.radio = [];
  19755. this.isAnswer = false;
  19756. let b = z[0].anwer;
  19757. this.radio = b;
  19758. this.testJson = z[0].testJson;
  19759. this.isAnswer = true;
  19760. this.dialogVisibleChoice = true;
  19761. }else if(t == 69){
  19762. this.oldEnglishJson1 = {}
  19763. this.oldEnglishJson = {}
  19764. this.englishList1 = {}
  19765. this.newEngIndex = -1;
  19766. this.isNoUserid = false;
  19767. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19768. .toolChoose[i].englishList;
  19769. this.oldEnglishJson = z;
  19770. this.engWid = id;
  19771. this.newEnglishList = { engTitle:"",engText:"" }
  19772. this.newEnglishList1 = []
  19773. this.selectEngC(id,z);
  19774. }else if(t == 62){
  19775. this.videoType = 1;
  19776. this.videoJson = {};
  19777. this.videoJson = JSON.parse(c);
  19778. // this.videoJson =
  19779. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19780. // index
  19781. // ].toolChoose[i].videoJson;
  19782. this.dialogVisibleVideo = true;
  19783. }
  19784. // else if (t == 15) {
  19785. // this.answerQ = "";
  19786. // this.questionAnswer = "";
  19787. // this.answerQ = z[0].answerTitle;
  19788. // this.questionAnswer = z[0].answer;
  19789. // this.answerDialogVisible = true;
  19790. // }
  19791. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19792. },
  19793. fastText(p, t) {
  19794. if (t == 1) {
  19795. this.commentText += p;
  19796. } else {
  19797. this.eScore.eBzText += p;
  19798. }
  19799. },
  19800. addTools(t, i, index) {
  19801. var a = 0;
  19802. // this.taskCount = index;
  19803. this.toolindex = i;
  19804. if (t == 1) {
  19805. if (this.wbCount > 0) {
  19806. this.updateCount(this.wbCount, t);
  19807. } else {
  19808. this.wbCount++;
  19809. a = this.wbCount;
  19810. this.toolsCount(a, t);
  19811. }
  19812. window.parent.postMessage(
  19813. {
  19814. tools: "1",
  19815. cid: this.id,
  19816. stage: this.courseType,
  19817. task: this.taskCount,
  19818. tool: i,
  19819. },
  19820. "*"
  19821. );
  19822. } else if (t == 2) {
  19823. if (this.wordCount > 0) {
  19824. this.updateCount(this.wordCount, t);
  19825. } else {
  19826. this.wordCount++;
  19827. a = this.wordCount;
  19828. this.toolsCount(a, t);
  19829. }
  19830. window.parent.postMessage({ tools: "2" }, "*");
  19831. } else if (t == 3) {
  19832. if (this.mindCount > 0) {
  19833. this.updateCount(this.mindCount, t);
  19834. } else {
  19835. this.mindCount++;
  19836. a = this.mindCount;
  19837. this.toolsCount(a, t);
  19838. }
  19839. window.parent.postMessage(
  19840. {
  19841. tools: "3",
  19842. cid: this.id,
  19843. stage: this.courseType,
  19844. task: this.taskCount,
  19845. tool: i,
  19846. },
  19847. "*"
  19848. );
  19849. } else if (t == 4) {
  19850. this.radio = [];
  19851. this.noteName = "";
  19852. this.isAnswer = false;
  19853. if (this.askCount > 0) {
  19854. this.updateCount(this.askCount, t);
  19855. } else {
  19856. this.askCount++;
  19857. a = this.askCount;
  19858. this.toolsCount(a, t);
  19859. }
  19860. if (!this.dialogVisible2) {
  19861. this.askJson.askJson =
  19862. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19863. index
  19864. ].toolChoose[i].askJson;
  19865. this.askJson.askTitle =
  19866. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19867. index
  19868. ].toolChoose[i].askTitle;
  19869. this.askJson.askCount =
  19870. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19871. index
  19872. ].toolChoose[i].askCount;
  19873. } else {
  19874. this.askJson.askJson = this.chapTools.askJson.askJson;
  19875. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19876. this.askJson.askCount = this.chapTools.askJson.askCount;
  19877. }
  19878. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19879. if (this.askJson.askJson[k].type == "2") {
  19880. this.radio.push([]);
  19881. } else {
  19882. this.radio.push("");
  19883. }
  19884. }
  19885. this.dialogVisible5 = true;
  19886. // window.parent.postMessage({ tools: "4" }, "*");
  19887. } else if (t == 45) {
  19888. this.noteName = "";
  19889. this.radio = [];
  19890. this.isAnswer = false;
  19891. if (this.askCount > 0) {
  19892. this.updateCount(this.askCount, t);
  19893. } else {
  19894. this.askCount++;
  19895. a = this.askCount;
  19896. this.toolsCount(a, t);
  19897. }
  19898. this.testJson =
  19899. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19900. index
  19901. ].toolChoose[i].testJson;
  19902. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19903. if (this.testJson.testJson[k].type == "2") {
  19904. this.radio.push([]);
  19905. } else {
  19906. this.radio.push("");
  19907. }
  19908. }
  19909. this.dialogVisibleChoice = true;
  19910. // window.parent.postMessage({ tools: "4" }, "*");
  19911. } else if (t == 5) {
  19912. if (this.scoreCount > 0) {
  19913. this.updateCount(this.scoreCount, t);
  19914. } else {
  19915. this.scoreCount++;
  19916. a = this.scoreCount;
  19917. this.toolsCount(a, t);
  19918. }
  19919. this.dialogVisible4 = true;
  19920. // window.parent.postMessage({ tools: "5" }, "*");
  19921. } else if (t == 6) {
  19922. if (this.noteCount > 0) {
  19923. this.updateCount(this.noteCount, t);
  19924. } else {
  19925. this.noteCount++;
  19926. a = this.noteCount;
  19927. this.toolsCount(a, t);
  19928. }
  19929. window.parent.postMessage(
  19930. {
  19931. tools: "6",
  19932. cid: this.id,
  19933. stage: this.courseType,
  19934. task: this.taskCount,
  19935. tool: i,
  19936. },
  19937. "*"
  19938. );
  19939. } else if (t == 7) {
  19940. if (this.mindNetWorkCount > 0) {
  19941. this.updateCount(this.mindNetWorkCount, t);
  19942. } else {
  19943. this.mindNetWorkCount++;
  19944. a = this.mindNetWorkCount;
  19945. this.toolsCount(a, t);
  19946. }
  19947. window.parent.postMessage(
  19948. {
  19949. tools: "7",
  19950. cid: this.id,
  19951. stage: this.courseType,
  19952. task: this.taskCount,
  19953. tool: i,
  19954. },
  19955. "*"
  19956. );
  19957. } else if (t == 16) {
  19958. if (this.workCount > 0) {
  19959. this.updateCount(this.workCount, t);
  19960. } else {
  19961. this.workCount++;
  19962. a = this.workCount;
  19963. this.toolsCount(a, t);
  19964. }
  19965. this.dialogVisible = true;
  19966. } else if (t == 50) {
  19967. if (this.tType == 2) {
  19968. this.$message.error("不支持学生使用");
  19969. return;
  19970. }
  19971. this.plworkFile = [];
  19972. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19973. if (!this.uploadCid) {
  19974. this.$message.error(
  19975. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19976. );
  19977. return;
  19978. }
  19979. // this.uploadCid =
  19980. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19981. // index
  19982. // ].toolChoose[i].uploadJson[0];
  19983. this.selectUploadStudent(2);
  19984. } else if (t == 8) {
  19985. if (this.libraryCount > 0) {
  19986. this.updateCount(this.libraryCount, t);
  19987. } else {
  19988. this.libraryCount++;
  19989. a = this.libraryCount;
  19990. this.toolsCount(a, t);
  19991. }
  19992. window.parent.postMessage({ tools: "8" }, "*");
  19993. } else if (t == 17) {
  19994. if (this.libraryCount > 0) {
  19995. this.updateCount(this.libraryCount, t);
  19996. } else {
  19997. this.libraryCount++;
  19998. a = this.libraryCount;
  19999. this.toolsCount(a, t);
  20000. }
  20001. window.parent.postMessage({ tools: "17" }, "*");
  20002. } else if (t == 18) {
  20003. if (this.trainCount > 0) {
  20004. this.updateCount(this.trainCount, t);
  20005. } else {
  20006. this.trainCount++;
  20007. a = this.trainCount;
  20008. this.toolsCount(a, t);
  20009. }
  20010. window.parent.postMessage({ tools: "18" }, "*");
  20011. } else if (t == 10) {
  20012. if (this.timeCount > 0) {
  20013. this.updateCount(this.timeCount, t);
  20014. } else {
  20015. this.timeCount++;
  20016. a = this.timeCount;
  20017. this.toolsCount(a, t);
  20018. }
  20019. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  20020. .taskJson[index].toolChoose[i].preTime
  20021. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20022. .toolChoose[i].preTime
  20023. : "";
  20024. this.timeDialogVisible = true;
  20025. } else if (t == 15) {
  20026. this.answerQ = "";
  20027. this.questionAnswer = "";
  20028. if (this.answerCount > 0) {
  20029. this.updateCount(this.answerCount, t);
  20030. } else {
  20031. this.answerCount++;
  20032. a = this.answerCount;
  20033. this.toolsCount(a, t);
  20034. }
  20035. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  20036. .taskJson[index].toolChoose[i].answerQ
  20037. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20038. .toolChoose[i].answerQ
  20039. : "";
  20040. this.answerDialogVisible = true;
  20041. } else if (t == 21) {
  20042. window.parent.postMessage({ tools: "21" }, "*");
  20043. } else if (t == 22) {
  20044. window.parent.postMessage({ tools: "22" }, "*");
  20045. } else if (t == 23) {
  20046. window.parent.postMessage({ tools: "23" }, "*");
  20047. } else if (t == 24) {
  20048. window.parent.postMessage({ tools: "24" }, "*");
  20049. } else if (t == 25) {
  20050. window.parent.postMessage({ tools: "25" }, "*");
  20051. } else if (t == 31) {
  20052. window.parent.postMessage({ tools: "31" }, "*");
  20053. } else if (t == 28) {
  20054. window.parent.postMessage({ tools: "28" }, "*");
  20055. } else if (t == 37) {
  20056. window.parent.postMessage({ tools: "37" }, "*");
  20057. } else if (t == 38) {
  20058. window.parent.postMessage({ tools: "38" }, "*");
  20059. } else if (t == 39) {
  20060. window.parent.postMessage({ tools: "39" }, "*");
  20061. } else if (t == 32) {
  20062. window.parent.postMessage({ tools: "32" }, "*");
  20063. } else if (t == 66) {
  20064. window.parent.postMessage({ tools: "66" }, "*");
  20065. } else if (t == 67) {
  20066. window.parent.postMessage({ tools: "67" }, "*");
  20067. } else if (t == 68) {
  20068. window.parent.postMessage({ tools: "68" }, "*");
  20069. } else if (t == 57) {
  20070. // window.parent.postMessage({ tools: "57" }, "*");
  20071. window.parent.postMessage(
  20072. {
  20073. tools: "57u",
  20074. cid: this.id,
  20075. stage: this.courseType,
  20076. task: this.taskCount,
  20077. tool: i,
  20078. },
  20079. "*"
  20080. );
  20081. } else if (t == 58) {
  20082. window.parent.postMessage({ tools: "58" }, "*");
  20083. } else if (t == 59) {
  20084. window.parent.postMessage({ tools: "59" }, "*");
  20085. } else if (t == 60) {
  20086. window.parent.postMessage({ tools: "60" }, "*");
  20087. } else if (t == 61) {
  20088. window.parent.postMessage({ tools: "61" }, "*");
  20089. } else if (t == 63) {
  20090. window.parent.postMessage({ tools: "63" }, "*");
  20091. } else if (t == 71) {
  20092. window.parent.postMessage({ tools: "71" }, "*");
  20093. } else if (t == 69) {
  20094. if (this.worksStudent[i].length) {
  20095. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20096. if (this.userid == this.worksStudent[i][k].userid) {
  20097. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  20098. break;
  20099. } else {
  20100. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  20101. }
  20102. }
  20103. } else {
  20104. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  20105. }
  20106. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  20107. .taskJson[index].toolChoose[i].englishList
  20108. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20109. .toolChoose[i].englishList
  20110. : {};
  20111. this.englishToolIndex = i;
  20112. this.myAnList = this.myAnswerList1;
  20113. this.engDialogVisible = true;
  20114. } else if (t == 70) {
  20115. if (this.worksStudent[i].length) {
  20116. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20117. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  20118. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  20119. break;
  20120. } else {
  20121. this.englishVoiceJsonWork = [];
  20122. }
  20123. }
  20124. } else {
  20125. this.englishVoiceJsonWork = [];
  20126. }
  20127. let englishVoiceJson = {}
  20128. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20129. .taskJson[index].toolChoose[i].englishVoiceJson
  20130. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20131. .toolChoose[i].englishVoiceJson
  20132. : {};
  20133. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  20134. this.EnglishVoiceDialog = true;
  20135. } else if (t == 65) {
  20136. if (this.tType == 2) {
  20137. this.$message.error("不支持学生使用");
  20138. return;
  20139. }
  20140. this.uploadCid = this.tcid;
  20141. if (!this.uploadCid) {
  20142. this.$message.error(
  20143. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  20144. );
  20145. return;
  20146. }
  20147. this.selectPickStudent();
  20148. } else if (t == 26) {
  20149. window.parent.postMessage(
  20150. {
  20151. tools: "26",
  20152. cid: this.id,
  20153. stage: this.courseType,
  20154. task: this.taskCount,
  20155. tool: i,
  20156. },
  20157. "*"
  20158. );
  20159. } else if (t == 40) {
  20160. if (this.evalCount > 0) {
  20161. this.updateCount(this.evalCount, t);
  20162. } else {
  20163. this.evalCount++;
  20164. a = this.evalCount;
  20165. this.toolsCount(a, t);
  20166. }
  20167. this.eScore = { eBzText: "", eStar: [] };
  20168. if (this.worksStudent[i].length) {
  20169. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20170. if (this.userid == this.worksStudent[i][k].userid) {
  20171. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20172. this.rateJson =
  20173. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20174. index
  20175. ].toolChoose[i].rateJson;
  20176. break;
  20177. } else {
  20178. this.rateJson =
  20179. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20180. index
  20181. ].toolChoose[i].rateJson;
  20182. }
  20183. }
  20184. } else {
  20185. this.rateJson =
  20186. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20187. index
  20188. ].toolChoose[i].rateJson;
  20189. }
  20190. this.isStar = false;
  20191. this.studentEvalDialogVisible = true;
  20192. } else if (t == 41) {
  20193. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20194. .taskJson[index].toolChoose[i].selectJson
  20195. ? JSON.parse(
  20196. JSON.stringify(
  20197. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20198. index
  20199. ].toolChoose[i].selectJson
  20200. )
  20201. )
  20202. : { url: "", select: [], answer: [] };
  20203. if (this.worksStudent[i].length) {
  20204. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20205. if (this.userid == this.worksStudent[i][k].userid) {
  20206. var a = this.worksStudent[i][k].works.split(",");
  20207. for (var ki = 0; ki < a.length; ki++) {
  20208. a[ki] = parseInt(a[ki]);
  20209. }
  20210. this.selectAnswer = {
  20211. answer: a,
  20212. stu: this.worksStudent[i][k].sName,
  20213. };
  20214. break;
  20215. } else {
  20216. this.selectAnswer = { answer: [], stu: "" };
  20217. }
  20218. }
  20219. } else {
  20220. this.selectAnswer = { answer: [], stu: "" };
  20221. }
  20222. this.isSelect = false;
  20223. this.dialogVisibleSelect = true;
  20224. } else if (t == 44) {
  20225. window.parent.postMessage({ tools: "44" }, "*");
  20226. } else if (t == 47) {
  20227. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20228. .taskJson[index].toolChoose[i].sentenceList
  20229. ? JSON.parse(
  20230. JSON.stringify(
  20231. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20232. index
  20233. ].toolChoose[i].sentenceList
  20234. )
  20235. )
  20236. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20237. for (var q = 0; q < this.sentenceList.length; q++) {
  20238. this.sentenceList[q].chooseSenList = [];
  20239. this.sentenceList[q].addChangeSen = [];
  20240. this.sentenceList[q].addChangeSen = JSON.parse(
  20241. JSON.stringify(this.sentenceList[q].addSentence)
  20242. );
  20243. this.sentenceList[q].chooseSenList.length =
  20244. this.sentenceList[q].rightAnswer.length;
  20245. }
  20246. this.dialogVisibleSentence = true;
  20247. } else if (t == 48) {
  20248. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20249. .taskJson[index].toolChoose[i].tableJson
  20250. ? JSON.parse(
  20251. JSON.stringify(
  20252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20253. index
  20254. ].toolChoose[i].tableJson
  20255. )
  20256. )
  20257. : { text: "" };
  20258. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  20259. if (this.worksStudent[i].length) {
  20260. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20261. if (this.userid == this.worksStudent[i][k].userid) {
  20262. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20263. break;
  20264. }
  20265. }
  20266. }
  20267. this.dialogVisibleTable = true;
  20268. } else if (t == 52) {
  20269. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20270. .taskJson[index].toolChoose[i].wordJson
  20271. ? JSON.parse(
  20272. JSON.stringify(
  20273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20274. index
  20275. ].toolChoose[i].wordJson
  20276. )
  20277. )
  20278. : { text: "" };
  20279. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  20280. if (this.worksStudent[i].length) {
  20281. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20282. if (this.userid == this.worksStudent[i][k].userid) {
  20283. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  20284. break;
  20285. }
  20286. }
  20287. }
  20288. this.dialogVisibleWord = true;
  20289. } else if (t == 49) {
  20290. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  20291. return
  20292. }
  20293. this.groupJson =
  20294. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20295. index
  20296. ].toolChoose[i].groupJson;
  20297. this.islock = this.groupJson.islock == 1 ? true : false;
  20298. this.dialogVisibleGroup = true;
  20299. } else if (t == 62) {
  20300. this.videoType = 0;
  20301. this.videoJson = {};
  20302. this.videoJson =
  20303. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20304. index
  20305. ].toolChoose[i].videoJson;
  20306. this.dialogVisibleVideo = true;
  20307. }
  20308. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  20309. },
  20310. teacherWorkSubmit(t, i, index, s) {
  20311. this.sStudent = s;
  20312. this.toolindex = i;
  20313. this.sTool = t;
  20314. if (this.tType !== "1" && this.tType !== "4") {
  20315. return;
  20316. }
  20317. if (t == 16 || t == 32 || t == 50) {
  20318. this.dialogVisibleWorks = true;
  20319. } else if (t == 15) {
  20320. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  20321. .taskJson[index].toolChoose[i].answerQ
  20322. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20323. .toolChoose[i].answerQ
  20324. : "";
  20325. this.questionAnswer = "";
  20326. this.answerDialogVisibleTeacher = true; //问答
  20327. } else if (t == 52) {
  20328. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20329. .taskJson[index].toolChoose[i].wordJson
  20330. ? JSON.parse(
  20331. JSON.stringify(
  20332. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20333. index
  20334. ].toolChoose[i].wordJson
  20335. )
  20336. )
  20337. : { text: "" };
  20338. if (this.worksStudent[i].length) {
  20339. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20340. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20341. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  20342. break;
  20343. }
  20344. }
  20345. }
  20346. this.dialogVisibleWordTeacher = true; //文档
  20347. } else if (t == 4) {
  20348. this.radio = [];
  20349. this.noteName = "";
  20350. this.isAnswer = false;
  20351. if (this.askCount > 0) {
  20352. this.updateCount(this.askCount, t);
  20353. } else {
  20354. this.askCount++;
  20355. a = this.askCount;
  20356. this.toolsCount(a, t);
  20357. }
  20358. if (!this.dialogVisible2) {
  20359. this.askJson.askJson =
  20360. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20361. index
  20362. ].toolChoose[i].askJson;
  20363. this.askJson.askTitle =
  20364. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20365. index
  20366. ].toolChoose[i].askTitle;
  20367. this.askJson.askCount =
  20368. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20369. index
  20370. ].toolChoose[i].askCount;
  20371. } else {
  20372. this.askJson.askJson = this.chapTools.askJson.askJson;
  20373. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  20374. this.askJson.askCount = this.chapTools.askJson.askCount;
  20375. }
  20376. for (var k = 0; k < this.askJson.askJson.length; k++) {
  20377. if (this.askJson.askJson[k].type == "2") {
  20378. this.radio.push([]);
  20379. } else {
  20380. this.radio.push("");
  20381. }
  20382. }
  20383. this.dialogVisible5Teacher = true;
  20384. } else if (t == 45) {
  20385. this.noteName = "";
  20386. this.radio = [];
  20387. this.isAnswer = false;
  20388. if (this.askCount > 0) {
  20389. this.updateCount(this.askCount, t);
  20390. } else {
  20391. this.askCount++;
  20392. a = this.askCount;
  20393. this.toolsCount(a, t);
  20394. }
  20395. this.testJson =
  20396. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20397. index
  20398. ].toolChoose[i].testJson;
  20399. for (var k = 0; k < this.testJson.testJson.length; k++) {
  20400. if (this.testJson.testJson[k].type == "2") {
  20401. this.radio.push([]);
  20402. } else {
  20403. this.radio.push("");
  20404. }
  20405. }
  20406. this.dialogVisibleChoiceTeacher = true;
  20407. } else if (t == 41) {
  20408. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20409. .taskJson[index].toolChoose[i].selectJson
  20410. ? JSON.parse(
  20411. JSON.stringify(
  20412. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20413. index
  20414. ].toolChoose[i].selectJson
  20415. )
  20416. )
  20417. : { url: "", select: [], answer: [] };
  20418. if (this.worksStudent[i].length) {
  20419. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20420. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20421. var a = this.worksStudent[i][k].works.split(",");
  20422. for (var ki = 0; ki < a.length; ki++) {
  20423. a[ki] = parseInt(a[ki]);
  20424. }
  20425. this.selectAnswer = {
  20426. answer: a,
  20427. stu: this.worksStudent[i][k].sName,
  20428. };
  20429. break;
  20430. } else {
  20431. this.selectAnswer = { answer: [], stu: "" };
  20432. }
  20433. }
  20434. } else {
  20435. this.selectAnswer = { answer: [], stu: "" };
  20436. }
  20437. this.isSelect = false;
  20438. this.dialogVisibleSelectTeacher = true;
  20439. } else if (t == 47) {
  20440. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20441. .taskJson[index].toolChoose[i].sentenceList
  20442. ? JSON.parse(
  20443. JSON.stringify(
  20444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20445. index
  20446. ].toolChoose[i].sentenceList
  20447. )
  20448. )
  20449. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20450. for (var q = 0; q < this.sentenceList.length; q++) {
  20451. this.sentenceList[q].chooseSenList = [];
  20452. this.sentenceList[q].addChangeSen = [];
  20453. this.sentenceList[q].addChangeSen = JSON.parse(
  20454. JSON.stringify(this.sentenceList[q].addSentence)
  20455. );
  20456. this.sentenceList[q].chooseSenList.length =
  20457. this.sentenceList[q].rightAnswer.length;
  20458. }
  20459. this.dialogVisibleSentenceTeacher = true;
  20460. } else if (t == 48) {
  20461. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20462. .taskJson[index].toolChoose[i].tableJson
  20463. ? JSON.parse(
  20464. JSON.stringify(
  20465. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20466. index
  20467. ].toolChoose[i].tableJson
  20468. )
  20469. )
  20470. : { text: "" };
  20471. if (this.worksStudent[i].length) {
  20472. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20473. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20474. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20475. break;
  20476. }
  20477. }
  20478. }
  20479. this.dialogVisibleTableTeacher = true;
  20480. } else if (t == 40) {
  20481. if (this.evalCount > 0) {
  20482. this.updateCount(this.evalCount, t);
  20483. } else {
  20484. this.evalCount++;
  20485. a = this.evalCount;
  20486. this.toolsCount(a, t);
  20487. }
  20488. this.eScore = { eBzText: "", eStar: [] };
  20489. if (this.worksStudent[i].length) {
  20490. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20491. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20492. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20493. this.rateJson =
  20494. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20495. index
  20496. ].toolChoose[i].rateJson;
  20497. break;
  20498. } else {
  20499. this.rateJson =
  20500. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20501. index
  20502. ].toolChoose[i].rateJson;
  20503. }
  20504. }
  20505. } else {
  20506. this.rateJson =
  20507. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20508. index
  20509. ].toolChoose[i].rateJson;
  20510. }
  20511. this.isStar = false;
  20512. this.studentEvalDialogVisibleTeacher = true;
  20513. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  20514. window.parent.postMessage(
  20515. {
  20516. tools: t + "teacher",
  20517. cid: this.id,
  20518. stage: this.courseType,
  20519. task: this.taskCount,
  20520. tool: i,
  20521. student: this.sStudent,
  20522. },
  20523. "*"
  20524. );
  20525. }
  20526. },
  20527. openCocoPi(tool, i, uid, uname) {
  20528. let student = {
  20529. userid: uid,
  20530. student: uname,
  20531. };
  20532. if (tool == 57) {
  20533. window.parent.postMessage(
  20534. {
  20535. tools: tool + "teacher",
  20536. cid: this.id,
  20537. stage: this.courseType,
  20538. task: this.taskCount,
  20539. tool: i,
  20540. student: student,
  20541. },
  20542. "*"
  20543. );
  20544. }
  20545. },
  20546. setRightAnswer(s, i, j) {
  20547. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  20548. if (
  20549. this.sentenceList[i].chooseSenList[q] == undefined ||
  20550. this.sentenceList[i].chooseSenList[q] == ""
  20551. ) {
  20552. this.sentenceList[i].chooseSenList[q] = s;
  20553. this.sentenceList[i].addChangeSen[j] = "";
  20554. break;
  20555. }
  20556. }
  20557. this.$forceUpdate();
  20558. },
  20559. returnCard(r, i, j) {
  20560. var a = this.sentenceList[i].addSentence.indexOf(r);
  20561. this.sentenceList[i].chooseSenList[j] = "";
  20562. this.sentenceList[i].addChangeSen[a] = r;
  20563. this.$forceUpdate();
  20564. },
  20565. // addSentenceTool() {
  20566. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20567. // this.taskCount
  20568. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  20569. // this.sentenceList = [
  20570. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  20571. // ];
  20572. // this.dialogVisibleSentence = false;
  20573. // },
  20574. toolsCount(a, t) {
  20575. let params = {
  20576. cid: this.id,
  20577. chid: this.courseType,
  20578. uid: this.userid,
  20579. tid: t,
  20580. count: a,
  20581. };
  20582. this.ajax
  20583. .get(this.$store.state.api + "insertToolsCount", params)
  20584. .then((res) => {
  20585. this.selectCount();
  20586. })
  20587. .catch((err) => {
  20588. console.error(err);
  20589. });
  20590. },
  20591. updateCount(c, t) {
  20592. c++;
  20593. let params = {
  20594. cid: this.id,
  20595. chid: this.courseType,
  20596. uid: this.userid,
  20597. tid: t,
  20598. count: c,
  20599. };
  20600. this.ajax
  20601. .get(this.$store.state.api + "updateToolsCount", params)
  20602. .then((res) => {
  20603. this.selectCount();
  20604. })
  20605. .catch((err) => {
  20606. console.error(err);
  20607. });
  20608. },
  20609. checkEva() {
  20610. if (this.evalua != "") {
  20611. for (var i = 0; i < this.evaJuri.length; i++) {
  20612. if (this.evalua == this.evaJuri[i].id) {
  20613. this.eTitle = this.evaJuri[i].title;
  20614. this.eJson = JSON.parse(this.evaJuri[i].content);
  20615. }
  20616. }
  20617. this.$forceUpdate();
  20618. setTimeout(() => {
  20619. this.setMindData();
  20620. }, 0);
  20621. }
  20622. },
  20623. selectEva() {
  20624. let params = {
  20625. oid: this.oid,
  20626. };
  20627. this.ajax
  20628. .get(this.$store.state.api + "selectAllEvaluation", params)
  20629. .then((res) => {
  20630. this.evaJuri = res.data[0];
  20631. })
  20632. .catch((err) => {
  20633. console.error(err);
  20634. });
  20635. },
  20636. setMindData() {
  20637. this.data.data = [];
  20638. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  20639. let _eJson = Object.keys(this.eJson);
  20640. let _e = this.eJson;
  20641. for (let i = 0; i < _eJson.length; i++) {
  20642. let element = _e[_eJson[i]];
  20643. this.data.data.push({
  20644. id: element.id,
  20645. parentid: "root",
  20646. topic: element.name,
  20647. });
  20648. let _eJsonc = Object.keys(element.child);
  20649. let _e2 = element.child;
  20650. for (let j = 0; j < _eJsonc.length; j++) {
  20651. let _ec = _e2[_eJsonc[j]];
  20652. this.data.data.push({
  20653. id: _ec.id,
  20654. parentid: element.id,
  20655. topic: _ec.name,
  20656. });
  20657. let _eJsonz = Object.keys(_ec.child);
  20658. let _e3 = _ec.child;
  20659. for (let z = 0; z < _eJsonz.length; z++) {
  20660. let _ez = _e3[_eJsonz[z]];
  20661. this.data.data.push({
  20662. id: _ez.id,
  20663. parentid: _ec.id,
  20664. topic: _ez.name,
  20665. });
  20666. }
  20667. }
  20668. }
  20669. this.$forceUpdate();
  20670. },
  20671. checkFileFull(type, url) {
  20672. this.fullDialogVisible = true;
  20673. this.fulltype = type;
  20674. this.fullUrl = url;
  20675. },
  20676. async checkFileFull1(t, f) {
  20677. this.fullDialogVisible = true;
  20678. if (t == 6) {
  20679. this.fulltype = 1;
  20680. this.fullUrl = JSON.parse(JSON.stringify(f));
  20681. } else if (t == 8) {
  20682. this.fulltype = 2;
  20683. this.fullUrl = f.url;
  20684. } else if (
  20685. t == 3 &&
  20686. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  20687. "PDF"
  20688. ) {
  20689. this.fulltype = 3;
  20690. this.fullUrl = f.url;
  20691. } else if (t == 3) {
  20692. this.fulltype = 2;
  20693. let _uuurl = await this.checkLink(f.url);
  20694. this.fullUrl =
  20695. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  20696. }
  20697. },
  20698. openSname(n, id, i, uid) {
  20699. this.snameWid = id;
  20700. this.worksSName = n;
  20701. this.worksSid = uid == n ? "" : uid;
  20702. this.toolindex = i;
  20703. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  20704. if (!this.uploadCid) {
  20705. this.$message.error(
  20706. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  20707. );
  20708. return;
  20709. }
  20710. this.selectUploadStudent(1);
  20711. },
  20712. updateName() {
  20713. let params = {
  20714. n: this.worksSName,
  20715. cid: this.snameWid,
  20716. };
  20717. this.ajax
  20718. .get(this.$store.state.api + "updateCourseWorksName", params)
  20719. .then((res) => {
  20720. this.$message({
  20721. message: "修改成功",
  20722. type: "success",
  20723. });
  20724. this.dialogVisibleSname = false;
  20725. this.getCourseDetail(2);
  20726. this.snameWid = "";
  20727. this.worksSName = "";
  20728. })
  20729. .catch((err) => {
  20730. console.error(err);
  20731. });
  20732. },
  20733. downloadFile2(f) {
  20734. // const loading = this.$loading.service({
  20735. // background: "rgba(255, 255, 255, 0.7)",
  20736. // target: document.body,
  20737. // text: "文件加载中...",
  20738. // });
  20739. // let url2 = f.url;
  20740. // let _url2 = "";
  20741. // if (
  20742. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20743. // ) {
  20744. // _url2 = url2.split(
  20745. // "https://view.officeapps.live.com/op/view.aspx?src="
  20746. // )[1];
  20747. // } else {
  20748. // _url2 = url2;
  20749. // }
  20750. // let params = {
  20751. // url: _url2,
  20752. // name: f.name,
  20753. // };
  20754. // this.ajax
  20755. // .get(this.$store.state.api + "download", params)
  20756. // .then((res) => {
  20757. // loading.close();
  20758. // let content = res.data.data.data;
  20759. // let ab = new ArrayBuffer(content.length);
  20760. // let view = new Uint8Array(ab);
  20761. // for (var i = 0; i < content.length; ++i) {
  20762. // view[i] = content[i];
  20763. // }
  20764. // let elink = document.createElement("a");
  20765. // elink.download = f.name;
  20766. // elink.style.display = "none";
  20767. // let blob = new Blob([ab], {
  20768. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20769. // });
  20770. // elink.href = URL.createObjectURL(blob);
  20771. // document.body.appendChild(elink);
  20772. // elink.click();
  20773. // document.body.removeChild(elink);
  20774. // })
  20775. // .catch((err) => {
  20776. // loading.close();
  20777. // console.error(err);
  20778. // });
  20779. var credentials = {
  20780. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20781. secretAccessKey: "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",
  20782. }; //秘钥形式的登录上传
  20783. window.AWS.config.update(credentials);
  20784. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20785. let url2 = f.url;
  20786. let _url2 = "";
  20787. if (
  20788. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20789. ) {
  20790. _url2 = url2.split(
  20791. "https://view.officeapps.live.com/op/view.aspx?src="
  20792. )[1];
  20793. } else {
  20794. _url2 = url2;
  20795. }
  20796. let _this = this;
  20797. _this.downLoading = true
  20798. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20799. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20800. var params = {
  20801. Bucket: "ccrb",
  20802. Key: name
  20803. };
  20804. s3.getObject(params, function (err, data) {
  20805. _this.downLoading = false
  20806. if (err) console.log(err, err.stack); // an error occurred
  20807. else {
  20808. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20809. let a = document.createElement("a");
  20810. a.name = f.name;
  20811. a.href = url;
  20812. a.download = f.name;
  20813. a.click();
  20814. console.log(data);
  20815. } // sxuccessful response
  20816. });
  20817. return;
  20818. let url = f.url;
  20819. let _url = "";
  20820. if (
  20821. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20822. ) {
  20823. _url = url.split(
  20824. "https://view.officeapps.live.com/op/view.aspx?src="
  20825. )[1];
  20826. } else {
  20827. _url = url;
  20828. }
  20829. _this.downLoading = true
  20830. // const loading = _this.$loading.service({
  20831. // background: "rgba(255, 255, 255, 0.7)",
  20832. // target: document.body,
  20833. // text: "文件加载中...",
  20834. // });
  20835. let x = new XMLHttpRequest();
  20836. x.open("GET", _url, true);
  20837. x.responseType = "blob";
  20838. x.onload = function () {
  20839. _this.downLoading = false
  20840. // loading.close();
  20841. let url = window.URL.createObjectURL(new Blob([x.response]));
  20842. let a = document.createElement("a");
  20843. a.name = f.name;
  20844. a.href = url;
  20845. a.download = f.name;
  20846. a.click();
  20847. };
  20848. x.send();
  20849. },
  20850. downloadFile(url) {
  20851. let hz = url.substring(url.lastIndexOf(".") + 1);
  20852. if(hz == "txt" || hz == "md"){
  20853. this.lookTxt(url)
  20854. return
  20855. }
  20856. var credentials = {
  20857. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20858. secretAccessKey: "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",
  20859. }; //秘钥形式的登录上传
  20860. window.AWS.config.update(credentials);
  20861. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20862. let url2 = url;
  20863. let _url2 = "";
  20864. if (
  20865. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20866. ) {
  20867. _url2 = url2.split(
  20868. "https://view.officeapps.live.com/op/view.aspx?src="
  20869. )[1];
  20870. } else {
  20871. _url2 = url2;
  20872. }
  20873. const loading2 = this.$loading.service({
  20874. background: "rgba(255, 255, 255, 0.7)",
  20875. target: document.body,
  20876. text: "文件加载中...",
  20877. });
  20878. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20879. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20880. var params = {
  20881. Bucket: "ccrb",
  20882. Key: name
  20883. };
  20884. s3.getObject(params, function (err, data) {
  20885. loading2.close();
  20886. if (err) console.log(err, err.stack); // an error occurred
  20887. else {
  20888. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20889. let a = document.createElement("a");
  20890. a.name = name;
  20891. a.href = url;
  20892. a.download = name;
  20893. a.click();
  20894. console.log(data);
  20895. } // sxuccessful response
  20896. });
  20897. return;
  20898. let _this = this;
  20899. let _url = "";
  20900. if (
  20901. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20902. ) {
  20903. _url = url.split(
  20904. "https://view.officeapps.live.com/op/view.aspx?src="
  20905. )[1];
  20906. } else {
  20907. _url = url;
  20908. }
  20909. const x = new XMLHttpRequest();
  20910. x.open("GET", _url, true);
  20911. x.responseType = "blob";
  20912. const loading = _this.$loading.service({
  20913. background: "rgba(255, 255, 255, 0.7)",
  20914. target: document.body,
  20915. text: "文件加载中...",
  20916. });
  20917. // _this.$message.success("文件下载中...");
  20918. x.onload = function (e) {
  20919. loading.close();
  20920. let content = x.response;
  20921. let elink = document.createElement("a");
  20922. elink.download = decodeURI(
  20923. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20924. );
  20925. elink.style.display = "none";
  20926. let blob = new Blob([content]);
  20927. elink.href = URL.createObjectURL(blob);
  20928. document.body.appendChild(elink);
  20929. elink.click();
  20930. document.body.removeChild(elink);
  20931. };
  20932. x.send();
  20933. },
  20934. openLine(url) {
  20935. window.open(url);
  20936. },
  20937. resize() {
  20938. if (document.getElementsByClassName("box_course").length) {
  20939. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20940. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20941. if (this.showType == 2 || this.showType == 3) {
  20942. document.getElementsByClassName("navBox")[0].style.height =
  20943. a - 40 + 0+ "px";
  20944. } else {
  20945. document.getElementsByClassName("navBox")[0].style.height =
  20946. a - 40 + "px";
  20947. }
  20948. }
  20949. this.Stbodywidth =
  20950. document.getElementsByClassName("student_body").length &&
  20951. document.getElementsByClassName("student_body")[0].offsetWidth;
  20952. },
  20953. closeDraw() {
  20954. this.bg = null;
  20955. this.drawShow = false;
  20956. },
  20957. showPicturePaint(url) {
  20958. let params = {
  20959. img: url,
  20960. };
  20961. this.ajax
  20962. .get(this.$store.state.api + "imgToBase64", params)
  20963. .then((res) => {
  20964. this.drawShow = true;
  20965. this.bg = res.data[0].img;
  20966. })
  20967. .catch((err) => {
  20968. console.error(err);
  20969. });
  20970. },
  20971. addImgDraw(base64) {
  20972. let file = { name: "批注图.png" };
  20973. let img = this.dataUrlToFile(base64, file);
  20974. this.beforeUpload1(img, 5);
  20975. },
  20976. addImgDrawImG(url) {
  20977. // console.log(url);
  20978. let params = [
  20979. {
  20980. wid: this.commentDetail.wid,
  20981. img: url,
  20982. },
  20983. ];
  20984. this.ajax
  20985. .post(this.$store.state.api + "updateCourseWorks", params)
  20986. .then((res) => {
  20987. this.$message({
  20988. message: "提交成功",
  20989. type: "success",
  20990. });
  20991. this.drawShow = false;
  20992. this.bg = "";
  20993. this.selectSWorks();
  20994. this.selectStudent();
  20995. })
  20996. .catch((err) => {
  20997. this.$message.error("提交失败");
  20998. console.error(err);
  20999. });
  21000. },
  21001. deletePicturePaint() {
  21002. this.$confirm("确定删除此批注吗?", "提示", {
  21003. confirmButtonText: "确定",
  21004. cancelButtonText: "取消",
  21005. type: "warning",
  21006. })
  21007. .then(() => {
  21008. let params = [
  21009. {
  21010. wid: this.commentDetail.wid,
  21011. img: "",
  21012. },
  21013. ];
  21014. this.ajax
  21015. .post(this.$store.state.api + "updateCourseWorks", params)
  21016. .then((res) => {
  21017. this.$message({
  21018. message: "删除成功",
  21019. type: "success",
  21020. });
  21021. this.selectSWorks();
  21022. this.selectStudent();
  21023. })
  21024. .catch((err) => {
  21025. this.$message.error("删除失败");
  21026. console.error(err);
  21027. });
  21028. })
  21029. .catch(() => {});
  21030. },
  21031. getAudioVideo(constraintsData) {
  21032. if (navigator.mediaDevices === undefined) {
  21033. navigator.mediaDevices = {};
  21034. }
  21035. if (navigator.mediaDevices.getUserMedia === undefined) {
  21036. navigator.mediaDevices.getUserMedia = function (constraints) {
  21037. // 首先,如果有getUserMedia的话,就获得它
  21038. var getUserMedia =
  21039. navigator.getUserMedia ||
  21040. navigator.webkitGetUserMedia ||
  21041. navigator.mozGetUserMedia ||
  21042. navigator.msGetUserMedia;
  21043. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  21044. if (!getUserMedia) {
  21045. return Promise.reject({ code: 404 });
  21046. }
  21047. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  21048. return new Promise(function (resolve, reject) {
  21049. getUserMedia.call(navigator, constraints, resolve, reject);
  21050. });
  21051. };
  21052. }
  21053. return navigator.mediaDevices.getUserMedia(constraintsData);
  21054. },
  21055. /**
  21056. * 开始录制
  21057. */
  21058. startRecording(callback) {
  21059. let _function = (screenStream) => {
  21060. this.addStreamStopListener(screenStream, () => {
  21061. console.log("流停止监听");
  21062. this.stopRecording();
  21063. this.$emit("streamStop", {});
  21064. // this.stopRecording();
  21065. });
  21066. var options = {
  21067. type: "video",
  21068. mimeType: "video/webm",
  21069. disableLogs: false,
  21070. getNativeBlob: false, // enable it for longer recordings
  21071. ignoreMutedMedia: false,
  21072. };
  21073. // this.video.srcObject = screenStream;
  21074. this.recorder = RecordRTC(screenStream, options);
  21075. this.recorder.startRecording();
  21076. this.recorder.screen = screenStream;
  21077. this.videoStart = true;
  21078. // callback(true);
  21079. };
  21080. this.getAudioVideo({ audio: true })
  21081. .then((res) => {
  21082. this.captureScreen(_function, true);
  21083. console.log("已点击允许,开启成功");
  21084. })
  21085. .catch((err) => {
  21086. // console.log('浏览器不支持,请更换浏览器')
  21087. // } else {
  21088. this.captureScreen(_function, false);
  21089. console.log("请检查是否存在麦克风");
  21090. });
  21091. },
  21092. /**
  21093. * 停止录制
  21094. */
  21095. stopRecording(callback) {
  21096. this.recorder.stopRecording(() => {
  21097. // this.video.src = this.video.srcObject = null;
  21098. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  21099. const url = URL.createObjectURL(this.recorder.getBlob());
  21100. const a = document.createElement("a"); //this.fileName+
  21101. let videoFile = new File(
  21102. [this.recorder.getBlob()],
  21103. this.courseDetail.title + "录屏.mp4",
  21104. {
  21105. type: "video/mp4",
  21106. }
  21107. );
  21108. let downloadUrl = URL.createObjectURL(videoFile);
  21109. document.body.appendChild(a);
  21110. a.style.display = "none";
  21111. a.href = url;
  21112. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  21113. a.click();
  21114. this.recorder.screen.stop();
  21115. this.recorder.destroy();
  21116. this.recorder = null;
  21117. this.videoStart = false;
  21118. // callback(false);
  21119. });
  21120. },
  21121. //初始化
  21122. captureScreen(callback, type) {
  21123. if (navigator.getDisplayMedia) {
  21124. //录制结束,文件下载
  21125. navigator
  21126. .getDisplayMedia({
  21127. video: true,
  21128. })
  21129. .then((screenStream) => {
  21130. if (type) {
  21131. navigator.mediaDevices
  21132. .getUserMedia({ audio: true })
  21133. .then((mic) => {
  21134. screenStream.addTrack(mic.getTracks()[0]);
  21135. callback(screenStream);
  21136. });
  21137. } else {
  21138. callback(screenStream);
  21139. }
  21140. })
  21141. .catch(function (error) {
  21142. console.log("error", error);
  21143. });
  21144. } else if (navigator.mediaDevices.getDisplayMedia) {
  21145. navigator.mediaDevices
  21146. .getDisplayMedia({
  21147. video: true,
  21148. })
  21149. .then((screenStream) => {
  21150. if (type) {
  21151. navigator.mediaDevices
  21152. .getUserMedia({ audio: true })
  21153. .then((mic) => {
  21154. screenStream.addTrack(mic.getTracks()[0]);
  21155. callback(screenStream);
  21156. });
  21157. } else {
  21158. callback(screenStream);
  21159. }
  21160. })
  21161. .catch(function (error) {
  21162. console.log("error", error);
  21163. });
  21164. } else {
  21165. var error = "getDisplayMedia API are not supported in this browser.";
  21166. console.log("error", error);
  21167. alert(error);
  21168. }
  21169. },
  21170. //流监听
  21171. addStreamStopListener(stream, callback) {
  21172. stream.addEventListener(
  21173. "ended",
  21174. function () {
  21175. callback();
  21176. callback = function () {};
  21177. },
  21178. false
  21179. );
  21180. stream.addEventListener(
  21181. "inactive",
  21182. function () {
  21183. callback();
  21184. callback = function () {};
  21185. },
  21186. false
  21187. );
  21188. stream.getTracks().forEach(function (track) {
  21189. track.addEventListener(
  21190. "ended",
  21191. function () {
  21192. callback();
  21193. callback = function () {};
  21194. },
  21195. false
  21196. );
  21197. track.addEventListener(
  21198. "inactive",
  21199. function () {
  21200. callback();
  21201. callback = function () {};
  21202. },
  21203. false
  21204. );
  21205. });
  21206. },
  21207. updateGroup() {
  21208. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  21209. this.dialogVisibleGroup2 = true;
  21210. },
  21211. numberPan() {
  21212. if (
  21213. /[^\d]/.test(this.groupJson.number) ||
  21214. this.groupJson.number < 2 ||
  21215. this.groupJson.number > 10
  21216. ) {
  21217. this.$message.error("请输入2-10的数字");
  21218. this.groupJson.number = "";
  21219. }
  21220. },
  21221. updateGroupJson() {
  21222. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  21223. if (
  21224. this.groupStudentUid[this.toolindex][i].length >
  21225. this.groupJson2.number
  21226. ) {
  21227. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  21228. return;
  21229. }
  21230. }
  21231. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  21232. this.islock = this.groupJson.islock == 1 ? true : false;
  21233. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21234. this.taskCount
  21235. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  21236. let params = [
  21237. {
  21238. cid: this.id,
  21239. chapters: JSON.stringify(this.chapInfoList),
  21240. uid: this.userid,
  21241. unitIndex: this.courseType,
  21242. },
  21243. ];
  21244. this.ajax
  21245. .post(this.$store.state.api + "updateWorkNew4", params)
  21246. .then((res) => {
  21247. this.$message.success("设置成功");
  21248. this.getCourseDetail(2);
  21249. this.dialogVisibleGroup2 = false;
  21250. this.groupJson2 = {};
  21251. this.$forceUpdate();
  21252. })
  21253. .catch((err) => {
  21254. this.$message.error("网络不佳");
  21255. console.error(err);
  21256. });
  21257. },
  21258. lockChair() {
  21259. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  21260. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  21261. this.updateGroupJson();
  21262. },
  21263. selectGroup(index) {
  21264. this.getCourseDetail(2, index);
  21265. },
  21266. joinGroup(index) {
  21267. if (this.groupJson.islock == 2) {
  21268. this.$message.error("位置已被锁定,无法加入");
  21269. return;
  21270. }
  21271. if (
  21272. this.groupStudent[this.toolindex][index].length >
  21273. this.groupJson.number ||
  21274. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  21275. ) {
  21276. this.$message.error("位置已满,无法加入");
  21277. return;
  21278. }
  21279. let params = [
  21280. {
  21281. cid: this.id,
  21282. stage: this.courseType,
  21283. task: this.taskCount,
  21284. tool: this.toolindex,
  21285. g: index,
  21286. uid: this.userid,
  21287. },
  21288. ];
  21289. this.ajax
  21290. .post(this.$store.state.api + "joinGroup", params)
  21291. .then((res) => {
  21292. this.$message.success("加入成功");
  21293. this.getCourseDetail(2);
  21294. })
  21295. .catch((err) => {
  21296. this.$message.error("网络不佳");
  21297. console.error(err);
  21298. });
  21299. },
  21300. exitGroup(id) {
  21301. if (this.groupJson.islock == 2) {
  21302. this.$message.error("位置已被锁定,无法退出");
  21303. return;
  21304. }
  21305. let params = [
  21306. {
  21307. gid: id,
  21308. },
  21309. ];
  21310. this.ajax
  21311. .post(this.$store.state.api + "exitGroup", params)
  21312. .then((res) => {
  21313. this.$message.success("退出成功");
  21314. this.getCourseDetail(2);
  21315. })
  21316. .catch((err) => {
  21317. this.$message.error("网络不佳");
  21318. console.error(err);
  21319. });
  21320. },
  21321. groupUpload(index, task, gindex) {
  21322. this.taskCount = task;
  21323. this.toolindex = index;
  21324. this.groupIndex = gindex;
  21325. this.dialogVisibleGroupWork = true;
  21326. },
  21327. updateGroupChair(user) {
  21328. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  21329. el.label = index;
  21330. return index != user.group;
  21331. });
  21332. this.updateGroupUser = user;
  21333. this.dialogVisibleUpdateGroup = true;
  21334. },
  21335. updateChair() {
  21336. if (
  21337. this.groupStudent[this.toolindex][this.checkChair].length >
  21338. this.groupJson.number ||
  21339. this.groupStudent[this.toolindex][this.checkChair].length ==
  21340. this.groupJson.number
  21341. ) {
  21342. this.$message.error("位置已满,无法加入");
  21343. return;
  21344. }
  21345. let params = [
  21346. {
  21347. cid: this.id,
  21348. stage: this.courseType,
  21349. task: this.taskCount,
  21350. tool: this.toolindex,
  21351. g: this.checkChair,
  21352. uid: this.updateGroupUser.userid,
  21353. },
  21354. ];
  21355. this.ajax
  21356. .post(this.$store.state.api + "joinGroup", params)
  21357. .then((res) => {
  21358. this.$message.success("修改成功");
  21359. this.updateGroupUser = {};
  21360. this.checkChair = "";
  21361. this.updateGroupArray = {};
  21362. this.dialogVisibleUpdateGroup = false;
  21363. this.getCourseDetail(2);
  21364. })
  21365. .catch((err) => {
  21366. this.$message.error("网络不佳");
  21367. console.error(err);
  21368. });
  21369. },
  21370. deleteGroupChair(gindex) {
  21371. this.checkDeleteGroup = [];
  21372. this.deleteGroupUser = JSON.parse(
  21373. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  21374. );
  21375. this.deleteGroupArray = this.groupJson.group[gindex];
  21376. this.groupIndex = gindex;
  21377. this.dialogVisibleDeleteGroup = true;
  21378. },
  21379. async deleteChair() {
  21380. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  21381. const gid =
  21382. this.groupStudent[this.toolindex][this.groupIndex][
  21383. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  21384. this.checkDeleteGroup[i]
  21385. )
  21386. ];
  21387. let params = [
  21388. {
  21389. gid: gid.id,
  21390. },
  21391. ];
  21392. var a = await this.deleteChairA(params);
  21393. if (i == this.checkDeleteGroup.length - 1) {
  21394. this.$message.success("退出成功");
  21395. this.dialogVisibleDeleteGroup = false;
  21396. this.deleteGroupUser = [];
  21397. this.deleteGroupArray = {};
  21398. this.groupIndex = "";
  21399. this.checkDeleteGroup = [];
  21400. this.getCourseDetail(2);
  21401. }
  21402. }
  21403. },
  21404. deleteChairA(params) {
  21405. return new Promise((resolve, reject) => {
  21406. this.ajax
  21407. .post(this.$store.state.api + "exitGroup", params)
  21408. .then((res) => {
  21409. resolve(1);
  21410. })
  21411. .catch((err) => {
  21412. this.$message.error("网络不佳");
  21413. console.error(err);
  21414. });
  21415. });
  21416. },
  21417. contract(i) {
  21418. if (this.isCloseList[i].isClose == 0) {
  21419. this.isCloseList[i].isClose = 1;
  21420. } else {
  21421. this.isCloseList[i].isClose = 0;
  21422. }
  21423. this.$forceUpdate();
  21424. },
  21425. openWordCloud(toolindex) {
  21426. let array = [];
  21427. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  21428. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  21429. array.push({ name: works });
  21430. }
  21431. if (this.isGroup) {
  21432. for (var i = 0; i < this.courseGroup.group.length; i++) {
  21433. let works = this.courseGroup.group[i].works[toolindex];
  21434. for (var j = 0; j < works.length; j++) {
  21435. let answer = JSON.parse(works[j].works)[0].answer;
  21436. array.push({ name: answer });
  21437. }
  21438. }
  21439. }
  21440. this.wordCloudData = array;
  21441. this.dialogVisibleWordCloud = true;
  21442. },
  21443. openTips(i) {
  21444. this.tipsIndex = i;
  21445. this.downDialogVisible = true;
  21446. },
  21447. uploadWorks() {
  21448. this.$confirm("确定导出作业吗?", "提示", {
  21449. confirmButtonText: "确定",
  21450. cancelButtonText: "取消",
  21451. type: "warning",
  21452. })
  21453. .then(() => {
  21454. const loading = this.$loading.service({
  21455. background: "rgba(255, 255, 255, 0.7)",
  21456. target: document.body,
  21457. text: "文件加载中...",
  21458. });
  21459. const _worksStudent = this.worksStudent;
  21460. let url = [];
  21461. var counts = {};
  21462. for (var l = 0; l < _worksStudent[i].length; l++) {
  21463. var item = _worksStudent[i][l];
  21464. var name = item.sName;
  21465. if (!counts.hasOwnProperty(name)) {
  21466. counts[name] = 0;
  21467. } else {
  21468. counts[name]++;
  21469. }
  21470. if (counts[name] > 0) {
  21471. item.sName += " (" + counts[name] + ")";
  21472. }
  21473. }
  21474. for (var l = 0; l < _worksStudent[i].length; l++) {
  21475. var item = _worksStudent[i][l];
  21476. if (
  21477. item.works.indexOf(
  21478. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  21479. ) !== -1 &&
  21480. item.works.indexOf("img") === -1
  21481. ) {
  21482. url.push({ name: item.sName, url: item.works });
  21483. }
  21484. }
  21485. // var toolList = [
  21486. // { name: "电子白板", tool: 1 },
  21487. // { name: "思维导图", tool: 3 },
  21488. // { name: "协同文档", tool: 6 },
  21489. // { name: "思维网格", tool: 7 },
  21490. // { name: "素材库", tool: 8 },
  21491. // { name: "学习资料", tool: 17 },
  21492. // { name: "便签", tool: 2 },
  21493. // { name: "问卷调查", tool: 4 },
  21494. // { name: "选择题", tool: 45 },
  21495. // { name: "倒计时", tool: 10 },
  21496. // { name: "问答", tool: 15 },
  21497. // { name: "课程设计", tool: 26 },
  21498. // { name: "训练服务器", tool: 18 },
  21499. // { name: "作业提交", tool: 16 },
  21500. // { name: "批量上传", tool: 50 },
  21501. // { name: "AIoT Blockly", tool: 21 },
  21502. // { name: "AI Python", tool: 23 },
  21503. // { name: "AI Blockly", tool: 24 },
  21504. // { name: "目标管理", tool: 25 },
  21505. // { name: "数学画板", tool: 31 },
  21506. // { name: "翻译", tool: 28 },
  21507. // { name: "魔盒识字", tool: 37 },
  21508. // { name: "数学画板", tool: 31 },
  21509. // { name: "24点", tool: 38 },
  21510. // { name: "GeoGebra", tool: 39 },
  21511. // { name: "源码编辑", tool: 32 },
  21512. // { name: "个人评价", tool: 40 },
  21513. // { name: "选择匹配", tool: 41 },
  21514. // { name: "汉字宫", tool: 44 },
  21515. // { name: "排序", tool: 47 },
  21516. // { name: "表格", tool: 48 },
  21517. // { name: "文档", tool: 52 },
  21518. // { name: "学生分组", tool: 49 },
  21519. // { name: "CocoPi", tool: 57 },
  21520. // { name: "模拟驾驶", tool: 58 },
  21521. // { name: "路径搜索", tool: 59 },
  21522. // { name: "深度学习", tool: 60 },
  21523. // { name: "全历史", tool: 61 },
  21524. // { name: "交互视频", tool: 62 },
  21525. // { name: "海龟编程", tool: 63 },
  21526. // { name: "挑人", tool: 65 },
  21527. // { name: "公式编辑", tool: 66 },
  21528. // { name: "分子结构", tool: 67 },
  21529. // { name: "时间轴", tool: 68 },
  21530. // ];
  21531. // var toolName = "";
  21532. // for(var w = 0;w<toolList.length;w++){
  21533. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  21534. // toolName = toolList[w].name;
  21535. // }
  21536. // }
  21537. console.log(url);
  21538. this.downLoadAll(url, loading);
  21539. })
  21540. .catch(() => {});
  21541. },
  21542. downLoadAll(url, loading) {
  21543. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  21544. const zip = new JSZip();
  21545. const cache = {};
  21546. const promises = [];
  21547. data.forEach((item) => {
  21548. const promise = getFile(item.url).then((data) => {
  21549. if (data.data != 1) {
  21550. // 下载文件, 并存成ArrayBuffer对象
  21551. const file_name =
  21552. item.name +
  21553. "." +
  21554. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  21555. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  21556. cache[file_name] = data.data;
  21557. }
  21558. });
  21559. promises.push(promise);
  21560. });
  21561. Promise.all(promises).then(() => {
  21562. zip.generateAsync({ type: "blob" }).then((content) => {
  21563. // 生成二进制流
  21564. FileSaver.saveAs(
  21565. content,
  21566. this.courseDetail.title + "-" + "作业提交工具.zip"
  21567. ); // 利用file-saver保存文件 自定义文件名
  21568. setTimeout(() => {
  21569. loading.close();
  21570. }, 2000);
  21571. });
  21572. });
  21573. },
  21574. pickStudent(stu) {
  21575. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  21576. return;
  21577. }
  21578. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  21579. confirmButtonText: "确定",
  21580. cancelButtonText: "取消",
  21581. type: "warning",
  21582. })
  21583. .then(() => {
  21584. let params = [
  21585. {
  21586. uid: stu.userid,
  21587. cid: this.id,
  21588. stage: this.courseType,
  21589. task: this.taskCount,
  21590. tool: this.toolindex,
  21591. },
  21592. ];
  21593. this.ajax
  21594. .post(this.$store.state.api + "updateCoursePick", params)
  21595. .then((res) => {
  21596. this.$message.success("操作成功");
  21597. this.getPick();
  21598. })
  21599. .catch((err) => {
  21600. this.$message.error("网络不佳");
  21601. console.error(err);
  21602. });
  21603. })
  21604. .catch(() => {});
  21605. },
  21606. selectUser(){
  21607. let params = {
  21608. userid: this.userid,
  21609. };
  21610. this.ajax
  21611. .get(this.$store.state.api + "selectUser", params)
  21612. .then((res) => {
  21613. this.userMes = res.data[0];
  21614. })
  21615. .catch((err) => {
  21616. console.error(err);
  21617. });
  21618. },
  21619. setEngText(i){
  21620. this.newEngIndex = i;
  21621. this.$forceUpdate();
  21622. },
  21623. addCorrect(){
  21624. this.$confirm("你确定提交批改嘛?", "提示", {
  21625. confirmButtonText: "确定",
  21626. showCancelButton: false,
  21627. closeOnClickModal: false,
  21628. type: "warning",
  21629. })
  21630. .then(() => {
  21631. let params = {
  21632. cid: this.id,
  21633. s: parseInt(this.courseType),
  21634. t: this.taskCount,
  21635. tool: this.toolindex,
  21636. wid: this.engWid,
  21637. c: this.userid,
  21638. 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) : "",
  21639. };
  21640. this.ajax
  21641. .get(this.$store.state.api + "addEngC", params)
  21642. .then((res) => {
  21643. this.$message.success("提交成功");
  21644. this.engUpdateDialogVisible = false;
  21645. })
  21646. .catch((err) => {
  21647. console.error(err);
  21648. });
  21649. })
  21650. .catch(() => {});
  21651. },
  21652. selectEngC(id,z){
  21653. let params = {
  21654. workid: id,
  21655. };
  21656. this.ajax
  21657. .get(this.$store.state.api + "selectEngC", params)
  21658. .then((res) => {
  21659. if(res.data[0].length == 0){
  21660. this.newEnglishList.engTitle = z.engTitle;
  21661. this.newEnglishList.engText = z.engText;
  21662. }else{
  21663. var a = res.data[0];
  21664. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  21665. if(this.userMes[0].type == 2){
  21666. var snum = 0;
  21667. for(var i = 0;i<a.length;i++){
  21668. if(this.userMes[0].userid == a[i].correct){
  21669. this.newEnglishList = JSON.parse(a[i].cWork);
  21670. snum = 1;
  21671. }
  21672. }
  21673. if(snum == 0){
  21674. this.newEnglishList = { engTitle:"",engText:"" };
  21675. this.newEnglishList.engTitle = z.engTitle;
  21676. this.newEnglishList.engText = z.engText;
  21677. }
  21678. }else if(this.userMes[0].type == 1){
  21679. var num = 0;
  21680. for(var w= 0;w<a.length;w++){
  21681. if(this.userMes[0].userid == a[w].correct){
  21682. num = 1;
  21683. }
  21684. }
  21685. if(num == 0){
  21686. this.isNoUserid = true;
  21687. var c = JSON.parse(JSON.stringify(z));
  21688. this.oldEnglishJson1 = c;
  21689. }else{
  21690. this.isNoUserid = false;
  21691. }
  21692. var b = a.sort((item, index) => {
  21693. console.log(item)
  21694. if (item.correct === this.userMes[0].userid) {
  21695. return -1; // 将a移到前面
  21696. } else if (index.correct === this.userMes[0].userid) {
  21697. return 1; // 将b移到前面
  21698. } else {
  21699. return 0; // 保持默认顺序
  21700. }
  21701. });
  21702. for(var p = 0;p<b.length;p++){
  21703. for(var y = 0;y<ppp.length;y++){
  21704. if(b[p].id == ppp[y].id){
  21705. b[p].cWork = JSON.parse(ppp[y].cWork);
  21706. break
  21707. }
  21708. }
  21709. }
  21710. this.newEnglishList1 = b;
  21711. }
  21712. }
  21713. this.greyType = false;
  21714. setTimeout(() => {
  21715. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21716. if(this.newEnglishList1.length > 0){
  21717. if(this.isNoUserid == true){
  21718. this.engListLength = this.newEnglishList1.length + 1;
  21719. this.newEngIndex = -1;
  21720. }else{
  21721. this.engListLength = this.newEnglishList1.length;
  21722. this.newEngIndex = 0;
  21723. }
  21724. }
  21725. if(this.userMes[0].type == 2){
  21726. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21727. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  21728. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  21729. }else if(this.newEngIndex == -1){
  21730. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21731. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21732. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21733. }
  21734. }, 500);
  21735. this.engUpdateDialogVisible = true;
  21736. this.$forceUpdate();
  21737. })
  21738. .catch((err) => {
  21739. console.error(err);
  21740. });
  21741. },
  21742. getPick() {
  21743. let params = {
  21744. cid: this.id,
  21745. };
  21746. this.ajax
  21747. .get(this.$store.state.api + "getPick", params)
  21748. .then((res) => {
  21749. let array = [];
  21750. for (var i = 0; i < res.data[0].length; i++) {
  21751. array.push(res.data[0][i].userid);
  21752. }
  21753. this.isPickStudent = array;
  21754. if (array.indexOf(this.userid) !== -1) {
  21755. this.$confirm("你被老师选到啦!", "提示", {
  21756. confirmButtonText: "确定",
  21757. showCancelButton: false,
  21758. closeOnClickModal: false,
  21759. type: "warning",
  21760. })
  21761. .then(() => {
  21762. let pa = [
  21763. {
  21764. uid: this.userid,
  21765. cid: this.id,
  21766. },
  21767. ];
  21768. this.ajax
  21769. .post(this.$store.state.api + "deletePick", pa)
  21770. .then((res) => {
  21771. this.getPick();
  21772. })
  21773. .catch((err) => {
  21774. this.$message.error("网络不佳");
  21775. console.error(err);
  21776. });
  21777. })
  21778. .catch(() => {});
  21779. }
  21780. })
  21781. .catch((err) => {
  21782. this.$message.error("网络不佳");
  21783. console.error(err);
  21784. });
  21785. },
  21786. foldEva() {
  21787. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21788. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21789. } else {
  21790. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21791. setTimeout(() => {
  21792. this.checkEva();
  21793. setTimeout(() => {
  21794. this.checkEva();
  21795. }, 500);
  21796. }, 0);
  21797. }
  21798. this.$forceUpdate();
  21799. },
  21800. panToolHeight(tool) {
  21801. var _tool = document.querySelectorAll('#'+tool)[0]
  21802. var _toolA = _tool ? _tool.offsetHeight : 0
  21803. var _toolC = 0
  21804. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21805. let boolean2 = (_toolA > _toolC) ? true : false
  21806. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21807. this.$forceUpdate();
  21808. },
  21809. async checkLink(url) {
  21810. // console.log(url)
  21811. let _url = url
  21812. try {
  21813. const response = await fetch(url);
  21814. if(!response.ok){
  21815. _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]))
  21816. }
  21817. // console.log(response.ok)
  21818. } catch (error) {
  21819. console.error('Error checking link:', error);
  21820. // console.log(false)
  21821. _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]))
  21822. }
  21823. // console.log(_url)
  21824. return _url
  21825. },
  21826. setClassRoomHelperWidth(width){
  21827. this.classRoomHelperWidth = width
  21828. },
  21829. openStatisticalAnalysis(tooC,toolIndex,taskCount){
  21830. this.$refs.statisticalAnalysisRef.open({worksStudent:this.worksStudent[toolIndex],tType:this.tType,toolIndex:toolIndex})
  21831. },
  21832. statisticalAnalysisRefresh(toolIndex){
  21833. this.$refs.statisticalAnalysisRef.refreshData({worksStudent:this.worksStudent[toolIndex],tType:this.tType,toolIndex:toolIndex})
  21834. }
  21835. },
  21836. directives: {
  21837. // 使用局部注册指令的方式
  21838. resize: {
  21839. // 指令的名称
  21840. bind(el, binding) {
  21841. // el为绑定的元素,binding为绑定给指令的对象
  21842. let width = "",
  21843. height = "";
  21844. function isReize() {
  21845. const style = document.defaultView.getComputedStyle(el);
  21846. if (width !== style.width || height !== style.height) {
  21847. binding.value(); // 关键
  21848. }
  21849. width = style.width;
  21850. height = style.height;
  21851. }
  21852. el.__vueSetInterval__ = setInterval(isReize, 300);
  21853. },
  21854. unbind(el) {
  21855. clearInterval(el.__vueSetInterval__);
  21856. },
  21857. },
  21858. autoHeight: {
  21859. update(el, binding) {
  21860. const { value } = binding
  21861. if (value && typeof value === 'number') {
  21862. el.style.height = `${value}px`
  21863. } else {
  21864. el.style.height = 'auto'
  21865. }
  21866. },
  21867. componentUpdated(el) {
  21868. el.style.height = `${el.scrollHeight + 5}px`
  21869. },
  21870. }
  21871. },
  21872. beforeDestroy() {
  21873. window.onresize = null;
  21874. clearInterval(this.timer);
  21875. this.timer = null;
  21876. clearInterval(this.opertimer);
  21877. this.opertimer = null;
  21878. },
  21879. computed: {
  21880. getHeight(){
  21881. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21882. },
  21883. contentConvent() {
  21884. return function (c) {
  21885. return c
  21886. ? c
  21887. .replaceAll(/\r\n/g, "<br/>")
  21888. .replaceAll(/\n/g, "<br/>")
  21889. .replaceAll(/\s/g, " &nbsp")
  21890. : "";
  21891. };
  21892. },
  21893. commentRight(){
  21894. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21895. return "35px";
  21896. }
  21897. return `calc(${this.classRoomHelperWidth} + 5px)`
  21898. // if(this.$refs["classRoomHelperRef"].type==0){
  21899. // return "100px";
  21900. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21901. // return "502px"
  21902. // }else{
  21903. // return "0px"
  21904. // }
  21905. },
  21906. checkUpload() {
  21907. return function () {
  21908. var studentK = [];
  21909. if (this.plworkFile.length > 0) {
  21910. for (var z = 0; z < this.plworkFile.length; z++) {
  21911. studentK.push(this.plworkFile[z].username);
  21912. }
  21913. studentK = studentK.join(",");
  21914. }
  21915. var a = this.uploadStudentJuri.filter((el) => {
  21916. return studentK.indexOf(el.userid) == -1;
  21917. });
  21918. return a;
  21919. };
  21920. },
  21921. getSName() {
  21922. return function (name) {
  21923. var check = name;
  21924. this.uploadStudentJuri.forEach((el) => {
  21925. if (el.userid == check) {
  21926. check = el.name ? el.name : el.username;
  21927. }
  21928. });
  21929. return check;
  21930. };
  21931. },
  21932. getImgList() {
  21933. return function (val) {
  21934. let srcList = []; // 定义一个数组用来接收后面的img地址
  21935. val.replace(
  21936. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21937. function (match, capture) {
  21938. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21939. srcList.push(capture);
  21940. }
  21941. );
  21942. return srcList;
  21943. };
  21944. },
  21945. retrnToolHeight(){
  21946. return function (tool) {
  21947. var _tool = document.querySelectorAll('#'+tool)[0]
  21948. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21949. };
  21950. },
  21951. Correct() {
  21952. return function (c) {
  21953. let w = "";
  21954. let a = this.correctWord;
  21955. for(var k = 0;k<a.length;k++){
  21956. //diffWordsWithSpace
  21957. if(a.length > 1){
  21958. if(a[k].added == true){
  21959. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21960. }else if(a[k].removed == true){
  21961. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21962. }else{
  21963. w += '<span>' + a[k].value + '</span>';
  21964. }
  21965. }else{
  21966. w = c
  21967. }
  21968. //diffChars方法
  21969. // if(w == ""){
  21970. // if(a.length > 1){
  21971. // if(a[k].added == true){
  21972. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21973. // }else if(a[k].removed == true){
  21974. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21975. // }
  21976. // }else{
  21977. // w = c
  21978. // }
  21979. // }else{
  21980. // if(k == a.length - 1){
  21981. // if(a[k].added == true){
  21982. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21983. // }else if(a[k].removed == true){
  21984. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21985. // }
  21986. // }else{
  21987. // if(a[k].added == true){
  21988. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21989. // }else if(a[k].removed == true){
  21990. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21991. // }
  21992. // }
  21993. // }
  21994. }
  21995. c = w;
  21996. return c;
  21997. };
  21998. },
  21999. getScoreList(){
  22000. let params = {
  22001. cid: this.id,
  22002. };
  22003. this.ajax
  22004. .get(this.$store.state.api + "selectTestCourseByCid", params)
  22005. .then((res) => {
  22006. let result = res.data;
  22007. this.scoreList.datalist = result[0];
  22008. this.scoreList.isScoreList = result[1];
  22009. })
  22010. .catch((err) => {
  22011. console.error(err);
  22012. });
  22013. },
  22014. },
  22015. mounted() {
  22016. document.body.addEventListener("click", (e) => {
  22017. if (this.isUpdateToolDetail1) {
  22018. this.updateToolDetail(this.toolDetailIndex);
  22019. }
  22020. });
  22021. if (this.screenType == 2) {
  22022. window.parent.postMessage({ allScreen: 4 }, "*");
  22023. } else if (this.screenType == 3) {
  22024. window.parent.postMessage({ allScreen: 5 }, "*");
  22025. } else if (this.screenType == 1) {
  22026. window.parent.postMessage({ allScreen: 6 }, "*");
  22027. }
  22028. this.setOperationTime();
  22029. this.selectEva();
  22030. this.getCourseDetail();
  22031. this.selectCount();
  22032. this.getHomeWork();
  22033. this.selectUser();
  22034. this.getAIJ()
  22035. this.contentDialog = true;
  22036. this.setContent2(true);
  22037. if (this.tType == 4) {
  22038. this.pzDialog = true;
  22039. this.selectPz();
  22040. }
  22041. // 获取评分列表
  22042. this.getScoreList()
  22043. document.scrollingElement.scrollTop = 0;
  22044. window.addEventListener("resize", () => {
  22045. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  22046. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  22047. if (this.showType == 2 || this.showType == 3) {
  22048. document.getElementsByClassName("navBox")[0].style.height =
  22049. a - 40 + 0+ "px";
  22050. } else {
  22051. document.getElementsByClassName("navBox")[0].style.height =
  22052. a - 40 + "px";
  22053. }
  22054. });
  22055. let _this = this;
  22056. setTimeout(() => {
  22057. // _this.vedioTime = [];
  22058. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  22059. // _this.vedioTime[i] = document.getElementsByClassName(
  22060. // "vjs-duration-display"
  22061. // )[i].textContent;
  22062. // }
  22063. }, 1000);
  22064. },
  22065. };
  22066. </script>
  22067. <style scoped>
  22068. @media screen and (max-width: 1280px) {
  22069. /* .courseIndex > div:first-child(2) {
  22070. width: 15% !important;
  22071. } */
  22072. /* .navText {
  22073. width: 120px !important;
  22074. } */
  22075. .evaCss {
  22076. flex-direction: column !important;
  22077. align-items: center !important;
  22078. }
  22079. .elist_input {
  22080. width: 90% !important;
  22081. }
  22082. .dialog_diy1 >>> .el-dialog {
  22083. width: 100% !important;
  22084. }
  22085. .rightWidthCss {
  22086. width: 100% !important;
  22087. }
  22088. .dialog_diy3 >>> .el-dialog {
  22089. width: 100% !important;
  22090. }
  22091. .addToolCss {
  22092. right: 0 !important;
  22093. width: 100% !important;
  22094. min-width: unset !important;
  22095. }
  22096. }
  22097. .evaCssMax {
  22098. flex-direction: column !important;
  22099. align-items: center !important;
  22100. }
  22101. .dialog_diy >>> .el-dialog {
  22102. margin-top: 10vh !important;
  22103. }
  22104. .body_student {
  22105. width: 77%;
  22106. height: 100%;
  22107. position: absolute;
  22108. left: 22%;
  22109. top: 0;
  22110. }
  22111. .student_head {
  22112. width: 100%;
  22113. margin: 20px auto 0;
  22114. padding-bottom: 20px;
  22115. display: flex;
  22116. flex-direction: column;
  22117. flex-wrap: nowrap;
  22118. align-items: flex-start;
  22119. justify-content: flex-start;
  22120. }
  22121. .pb_left {
  22122. width: 20%;
  22123. margin-right: 10px;
  22124. background: rgb(255, 255, 255);
  22125. position: fixed;
  22126. height: calc(100% - 40px);
  22127. border-radius: 20px;
  22128. padding-bottom: 15px;
  22129. box-sizing: border-box;
  22130. }
  22131. .wheel > img,
  22132. .project > img,
  22133. .star > img,
  22134. .evaluate > img,
  22135. .up_photo > img,
  22136. .chapter_add > img,
  22137. .deleteWord > img,
  22138. .question > img,
  22139. .homework > img {
  22140. width: 100%;
  22141. height: 100%;
  22142. }
  22143. .upCover > img {
  22144. width: 131px;
  22145. height: 69px;
  22146. object-fit: cover;
  22147. }
  22148. .upCover {
  22149. width: calc(100% / 3.5);
  22150. position: relative;
  22151. margin: 0 15px 10px 0;
  22152. display: flex;
  22153. flex-direction: column;
  22154. flex-wrap: nowrap;
  22155. justify-content: center;
  22156. align-content: center;
  22157. align-items: center;
  22158. height: fit-content;
  22159. }
  22160. .upCover2 {
  22161. width: 100%;
  22162. position: relative;
  22163. margin: 0 15px 10px 0;
  22164. display: flex;
  22165. flex-direction: column;
  22166. flex-wrap: nowrap;
  22167. justify-content: center;
  22168. align-content: center;
  22169. align-items: center;
  22170. }
  22171. .upCover2 > img {
  22172. width: 100%;
  22173. height: 90px;
  22174. object-fit: contain;
  22175. }
  22176. .chapter_add {
  22177. width: 120px;
  22178. position: relative;
  22179. text-align: center;
  22180. }
  22181. .isAddThings {
  22182. margin-top: 20px;
  22183. position: relative;
  22184. text-align: center;
  22185. background: #f7f8fa;
  22186. height: 90px;
  22187. width: 90px;
  22188. display: flex;
  22189. flex-direction: column;
  22190. justify-content: center;
  22191. }
  22192. .deleteWord {
  22193. width: 22px;
  22194. height: 22px;
  22195. position: absolute;
  22196. right: -5px;
  22197. top: -5px;
  22198. cursor: pointer;
  22199. }
  22200. .box_course {
  22201. /* width: 60%; */
  22202. width: calc(100% - 300px);
  22203. }
  22204. .wheel {
  22205. width: 100%;
  22206. /* height: 100%; */
  22207. height: 650px;
  22208. }
  22209. .right_box {
  22210. display: flex;
  22211. flex-direction: column;
  22212. margin-left: 30px;
  22213. justify-content: space-around;
  22214. }
  22215. .right_box_title {
  22216. font-size: 23px;
  22217. }
  22218. .people {
  22219. display: flex;
  22220. }
  22221. .student_body {
  22222. width: 100%;
  22223. margin: 0 auto;
  22224. margin-top: 10px;
  22225. padding: 0 0 20px;
  22226. }
  22227. .study_top {
  22228. margin-top: 100px;
  22229. width: 100%;
  22230. height: auto;
  22231. padding-bottom: 20px;
  22232. }
  22233. .study_top .checkbox {
  22234. display: flex;
  22235. align-items: center;
  22236. padding: 15px 0 15px 30px;
  22237. flex: 0 0 auto;
  22238. font-weight: bold;
  22239. border-bottom: 1px solid #eee;
  22240. }
  22241. .study_top .check {
  22242. padding-bottom: 5px;
  22243. text-align: center;
  22244. cursor: pointer;
  22245. height: 30px;
  22246. box-sizing: border-box;
  22247. display: flex;
  22248. }
  22249. .study_top .checked {
  22250. border-bottom: 4px solid #3fc6a0;
  22251. padding-bottom: 5px;
  22252. color: #3fc6a0;
  22253. display: flex;
  22254. height: 35px;
  22255. }
  22256. .study_top .checked > div,
  22257. .study_top .check > div {
  22258. margin-right: 5px;
  22259. }
  22260. .videoTop {
  22261. display: flex;
  22262. flex-direction: row;
  22263. justify-content: space-between;
  22264. background: #fff;
  22265. align-items: center;
  22266. width: 95%;
  22267. padding: 20px;
  22268. }
  22269. .filebox {
  22270. display: flex;
  22271. flex-wrap: wrap;
  22272. flex-direction: column;
  22273. padding: 0 0 5px;
  22274. position: relative;
  22275. }
  22276. .filebox:before {
  22277. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22278. position: absolute;
  22279. top: 20px;
  22280. left: 13px;
  22281. border-left: 2px dotted #cad1dc;
  22282. height: calc(100% - 15px);
  22283. }
  22284. .toolHeng2 > div:last-child::before {
  22285. height: calc(100% - 43px);
  22286. }
  22287. .filebox .tooldetail {
  22288. width: calc(100%);
  22289. margin: 0px 12px;
  22290. padding: 12px;
  22291. line-height: 30px;
  22292. word-break: break-word;
  22293. background: #ffffff;
  22294. border-radius: 8px 8px 8px 8px;
  22295. opacity: 1;
  22296. border: 1px solid #cad1dc;
  22297. overflow:hidden;
  22298. box-sizing:border-box;
  22299. }
  22300. .file {
  22301. display: flex;
  22302. flex-direction: column;
  22303. align-items: center;
  22304. justify-content: center;
  22305. cursor: pointer;
  22306. width: 200px;
  22307. }
  22308. .file div {
  22309. margin-top: 10px;
  22310. width: 150px;
  22311. text-align: center;
  22312. overflow: hidden;
  22313. white-space: nowrap;
  22314. text-overflow: ellipsis;
  22315. }
  22316. .media {
  22317. display: flex;
  22318. flex-direction: column;
  22319. align-items: center;
  22320. justify-content: center;
  22321. margin: 0 20px 20px 0;
  22322. cursor: pointer;
  22323. margin: 12px 0 5px 15px;
  22324. overflow: hidden;
  22325. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22326. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22327. box-sizing: border-box;
  22328. }
  22329. .media img {
  22330. height: 90px;
  22331. width: 160px;
  22332. object-fit: cover;
  22333. }
  22334. .media .title {
  22335. padding: 5px;
  22336. text-align: left;
  22337. width: 100%;
  22338. box-sizing: border-box;
  22339. }
  22340. .media .btn {
  22341. width: 100%;
  22342. height: 35px;
  22343. line-height: 35px;
  22344. color: #fff;
  22345. background: #606060;
  22346. text-align: center;
  22347. overflow: hidden;
  22348. white-space: nowrap;
  22349. text-overflow: ellipsis;
  22350. }
  22351. .detail_content_top {
  22352. width: 100%;
  22353. padding: 25px 0 25px 0;
  22354. }
  22355. .detail_title {
  22356. text-align: center;
  22357. font-size: 24px;
  22358. }
  22359. .detail_time {
  22360. font-size: 13px;
  22361. padding: 15px 0 0 40px;
  22362. }
  22363. .detail_content {
  22364. line-height: 2pc;
  22365. width: 90%;
  22366. margin: 0 auto;
  22367. padding-top: 30px;
  22368. text-indent: 30px;
  22369. overflow: auto;
  22370. height: 200px;
  22371. }
  22372. .score_box >>> .el-rate {
  22373. margin-left: 10px;
  22374. }
  22375. .dialog_change >>> .el-dialog {
  22376. border-radius: 5px;
  22377. }
  22378. .dialog_change >>> .el-dialog__header {
  22379. background: #f2f2f2;
  22380. text-align: center;
  22381. }
  22382. .dialog_change >>> .el-dialog__title {
  22383. line-height: 5px;
  22384. }
  22385. .dialog_change >>> .el-dialog__body {
  22386. background: #fff;
  22387. padding: 10px 20px;
  22388. }
  22389. .score_box {
  22390. display: flex;
  22391. align-items: center;
  22392. margin-bottom: 18px;
  22393. margin-top: 20px;
  22394. }
  22395. .up_photo {
  22396. width: 120px;
  22397. cursor: pointer;
  22398. margin-top: 10px;
  22399. }
  22400. .up_photo2 {
  22401. width: 180px;
  22402. box-sizing: border-box;
  22403. min-width: 180px;
  22404. height: 180px;
  22405. max-height: 180px;
  22406. min-height: 180px;
  22407. cursor: pointer;
  22408. display: flex;
  22409. flex-direction: column;
  22410. align-items: center;
  22411. justify-content: center;
  22412. background: rgb(242, 246, 255);
  22413. /* padding: 25px; */
  22414. margin-bottom: 10px;
  22415. }
  22416. .up_photo2 img {
  22417. width: 50%;
  22418. height: auto;
  22419. }
  22420. .up_photo2 span {
  22421. color: #898989;
  22422. }
  22423. .plworkBox {
  22424. display: flex;
  22425. align-items: center;
  22426. margin-top: 10px;
  22427. flex-wrap: wrap;
  22428. }
  22429. .upload_send {
  22430. margin: 30px auto 30px;
  22431. width: 60%;
  22432. background: #3681fc;
  22433. text-align: center;
  22434. height: 35px;
  22435. line-height: 35px;
  22436. color: #fff;
  22437. border-radius: 5px;
  22438. cursor: pointer;
  22439. }
  22440. .marginT {
  22441. margin-top: 20px;
  22442. }
  22443. .cd_content_steps {
  22444. display: flex;
  22445. width: 90%;
  22446. justify-content: space-around;
  22447. border-top: 1px solid #eeeeee;
  22448. }
  22449. .cd_steps_box {
  22450. display: flex;
  22451. justify-content: center;
  22452. align-items: center;
  22453. flex-direction: column;
  22454. cursor: pointer;
  22455. }
  22456. .first {
  22457. display: flex;
  22458. align-items: center;
  22459. margin: 15px 0 20px 0;
  22460. font-size: 20px;
  22461. }
  22462. .first > div:nth-child(2) {
  22463. font-size: 16px !important;
  22464. padding-left: 10px;
  22465. line-height: 26px;
  22466. box-sizing: border-box;
  22467. }
  22468. .blue_box_one {
  22469. text-align: center;
  22470. color: #fff;
  22471. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22472. border-radius: 7px;
  22473. margin: 10px;
  22474. cursor: pointer;
  22475. width: 95%;
  22476. height: 45px;
  22477. display: flex;
  22478. flex-direction: row;
  22479. justify-content: flex-start;
  22480. align-items: center;
  22481. }
  22482. .blue_box_one > div:nth-child(1) {
  22483. line-height: 30px;
  22484. margin: 0 5px 0 10px;
  22485. width: 30%;
  22486. min-width: 70px;
  22487. border-radius: 4px;
  22488. }
  22489. .blue_box_one > div:nth-child(2) {
  22490. white-space: nowrap;
  22491. text-overflow: ellipsis;
  22492. overflow: hidden;
  22493. word-break: break-all;
  22494. width: 70%;
  22495. text-align: left;
  22496. margin-right: 10px;
  22497. max-width: calc(100% - 85px);
  22498. }
  22499. .blue_box_one > div:nth-child(2):hover {
  22500. overflow: hidden;
  22501. text-overflow: ellipsis;
  22502. white-space: nowrap;
  22503. cursor: pointer;
  22504. }
  22505. .upFile {
  22506. margin: 0 auto;
  22507. width: 120px;
  22508. background: #3681fc;
  22509. color: #fff;
  22510. height: 30px;
  22511. text-align: center;
  22512. line-height: 30px;
  22513. border-radius: 5px;
  22514. font-size: 14px;
  22515. cursor: pointer;
  22516. }
  22517. .courseTitle {
  22518. width: 85%;
  22519. margin: 10px auto 26px auto;
  22520. display: flex;
  22521. flex-direction: row;
  22522. align-items: center;
  22523. justify-content: space-between;
  22524. text-align: center;
  22525. }
  22526. .courseTitle .ctitle {
  22527. font-size: 20px;
  22528. font-weight: bold;
  22529. color: #0e1e33;
  22530. white-space: nowrap;
  22531. overflow: hidden;
  22532. text-overflow: ellipsis;
  22533. }
  22534. .inviteBox {
  22535. font-size: 14px;
  22536. /* margin-top: 5px; */
  22537. color: #00000099;
  22538. text-align: center;
  22539. }
  22540. .courseTitle >>> .el-tooltip {
  22541. width: 100%;
  22542. white-space: nowrap;
  22543. overflow: hidden;
  22544. text-overflow: ellipsis;
  22545. word-break: break-word;
  22546. }
  22547. .ml {
  22548. margin-left: 20px;
  22549. color: #5b7dba;
  22550. border-left: 3px solid #5b7dba;
  22551. padding-left: 5px;
  22552. font-weight: bold;
  22553. }
  22554. .return {
  22555. width: 2rem;
  22556. height: 2rem;
  22557. cursor: pointer;
  22558. }
  22559. .return > img {
  22560. width: 100%;
  22561. height: 100%;
  22562. }
  22563. .returnBtn {
  22564. width: 86px;
  22565. height: 36px;
  22566. background: #3681fc;
  22567. border-radius: 4px;
  22568. color: #fff;
  22569. text-align: center;
  22570. line-height: 36px;
  22571. margin-right: 20px;
  22572. cursor: pointer;
  22573. font-size: 14px;
  22574. font-weight: 400;
  22575. display: flex;
  22576. flex-direction: row;
  22577. flex-wrap: nowrap;
  22578. align-items: center;
  22579. justify-content: center;
  22580. }
  22581. .reBtnIcon,
  22582. .commentIcon,
  22583. .vedioIcon,
  22584. .vedioIcon1 {
  22585. /* width: 36px; */
  22586. height: 36px;
  22587. border-radius: 4px;
  22588. position: relative;
  22589. /* background: #e0eafb; */
  22590. background: #0061ff;
  22591. cursor: pointer;
  22592. margin-right: 12px;
  22593. display: flex;
  22594. align-items: center;
  22595. padding: 0 10px;
  22596. box-sizing: border-box;
  22597. font-size: 14px;
  22598. color: #fff;
  22599. }
  22600. .reBtnIcon::before,
  22601. .commentIcon::before,
  22602. .vedioIcon::before,
  22603. .vedioIcon1::before {
  22604. content: "";
  22605. display: block;
  22606. background-size: 100% 100%;
  22607. background-repeat: no-repeat;
  22608. width: 20px;
  22609. height: 20px;
  22610. margin-right: 5px;
  22611. /* position: absolute; */
  22612. /* top: 8px;
  22613. left: 8px; */
  22614. }
  22615. .vedioIcon1 {
  22616. background: #f63564;
  22617. }
  22618. .reBtnIcon::before {
  22619. background-image: url("../../assets/icon/newIcons/refresh.png");
  22620. }
  22621. .commentIcon::before {
  22622. background-image: url("../../assets/icon/newIcons/comment.png");
  22623. }
  22624. .vedioIcon::before {
  22625. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22626. }
  22627. .vedioIcon1::before {
  22628. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22629. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22630. }
  22631. .tool {
  22632. display: flex;
  22633. flex-direction: column;
  22634. flex-wrap: nowrap;
  22635. width: 13%;
  22636. margin: 0 30px;
  22637. align-items: center;
  22638. position: relative;
  22639. padding: 10px 25px;
  22640. cursor: pointer;
  22641. }
  22642. .whiteBIcon {
  22643. width: 150px;
  22644. }
  22645. .whiteBIcon > img {
  22646. width: 100%;
  22647. height: 100%;
  22648. }
  22649. .mask {
  22650. background-color: rgba(0, 0, 0, 0);
  22651. position: fixed;
  22652. top: 0;
  22653. left: 0;
  22654. width: 100%;
  22655. height: 100%;
  22656. z-index: 20000;
  22657. display: flex;
  22658. align-items: center;
  22659. justify-content: center;
  22660. }
  22661. .progressBox {
  22662. width: 500px;
  22663. height: 180px;
  22664. background: #fff;
  22665. border-radius: 10px;
  22666. box-shadow: 0 0 6px 1px #bfbfbf;
  22667. display: flex;
  22668. align-items: center;
  22669. justify-content: center;
  22670. flex-direction: column;
  22671. position: relative;
  22672. color: #6c6c6c;
  22673. }
  22674. .progressBox >>> .el-progress-bar__outer {
  22675. background-color: #d1dfff !important;
  22676. }
  22677. .progressBox .lbox {
  22678. height: 50px;
  22679. font-size: 19px;
  22680. display: flex;
  22681. align-items: center;
  22682. color: #747474;
  22683. }
  22684. .progressBox .lbox img {
  22685. width: 40px;
  22686. margin-right: 20px;
  22687. }
  22688. .closeCss {
  22689. position: absolute;
  22690. top: 8px;
  22691. right: 8px;
  22692. cursor: pointer;
  22693. width: 20px;
  22694. height: 20px;
  22695. }
  22696. .closeCss > img {
  22697. width: 100%;
  22698. height: 100%;
  22699. }
  22700. .uploadVedio {
  22701. display: flex;
  22702. flex-direction: column;
  22703. flex-wrap: nowrap;
  22704. justify-content: center;
  22705. align-items: center;
  22706. margin: 0 15px 10px 0;
  22707. }
  22708. .uploadVedio > img {
  22709. width: 30px;
  22710. height: 30px;
  22711. }
  22712. .uploadVedio > span {
  22713. white-space: nowrap;
  22714. overflow: hidden;
  22715. text-overflow: ellipsis;
  22716. width: 75px;
  22717. margin-top: 7px;
  22718. }
  22719. .picName {
  22720. white-space: nowrap;
  22721. overflow: hidden;
  22722. text-overflow: ellipsis;
  22723. width: 75px;
  22724. margin-top: 7px;
  22725. }
  22726. .new_top {
  22727. display: flex;
  22728. background: #fff;
  22729. flex-direction: row;
  22730. justify-content: flex-start;
  22731. align-items: center;
  22732. height: 60px;
  22733. position: fixed;
  22734. top: 20px;
  22735. left: 22%;
  22736. width: 77%;
  22737. z-index: 999;
  22738. border-radius: 12px 12px 0 0;
  22739. border-bottom: 1px solid #cad1dc;
  22740. padding: 10px 0;
  22741. }
  22742. .new_topFixed {
  22743. width: 100%;
  22744. height: 40px;
  22745. position: fixed;
  22746. top: 0px;
  22747. display: block;
  22748. background: #f2f2f2;
  22749. z-index: 998;
  22750. }
  22751. .before {
  22752. position: absolute;
  22753. background: #c3dad4;
  22754. width: 6px;
  22755. height: 100%;
  22756. }
  22757. .courseIndex {
  22758. display: flex;
  22759. flex-direction: row;
  22760. align-items: center;
  22761. width: calc(100% - 745px);
  22762. }
  22763. .courseIndex > div:nth-child(1) {
  22764. margin: 0 0 0 10px;
  22765. font-size: 20px;
  22766. min-width: 100px;
  22767. font-weight: bold;
  22768. border-left: 4px solid #3363b9;
  22769. height: 32px;
  22770. text-align: center;
  22771. line-height: 35px;
  22772. }
  22773. .courseIndex > div:nth-child(2) {
  22774. font-size: 20px;
  22775. /* width: 300px; */
  22776. max-width: calc(100% - 105px);
  22777. white-space: nowrap;
  22778. overflow: hidden;
  22779. text-overflow: ellipsis;
  22780. }
  22781. .courseIndex > div:nth-child(3) {
  22782. border-bottom: 1px solid #d7d7d7;
  22783. padding-bottom: 5px;
  22784. background: #3681fc;
  22785. width: 55px;
  22786. min-width: 55px;
  22787. border-radius: 5px;
  22788. color: #fff;
  22789. text-align: center;
  22790. height: 20px;
  22791. line-height: 26px;
  22792. font-size: 14px;
  22793. margin: 0 0 0 10px;
  22794. }
  22795. .course_text {
  22796. padding: 20px 0 0 15px;
  22797. text-indent: 30px;
  22798. width: 80%;
  22799. min-height: 20px;
  22800. }
  22801. .vedioList {
  22802. background: #f2f2f2;
  22803. border: 1px solid #ececec;
  22804. /* width: 38.8%; */
  22805. /* width: 300px; */
  22806. width: 100%;
  22807. height: 445px;
  22808. border-radius: 10px;
  22809. overflow: hidden;
  22810. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22811. }
  22812. .vedioNav {
  22813. margin: 10px 0 0 15px;
  22814. border-bottom: 1px solid #d7d7d7;
  22815. padding-bottom: 5px;
  22816. background: #3681fc;
  22817. width: 55px;
  22818. min-width: 55px;
  22819. border-radius: 5px;
  22820. color: #fff;
  22821. text-align: center;
  22822. height: 20px;
  22823. line-height: 26px;
  22824. font-size: 14px;
  22825. }
  22826. .queTop {
  22827. display: flex;
  22828. padding: 20px 0 20px 30px;
  22829. width: 100%;
  22830. flex-direction: row;
  22831. justify-content: flex-start;
  22832. align-items: center;
  22833. box-sizing: border-box;
  22834. }
  22835. .queTopTitle {
  22836. display: flex;
  22837. flex-direction: row;
  22838. flex-wrap: nowrap;
  22839. align-items: center;
  22840. font-weight: bold;
  22841. font-size: 20px;
  22842. color: rgb(14, 30, 51);
  22843. }
  22844. .queTopTitle::before {
  22845. content: "";
  22846. width: 2px;
  22847. height: 22px;
  22848. background: #3681fc;
  22849. border-radius: 3px;
  22850. display: block;
  22851. margin: 2px 6px 0 0;
  22852. }
  22853. .queTopRight {
  22854. display: flex;
  22855. flex-direction: row;
  22856. flex-wrap: nowrap;
  22857. align-items: center;
  22858. }
  22859. .queTopClose {
  22860. margin-right: 20px;
  22861. cursor: pointer;
  22862. position: relative;
  22863. display: flex;
  22864. }
  22865. .closeImg,
  22866. .openImg {
  22867. width: 25px;
  22868. height: 25px;
  22869. position: absolute;
  22870. left: -20px;
  22871. top: -1px;
  22872. }
  22873. .closeImg > img,
  22874. .openImg > img {
  22875. width: 100%;
  22876. height: 100%;
  22877. }
  22878. .question {
  22879. width: 40px;
  22880. margin-right: 10px;
  22881. margin-top: 7px;
  22882. }
  22883. .queTitle {
  22884. margin-left: 5px;
  22885. font-size: 25px;
  22886. display: flex;
  22887. align-items: center;
  22888. }
  22889. .addEditor {
  22890. width: 100px;
  22891. height: 30px;
  22892. background: #42cda6;
  22893. color: #fff;
  22894. border-radius: 5px;
  22895. text-align: center;
  22896. line-height: 30px;
  22897. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22898. cursor: pointer;
  22899. }
  22900. /* .vedioName {
  22901. cursor: pointer;
  22902. margin: 0px 0px 10px 5px;
  22903. white-space: nowrap;
  22904. overflow: hidden;
  22905. text-overflow: ellipsis;
  22906. width: 100%;
  22907. } */
  22908. .vedioTime {
  22909. width: 35px;
  22910. position: absolute;
  22911. color: #fff;
  22912. bottom: 0px;
  22913. right: 0px;
  22914. text-align: center;
  22915. background: #46411f;
  22916. height: 20px;
  22917. font-size: 14px;
  22918. line-height: 20px;
  22919. }
  22920. .homework {
  22921. width: 200px;
  22922. display: flex;
  22923. flex-direction: column;
  22924. flex-wrap: nowrap;
  22925. align-items: center;
  22926. cursor: pointer;
  22927. }
  22928. .homebox {
  22929. display: flex;
  22930. flex-wrap: wrap;
  22931. flex-direction: row;
  22932. justify-content: flex-start;
  22933. align-items: center;
  22934. padding: 15px 0;
  22935. }
  22936. .isChooseActive {
  22937. color: #3681fc !important;
  22938. font-weight: bold !important;
  22939. }
  22940. .chooseWho {
  22941. display: flex;
  22942. width: 100%;
  22943. flex-direction: row;
  22944. flex-wrap: nowrap;
  22945. justify-content: flex-start;
  22946. padding-bottom: 10px;
  22947. }
  22948. .chooseWho > div {
  22949. cursor: pointer;
  22950. padding-bottom: 10px;
  22951. margin: 0 30px 0 0;
  22952. font-weight: 400;
  22953. color: #0e1e33;
  22954. }
  22955. .addPoint > div > img {
  22956. cursor: pointer;
  22957. width: 85px;
  22958. border-radius: 15px;
  22959. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22960. }
  22961. .addPoint > div {
  22962. display: flex;
  22963. flex-direction: column;
  22964. flex-wrap: nowrap;
  22965. align-items: center;
  22966. }
  22967. .isBorder > div {
  22968. margin: 0 0 10px 0;
  22969. align-items: flex-start !important;
  22970. }
  22971. .noiframeBox {
  22972. display: flex;
  22973. flex-wrap: wrap;
  22974. }
  22975. .iframeBox iframe {
  22976. width: 100%;
  22977. height: 800px;
  22978. border: none;
  22979. margin-bottom: 20px;
  22980. border: 1px solid #ccc;
  22981. }
  22982. .upload_toolBtn {
  22983. background: #3681fc;
  22984. color: #fff;
  22985. width: 110px;
  22986. text-align: center;
  22987. height: 35px;
  22988. line-height: 35px;
  22989. font-size: 14px;
  22990. border-radius: 5px;
  22991. cursor: pointer;
  22992. position: absolute;
  22993. right: 10px;
  22994. bottom: 0;
  22995. }
  22996. .binfo_input,
  22997. .pj {
  22998. font: inherit;
  22999. color: currentColor;
  23000. width: 100%;
  23001. margin: 0;
  23002. padding: 15px 14px;
  23003. display: block;
  23004. min-width: 0;
  23005. outline: none;
  23006. box-sizing: content-box;
  23007. background: none;
  23008. -webkit-tap-highlight-color: transparent;
  23009. border: 1px solid rgba(0, 0, 0, 0.23);
  23010. border-radius: 4px;
  23011. box-sizing: border-box;
  23012. resize: none;
  23013. }
  23014. .binfo_input:focus-visible {
  23015. border: 1px solid rgba(61, 103, 188);
  23016. }
  23017. .dialog_diy >>> .el-dialog__header,
  23018. .dialog_diy1 >>> .el-dialog__header {
  23019. background: #454545 !important;
  23020. padding: 15px 20px;
  23021. }
  23022. .dialog_diy >>> .el-dialog__title,
  23023. .dialog_diy1 >>> .el-dialog__title {
  23024. color: #fff;
  23025. }
  23026. .dialog_diy >>> .el-dialog__headerbtn,
  23027. .dialog_diy1 >>> .el-dialog__headerbtn {
  23028. top: 19px;
  23029. }
  23030. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  23031. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  23032. color: #fff;
  23033. }
  23034. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  23035. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  23036. color: #fff;
  23037. }
  23038. .dialog_diy1 >>> .el-dialog__body {
  23039. padding: 0;
  23040. }
  23041. .dialog_diy >>> .el-dialog__body,
  23042. .dialog_diy >>> .el-dialog__footer,
  23043. .dialog_diy1 >>> .el-dialog__footer {
  23044. background: #fafafa;
  23045. }
  23046. .markScore_diy >>> .el-dialog {
  23047. border-radius:10px;
  23048. }
  23049. .markScore_diy >>> .el-dialog__body{
  23050. padding: 0;
  23051. height: 621px;
  23052. min-height: calc(100% - 60px);
  23053. }
  23054. .markScore_diy >>> .el-dialog__header{
  23055. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  23056. }
  23057. .markScore_diy >>> .markScore_diyTit{
  23058. width: calc(100% - 60px);
  23059. display: flex;
  23060. justify-content: space-between;
  23061. align-items: center;
  23062. }
  23063. .a_addBox {
  23064. padding: 0 0 0 15px;
  23065. }
  23066. .a_add_box {
  23067. padding: 10px;
  23068. background: #fff;
  23069. margin-bottom: 10px;
  23070. border-radius: 5px;
  23071. box-shadow: 0 0 5px 0 #d5d5d5;
  23072. }
  23073. .a_add_head {
  23074. display: flex;
  23075. align-items: flex-start;
  23076. /* justify-content: space-between; */
  23077. flex-direction: column;
  23078. /* flex-direction: row; */
  23079. margin: 10px 0 20px 0;
  23080. font-size: 18px;
  23081. width: 100%;
  23082. }
  23083. .askIndex {
  23084. background: #3681fc;
  23085. border-radius: 50%;
  23086. color: #fff;
  23087. width: 25px;
  23088. height: 25px;
  23089. min-width: 25px;
  23090. min-height: 25px;
  23091. text-align: center;
  23092. line-height: 25px;
  23093. margin-right: 5px;
  23094. }
  23095. .a_add_head .a_add_head_input {
  23096. width: 300px;
  23097. }
  23098. .a_add_head .a_add_head_div {
  23099. display: flex;
  23100. align-items: center;
  23101. justify-content: space-between;
  23102. }
  23103. .a_add_body {
  23104. display: flex;
  23105. align-items: center;
  23106. }
  23107. .a_add_input {
  23108. display: flex;
  23109. align-items: center;
  23110. flex-wrap: wrap;
  23111. width: 100%;
  23112. }
  23113. .a_add_input >>> .el-radio-group,
  23114. .a_add_input >>> .el-checkbox-group {
  23115. width: 100%;
  23116. }
  23117. .a_add_input >>> .el-radio,
  23118. .a_add_input >>> .el-checkbox {
  23119. display: flex;
  23120. flex-direction: row;
  23121. flex-wrap: nowrap;
  23122. align-items: center;
  23123. padding: 15px 0;
  23124. }
  23125. .a_add_input >>> .el-radio:not(:last-child),
  23126. .a_add_input >>> .el-checkbox:not(:last-child) {
  23127. width: 100%;
  23128. border-bottom: 1px solid #efefef;
  23129. }
  23130. .redioStyle >>> .el-radio__label {
  23131. font-size: 18px;
  23132. }
  23133. .redioStyle >>> .el-radio__label > span,
  23134. .redioStyle >>> .el-checkbox__label > span {
  23135. word-break: break-all;
  23136. white-space: normal;
  23137. }
  23138. .redioStyle >>> .el-checkbox__label {
  23139. font-size: 18px;
  23140. }
  23141. .toolHeng2 {
  23142. width: 100%;
  23143. padding-left: 15px;
  23144. box-sizing: border-box;
  23145. }
  23146. .workNav {
  23147. font-size: 20px;
  23148. font-weight: bold;
  23149. color: #0e1e33;
  23150. display: flex;
  23151. flex-direction: row;
  23152. flex-wrap: nowrap;
  23153. align-items: center;
  23154. padding: 15px 0 15px 0;
  23155. }
  23156. .workNav::before {
  23157. content: "";
  23158. width: 2px;
  23159. height: 22px;
  23160. background: #3681fc;
  23161. border-radius: 3px;
  23162. display: block;
  23163. margin: 2px 6px 0 0;
  23164. }
  23165. .toolHeng {
  23166. display: flex;
  23167. flex-direction: row;
  23168. flex-wrap: wrap;
  23169. justify-content: flex-start;
  23170. align-items: center;
  23171. width: 100%;
  23172. }
  23173. .toolHeng > div {
  23174. padding-left: 20px;
  23175. }
  23176. .isWidth {
  23177. width: 20%;
  23178. }
  23179. .textTitle {
  23180. display: flex;
  23181. flex-direction: row;
  23182. flex-wrap: nowrap;
  23183. align-items: center;
  23184. width: 95%;
  23185. }
  23186. .textTitle >>> .el-form-item__label {
  23187. font-size: 22px;
  23188. color: #918f8f;
  23189. width: 100px;
  23190. }
  23191. .textTitle >>> .el-form-item__content {
  23192. width: calc(100% - 100px);
  23193. }
  23194. .textCss >>> .el-dialog {
  23195. width: 800px !important;
  23196. height: 400px;
  23197. background: #fafafa;
  23198. }
  23199. .textCss >>> .el-dialog__body {
  23200. margin: 55px 8% 0 8%;
  23201. padding: 0 !important;
  23202. }
  23203. .textCss >>> .el-dialog__footer {
  23204. padding-top: 38px;
  23205. }
  23206. .toolsCss >>> .el-dialog__body {
  23207. padding: 20px;
  23208. }
  23209. .lineCss >>> .el-dialog__body {
  23210. display: flex;
  23211. flex-direction: row;
  23212. align-items: center;
  23213. justify-content: center;
  23214. }
  23215. .newNav {
  23216. display: flex;
  23217. flex-direction: row;
  23218. align-items: baseline;
  23219. justify-content: flex-start;
  23220. }
  23221. .navListItem {
  23222. width: calc(100% - 20px);
  23223. height: 50px;
  23224. margin: 0px auto 10px;
  23225. display: flex;
  23226. flex-direction: row;
  23227. flex-wrap: nowrap;
  23228. align-items: center;
  23229. justify-content: space-between;
  23230. background: #f0f4fa;
  23231. border-radius: 6px 6px 6px 6px;
  23232. }
  23233. .navText {
  23234. cursor: pointer;
  23235. white-space: nowrap;
  23236. overflow: hidden;
  23237. text-overflow: ellipsis;
  23238. width: 220px;
  23239. padding: 0 10px;
  23240. font-weight: 400;
  23241. color: #0e1e33;
  23242. }
  23243. .downIcon {
  23244. width: 20px;
  23245. min-width: 20px;
  23246. height: 20px;
  23247. margin-right: 15px;
  23248. cursor: pointer;
  23249. }
  23250. .downIcon > img {
  23251. width: 100%;
  23252. height: 100%;
  23253. }
  23254. .noVedio {
  23255. display: flex;
  23256. flex-direction: row;
  23257. justify-content: center;
  23258. align-content: center;
  23259. }
  23260. .noNavText {
  23261. cursor: pointer;
  23262. margin: 0px 0px 10px 5px;
  23263. width: 112px;
  23264. }
  23265. .listNoVedio {
  23266. margin: 0 0 0 30px;
  23267. width: 97%;
  23268. }
  23269. .video-player >>> .video-js {
  23270. height: 100%;
  23271. }
  23272. .hangVedioList {
  23273. width: 90% !important;
  23274. height: 150px !important;
  23275. margin: 20px 0 0 30px;
  23276. }
  23277. .hangVedio {
  23278. width: 100%;
  23279. height: 170px !important;
  23280. align-items: flex-start !important;
  23281. }
  23282. .hangHand {
  23283. height: 150px !important;
  23284. }
  23285. .twoChild {
  23286. width: 95%;
  23287. margin: 10px;
  23288. border-radius: 5px;
  23289. background: #f2f2f2;
  23290. display: flex;
  23291. flex-direction: column;
  23292. flex-wrap: nowrap;
  23293. justify-content: flex-start;
  23294. align-items: flex-start;
  23295. transition: all 0.5s;
  23296. overflow: hidden;
  23297. height: 0;
  23298. background: #e7f3ff;
  23299. }
  23300. .twoChild > div:nth-child(1) {
  23301. margin-top: 5px;
  23302. }
  23303. .navChild {
  23304. width: 100%;
  23305. cursor: pointer;
  23306. margin-bottom: 10px;
  23307. position: relative;
  23308. }
  23309. .navChild img {
  23310. position: absolute;
  23311. right: 11px;
  23312. width: 15px;
  23313. top: 50%;
  23314. transform: translateY(-50%);
  23315. }
  23316. .navActive,
  23317. .toolActive {
  23318. height: auto !important;
  23319. overflow: auto !important;
  23320. /* // padding-bottom: 16px; */
  23321. }
  23322. .toolActive {
  23323. padding: 0;
  23324. }
  23325. .navTask {
  23326. display: flex;
  23327. flex-direction: row;
  23328. flex-wrap: nowrap;
  23329. align-items: center;
  23330. align-content: flex-start;
  23331. height: 40px;
  23332. justify-content: flex-start;
  23333. padding: 0 10px;
  23334. width: 100%;
  23335. box-sizing: border-box;
  23336. }
  23337. .navTaskname {
  23338. white-space: nowrap;
  23339. text-overflow: ellipsis;
  23340. overflow: hidden;
  23341. word-break: break-all;
  23342. padding-left: 5px;
  23343. }
  23344. .openTaskActive {
  23345. /* background-color: #e0eafb !important;
  23346. color: #0061ff; */
  23347. color:#fff;
  23348. background: rgb(55, 129, 252) !important;
  23349. }
  23350. .iframeName {
  23351. margin: 5px 0;
  23352. border-left: 4px solid #41c4a4;
  23353. padding-left: 4px;
  23354. }
  23355. .toolTitle {
  23356. margin: 0px 0px 20px;
  23357. font-size: 20px;
  23358. font-weight: 500;
  23359. border-left: 4px solid #41c4a4;
  23360. padding-left: 4px;
  23361. }
  23362. .cru_selectBox {
  23363. overflow: auto;
  23364. width: 95%;
  23365. margin: 17px auto 0;
  23366. height: calc(100% - 40px - 21px - 20px - 17px);
  23367. background: #fff;
  23368. border-radius: 8px;
  23369. }
  23370. .cru_selectBox::-webkit-scrollbar,
  23371. .study_top::-webkit-scrollbar,
  23372. .textContent::-webkit-scrollbar {
  23373. /*滚动条整体样式*/
  23374. width: 6px;
  23375. /*高宽分别对应横竖滚动条的尺寸*/
  23376. height: 6px;
  23377. }
  23378. /*定义滚动条轨道 内阴影+圆角*/
  23379. .cru_selectBox::-webkit-scrollbar-track,
  23380. .study_top::-webkit-scrollbar-track,
  23381. .textContent::-webkit-scrollbar {
  23382. border-radius: 10px;
  23383. background-color: #b8bdc9;
  23384. }
  23385. /*定义滑块 内阴影+圆角*/
  23386. .cru_selectBox::-webkit-scrollbar-thumb,
  23387. .study_top::-webkit-scrollbar-thumb,
  23388. .textContent::-webkit-scrollbar-thumb {
  23389. border-radius: 10px;
  23390. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23391. background-color: #2c5ab3;
  23392. }
  23393. .vedioBox {
  23394. border-radius: 0 0 20px 20px;
  23395. background: #fff;
  23396. overflow: auto;
  23397. }
  23398. .taskBox {
  23399. width: 98%;
  23400. background: #f0f4fa;
  23401. margin: 10px auto;
  23402. padding: 0 10px;
  23403. border-radius: 4px;
  23404. box-sizing: border-box;
  23405. }
  23406. .vedioTaskBox {
  23407. width: 100%;
  23408. display: flex;
  23409. flex-direction: row;
  23410. flex-wrap: nowrap;
  23411. align-items: flex-start;
  23412. position: relative;
  23413. }
  23414. .toolBox {
  23415. margin: 15px 0 0 25px;
  23416. display: flex;
  23417. position: relative;
  23418. padding: 18px 20px;
  23419. border-top-left-radius: 5px;
  23420. border-top-right-radius: 5px;
  23421. width: 90%;
  23422. }
  23423. .btnAll {
  23424. position: absolute;
  23425. right: 0;
  23426. display: flex;
  23427. flex-direction: row;
  23428. flex-wrap: nowrap;
  23429. align-items: center;
  23430. }
  23431. .btnLeft,
  23432. .btnRight {
  23433. display: flex;
  23434. flex-direction: row;
  23435. flex-wrap: nowrap;
  23436. align-items: center;
  23437. padding: 5px 0;
  23438. }
  23439. .btnLeft {
  23440. border-right: 1px solid #cad1dc;
  23441. }
  23442. .btnLeft > .custom-tooltip {
  23443. background: #3681fc;
  23444. color: #fff;
  23445. }
  23446. .last:hover {
  23447. background: #3383fa !important;
  23448. color: #fff;
  23449. border: 1px solid #3383fa !important;
  23450. }
  23451. .last,
  23452. .returnBtn1 {
  23453. width: 90px;
  23454. height: 36px;
  23455. background: #ffffff;
  23456. border-radius: 4px;
  23457. border: 1px solid #0061ff;
  23458. color: #0061ff;
  23459. cursor: pointer;
  23460. display: flex;
  23461. flex-direction: row;
  23462. flex-wrap: nowrap;
  23463. align-items: center;
  23464. justify-content: center;
  23465. margin-left: 12px;
  23466. }
  23467. .returnBtn1 {
  23468. background: #f0f4fa;
  23469. border-radius: 4px;
  23470. border: 1px solid #cad1dc;
  23471. margin: 0 12px;
  23472. }
  23473. .lastImg {
  23474. min-width: 15px;
  23475. width: 15px;
  23476. height: 15px;
  23477. display: flex;
  23478. }
  23479. .lastText {
  23480. padding: 0 5px 0 5px;
  23481. box-sizing: border-box;
  23482. font-size: 14px;
  23483. }
  23484. .lastImg > img {
  23485. width: 100%;
  23486. height: 100%;
  23487. }
  23488. /* .vedioTimeBox {
  23489. display: flex;
  23490. flex-direction: row;
  23491. align-items: center;
  23492. flex-wrap: nowrap;
  23493. position: relative;
  23494. } */
  23495. .navBox {
  23496. background: #fff;
  23497. height: calc(100% - 40px);
  23498. overflow-y: auto;
  23499. overflow-x: hidden;
  23500. }
  23501. .worksBox {
  23502. margin: 0 0 10px 25px;
  23503. border-bottom: 1px solid #eeeeee;
  23504. padding: 18px 20px;
  23505. border-radius: 4px;
  23506. width: 90%;
  23507. }
  23508. .worksBTitle {
  23509. font-size: 20px;
  23510. padding-bottom: 15px;
  23511. border-bottom: 1px solid #eeeeee;
  23512. display: flex;
  23513. align-items: center;
  23514. }
  23515. .greenBox {
  23516. width: 5px;
  23517. height: 30px;
  23518. background: #63b6fa;
  23519. margin-right: 5px;
  23520. }
  23521. .worksDetailBox {
  23522. display: flex;
  23523. width: 100%;
  23524. flex-direction: row;
  23525. flex-wrap: wrap;
  23526. align-items: flex-end;
  23527. justify-content: flex-start;
  23528. padding: 15px 5px;
  23529. box-sizing: border-box;
  23530. }
  23531. .works {
  23532. display: flex;
  23533. flex-direction: column;
  23534. flex-wrap: nowrap;
  23535. align-items: flex-start;
  23536. justify-content: flex-start;
  23537. align-content: center;
  23538. max-width: 240px;
  23539. width: calc(100% / 3 - 10px);
  23540. height: auto;
  23541. margin-right: 10px;
  23542. margin-bottom: 10px;
  23543. overflow: hidden;
  23544. height: 140px;
  23545. box-shadow: 0 0 6px 1px #dfdada;
  23546. border-radius: 15px;
  23547. }
  23548. .workImg {
  23549. width: 100%;
  23550. /* height: calc(100% - 40px); */
  23551. height: 105px;
  23552. position: relative;
  23553. }
  23554. .workImg > img {
  23555. width: 100%;
  23556. height: 100%;
  23557. object-fit: contain;
  23558. cursor: pointer;
  23559. }
  23560. .worksName {
  23561. height: 40px;
  23562. line-height: 40px;
  23563. display: flex;
  23564. width: 100%;
  23565. flex-direction: row;
  23566. flex-wrap: nowrap;
  23567. justify-content: space-between;
  23568. align-items: center;
  23569. margin: 0 0 0 10px;
  23570. }
  23571. .worksName > div:nth-child(1) {
  23572. width: 110px;
  23573. white-space: nowrap;
  23574. overflow: hidden;
  23575. text-overflow: ellipsis;
  23576. }
  23577. .worksName > div:nth-child(2) {
  23578. color: #b7b4b5;
  23579. }
  23580. .noWorksS {
  23581. padding: 15px 0;
  23582. display: flex;
  23583. flex-direction: row;
  23584. flex-wrap: wrap;
  23585. align-items: center;
  23586. justify-content: flex-start;
  23587. }
  23588. .noWorksName,
  23589. .isWorksName,
  23590. .isWorksName2 {
  23591. background: #ddebf8;
  23592. color: #000;
  23593. width: 90px;
  23594. height: 25px;
  23595. text-align: center;
  23596. line-height: 25px;
  23597. border-radius: 4px;
  23598. margin: 10px 15px 10px 0;
  23599. white-space: nowrap;
  23600. overflow: hidden;
  23601. padding: 5px;
  23602. text-overflow: ellipsis;
  23603. cursor: pointer;
  23604. border: 1px solid #ddebf8;
  23605. }
  23606. .noWorksName {
  23607. background: #fff;
  23608. color: #0061ff;
  23609. border: 1px solid #0061ff;
  23610. }
  23611. .noWorksName > span{
  23612. max-width: 100%;
  23613. display: block;
  23614. overflow: hidden;
  23615. text-overflow: ellipsis;
  23616. white-space: nowrap;
  23617. }
  23618. .isWorksName2 {
  23619. width: 100px;
  23620. height: 40px;
  23621. line-height: 40px;
  23622. position: relative;
  23623. background: #dae6f9;
  23624. }
  23625. .isWorksName {
  23626. background: #e7ebf1 !important;
  23627. width: 100px;
  23628. height: 40px;
  23629. line-height: 40px;
  23630. position: relative;
  23631. color: #acb4bf;
  23632. border: 1px solid #cad1dc !important;
  23633. }
  23634. .isSelectName,
  23635. .noWorksName:hover {
  23636. background: #3383fa !important;
  23637. color: #fff !important;
  23638. border: 1px solid #3383fa !important;
  23639. }
  23640. .title {
  23641. background: #1e5cc9;
  23642. /* width: 98%; */
  23643. height: 45px;
  23644. color: #fff;
  23645. line-height: 45px;
  23646. padding-left: 20px;
  23647. box-sizing: border-box;
  23648. }
  23649. .textBox {
  23650. font-size: 20px;
  23651. width: 90%;
  23652. display: flex;
  23653. flex-direction: column;
  23654. align-items: center;
  23655. margin: 20px auto 0;
  23656. max-height: calc(100% - 75px);
  23657. overflow: auto;
  23658. }
  23659. .textContent {
  23660. font-size: 18px;
  23661. width: 95%;
  23662. max-width: 95%;
  23663. }
  23664. .answerBg {
  23665. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23666. background-size: 100% 100%;
  23667. width: 100%;
  23668. height: 100%;
  23669. color: #fff;
  23670. text-align: center;
  23671. display: flex;
  23672. flex-direction: column;
  23673. flex-wrap: nowrap;
  23674. align-items: center;
  23675. position: relative;
  23676. justify-content: center;
  23677. }
  23678. /* .answerBg > div:nth-child(1) { */
  23679. /* font-size: 22px;
  23680. padding: 25px 0 10px; */
  23681. /* } */
  23682. .answerContent {
  23683. width: 215px;
  23684. max-height: 60px;
  23685. word-break: break-all;
  23686. text-align: center;
  23687. /* white-space: nowrap; */
  23688. overflow: hidden;
  23689. text-overflow: ellipsis;
  23690. /* padding: 23px 0 0; */
  23691. -webkit-line-clamp: 3;
  23692. -webkit-box-orient: vertical;
  23693. display: -webkit-box;
  23694. font-size: 15px;
  23695. cursor: pointer;
  23696. }
  23697. .elist_input_box {
  23698. display: flex;
  23699. align-items: flex-start;
  23700. flex-wrap: nowrap;
  23701. padding: 10px 0 15px 30px;
  23702. flex-direction: column;
  23703. }
  23704. .elist_input {
  23705. /* width: 40%; */
  23706. width: 45%;
  23707. padding: 20px;
  23708. /* margin: 20px; */
  23709. box-sizing: border-box;
  23710. }
  23711. .elist_input .elist_input_box input {
  23712. font: inherit;
  23713. color: currentColor;
  23714. width: 200px;
  23715. padding: 8px 14px;
  23716. display: block;
  23717. min-width: 0;
  23718. outline: none;
  23719. border: 1px solid rgba(0, 0, 0, 0.23);
  23720. border-radius: 4px;
  23721. box-sizing: border-box;
  23722. background: #fff;
  23723. margin: 0 20px 0 0;
  23724. }
  23725. .elist_input .elist_input_box span {
  23726. height: 36px;
  23727. line-height: 36px;
  23728. color: rgb(82, 82, 82);
  23729. }
  23730. .elist_input .elist_input_box .remove {
  23731. height: 20px;
  23732. width: 20px;
  23733. background-size: 100% 100%;
  23734. background-position: unset;
  23735. margin-left: 5px;
  23736. }
  23737. .elist_input_box >>> .el-rate {
  23738. display: flex;
  23739. height: 36px;
  23740. align-items: center;
  23741. }
  23742. .elist_input_box .elist_inptu_text {
  23743. min-height: 50px;
  23744. /* width: 500px;
  23745. max-height: 150px; */
  23746. width: 100%;
  23747. line-height: 50px;
  23748. color: rgb(82, 82, 82);
  23749. overflow: auto;
  23750. text-indent: 5px;
  23751. background: #f7f6f9;
  23752. border-radius: 10px;
  23753. }
  23754. .elist_input_box .elist_inptu_text input {
  23755. width: 500px;
  23756. }
  23757. .elist_input_box >>> .el-rate__icon {
  23758. font-size: 24px;
  23759. }
  23760. .isClick {
  23761. background: #4d9def;
  23762. }
  23763. .bzBox {
  23764. display: flex;
  23765. flex-direction: row;
  23766. align-items: center;
  23767. }
  23768. .bzBox .yCss {
  23769. width: 7px;
  23770. height: 7px;
  23771. background: #fff;
  23772. margin: 0 16px 0 6px;
  23773. border-radius: 50%;
  23774. border: 5px solid #3681fc;
  23775. z-index: 99;
  23776. }
  23777. .bzBox > div:nth-child(2) {
  23778. font-size: 18px;
  23779. font-weight: bold;
  23780. color: #0e1e33;
  23781. }
  23782. .navTitile {
  23783. padding: 0 0px 0 15px;
  23784. font-size: 16px;
  23785. font-weight: bold;
  23786. color: #0e1e33;
  23787. height: 40px;
  23788. line-height: 40px;
  23789. }
  23790. .isTypeOne {
  23791. width: 240px;
  23792. height: 170px;
  23793. /* border: 1px solid #f8f8f8; */
  23794. border-radius: 10px;
  23795. box-shadow: 0 0 6px 1px #dfdada;
  23796. }
  23797. .e_add_top {
  23798. display: flex;
  23799. justify-content: space-between;
  23800. padding: 10px 20px;
  23801. border-radius: 3px;
  23802. background: #fff;
  23803. }
  23804. .e_add_title2 {
  23805. display: flex;
  23806. align-items: center;
  23807. }
  23808. .e_add_title2 span {
  23809. width: 40px;
  23810. }
  23811. .e_add_title {
  23812. display: flex;
  23813. align-items: center;
  23814. color: #b8b8b8;
  23815. font-size: 18px;
  23816. position: relative;
  23817. height: 40px;
  23818. }
  23819. .e_add_title span {
  23820. margin-right: 10px;
  23821. }
  23822. .e_add_title .el_input {
  23823. width: 300px;
  23824. }
  23825. .e_add_title >>> .el-input__inner {
  23826. width: 400px;
  23827. }
  23828. .e_add_btn {
  23829. }
  23830. .e_add_content {
  23831. display: flex;
  23832. width: 100%;
  23833. max-width: 650px;
  23834. height: 550px;
  23835. }
  23836. .e_add_list {
  23837. background: #fff;
  23838. height: 500px;
  23839. width: 210px;
  23840. position: relative;
  23841. margin: 15px 5px 0 0;
  23842. flex-shrink: 0;
  23843. display: flex;
  23844. flex-direction: column;
  23845. }
  23846. .e_add_list_title {
  23847. font-size: 20px;
  23848. width: 100%;
  23849. box-sizing: border-box;
  23850. padding: 15px 40px;
  23851. text-align: center;
  23852. border-bottom: 1px solid #eaeaea;
  23853. position: relative;
  23854. display: flex;
  23855. align-items: center;
  23856. justify-content: center;
  23857. height: 57px;
  23858. background: #f6f6f6;
  23859. }
  23860. .e_add_list_title span {
  23861. overflow: hidden;
  23862. white-space: nowrap;
  23863. text-overflow: ellipsis;
  23864. }
  23865. .e_add_list_title img {
  23866. position: absolute;
  23867. right: 15px;
  23868. width: 25px;
  23869. cursor: pointer;
  23870. top: 50%;
  23871. transform: translateY(-50%);
  23872. }
  23873. .e_add_list_body {
  23874. height: calc(100% - 187px);
  23875. overflow: auto;
  23876. }
  23877. .e_add_list_child {
  23878. width: 100%;
  23879. display: flex;
  23880. align-items: center;
  23881. justify-content: center;
  23882. position: relative;
  23883. box-sizing: border-box;
  23884. padding: 15px 40px;
  23885. text-align: center;
  23886. }
  23887. .e_add_list_child span {
  23888. overflow: hidden;
  23889. white-space: nowrap;
  23890. text-overflow: ellipsis;
  23891. cursor: pointer;
  23892. }
  23893. .e_add_list_child img {
  23894. position: absolute;
  23895. right: 10px;
  23896. width: 21px;
  23897. cursor: pointer;
  23898. top: 50%;
  23899. transform: translateY(-50%);
  23900. }
  23901. .e_add_list_child + .e_add_list_child {
  23902. border-top: 1px solid #eaeaea;
  23903. }
  23904. .e_add_list_child .active {
  23905. color: #409eff;
  23906. }
  23907. .e_add_list_btn {
  23908. position: absolute;
  23909. bottom: 0;
  23910. height: 50px;
  23911. background: rgb(120, 120, 254);
  23912. width: 100%;
  23913. color: #fff;
  23914. font-size: 16px;
  23915. text-align: center;
  23916. line-height: 50px;
  23917. cursor: pointer;
  23918. }
  23919. .e_add_list_detail {
  23920. position: absolute;
  23921. bottom: 0;
  23922. height: 130px;
  23923. background: rgb(120, 120, 254);
  23924. width: 100%;
  23925. color: #fff;
  23926. font-size: 16px;
  23927. display: flex;
  23928. align-items: center;
  23929. justify-content: center;
  23930. }
  23931. .e_add_list_detail textarea {
  23932. height: 90%;
  23933. width: 95%;
  23934. border: none;
  23935. resize: none;
  23936. outline: none;
  23937. padding: 5px;
  23938. box-sizing: border-box;
  23939. }
  23940. .e_add_list_pbox {
  23941. width: 100%;
  23942. max-width: 650px;
  23943. /* height: 600px; */
  23944. }
  23945. .e_add_list_pbox_title {
  23946. height: 50px;
  23947. background: #fff;
  23948. display: flex;
  23949. align-items: center;
  23950. width: 100%;
  23951. box-sizing: border-box;
  23952. padding: 0 20px;
  23953. }
  23954. .type_title {
  23955. font-size: 18px;
  23956. font-weight: 700;
  23957. }
  23958. .type_content {
  23959. font-size: 16px;
  23960. /* margin-left: 30px; */
  23961. }
  23962. .type_content span + span {
  23963. margin-left: 20px;
  23964. }
  23965. .type_content span {
  23966. cursor: pointer;
  23967. padding-bottom: 5px;
  23968. box-sizing: border-box;
  23969. }
  23970. .type_content .active {
  23971. color: #409eff;
  23972. border-bottom: 2px solid #409eff;
  23973. }
  23974. .e_add_list_pbox_content {
  23975. height: calc(100% - 50px);
  23976. display: flex;
  23977. align-items: center;
  23978. width: 100%;
  23979. background: #fff;
  23980. }
  23981. .evaCss {
  23982. display: flex;
  23983. flex-direction: row;
  23984. flex-wrap: nowrap;
  23985. align-items: flex-start;
  23986. padding: 0 0 20px;
  23987. }
  23988. .evaCss >>> .cell {
  23989. position: relative;
  23990. overflow: visible;
  23991. }
  23992. .evaCss >>>.el-table__body-wrapper{
  23993. overflow: visible;
  23994. }
  23995. .evaCss >>> .el-table{
  23996. overflow: visible;
  23997. }
  23998. .blueRootCss{
  23999. position: absolute;
  24000. top:50%;
  24001. left: 0;
  24002. transform: translate(-20px,-50%);
  24003. }
  24004. .cru_line {
  24005. position: absolute;
  24006. bottom: 0px;
  24007. transition: all 0.5s;
  24008. left: 0px;
  24009. width: 125px;
  24010. margin-left: -25px;
  24011. }
  24012. .isNoMessage {
  24013. width: 20%;
  24014. margin: 25% auto 0;
  24015. }
  24016. .isNoMessage > img {
  24017. width: 100%;
  24018. height: 100%;
  24019. }
  24020. .fullStyle >>> .el-dialog__body {
  24021. height: 100% !important;
  24022. }
  24023. .fullStyle >>> .el-dialog,
  24024. .fullStyle {
  24025. width: 100% !important;
  24026. max-width: 100% !important;
  24027. height: 100% !important;
  24028. margin: 0 !important;
  24029. }
  24030. .full_diy >>> .el-dialog {
  24031. margin: 0 !important;
  24032. height: 100%;
  24033. padding: 4px;
  24034. }
  24035. .full_diy >>> .el-dialog__body {
  24036. height: calc(100% - 100px);
  24037. }
  24038. .full_diy2 >>> .el-dialog__body {
  24039. height: calc(100% - 50px);
  24040. padding: 0;
  24041. }
  24042. .switchCss {
  24043. /* width: 100%; */
  24044. display: flex;
  24045. flex-direction: row;
  24046. flex-wrap: nowrap;
  24047. align-items: center;
  24048. /* justify-content: center; */
  24049. }
  24050. .isClickNav {
  24051. /* color: #499eef; */
  24052. color: #000;
  24053. }
  24054. .commentImg {
  24055. width: 25px;
  24056. height: 25px;
  24057. cursor: pointer;
  24058. }
  24059. .commentImg > img {
  24060. width: 100%;
  24061. height: 100%;
  24062. }
  24063. .comment {
  24064. background: #f9f9f9;
  24065. border-radius: 0 0 4px 4px;
  24066. display: flex;
  24067. flex-direction: row;
  24068. flex-wrap: nowrap;
  24069. align-items: center;
  24070. justify-content: flex-end;
  24071. height: 35px;
  24072. }
  24073. .commentList {
  24074. display: flex;
  24075. flex-direction: row;
  24076. flex-wrap: nowrap;
  24077. align-items: center;
  24078. justify-content: center;
  24079. align-content: center;
  24080. /* margin-left: 15px; */
  24081. /* margin-left: 8px; */
  24082. }
  24083. .scoreImg {
  24084. width: 17px;
  24085. height: 17px;
  24086. }
  24087. .studentDetail {
  24088. display: flex;
  24089. flex-direction: row;
  24090. flex-wrap: nowrap;
  24091. /* align-items: center; */
  24092. align-items: flex-start;
  24093. }
  24094. .tx {
  24095. width: 50px;
  24096. }
  24097. .tx > img {
  24098. width: 100%;
  24099. height: 100%;
  24100. }
  24101. .nameAndTime {
  24102. display: flex;
  24103. flex-direction: column;
  24104. flex-wrap: nowrap;
  24105. align-items: flex-start;
  24106. margin-left: 10px;
  24107. }
  24108. .worksAnswer {
  24109. color: #4078dd;
  24110. margin: 10px 0;
  24111. font-size: 16px;
  24112. position: relative;
  24113. }
  24114. .worksAnswer > img {
  24115. width: 500px;
  24116. height: 300px;
  24117. object-fit: contain;
  24118. margin: 0 auto;
  24119. display: block;
  24120. }
  24121. .commentTop {
  24122. border-bottom: 1px solid #eaeaea;
  24123. padding-bottom: 10px;
  24124. }
  24125. .commentBox {
  24126. padding-top: 15px;
  24127. }
  24128. .pl {
  24129. font-size: 18px;
  24130. }
  24131. .plPerson {
  24132. width: 100%;
  24133. }
  24134. .plName {
  24135. display: flex;
  24136. flex-direction: row;
  24137. flex-wrap: nowrap;
  24138. align-items: baseline;
  24139. color: #78787a;
  24140. width: 100%;
  24141. }
  24142. .deleteComment {
  24143. cursor: pointer;
  24144. margin-left: auto;
  24145. color: #237ade;
  24146. }
  24147. .plContent {
  24148. margin-top: 5px;
  24149. }
  24150. .evalCss {
  24151. background: #fff;
  24152. font-size: 18px;
  24153. }
  24154. .nav {
  24155. color: #9d9d9d;
  24156. padding: 5px 0 15px 20px;
  24157. }
  24158. .middleBox {
  24159. padding: 5px 0 15px 20px;
  24160. }
  24161. .pfBox {
  24162. padding-bottom: 30px;
  24163. }
  24164. .nameAndrate {
  24165. display: flex;
  24166. flex-direction: row;
  24167. flex-wrap: nowrap;
  24168. align-items: center;
  24169. padding-bottom: 10px;
  24170. height: 30px;
  24171. line-height: 30px;
  24172. }
  24173. .nameAndrate > div {
  24174. margin-left: 10px;
  24175. color: #000;
  24176. height: 30px;
  24177. }
  24178. .nameAndrate >>> .el-rate__icon {
  24179. font-size: 28px !important;
  24180. }
  24181. .pfBox > div:nth-child(2) {
  24182. background: #f7f6f9;
  24183. width: 400px;
  24184. min-height: 45px;
  24185. border-radius: 10px;
  24186. font-size: 16px;
  24187. display: flex;
  24188. flex-wrap: wrap;
  24189. align-items: center;
  24190. padding: 10px 20px;
  24191. box-sizing: border-box;
  24192. color: #000;
  24193. }
  24194. .bz {
  24195. display: flex;
  24196. flex-direction: row;
  24197. flex-wrap: nowrap;
  24198. align-items: flex-start;
  24199. }
  24200. .bz > div {
  24201. padding: 0 10px;
  24202. }
  24203. .select_box2_title {
  24204. background: #fff;
  24205. border-radius: 5px;
  24206. padding: 15px 10px;
  24207. box-sizing: border-box;
  24208. margin-bottom: 10px;
  24209. display: flex;
  24210. flex-direction: row;
  24211. flex-wrap: nowrap;
  24212. align-items: center;
  24213. }
  24214. .select_box2_title > div:nth-child(2) {
  24215. margin-left: 10px;
  24216. color: #c4c4c4;
  24217. }
  24218. .select_box2_box {
  24219. display: flex;
  24220. height: 500px;
  24221. }
  24222. .select_box2_img {
  24223. width: calc(100% - 310px);
  24224. height: 100%;
  24225. overflow: auto;
  24226. background: #fff;
  24227. border-radius: 5px;
  24228. }
  24229. .select_box2_img img {
  24230. width: 100%;
  24231. }
  24232. .select_box2_answer {
  24233. background: #fff;
  24234. margin-left: 10px;
  24235. border-radius: 5px;
  24236. width: 300px;
  24237. overflow: auto;
  24238. height: 90%;
  24239. display: flex;
  24240. flex-direction: column;
  24241. align-items: flex-start;
  24242. padding-top: 10px;
  24243. box-sizing: border-box;
  24244. position: relative;
  24245. }
  24246. .select_answer_title {
  24247. padding: 0 0 15px 20px;
  24248. color: #c4c4c4;
  24249. }
  24250. .select_box2_answer_box {
  24251. margin: 0 0 10px 20px;
  24252. width: 85%;
  24253. display: flex;
  24254. flex-direction: row;
  24255. flex-wrap: nowrap;
  24256. align-items: center;
  24257. }
  24258. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24259. color: #000;
  24260. }
  24261. .upAnswerCss {
  24262. position: absolute;
  24263. bottom: 15px;
  24264. right: 15px;
  24265. }
  24266. .upAnswerCss >>> .el-button {
  24267. width: 95px;
  24268. height: 35px;
  24269. line-height: 35px;
  24270. padding: 0;
  24271. }
  24272. .rightWidthCss {
  24273. width: 60%;
  24274. display: flex;
  24275. flex-direction: row;
  24276. align-items: flex-start;
  24277. }
  24278. .rightAnswer {
  24279. display: flex;
  24280. flex-direction: row;
  24281. flex-wrap: nowrap;
  24282. align-items: center;
  24283. color: red;
  24284. margin-bottom: 31px;
  24285. }
  24286. .rightAnswerCss {
  24287. display: flex;
  24288. flex-direction: column;
  24289. flex-wrap: nowrap;
  24290. padding-top: 60px;
  24291. }
  24292. .blueCss {
  24293. color: #767de1;
  24294. margin-left: 10px;
  24295. }
  24296. .redCss {
  24297. color: red;
  24298. }
  24299. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24300. color: rgb(0 123 255) !important;
  24301. }
  24302. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24303. color: rgb(0 123 255) !important;
  24304. }
  24305. .zuoyeYulan {
  24306. padding-top: 0;
  24307. font-size: 18px;
  24308. display: flex;
  24309. align-items: flex-end;
  24310. }
  24311. .buttonA {
  24312. margin-left: 10px;
  24313. padding: 0;
  24314. }
  24315. .displayBox {
  24316. margin-bottom: 10px;
  24317. display: block;
  24318. border-bottom: 3px solid #eee;
  24319. display: flex;
  24320. align-items: center;
  24321. }
  24322. .easy_comment {
  24323. width: calc(100% - 90px);
  24324. margin-left: 10px;
  24325. display: flex;
  24326. flex-wrap: wrap;
  24327. }
  24328. .easy_comment > div {
  24329. border: 1px solid #4a4a4a;
  24330. color: #666;
  24331. border-radius: 15px;
  24332. padding: 5px 10px;
  24333. font-size: 16px;
  24334. margin-bottom: 10px;
  24335. margin-right: 5px;
  24336. cursor: pointer;
  24337. }
  24338. .easy_comment div:hover {
  24339. border: 1px solid #f7ba2a;
  24340. color: #c69217;
  24341. }
  24342. .xuan_right_box {
  24343. padding: 10px 0;
  24344. background: #f0f4fa;
  24345. margin: 0 15px 0 25px;
  24346. border-bottom-left-radius: 5px;
  24347. border-bottom-right-radius: 5px;
  24348. width: 91.5%;
  24349. }
  24350. .tool_right_box {
  24351. display: flex;
  24352. align-items: center;
  24353. }
  24354. .tool_right_box + .tool_right_box {
  24355. margin-top: 10px;
  24356. }
  24357. .right_box_xuan {
  24358. border-radius: 5px;
  24359. padding: 5px;
  24360. margin-left: 10px;
  24361. min-width: 85px;
  24362. background: #fff;
  24363. color: #0061ff;
  24364. border: 1px solid #0061ff;
  24365. font-size: 14px;
  24366. }
  24367. .pButton:hover {
  24368. opacity: 1 !important;
  24369. }
  24370. .pButton {
  24371. position: fixed;
  24372. text-align: center;
  24373. cursor: pointer;
  24374. z-index: 999;
  24375. right: 20px;
  24376. top: 110px;
  24377. width: 50px;
  24378. height: 50px;
  24379. display: flex;
  24380. align-items: center;
  24381. justify-content: center;
  24382. border-radius: 5px;
  24383. }
  24384. .pzClass {
  24385. width: calc(100% - 340px);
  24386. }
  24387. .newDialogCss {
  24388. /* position: fixed;
  24389. right: 5%;
  24390. top: 50%;
  24391. width: 340px;
  24392. transform: translateY(-50%);
  24393. height: 60%;
  24394. box-shadow: 0px 0 8px 0px #555555;
  24395. border-radius: 15px;
  24396. z-index: 999; */
  24397. position: fixed;
  24398. right: 20px;
  24399. top: 101px;
  24400. width: 330px;
  24401. height: calc(100% - 80px);
  24402. z-index: 999;
  24403. background: #fff;
  24404. border-top-right-radius: 0px;
  24405. border-bottom-right-radius: 0px;
  24406. overflow: hidden;
  24407. }
  24408. .newDialogCss>.scoreList{
  24409. width:100%;
  24410. height:100%;
  24411. box-sizing:border-box;
  24412. padding:10px 15px;
  24413. overflow:auto;
  24414. padding-bottom:80px;
  24415. }
  24416. .pzTop {
  24417. color: #fff;
  24418. background: #000;
  24419. display: flex;
  24420. flex-direction: row;
  24421. flex-wrap: nowrap;
  24422. align-items: center;
  24423. justify-content: space-between;
  24424. height: 40px;
  24425. border-radius: 15px 15px 0 0;
  24426. user-select: none;
  24427. }
  24428. .pzTop2 .checkbox {
  24429. display: flex;
  24430. align-items: center;
  24431. padding: 5px 10px;
  24432. flex: 0 0 auto;
  24433. font-weight: bold;
  24434. border-bottom: 1px solid #eee;
  24435. justify-content: space-between;
  24436. }
  24437. .checkbox>.cb-tabList{
  24438. display:flex;
  24439. align-items:center;
  24440. }
  24441. .cb-tabList>div{
  24442. margin-right:20px;
  24443. font-weight:400;
  24444. cursor:pointer;
  24445. }
  24446. .cb-tabList>.cb-tabItem{
  24447. color:#1684FC;
  24448. position:relative;
  24449. }
  24450. .cb-tabItem::after{
  24451. content:"";
  24452. width:100%;
  24453. height:2px;
  24454. background:#1684FC;
  24455. position:absolute;
  24456. bottom:-5px;
  24457. left:0
  24458. }
  24459. .pzTop2 .check {
  24460. text-align: center;
  24461. cursor: pointer;
  24462. box-sizing: border-box;
  24463. display: flex;
  24464. }
  24465. .pzTop2 img {
  24466. width: 25px;
  24467. cursor: pointer;
  24468. }
  24469. .pzTop > div:nth-child(1) {
  24470. padding-left: 10px;
  24471. }
  24472. .pzTop > div:nth-child(2) {
  24473. width: 15px;
  24474. height: 15px;
  24475. padding-right: 10px;
  24476. cursor: pointer;
  24477. }
  24478. .pzTop > div:nth-child(2) > img {
  24479. width: 100%;
  24480. height: 100%;
  24481. }
  24482. .pzBox,
  24483. .noPzBox {
  24484. height: calc(100% - 60px);
  24485. /* background: #ededed; */
  24486. background: #fff;
  24487. /* border-radius: 0 0 15px 15px; */
  24488. }
  24489. .noPzBox {
  24490. display: flex;
  24491. flex-direction: column;
  24492. flex-wrap: nowrap;
  24493. justify-content: center;
  24494. align-items: center;
  24495. }
  24496. .pzList {
  24497. background: #f7f7f7;
  24498. width: 90%;
  24499. margin: 0 auto 15px;
  24500. border-radius: 5px;
  24501. }
  24502. .pzNavTop {
  24503. display: flex;
  24504. flex-direction: row;
  24505. flex-wrap: nowrap;
  24506. padding: 10px 10px 0 10px;
  24507. align-items: center;
  24508. }
  24509. .pzDelete {
  24510. cursor: pointer;
  24511. margin-left: auto;
  24512. font-size: 14px;
  24513. color: #afafaf;
  24514. }
  24515. .pzNavTop > div:nth-child(1) {
  24516. background: #3760af;
  24517. width: 35px;
  24518. height: 35px;
  24519. color: #fff;
  24520. text-align: center;
  24521. line-height: 35px;
  24522. border-radius: 50%;
  24523. font-size: 14px;
  24524. }
  24525. .pzNavTop > div:nth-child(2) {
  24526. font-size: 18px;
  24527. color: #959595;
  24528. margin-left: 5px;
  24529. }
  24530. .pzContent {
  24531. padding: 10px;
  24532. word-break: break-word;
  24533. }
  24534. .pzContent audio {
  24535. width: 100%;
  24536. }
  24537. .pzContent audio::-webkit-media-controls-panel {
  24538. background: #fff;
  24539. }
  24540. .pzContent >>> img {
  24541. max-width: 100%;
  24542. }
  24543. .pzListBox {
  24544. padding-top: 15px;
  24545. height: calc(100% - 110px);
  24546. overflow: auto;
  24547. }
  24548. .addPzButton {
  24549. position: relative;
  24550. margin-top: 3px;
  24551. width: 100%;
  24552. }
  24553. .addPzButton .img1 {
  24554. position: absolute;
  24555. top: 50%;
  24556. right: 25px;
  24557. transform: translateY(-50%);
  24558. height: 100%;
  24559. display: flex;
  24560. align-items: center;
  24561. }
  24562. .addPzButton .img1 div {
  24563. display: flex;
  24564. }
  24565. .addPzButton .img1 div img {
  24566. width: 28px;
  24567. margin-left: 10px;
  24568. cursor: pointer;
  24569. }
  24570. .addPzButton .img1 div span {
  24571. font-size: 14px;
  24572. margin: 4px 0 0 3px;
  24573. color: #afafaf;
  24574. }
  24575. .addPz {
  24576. background: #4b79ce;
  24577. width: 100px;
  24578. color: #fff;
  24579. font-size: 12px;
  24580. height: 30px;
  24581. margin: 0 auto;
  24582. text-align: center;
  24583. line-height: 30px;
  24584. border-radius: 10px;
  24585. cursor: pointer;
  24586. }
  24587. .addDialogCss {
  24588. position: fixed;
  24589. width: 600px;
  24590. height: 70%;
  24591. min-height: 450px;
  24592. box-shadow: 0px 0 8px 0px #555555;
  24593. border-radius: 15px;
  24594. z-index: 999;
  24595. left: 50%;
  24596. top: 50%;
  24597. margin: -18% 0 0 -300px;
  24598. }
  24599. .teacherPz {
  24600. display: flex;
  24601. flex-direction: row;
  24602. align-items: center;
  24603. flex-wrap: nowrap;
  24604. }
  24605. .teacherPzImg {
  24606. width: 30px;
  24607. height: 30px;
  24608. }
  24609. .teacherPzImg > img {
  24610. width: 100%;
  24611. height: 100%;
  24612. }
  24613. .addPzBox {
  24614. height: calc(100% - 40px);
  24615. background: #ededed;
  24616. border-bottom-left-radius: 15px;
  24617. border-bottom-right-radius: 15px;
  24618. }
  24619. .pzAudioClass {
  24620. margin: 15px 14px;
  24621. background: #fff;
  24622. height: 100%;
  24623. display: flex;
  24624. justify-content: center;
  24625. align-items: center;
  24626. }
  24627. .pzConText {
  24628. width: 95%;
  24629. height: 100%;
  24630. margin: 10px auto 0;
  24631. border: none;
  24632. background: #fff;
  24633. border-radius: 0px;
  24634. }
  24635. .pzConText >>> .text {
  24636. height: calc(100% - 82px);
  24637. }
  24638. .addTextCss {
  24639. background: #4b79ce;
  24640. width: 80px;
  24641. height: 30px;
  24642. text-align: center;
  24643. color: #fff;
  24644. line-height: 30px;
  24645. border-radius: 10px;
  24646. margin: 10px auto 0;
  24647. cursor: pointer;
  24648. }
  24649. .pzConText:focus-visible {
  24650. border: none !important;
  24651. }
  24652. .maxWidth {
  24653. width: 1000px;
  24654. }
  24655. .noPz {
  24656. width: 150px;
  24657. margin: 0 auto 20%;
  24658. }
  24659. .noPz > img {
  24660. width: 100%;
  24661. height: 100%;
  24662. }
  24663. .timeAndReply {
  24664. display: flex;
  24665. flex-direction: row;
  24666. flex-wrap: nowrap;
  24667. justify-content: space-between;
  24668. align-items: center;
  24669. font-size: 14px;
  24670. box-sizing: border-box;
  24671. padding: 0 10px 10px 0px;
  24672. }
  24673. .timeAndReply .time {
  24674. color: #bfbfbf;
  24675. padding: 0 0 0 10px;
  24676. box-sizing: border-box;
  24677. }
  24678. .timeAndReply > div:last-child {
  24679. cursor: pointer;
  24680. color: #777;
  24681. }
  24682. /* table 样式 */
  24683. .cont >>> table {
  24684. border-top: 1px solid #ccc;
  24685. border-left: 1px solid #ccc;
  24686. }
  24687. .cont >>> table td,
  24688. .cont >>> table th {
  24689. border-bottom: 1px solid #ccc;
  24690. border-right: 1px solid #ccc;
  24691. /* padding: 20px 5px; */
  24692. padding: 5px 10px;
  24693. max-width: 0px;
  24694. height: 30px;
  24695. vertical-align: baseline;
  24696. box-sizing: border-box;
  24697. }
  24698. .cont >>> table th {
  24699. border-bottom: 2px solid #ccc;
  24700. text-align: center;
  24701. }
  24702. /* blockquote 样式 */
  24703. .cont >>> blockquote {
  24704. display: block;
  24705. border-left: 8px solid #d0e5f2;
  24706. padding: 5px 10px;
  24707. margin: 10px 0;
  24708. line-height: 1.4;
  24709. font-size: 100%;
  24710. background-color: #f1f1f1;
  24711. }
  24712. /* code 样式 */
  24713. .cont >>> code {
  24714. display: inline-block;
  24715. /* *display: inline; */
  24716. zoom: 1;
  24717. background-color: #f1f1f1;
  24718. border-radius: 3px;
  24719. padding: 3px 5px;
  24720. margin: 0 3px;
  24721. }
  24722. .cont >>> pre code {
  24723. display: block;
  24724. }
  24725. /* ul ol 样式 */
  24726. .cont >>> ul,
  24727. ol {
  24728. margin: 10px 0 10px 20px;
  24729. }
  24730. .addPzCheck {
  24731. display: flex;
  24732. flex-direction: row;
  24733. flex-wrap: nowrap;
  24734. padding: 10px 15px 0;
  24735. }
  24736. .addPzCheck span {
  24737. cursor: pointer;
  24738. padding-bottom: 5px;
  24739. font-weight: bold;
  24740. }
  24741. .addPzCheck span + span {
  24742. margin-left: 10px;
  24743. }
  24744. .addPzCheck .isChooseActive {
  24745. color: #3e88f4;
  24746. border-bottom: 2px solid #2f80f3;
  24747. }
  24748. /* code 样式 */
  24749. .cont {
  24750. /* -webkit-user-modify: read-write; */
  24751. overflow-wrap: break-word;
  24752. -webkit-line-break: after-white-space;
  24753. word-break: break-word;
  24754. white-space: pre-line;
  24755. }
  24756. .scoreBox,
  24757. .scoreDetailBox {
  24758. display: flex;
  24759. align-items: center;
  24760. justify-content: flex-start;
  24761. margin-top: 20px;
  24762. font-size: 18px;
  24763. width: 100%;
  24764. }
  24765. .scoreBox .t,
  24766. .scoreDetailBox .t {
  24767. margin-right: 10px;
  24768. width: 100px;
  24769. text-align: right;
  24770. }
  24771. .scoreDetailBox {
  24772. align-items: flex-start;
  24773. }
  24774. .scoreDetailBox >>> .el-textarea {
  24775. width: calc(100% - 200px);
  24776. }
  24777. .scoreBox >>> .el-input {
  24778. width: 130px;
  24779. font-size: 38px;
  24780. }
  24781. .scoreBox >>> .el-input__inner {
  24782. height: 60px;
  24783. }
  24784. .answerScore {
  24785. position: absolute;
  24786. top: 10px;
  24787. right: 10px;
  24788. background: #0000008f;
  24789. border-radius: 5px;
  24790. padding: 3px 5px;
  24791. font-size: 14px;
  24792. color: #fff;
  24793. cursor: pointer;
  24794. }
  24795. .open_box .switch_box {
  24796. width: 100%;
  24797. margin: 0 auto;
  24798. display: flex;
  24799. justify-content: space-between;
  24800. }
  24801. .open_box .switch_box + .switch_box {
  24802. margin-top: 10px;
  24803. }
  24804. .deleteImg,.deleteImg1 {
  24805. width: 25px !important;
  24806. height: 25px !important;
  24807. cursor: pointer;
  24808. position: absolute;
  24809. top: 10px;
  24810. right: 10px;
  24811. }
  24812. .deleteImg2 {
  24813. width: 23px !important;
  24814. height: 23px !important;
  24815. top: 5px;
  24816. right: 5px;
  24817. }
  24818. .deleteImg1{
  24819. width: 23px !important;
  24820. height: 23px !important;
  24821. top: 5px !important;
  24822. right: 30px !important;
  24823. }
  24824. .rightW {
  24825. right: 40px;
  24826. }
  24827. .drawPBox {
  24828. display: flex;
  24829. flex-direction: column;
  24830. position: relative;
  24831. }
  24832. .drawPBox span {
  24833. font-size: 18px;
  24834. color: #606266;
  24835. padding-bottom: 10px;
  24836. margin: 10px 0;
  24837. border-bottom: 1px solid #eaeaea;
  24838. }
  24839. .drawPBox img {
  24840. width: 500px;
  24841. height: 300px;
  24842. object-fit: contain;
  24843. cursor: pointer;
  24844. margin: 0 auto;
  24845. }
  24846. .sentenBox {
  24847. background: #fff;
  24848. height: 450px;
  24849. overflow: auto;
  24850. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24851. background-position: 102%;
  24852. background-repeat: no-repeat;
  24853. background-size: 60%;
  24854. }
  24855. .addSen {
  24856. background: #409efe;
  24857. width: 90px;
  24858. color: #fff;
  24859. height: 35px;
  24860. text-align: center;
  24861. line-height: 35px;
  24862. border-radius: 5px;
  24863. float: right;
  24864. margin: 10px 20px 0 0;
  24865. cursor: pointer;
  24866. }
  24867. .sentenTop {
  24868. display: flex;
  24869. flex-direction: row;
  24870. flex-wrap: nowrap;
  24871. align-items: center;
  24872. padding: 55px 0 0 20px;
  24873. box-sizing: border-box;
  24874. }
  24875. .sentenTop > div:nth-child(2) {
  24876. width: 300px;
  24877. margin: 0 15px;
  24878. }
  24879. .sentenTop > div:nth-child(3) {
  24880. background: #409efe;
  24881. color: #fff;
  24882. width: 65px;
  24883. height: 35px;
  24884. text-align: center;
  24885. line-height: 35px;
  24886. border-radius: 5px;
  24887. cursor: pointer;
  24888. }
  24889. .cardList,
  24890. .cardList1 {
  24891. padding: 10px 0 10px 0;
  24892. display: flex;
  24893. flex-direction: row;
  24894. flex-wrap: wrap;
  24895. align-items: center;
  24896. box-sizing: border-box;
  24897. border-bottom: 1px solid #f4f4f4;
  24898. width: 98%;
  24899. margin: 0 auto;
  24900. min-width: 60%;
  24901. max-width: 85%;
  24902. }
  24903. .cardList1 {
  24904. padding: 10px 0 10px 10px !important;
  24905. margin: 0 !important;
  24906. }
  24907. .cardBox {
  24908. display: flex;
  24909. flex-direction: row;
  24910. flex-wrap: wrap;
  24911. align-items: center;
  24912. align-content: center;
  24913. }
  24914. .cardBox > div {
  24915. margin-bottom: 10px;
  24916. }
  24917. .isCard,
  24918. .isChooseCard,
  24919. .noCard,
  24920. .isCard1 {
  24921. min-width: 130px;
  24922. width: auto;
  24923. height: 60px;
  24924. text-align: center;
  24925. line-height: 60px;
  24926. font-size: 20px;
  24927. cursor: pointer;
  24928. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24929. background-size: cover;
  24930. transition: all 2s;
  24931. margin-right: 20px;
  24932. background-size: 100% 100%;
  24933. padding: 0 20px;
  24934. box-sizing: border-box;
  24935. }
  24936. .isCard > div,
  24937. .noCard > div,
  24938. .isCard1 > div {
  24939. white-space: nowrap;
  24940. overflow: hidden;
  24941. text-overflow: ellipsis;
  24942. width: 100%;
  24943. margin: 0 auto;
  24944. }
  24945. .noCard {
  24946. background-image: none;
  24947. }
  24948. .isCard1 {
  24949. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24950. }
  24951. .isChooseCard {
  24952. background-image: none;
  24953. border: 1px dashed #b9b9b9;
  24954. border-radius: 10px;
  24955. }
  24956. .card {
  24957. width: 130px;
  24958. height: 60px;
  24959. }
  24960. .card > img {
  24961. width: 100%;
  24962. height: 100%;
  24963. }
  24964. .rightCardBox {
  24965. margin: 10px 0 0 10px;
  24966. }
  24967. .rightCardBox > div:nth-child(1) {
  24968. margin-bottom: 10px;
  24969. }
  24970. .cardCss {
  24971. display: flex;
  24972. flex-direction: column;
  24973. flex-wrap: nowrap;
  24974. align-items: center;
  24975. border-bottom: 3px solid #b4c3d3;
  24976. padding: 0 0 5px 0;
  24977. margin-right: 10px;
  24978. }
  24979. .cardCss > div:nth-child(2) {
  24980. background: #5b7b9d;
  24981. color: #fff;
  24982. width: 20px;
  24983. height: 20px;
  24984. border-radius: 50%;
  24985. text-align: center;
  24986. line-height: 20px;
  24987. }
  24988. .isWrong {
  24989. display: flex;
  24990. flex-direction: row;
  24991. flex-wrap: nowrap;
  24992. align-content: center;
  24993. align-items: center;
  24994. }
  24995. .answerRight {
  24996. width: 25%;
  24997. }
  24998. .isTj {
  24999. display: flex;
  25000. flex-direction: row;
  25001. flex-wrap: nowrap;
  25002. align-items: center;
  25003. }
  25004. .isTj > div:nth-child(2) {
  25005. color: #727070;
  25006. margin-left: 10px;
  25007. }
  25008. .isTjImg {
  25009. width: 30px;
  25010. height: 30px;
  25011. }
  25012. .isTjImg > img {
  25013. width: 100%;
  25014. height: 100%;
  25015. }
  25016. .cardAnswerBox {
  25017. font-size: 18px;
  25018. width: 97%;
  25019. border: 5px;
  25020. padding: 0;
  25021. border-radius: 5px;
  25022. margin: 10px auto;
  25023. word-break: break-word;
  25024. }
  25025. .w_name {
  25026. margin-bottom: 10px;
  25027. }
  25028. .w_name span {
  25029. font-size: 16px;
  25030. }
  25031. .w_teachert {
  25032. width: 50px !important;
  25033. position: absolute;
  25034. height: auto !important;
  25035. z-index: 10;
  25036. right: 25px;
  25037. top: -25px;
  25038. }
  25039. /* .group_workBox {
  25040. } */
  25041. .group_workBox + .group_workBox {
  25042. margin-top: 20px;
  25043. }
  25044. .group_box {
  25045. padding-bottom: 20px;
  25046. border-bottom: 2px solid #f0f0f0;
  25047. margin-top: 10px;
  25048. }
  25049. .group_title {
  25050. display: flex;
  25051. align-items: center;
  25052. justify-content: space-between;
  25053. width: 95%;
  25054. }
  25055. .group_name {
  25056. background-image: url(../../assets/icon/groupN.png);
  25057. width: 220px;
  25058. background-size: 100% 100%;
  25059. height: 67px;
  25060. padding: 0 20px 0 43px;
  25061. box-sizing: border-box;
  25062. line-height: 63px;
  25063. color: #fff;
  25064. overflow: hidden;
  25065. white-space: nowrap;
  25066. text-overflow: ellipsis;
  25067. }
  25068. .group_work {
  25069. width: 100%;
  25070. padding: 0 10px;
  25071. box-sizing: border-box;
  25072. display: flex;
  25073. flex-wrap: wrap;
  25074. }
  25075. .g_d_box {
  25076. display: flex;
  25077. flex-flow: wrap;
  25078. justify-content: space-around;
  25079. }
  25080. .g_d_box .isChair {
  25081. background-image: url(../../assets/avatar.png) !important;
  25082. }
  25083. .g_d_group {
  25084. width: 500px;
  25085. margin-bottom: 80px;
  25086. }
  25087. .g_d_group_chair {
  25088. display: flex;
  25089. align-items: center;
  25090. justify-content: center;
  25091. }
  25092. .g_d_group_chair > div + div {
  25093. margin-left: 30px;
  25094. }
  25095. .g_d_group_chair > div,
  25096. .g_d_group_chair2 > div {
  25097. display: flex;
  25098. flex-direction: column;
  25099. align-items: center;
  25100. }
  25101. .g_d_group_chair > div > span:nth-child(1),
  25102. .g_d_group_chair2 > div > span:nth-child(1) {
  25103. background-image: url(../../assets/icon/chair.png);
  25104. width: 50px;
  25105. height: 50px;
  25106. display: block;
  25107. background-size: 100% 100%;
  25108. }
  25109. .g_d_group_tableBox {
  25110. display: flex;
  25111. align-items: center;
  25112. justify-content: center;
  25113. }
  25114. .g_d_group_chair2 {
  25115. display: flex;
  25116. flex-direction: column;
  25117. align-items: center;
  25118. justify-content: center;
  25119. }
  25120. .g_d_group_chair2 > div + div {
  25121. margin-top: 10px;
  25122. }
  25123. .g_d_group_table {
  25124. background-image: url(../../assets/icon/groupBg.png);
  25125. width: 354px;
  25126. height: 196px;
  25127. background-size: 100% 100%;
  25128. display: flex;
  25129. align-items: center;
  25130. justify-content: center;
  25131. flex-direction: column;
  25132. color: #fff;
  25133. }
  25134. .g_d_group_table > div:nth-child(1) {
  25135. font-size: 24px;
  25136. margin-bottom: 5px;
  25137. }
  25138. .g_d_group_table > div:nth-child(2) div {
  25139. cursor: pointer;
  25140. background: #2e77bf;
  25141. padding: 4px 10px;
  25142. border-radius: 5px;
  25143. }
  25144. .groupBox {
  25145. }
  25146. .groupContent + .groupContent {
  25147. margin-top: 30px;
  25148. }
  25149. .groupTitle {
  25150. font-size: 24px;
  25151. color: rgb(80, 80, 80);
  25152. margin-bottom: 20px;
  25153. }
  25154. .groupName {
  25155. display: flex;
  25156. align-items: center;
  25157. }
  25158. .groupn {
  25159. font-size: 15px;
  25160. margin-right: 10px;
  25161. }
  25162. .groupName + .groupName {
  25163. margin-top: 15px;
  25164. }
  25165. .groupBtn {
  25166. margin-left: 10px;
  25167. }
  25168. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  25169. text-align: left;
  25170. }
  25171. .g_d_btnBox {
  25172. display: flex;
  25173. justify-content: flex-end;
  25174. align-items: center;
  25175. margin-bottom: 20px;
  25176. }
  25177. .updateChair {
  25178. position: relative;
  25179. }
  25180. .updateChairBtn {
  25181. position: absolute;
  25182. width: 50px;
  25183. height: 50px;
  25184. overflow: hidden;
  25185. /* display: flex; */
  25186. align-items: center;
  25187. justify-content: center;
  25188. background: #00000087;
  25189. color: #fff;
  25190. border-radius: 50px;
  25191. display: none;
  25192. cursor: pointer;
  25193. }
  25194. .updateChair:hover .updateChairBtn {
  25195. display: flex;
  25196. }
  25197. .group_staic_box {
  25198. display: flex;
  25199. padding: 30px 40px 10px;
  25200. flex-wrap: wrap;
  25201. }
  25202. .group_staic {
  25203. /* width: 50%; */
  25204. margin-bottom: 20px;
  25205. display: flex;
  25206. align-items: center;
  25207. }
  25208. .group_staic span:nth-child(1) {
  25209. width: 150px;
  25210. text-align: right;
  25211. margin-right: 15px;
  25212. }
  25213. .group_staic span:nth-child(2) {
  25214. background: rgb(0 123 255);
  25215. color: #fff;
  25216. border-radius: 5px;
  25217. padding: 5px;
  25218. }
  25219. .codeFileBox {
  25220. height: 300px;
  25221. background: #fff;
  25222. display: flex;
  25223. align-items: center;
  25224. justify-content: center;
  25225. }
  25226. .codeFileBox img {
  25227. width: 200px;
  25228. margin: 0;
  25229. height: auto;
  25230. }
  25231. .codeFileBox div {
  25232. background: rgb(80, 142, 226);
  25233. color: #fff;
  25234. padding: 10px 20px;
  25235. border-radius: 25px;
  25236. cursor: pointer;
  25237. margin-left: 15px;
  25238. }
  25239. .radioBox {
  25240. display: flex;
  25241. flex-direction: column;
  25242. flex-wrap: nowrap;
  25243. align-items: flex-start;
  25244. }
  25245. .radioBox > div {
  25246. margin: 10px 0 0 10px;
  25247. }
  25248. /* .radioBox >>> .el-radio__input,
  25249. .radioBox >>> .el-checkbox__inner {
  25250. margin-left: 10px;
  25251. } */
  25252. .radioBox >>> .el-radio__label,
  25253. .radioBox >>> .el-checkbox__label {
  25254. display: flex;
  25255. align-items: center;
  25256. width: 100%;
  25257. }
  25258. .radioBox >>> .el-radio__label > span {
  25259. width: 100%;
  25260. display: -webkit-box;
  25261. overflow: hidden;
  25262. white-space: normal !important;
  25263. text-overflow: ellipsis;
  25264. word-wrap: break-word;
  25265. }
  25266. .inImg {
  25267. width: 100px;
  25268. cursor: pointer;
  25269. }
  25270. .inImg > img {
  25271. width: 100%;
  25272. height: 100%;
  25273. object-fit: cover;
  25274. }
  25275. .timuImgBox {
  25276. margin: 10px 0;
  25277. display: flex;
  25278. flex-direction: column;
  25279. flex-wrap: wrap;
  25280. align-items: flex-start;
  25281. }
  25282. .timuImg {
  25283. width: 150px;
  25284. margin: 5px 0;
  25285. cursor: pointer;
  25286. }
  25287. .timuImg > img {
  25288. width: 100%;
  25289. height: 100%;
  25290. object-fit: cover;
  25291. }
  25292. .worksTop {
  25293. display: flex;
  25294. flex-direction: row;
  25295. align-items: flex-end;
  25296. }
  25297. .worksTitle{
  25298. display: flex;
  25299. flex-direction: row;
  25300. flex-wrap: nowrap;
  25301. align-items: center;
  25302. }
  25303. .worksTitle::before,.worksTop::before{
  25304. content: '';
  25305. display: block;
  25306. width: 3px;
  25307. height: 20px;
  25308. background: #0061FF;
  25309. border-radius: 3px;
  25310. margin: 0 5px 0 0;
  25311. }
  25312. .corOpen {
  25313. margin: 0 0 0 10px;
  25314. font-size: 14px;
  25315. cursor: pointer;
  25316. color: #505050;
  25317. }
  25318. .corOpen:hover {
  25319. color: #499eef;
  25320. }
  25321. .navCorOpenBox {
  25322. display: flex;
  25323. flex-direction: row;
  25324. align-items: center;
  25325. justify-content: space-between;
  25326. height: 55px;
  25327. background: #ffffff;
  25328. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25329. border-radius: 8px 8px 0px 0px;
  25330. z-index: 9;
  25331. position: relative;
  25332. }
  25333. .navCorOpen {
  25334. padding-right: 15px;
  25335. cursor: pointer;
  25336. width: 45px;
  25337. display: flex;
  25338. }
  25339. .navCorOpen > img {
  25340. width: 100%;
  25341. height: 100%;
  25342. }
  25343. .mlImg {
  25344. width: 40px !important;
  25345. min-width: 40px;
  25346. cursor: pointer;
  25347. transform: rotate(180deg);
  25348. }
  25349. .mlImg > img {
  25350. width: 100%;
  25351. height: 100%;
  25352. }
  25353. .navLeftCss {
  25354. width: 100% !important;
  25355. left: 0 !important;
  25356. }
  25357. .isContentCss {
  25358. width: 100% !important;
  25359. }
  25360. .isAllWidth {
  25361. width: 100% !important;
  25362. }
  25363. .group_switch {
  25364. margin-right: 10px;
  25365. height: 30px;
  25366. display: flex;
  25367. align-items: center;
  25368. }
  25369. .group_switch > span {
  25370. margin-right: 5px;
  25371. }
  25372. .fileC_box {
  25373. padding-top: 15px;
  25374. }
  25375. .fileC_box > .fileC_title {
  25376. padding: 10px 5px 14px 10px;
  25377. border-top: 1px solid #cad1dc;
  25378. font-size: 14px;
  25379. font-weight: 400;
  25380. color: #cad1dc;
  25381. width: calc(100% - 20px);
  25382. margin: 0 auto;
  25383. box-sizing: border-box;
  25384. }
  25385. .pl_select_box {
  25386. height: 40px;
  25387. line-height: 40px;
  25388. width: 100%;
  25389. cursor: pointer;
  25390. padding: 0 20px;
  25391. box-sizing: border-box;
  25392. border-radius: 5px;
  25393. border: 1px solid #d6d6d6;
  25394. white-space: nowrap;
  25395. overflow: hidden;
  25396. text-overflow: ellipsis;
  25397. background: #fff;
  25398. text-align: left;
  25399. }
  25400. .newButton {
  25401. width: 102px;
  25402. height: 36px;
  25403. background: #e7ebf1;
  25404. border-radius: 4px;
  25405. color: #0e1e33;
  25406. font-weight: 400;
  25407. font-size: 14px;
  25408. border: none;
  25409. float: right;
  25410. margin-left: 10px;
  25411. }
  25412. .el-table >>> .even_row {
  25413. background-color: #f0f4fa;
  25414. }
  25415. .stageBoxCss,
  25416. .stageBoxIsCss {
  25417. display: flex;
  25418. flex-direction: row;
  25419. flex-wrap: nowrap;
  25420. align-items: center;
  25421. height: 50px;
  25422. border-bottom: 1px solid #e2f5fc;
  25423. cursor: pointer;
  25424. width: 100%;
  25425. }
  25426. .stageBoxIsCss {
  25427. background: #0061ff;
  25428. color: #fff;
  25429. border-radius: 8px;
  25430. }
  25431. .closeTri,
  25432. .closeTri1 {
  25433. min-width: 15px;
  25434. width: 15px;
  25435. height: 15px;
  25436. }
  25437. .closeTri1 {
  25438. padding-left: 10px;
  25439. cursor: pointer;
  25440. }
  25441. .closeTri > img,
  25442. .closeTri1 > img {
  25443. width: 100%;
  25444. height: 100%;
  25445. /* transition: all .5s; */
  25446. }
  25447. .noToolBlue {
  25448. min-width: 10px;
  25449. width: 10px;
  25450. height: 10px;
  25451. background: #0061ff;
  25452. border-radius: 50%;
  25453. margin-left: 13px;
  25454. }
  25455. .stageChild,
  25456. .toolChild {
  25457. height: 0;
  25458. overflow: hidden;
  25459. transition: all 0.5s;
  25460. }
  25461. /* .toolChild { */
  25462. /* margin: 0 0 0 17px;
  25463. padding: 0 0 0 20px;
  25464. border-left: 1px solid #d7d7d7; */
  25465. /* } */
  25466. .toolChild > div + div{
  25467. margin-top:5px;
  25468. }
  25469. .gjCss {
  25470. display: flex;
  25471. flex-direction: row;
  25472. flex-wrap: nowrap;
  25473. align-items: center;
  25474. padding: 10px 0 10px 40px;
  25475. box-sizing: border-box;
  25476. font-size: 14px;
  25477. cursor: pointer;
  25478. border-radius:5px;
  25479. }
  25480. .toolChild > div {
  25481. position: relative;
  25482. width: 100%;
  25483. }
  25484. /* .toolChild > div::before { */
  25485. /* content: "";
  25486. width: 15px;
  25487. height: 1px;
  25488. background: #cad1dc;
  25489. position: absolute;
  25490. top: 24px;
  25491. left: -20px;
  25492. display: block; */
  25493. /* } */
  25494. .isGjCss {
  25495. /* color: #0061ff; */
  25496. color:#fff;
  25497. background: rgb(55, 129, 252);
  25498. /* background-color: #e0eafb !important;
  25499. color: #0061ff !important; */
  25500. }
  25501. .navItem {
  25502. background: #ffffff;
  25503. border-radius: 4px;
  25504. width: 100%;
  25505. margin: 10px auto;
  25506. position: relative;
  25507. height: 40px;
  25508. display: flex;
  25509. flex-direction: row;
  25510. flex-wrap: nowrap;
  25511. align-items: center;
  25512. }
  25513. .navItemList {
  25514. display: flex;
  25515. flex-direction: row;
  25516. flex-wrap: nowrap;
  25517. align-items: center;
  25518. padding: 0 13px;
  25519. cursor: pointer;
  25520. width: calc(100% - 60px);
  25521. height: 100%;
  25522. }
  25523. .navItemList > div:first-child {
  25524. min-width: 60px;
  25525. }
  25526. .navItemList > div:last-child {
  25527. width: calc(100% - 80px);
  25528. white-space: nowrap;
  25529. overflow: hidden;
  25530. text-overflow: ellipsis;
  25531. word-break: break-word;
  25532. }
  25533. /* .isItemList > div {
  25534. color: #fff !important;
  25535. } */
  25536. .tool_work_box {
  25537. width: 100%;
  25538. padding: 0 37px 0;
  25539. box-sizing: border-box;
  25540. }
  25541. .tool_box {
  25542. width: 100%;
  25543. padding: 0 0 0 20px;
  25544. }
  25545. .tool_type_box {
  25546. display: flex;
  25547. flex-direction: row;
  25548. align-items: baseline;
  25549. flex-wrap: nowrap;
  25550. justify-content: flex-start;
  25551. position: relative;
  25552. }
  25553. .toolSort {
  25554. display: flex;
  25555. flex-direction: row;
  25556. flex-wrap: wrap;
  25557. justify-content: flex-start;
  25558. align-items: flex-start;
  25559. padding: 0 0 15px 0;
  25560. }
  25561. .toolSort > div {
  25562. margin: 0 10px 0 0;
  25563. width: 135px;
  25564. box-sizing: border-box;
  25565. border: 2px solid transparent;
  25566. }
  25567. .tools {
  25568. width: 100%;
  25569. display: flex;
  25570. flex-direction: column;
  25571. flex-wrap: nowrap;
  25572. align-items: flex-start;
  25573. }
  25574. .whiteBIcon {
  25575. width: fit-content;
  25576. cursor: pointer;
  25577. display: flex;
  25578. flex-direction: column;
  25579. flex-wrap: nowrap;
  25580. align-items: center;
  25581. font-size: 14px;
  25582. }
  25583. .tool:hover {
  25584. border: 2px solid #a5c7ff;
  25585. border-radius: 5px;
  25586. }
  25587. .whiteBIcon > img {
  25588. width: 65px;
  25589. height: 100%;
  25590. }
  25591. .whiteBIcon > img {
  25592. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25593. border-radius: 15px;
  25594. }
  25595. .check {
  25596. /* width: 20px;
  25597. height: 20px; */
  25598. cursor: pointer;
  25599. margin: 10px 0;
  25600. position: absolute;
  25601. right: 2px;
  25602. top: -5px;
  25603. }
  25604. .noChoose,
  25605. .isChoose {
  25606. width: 15px;
  25607. height: 15px;
  25608. border-radius: 50%;
  25609. border: 1px solid #adadad;
  25610. }
  25611. .isChoose {
  25612. border: 4px solid #0363ff !important;
  25613. width: 10px;
  25614. height: 10px;
  25615. }
  25616. .isToolChoose {
  25617. border: 2px solid #5394ff !important;
  25618. border-radius: 5px;
  25619. box-shadow: 0 0 6px 0px #5394ff;
  25620. }
  25621. .checkDiv {
  25622. display: flex;
  25623. align-items: center;
  25624. }
  25625. .checkDiv span {
  25626. margin-left: 5px;
  25627. color: #858585;
  25628. }
  25629. .check img {
  25630. width: 20px;
  25631. height: 20px;
  25632. }
  25633. .lockTaskIcon {
  25634. width: 20px;
  25635. height: 20px;
  25636. position: absolute;
  25637. right: 10px;
  25638. top: 10px;
  25639. }
  25640. .lockTaskIcon > img {
  25641. width: 100%;
  25642. height: 100%;
  25643. }
  25644. .pick_box {
  25645. display: flex;
  25646. align-items: flex-start;
  25647. flex-wrap: wrap;
  25648. }
  25649. .selectBox {
  25650. width: 110px;
  25651. margin-left: 10px;
  25652. margin: 0 10px 0 auto;
  25653. }
  25654. .selectBox >>> .el-input__inner {
  25655. height: 30px;
  25656. line-height: 30px;
  25657. }
  25658. .selectBox >>> .el-input__icon {
  25659. line-height: 30px;
  25660. }
  25661. .sentenceTitle {
  25662. display: flex;
  25663. flex-direction: row;
  25664. flex-wrap: nowrap;
  25665. align-items: center;
  25666. }
  25667. .sentenceTitle::before {
  25668. content: attr(index);
  25669. background: #3681fc;
  25670. border-radius: 50%;
  25671. color: #fff;
  25672. width: 25px;
  25673. height: 25px;
  25674. min-width: 25px;
  25675. min-height: 25px;
  25676. text-align: center;
  25677. line-height: 25px;
  25678. margin-right: 5px;
  25679. }
  25680. .hfBox {
  25681. padding: 10px;
  25682. box-sizing: border-box;
  25683. }
  25684. .whoReplyWho {
  25685. display: flex;
  25686. flex-direction: row;
  25687. flex-wrap: nowrap;
  25688. align-items: baseline;
  25689. justify-content: flex-start;
  25690. }
  25691. .hfBottom {
  25692. display: flex;
  25693. flex-direction: row;
  25694. flex-wrap: nowrap;
  25695. align-items: center;
  25696. justify-content: space-between;
  25697. font-size: 14px;
  25698. }
  25699. .deleteHfItem {
  25700. cursor: pointer;
  25701. width: 20px;
  25702. height: 20px;
  25703. }
  25704. .deleteHfItem > img {
  25705. width: 100%;
  25706. height: 100%;
  25707. }
  25708. .whoReplyWho > .hfImg {
  25709. width: 12px;
  25710. height: 12px;
  25711. margin: 0 5px;
  25712. }
  25713. .whoReplyWho > .hfImg > img {
  25714. width: 100%;
  25715. height: 100%;
  25716. }
  25717. .hfContent {
  25718. padding-top: 10px;
  25719. box-sizing: border-box;
  25720. display: -webkit-box;
  25721. overflow: hidden;
  25722. white-space: normal !important;
  25723. text-overflow: ellipsis;
  25724. word-wrap: break-word;
  25725. -webkit-box-orient: vertical;
  25726. }
  25727. .hfTime {
  25728. text-align: left;
  25729. box-sizing: border-box;
  25730. padding: 10px 0 10px 0px;
  25731. color: #bfbfbf;
  25732. font-size: 14px;
  25733. }
  25734. .btnAllNT {
  25735. position: fixed;
  25736. bottom: 100px;
  25737. right: 40px;
  25738. z-index: 999;
  25739. display: flex;
  25740. flex-direction: row;
  25741. }
  25742. .btnAllNT > img {
  25743. cursor: pointer;
  25744. width: 80px;
  25745. }
  25746. .toolMask {
  25747. position: fixed;
  25748. width: 100%;
  25749. height: 100%;
  25750. background: #3f3c3c;
  25751. opacity: 0.5;
  25752. top: 0;
  25753. left: 0;
  25754. z-index: 999;
  25755. }
  25756. .addToolCss {
  25757. position: fixed;
  25758. z-index: 999;
  25759. background: #fff;
  25760. right: 5%;
  25761. bottom: 18%;
  25762. min-width: 1035px;
  25763. min-height: 300px;
  25764. border-radius: 10px;
  25765. box-shadow: 0 0 8px 1px #b2b2b2;
  25766. }
  25767. .toolTop {
  25768. display: flex;
  25769. flex-direction: row;
  25770. flex-wrap: nowrap;
  25771. justify-content: space-between;
  25772. align-items: center;
  25773. padding: 20px;
  25774. }
  25775. .toolTop > div:nth-child(2) {
  25776. width: 15px;
  25777. height: 15px;
  25778. padding-right: 10px;
  25779. cursor: pointer;
  25780. }
  25781. .toolTop > div:nth-child(2) > img {
  25782. width: 100%;
  25783. height: 100%;
  25784. }
  25785. .fullStyle>>>.el-dialog__body {
  25786. height: calc(100% - 125px) !important;
  25787. box-sizing: border-box;
  25788. padding: 30px 0 !important;
  25789. background: #fff !important;
  25790. }
  25791. .fullStyle>>>.el-dialog {
  25792. width: 100% !important;
  25793. max-width: 100% !important;
  25794. height: 100% !important;
  25795. margin: 0 !important;
  25796. }
  25797. .fullStyle {
  25798. width: 100% !important;
  25799. max-width: 100% !important;
  25800. height: 100% !important;
  25801. margin: 0 auto !important;
  25802. }
  25803. .fullStyle>>>.el-dialog__footer{
  25804. background: #fff !important;
  25805. }
  25806. .engUpBox {
  25807. width: 100%;
  25808. height: 100%;
  25809. }
  25810. .engTitle,
  25811. .engText {
  25812. display: flex;
  25813. flex-direction: row;
  25814. flex-wrap: nowrap;
  25815. align-items: flex-start;
  25816. padding: 0 20px 20px 20px;
  25817. box-sizing: border-box;
  25818. }
  25819. .engTitle > .div:first-child,
  25820. .engText > div:first-child {
  25821. min-width: 75px;
  25822. }
  25823. .correctBox{
  25824. width: 100%;
  25825. display: flex;
  25826. flex-direction: row;
  25827. flex-wrap: nowrap;
  25828. align-items: flex-start;
  25829. }
  25830. .oldBox{
  25831. width: 50%;
  25832. height: 100%;
  25833. display: flex;
  25834. flex-direction: column;
  25835. flex-wrap: nowrap;
  25836. align-items: center;
  25837. border-top: 1px solid #d9d9d9;
  25838. border-left: 1px solid #d9d9d9;
  25839. border-right: 1px solid #d9d9d9;
  25840. }
  25841. .oldBox>div:first-child{
  25842. width: 100%;
  25843. text-align: center;
  25844. background: #d9d9d9;
  25845. height: 35px;
  25846. line-height: 35px;
  25847. font-weight: bold;
  25848. }
  25849. .oldText{
  25850. width: 100%;
  25851. height: calc(100% - 35px);
  25852. overflow: auto;
  25853. margin: 10px 0;
  25854. display: flex;
  25855. flex-direction: column;
  25856. flex-wrap: nowrap;
  25857. align-content: center;
  25858. align-items: center;
  25859. }
  25860. .detailBox{
  25861. width: 50%;
  25862. padding: 10px;
  25863. background: #f6f6f6;
  25864. border-radius: 5px;
  25865. }
  25866. .oldDetail,.oldDetail1{
  25867. padding-bottom: 30px;
  25868. }
  25869. .oldImg{
  25870. width:30px;
  25871. height: 30px;
  25872. }
  25873. .oldImg>img{
  25874. width: 100%;
  25875. height: 100%;
  25876. }
  25877. .allName{
  25878. min-width: 200px;
  25879. white-space: nowrap;
  25880. overflow: hidden;
  25881. text-overflow: ellipsis;
  25882. word-break: break-word;
  25883. cursor: pointer;
  25884. text-align: center;
  25885. border: 1px solid #bcc2cc;
  25886. box-sizing: border-box;
  25887. }
  25888. .engUpTop{
  25889. max-height: 300px;
  25890. overflow: auto;
  25891. }
  25892. .isUpdateToolDetailClass{
  25893. padding: 0 !important;
  25894. }
  25895. .isUpdateToolDetailClass textarea{
  25896. padding:12px;
  25897. font-size: 16px;
  25898. min-height:100%;
  25899. width: 100%;
  25900. box-sizing:border-box;
  25901. outline: none;
  25902. border:none;
  25903. line-height: 30px;
  25904. resize: none;
  25905. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25906. color: #838383;
  25907. }
  25908. .show_taskD {
  25909. min-width: fit-content;
  25910. margin-left: 10px;
  25911. display: flex;
  25912. align-items: center;
  25913. font-size: 14px;
  25914. cursor: pointer;
  25915. color: #717c8d;
  25916. }
  25917. .show_taskD > img {
  25918. width: 15px;
  25919. margin-right: 5px;
  25920. transition: 0.2s all;
  25921. transform: rotate(-90deg);
  25922. }
  25923. .show_taskD.show > img {
  25924. transform: rotate(0deg);
  25925. }
  25926. .correctCss{
  25927. position: absolute;
  25928. bottom: -70px;
  25929. background: #409eff;
  25930. color: #fff;
  25931. }
  25932. .ScoreBtn{
  25933. background: rgba(87, 159, 248, 1);
  25934. display: flex;
  25935. justify-content: center;
  25936. align-items: center;
  25937. color: #fff;
  25938. font-size: 14px;
  25939. padding:8px 12px;
  25940. border-radius: 5px;
  25941. cursor: pointer;
  25942. }
  25943. .max-height-popover .el-popover {
  25944. min-height: 200px;
  25945. max-height: 400px; /* 设置最大高度 */
  25946. overflow: auto; /* 超出部分显示滚动条 */
  25947. }
  25948. .blueRootCss{
  25949. display: block;
  25950. margin-right: 5px;
  25951. }
  25952. .stuLookScore{
  25953. position: absolute;
  25954. top: 12px;
  25955. right: 40px;
  25956. background: #0000008f;
  25957. border-radius: 5px;
  25958. padding: 3px 5px;
  25959. font-size: 14px;
  25960. color: #fff;
  25961. cursor: pointer;
  25962. }
  25963. </style>