studyStudent.vue 933 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821
  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>
  997. <div v-if="tooC == 45">
  998. <img
  999. @click="addTools(tooC, toolIndex, taskCount)"
  1000. src="../../assets/icon/thirdToolList/choose.png"
  1001. alt
  1002. />
  1003. <div style="margin: 5px 0">选择题</div>
  1004. </div>
  1005. <!-- <div v-if="tooC == 5">
  1006. <img
  1007. @click="addTools(tooC, toolIndex, taskCount)"
  1008. src="../../assets/icon/thirdToolList/score.png"
  1009. alt
  1010. />
  1011. <div style="margin: 5px 0">量规评分</div>
  1012. </div> -->
  1013. <div v-if="tooC == 10">
  1014. <img
  1015. @click="addTools(tooC, toolIndex, taskCount)"
  1016. src="../../assets/icon/thirdToolList/time.png"
  1017. alt
  1018. />
  1019. <div style="margin: 5px 0">倒计时</div>
  1020. </div>
  1021. <div v-if="tooC == 15">
  1022. <img
  1023. @click="addTools(tooC, toolIndex, taskCount)"
  1024. src="../../assets/icon/thirdToolList/answer.png"
  1025. alt
  1026. />
  1027. <div style="margin: 5px 0">问答</div>
  1028. </div>
  1029. <div v-if="tooC == 26">
  1030. <img
  1031. @click="addTools(tooC, toolIndex, taskCount)"
  1032. src="../../assets/icon/thirdToolList/courseDesign.png"
  1033. alt
  1034. />
  1035. <div style="margin: 5px 0">课程设计</div>
  1036. </div>
  1037. <div v-if="tooC == 18">
  1038. <img
  1039. @click="addTools(tooC, toolIndex, taskCount)"
  1040. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1041. alt
  1042. />
  1043. <div style="margin: 5px 0">训练服务器</div>
  1044. </div>
  1045. <div v-if="tooC == 16">
  1046. <img
  1047. @click="addTools(tooC, toolIndex, taskCount)"
  1048. src="../../assets/icon/thirdToolList/work.png"
  1049. alt
  1050. />
  1051. <div style="margin: 5px 0">作业提交</div>
  1052. </div>
  1053. <div v-if="tooC == 50">
  1054. <img
  1055. @click="addTools(tooC, toolIndex, taskCount)"
  1056. src="../../assets/icon/thirdToolList/plwork.png"
  1057. alt
  1058. />
  1059. <div style="margin: 5px 0">批量上传</div>
  1060. </div>
  1061. <div v-if="tooC == 21">
  1062. <img
  1063. @click="addTools(tooC, toolIndex, taskCount)"
  1064. src="../../assets/icon/fourthToolList/program.png"
  1065. alt
  1066. />
  1067. <div style="margin: 5px 0">AIoT Blockly</div>
  1068. </div>
  1069. <!-- <div v-if="tooC == 22">
  1070. <img
  1071. @click="addTools(tooC, toolIndex, taskCount)"
  1072. src="../../assets/icon/fourthToolList/program.png"
  1073. alt
  1074. />
  1075. <div style="margin: 5px 0">AI体验</div>
  1076. </div> -->
  1077. <div v-if="tooC == 23">
  1078. <img
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1081. alt
  1082. />
  1083. <div style="margin: 5px 0">AI Python</div>
  1084. </div>
  1085. <div v-if="tooC == 24">
  1086. <img
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. src="../../assets/icon/fourthToolList/AIprogram.png"
  1089. alt
  1090. />
  1091. <div style="margin: 5px 0">AI Blockly</div>
  1092. </div>
  1093. <div v-if="tooC == 25">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/evalua.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">目标管理</div>
  1100. </div>
  1101. <div v-if="tooC == 31">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/secondToolList/networkPanel.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">数学画板</div>
  1108. </div>
  1109. <div v-if="tooC == 28">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/secondToolList/translation.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">翻译</div>
  1116. </div>
  1117. <div v-if="tooC == 37">
  1118. <img
  1119. @click="addTools(tooC, toolIndex, taskCount)"
  1120. src="../../assets/icon/secondToolList/mohe.png"
  1121. alt
  1122. />
  1123. <div style="margin: 5px 0">魔盒识字</div>
  1124. </div>
  1125. <div v-if="tooC == 38">
  1126. <img
  1127. @click="addTools(tooC, toolIndex, taskCount)"
  1128. src="../../assets/icon/secondToolList/24game.png"
  1129. alt
  1130. />
  1131. <div style="margin: 5px 0">24点</div>
  1132. </div>
  1133. <div v-if="tooC == 39">
  1134. <img
  1135. @click="addTools(tooC, toolIndex, taskCount)"
  1136. src="../../assets/icon/secondToolList/GeoGebra.png"
  1137. alt
  1138. />
  1139. <div style="margin: 5px 0">GeoGebra</div>
  1140. </div>
  1141. <div v-if="tooC == 32">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/code.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">源码编辑</div>
  1148. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1149. style="position: absolute;left: 110px;bottom: 30px;">
  1150. 上传文件
  1151. <input type="file" accept="*" style="display: none"
  1152. @change="beforeUpload1($event, 7, toolIndex)" />
  1153. </div> -->
  1154. </div>
  1155. <div v-if="tooC == 40">
  1156. <img
  1157. @click="addTools(tooC, toolIndex, taskCount)"
  1158. src="../../assets/icon/secondToolList/eval.png"
  1159. alt
  1160. />
  1161. <div style="margin: 5px 0">个人评价</div>
  1162. </div>
  1163. <div v-if="tooC == 41">
  1164. <img
  1165. @click="addTools(tooC, toolIndex, taskCount)"
  1166. src="../../assets/icon/thirdToolList/select.png"
  1167. alt
  1168. />
  1169. <div style="margin: 5px 0">选择匹配</div>
  1170. </div>
  1171. <div v-if="tooC == 44">
  1172. <img
  1173. @click="addTools(tooC, toolIndex, taskCount)"
  1174. src="../../assets/icon/thirdToolList/hanClass.png"
  1175. alt
  1176. />
  1177. <div style="margin: 5px 0">汉字宫</div>
  1178. </div>
  1179. <div v-if="tooC == 47">
  1180. <img
  1181. @click="addTools(tooC, toolIndex, taskCount)"
  1182. src="../../assets/icon/fourthToolList/conSentences.png"
  1183. alt
  1184. />
  1185. <div style="margin: 5px 0">排序</div>
  1186. </div>
  1187. <div v-if="tooC == 48">
  1188. <img
  1189. @click="addTools(tooC, toolIndex, taskCount)"
  1190. src="../../assets/icon/fourthToolList/table.png"
  1191. alt
  1192. />
  1193. <div style="margin: 5px 0">表格</div>
  1194. </div>
  1195. <div v-if="tooC == 52">
  1196. <img
  1197. @click="addTools(tooC, toolIndex, taskCount)"
  1198. src="../../assets/icon/fourthToolList/text.png"
  1199. alt
  1200. />
  1201. <div style="margin: 5px 0">文档</div>
  1202. </div>
  1203. <div v-if="tooC == 49">
  1204. <img
  1205. @click="addTools(tooC, toolIndex, taskCount)"
  1206. src="../../assets/icon/fourthToolList/group.png"
  1207. alt
  1208. />
  1209. <div style="margin: 5px 0">学生分组</div>
  1210. </div>
  1211. <div v-if="tooC == 57">
  1212. <img
  1213. @click="addTools(tooC, toolIndex, taskCount)"
  1214. src="../../assets/icon/fourthToolList/cocopi.png"
  1215. alt
  1216. />
  1217. <div style="margin: 5px 0">CocoPi</div>
  1218. </div>
  1219. <div v-if="tooC == 58">
  1220. <img
  1221. @click="addTools(tooC, toolIndex, taskCount)"
  1222. src="../../assets/icon/fourthToolList/car.png"
  1223. alt
  1224. />
  1225. <div style="margin: 5px 0">模拟驾驶</div>
  1226. </div>
  1227. <div v-if="tooC == 59">
  1228. <img
  1229. @click="addTools(tooC, toolIndex, taskCount)"
  1230. src="../../assets/icon/fourthToolList/lineSearch.png"
  1231. alt
  1232. />
  1233. <div style="margin: 5px 0">路径搜索</div>
  1234. </div>
  1235. <div v-if="tooC == 60">
  1236. <img
  1237. @click="addTools(tooC, toolIndex, taskCount)"
  1238. src="../../assets/icon/fourthToolList/deepLearning.png"
  1239. alt
  1240. />
  1241. <div style="margin: 5px 0">深度学习</div>
  1242. </div>
  1243. <div v-if="tooC == 61">
  1244. <img
  1245. @click="addTools(tooC, toolIndex, taskCount)"
  1246. src="../../assets/icon/fourthToolList/allHistory.png"
  1247. alt
  1248. />
  1249. <div style="margin: 5px 0">全历史</div>
  1250. </div>
  1251. <div v-if="tooC == 62">
  1252. <img
  1253. @click="addTools(tooC, toolIndex, taskCount)"
  1254. src="../../assets/icon/fourthToolList/interVideo.png"
  1255. alt
  1256. />
  1257. <div style="margin: 5px 0">交互视频</div>
  1258. </div>
  1259. <div v-if="tooC == 63">
  1260. <img
  1261. @click="addTools(tooC, toolIndex, taskCount)"
  1262. src="../../assets/icon/fourthToolList/Wood.png"
  1263. alt
  1264. />
  1265. <div style="margin: 5px 0">海龟编程</div>
  1266. </div>
  1267. <div v-if="tooC == 71">
  1268. <img
  1269. @click="addTools(tooC, toolIndex, taskCount)"
  1270. src="../../assets/icon/fourthToolList/chatgpt.png"
  1271. alt
  1272. />
  1273. <div style="margin: 5px 0">AI智能体</div>
  1274. </div>
  1275. <div v-if="tooC == 65">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/firstToolList/pickPeople.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">挑人</div>
  1282. </div>
  1283. <div v-if="tooC == 66">
  1284. <img
  1285. @click="addTools(tooC, toolIndex, taskCount)"
  1286. src="../../assets/icon/secondToolList/formulaEdi.png"
  1287. alt
  1288. />
  1289. <div style="margin: 5px 0">公式编辑</div>
  1290. </div>
  1291. <div v-if="tooC == 67">
  1292. <img
  1293. @click="addTools(tooC, toolIndex, taskCount)"
  1294. src="../../assets/icon/secondToolList/molStr.png"
  1295. alt
  1296. />
  1297. <div style="margin: 5px 0">分子结构</div>
  1298. </div>
  1299. <div v-if="tooC == 68">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/secondToolList/timeAxis.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">时间轴</div>
  1306. </div>
  1307. <div v-if="tooC == 69">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/secondToolList/english.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">英语写作</div>
  1314. </div>
  1315. <div v-if="tooC == 70">
  1316. <img
  1317. @click="addTools(tooC, toolIndex, taskCount)"
  1318. src="../../assets/icon/thirdToolList/englishVoice.png"
  1319. alt
  1320. />
  1321. <div style="margin: 5px 0">英语口语</div>
  1322. </div>
  1323. </div>
  1324. </div>
  1325. </div>
  1326. <div class="tooldetail" v-if="tool.toolDetail != ''" :class="{isUpdateToolDetailClass:toolDetailIndex == toolIndex}">
  1327. <!-- <div class="toolTitle">工具描述</div> -->
  1328. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1329. <div style="height:100%;"
  1330. v-html="contentConvent(tool.toolDetail)"
  1331. v-if="toolDetailIndex != toolIndex"
  1332. ></div>
  1333. <div v-else @click.stop="" style="height:100%;">
  1334. <textarea @change="() => { $forceUpdate() }" class="checkTextArea" rows="3" v-autoHeight="70" type="text" placeholder="请输入任务描述" v-model="updateToolDetailInner"></textarea>
  1335. </div>
  1336. </div>
  1337. <el-button
  1338. type="primary"
  1339. v-if="tool.tool[0] == 32"
  1340. style="position: absolute; right: 30px; top: -45px"
  1341. @click="addImg($event)"
  1342. >上传作业<input
  1343. type="file"
  1344. accept="*"
  1345. style="display: none"
  1346. @change="beforeUpload1($event, 7, toolIndex)"
  1347. /></el-button>
  1348. <el-button
  1349. type="primary"
  1350. v-if="tool.tool[0] == 15"
  1351. style="position: absolute; right: 30px; top: -45px"
  1352. @click="openWordCloud(toolIndex)"
  1353. >生成词云</el-button
  1354. >
  1355. <el-button
  1356. type="primary"
  1357. v-if="
  1358. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1359. "
  1360. style="position: absolute; right: 30px; top: -45px"
  1361. @click="uploadWorks(toolIndex)"
  1362. >导出作业</el-button
  1363. >
  1364. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1365. position: absolute;
  1366. right: 30px;
  1367. transform: translateY(-130%);
  1368. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1369. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1370. </div>
  1371. <div
  1372. v-if="
  1373. tType &&
  1374. tType == 2 &&
  1375. !sIsOpen &&
  1376. tool.tool.indexOf(16) != -1
  1377. "
  1378. class="worksBox"
  1379. >
  1380. <div
  1381. class="zuoyeYulan"
  1382. v-if="workStudent[toolIndex].length > 0"
  1383. >
  1384. <span class="worksTitle">作业预览</span>
  1385. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1386. </div>
  1387. <div
  1388. class="worksDetailBox"
  1389. v-if="workStudent[toolIndex].length > 0"
  1390. >
  1391. <div
  1392. class="works"
  1393. style="
  1394. width: 200px;
  1395. height: 140px;
  1396. margin: 10px 10px 10px 0;
  1397. box-shadow: 0 0 6px 1px #dfdada;
  1398. "
  1399. v-for="(w, wIndex) in workStudent[toolIndex]"
  1400. :key="wIndex"
  1401. >
  1402. <div class="workImg" v-if="w.type == 0">
  1403. <img
  1404. :src="w.works"
  1405. @click="previewImg(w.works,w)"
  1406. alt
  1407. />
  1408. <div
  1409. class="answerScore"
  1410. v-if="w.score"
  1411. @click.stop="openScore(w)"
  1412. :class="{
  1413. rightW:
  1414. w.userid == userid || tType == 1 || tType == 4,
  1415. }"
  1416. >
  1417. {{ JSON.parse(w.score).wScore }}分
  1418. </div>
  1419. <div
  1420. class="answerScore"
  1421. @click.stop="openScore(w)"
  1422. v-else-if="courseDetail.userid == userid"
  1423. :class="{
  1424. rightW:
  1425. w.userid == userid || tType == 1 || tType == 4,
  1426. }"
  1427. >
  1428. 评分
  1429. </div>
  1430. <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))">
  1431. <el-popover
  1432. placement="top"
  1433. width="318"
  1434. trigger="hover"
  1435. >
  1436. <markScore
  1437. :loading="AIloading[toolIndex][wIndex].loading"
  1438. :markScoreVisible="markScoreVisible"
  1439. :ref="`markSco${toolIndex}${wIndex}`"
  1440. @updateLoading=updateLoading
  1441. @updateDocSco=updateDocSco
  1442. @refreshOther=refreshOther
  1443. @markScoreDig=markScoreDig
  1444. :tool="tool"
  1445. :wIndex="wIndex"
  1446. :scoCon="w"
  1447. :toolIndex="toolIndex"
  1448. :key="refreshKey"
  1449. :stage="courseType"
  1450. :task="taskCount"
  1451. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1452. >
  1453. </markScore>
  1454. <div
  1455. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1456. slot="reference"
  1457. >
  1458. <span v-if="AIloading[toolIndex][wIndex].sco">
  1459. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1460. </span>
  1461. <span v-else>
  1462. 评分
  1463. </span>
  1464. </div>
  1465. </el-popover>
  1466. </div>
  1467. <img
  1468. class="deleteImg"
  1469. src="../../assets/deleteworks.png"
  1470. v-if="
  1471. w.userid == userid || tType == 1 || tType == 4
  1472. "
  1473. @click.stop="deleteWorks(w.wid)"
  1474. alt
  1475. />
  1476. </div>
  1477. <div class="workImg" v-if="w.type == 1">
  1478. <img :src="word" @click="openFile(w.works)" alt />
  1479. <div
  1480. class="answerScore"
  1481. v-if="w.score"
  1482. @click.stop="openScore(w)"
  1483. :class="{
  1484. rightW:
  1485. w.userid == userid || tType == 1 || tType == 4,
  1486. }"
  1487. >
  1488. {{ JSON.parse(w.score).wScore }}分
  1489. </div>
  1490. <div
  1491. class="answerScore"
  1492. @click.stop="openScore(w)"
  1493. v-else-if="courseDetail.userid == userid"
  1494. :class="{
  1495. rightW:
  1496. w.userid == userid || tType == 1 || tType == 4,
  1497. }"
  1498. >
  1499. 评分
  1500. </div>
  1501. <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))">
  1502. <el-popover
  1503. placement="top"
  1504. width="318"
  1505. trigger="hover"
  1506. >
  1507. <markScore
  1508. :loading="AIloading[toolIndex][wIndex].loading"
  1509. :markScoreVisible="markScoreVisible"
  1510. :ref="`markSco${toolIndex}${wIndex}`"
  1511. @updateLoading=updateLoading
  1512. @updateDocSco=updateDocSco
  1513. @refreshOther=refreshOther
  1514. @markScoreDig=markScoreDig
  1515. :tool="tool"
  1516. :wIndex="wIndex"
  1517. :scoCon="w"
  1518. :toolIndex="toolIndex"
  1519. :key="refreshKey"
  1520. :stage="courseType"
  1521. :task="taskCount"
  1522. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1523. >
  1524. </markScore>
  1525. <div
  1526. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1527. slot="reference"
  1528. >
  1529. <span v-if="AIloading[toolIndex][wIndex].sco">
  1530. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1531. </span>
  1532. <span v-else>
  1533. 评分
  1534. </span>
  1535. </div>
  1536. </el-popover>
  1537. </div>
  1538. <img
  1539. class="deleteImg"
  1540. src="../../assets/deleteworks.png"
  1541. v-if="
  1542. w.userid == userid || tType == 1 || tType == 4
  1543. "
  1544. @click.stop="deleteWorks(w.wid)"
  1545. alt
  1546. />
  1547. </div>
  1548. <div class="workImg" v-if="w.type == 3">
  1549. <img
  1550. style="cursor: pointer"
  1551. :src="video"
  1552. @click="openVideo(w)"
  1553. alt
  1554. />
  1555. <div
  1556. class="answerScore"
  1557. v-if="w.score"
  1558. @click.stop="openScore(w)"
  1559. :class="{
  1560. rightW:
  1561. w.userid == userid || tType == 1 || tType == 4,
  1562. }"
  1563. >
  1564. {{ JSON.parse(w.score).wScore }}分
  1565. </div>
  1566. <div
  1567. class="answerScore"
  1568. @click.stop="openScore(w)"
  1569. v-else-if="courseDetail.userid == userid"
  1570. :class="{
  1571. rightW:
  1572. w.userid == userid || tType == 1 || tType == 4,
  1573. }"
  1574. >
  1575. 评分
  1576. </div>
  1577. <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))">
  1578. <el-popover
  1579. placement="top"
  1580. width="318"
  1581. trigger="hover"
  1582. >
  1583. <markScore
  1584. :loading="AIloading[toolIndex][wIndex].loading"
  1585. :markScoreVisible="markScoreVisible"
  1586. :ref="`markSco${toolIndex}${wIndex}`"
  1587. @updateLoading=updateLoading
  1588. @updateDocSco=updateDocSco
  1589. @refreshOther=refreshOther
  1590. @markScoreDig=markScoreDig
  1591. :tool="tool"
  1592. :wIndex="wIndex"
  1593. :scoCon="w"
  1594. :toolIndex="toolIndex"
  1595. :key="refreshKey"
  1596. :stage="courseType"
  1597. :task="taskCount"
  1598. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1599. >
  1600. </markScore>
  1601. <div
  1602. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1603. slot="reference"
  1604. >
  1605. <span v-if="AIloading[toolIndex][wIndex].sco">
  1606. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1607. </span>
  1608. <span v-else>
  1609. 评分
  1610. </span>
  1611. </div>
  1612. </el-popover>
  1613. </div>
  1614. <img
  1615. class="deleteImg"
  1616. src="../../assets/deleteworks.png"
  1617. v-if="
  1618. w.userid == userid || tType == 1 || tType == 4
  1619. "
  1620. @click.stop="deleteWorks(w.wid)"
  1621. alt
  1622. />
  1623. </div>
  1624. <div class="workImg" v-if="w.type == 12">
  1625. <img
  1626. style="cursor: pointer"
  1627. :src="word2"
  1628. @click="downloadFile(w.works)"
  1629. alt
  1630. />
  1631. <div
  1632. class="answerScore"
  1633. v-if="w.score"
  1634. @click.stop="openScore(w)"
  1635. :class="{
  1636. rightW:
  1637. w.userid == userid || tType == 1 || tType == 4,
  1638. }"
  1639. >
  1640. {{ JSON.parse(w.score).wScore }}分
  1641. </div>
  1642. <div
  1643. class="answerScore"
  1644. @click.stop="openScore(w)"
  1645. v-else-if="courseDetail.userid == userid"
  1646. :class="{
  1647. rightW:
  1648. w.userid == userid || tType == 1 || tType == 4,
  1649. }"
  1650. >
  1651. 评分
  1652. </div>
  1653. <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))">
  1654. <el-popover
  1655. placement="top"
  1656. width="318"
  1657. trigger="hover"
  1658. >
  1659. <markScore
  1660. :loading="AIloading[toolIndex][wIndex].loading"
  1661. :markScoreVisible="markScoreVisible"
  1662. :ref="`markSco${toolIndex}${wIndex}`"
  1663. @updateLoading=updateLoading
  1664. @updateDocSco=updateDocSco
  1665. @refreshOther=refreshOther
  1666. @markScoreDig=markScoreDig
  1667. :tool="tool"
  1668. :wIndex="wIndex"
  1669. :scoCon="w"
  1670. :toolIndex="toolIndex"
  1671. :key="refreshKey"
  1672. :stage="courseType"
  1673. :task="taskCount"
  1674. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  1675. >
  1676. </markScore>
  1677. <div
  1678. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  1679. slot="reference"
  1680. >
  1681. <span v-if="AIloading[toolIndex][wIndex].sco">
  1682. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1683. </span>
  1684. <span v-else>
  1685. 评分
  1686. </span>
  1687. </div>
  1688. </el-popover>
  1689. </div>
  1690. <img
  1691. class="deleteImg"
  1692. src="../../assets/deleteworks.png"
  1693. v-if="
  1694. w.userid == userid || tType == 1 || tType == 4
  1695. "
  1696. @click.stop="deleteWorks(w.wid)"
  1697. alt
  1698. />
  1699. </div>
  1700. <div class="worksName">
  1701. <div>{{ w.sName }}</div>
  1702. </div>
  1703. </div>
  1704. </div>
  1705. </div>
  1706. <div
  1707. v-if="
  1708. tType &&
  1709. tType == 2 &&
  1710. !sIsOpen &&
  1711. tool.tool.indexOf(32) != -1
  1712. "
  1713. class="worksBox"
  1714. >
  1715. <div
  1716. class="zuoyeYulan"
  1717. v-if="workStudent[toolIndex].length > 0"
  1718. >
  1719. <span class="worksTitle">作业预览</span>
  1720. </div>
  1721. <div
  1722. class="worksDetailBox"
  1723. v-if="workStudent[toolIndex].length > 0"
  1724. >
  1725. <div
  1726. class="works"
  1727. style="
  1728. width: 200px;
  1729. height: 140px;
  1730. margin: 10px 10px 10px 0;
  1731. box-shadow: 0 0 6px 1px #dfdada;
  1732. "
  1733. v-for="(w, wIndex) in workStudent[toolIndex]"
  1734. :key="wIndex"
  1735. >
  1736. <div class="workImg">
  1737. <img
  1738. :src="word2"
  1739. @click="downloadFile(w.works)"
  1740. alt
  1741. />
  1742. <div
  1743. class="answerScore"
  1744. v-if="w.score"
  1745. @click.stop="openScore(w)"
  1746. :class="{
  1747. rightW:
  1748. w.userid == userid || tType == 1 || tType == 4,
  1749. }"
  1750. >
  1751. {{ JSON.parse(w.score).wScore }}分
  1752. </div>
  1753. <div
  1754. class="answerScore"
  1755. @click.stop="openScore(w)"
  1756. v-else-if="courseDetail.userid == userid"
  1757. :class="{
  1758. rightW:
  1759. w.userid == userid || tType == 1 || tType == 4,
  1760. }"
  1761. >
  1762. 评分
  1763. </div>
  1764. <img
  1765. class="deleteImg"
  1766. src="../../assets/deleteworks.png"
  1767. v-if="
  1768. w.userid == userid || tType == 1 || tType == 4
  1769. "
  1770. @click.stop="deleteWorks(w.wid)"
  1771. alt
  1772. />
  1773. </div>
  1774. <div class="worksName">
  1775. <div>{{ w.sName }}</div>
  1776. </div>
  1777. </div>
  1778. </div>
  1779. </div>
  1780. <div
  1781. v-if="
  1782. tType &&
  1783. tType == 2 &&
  1784. !sIsOpen &&
  1785. tool.tool.indexOf(57) != -1
  1786. "
  1787. class="worksBox"
  1788. >
  1789. <div
  1790. class="zuoyeYulan"
  1791. v-if="workStudent[toolIndex].length > 0"
  1792. >
  1793. <span class="worksTitle">作业预览</span>
  1794. </div>
  1795. <div
  1796. class="worksDetailBox"
  1797. v-if="workStudent[toolIndex].length > 0"
  1798. >
  1799. <div
  1800. class="works"
  1801. style="
  1802. width: 200px;
  1803. height: 140px;
  1804. margin: 10px 10px 10px 0;
  1805. box-shadow: 0 0 6px 1px #dfdada;
  1806. "
  1807. v-for="(w, wIndex) in workStudent[toolIndex]"
  1808. :key="wIndex"
  1809. >
  1810. <div class="workImg">
  1811. <img
  1812. :src="word2"
  1813. @click="downloadFile(w.works)"
  1814. v-if="w.type == 12"
  1815. alt
  1816. />
  1817. <img
  1818. :src="word2"
  1819. @click="
  1820. openCocoPi(57, toolIndex, w.userid, w.sName)
  1821. "
  1822. v-else-if="w.type == 15"
  1823. alt
  1824. />
  1825. <div
  1826. class="answerScore"
  1827. v-if="w.score"
  1828. @click.stop="openScore(w)"
  1829. :class="{
  1830. rightW:
  1831. w.userid == userid || tType == 1 || tType == 4,
  1832. }"
  1833. >
  1834. {{ JSON.parse(w.score).wScore }}分
  1835. </div>
  1836. <div
  1837. class="answerScore"
  1838. @click.stop="openScore(w)"
  1839. v-else-if="courseDetail.userid == userid"
  1840. :class="{
  1841. rightW:
  1842. w.userid == userid || tType == 1 || tType == 4,
  1843. }"
  1844. >
  1845. 评分
  1846. </div>
  1847. <img
  1848. class="deleteImg"
  1849. src="../../assets/deleteworks.png"
  1850. v-if="
  1851. w.userid == userid || tType == 1 || tType == 4
  1852. "
  1853. @click.stop="deleteWorks(w.wid)"
  1854. alt
  1855. />
  1856. </div>
  1857. <div class="worksName">
  1858. <div>{{ w.sName }}</div>
  1859. </div>
  1860. </div>
  1861. </div>
  1862. </div>
  1863. <div
  1864. v-if="
  1865. tType &&
  1866. tType == 2 &&
  1867. !sIsOpen &&
  1868. tool.tool.indexOf(4) != -1
  1869. "
  1870. class="worksBox"
  1871. >
  1872. <div
  1873. class="zuoyeYulan"
  1874. v-if="workStudent[toolIndex].length > 0"
  1875. >
  1876. <span class="worksTitle">作业预览</span>
  1877. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1878. </div>
  1879. <div
  1880. class="worksDetailBox"
  1881. v-if="workStudent[toolIndex].length > 0"
  1882. >
  1883. <div
  1884. class="isWorksName2"
  1885. v-for="(w, wIndex) in workStudent[toolIndex]"
  1886. :key="wIndex"
  1887. @click="
  1888. openTools(4, toolIndex, taskCount, w.works, w.sName)
  1889. "
  1890. >
  1891. {{ w.sName }}
  1892. <img
  1893. class="deleteImg deleteImg2"
  1894. src="../../assets/deleteworks.png"
  1895. v-if="w.userid == userid || tType == 1 || tType == 4"
  1896. @click.stop="deleteWorks(w.wid)"
  1897. alt
  1898. />
  1899. </div>
  1900. <!-- <div
  1901. class="works"
  1902. style="
  1903. width: 200px;
  1904. height: 140px;
  1905. border-radius: 10px;
  1906. box-shadow: 0 0 6px 1px #dfdada;
  1907. overflow: hidden;
  1908. "
  1909. v-for="(w, wIndex) in workStudent[toolIndex]"
  1910. :key="wIndex"
  1911. >
  1912. <div class="workImg">
  1913. <img
  1914. src="../../assets/icon/works/noImg.png"
  1915. @click="
  1916. openTools(
  1917. 4,
  1918. toolIndex,
  1919. taskCount,
  1920. w.works,
  1921. w.sName
  1922. )
  1923. "
  1924. alt
  1925. />
  1926. </div>
  1927. <div class="worksName">
  1928. <div>{{ w.sName }}</div>
  1929. <div>{{ w.time }}</div>
  1930. </div>
  1931. </div> -->
  1932. </div>
  1933. </div>
  1934. <div
  1935. v-if="
  1936. tType &&
  1937. ((tType == 2 && sIsOpen == true) ||
  1938. tType == 1 ||
  1939. tType == 4) &&
  1940. tool.tool.indexOf(62) != -1
  1941. "
  1942. class="worksBox"
  1943. >
  1944. <div
  1945. class="zuoyeYulan"
  1946. v-if="
  1947. worksStudent.length &&
  1948. worksStudent[toolIndex].length > 0
  1949. "
  1950. >
  1951. <div class="worksTop">
  1952. <div>作业预览</div>
  1953. <div
  1954. class="corOpen"
  1955. @click="contract(toolIndex)"
  1956. v-if="
  1957. (isCloseList[toolIndex].isCloseBoolean) &&
  1958. isCloseList[toolIndex].isClose == 0
  1959. "
  1960. >
  1961. 折叠
  1962. </div>
  1963. <div
  1964. class="corOpen"
  1965. @click="contract(toolIndex)"
  1966. v-if="isCloseList[toolIndex].isClose == 1"
  1967. >
  1968. 展开
  1969. </div>
  1970. </div>
  1971. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1972. </div>
  1973. <div>
  1974. <div
  1975. :id="'tool-' + toolIndex"
  1976. :style="{
  1977. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  1978. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  1979. }"
  1980. class="worksDetailBox"
  1981. v-if="
  1982. worksStudent.length &&
  1983. worksStudent[toolIndex].length > 0
  1984. "
  1985. >
  1986. <div
  1987. v-for="(w, wIndex) in worksStudent[toolIndex]"
  1988. :key="wIndex"
  1989. class="isWorksName2"
  1990. @click="
  1991. openTools(
  1992. 62,
  1993. toolIndex,
  1994. taskCount,
  1995. w.works,
  1996. w.sName
  1997. )
  1998. "
  1999. >
  2000. {{ w.sName }}
  2001. <img
  2002. class="deleteImg deleteImg2"
  2003. src="../../assets/deleteworks.png"
  2004. v-if="
  2005. w.userid == userid || tType == 1 || tType == 4
  2006. "
  2007. @click.stop="deleteWorks(w.wid)"
  2008. alt
  2009. />
  2010. </div>
  2011. </div>
  2012. </div>
  2013. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2014. 未提交
  2015. </div>
  2016. <div
  2017. class="noWorksS"
  2018. v-if="noWorksS && noWorksS[toolIndex].length"
  2019. >
  2020. <div
  2021. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2022. :key="sIndex"
  2023. class="noWorksName"
  2024. >
  2025. <el-tooltip effect="dark" :content="s.student" placement="top">
  2026. <span>{{ s.student }}</span>
  2027. </el-tooltip>
  2028. </div>
  2029. </div>
  2030. </div>
  2031. <div
  2032. v-if="
  2033. tType &&
  2034. tType == 2 &&
  2035. !sIsOpen &&
  2036. tool.tool.indexOf(62) != -1
  2037. "
  2038. class="worksBox"
  2039. >
  2040. <div
  2041. class="zuoyeYulan"
  2042. v-if="workStudent[toolIndex].length > 0"
  2043. >
  2044. <span class="worksTitle">作业预览</span>
  2045. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2046. </div>
  2047. <div
  2048. class="worksDetailBox"
  2049. v-if="workStudent[toolIndex].length > 0"
  2050. >
  2051. <div
  2052. class="isWorksName2"
  2053. v-for="(w, wIndex) in workStudent[toolIndex]"
  2054. :key="wIndex"
  2055. @click="
  2056. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2057. "
  2058. >
  2059. {{ w.sName }}
  2060. <img
  2061. class="deleteImg deleteImg2"
  2062. src="../../assets/deleteworks.png"
  2063. v-if="w.userid == userid || tType == 1 || tType == 4"
  2064. @click.stop="deleteWorks(w.wid)"
  2065. alt
  2066. />
  2067. </div>
  2068. </div>
  2069. </div>
  2070. <div
  2071. v-if="
  2072. tType &&
  2073. tType == 2 &&
  2074. !sIsOpen &&
  2075. tool.tool.indexOf(45) != -1
  2076. "
  2077. class="worksBox"
  2078. >
  2079. <div
  2080. class="zuoyeYulan"
  2081. v-if="workStudent[toolIndex].length > 0"
  2082. >
  2083. <span class="worksTitle">作业预览</span>
  2084. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2085. </div>
  2086. <div
  2087. class="worksDetailBox"
  2088. v-if="workStudent[toolIndex].length > 0"
  2089. >
  2090. <div
  2091. class="isWorksName2"
  2092. v-for="(w, wIndex) in workStudent[toolIndex]"
  2093. :key="wIndex"
  2094. @click="
  2095. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2096. "
  2097. >
  2098. {{ w.sName }}
  2099. <img
  2100. class="deleteImg deleteImg2"
  2101. src="../../assets/deleteworks.png"
  2102. v-if="w.userid == userid || tType == 1 || tType == 4"
  2103. @click.stop="deleteWorks(w.wid)"
  2104. alt
  2105. />
  2106. </div>
  2107. </div>
  2108. </div>
  2109. <div
  2110. v-if="
  2111. tType &&
  2112. tType == 2 &&
  2113. !sIsOpen &&
  2114. tool.tool.indexOf(69) != -1
  2115. "
  2116. class="worksBox"
  2117. >
  2118. <div
  2119. class="zuoyeYulan"
  2120. v-if="workStudent[toolIndex].length > 0"
  2121. >
  2122. <span class="worksTitle">作业预览</span>
  2123. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2124. </div>
  2125. <div
  2126. class="worksDetailBox"
  2127. v-if="workStudent[toolIndex].length > 0"
  2128. >
  2129. <div
  2130. class="isWorksName2"
  2131. v-for="(w, wIndex) in workStudent[toolIndex]"
  2132. :key="wIndex"
  2133. @click="
  2134. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2135. "
  2136. >
  2137. {{ w.sName }}
  2138. <img
  2139. class="deleteImg deleteImg2"
  2140. src="../../assets/deleteworks.png"
  2141. v-if="w.userid == userid || tType == 1 || tType == 4"
  2142. @click.stop="deleteWorks(w.wid)"
  2143. alt
  2144. />
  2145. </div>
  2146. </div>
  2147. </div>
  2148. <div
  2149. v-if="
  2150. tType &&
  2151. tType == 2 &&
  2152. !sIsOpen &&
  2153. tool.tool.indexOf(15) != -1
  2154. "
  2155. class="worksBox"
  2156. >
  2157. <div
  2158. class="zuoyeYulan"
  2159. v-if="workStudent[toolIndex].length > 0"
  2160. >
  2161. <span class="worksTitle">作业预览</span>
  2162. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2163. </div>
  2164. <div
  2165. class="worksDetailBox"
  2166. v-if="workStudent[toolIndex].length > 0"
  2167. >
  2168. <div
  2169. class="works"
  2170. v-for="(w, wIndex) in workStudent[toolIndex]"
  2171. :key="wIndex"
  2172. >
  2173. <div class="workImg">
  2174. <!-- <img
  2175. src="../../assets/icon/works/noImg.png"
  2176. @click="openTools(15, toolIndex, taskCount, w.works)"
  2177. alt=""
  2178. />-->
  2179. <div class="answerBg">
  2180. <!-- <div>{{ w.sName }}</div> -->
  2181. <el-tooltip
  2182. class="item"
  2183. effect="light"
  2184. :content="JSON.parse(w.works)[0].answer"
  2185. placement="top"
  2186. >
  2187. <div class="answerContent">
  2188. {{ JSON.parse(w.works)[0].answer }}
  2189. </div>
  2190. </el-tooltip>
  2191. <div
  2192. class="answerScore"
  2193. v-if="w.score"
  2194. @click.stop="openScore(w)"
  2195. :class="{
  2196. rightW:
  2197. w.userid == userid ||
  2198. tType == 1 ||
  2199. tType == 4,
  2200. }"
  2201. >
  2202. {{ JSON.parse(w.score).wScore }}分
  2203. </div>
  2204. <div
  2205. class="answerScore"
  2206. @click.stop="openScore(w)"
  2207. v-else-if="courseDetail.userid == userid"
  2208. :class="{
  2209. rightW:
  2210. w.userid == userid ||
  2211. tType == 1 ||
  2212. tType == 4,
  2213. }"
  2214. >
  2215. 评分
  2216. </div>
  2217. <img
  2218. class="deleteImg"
  2219. src="../../assets/deleteworks.png"
  2220. v-if="
  2221. w.userid == userid || tType == 1 || tType == 4
  2222. "
  2223. @click.stop="deleteWorks(w.wid)"
  2224. alt
  2225. />
  2226. </div>
  2227. <div class="comment">
  2228. <div class="worksName">
  2229. <div>{{ w.sName }}</div>
  2230. </div>
  2231. </div>
  2232. </div>
  2233. </div>
  2234. </div>
  2235. </div>
  2236. <div
  2237. v-if="
  2238. tType &&
  2239. tType == 2 &&
  2240. !sIsOpen &&
  2241. tool.tool.indexOf(1) != -1
  2242. "
  2243. class="worksBox"
  2244. >
  2245. <div
  2246. class="zuoyeYulan"
  2247. v-if="workStudent[toolIndex].length > 0"
  2248. >
  2249. <span class="worksTitle">作业预览</span>
  2250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2251. </div>
  2252. <div
  2253. class="worksDetailBox"
  2254. v-if="workStudent[toolIndex].length > 0"
  2255. >
  2256. <div
  2257. class="works"
  2258. style="
  2259. width: 200px;
  2260. height: 140px;
  2261. margin: 10px 10px 10px 0;
  2262. box-shadow: 0 0 6px 1px #dfdada;
  2263. "
  2264. v-for="(w, wIndex) in workStudent[toolIndex]"
  2265. :key="wIndex"
  2266. >
  2267. <div class="workImg">
  2268. <img
  2269. :src="w.works"
  2270. @click="previewImg(w.works,w)"
  2271. alt
  2272. />
  2273. <div
  2274. class="answerScore"
  2275. v-if="w.score"
  2276. @click.stop="openScore(w)"
  2277. :class="{
  2278. rightW:
  2279. w.userid == userid || tType == 1 || tType == 4,
  2280. }"
  2281. >
  2282. {{ JSON.parse(w.score).wScore }}分
  2283. </div>
  2284. <div
  2285. class="answerScore"
  2286. @click.stop="openScore(w)"
  2287. v-else-if="courseDetail.userid == userid"
  2288. :class="{
  2289. rightW:
  2290. w.userid == userid || tType == 1 || tType == 4,
  2291. }"
  2292. >
  2293. 评分
  2294. </div>
  2295. <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))">
  2296. <el-popover
  2297. placement="top"
  2298. width="318"
  2299. trigger="hover"
  2300. >
  2301. <markScore
  2302. :loading="AIloading[toolIndex][wIndex].loading"
  2303. :markScoreVisible="markScoreVisible"
  2304. :ref="`markSco${toolIndex}${wIndex}`"
  2305. @updateLoading=updateLoading
  2306. @updateDocSco=updateDocSco
  2307. @refreshOther=refreshOther
  2308. @markScoreDig=markScoreDig
  2309. :tool="tool"
  2310. :wIndex="wIndex"
  2311. :scoCon="w"
  2312. :toolIndex="toolIndex"
  2313. :key="refreshKey"
  2314. :stage="courseType"
  2315. :task="taskCount"
  2316. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2317. >
  2318. </markScore>
  2319. <div
  2320. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2321. slot="reference"
  2322. >
  2323. <span v-if="AIloading[toolIndex][wIndex].sco">
  2324. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2325. </span>
  2326. <span v-else>
  2327. 评分
  2328. </span>
  2329. </div>
  2330. </el-popover>
  2331. </div>
  2332. <img
  2333. class="deleteImg"
  2334. src="../../assets/deleteworks.png"
  2335. v-if="
  2336. w.userid == userid || tType == 1 || tType == 4
  2337. "
  2338. @click.stop="deleteWorks(w.wid)"
  2339. alt
  2340. />
  2341. </div>
  2342. <div class="worksName">
  2343. <div>{{ w.sName }}</div>
  2344. </div>
  2345. </div>
  2346. </div>
  2347. </div>
  2348. <div
  2349. v-if="
  2350. tType &&
  2351. tType == 2 &&
  2352. !sIsOpen &&
  2353. tool.tool.indexOf(3) != -1
  2354. "
  2355. class="worksBox"
  2356. >
  2357. <div
  2358. class="zuoyeYulan"
  2359. v-if="workStudent[toolIndex].length > 0"
  2360. >
  2361. <span class="worksTitle">作业预览</span>
  2362. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2363. </div>
  2364. <div
  2365. class="worksDetailBox"
  2366. v-if="workStudent[toolIndex].length > 0"
  2367. >
  2368. <div
  2369. class="works"
  2370. style="
  2371. width: 200px;
  2372. height: 140px;
  2373. margin: 10px 10px 10px 0;
  2374. box-shadow: 0 0 6px 1px #dfdada;
  2375. "
  2376. v-for="(w, wIndex) in workStudent[toolIndex]"
  2377. :key="wIndex"
  2378. >
  2379. <div class="workImg">
  2380. <img
  2381. :src="w.works"
  2382. @click="previewImg(w.works,w)"
  2383. alt
  2384. />
  2385. <div
  2386. class="answerScore"
  2387. v-if="w.score"
  2388. @click.stop="openScore(w)"
  2389. :class="{
  2390. rightW:
  2391. w.userid == userid || tType == 1 || tType == 4,
  2392. }"
  2393. >
  2394. {{ JSON.parse(w.score).wScore }}分
  2395. </div>
  2396. <div
  2397. class="answerScore"
  2398. @click.stop="openScore(w)"
  2399. v-else-if="courseDetail.userid == userid"
  2400. :class="{
  2401. rightW:
  2402. w.userid == userid || tType == 1 || tType == 4,
  2403. }"
  2404. >
  2405. 评分
  2406. </div>
  2407. <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))">
  2408. <el-popover
  2409. placement="top"
  2410. width="318"
  2411. trigger="hover"
  2412. >
  2413. <markScore
  2414. :loading="AIloading[toolIndex][wIndex].loading"
  2415. :markScoreVisible="markScoreVisible"
  2416. :ref="`markSco${toolIndex}${wIndex}`"
  2417. @updateLoading=updateLoading
  2418. @updateDocSco=updateDocSco
  2419. @refreshOther=refreshOther
  2420. @markScoreDig=markScoreDig
  2421. :tool="tool"
  2422. :wIndex="wIndex"
  2423. :scoCon="w"
  2424. :toolIndex="toolIndex"
  2425. :key="refreshKey"
  2426. :stage="courseType"
  2427. :task="taskCount"
  2428. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2429. >
  2430. </markScore>
  2431. <div
  2432. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2433. slot="reference"
  2434. >
  2435. <span v-if="AIloading[toolIndex][wIndex].sco">
  2436. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2437. </span>
  2438. <span v-else>
  2439. 评分
  2440. </span>
  2441. </div>
  2442. </el-popover>
  2443. </div>
  2444. <img
  2445. class="deleteImg"
  2446. src="../../assets/deleteworks.png"
  2447. v-if="
  2448. w.userid == userid || tType == 1 || tType == 4
  2449. "
  2450. @click.stop="deleteWorks(w.wid)"
  2451. alt
  2452. />
  2453. </div>
  2454. <div class="worksName">
  2455. <div>{{ w.sName }}</div>
  2456. </div>
  2457. </div>
  2458. </div>
  2459. </div>
  2460. <div
  2461. v-if="
  2462. tType &&
  2463. tType == 2 &&
  2464. !sIsOpen &&
  2465. tool.tool.indexOf(6) != -1
  2466. "
  2467. class="worksBox"
  2468. >
  2469. <div
  2470. class="zuoyeYulan"
  2471. v-if="workStudent[toolIndex].length > 0"
  2472. >
  2473. <span class="worksTitle">作业预览</span>
  2474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2475. </div>
  2476. <div
  2477. class="worksDetailBox"
  2478. v-if="workStudent[toolIndex].length > 0"
  2479. >
  2480. <div
  2481. class="works"
  2482. style="
  2483. width: 200px;
  2484. height: 140px;
  2485. margin: 10px 10px 10px 0;
  2486. box-shadow: 0 0 6px 1px #dfdada;
  2487. "
  2488. v-for="(w, wIndex) in workStudent[toolIndex]"
  2489. :key="wIndex"
  2490. >
  2491. <div class="workImg">
  2492. <img
  2493. :src="w.works"
  2494. @click="previewImg(w.works,w)"
  2495. alt
  2496. />
  2497. <div
  2498. class="answerScore"
  2499. v-if="w.score"
  2500. @click.stop="openScore(w)"
  2501. :class="{
  2502. rightW:
  2503. w.userid == userid || tType == 1 || tType == 4,
  2504. }"
  2505. >
  2506. {{ JSON.parse(w.score).wScore }}分
  2507. </div>
  2508. <div
  2509. class="answerScore"
  2510. @click.stop="openScore(w)"
  2511. v-else-if="courseDetail.userid == userid"
  2512. :class="{
  2513. rightW:
  2514. w.userid == userid || tType == 1 || tType == 4,
  2515. }"
  2516. >
  2517. 评分
  2518. </div>
  2519. <img
  2520. class="deleteImg"
  2521. src="../../assets/deleteworks.png"
  2522. v-if="
  2523. w.userid == userid || tType == 1 || tType == 4
  2524. "
  2525. @click.stop="deleteWorks(w.wid)"
  2526. alt
  2527. />
  2528. </div>
  2529. <div class="worksName">
  2530. <div>{{ w.sName }}</div>
  2531. </div>
  2532. </div>
  2533. </div>
  2534. </div>
  2535. <div
  2536. v-if="
  2537. tType &&
  2538. tType == 2 &&
  2539. !sIsOpen &&
  2540. tool.tool.indexOf(7) != -1
  2541. "
  2542. class="worksBox"
  2543. >
  2544. <div
  2545. class="zuoyeYulan"
  2546. v-if="workStudent[toolIndex].length > 0"
  2547. >
  2548. <span class="worksTitle">作业预览</span>
  2549. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2550. </div>
  2551. <div
  2552. class="worksDetailBox"
  2553. v-if="workStudent[toolIndex].length > 0"
  2554. >
  2555. <div
  2556. class="works"
  2557. style="
  2558. width: 200px;
  2559. height: 140px;
  2560. margin: 10px 10px 10px 0;
  2561. box-shadow: 0 0 6px 1px #dfdada;
  2562. "
  2563. v-for="(w, wIndex) in workStudent[toolIndex]"
  2564. :key="wIndex"
  2565. >
  2566. <div class="workImg">
  2567. <img
  2568. :src="w.works"
  2569. @click="previewImg(w.works,w)"
  2570. alt
  2571. />
  2572. <div
  2573. class="answerScore"
  2574. v-if="w.score"
  2575. @click.stop="openScore(w)"
  2576. :class="{
  2577. rightW:
  2578. w.userid == userid || tType == 1 || tType == 4,
  2579. }"
  2580. >
  2581. {{ JSON.parse(w.score).wScore }}分
  2582. </div>
  2583. <div
  2584. class="answerScore"
  2585. @click.stop="openScore(w)"
  2586. v-else-if="courseDetail.userid == userid"
  2587. :class="{
  2588. rightW:
  2589. w.userid == userid || tType == 1 || tType == 4,
  2590. }"
  2591. >
  2592. 评分
  2593. </div>
  2594. <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))">
  2595. <el-popover
  2596. placement="top"
  2597. width="318"
  2598. trigger="hover"
  2599. >
  2600. <markScore
  2601. :loading="AIloading[toolIndex][wIndex].loading"
  2602. :markScoreVisible="markScoreVisible"
  2603. :ref="`markSco${toolIndex}${wIndex}`"
  2604. @updateLoading=updateLoading
  2605. @updateDocSco=updateDocSco
  2606. @refreshOther=refreshOther
  2607. @markScoreDig=markScoreDig
  2608. :tool="tool"
  2609. :wIndex="wIndex"
  2610. :scoCon="w"
  2611. :toolIndex="toolIndex"
  2612. :key="refreshKey"
  2613. :stage="courseType"
  2614. :task="taskCount"
  2615. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  2616. >
  2617. </markScore>
  2618. <div
  2619. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  2620. slot="reference"
  2621. >
  2622. <span v-if="AIloading[toolIndex][wIndex].sco">
  2623. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2624. </span>
  2625. <span v-else>
  2626. 评分
  2627. </span>
  2628. </div>
  2629. </el-popover>
  2630. </div>
  2631. <img
  2632. class="deleteImg"
  2633. src="../../assets/deleteworks.png"
  2634. v-if="
  2635. w.userid == userid || tType == 1 || tType == 4
  2636. "
  2637. @click.stop="deleteWorks(w.wid)"
  2638. alt
  2639. />
  2640. </div>
  2641. <div class="worksName">
  2642. <div>{{ w.sName }}</div>
  2643. </div>
  2644. </div>
  2645. </div>
  2646. </div>
  2647. <div
  2648. v-if="
  2649. tType &&
  2650. tType == 2 &&
  2651. !sIsOpen &&
  2652. tool.tool.indexOf(26) != -1
  2653. "
  2654. class="worksBox"
  2655. >
  2656. <div
  2657. class="zuoyeYulan"
  2658. v-if="workStudent[toolIndex].length > 0"
  2659. >
  2660. <span class="worksTitle">作业预览</span>
  2661. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2662. </div>
  2663. <div
  2664. class="worksDetailBox"
  2665. v-if="workStudent[toolIndex].length > 0"
  2666. >
  2667. <div
  2668. class="works"
  2669. style="
  2670. width: 200px;
  2671. height: 140px;
  2672. margin: 10px 10px 10px 0;
  2673. box-shadow: 0 0 6px 1px #dfdada;
  2674. "
  2675. v-for="(w, wIndex) in workStudent[toolIndex]"
  2676. :key="wIndex"
  2677. >
  2678. <div class="workImg">
  2679. <img
  2680. :src="w.works"
  2681. @click="previewImg(w.works,w)"
  2682. alt
  2683. />
  2684. <img
  2685. class="deleteImg"
  2686. src="../../assets/deleteworks.png"
  2687. v-if="
  2688. w.userid == userid || tType == 1 || tType == 4
  2689. "
  2690. @click.stop="deleteWorks(w.wid)"
  2691. alt
  2692. />
  2693. </div>
  2694. <div class="worksName">
  2695. <div>{{ w.sName }}</div>
  2696. </div>
  2697. </div>
  2698. </div>
  2699. </div>
  2700. <div
  2701. v-if="
  2702. tType &&
  2703. ((tType == 2 && sIsOpen == true) ||
  2704. tType == 1 ||
  2705. tType == 4) &&
  2706. tool.tool.indexOf(16) != -1
  2707. "
  2708. class="worksBox"
  2709. >
  2710. <div
  2711. class="zuoyeYulan"
  2712. style="display: flex;justify-content: space-between;align-items: center;"
  2713. v-if="
  2714. (worksStudent.length &&
  2715. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  2716. "
  2717. >
  2718. <div class="worksTop">
  2719. <div>作业预览</div>
  2720. <div
  2721. class="corOpen"
  2722. @click="contract(toolIndex)"
  2723. v-if="
  2724. (isCloseList[toolIndex].isCloseBoolean) &&
  2725. isCloseList[toolIndex].isClose == 0
  2726. "
  2727. >
  2728. 折叠
  2729. </div>
  2730. <div
  2731. class="corOpen"
  2732. @click="contract(toolIndex)"
  2733. v-if="isCloseList[toolIndex].isClose == 1"
  2734. >
  2735. 展开
  2736. </div>
  2737. </div>
  2738. <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">
  2739. <!-- <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"> -->
  2740. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  2741. 一键重置
  2742. </div>
  2743. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  2744. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2745. AI评分
  2746. </div>
  2747. <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]
  2748. .taskDetail,tool)" >
  2749. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2750. AI评分
  2751. </div>
  2752. <div class="ScoreBtn" v-else >
  2753. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  2754. 正在评分
  2755. </div>
  2756. </div>
  2757. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2758. </div>
  2759. <div
  2760. class="group_workBox"
  2761. v-for="(g, gindex) in courseGroup.group"
  2762. :key="gindex"
  2763. >
  2764. <div class="group_box">
  2765. <div class="group_title">
  2766. <el-tooltip
  2767. class="item"
  2768. effect="light"
  2769. :content="g.name"
  2770. placement="top"
  2771. >
  2772. <div class="group_name">{{ g.name }}</div>
  2773. </el-tooltip>
  2774. </div>
  2775. <div
  2776. class="group_work"
  2777. v-if="
  2778. g.works &&
  2779. g.works.length &&
  2780. g.works[toolIndex].length
  2781. "
  2782. >
  2783. <div
  2784. class="works"
  2785. style="
  2786. width: 200px;
  2787. height: 140px;
  2788. margin: 10px 10px 10px 0;
  2789. border-radius: 15px;
  2790. box-shadow: 0 0 6px 1px #dfdada;
  2791. "
  2792. v-for="(w, wIndex) in g.works[toolIndex]"
  2793. :key="wIndex"
  2794. :class="w.type == 1 ? 'isTypeOne' : ''"
  2795. >
  2796. <div class="workImg" v-if="w.type == 0">
  2797. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  2798. <img
  2799. :src="w.works"
  2800. @click="previewImg(w.works,w)"
  2801. alt
  2802. />
  2803. <div
  2804. class="answerScore"
  2805. v-if="w.score"
  2806. @click.stop="openScore(w)"
  2807. :class="{
  2808. rightW:
  2809. w.userid == userid ||
  2810. tType == 1 ||
  2811. tType == 4 ||
  2812. w.ateacher == userid,
  2813. }"
  2814. >
  2815. {{ JSON.parse(w.score).wScore }}分
  2816. </div>
  2817. <div
  2818. class="answerScore"
  2819. @click.stop="openScore(w)"
  2820. v-else-if="courseDetail.userid == userid"
  2821. :class="{
  2822. rightW:
  2823. w.userid == userid ||
  2824. tType == 1 ||
  2825. tType == 4 ||
  2826. w.ateacher == userid,
  2827. }"
  2828. >
  2829. 评分
  2830. </div>
  2831. <img
  2832. class="deleteImg"
  2833. src="../../assets/deleteworks.png"
  2834. v-if="
  2835. w.userid == userid || tType == 1 || tType == 4
  2836. "
  2837. @click.stop="deleteWorks(w.wid)"
  2838. alt
  2839. />
  2840. </div>
  2841. <div class="workImg" v-if="w.type == 1">
  2842. <img :src="word" @click="openFile(w.works)" alt />
  2843. <!-- @click="openFile(w.works)" -->
  2844. <div
  2845. class="answerScore"
  2846. v-if="w.score"
  2847. @click.stop="openScore(w)"
  2848. :class="{
  2849. rightW:
  2850. w.userid == userid ||
  2851. tType == 1 ||
  2852. tType == 4 ||
  2853. w.ateacher == userid,
  2854. }"
  2855. >
  2856. {{ JSON.parse(w.score).wScore }}分
  2857. </div>
  2858. <div
  2859. class="answerScore"
  2860. @click.stop="openScore(w)"
  2861. v-else-if="courseDetail.userid == userid"
  2862. :class="{
  2863. rightW:
  2864. w.userid == userid ||
  2865. tType == 1 ||
  2866. tType == 4 ||
  2867. w.ateacher == userid,
  2868. }"
  2869. >
  2870. 评分
  2871. </div>
  2872. <img
  2873. class="deleteImg"
  2874. src="../../assets/deleteworks.png"
  2875. v-if="
  2876. w.userid == userid || tType == 1 || tType == 4
  2877. "
  2878. @click.stop="deleteWorks(w.wid)"
  2879. alt
  2880. />
  2881. </div>
  2882. <div class="workImg" v-if="w.type == 3">
  2883. <img
  2884. style="cursor: pointer"
  2885. :src="video"
  2886. @click="openVideo(w)"
  2887. alt
  2888. />
  2889. <!-- @click="openVideo(w.works)" -->
  2890. <div
  2891. class="answerScore"
  2892. v-if="w.score"
  2893. @click.stop="openScore(w)"
  2894. :class="{
  2895. rightW:
  2896. w.userid == userid ||
  2897. tType == 1 ||
  2898. tType == 4 ||
  2899. w.ateacher == userid,
  2900. }"
  2901. >
  2902. {{ JSON.parse(w.score).wScore }}分
  2903. </div>
  2904. <div
  2905. class="answerScore"
  2906. @click.stop="openScore(w)"
  2907. v-else-if="courseDetail.userid == userid"
  2908. :class="{
  2909. rightW:
  2910. w.userid == userid ||
  2911. tType == 1 ||
  2912. tType == 4 ||
  2913. w.ateacher == userid,
  2914. }"
  2915. >
  2916. 评分
  2917. </div>
  2918. <img
  2919. class="deleteImg"
  2920. src="../../assets/deleteworks.png"
  2921. v-if="
  2922. w.userid == userid || tType == 1 || tType == 4
  2923. "
  2924. @click.stop="deleteWorks(w.wid)"
  2925. alt
  2926. />
  2927. </div>
  2928. <div class="workImg" v-if="w.type == 12">
  2929. <img
  2930. style="cursor: pointer"
  2931. :src="word2"
  2932. @click="downloadFile(w.works)"
  2933. alt
  2934. />
  2935. <!-- @click="openVideo(w.works)" -->
  2936. <div
  2937. class="answerScore"
  2938. v-if="w.score"
  2939. @click.stop="openScore(w)"
  2940. :class="{
  2941. rightW:
  2942. w.userid == userid ||
  2943. tType == 1 ||
  2944. tType == 4 ||
  2945. w.ateacher == userid,
  2946. }"
  2947. >
  2948. {{ JSON.parse(w.score).wScore }}分
  2949. </div>
  2950. <div
  2951. class="answerScore"
  2952. @click.stop="openScore(w)"
  2953. v-else-if="courseDetail.userid == userid"
  2954. :class="{
  2955. rightW:
  2956. w.userid == userid ||
  2957. tType == 1 ||
  2958. tType == 4 ||
  2959. w.ateacher == userid,
  2960. }"
  2961. >
  2962. 评分
  2963. </div>
  2964. <img
  2965. class="deleteImg"
  2966. src="../../assets/deleteworks.png"
  2967. v-if="
  2968. w.userid == userid || tType == 1 || tType == 4
  2969. "
  2970. @click.stop="deleteWorks(w.wid)"
  2971. alt
  2972. />
  2973. </div>
  2974. <div class="comment" style="min-width: 200px">
  2975. <div class="worksName">
  2976. <div>{{ w.sName }}</div>
  2977. </div>
  2978. <div class="commentList">
  2979. <div class="commentList">
  2980. <div
  2981. class="commentImg"
  2982. @click="
  2983. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  2984. "
  2985. >
  2986. <img
  2987. :src="w.isLikes == true ? likes : noLikes"
  2988. alt=""
  2989. />
  2990. </div>
  2991. <div>{{ w.likesCount }}</div>
  2992. </div>
  2993. <div
  2994. class="commentList"
  2995. style="margin-right: 15px"
  2996. >
  2997. <div
  2998. class="commentImg"
  2999. @click="
  3000. commentOther(
  3001. w,
  3002. toolIndex,
  3003. wIndex,
  3004. null,
  3005. g.id
  3006. )
  3007. "
  3008. >
  3009. <img
  3010. src="../../assets/icon/comment/comment.png"
  3011. alt=""
  3012. />
  3013. </div>
  3014. <div>{{ w.commentCount }}</div>
  3015. </div>
  3016. </div>
  3017. </div>
  3018. </div>
  3019. </div>
  3020. <div class="group_work" v-else>暂无提交作业</div>
  3021. </div>
  3022. </div>
  3023. <div
  3024. :id="'tool-' + toolIndex"
  3025. :style="{
  3026. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3027. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3028. }"
  3029. class="worksDetailBox"
  3030. v-if="
  3031. worksStudent.length &&
  3032. worksStudent[toolIndex].length > 0
  3033. "
  3034. >
  3035. <div
  3036. class="works"
  3037. style="
  3038. width: 200px;
  3039. height: 140px;
  3040. margin: 10px 10px 10px 0;
  3041. border-radius: 15px;
  3042. box-shadow: 0 0 6px 1px #dfdada;
  3043. "
  3044. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3045. :key="wIndex"
  3046. :class="w.type == 1 ? 'isTypeOne' : ''"
  3047. >
  3048. <div class="workImg" v-if="w.type == 0">
  3049. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3050. <img
  3051. :src="w.works"
  3052. @click="previewImg(w.works,w)"
  3053. alt
  3054. />
  3055. <div
  3056. class="answerScore"
  3057. v-if="w.score"
  3058. @click.stop="openScore(w)"
  3059. :class="{
  3060. rightW:
  3061. w.userid == userid ||
  3062. tType == 1 ||
  3063. tType == 4 ||
  3064. w.ateacher == userid,
  3065. }"
  3066. >
  3067. {{ JSON.parse(w.score).wScore }}分
  3068. </div>
  3069. <div
  3070. class="answerScore"
  3071. @click.stop="openScore(w)"
  3072. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3073. :class="{
  3074. rightW:
  3075. w.userid == userid ||
  3076. tType == 1 ||
  3077. tType == 4 ||
  3078. w.ateacher == userid,
  3079. }"
  3080. >
  3081. 评分
  3082. </div>
  3083. <!-- <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"> -->
  3084. <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))">
  3085. <el-popover
  3086. placement="top"
  3087. width="318"
  3088. :disabled="AIloading[toolIndex][wIndex].loading"
  3089. trigger="hover"
  3090. >
  3091. <markScore
  3092. :loading="AIloading[toolIndex][wIndex].loading"
  3093. :markScoreVisible="markScoreVisible"
  3094. :ref="`markSco${toolIndex}${wIndex}`"
  3095. @updateLoading=updateLoading
  3096. @updateDocSco=updateDocSco
  3097. @refreshOther=refreshOther
  3098. @markScoreDig=markScoreDig
  3099. :tool="tool"
  3100. :wIndex="wIndex"
  3101. :scoCon="w"
  3102. :toolIndex="toolIndex"
  3103. :key="refreshKey"
  3104. :stage="courseType"
  3105. :task="taskCount"
  3106. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3107. >
  3108. </markScore>
  3109. <div
  3110. class="answerScore"
  3111. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3112. slot="reference"
  3113. :class="{
  3114. rightW:
  3115. w.userid == userid ||
  3116. tType == 1 ||
  3117. tType == 4 ||
  3118. w.ateacher == userid,
  3119. }"
  3120. >
  3121. <span v-if="AIloading[toolIndex][wIndex].sco">
  3122. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3123. </span>
  3124. <span v-else>
  3125. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3126. </span>
  3127. </div>
  3128. </el-popover>
  3129. </div>
  3130. <img
  3131. class="deleteImg"
  3132. src="../../assets/deleteworks.png"
  3133. v-if="
  3134. w.userid == userid || tType == 1 || tType == 4
  3135. "
  3136. @click.stop="deleteWorks(w.wid)"
  3137. alt
  3138. />
  3139. </div>
  3140. <div class="workImg" v-if="w.type == 1">
  3141. <img :src="word" @click="openFile(w.works)" alt />
  3142. <!-- @click="openFile(w.works)" -->
  3143. <div
  3144. class="answerScore"
  3145. v-if="w.score"
  3146. @click.stop="openScore(w)"
  3147. :class="{
  3148. rightW:
  3149. w.userid == userid ||
  3150. tType == 1 ||
  3151. tType == 4 ||
  3152. w.ateacher == userid,
  3153. }"
  3154. >
  3155. {{ JSON.parse(w.score).wScore }}分
  3156. </div>
  3157. <div
  3158. class="answerScore"
  3159. @click.stop="openScore(w)"
  3160. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3161. :class="{
  3162. rightW:
  3163. w.userid == userid ||
  3164. tType == 1 ||
  3165. tType == 4 ||
  3166. w.ateacher == userid,
  3167. }"
  3168. >
  3169. 评分
  3170. </div>
  3171. <!-- <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"> -->
  3172. <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))">
  3173. <el-popover
  3174. placement="top"
  3175. width="318"
  3176. :disabled="AIloading[toolIndex][wIndex].loading"
  3177. trigger="hover"
  3178. >
  3179. <markScore
  3180. :loading="AIloading[toolIndex][wIndex].loading"
  3181. :markScoreVisible="markScoreVisible"
  3182. :ref="`markSco${toolIndex}${wIndex}`"
  3183. @updateLoading=updateLoading
  3184. @updateDocSco=updateDocSco
  3185. @refreshOther=refreshOther
  3186. @markScoreDig=markScoreDig
  3187. :tool="tool"
  3188. :wIndex="wIndex"
  3189. :scoCon="w"
  3190. :toolIndex="toolIndex"
  3191. :key="refreshKey"
  3192. :stage="courseType"
  3193. :task="taskCount"
  3194. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3195. >
  3196. </markScore>
  3197. <div
  3198. class="answerScore"
  3199. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3200. slot="reference"
  3201. :class="{
  3202. rightW:
  3203. w.userid == userid ||
  3204. tType == 1 ||
  3205. tType == 4 ||
  3206. w.ateacher == userid,
  3207. }"
  3208. >
  3209. <span v-if="AIloading[toolIndex][wIndex].sco">
  3210. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3211. </span>
  3212. <span v-else>
  3213. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3214. </span>
  3215. </div>
  3216. </el-popover>
  3217. </div>
  3218. <img
  3219. class="deleteImg"
  3220. src="../../assets/deleteworks.png"
  3221. v-if="
  3222. w.userid == userid || tType == 1 || tType == 4
  3223. "
  3224. @click.stop="deleteWorks(w.wid)"
  3225. alt
  3226. />
  3227. </div>
  3228. <div class="workImg" v-if="w.type == 3">
  3229. <img
  3230. style="cursor: pointer"
  3231. :src="video"
  3232. @click="openVideo(w)"
  3233. alt
  3234. />
  3235. <!-- @click="openVideo(w.works)" -->
  3236. <div
  3237. class="answerScore"
  3238. v-if="w.score"
  3239. @click.stop="openScore(w)"
  3240. :class="{
  3241. rightW:
  3242. w.userid == userid ||
  3243. tType == 1 ||
  3244. tType == 4 ||
  3245. w.ateacher == userid,
  3246. }"
  3247. >
  3248. {{ JSON.parse(w.score).wScore }}分
  3249. </div>
  3250. <div
  3251. class="answerScore"
  3252. @click.stop="openScore(w)"
  3253. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3254. :class="{
  3255. rightW:
  3256. w.userid == userid ||
  3257. tType == 1 ||
  3258. tType == 4 ||
  3259. w.ateacher == userid,
  3260. }"
  3261. >
  3262. 评分
  3263. </div>
  3264. <!-- <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"> -->
  3265. <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))">
  3266. <el-popover
  3267. placement="top"
  3268. width="318"
  3269. :disabled="AIloading[toolIndex][wIndex].loading"
  3270. trigger="hover"
  3271. >
  3272. <markScore
  3273. :loading="AIloading[toolIndex][wIndex].loading"
  3274. :markScoreVisible="markScoreVisible"
  3275. :ref="`markSco${toolIndex}${wIndex}`"
  3276. @updateLoading=updateLoading
  3277. @updateDocSco=updateDocSco
  3278. @refreshOther=refreshOther
  3279. @markScoreDig=markScoreDig
  3280. :tool="tool"
  3281. :wIndex="wIndex"
  3282. :scoCon="w"
  3283. :toolIndex="toolIndex"
  3284. :key="refreshKey"
  3285. :stage="courseType"
  3286. :task="taskCount"
  3287. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3288. >
  3289. </markScore>
  3290. <div
  3291. class="answerScore"
  3292. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3293. slot="reference"
  3294. :class="{
  3295. rightW:
  3296. w.userid == userid ||
  3297. tType == 1 ||
  3298. tType == 4 ||
  3299. w.ateacher == userid,
  3300. }"
  3301. >
  3302. <span v-if="AIloading[toolIndex][wIndex].sco">
  3303. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3304. </span>
  3305. <span v-else>
  3306. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3307. </span>
  3308. </div>
  3309. </el-popover>
  3310. </div>
  3311. <img
  3312. class="deleteImg"
  3313. src="../../assets/deleteworks.png"
  3314. v-if="
  3315. w.userid == userid || tType == 1 || tType == 4
  3316. "
  3317. @click.stop="deleteWorks(w.wid)"
  3318. alt
  3319. />
  3320. </div>
  3321. <div class="workImg" v-if="w.type == 12">
  3322. <img
  3323. style="cursor: pointer"
  3324. :src="word2"
  3325. @click="downloadFile(w.works)"
  3326. alt
  3327. />
  3328. <!-- @click="openVideo(w.works)" -->
  3329. <div
  3330. class="answerScore"
  3331. v-if="w.score"
  3332. @click.stop="openScore(w)"
  3333. :class="{
  3334. rightW:
  3335. w.userid == userid ||
  3336. tType == 1 ||
  3337. tType == 4 ||
  3338. w.ateacher == userid,
  3339. }"
  3340. >
  3341. {{ JSON.parse(w.score).wScore }}分
  3342. </div>
  3343. <div
  3344. class="answerScore"
  3345. @click.stop="openScore(w)"
  3346. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3347. :class="{
  3348. rightW:
  3349. w.userid == userid ||
  3350. tType == 1 ||
  3351. tType == 4 ||
  3352. w.ateacher == userid,
  3353. }"
  3354. >
  3355. 评分
  3356. </div>
  3357. <!-- <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"> -->
  3358. <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))">
  3359. <el-popover
  3360. placement="top"
  3361. width="318"
  3362. :disabled="AIloading[toolIndex][wIndex].loading"
  3363. trigger="hover"
  3364. >
  3365. <markScore
  3366. :loading="AIloading[toolIndex][wIndex].loading"
  3367. :markScoreVisible="markScoreVisible"
  3368. :ref="`markSco${toolIndex}${wIndex}`"
  3369. @updateLoading=updateLoading
  3370. @updateDocSco=updateDocSco
  3371. @refreshOther=refreshOther
  3372. @markScoreDig=markScoreDig
  3373. :tool="tool"
  3374. :wIndex="wIndex"
  3375. :scoCon="w"
  3376. :toolIndex="toolIndex"
  3377. :key="refreshKey"
  3378. :stage="courseType"
  3379. :task="taskCount"
  3380. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3381. >
  3382. </markScore>
  3383. <div
  3384. class="answerScore"
  3385. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3386. slot="reference"
  3387. :class="{
  3388. rightW:
  3389. w.userid == userid ||
  3390. tType == 1 ||
  3391. tType == 4 ||
  3392. w.ateacher == userid,
  3393. }"
  3394. >
  3395. <span v-if="AIloading[toolIndex][wIndex].sco">
  3396. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3397. </span>
  3398. <span v-else>
  3399. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3400. </span>
  3401. </div>
  3402. </el-popover>
  3403. </div>
  3404. <img
  3405. class="deleteImg"
  3406. src="../../assets/deleteworks.png"
  3407. v-if="
  3408. w.userid == userid || tType == 1 || tType == 4
  3409. "
  3410. @click.stop="deleteWorks(w.wid)"
  3411. alt
  3412. />
  3413. </div>
  3414. <div class="comment" style="min-width: 200px">
  3415. <div class="worksName">
  3416. <div>{{ w.sName }}</div>
  3417. </div>
  3418. <div class="commentList">
  3419. <div class="commentList">
  3420. <div
  3421. class="commentImg"
  3422. @click="
  3423. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3424. "
  3425. >
  3426. <img
  3427. :src="w.isLikes == true ? likes : noLikes"
  3428. alt=""
  3429. />
  3430. </div>
  3431. <div>{{ w.likesCount }}</div>
  3432. </div>
  3433. <div class="commentList" style="margin-right: 15px">
  3434. <div
  3435. class="commentImg"
  3436. @click="commentOther(w, toolIndex, wIndex)"
  3437. >
  3438. <img
  3439. src="../../assets/icon/comment/comment.png"
  3440. alt=""
  3441. />
  3442. </div>
  3443. <div>{{ w.commentCount }}</div>
  3444. </div>
  3445. </div>
  3446. </div>
  3447. </div>
  3448. </div>
  3449. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3450. 未提交
  3451. </div>
  3452. <div
  3453. class="noWorksS"
  3454. v-if="noWorksS && noWorksS[toolIndex].length"
  3455. >
  3456. <div
  3457. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3458. :key="sIndex"
  3459. class="noWorksName"
  3460. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  3461. >
  3462. <el-tooltip effect="dark" :content="s.student" placement="top">
  3463. <span>{{ s.student }}</span>
  3464. </el-tooltip>
  3465. </div>
  3466. </div>
  3467. </div>
  3468. <div
  3469. v-if="
  3470. tType &&
  3471. ((tType == 2 && sIsOpen == true) ||
  3472. tType == 1 ||
  3473. tType == 4) &&
  3474. tool.tool.indexOf(70) != -1
  3475. "
  3476. class="worksBox"
  3477. >
  3478. <div
  3479. class="zuoyeYulan"
  3480. v-if="
  3481. (worksStudent.length &&
  3482. worksStudent[toolIndex].length > 0)
  3483. "
  3484. >
  3485. <div class="worksTop">
  3486. <div>作业预览</div>
  3487. <div
  3488. class="corOpen"
  3489. @click="contract(toolIndex)"
  3490. v-if="
  3491. (isCloseList[toolIndex].isCloseBoolean) &&
  3492. isCloseList[toolIndex].isClose == 0
  3493. "
  3494. >
  3495. 折叠
  3496. </div>
  3497. <div
  3498. class="corOpen"
  3499. @click="contract(toolIndex)"
  3500. v-if="isCloseList[toolIndex].isClose == 1"
  3501. >
  3502. 展开
  3503. </div>
  3504. </div>
  3505. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3506. </div>
  3507. <div
  3508. :id="'tool-' + toolIndex"
  3509. :style="{
  3510. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3511. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3512. }"
  3513. class="worksDetailBox"
  3514. v-if="
  3515. worksStudent.length &&
  3516. worksStudent[toolIndex].length > 0
  3517. "
  3518. >
  3519. <div
  3520. class="works"
  3521. style="
  3522. width: 200px;
  3523. height: 140px;
  3524. margin: 10px 10px 10px 0;
  3525. border-radius: 15px;
  3526. box-shadow: 0 0 6px 1px #dfdada;
  3527. "
  3528. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3529. :key="wIndex"
  3530. :class="w.type == 1 ? 'isTypeOne' : ''"
  3531. >
  3532. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3533. <img :src="word" alt />
  3534. <img
  3535. class="deleteImg"
  3536. src="../../assets/deleteworks.png"
  3537. v-if="
  3538. w.userid == userid || tType == 1 || tType == 4
  3539. "
  3540. @click.stop="deleteWorks(w.wid)"
  3541. alt
  3542. />
  3543. </div>
  3544. <div class="comment" style="min-width: 200px">
  3545. <div class="worksName">
  3546. <div>{{ w.sName }}</div>
  3547. </div>
  3548. </div>
  3549. </div>
  3550. </div>
  3551. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3552. 未提交
  3553. </div>
  3554. <div
  3555. class="noWorksS"
  3556. v-if="noWorksS && noWorksS[toolIndex].length"
  3557. >
  3558. <div
  3559. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3560. :key="sIndex"
  3561. class="noWorksName"
  3562. >
  3563. <el-tooltip effect="dark" :content="s.student" placement="top">
  3564. <span>{{ s.student }}</span>
  3565. </el-tooltip>
  3566. </div>
  3567. </div>
  3568. </div>
  3569. <div
  3570. v-if="
  3571. tType &&
  3572. tType == 2 &&
  3573. !sIsOpen &&
  3574. tool.tool.indexOf(70) != -1
  3575. "
  3576. class="worksBox"
  3577. >
  3578. <div
  3579. class="zuoyeYulan"
  3580. v-if="workStudent[toolIndex].length > 0"
  3581. >
  3582. <span class="worksTitle">作业预览</span>
  3583. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3584. </div>
  3585. <div
  3586. class="worksDetailBox"
  3587. v-if="workStudent[toolIndex].length > 0"
  3588. >
  3589. <div
  3590. class="works"
  3591. style="
  3592. width: 200px;
  3593. height: 140px;
  3594. margin: 10px 10px 10px 0;
  3595. box-shadow: 0 0 6px 1px #dfdada;
  3596. "
  3597. v-for="(w, wIndex) in workStudent[toolIndex]"
  3598. :key="wIndex"
  3599. >
  3600. <div class="workImg" @click.stop="openScore(w, toolIndex)">
  3601. <img :src="word" alt />
  3602. <img
  3603. class="deleteImg"
  3604. src="../../assets/deleteworks.png"
  3605. v-if="
  3606. w.userid == userid || tType == 1 || tType == 4
  3607. "
  3608. @click.stop="deleteWorks(w.wid)"
  3609. alt
  3610. />
  3611. </div>
  3612. <div class="worksName">
  3613. <div>{{ w.sName }}</div>
  3614. </div>
  3615. </div>
  3616. </div>
  3617. </div>
  3618. <div
  3619. v-if="
  3620. tType &&
  3621. ((tType == 2 && sIsOpen == true) ||
  3622. tType == 1 ||
  3623. tType == 4) &&
  3624. tool.tool.indexOf(32) != -1
  3625. "
  3626. class="worksBox"
  3627. >
  3628. <div
  3629. class="zuoyeYulan"
  3630. v-if="
  3631. worksStudent.length &&
  3632. worksStudent[toolIndex].length > 0
  3633. "
  3634. >
  3635. <div class="worksTop">
  3636. <div>作业预览</div>
  3637. <div
  3638. class="corOpen"
  3639. @click="contract(toolIndex)"
  3640. v-if="
  3641. (isCloseList[toolIndex].isCloseBoolean) &&
  3642. isCloseList[toolIndex].isClose == 0
  3643. "
  3644. >
  3645. 折叠
  3646. </div>
  3647. <div
  3648. class="corOpen"
  3649. @click="contract(toolIndex)"
  3650. v-if="isCloseList[toolIndex].isClose == 1"
  3651. >
  3652. 展开
  3653. </div>
  3654. </div>
  3655. </div>
  3656. <div
  3657. :id="'tool-' + toolIndex"
  3658. :style="{
  3659. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3660. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3661. }"
  3662. class="worksDetailBox"
  3663. v-if="
  3664. worksStudent.length &&
  3665. worksStudent[toolIndex].length > 0
  3666. "
  3667. >
  3668. <div
  3669. class="works"
  3670. style="
  3671. width: 200px;
  3672. height: 140px;
  3673. margin: 10px 10px 10px 0;
  3674. border-radius: 15px;
  3675. box-shadow: 0 0 6px 1px #dfdada;
  3676. "
  3677. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3678. :key="wIndex"
  3679. :class="w.type == 1 ? 'isTypeOne' : ''"
  3680. >
  3681. <div class="workImg">
  3682. <img
  3683. :src="word2"
  3684. @click="downloadFile(w.works)"
  3685. alt
  3686. />
  3687. <div
  3688. class="answerScore"
  3689. v-if="w.score"
  3690. @click.stop="openScore(w)"
  3691. :class="{
  3692. rightW:
  3693. w.userid == userid ||
  3694. tType == 1 ||
  3695. tType == 4 ||
  3696. w.ateacher == userid,
  3697. }"
  3698. >
  3699. {{ JSON.parse(w.score).wScore }}分
  3700. </div>
  3701. <div
  3702. class="answerScore"
  3703. @click.stop="openScore(w)"
  3704. v-else-if="courseDetail.userid == userid"
  3705. :class="{
  3706. rightW:
  3707. w.userid == userid ||
  3708. tType == 1 ||
  3709. tType == 4 ||
  3710. w.ateacher == userid,
  3711. }"
  3712. >
  3713. 评分
  3714. </div>
  3715. <img
  3716. class="deleteImg"
  3717. src="../../assets/deleteworks.png"
  3718. v-if="
  3719. w.userid == userid || tType == 1 || tType == 4
  3720. "
  3721. @click.stop="deleteWorks(w.wid)"
  3722. alt
  3723. />
  3724. </div>
  3725. <div class="comment" style="min-width: 200px">
  3726. <div class="worksName">
  3727. <div>{{ w.sName }}</div>
  3728. </div>
  3729. <div class="commentList">
  3730. <div class="commentList">
  3731. <div
  3732. class="commentImg"
  3733. @click="
  3734. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3735. "
  3736. >
  3737. <img
  3738. :src="w.isLikes == true ? likes : noLikes"
  3739. alt=""
  3740. />
  3741. </div>
  3742. <div>{{ w.likesCount }}</div>
  3743. </div>
  3744. <div class="commentList" style="margin-right: 15px">
  3745. <div
  3746. class="commentImg"
  3747. @click="commentOther(w, toolIndex, wIndex)"
  3748. >
  3749. <img
  3750. src="../../assets/icon/comment/comment.png"
  3751. alt=""
  3752. />
  3753. </div>
  3754. <div>{{ w.commentCount }}</div>
  3755. </div>
  3756. </div>
  3757. </div>
  3758. </div>
  3759. </div>
  3760. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3761. 未提交
  3762. </div>
  3763. <div
  3764. class="noWorksS"
  3765. v-if="noWorksS && noWorksS[toolIndex].length"
  3766. >
  3767. <div
  3768. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3769. :key="sIndex"
  3770. class="noWorksName"
  3771. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  3772. >
  3773. <el-tooltip effect="dark" :content="s.student" placement="top">
  3774. <span>{{ s.student }}</span>
  3775. </el-tooltip>
  3776. </div>
  3777. </div>
  3778. </div>
  3779. <div
  3780. v-if="
  3781. tType &&
  3782. ((tType == 2 && sIsOpen == true) ||
  3783. tType == 1 ||
  3784. tType == 4) &&
  3785. tool.tool.indexOf(57) != -1
  3786. "
  3787. class="worksBox"
  3788. >
  3789. <div
  3790. class="zuoyeYulan"
  3791. v-if="
  3792. worksStudent.length &&
  3793. worksStudent[toolIndex].length > 0
  3794. "
  3795. >
  3796. <div class="worksTop">
  3797. <div>作业预览</div>
  3798. <div
  3799. class="corOpen"
  3800. @click="contract(toolIndex)"
  3801. v-if="
  3802. (isCloseList[toolIndex].isCloseBoolean) &&
  3803. isCloseList[toolIndex].isClose == 0
  3804. "
  3805. >
  3806. 折叠
  3807. </div>
  3808. <div
  3809. class="corOpen"
  3810. @click="contract(toolIndex)"
  3811. v-if="isCloseList[toolIndex].isClose == 1"
  3812. >
  3813. 展开
  3814. </div>
  3815. </div>
  3816. </div>
  3817. <div
  3818. :id="'tool-' + toolIndex"
  3819. :style="{
  3820. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  3821. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  3822. }"
  3823. class="worksDetailBox"
  3824. v-if="
  3825. worksStudent.length &&
  3826. worksStudent[toolIndex].length > 0
  3827. "
  3828. >
  3829. <div
  3830. class="works"
  3831. style="
  3832. width: 200px;
  3833. height: 140px;
  3834. margin: 10px 10px 10px 0;
  3835. border-radius: 15px;
  3836. box-shadow: 0 0 6px 1px #dfdada;
  3837. "
  3838. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3839. :key="wIndex"
  3840. :class="w.type == 1 ? 'isTypeOne' : ''"
  3841. >
  3842. <div class="workImg">
  3843. <img
  3844. :src="word2"
  3845. @click="downloadFile(w.works)"
  3846. v-if="w.type == 12"
  3847. alt
  3848. />
  3849. <img
  3850. :src="word2"
  3851. @click="
  3852. openCocoPi(57, toolIndex, w.userid, w.sName)
  3853. "
  3854. v-else-if="w.type == 15"
  3855. alt
  3856. />
  3857. <div
  3858. class="answerScore"
  3859. v-if="w.score"
  3860. @click.stop="openScore(w)"
  3861. :class="{
  3862. rightW:
  3863. w.userid == userid ||
  3864. tType == 1 ||
  3865. tType == 4 ||
  3866. w.ateacher == userid,
  3867. }"
  3868. >
  3869. {{ JSON.parse(w.score).wScore }}分
  3870. </div>
  3871. <div
  3872. class="answerScore"
  3873. @click.stop="openScore(w)"
  3874. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  3875. :class="{
  3876. rightW:
  3877. w.userid == userid ||
  3878. tType == 1 ||
  3879. tType == 4 ||
  3880. w.ateacher == userid,
  3881. }"
  3882. >
  3883. 评分
  3884. </div>
  3885. <!-- <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"> -->
  3886. <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))">
  3887. <el-popover
  3888. placement="top"
  3889. width="318"
  3890. :disabled="AIloading[toolIndex][wIndex].loading"
  3891. trigger="hover"
  3892. >
  3893. <markScore
  3894. :loading="AIloading[toolIndex][wIndex].loading"
  3895. :markScoreVisible="markScoreVisible"
  3896. :ref="`markSco${toolIndex}${wIndex}`"
  3897. @updateLoading=updateLoading
  3898. @updateDocSco=updateDocSco
  3899. @refreshOther=refreshOther
  3900. @markScoreDig=markScoreDig
  3901. :tool="tool"
  3902. :wIndex="wIndex"
  3903. :scoCon="w"
  3904. :toolIndex="toolIndex"
  3905. :key="refreshKey"
  3906. :stage="courseType"
  3907. :task="taskCount"
  3908. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  3909. >
  3910. </markScore>
  3911. <div
  3912. class="answerScore"
  3913. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  3914. slot="reference"
  3915. :class="{
  3916. rightW:
  3917. w.userid == userid ||
  3918. tType == 1 ||
  3919. tType == 4 ||
  3920. w.ateacher == userid,
  3921. }"
  3922. >
  3923. <span v-if="AIloading[toolIndex][wIndex].sco">
  3924. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  3925. </span>
  3926. <span v-else>
  3927. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  3928. </span>
  3929. </div>
  3930. </el-popover>
  3931. </div>
  3932. <img
  3933. class="deleteImg"
  3934. src="../../assets/deleteworks.png"
  3935. v-if="
  3936. w.userid == userid || tType == 1 || tType == 4
  3937. "
  3938. @click.stop="deleteWorks(w.wid)"
  3939. alt
  3940. />
  3941. </div>
  3942. <div class="comment" style="min-width: 200px">
  3943. <div class="worksName">
  3944. <div>{{ w.sName }}</div>
  3945. </div>
  3946. <div class="commentList">
  3947. <div class="commentList">
  3948. <div
  3949. class="commentImg"
  3950. @click="
  3951. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  3952. "
  3953. >
  3954. <img
  3955. :src="w.isLikes == true ? likes : noLikes"
  3956. alt=""
  3957. />
  3958. </div>
  3959. <div>{{ w.likesCount }}</div>
  3960. </div>
  3961. <div class="commentList" style="margin-right: 15px">
  3962. <div
  3963. class="commentImg"
  3964. @click="commentOther(w, toolIndex, wIndex)"
  3965. >
  3966. <img
  3967. src="../../assets/icon/comment/comment.png"
  3968. alt=""
  3969. />
  3970. </div>
  3971. <div>{{ w.commentCount }}</div>
  3972. </div>
  3973. </div>
  3974. </div>
  3975. </div>
  3976. </div>
  3977. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  3978. 未提交
  3979. </div>
  3980. <div
  3981. class="noWorksS"
  3982. v-if="noWorksS && noWorksS[toolIndex].length"
  3983. >
  3984. <div
  3985. v-for="(s, sIndex) in noWorksS[toolIndex]"
  3986. :key="sIndex"
  3987. class="noWorksName"
  3988. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  3989. >
  3990. <el-tooltip effect="dark" :content="s.student" placement="top">
  3991. <span>{{ s.student }}</span>
  3992. </el-tooltip>
  3993. </div>
  3994. </div>
  3995. </div>
  3996. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  3997. <div style="display: flex;justify-content: space-between;align-items: center;">
  3998. <div
  3999. class="zuoyeYulan"
  4000. v-if="
  4001. worksStudent.length &&
  4002. worksStudent[toolIndex].length > 0
  4003. "
  4004. >
  4005. <span class="worksTitle">作业预览</span>
  4006. <div
  4007. class="corOpen"
  4008. @click="contract(toolIndex)"
  4009. v-if="
  4010. (isCloseList[toolIndex].isCloseBoolean) &&
  4011. isCloseList[toolIndex].isClose == 0
  4012. "
  4013. >
  4014. 折叠
  4015. </div>
  4016. <div
  4017. class="corOpen"
  4018. @click="contract(toolIndex)"
  4019. v-if="isCloseList[toolIndex].isClose == 1"
  4020. >
  4021. 展开
  4022. </div>
  4023. </div>
  4024. <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">
  4025. <!-- <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 "> -->
  4026. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  4027. 一键重置
  4028. </div>
  4029. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  4030. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4031. AI评分
  4032. </div>
  4033. <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)" >
  4034. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4035. AI评分
  4036. </div>
  4037. <div class="ScoreBtn" v-else >
  4038. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  4039. 正在评分
  4040. </div>
  4041. </div>
  4042. </div>
  4043. <div
  4044. :id="'tool-' + toolIndex"
  4045. :style="{
  4046. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4047. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4048. }"
  4049. class="worksDetailBox"
  4050. v-if="
  4051. worksStudent.length &&
  4052. worksStudent[toolIndex].length > 0
  4053. "
  4054. >
  4055. <div
  4056. class="works"
  4057. style="
  4058. width: 200px;
  4059. height: 140px;
  4060. margin: 10px 10px 10px 0;
  4061. border-radius: 15px;
  4062. box-shadow: 0 0 6px 1px #dfdada;
  4063. "
  4064. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4065. :key="wIndex"
  4066. :class="w.type == 1 ? 'isTypeOne' : ''"
  4067. >
  4068. <div class="workImg" v-if="w.type == 0">
  4069. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  4070. <img
  4071. :src="w.works"
  4072. @click="previewImg(w.works,w)"
  4073. alt
  4074. />
  4075. <div
  4076. class="answerScore"
  4077. v-if="w.score"
  4078. @click.stop="openScore(w)"
  4079. :class="{
  4080. rightW:
  4081. w.userid == userid ||
  4082. tType == 1 ||
  4083. tType == 4 ||
  4084. w.ateacher == userid,
  4085. }"
  4086. >
  4087. {{ JSON.parse(w.score).wScore }}分
  4088. </div>
  4089. <div
  4090. class="answerScore"
  4091. @click.stop="openScore(w)"
  4092. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4093. :class="{
  4094. rightW:
  4095. w.userid == userid ||
  4096. tType == 1 ||
  4097. tType == 4 ||
  4098. w.ateacher == userid,
  4099. }"
  4100. >
  4101. 评分
  4102. </div>
  4103. <!-- <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"> -->
  4104. <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))">
  4105. <el-popover
  4106. placement="top"
  4107. width="318"
  4108. :disabled="AIloading[toolIndex][wIndex].loading"
  4109. trigger="hover"
  4110. >
  4111. <markScore
  4112. :loading="AIloading[toolIndex][wIndex].loading"
  4113. :markScoreVisible="markScoreVisible"
  4114. :ref="`markSco${toolIndex}${wIndex}`"
  4115. @updateLoading=updateLoading
  4116. @updateDocSco=updateDocSco
  4117. @refreshOther=refreshOther
  4118. @markScoreDig=markScoreDig
  4119. :tool="tool"
  4120. :wIndex="wIndex"
  4121. :scoCon="w"
  4122. :toolIndex="toolIndex"
  4123. :key="refreshKey"
  4124. :stage="courseType"
  4125. :task="taskCount"
  4126. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4127. >
  4128. </markScore>
  4129. <div
  4130. class="answerScore"
  4131. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4132. slot="reference"
  4133. :class="{
  4134. rightW:
  4135. w.userid == userid ||
  4136. tType == 1 ||
  4137. tType == 4 ||
  4138. w.ateacher == userid,
  4139. }"
  4140. >
  4141. <span v-if="AIloading[toolIndex][wIndex].sco">
  4142. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4143. </span>
  4144. <span v-else>
  4145. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4146. </span>
  4147. </div>
  4148. </el-popover>
  4149. </div>
  4150. <img
  4151. class="deleteImg"
  4152. src="../../assets/deleteworks.png"
  4153. v-if="
  4154. w.userid == userid || tType == 1 || tType == 4
  4155. "
  4156. @click.stop="deleteWorks(w.wid)"
  4157. alt
  4158. />
  4159. </div>
  4160. <div
  4161. class="workImg"
  4162. style="cursor: pointer"
  4163. v-if="w.type == 1"
  4164. >
  4165. <img :src="word" @click="openFile(w.works)" alt />
  4166. <!-- @click="openFile(w.works)" -->
  4167. <div
  4168. class="answerScore"
  4169. v-if="w.score"
  4170. @click.stop="openScore(w)"
  4171. :class="{
  4172. rightW:
  4173. w.userid == userid ||
  4174. tType == 1 ||
  4175. tType == 4 ||
  4176. w.ateacher == userid,
  4177. }"
  4178. >
  4179. {{ JSON.parse(w.score).wScore }}分
  4180. </div>
  4181. <div
  4182. class="answerScore"
  4183. @click.stop="openScore(w)"
  4184. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4185. :class="{
  4186. rightW:
  4187. w.userid == userid ||
  4188. tType == 1 ||
  4189. tType == 4 ||
  4190. w.ateacher == userid,
  4191. }"
  4192. >
  4193. 评分
  4194. </div>
  4195. <!-- <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"> -->
  4196. <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))">
  4197. <el-popover
  4198. placement="top"
  4199. width="318"
  4200. :disabled="AIloading[toolIndex][wIndex].loading"
  4201. trigger="hover"
  4202. >
  4203. <markScore
  4204. :loading="AIloading[toolIndex][wIndex].loading"
  4205. :markScoreVisible="markScoreVisible"
  4206. :ref="`markSco${toolIndex}${wIndex}`"
  4207. @updateLoading=updateLoading
  4208. @updateDocSco=updateDocSco
  4209. @refreshOther=refreshOther
  4210. @markScoreDig=markScoreDig
  4211. :tool="tool"
  4212. :wIndex="wIndex"
  4213. :scoCon="w"
  4214. :toolIndex="toolIndex"
  4215. :key="refreshKey"
  4216. :stage="courseType"
  4217. :task="taskCount"
  4218. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4219. >
  4220. </markScore>
  4221. <div
  4222. class="answerScore"
  4223. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4224. slot="reference"
  4225. :class="{
  4226. rightW:
  4227. w.userid == userid ||
  4228. tType == 1 ||
  4229. tType == 4 ||
  4230. w.ateacher == userid,
  4231. }"
  4232. >
  4233. <span v-if="AIloading[toolIndex][wIndex].sco">
  4234. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4235. </span>
  4236. <span v-else>
  4237. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4238. </span>
  4239. </div>
  4240. </el-popover>
  4241. </div>
  4242. <img
  4243. class="deleteImg"
  4244. src="../../assets/deleteworks.png"
  4245. v-if="
  4246. w.userid == userid || tType == 1 || tType == 4
  4247. "
  4248. @click.stop="deleteWorks(w.wid)"
  4249. alt
  4250. />
  4251. </div>
  4252. <div class="workImg" v-if="w.type == 3">
  4253. <img
  4254. style="cursor: pointer"
  4255. :src="video"
  4256. @click="openVideo(w)"
  4257. alt
  4258. />
  4259. <!-- @click="openVideo(w.works)" -->
  4260. <div
  4261. class="answerScore"
  4262. v-if="w.score"
  4263. @click.stop="openScore(w)"
  4264. :class="{
  4265. rightW:
  4266. w.userid == userid ||
  4267. tType == 1 ||
  4268. tType == 4 ||
  4269. w.ateacher == userid,
  4270. }"
  4271. >
  4272. {{ JSON.parse(w.score).wScore }}分
  4273. </div>
  4274. <div
  4275. class="answerScore"
  4276. @click.stop="openScore(w)"
  4277. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4278. :class="{
  4279. rightW:
  4280. w.userid == userid ||
  4281. tType == 1 ||
  4282. tType == 4 ||
  4283. w.ateacher == userid,
  4284. }"
  4285. >
  4286. 评分
  4287. </div>
  4288. <!-- <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"> -->
  4289. <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))">
  4290. <el-popover
  4291. placement="top"
  4292. width="318"
  4293. :disabled="AIloading[toolIndex][wIndex].loading"
  4294. trigger="hover"
  4295. >
  4296. <markScore
  4297. :loading="AIloading[toolIndex][wIndex].loading"
  4298. :markScoreVisible="markScoreVisible"
  4299. :ref="`markSco${toolIndex}${wIndex}`"
  4300. @updateLoading=updateLoading
  4301. @updateDocSco=updateDocSco
  4302. @refreshOther=refreshOther
  4303. @markScoreDig=markScoreDig
  4304. :tool="tool"
  4305. :wIndex="wIndex"
  4306. :scoCon="w"
  4307. :toolIndex="toolIndex"
  4308. :key="refreshKey"
  4309. :stage="courseType"
  4310. :task="taskCount"
  4311. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  4312. >
  4313. </markScore>
  4314. <div
  4315. class="answerScore"
  4316. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  4317. slot="reference"
  4318. :class="{
  4319. rightW:
  4320. w.userid == userid ||
  4321. tType == 1 ||
  4322. tType == 4 ||
  4323. w.ateacher == userid,
  4324. }"
  4325. >
  4326. <span v-if="AIloading[toolIndex][wIndex].sco">
  4327. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  4328. </span>
  4329. <span v-else>
  4330. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  4331. </span>
  4332. </div>
  4333. </el-popover>
  4334. </div>
  4335. <img
  4336. class="deleteImg"
  4337. src="../../assets/deleteworks.png"
  4338. v-if="
  4339. w.userid == userid || tType == 1 || tType == 4
  4340. "
  4341. @click.stop="deleteWorks(w.wid)"
  4342. alt
  4343. />
  4344. </div>
  4345. <div class="comment" style="min-width: 200px">
  4346. <div class="worksName">
  4347. <div
  4348. style="cursor: pointer"
  4349. @click="
  4350. openSname(w.sName, w.wid, toolIndex, w.userid)
  4351. "
  4352. >
  4353. {{ w.sName }}
  4354. </div>
  4355. </div>
  4356. <div class="commentList">
  4357. <div class="commentList">
  4358. <div
  4359. class="commentImg"
  4360. @click="
  4361. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  4362. "
  4363. >
  4364. <img
  4365. :src="w.isLikes == true ? likes : noLikes"
  4366. alt=""
  4367. />
  4368. </div>
  4369. <div>{{ w.likesCount }}</div>
  4370. </div>
  4371. <div class="commentList" style="margin-right: 15px">
  4372. <div
  4373. class="commentImg"
  4374. @click="commentOther(w, toolIndex, wIndex)"
  4375. >
  4376. <img
  4377. src="../../assets/icon/comment/comment.png"
  4378. alt=""
  4379. />
  4380. </div>
  4381. <div>{{ w.commentCount }}</div>
  4382. </div>
  4383. </div>
  4384. </div>
  4385. </div>
  4386. </div>
  4387. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4388. 未提交
  4389. </div>
  4390. <div
  4391. class="noWorksS"
  4392. v-if="noWorksS && noWorksS[toolIndex].length"
  4393. >
  4394. <div
  4395. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4396. :key="sIndex"
  4397. class="noWorksName"
  4398. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  4399. >
  4400. <el-tooltip effect="dark" :content="s.student" placement="top">
  4401. <span>{{ s.student }}</span>
  4402. </el-tooltip>
  4403. </div>
  4404. </div>
  4405. </div>
  4406. <div
  4407. v-if="
  4408. tType &&
  4409. ((tType == 2 && sIsOpen == true) ||
  4410. tType == 1 ||
  4411. tType == 4) &&
  4412. tool.tool.indexOf(4) != -1 &&
  4413. (tool.askJson[0].answer ||
  4414. tool.askJson[0].answer === 0) &&
  4415. checkJson[toolIndex].length
  4416. "
  4417. class="xuan_right_box"
  4418. >
  4419. <div
  4420. class="tool_right_box"
  4421. v-for="(item, index) in tool.askJson"
  4422. :key="index"
  4423. >
  4424. <div style="width: calc(100% - 30px);">
  4425. <el-tooltip
  4426. effect="light"
  4427. :content="index + 1 + '、' + item.askstitle"
  4428. placement="top"
  4429. popper-class="text_tooltip"
  4430. >
  4431. <div
  4432. style="
  4433. width: calc(100% - 130px);
  4434. display: block;
  4435. white-space: nowrap;
  4436. overflow: hidden;
  4437. text-overflow: ellipsis;
  4438. word-break: break-word;
  4439. cursor: pointer;
  4440. "
  4441. >
  4442. {{ index + 1 + "、" + item.askstitle }}
  4443. </div>
  4444. </el-tooltip>
  4445. </div>
  4446. <div class="right_box_xuan">
  4447. <span>正确率</span>
  4448. <span>{{
  4449. (checkJson[toolIndex][index].right
  4450. ? checkJson[toolIndex][index].right
  4451. : 0) + "%"
  4452. }}</span>
  4453. </div>
  4454. </div>
  4455. </div>
  4456. <div
  4457. class="xuan_right_box"
  4458. style="background: unset; padding: 0 10px"
  4459. v-if="
  4460. tType &&
  4461. ((tType == 2 && sIsOpen == true) ||
  4462. tType == 1 ||
  4463. tType == 4) &&
  4464. tool.tool.indexOf(4) != -1
  4465. "
  4466. >
  4467. <AskStatic
  4468. v-if="
  4469. worksStudent.length &&
  4470. worksStudent[toolIndex].length > 0
  4471. "
  4472. :askJSON="tool"
  4473. :checkJson="checkJson[toolIndex]"
  4474. ></AskStatic>
  4475. </div>
  4476. <div
  4477. v-if="
  4478. tType &&
  4479. ((tType == 2 && sIsOpen == true) ||
  4480. tType == 1 ||
  4481. tType == 4) &&
  4482. tool.tool.indexOf(4) != -1
  4483. "
  4484. class="worksBox"
  4485. >
  4486. <div
  4487. class="zuoyeYulan"
  4488. v-if="
  4489. worksStudent.length &&
  4490. worksStudent[toolIndex].length > 0
  4491. "
  4492. >
  4493. <div class="worksTop">
  4494. <div>作业预览</div>
  4495. <div
  4496. class="corOpen"
  4497. @click="contract(toolIndex)"
  4498. v-if="
  4499. (isCloseList[toolIndex].isCloseBoolean) &&
  4500. isCloseList[toolIndex].isClose == 0
  4501. "
  4502. >
  4503. 折叠
  4504. </div>
  4505. <div
  4506. class="corOpen"
  4507. @click="contract(toolIndex)"
  4508. v-if="isCloseList[toolIndex].isClose == 1"
  4509. >
  4510. 展开
  4511. </div>
  4512. </div>
  4513. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4514. </div>
  4515. <div>
  4516. <div
  4517. :id="'tool-' + toolIndex"
  4518. :style="{
  4519. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4520. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4521. }"
  4522. class="worksDetailBox"
  4523. v-if="
  4524. worksStudent.length &&
  4525. worksStudent[toolIndex].length > 0
  4526. "
  4527. >
  4528. <div
  4529. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4530. :key="wIndex"
  4531. class="isWorksName2"
  4532. @click="
  4533. openTools(4, toolIndex, taskCount, w.works, w.sName)
  4534. "
  4535. >
  4536. {{ w.sName }}
  4537. <img
  4538. class="deleteImg deleteImg2"
  4539. src="../../assets/deleteworks.png"
  4540. v-if="
  4541. w.userid == userid || tType == 1 || tType == 4
  4542. "
  4543. @click.stop="deleteWorks(w.wid)"
  4544. alt
  4545. />
  4546. </div>
  4547. <!-- <div class="works" style="
  4548. width: 200px;
  4549. height: 140px;
  4550. border-radius: 10px;
  4551. box-shadow: 0 0 6px 1px #dfdada;
  4552. overflow: hidden;
  4553. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  4554. <div class="workImg">
  4555. <img src="../../assets/icon/works/noImg.png" @click="
  4556. openTools(
  4557. 4,
  4558. toolIndex,
  4559. taskCount,
  4560. w.works,
  4561. w.sName
  4562. )
  4563. " alt />
  4564. </div>
  4565. <div class="worksName">
  4566. <div>{{ w.sName }}</div>
  4567. <div>{{ w.time }}</div>
  4568. </div>
  4569. </div> -->
  4570. </div>
  4571. </div>
  4572. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4573. 未提交
  4574. </div>
  4575. <div
  4576. class="noWorksS"
  4577. v-if="noWorksS && noWorksS[toolIndex].length"
  4578. >
  4579. <div
  4580. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4581. :key="sIndex"
  4582. class="noWorksName"
  4583. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  4584. >
  4585. <el-tooltip effect="dark" :content="s.student" placement="top">
  4586. <span>{{ s.student }}</span>
  4587. </el-tooltip>
  4588. </div>
  4589. </div>
  4590. </div>
  4591. <div
  4592. v-if="
  4593. tType &&
  4594. ((tType == 2 && sIsOpen == true) ||
  4595. tType == 1 ||
  4596. tType == 4) &&
  4597. tool.tool.indexOf(45) != -1 &&
  4598. (tool.testJson.testJson[0].answer ||
  4599. tool.testJson.testJson[0].answer === 0) &&
  4600. checkJson[toolIndex].length
  4601. "
  4602. class="xuan_right_box"
  4603. >
  4604. <div
  4605. class="tool_right_box"
  4606. v-for="(item, index) in tool.testJson.testJson"
  4607. :key="index"
  4608. >
  4609. <div class="right_box_xuan" style="margin-right: 10px">
  4610. <span>正确率</span>
  4611. <span>{{
  4612. (checkJson[toolIndex][index].right
  4613. ? checkJson[toolIndex][index].right
  4614. : 0) + "%"
  4615. }}</span>
  4616. </div>
  4617. <div style="width: calc(100% - 30px);">
  4618. <el-tooltip
  4619. effect="light"
  4620. :content="index + 1 + '、' + item.teststitle"
  4621. placement="top"
  4622. popper-class="text_tooltip"
  4623. >
  4624. <div
  4625. style="
  4626. width: calc(100% - 130px);
  4627. display: block;
  4628. white-space: nowrap;
  4629. overflow: hidden;
  4630. text-overflow: ellipsis;
  4631. word-break: break-word;
  4632. cursor: pointer;
  4633. "
  4634. >
  4635. {{ index + 1 + "、" + item.teststitle }}
  4636. </div>
  4637. </el-tooltip>
  4638. </div>
  4639. </div>
  4640. </div>
  4641. <div
  4642. class="xuan_right_box"
  4643. style="background: unset; padding: 0 10px; width: 91.5%"
  4644. v-if="
  4645. tType &&
  4646. ((tType == 2 && sIsOpen == true) ||
  4647. tType == 1 ||
  4648. tType == 4) &&
  4649. tool.tool.indexOf(45) != -1
  4650. "
  4651. >
  4652. <AskStatic2
  4653. v-if="
  4654. worksStudent.length &&
  4655. worksStudent[toolIndex].length > 0
  4656. "
  4657. :askJSON="tool"
  4658. :checkJson="checkJson[toolIndex]"
  4659. ></AskStatic2>
  4660. </div>
  4661. <div
  4662. v-if="
  4663. tType &&
  4664. ((tType == 2 && sIsOpen == true) ||
  4665. tType == 1 ||
  4666. tType == 4) &&
  4667. tool.tool.indexOf(45) != -1
  4668. "
  4669. class="worksBox"
  4670. >
  4671. <div
  4672. class="zuoyeYulan"
  4673. v-if="
  4674. worksStudent.length &&
  4675. worksStudent[toolIndex].length > 0
  4676. "
  4677. >
  4678. <div class="worksTop">
  4679. <div>作业预览</div>
  4680. <div
  4681. class="corOpen"
  4682. @click="contract(toolIndex)"
  4683. v-if="
  4684. (isCloseList[toolIndex].isCloseBoolean) &&
  4685. isCloseList[toolIndex].isClose == 0
  4686. "
  4687. >
  4688. 折叠
  4689. </div>
  4690. <div
  4691. class="corOpen"
  4692. @click="contract(toolIndex)"
  4693. v-if="isCloseList[toolIndex].isClose == 1"
  4694. >
  4695. 展开
  4696. </div>
  4697. </div>
  4698. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4699. </div>
  4700. <div>
  4701. <div
  4702. :id="'tool-' + toolIndex"
  4703. :style="{
  4704. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4705. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4706. }"
  4707. class="worksDetailBox"
  4708. v-if="
  4709. worksStudent.length &&
  4710. worksStudent[toolIndex].length > 0
  4711. "
  4712. >
  4713. <div
  4714. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4715. :key="wIndex"
  4716. class="isWorksName2"
  4717. @click="
  4718. openTools(
  4719. 45,
  4720. toolIndex,
  4721. taskCount,
  4722. w.works,
  4723. w.sName
  4724. )
  4725. "
  4726. >
  4727. {{ w.sName }}
  4728. <img
  4729. class="deleteImg deleteImg2"
  4730. src="../../assets/deleteworks.png"
  4731. v-if="
  4732. w.userid == userid || tType == 1 || tType == 4
  4733. "
  4734. @click.stop="deleteWorks(w.wid)"
  4735. alt
  4736. />
  4737. </div>
  4738. </div>
  4739. </div>
  4740. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4741. 未提交
  4742. </div>
  4743. <div
  4744. class="noWorksS"
  4745. v-if="noWorksS && noWorksS[toolIndex].length"
  4746. >
  4747. <div
  4748. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4749. :key="sIndex"
  4750. class="noWorksName"
  4751. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  4752. >
  4753. <el-tooltip effect="dark" :content="s.student" placement="top">
  4754. <span>{{ s.student }}</span>
  4755. </el-tooltip>
  4756. </div>
  4757. </div>
  4758. </div>
  4759. <div
  4760. v-if="
  4761. tType &&
  4762. ((tType == 2 && sIsOpen == true) ||
  4763. tType == 1 ||
  4764. tType == 4) &&
  4765. tool.tool.indexOf(69) != -1
  4766. "
  4767. class="worksBox"
  4768. >
  4769. <div
  4770. class="zuoyeYulan"
  4771. v-if="
  4772. worksStudent.length &&
  4773. worksStudent[toolIndex].length > 0
  4774. "
  4775. >
  4776. <div class="worksTop">
  4777. <div>作业预览</div>
  4778. <div
  4779. class="corOpen"
  4780. @click="contract(toolIndex)"
  4781. v-if="
  4782. (isCloseList[toolIndex].isCloseBoolean) &&
  4783. isCloseList[toolIndex].isClose == 0
  4784. "
  4785. >
  4786. 折叠
  4787. </div>
  4788. <div
  4789. class="corOpen"
  4790. @click="contract(toolIndex)"
  4791. v-if="isCloseList[toolIndex].isClose == 1"
  4792. >
  4793. 展开
  4794. </div>
  4795. </div>
  4796. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4797. </div>
  4798. <div>
  4799. <div
  4800. :id="'tool-' + toolIndex"
  4801. :style="{
  4802. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  4803. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  4804. }"
  4805. class="worksDetailBox"
  4806. v-if="
  4807. worksStudent.length &&
  4808. worksStudent[toolIndex].length > 0
  4809. "
  4810. >
  4811. <div
  4812. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4813. :key="wIndex"
  4814. class="isWorksName2"
  4815. style="width: 160px;height: 65px;line-height: 65px;"
  4816. @click="
  4817. openTools(
  4818. 69,
  4819. toolIndex,
  4820. taskCount,
  4821. w.works,
  4822. w.sName,
  4823. w.wid
  4824. )
  4825. "
  4826. >
  4827. {{ w.sName }}
  4828. <img
  4829. class="deleteImg1"
  4830. src="../../assets/evaEnglish.png"
  4831. @click.stop="openEnglishEva(w.wid,toolIndex)"
  4832. alt
  4833. v-if="(courseDetail && (courseDetail.userid == userid || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1))) || (w.aiCode || w.teacherCode)"
  4834. />
  4835. <img
  4836. class="deleteImg deleteImg2"
  4837. src="../../assets/deleteworks.png"
  4838. v-if="
  4839. w.userid == userid || tType == 1 || tType == 4
  4840. "
  4841. @click.stop="deleteWorks(w.wid)"
  4842. alt
  4843. />
  4844. </div>
  4845. </div>
  4846. </div>
  4847. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4848. 未提交
  4849. </div>
  4850. <div
  4851. class="noWorksS"
  4852. v-if="noWorksS && noWorksS[toolIndex].length"
  4853. >
  4854. <div
  4855. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4856. :key="sIndex"
  4857. class="noWorksName"
  4858. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  4859. >
  4860. <el-tooltip effect="dark" :content="s.student" placement="top">
  4861. <span>{{ s.student }}</span>
  4862. </el-tooltip>
  4863. </div>
  4864. </div>
  4865. </div>
  4866. <div
  4867. v-if="
  4868. tType &&
  4869. ((tType == 2 && sIsOpen == true) ||
  4870. tType == 1 ||
  4871. tType == 4) &&
  4872. tool.tool.indexOf(15) != -1
  4873. "
  4874. class="worksBox"
  4875. >
  4876. <div
  4877. class="zuoyeYulan"
  4878. v-if="
  4879. (worksStudent.length &&
  4880. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  4881. "
  4882. >
  4883. <div class="worksTop">
  4884. <div>作业预览</div>
  4885. <div
  4886. class="corOpen"
  4887. @click="contract(toolIndex)"
  4888. v-if="
  4889. (isCloseList[toolIndex].isCloseBoolean) &&
  4890. isCloseList[toolIndex].isClose == 0
  4891. "
  4892. >
  4893. 折叠
  4894. </div>
  4895. <div
  4896. class="corOpen"
  4897. @click="contract(toolIndex)"
  4898. v-if="isCloseList[toolIndex].isClose == 1"
  4899. >
  4900. 展开
  4901. </div>
  4902. </div>
  4903. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4904. </div>
  4905. <div
  4906. class="group_workBox"
  4907. v-for="(g, gindex) in courseGroup.group"
  4908. :key="gindex"
  4909. >
  4910. <div class="group_box">
  4911. <div class="group_title">
  4912. <el-tooltip
  4913. class="item"
  4914. effect="light"
  4915. :content="g.name"
  4916. placement="top"
  4917. >
  4918. <div class="group_name">{{ g.name }}</div>
  4919. </el-tooltip>
  4920. </div>
  4921. <div
  4922. class="group_work"
  4923. v-if="
  4924. g.works &&
  4925. g.works.length &&
  4926. g.works[toolIndex].length
  4927. "
  4928. >
  4929. <div
  4930. class="works"
  4931. v-for="(w, wIndex) in g.works[toolIndex]"
  4932. :key="wIndex"
  4933. >
  4934. <div
  4935. class="workImg"
  4936. style="
  4937. border-radius: 15px;
  4938. box-shadow: 0px 0px 5px 5px #eee;
  4939. "
  4940. >
  4941. <div
  4942. class="answerBg"
  4943. style="border-radius: 15px 15px 0 0"
  4944. @click="
  4945. commentOther(w, toolIndex, wIndex, null, g.id)
  4946. "
  4947. >
  4948. <div class="answerContent">
  4949. {{ JSON.parse(w.works)[0].answer }}
  4950. </div>
  4951. <div
  4952. class="answerScore"
  4953. v-if="w.score"
  4954. @click.stop="openScore(w)"
  4955. :class="{
  4956. rightW:
  4957. w.userid == userid ||
  4958. tType == 1 ||
  4959. tType == 4,
  4960. }"
  4961. >
  4962. {{ JSON.parse(w.score).wScore }}分
  4963. </div>
  4964. <div
  4965. class="answerScore"
  4966. @click.stop="openScore(w)"
  4967. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  4968. :class="{
  4969. rightW:
  4970. w.userid == userid ||
  4971. tType == 1 ||
  4972. tType == 4,
  4973. }"
  4974. >
  4975. 评分
  4976. </div>
  4977. <!-- <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"> -->
  4978. <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))">
  4979. <el-popover
  4980. placement="top"
  4981. width="318"
  4982. :disabled="AIloading[toolIndex][wIndex].loading"
  4983. trigger="hover"
  4984. >
  4985. <markScore
  4986. :loading="AIloading[toolIndex][wIndex].loading"
  4987. :markScoreVisible="markScoreVisible"
  4988. :ref="`markSco${toolIndex}${wIndex}`"
  4989. @updateLoading=updateLoading
  4990. @updateDocSco=updateDocSco
  4991. @refreshOther=refreshOther
  4992. @markScoreDig=markScoreDig
  4993. :tool="tool"
  4994. :wIndex="wIndex"
  4995. :scoCon="w"
  4996. :toolIndex="toolIndex"
  4997. :key="refreshKey"
  4998. :stage="courseType"
  4999. :task="taskCount"
  5000. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5001. >
  5002. </markScore>
  5003. <div
  5004. class="answerScore"
  5005. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5006. slot="reference"
  5007. :class="{
  5008. rightW:
  5009. w.userid == userid ||
  5010. tType == 1 ||
  5011. tType == 4 ||
  5012. w.ateacher == userid,
  5013. }"
  5014. >
  5015. <span v-if="AIloading[toolIndex][wIndex].sco">
  5016. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5017. </span>
  5018. <span v-else>
  5019. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5020. </span>
  5021. </div>
  5022. </el-popover>
  5023. </div>
  5024. <img
  5025. class="deleteImg"
  5026. src="../../assets/deleteworks.png"
  5027. v-if="
  5028. w.userid == userid ||
  5029. tType == 1 ||
  5030. tType == 4
  5031. "
  5032. @click.stop="deleteWorks(w.wid)"
  5033. alt
  5034. />
  5035. </div>
  5036. <div class="comment">
  5037. <div class="worksName">
  5038. <div>{{ w.sName }}</div>
  5039. </div>
  5040. <div class="commentList">
  5041. <div
  5042. class="commentImg"
  5043. @click="
  5044. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5045. "
  5046. >
  5047. <img
  5048. :src="w.isLikes == true ? likes : noLikes"
  5049. alt=""
  5050. />
  5051. </div>
  5052. <div>{{ w.likesCount }}</div>
  5053. </div>
  5054. <div
  5055. class="commentList"
  5056. style="margin-right: 15px"
  5057. >
  5058. <div
  5059. class="commentImg"
  5060. @click="
  5061. commentOther(
  5062. w,
  5063. toolIndex,
  5064. wIndex,
  5065. null,
  5066. g.id
  5067. )
  5068. "
  5069. >
  5070. <img
  5071. src="../../assets/icon/comment/comment.png"
  5072. alt=""
  5073. />
  5074. </div>
  5075. <div>{{ w.commentCount }}</div>
  5076. </div>
  5077. </div>
  5078. </div>
  5079. </div>
  5080. </div>
  5081. <div class="group_work" v-else>暂无提交作业</div>
  5082. </div>
  5083. </div>
  5084. <div
  5085. :id="'tool-' + toolIndex"
  5086. :style="{
  5087. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5088. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5089. }"
  5090. class="worksDetailBox"
  5091. v-if="
  5092. worksStudent.length &&
  5093. worksStudent[toolIndex].length > 0
  5094. "
  5095. >
  5096. <div
  5097. class="works"
  5098. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5099. :key="wIndex"
  5100. >
  5101. <div
  5102. class="workImg"
  5103. style="
  5104. border-radius: 15px;
  5105. box-shadow: 0px 0px 5px 5px #eee;
  5106. "
  5107. >
  5108. <!-- <img
  5109. src="../../assets/icon/works/noImg.png"
  5110. @click="openTools(15, toolIndex, taskCount, w.works)"
  5111. alt=""
  5112. />-->
  5113. <div
  5114. class="answerBg"
  5115. style="border-radius: 15px 15px 0 0"
  5116. @click="commentOther(w, toolIndex, wIndex)"
  5117. >
  5118. <!-- <div>{{ w.sName }}</div> -->
  5119. <div class="answerContent">
  5120. {{ JSON.parse(w.works)[0].answer }}
  5121. </div>
  5122. <div
  5123. class="answerScore"
  5124. v-if="w.score"
  5125. @click.stop="openScore(w)"
  5126. :class="{
  5127. rightW:
  5128. w.userid == userid ||
  5129. tType == 1 ||
  5130. tType == 4,
  5131. }"
  5132. >
  5133. {{ JSON.parse(w.score).wScore }}分
  5134. </div>
  5135. <div
  5136. class="answerScore"
  5137. @click.stop="openScore(w)"
  5138. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5139. :class="{
  5140. rightW:
  5141. w.userid == userid ||
  5142. tType == 1 ||
  5143. tType == 4,
  5144. }"
  5145. >
  5146. 评分
  5147. </div>
  5148. <!-- <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"> -->
  5149. <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))">
  5150. <el-popover
  5151. placement="top"
  5152. width="318"
  5153. :disabled="AIloading[toolIndex][wIndex].loading"
  5154. trigger="hover"
  5155. >
  5156. <markScore
  5157. :loading="AIloading[toolIndex][wIndex].loading"
  5158. :markScoreVisible="markScoreVisible"
  5159. :ref="`markSco${toolIndex}${wIndex}`"
  5160. @updateLoading=updateLoading
  5161. @updateDocSco=updateDocSco
  5162. @refreshOther=refreshOther
  5163. @markScoreDig=markScoreDig
  5164. :tool="tool"
  5165. :wIndex="wIndex"
  5166. :scoCon="w"
  5167. :toolIndex="toolIndex"
  5168. :key="refreshKey"
  5169. :stage="courseType"
  5170. :task="taskCount"
  5171. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5172. >
  5173. </markScore>
  5174. <div
  5175. class="answerScore"
  5176. @click.stop="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5177. slot="reference"
  5178. :class="{
  5179. rightW:
  5180. w.userid == userid ||
  5181. tType == 1 ||
  5182. tType == 4 ||
  5183. w.ateacher == userid,
  5184. }"
  5185. >
  5186. <span v-if="AIloading[toolIndex][wIndex].sco">
  5187. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5188. </span>
  5189. <span v-else>
  5190. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5191. </span>
  5192. </div>
  5193. </el-popover>
  5194. </div>
  5195. <img
  5196. class="deleteImg"
  5197. src="../../assets/deleteworks.png"
  5198. v-if="
  5199. w.userid == userid || tType == 1 || tType == 4
  5200. "
  5201. @click.stop="deleteWorks(w.wid)"
  5202. alt
  5203. />
  5204. </div>
  5205. <div class="comment">
  5206. <div class="worksName">
  5207. <div>{{ w.sName }}</div>
  5208. </div>
  5209. <div class="commentList">
  5210. <div
  5211. class="commentImg"
  5212. @click="
  5213. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5214. "
  5215. >
  5216. <img
  5217. :src="w.isLikes == true ? likes : noLikes"
  5218. alt=""
  5219. />
  5220. </div>
  5221. <div>{{ w.likesCount }}</div>
  5222. </div>
  5223. <div class="commentList" style="margin-right: 15px">
  5224. <div
  5225. class="commentImg"
  5226. @click="commentOther(w, toolIndex, wIndex)"
  5227. >
  5228. <img
  5229. src="../../assets/icon/comment/comment.png"
  5230. alt=""
  5231. />
  5232. </div>
  5233. <div>{{ w.commentCount }}</div>
  5234. </div>
  5235. </div>
  5236. </div>
  5237. </div>
  5238. </div>
  5239. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5240. 未提交
  5241. </div>
  5242. <div
  5243. class="noWorksS"
  5244. v-if="noWorksS && noWorksS[toolIndex].length"
  5245. >
  5246. <div
  5247. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5248. :key="sIndex"
  5249. class="noWorksName"
  5250. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  5251. >
  5252. <el-tooltip effect="dark" :content="s.student" placement="top">
  5253. <span>{{ s.student }}</span>
  5254. </el-tooltip>
  5255. </div>
  5256. </div>
  5257. </div>
  5258. <div
  5259. v-if="
  5260. tType &&
  5261. ((tType == 2 && sIsOpen == true) ||
  5262. tType == 1 ||
  5263. tType == 4) &&
  5264. tool.tool.indexOf(1) != -1
  5265. "
  5266. class="worksBox"
  5267. >
  5268. <div
  5269. class="zuoyeYulan"
  5270. style="display: flex;justify-content: space-between;align-items: center;"
  5271. v-if="
  5272. (worksStudent.length &&
  5273. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5274. "
  5275. >
  5276. <div class="worksTop">
  5277. <div>作业预览</div>
  5278. <div
  5279. class="corOpen"
  5280. @click="contract(toolIndex)"
  5281. v-if="
  5282. (isCloseList[toolIndex].isCloseBoolean) &&
  5283. isCloseList[toolIndex].isClose == 0
  5284. "
  5285. >
  5286. 折叠
  5287. </div>
  5288. <div
  5289. class="corOpen"
  5290. @click="contract(toolIndex)"
  5291. v-if="isCloseList[toolIndex].isClose == 1"
  5292. >
  5293. 展开
  5294. </div>
  5295. </div>
  5296. <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">
  5297. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  5298. 一键重置
  5299. </div>
  5300. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  5301. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5302. AI评分
  5303. </div>
  5304. <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]
  5305. .taskDetail,tool)" >
  5306. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5307. AI评分
  5308. </div>
  5309. <div class="ScoreBtn" v-else >
  5310. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5311. 正在评分
  5312. </div>
  5313. </div>
  5314. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5315. </div>
  5316. <div
  5317. class="group_workBox"
  5318. v-for="(g, gindex) in courseGroup.group"
  5319. :key="gindex"
  5320. >
  5321. <div class="group_box">
  5322. <div class="group_title">
  5323. <el-tooltip
  5324. class="item"
  5325. effect="light"
  5326. :content="g.name"
  5327. placement="top"
  5328. >
  5329. <div class="group_name">{{ g.name }}</div>
  5330. </el-tooltip>
  5331. </div>
  5332. <div
  5333. class="group_work"
  5334. v-if="
  5335. g.works &&
  5336. g.works.length &&
  5337. g.works[toolIndex].length
  5338. "
  5339. >
  5340. <div
  5341. class="works"
  5342. style="
  5343. width: 200px;
  5344. height: 140px;
  5345. margin: 10px 10px 10px 0;
  5346. border-radius: 15px;
  5347. box-shadow: 0 0 6px 1px #dfdada;
  5348. "
  5349. v-for="(w, wIndex) in g.works[toolIndex]"
  5350. :key="wIndex"
  5351. :class="w.type == 1 ? 'isTypeOne' : ''"
  5352. >
  5353. <div class="workImg">
  5354. <img
  5355. :src="w.works"
  5356. @click="previewImg(w.works,w)"
  5357. alt
  5358. />
  5359. <div
  5360. class="answerScore"
  5361. v-if="w.score"
  5362. @click.stop="openScore(w)"
  5363. :class="{
  5364. rightW:
  5365. w.userid == userid ||
  5366. tType == 1 ||
  5367. tType == 4,
  5368. }"
  5369. >
  5370. {{ JSON.parse(w.score).wScore }}分
  5371. </div>
  5372. <div
  5373. class="answerScore"
  5374. @click.stop="openScore(w)"
  5375. v-else-if="courseDetail.userid == userid"
  5376. :class="{
  5377. rightW:
  5378. w.userid == userid ||
  5379. tType == 1 ||
  5380. tType == 4,
  5381. }"
  5382. >
  5383. 评分
  5384. </div>
  5385. <img
  5386. class="deleteImg"
  5387. src="../../assets/deleteworks.png"
  5388. v-if="
  5389. w.userid == userid || tType == 1 || tType == 4
  5390. "
  5391. @click.stop="deleteWorks(w.wid)"
  5392. alt
  5393. />
  5394. </div>
  5395. <div class="comment" style="min-width: 200px">
  5396. <div class="worksName">
  5397. <div>{{ w.sName }}</div>
  5398. </div>
  5399. <div class="commentList">
  5400. <div class="commentList">
  5401. <div
  5402. class="commentImg"
  5403. @click="
  5404. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5405. "
  5406. >
  5407. <img
  5408. :src="w.isLikes == true ? likes : noLikes"
  5409. alt=""
  5410. />
  5411. </div>
  5412. <div>{{ w.likesCount }}</div>
  5413. </div>
  5414. <div
  5415. class="commentList"
  5416. style="margin-right: 15px"
  5417. >
  5418. <div
  5419. class="commentImg"
  5420. @click="
  5421. commentOther(
  5422. w,
  5423. toolIndex,
  5424. wIndex,
  5425. null,
  5426. g.id
  5427. )
  5428. "
  5429. >
  5430. <img
  5431. src="../../assets/icon/comment/comment.png"
  5432. alt=""
  5433. />
  5434. </div>
  5435. <div>{{ w.commentCount }}</div>
  5436. </div>
  5437. </div>
  5438. </div>
  5439. </div>
  5440. </div>
  5441. <div class="group_work" v-else>暂无提交作业</div>
  5442. </div>
  5443. </div>
  5444. <div
  5445. :id="'tool-' + toolIndex"
  5446. :style="{
  5447. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5448. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5449. }"
  5450. class="worksDetailBox"
  5451. v-if="
  5452. worksStudent.length &&
  5453. worksStudent[toolIndex].length > 0
  5454. "
  5455. >
  5456. <div
  5457. class="works"
  5458. style="
  5459. width: 200px;
  5460. height: 140px;
  5461. margin: 10px 10px 10px 0;
  5462. border-radius: 15px;
  5463. box-shadow: 0 0 6px 1px #dfdada;
  5464. "
  5465. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5466. :key="wIndex"
  5467. >
  5468. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  5469. <div class="workImg">
  5470. <img
  5471. :src="w.works"
  5472. @click="previewImg(w.works,w)"
  5473. alt
  5474. />
  5475. <div
  5476. class="answerScore"
  5477. v-if="w.score"
  5478. @click.stop="openScore(w)"
  5479. :class="{
  5480. rightW:
  5481. w.userid == userid || tType == 1 || tType == 4,
  5482. }"
  5483. >
  5484. {{ JSON.parse(w.score).wScore }}分
  5485. </div>
  5486. <div
  5487. class="answerScore"
  5488. @click.stop="openScore(w)"
  5489. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5490. :class="{
  5491. rightW:
  5492. w.userid == userid || tType == 1 || tType == 4,
  5493. }"
  5494. >
  5495. 评分
  5496. </div>
  5497. <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))">
  5498. <el-popover
  5499. placement="top"
  5500. width="318"
  5501. :disabled="AIloading[toolIndex][wIndex].loading"
  5502. trigger="hover"
  5503. >
  5504. <markScore
  5505. :loading="AIloading[toolIndex][wIndex].loading"
  5506. :markScoreVisible="markScoreVisible"
  5507. :ref="`markSco${toolIndex}${wIndex}`"
  5508. @updateLoading=updateLoading
  5509. @updateDocSco=updateDocSco
  5510. @refreshOther=refreshOther
  5511. @markScoreDig=markScoreDig
  5512. :tool="tool"
  5513. :wIndex="wIndex"
  5514. :scoCon="w"
  5515. :toolIndex="toolIndex"
  5516. :key="refreshKey"
  5517. :stage="courseType"
  5518. :task="taskCount"
  5519. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5520. >
  5521. </markScore>
  5522. <div
  5523. class="answerScore"
  5524. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5525. slot="reference"
  5526. :class="{
  5527. rightW:
  5528. w.userid == userid ||
  5529. tType == 1 ||
  5530. tType == 4 ||
  5531. w.ateacher == userid,
  5532. }"
  5533. >
  5534. <span v-if="AIloading[toolIndex][wIndex].sco">
  5535. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5536. </span>
  5537. <span v-else>
  5538. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5539. </span>
  5540. </div>
  5541. </el-popover>
  5542. </div>
  5543. <img
  5544. class="deleteImg"
  5545. src="../../assets/deleteworks.png"
  5546. v-if="
  5547. w.userid == userid || tType == 1 || tType == 4
  5548. "
  5549. @click.stop="deleteWorks(w.wid)"
  5550. alt
  5551. />
  5552. </div>
  5553. <div class="comment" style="min-width: 200px">
  5554. <div class="worksName">
  5555. <div>{{ w.sName }}</div>
  5556. </div>
  5557. <div class="commentList">
  5558. <div class="commentList">
  5559. <div
  5560. class="commentImg"
  5561. @click="
  5562. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5563. "
  5564. >
  5565. <img
  5566. :src="w.isLikes == true ? likes : noLikes"
  5567. alt=""
  5568. />
  5569. </div>
  5570. <div>{{ w.likesCount }}</div>
  5571. </div>
  5572. <div class="commentList" style="margin-right: 15px">
  5573. <div
  5574. class="commentImg"
  5575. @click="commentOther(w, toolIndex, wIndex)"
  5576. >
  5577. <img
  5578. src="../../assets/icon/comment/comment.png"
  5579. alt=""
  5580. />
  5581. </div>
  5582. <div>{{ w.commentCount }}</div>
  5583. </div>
  5584. </div>
  5585. </div>
  5586. </div>
  5587. </div>
  5588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5589. 未提交
  5590. </div>
  5591. <div
  5592. class="noWorksS"
  5593. v-if="noWorksS && noWorksS[toolIndex].length"
  5594. >
  5595. <div
  5596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5597. :key="sIndex"
  5598. class="noWorksName"
  5599. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  5600. >
  5601. <el-tooltip effect="dark" :content="s.student" placement="top">
  5602. <span>{{ s.student }}</span>
  5603. </el-tooltip>
  5604. </div>
  5605. </div>
  5606. </div>
  5607. <div
  5608. v-if="
  5609. tType &&
  5610. ((tType == 2 && sIsOpen == true) ||
  5611. tType == 1 ||
  5612. tType == 4) &&
  5613. tool.tool.indexOf(3) != -1
  5614. "
  5615. class="worksBox"
  5616. >
  5617. <div
  5618. class="zuoyeYulan"
  5619. style="display: flex;justify-content: space-between;align-items: center;"
  5620. v-if="
  5621. (worksStudent.length &&
  5622. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5623. "
  5624. >
  5625. <div class="worksTop">
  5626. <div>作业预览</div>
  5627. <div
  5628. class="corOpen"
  5629. @click="contract(toolIndex)"
  5630. v-if="
  5631. (isCloseList[toolIndex].isCloseBoolean) &&
  5632. isCloseList[toolIndex].isClose == 0
  5633. "
  5634. >
  5635. 折叠
  5636. </div>
  5637. <div
  5638. class="corOpen"
  5639. @click="contract(toolIndex)"
  5640. v-if="isCloseList[toolIndex].isClose == 1"
  5641. >
  5642. 展开
  5643. </div>
  5644. </div>
  5645. <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">
  5646. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  5647. 一键重置
  5648. </div>
  5649. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  5650. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5651. AI评分
  5652. </div>
  5653. <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]
  5654. .taskDetail,tool)" >
  5655. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5656. AI评分
  5657. </div>
  5658. <div class="ScoreBtn" v-else >
  5659. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  5660. 正在评分
  5661. </div>
  5662. </div>
  5663. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5664. </div>
  5665. <div
  5666. class="group_workBox"
  5667. v-for="(g, gindex) in courseGroup.group"
  5668. :key="gindex"
  5669. >
  5670. <div class="group_box">
  5671. <div class="group_title">
  5672. <el-tooltip
  5673. class="item"
  5674. effect="light"
  5675. :content="g.name"
  5676. placement="top"
  5677. >
  5678. <div class="group_name">{{ g.name }}</div>
  5679. </el-tooltip>
  5680. </div>
  5681. <div
  5682. class="group_work"
  5683. v-if="
  5684. g.works &&
  5685. g.works.length &&
  5686. g.works[toolIndex].length
  5687. "
  5688. >
  5689. <div
  5690. class="works"
  5691. style="
  5692. width: 200px;
  5693. height: 140px;
  5694. margin: 10px 10px 10px 0;
  5695. border-radius: 15px;
  5696. box-shadow: 0 0 6px 1px #dfdada;
  5697. "
  5698. v-for="(w, wIndex) in g.works[toolIndex]"
  5699. :key="wIndex"
  5700. :class="w.type == 1 ? 'isTypeOne' : ''"
  5701. >
  5702. <div class="workImg">
  5703. <img
  5704. :src="w.works"
  5705. @click="previewImg(w.works,w)"
  5706. alt
  5707. />
  5708. <div
  5709. class="answerScore"
  5710. v-if="w.score"
  5711. @click.stop="openScore(w)"
  5712. :class="{
  5713. rightW:
  5714. w.userid == userid ||
  5715. tType == 1 ||
  5716. tType == 4,
  5717. }"
  5718. >
  5719. {{ JSON.parse(w.score).wScore }}分
  5720. </div>
  5721. <div
  5722. class="answerScore"
  5723. @click.stop="openScore(w)"
  5724. v-else-if="courseDetail.userid == userid"
  5725. :class="{
  5726. rightW:
  5727. w.userid == userid ||
  5728. tType == 1 ||
  5729. tType == 4,
  5730. }"
  5731. >
  5732. 评分
  5733. </div>
  5734. <img
  5735. class="deleteImg"
  5736. src="../../assets/deleteworks.png"
  5737. v-if="
  5738. w.userid == userid || tType == 1 || tType == 4
  5739. "
  5740. @click.stop="deleteWorks(w.wid)"
  5741. alt
  5742. />
  5743. </div>
  5744. <div class="comment" style="min-width: 200px">
  5745. <div class="worksName">
  5746. <div>{{ w.sName }}</div>
  5747. </div>
  5748. <div class="commentList">
  5749. <div class="commentList">
  5750. <div
  5751. class="commentImg"
  5752. @click="
  5753. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5754. "
  5755. >
  5756. <img
  5757. :src="w.isLikes == true ? likes : noLikes"
  5758. alt=""
  5759. />
  5760. </div>
  5761. <div>{{ w.likesCount }}</div>
  5762. </div>
  5763. <div
  5764. class="commentList"
  5765. style="margin-right: 15px"
  5766. >
  5767. <div
  5768. class="commentImg"
  5769. @click="
  5770. commentOther(
  5771. w,
  5772. toolIndex,
  5773. wIndex,
  5774. null,
  5775. g.id
  5776. )
  5777. "
  5778. >
  5779. <img
  5780. src="../../assets/icon/comment/comment.png"
  5781. alt=""
  5782. />
  5783. </div>
  5784. <div>{{ w.commentCount }}</div>
  5785. </div>
  5786. </div>
  5787. </div>
  5788. </div>
  5789. </div>
  5790. <div class="group_work" v-else>暂无提交作业</div>
  5791. </div>
  5792. </div>
  5793. <div
  5794. :id="'tool-' + toolIndex"
  5795. :style="{
  5796. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  5797. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  5798. }"
  5799. class="worksDetailBox"
  5800. v-if="
  5801. worksStudent.length &&
  5802. worksStudent[toolIndex].length > 0
  5803. "
  5804. >
  5805. <div
  5806. class="works"
  5807. style="
  5808. width: 200px;
  5809. height: 140px;
  5810. margin: 10px 10px 10px 0;
  5811. border-radius: 15px;
  5812. box-shadow: 0 0 6px 1px #dfdada;
  5813. "
  5814. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5815. :key="wIndex"
  5816. >
  5817. <!-- @click="previewImg(w.works)" -->
  5818. <div class="workImg">
  5819. <img
  5820. :src="w.works"
  5821. @click="previewImg(w.works,w)"
  5822. alt
  5823. />
  5824. <div
  5825. class="answerScore"
  5826. v-if="w.score"
  5827. @click.stop="openScore(w)"
  5828. :class="{
  5829. rightW:
  5830. w.userid == userid || tType == 1 || tType == 4,
  5831. }"
  5832. >
  5833. {{ JSON.parse(w.score).wScore }}分
  5834. </div>
  5835. <div
  5836. class="answerScore"
  5837. @click.stop="openScore(w)"
  5838. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  5839. :class="{
  5840. rightW:
  5841. w.userid == userid || tType == 1 || tType == 4,
  5842. }"
  5843. >
  5844. 评分
  5845. </div>
  5846. <!-- <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"> -->
  5847. <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))">
  5848. <el-popover
  5849. placement="top"
  5850. width="318"
  5851. :disabled="AIloading[toolIndex][wIndex].loading"
  5852. trigger="hover"
  5853. >
  5854. <markScore
  5855. :loading="AIloading[toolIndex][wIndex].loading"
  5856. :markScoreVisible="markScoreVisible"
  5857. :ref="`markSco${toolIndex}${wIndex}`"
  5858. @updateLoading=updateLoading
  5859. @updateDocSco=updateDocSco
  5860. @refreshOther=refreshOther
  5861. @markScoreDig=markScoreDig
  5862. :tool="tool"
  5863. :wIndex="wIndex"
  5864. :scoCon="w"
  5865. :toolIndex="toolIndex"
  5866. :key="refreshKey"
  5867. :stage="courseType"
  5868. :task="taskCount"
  5869. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  5870. >
  5871. </markScore>
  5872. <div
  5873. class="answerScore"
  5874. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  5875. slot="reference"
  5876. :class="{
  5877. rightW:
  5878. w.userid == userid ||
  5879. tType == 1 ||
  5880. tType == 4 ||
  5881. w.ateacher == userid,
  5882. }"
  5883. >
  5884. <span v-if="AIloading[toolIndex][wIndex].sco">
  5885. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  5886. </span>
  5887. <span v-else>
  5888. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  5889. </span>
  5890. </div>
  5891. </el-popover>
  5892. </div>
  5893. <img
  5894. class="deleteImg"
  5895. src="../../assets/deleteworks.png"
  5896. v-if="
  5897. w.userid == userid || tType == 1 || tType == 4
  5898. "
  5899. @click.stop="deleteWorks(w.wid)"
  5900. alt
  5901. />
  5902. </div>
  5903. <div class="comment" style="min-width: 200px">
  5904. <div class="worksName">
  5905. <div>{{ w.sName }}</div>
  5906. </div>
  5907. <div class="commentList">
  5908. <div class="commentList">
  5909. <div
  5910. class="commentImg"
  5911. @click="
  5912. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  5913. "
  5914. >
  5915. <img
  5916. :src="w.isLikes == true ? likes : noLikes"
  5917. alt=""
  5918. />
  5919. </div>
  5920. <div>{{ w.likesCount }}</div>
  5921. </div>
  5922. <div class="commentList" style="margin-right: 15px">
  5923. <div
  5924. class="commentImg"
  5925. @click="commentOther(w, toolIndex, wIndex)"
  5926. >
  5927. <img
  5928. src="../../assets/icon/comment/comment.png"
  5929. alt=""
  5930. />
  5931. </div>
  5932. <div>{{ w.commentCount }}</div>
  5933. </div>
  5934. </div>
  5935. </div>
  5936. </div>
  5937. </div>
  5938. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5939. 未提交
  5940. </div>
  5941. <div
  5942. class="noWorksS"
  5943. v-if="noWorksS && noWorksS[toolIndex].length"
  5944. >
  5945. <div
  5946. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5947. :key="sIndex"
  5948. class="noWorksName"
  5949. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  5950. >
  5951. <el-tooltip effect="dark" :content="s.student" placement="top">
  5952. <span>{{ s.student }}</span>
  5953. </el-tooltip>
  5954. </div>
  5955. </div>
  5956. </div>
  5957. <div
  5958. v-if="
  5959. tType &&
  5960. ((tType == 2 && sIsOpen == true) ||
  5961. tType == 1 ||
  5962. tType == 4) &&
  5963. tool.tool.indexOf(6) != -1
  5964. "
  5965. class="worksBox"
  5966. >
  5967. <div
  5968. class="zuoyeYulan"
  5969. v-if="
  5970. (worksStudent.length &&
  5971. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  5972. "
  5973. >
  5974. <div class="worksTop">
  5975. <div>作业预览</div>
  5976. <div
  5977. class="corOpen"
  5978. @click="contract(toolIndex)"
  5979. v-if="
  5980. (isCloseList[toolIndex].isCloseBoolean) &&
  5981. isCloseList[toolIndex].isClose == 0
  5982. "
  5983. >
  5984. 折叠
  5985. </div>
  5986. <div
  5987. class="corOpen"
  5988. @click="contract(toolIndex)"
  5989. v-if="isCloseList[toolIndex].isClose == 1"
  5990. >
  5991. 展开
  5992. </div>
  5993. </div>
  5994. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5995. </div>
  5996. <div
  5997. class="group_workBox"
  5998. v-for="(g, gindex) in courseGroup.group"
  5999. :key="gindex"
  6000. >
  6001. <div class="group_box">
  6002. <div class="group_title">
  6003. <el-tooltip
  6004. class="item"
  6005. effect="light"
  6006. :content="g.name"
  6007. placement="top"
  6008. >
  6009. <div class="group_name">{{ g.name }}</div>
  6010. </el-tooltip>
  6011. </div>
  6012. <div
  6013. class="group_work"
  6014. v-if="
  6015. g.works &&
  6016. g.works.length &&
  6017. g.works[toolIndex].length
  6018. "
  6019. >
  6020. <div
  6021. class="works"
  6022. style="
  6023. width: 200px;
  6024. height: 140px;
  6025. margin: 10px 10px 10px 0;
  6026. border-radius: 15px;
  6027. box-shadow: 0 0 6px 1px #dfdada;
  6028. "
  6029. v-for="(w, wIndex) in g.works[toolIndex]"
  6030. :key="wIndex"
  6031. :class="w.type == 1 ? 'isTypeOne' : ''"
  6032. >
  6033. <div class="workImg">
  6034. <img
  6035. :src="w.works"
  6036. @click="previewImg(w.works,w)"
  6037. alt
  6038. />
  6039. <div
  6040. class="answerScore"
  6041. v-if="w.score"
  6042. @click.stop="openScore(w)"
  6043. :class="{
  6044. rightW:
  6045. w.userid == userid ||
  6046. tType == 1 ||
  6047. tType == 4,
  6048. }"
  6049. >
  6050. {{ JSON.parse(w.score).wScore }}分
  6051. </div>
  6052. <div
  6053. class="answerScore"
  6054. @click.stop="openScore(w)"
  6055. v-else-if="courseDetail.userid == userid"
  6056. :class="{
  6057. rightW:
  6058. w.userid == userid ||
  6059. tType == 1 ||
  6060. tType == 4,
  6061. }"
  6062. >
  6063. 评分
  6064. </div>
  6065. <img
  6066. class="deleteImg"
  6067. src="../../assets/deleteworks.png"
  6068. v-if="
  6069. w.userid == userid || tType == 1 || tType == 4
  6070. "
  6071. @click.stop="deleteWorks(w.wid)"
  6072. alt
  6073. />
  6074. </div>
  6075. <div class="comment" style="min-width: 200px">
  6076. <div class="worksName">
  6077. <div>{{ w.sName }}</div>
  6078. </div>
  6079. <div class="commentList">
  6080. <div class="commentList">
  6081. <div
  6082. class="commentImg"
  6083. @click="
  6084. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6085. "
  6086. >
  6087. <img
  6088. :src="w.isLikes == true ? likes : noLikes"
  6089. alt=""
  6090. />
  6091. </div>
  6092. <div>{{ w.likesCount }}</div>
  6093. </div>
  6094. <div
  6095. class="commentList"
  6096. style="margin-right: 15px"
  6097. >
  6098. <div
  6099. class="commentImg"
  6100. @click="
  6101. commentOther(
  6102. w,
  6103. toolIndex,
  6104. wIndex,
  6105. null,
  6106. g.id
  6107. )
  6108. "
  6109. >
  6110. <img
  6111. src="../../assets/icon/comment/comment.png"
  6112. alt=""
  6113. />
  6114. </div>
  6115. <div>{{ w.commentCount }}</div>
  6116. </div>
  6117. </div>
  6118. </div>
  6119. </div>
  6120. </div>
  6121. <div class="group_work" v-else>暂无提交作业</div>
  6122. </div>
  6123. </div>
  6124. <div
  6125. :id="'tool-' + toolIndex"
  6126. :style="{
  6127. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6128. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6129. }"
  6130. class="worksDetailBox"
  6131. v-if="
  6132. worksStudent.length &&
  6133. worksStudent[toolIndex].length > 0
  6134. "
  6135. >
  6136. <div
  6137. class="works"
  6138. style="
  6139. width: 200px;
  6140. height: 140px;
  6141. margin: 10px 10px 10px 0;
  6142. border-radius: 15px;
  6143. box-shadow: 0 0 6px 1px #dfdada;
  6144. "
  6145. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6146. :key="wIndex"
  6147. >
  6148. <!-- @click="previewImg(w.works)" -->
  6149. <div class="workImg">
  6150. <img
  6151. :src="w.works"
  6152. @click="previewImg(w.works,w)"
  6153. alt
  6154. />
  6155. <div
  6156. class="answerScore"
  6157. v-if="w.score"
  6158. @click.stop="openScore(w)"
  6159. :class="{
  6160. rightW:
  6161. w.userid == userid || tType == 1 || tType == 4,
  6162. }"
  6163. >
  6164. {{ JSON.parse(w.score).wScore }}分
  6165. </div>
  6166. <div
  6167. class="answerScore"
  6168. @click.stop="openScore(w)"
  6169. v-else-if="courseDetail.userid == userid"
  6170. :class="{
  6171. rightW:
  6172. w.userid == userid || tType == 1 || tType == 4,
  6173. }"
  6174. >
  6175. 评分
  6176. </div>
  6177. <img
  6178. class="deleteImg"
  6179. src="../../assets/deleteworks.png"
  6180. v-if="
  6181. w.userid == userid || tType == 1 || tType == 4
  6182. "
  6183. @click.stop="deleteWorks(w.wid)"
  6184. alt
  6185. />
  6186. </div>
  6187. <div class="comment" style="min-width: 200px">
  6188. <div class="worksName">
  6189. <div>{{ w.sName }}</div>
  6190. </div>
  6191. <div class="commentList">
  6192. <div class="commentList">
  6193. <div
  6194. class="commentImg"
  6195. @click="
  6196. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6197. "
  6198. >
  6199. <img
  6200. :src="w.isLikes == true ? likes : noLikes"
  6201. alt=""
  6202. />
  6203. </div>
  6204. <div>{{ w.likesCount }}</div>
  6205. </div>
  6206. <div class="commentList" style="margin-right: 15px">
  6207. <div
  6208. class="commentImg"
  6209. @click="commentOther(w, toolIndex, wIndex)"
  6210. >
  6211. <img
  6212. src="../../assets/icon/comment/comment.png"
  6213. alt=""
  6214. />
  6215. </div>
  6216. <div>{{ w.commentCount }}</div>
  6217. </div>
  6218. </div>
  6219. </div>
  6220. </div>
  6221. </div>
  6222. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6223. 未提交
  6224. </div>
  6225. <div
  6226. class="noWorksS"
  6227. v-if="noWorksS && noWorksS[toolIndex].length"
  6228. >
  6229. <div
  6230. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6231. :key="sIndex"
  6232. class="noWorksName"
  6233. >
  6234. <el-tooltip effect="dark" :content="s.student" placement="top">
  6235. <span>{{ s.student }}</span>
  6236. </el-tooltip>
  6237. </div>
  6238. </div>
  6239. </div>
  6240. <div
  6241. v-if="
  6242. tType &&
  6243. ((tType == 2 && sIsOpen == true) ||
  6244. tType == 1 ||
  6245. tType == 4) &&
  6246. tool.tool.indexOf(7) != -1
  6247. "
  6248. class="worksBox"
  6249. >
  6250. <div
  6251. class="zuoyeYulan"
  6252. style="display: flex;justify-content: space-between;align-items: center;"
  6253. v-if="
  6254. (worksStudent.length &&
  6255. worksStudent[toolIndex].length > 0) || (courseGroup.group && courseGroup.group.length)
  6256. "
  6257. >
  6258. <div class="worksTop">
  6259. <div>作业预览</div>
  6260. <div
  6261. class="corOpen"
  6262. @click="contract(toolIndex)"
  6263. v-if="
  6264. (isCloseList[toolIndex].isCloseBoolean) &&
  6265. isCloseList[toolIndex].isClose == 0
  6266. "
  6267. >
  6268. 折叠
  6269. </div>
  6270. <div
  6271. class="corOpen"
  6272. @click="contract(toolIndex)"
  6273. v-if="isCloseList[toolIndex].isClose == 1"
  6274. >
  6275. 展开
  6276. </div>
  6277. </div>
  6278. <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">
  6279. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  6280. 一键重置
  6281. </div>
  6282. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  6283. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6284. AI评分
  6285. </div>
  6286. <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]
  6287. .taskDetail,tool)" >
  6288. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6289. AI评分
  6290. </div>
  6291. <div class="ScoreBtn" v-else >
  6292. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  6293. 正在评分
  6294. </div>
  6295. </div>
  6296. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6297. </div>
  6298. <div
  6299. class="group_workBox"
  6300. v-for="(g, gindex) in courseGroup.group"
  6301. :key="gindex"
  6302. >
  6303. <div class="group_box">
  6304. <div class="group_title">
  6305. <el-tooltip
  6306. class="item"
  6307. effect="light"
  6308. :content="g.name"
  6309. placement="top"
  6310. >
  6311. <div class="group_name">{{ g.name }}</div>
  6312. </el-tooltip>
  6313. </div>
  6314. <div
  6315. class="group_work"
  6316. v-if="
  6317. g.works &&
  6318. g.works.length &&
  6319. g.works[toolIndex].length
  6320. "
  6321. >
  6322. <div
  6323. class="works"
  6324. style="
  6325. width: 200px;
  6326. height: 140px;
  6327. margin: 10px 10px 10px 0;
  6328. border-radius: 15px;
  6329. box-shadow: 0 0 6px 1px #dfdada;
  6330. "
  6331. v-for="(w, wIndex) in g.works[toolIndex]"
  6332. :key="wIndex"
  6333. :class="w.type == 1 ? 'isTypeOne' : ''"
  6334. >
  6335. <div class="workImg">
  6336. <img
  6337. :src="w.works"
  6338. @click="previewImg(w.works,w)"
  6339. alt
  6340. />
  6341. <div
  6342. class="answerScore"
  6343. v-if="w.score"
  6344. @click.stop="openScore(w)"
  6345. :class="{
  6346. rightW:
  6347. w.userid == userid ||
  6348. tType == 1 ||
  6349. tType == 4,
  6350. }"
  6351. >
  6352. {{ JSON.parse(w.score).wScore }}分
  6353. </div>
  6354. <div
  6355. class="answerScore"
  6356. @click.stop="openScore(w)"
  6357. v-else-if="courseDetail.userid == userid"
  6358. :class="{
  6359. rightW:
  6360. w.userid == userid ||
  6361. tType == 1 ||
  6362. tType == 4,
  6363. }"
  6364. >
  6365. 评分
  6366. </div>
  6367. <img
  6368. class="deleteImg"
  6369. src="../../assets/deleteworks.png"
  6370. v-if="
  6371. w.userid == userid || tType == 1 || tType == 4
  6372. "
  6373. @click.stop="deleteWorks(w.wid)"
  6374. alt
  6375. />
  6376. </div>
  6377. <div class="comment" style="min-width: 200px">
  6378. <div class="worksName">
  6379. <div>{{ w.sName }}</div>
  6380. </div>
  6381. <div class="commentList">
  6382. <div class="commentList">
  6383. <div
  6384. class="commentImg"
  6385. @click="
  6386. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6387. "
  6388. >
  6389. <img
  6390. :src="w.isLikes == true ? likes : noLikes"
  6391. alt=""
  6392. />
  6393. </div>
  6394. <div>{{ w.likesCount }}</div>
  6395. </div>
  6396. <div
  6397. class="commentList"
  6398. style="margin-right: 15px"
  6399. >
  6400. <div
  6401. class="commentImg"
  6402. @click="
  6403. commentOther(
  6404. w,
  6405. toolIndex,
  6406. wIndex,
  6407. null,
  6408. g.id
  6409. )
  6410. "
  6411. >
  6412. <img
  6413. src="../../assets/icon/comment/comment.png"
  6414. alt=""
  6415. />
  6416. </div>
  6417. <div>{{ w.commentCount }}</div>
  6418. </div>
  6419. </div>
  6420. </div>
  6421. </div>
  6422. </div>
  6423. <div class="group_work" v-else>暂无提交作业</div>
  6424. </div>
  6425. </div>
  6426. <div
  6427. :id="'tool-' + toolIndex"
  6428. :style="{
  6429. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6430. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6431. }"
  6432. class="worksDetailBox"
  6433. v-if="
  6434. worksStudent.length &&
  6435. worksStudent[toolIndex].length > 0
  6436. "
  6437. >
  6438. <div
  6439. class="works"
  6440. style="
  6441. width: 200px;
  6442. height: 140px;
  6443. margin: 10px 10px 10px 0;
  6444. border-radius: 15px;
  6445. box-shadow: 0 0 6px 1px #dfdada;
  6446. "
  6447. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6448. :key="wIndex"
  6449. >
  6450. <!-- @click="previewImg(w.works)" -->
  6451. <div class="workImg">
  6452. <img
  6453. :src="w.works"
  6454. @click="previewImg(w.works,w)"
  6455. alt
  6456. />
  6457. <div
  6458. class="answerScore"
  6459. v-if="w.score"
  6460. @click.stop="openScore(w)"
  6461. :class="{
  6462. rightW:
  6463. w.userid == userid || tType == 1 || tType == 4,
  6464. }"
  6465. >
  6466. {{ JSON.parse(w.score).wScore }}分
  6467. </div>
  6468. <div
  6469. class="answerScore"
  6470. @click.stop="openScore(w)"
  6471. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  6472. :class="{
  6473. rightW:
  6474. w.userid == userid || tType == 1 || tType == 4,
  6475. }"
  6476. >
  6477. 评分
  6478. </div>
  6479. <!-- <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"> -->
  6480. <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))">
  6481. <el-popover
  6482. placement="top"
  6483. width="318"
  6484. :disabled="AIloading[toolIndex][wIndex].loading"
  6485. trigger="hover"
  6486. >
  6487. <markScore
  6488. :loading="AIloading[toolIndex][wIndex].loading"
  6489. :markScoreVisible="markScoreVisible"
  6490. :ref="`markSco${toolIndex}${wIndex}`"
  6491. @updateLoading=updateLoading
  6492. @updateDocSco=updateDocSco
  6493. @refreshOther=refreshOther
  6494. @markScoreDig=markScoreDig
  6495. :tool="tool"
  6496. :wIndex="wIndex"
  6497. :scoCon="w"
  6498. :toolIndex="toolIndex"
  6499. :key="refreshKey"
  6500. :stage="courseType"
  6501. :task="taskCount"
  6502. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  6503. >
  6504. </markScore>
  6505. <div
  6506. class="answerScore"
  6507. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  6508. slot="reference"
  6509. :class="{
  6510. rightW:
  6511. w.userid == userid ||
  6512. tType == 1 ||
  6513. tType == 4 ||
  6514. w.ateacher == userid,
  6515. }"
  6516. >
  6517. <span v-if="AIloading[toolIndex][wIndex].sco">
  6518. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  6519. </span>
  6520. <span v-else>
  6521. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  6522. </span>
  6523. </div>
  6524. </el-popover>
  6525. </div>
  6526. <img
  6527. class="deleteImg"
  6528. src="../../assets/deleteworks.png"
  6529. v-if="
  6530. w.userid == userid || tType == 1 || tType == 4
  6531. "
  6532. @click.stop="deleteWorks(w.wid)"
  6533. alt
  6534. />
  6535. </div>
  6536. <div class="comment" style="min-width: 200px">
  6537. <div class="worksName">
  6538. <div>{{ w.sName }}</div>
  6539. </div>
  6540. <div class="commentList">
  6541. <div class="commentList">
  6542. <div
  6543. class="commentImg"
  6544. @click="
  6545. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6546. "
  6547. >
  6548. <img
  6549. :src="w.isLikes == true ? likes : noLikes"
  6550. alt=""
  6551. />
  6552. </div>
  6553. <div>{{ w.likesCount }}</div>
  6554. </div>
  6555. <div class="commentList" style="margin-right: 15px">
  6556. <div
  6557. class="commentImg"
  6558. @click="commentOther(w, toolIndex, wIndex)"
  6559. >
  6560. <img
  6561. src="../../assets/icon/comment/comment.png"
  6562. alt=""
  6563. />
  6564. </div>
  6565. <div>{{ w.commentCount }}</div>
  6566. </div>
  6567. </div>
  6568. </div>
  6569. </div>
  6570. </div>
  6571. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6572. 未提交
  6573. </div>
  6574. <div
  6575. class="noWorksS"
  6576. v-if="noWorksS && noWorksS[toolIndex].length"
  6577. >
  6578. <div
  6579. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6580. :key="sIndex"
  6581. class="noWorksName"
  6582. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  6583. >
  6584. <el-tooltip effect="dark" :content="s.student" placement="top">
  6585. <span>{{ s.student }}</span>
  6586. </el-tooltip>
  6587. </div>
  6588. </div>
  6589. </div>
  6590. <div
  6591. v-if="
  6592. tType &&
  6593. ((tType == 2 && sIsOpen == true) ||
  6594. tType == 1 ||
  6595. tType == 4) &&
  6596. tool.tool.indexOf(26) != -1
  6597. "
  6598. class="worksBox"
  6599. >
  6600. <div
  6601. class="zuoyeYulan"
  6602. v-if="
  6603. worksStudent.length &&
  6604. worksStudent[toolIndex].length > 0
  6605. "
  6606. >
  6607. <div class="worksTop">
  6608. <div>作业预览</div>
  6609. <div
  6610. class="corOpen"
  6611. @click="contract(toolIndex)"
  6612. v-if="
  6613. (isCloseList[toolIndex].isCloseBoolean) &&
  6614. isCloseList[toolIndex].isClose == 0
  6615. "
  6616. >
  6617. 折叠
  6618. </div>
  6619. <div
  6620. class="corOpen"
  6621. @click="contract(toolIndex)"
  6622. v-if="isCloseList[toolIndex].isClose == 1"
  6623. >
  6624. 展开
  6625. </div>
  6626. </div>
  6627. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6628. </div>
  6629. <div
  6630. :id="'tool-' + toolIndex"
  6631. :style="{
  6632. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6633. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6634. }"
  6635. class="worksDetailBox"
  6636. v-if="
  6637. worksStudent.length &&
  6638. worksStudent[toolIndex].length > 0
  6639. "
  6640. >
  6641. <div
  6642. class="works"
  6643. style="width: 240px; height: 140px; overflow: hidden"
  6644. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6645. :key="wIndex"
  6646. :class="w.type == 1 ? 'isTypeOne' : ''"
  6647. >
  6648. <div class="workImg" v-if="w.type == 0">
  6649. <img
  6650. :src="w.works"
  6651. @click="previewImg(w.works,w)"
  6652. alt
  6653. />
  6654. <img
  6655. class="deleteImg"
  6656. src="../../assets/deleteworks.png"
  6657. v-if="
  6658. w.userid == userid || tType == 1 || tType == 4
  6659. "
  6660. @click.stop="deleteWorks(w.wid)"
  6661. alt
  6662. />
  6663. </div>
  6664. <div class="workImg" v-if="w.type == 1">
  6665. <img :src="word" @click="openFile(w.works)" alt />
  6666. <img
  6667. class="deleteImg"
  6668. src="../../assets/deleteworks.png"
  6669. v-if="
  6670. w.userid == userid || tType == 1 || tType == 4
  6671. "
  6672. @click.stop="deleteWorks(w.wid)"
  6673. alt
  6674. />
  6675. </div>
  6676. <div class="worksName">
  6677. <div>{{ w.sName }}</div>
  6678. </div>
  6679. </div>
  6680. </div>
  6681. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6682. 未提交
  6683. </div>
  6684. <div
  6685. class="noWorksS"
  6686. v-if="noWorksS && noWorksS[toolIndex].length"
  6687. >
  6688. <div
  6689. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6690. :key="sIndex"
  6691. class="noWorksName"
  6692. >
  6693. <el-tooltip effect="dark" :content="s.student" placement="top">
  6694. <span>{{ s.student }}</span>
  6695. </el-tooltip>
  6696. </div>
  6697. </div>
  6698. </div>
  6699. <div
  6700. v-if="
  6701. tType &&
  6702. ((tType == 2 && sIsOpen == true) ||
  6703. tType == 1 ||
  6704. tType == 4) &&
  6705. tool.tool.indexOf(40) != -1
  6706. "
  6707. class="worksBox"
  6708. >
  6709. <div
  6710. class="zuoyeYulan"
  6711. v-if="
  6712. worksStudent.length &&
  6713. worksStudent[toolIndex].length > 0
  6714. "
  6715. >
  6716. <div class="worksTop">
  6717. <div>作业预览</div>
  6718. <div
  6719. class="corOpen"
  6720. @click="contract(toolIndex)"
  6721. v-if="
  6722. (isCloseList[toolIndex].isCloseBoolean) &&
  6723. isCloseList[toolIndex].isClose == 0
  6724. "
  6725. >
  6726. 折叠
  6727. </div>
  6728. <div
  6729. class="corOpen"
  6730. @click="contract(toolIndex)"
  6731. v-if="isCloseList[toolIndex].isClose == 1"
  6732. >
  6733. 展开
  6734. </div>
  6735. </div>
  6736. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6737. </div>
  6738. <div
  6739. :id="'tool-' + toolIndex"
  6740. :style="{
  6741. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6742. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6743. }"
  6744. class="worksDetailBox"
  6745. v-if="
  6746. worksStudent.length &&
  6747. worksStudent[toolIndex].length > 0
  6748. "
  6749. >
  6750. <div
  6751. class="works"
  6752. style="
  6753. width: 200px;
  6754. height: 140px;
  6755. margin: 10px 10px 10px 0;
  6756. border-radius: 15px;
  6757. box-shadow: 0 0 6px 1px #dfdada;
  6758. "
  6759. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6760. :key="wIndex"
  6761. :class="w.type == 1 ? 'isTypeOne' : ''"
  6762. >
  6763. <div class="workImg">
  6764. <img
  6765. src="../../assets/icon/works/noImg.png"
  6766. @click="openPj(w.works, toolIndex)"
  6767. alt
  6768. />
  6769. <img
  6770. class="deleteImg"
  6771. src="../../assets/deleteworks.png"
  6772. v-if="
  6773. w.userid == userid || tType == 1 || tType == 4
  6774. "
  6775. @click.stop="deleteWorks(w.wid)"
  6776. alt
  6777. />
  6778. </div>
  6779. <div class="comment" style="min-width: 200px">
  6780. <div class="worksName">
  6781. <div>{{ w.sName }}</div>
  6782. </div>
  6783. <div class="commentList">
  6784. <div class="commentList">
  6785. <div
  6786. class="commentImg"
  6787. @click="
  6788. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  6789. "
  6790. >
  6791. <img
  6792. :src="w.isLikes == true ? likes : noLikes"
  6793. alt=""
  6794. />
  6795. </div>
  6796. <div>{{ w.likesCount }}</div>
  6797. </div>
  6798. <div class="commentList" style="margin-right: 15px">
  6799. <div
  6800. class="commentImg"
  6801. @click="commentOther(w, toolIndex, wIndex)"
  6802. >
  6803. <img
  6804. src="../../assets/icon/comment/comment.png"
  6805. alt=""
  6806. />
  6807. </div>
  6808. <div>{{ w.commentCount }}</div>
  6809. </div>
  6810. </div>
  6811. </div>
  6812. </div>
  6813. </div>
  6814. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6815. 未提交
  6816. </div>
  6817. <div
  6818. class="noWorksS"
  6819. v-if="noWorksS && noWorksS[toolIndex].length"
  6820. >
  6821. <div
  6822. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6823. :key="sIndex"
  6824. class="noWorksName"
  6825. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  6826. >
  6827. <el-tooltip effect="dark" :content="s.student" placement="top">
  6828. <span>{{ s.student }}</span>
  6829. </el-tooltip>
  6830. </div>
  6831. </div>
  6832. </div>
  6833. <div
  6834. v-if="
  6835. tType &&
  6836. tType == 2 &&
  6837. !sIsOpen &&
  6838. tool.tool.indexOf(40) != -1
  6839. "
  6840. class="worksBox"
  6841. >
  6842. <div
  6843. class="zuoyeYulan"
  6844. v-if="workStudent[toolIndex].length > 0"
  6845. >
  6846. <span class="worksTitle">作业预览</span>
  6847. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6848. </div>
  6849. <div
  6850. class="worksDetailBox"
  6851. v-if="workStudent[toolIndex].length > 0"
  6852. >
  6853. <div
  6854. class="works"
  6855. style="
  6856. width: 200px;
  6857. height: 140px;
  6858. margin: 10px 10px 10px 0;
  6859. "
  6860. v-for="(w, wIndex) in workStudent[toolIndex]"
  6861. :key="wIndex"
  6862. >
  6863. <div class="workImg">
  6864. <img
  6865. src="../../assets/icon/works/noImg.png"
  6866. @click="openPj(w.works, toolIndex)"
  6867. alt
  6868. />
  6869. <img
  6870. class="deleteImg"
  6871. src="../../assets/deleteworks.png"
  6872. v-if="
  6873. w.userid == userid || tType == 1 || tType == 4
  6874. "
  6875. @click.stop="deleteWorks(w.wid)"
  6876. alt
  6877. />
  6878. </div>
  6879. <div class="worksName">
  6880. <div>{{ w.sName }}</div>
  6881. </div>
  6882. </div>
  6883. </div>
  6884. </div>
  6885. <div
  6886. v-if="
  6887. tType &&
  6888. ((tType == 2 && sIsOpen == true) ||
  6889. tType == 1 ||
  6890. tType == 4) &&
  6891. tool.tool.indexOf(41) != -1
  6892. "
  6893. >
  6894. <AnswerData2
  6895. v-if="
  6896. worksStudent.length &&
  6897. worksStudent[toolIndex].length > 0
  6898. "
  6899. :problemJson="tool.selectJson.answer"
  6900. :people="worksStudent[toolIndex]"
  6901. ></AnswerData2>
  6902. </div>
  6903. <div
  6904. v-if="
  6905. tType &&
  6906. ((tType == 2 && sIsOpen == true) ||
  6907. tType == 1 ||
  6908. tType == 4) &&
  6909. tool.tool.indexOf(41) != -1
  6910. "
  6911. class="worksBox"
  6912. >
  6913. <div
  6914. class="zuoyeYulan"
  6915. v-if="
  6916. worksStudent.length &&
  6917. worksStudent[toolIndex].length > 0
  6918. "
  6919. >
  6920. <div class="worksTop">
  6921. <div>作业预览</div>
  6922. <div
  6923. class="corOpen"
  6924. @click="contract(toolIndex)"
  6925. v-if="
  6926. (isCloseList[toolIndex].isCloseBoolean) &&
  6927. isCloseList[toolIndex].isClose == 0
  6928. "
  6929. >
  6930. 折叠
  6931. </div>
  6932. <div
  6933. class="corOpen"
  6934. @click="contract(toolIndex)"
  6935. v-if="isCloseList[toolIndex].isClose == 1"
  6936. >
  6937. 展开
  6938. </div>
  6939. </div>
  6940. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6941. </div>
  6942. <div
  6943. :id="'tool-' + toolIndex"
  6944. :style="{
  6945. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  6946. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  6947. }"
  6948. class="worksDetailBox"
  6949. v-if="
  6950. worksStudent.length &&
  6951. worksStudent[toolIndex].length > 0
  6952. "
  6953. >
  6954. <div
  6955. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6956. :key="wIndex"
  6957. class="isWorksName2"
  6958. @click="openXz(w, toolIndex)"
  6959. >
  6960. {{ w.sName }}
  6961. <img
  6962. class="deleteImg deleteImg2"
  6963. src="../../assets/deleteworks.png"
  6964. v-if="w.userid == userid || tType == 1 || tType == 4"
  6965. @click.stop="deleteWorks(w.wid)"
  6966. alt
  6967. />
  6968. </div>
  6969. <!-- <div
  6970. class="works"
  6971. style="
  6972. width: 200px;
  6973. height: 140px;
  6974. margin: 10px 10px 10px 0;
  6975. border-radius: 15px;
  6976. box-shadow: 0 0 6px 1px #dfdada;
  6977. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  6978. :class="w.type == 5 ? 'isTypeOne' : ''">
  6979. <div class="workImg">
  6980. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  6981. </div>
  6982. <div class="worksName">
  6983. <div>{{ w.sName }}</div>
  6984. </div>
  6985. </div> -->
  6986. </div>
  6987. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6988. 未提交
  6989. </div>
  6990. <div
  6991. class="noWorksS"
  6992. v-if="noWorksS && noWorksS[toolIndex].length"
  6993. >
  6994. <div
  6995. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6996. :key="sIndex"
  6997. class="noWorksName"
  6998. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  6999. >
  7000. <el-tooltip effect="dark" :content="s.student" placement="top">
  7001. <span>{{ s.student }}</span>
  7002. </el-tooltip>
  7003. </div>
  7004. </div>
  7005. </div>
  7006. <div
  7007. v-if="
  7008. tType &&
  7009. tType == 2 &&
  7010. !sIsOpen &&
  7011. tool.tool.indexOf(41) != -1
  7012. "
  7013. class="worksBox"
  7014. >
  7015. <div
  7016. class="zuoyeYulan"
  7017. v-if="workStudent[toolIndex].length > 0"
  7018. >
  7019. <span class="worksTitle">作业预览</span>
  7020. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7021. </div>
  7022. <div
  7023. class="worksDetailBox"
  7024. v-if="workStudent[toolIndex].length > 0"
  7025. >
  7026. <div
  7027. class="works"
  7028. style="
  7029. width: 200px;
  7030. height: 140px;
  7031. margin: 10px 10px 10px 0;
  7032. "
  7033. v-for="(w, wIndex) in workStudent[toolIndex]"
  7034. :key="wIndex"
  7035. >
  7036. <div class="workImg">
  7037. <img
  7038. src="../../assets/icon/works/noImg.png"
  7039. @click="openXz(w, toolIndex)"
  7040. alt
  7041. />
  7042. <img
  7043. class="deleteImg"
  7044. src="../../assets/deleteworks.png"
  7045. v-if="
  7046. w.userid == userid || tType == 1 || tType == 4
  7047. "
  7048. @click.stop="deleteWorks(w.wid)"
  7049. alt
  7050. />
  7051. </div>
  7052. <div class="worksName">
  7053. <div>{{ w.sName }}</div>
  7054. </div>
  7055. </div>
  7056. </div>
  7057. </div>
  7058. <div v-if="false" class="xuan_right_box">
  7059. <div
  7060. class="tool_right_box"
  7061. v-for="(item, index) in tool.sentenceList"
  7062. :key="index"
  7063. >
  7064. <div>
  7065. <span
  7066. style="word-break: break-all; white-space: normal"
  7067. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  7068. >
  7069. </div>
  7070. <div class="right_box_xuan">
  7071. <span>正确率</span>
  7072. <span>{{
  7073. (checkJson[toolIndex][index].right
  7074. ? checkJson[toolIndex][index].right
  7075. : 0) + "%"
  7076. }}</span>
  7077. </div>
  7078. <div class="right_box_xuan">
  7079. <span>答对人数</span>
  7080. <span>{{
  7081. checkJson[toolIndex][index].rightPerson.length
  7082. }}</span>
  7083. </div>
  7084. </div>
  7085. </div>
  7086. <div
  7087. v-if="
  7088. tType &&
  7089. ((tType == 2 && sIsOpen == true) ||
  7090. tType == 1 ||
  7091. tType == 4) &&
  7092. tool.tool.indexOf(47) != -1
  7093. "
  7094. >
  7095. <AnswerData
  7096. v-if="
  7097. checkJson[toolIndex].length &&
  7098. (tool.sentenceList || tool.sentenceList.length > 0)
  7099. "
  7100. :people="checkJson[toolIndex]"
  7101. ></AnswerData>
  7102. </div>
  7103. <div
  7104. v-if="
  7105. tType &&
  7106. tType == 2 &&
  7107. !sIsOpen &&
  7108. tool.tool.indexOf(47) != -1
  7109. "
  7110. class="worksBox"
  7111. >
  7112. <div
  7113. class="zuoyeYulan"
  7114. v-if="workStudent[toolIndex].length > 0"
  7115. >
  7116. <span class="worksTitle">作业预览</span>
  7117. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7118. </div>
  7119. <div
  7120. class="worksDetailBox"
  7121. v-if="workStudent[toolIndex].length > 0"
  7122. >
  7123. <div
  7124. class="works"
  7125. style="
  7126. width: 200px;
  7127. height: 140px;
  7128. margin: 10px 10px 10px 0;
  7129. "
  7130. v-for="(w, wIndex) in workStudent[toolIndex]"
  7131. :key="wIndex"
  7132. >
  7133. <!-- @click="openXz(w, toolIndex)" -->
  7134. <div class="workImg" @click="openSen(w, toolIndex)">
  7135. <img src="../../assets/icon/works/noImg.png" alt />
  7136. <img
  7137. class="deleteImg"
  7138. src="../../assets/deleteworks.png"
  7139. v-if="
  7140. w.userid == userid || tType == 1 || tType == 4
  7141. "
  7142. @click.stop="deleteWorks(w.wid)"
  7143. alt
  7144. />
  7145. </div>
  7146. <div class="worksName">
  7147. <div>
  7148. {{ w.sName }}
  7149. </div>
  7150. </div>
  7151. </div>
  7152. </div>
  7153. </div>
  7154. <div
  7155. v-if="
  7156. tType &&
  7157. ((tType == 2 && sIsOpen == true) ||
  7158. tType == 1 ||
  7159. tType == 4) &&
  7160. tool.tool.indexOf(47) != -1
  7161. "
  7162. class="worksBox"
  7163. >
  7164. <div
  7165. class="zuoyeYulan"
  7166. v-if="
  7167. worksStudent.length &&
  7168. worksStudent[toolIndex].length > 0
  7169. "
  7170. >
  7171. <div class="worksTop">
  7172. <div>作业预览</div>
  7173. <div
  7174. class="corOpen"
  7175. @click="contract(toolIndex)"
  7176. v-if="
  7177. (isCloseList[toolIndex].isCloseBoolean) &&
  7178. isCloseList[toolIndex].isClose == 0
  7179. "
  7180. >
  7181. 折叠
  7182. </div>
  7183. <div
  7184. class="corOpen"
  7185. @click="contract(toolIndex)"
  7186. v-if="isCloseList[toolIndex].isClose == 1"
  7187. >
  7188. 展开
  7189. </div>
  7190. </div>
  7191. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7192. </div>
  7193. <div
  7194. :id="'tool-' + toolIndex"
  7195. :style="{
  7196. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7197. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7198. }"
  7199. class="worksDetailBox"
  7200. v-if="
  7201. worksStudent.length &&
  7202. worksStudent[toolIndex].length > 0
  7203. "
  7204. >
  7205. <!-- @click="openXz(w, toolIndex)" -->
  7206. <div
  7207. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7208. :key="wIndex"
  7209. class="isWorksName2"
  7210. @click="openSen(w, toolIndex)"
  7211. >
  7212. {{ w.sName }}
  7213. <img
  7214. class="deleteImg deleteImg2"
  7215. src="../../assets/deleteworks.png"
  7216. v-if="w.userid == userid || tType == 1 || tType == 4"
  7217. @click.stop="deleteWorks(w.wid)"
  7218. alt
  7219. />
  7220. </div>
  7221. </div>
  7222. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7223. 未提交
  7224. </div>
  7225. <div
  7226. class="noWorksS"
  7227. v-if="noWorksS && noWorksS[toolIndex].length"
  7228. >
  7229. <div
  7230. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7231. :key="sIndex"
  7232. class="noWorksName"
  7233. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  7234. >
  7235. <el-tooltip effect="dark" :content="s.student" placement="top">
  7236. <span>{{ s.student }}</span>
  7237. </el-tooltip>
  7238. </div>
  7239. </div>
  7240. </div>
  7241. <div
  7242. v-if="
  7243. tType &&
  7244. ((tType == 2 && sIsOpen == true) ||
  7245. tType == 1 ||
  7246. tType == 4) &&
  7247. tool.tool.indexOf(48) != -1
  7248. "
  7249. class="worksBox"
  7250. >
  7251. <div
  7252. class="zuoyeYulan"
  7253. style="display: flex;justify-content: space-between;align-items: center;"
  7254. v-if="
  7255. worksStudent.length &&
  7256. worksStudent[toolIndex].length > 0
  7257. "
  7258. >
  7259. <div class="worksTop">
  7260. <div>作业预览</div>
  7261. <div
  7262. class="corOpen"
  7263. @click="contract(toolIndex)"
  7264. v-if="
  7265. (isCloseList[toolIndex].isCloseBoolean) &&
  7266. isCloseList[toolIndex].isClose == 0
  7267. "
  7268. >
  7269. 折叠
  7270. </div>
  7271. <div
  7272. class="corOpen"
  7273. @click="contract(toolIndex)"
  7274. v-if="isCloseList[toolIndex].isClose == 1"
  7275. >
  7276. 展开
  7277. </div>
  7278. </div>
  7279. <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">
  7280. <div style="margin-right:10px" class="ScoreBtn" @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,worksStudent)" >
  7281. 一键重置
  7282. </div>
  7283. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7284. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7285. AI评分
  7286. </div>
  7287. <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]
  7288. .taskDetail,tool)" >
  7289. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7290. AI评分
  7291. </div>
  7292. <div class="ScoreBtn" v-else >
  7293. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7294. 正在评分
  7295. </div>
  7296. </div>
  7297. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7298. </div>
  7299. <div
  7300. :id="'tool-' + toolIndex"
  7301. :style="{
  7302. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7303. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7304. }"
  7305. class="worksDetailBox"
  7306. v-if="
  7307. worksStudent.length &&
  7308. worksStudent[toolIndex].length > 0
  7309. "
  7310. >
  7311. <div
  7312. class="works"
  7313. style="
  7314. width: 200px;
  7315. height: 140px;
  7316. margin: 10px 10px 10px 0;
  7317. border-radius: 15px;
  7318. box-shadow: 0 0 6px 1px #dfdada;
  7319. "
  7320. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7321. :key="wIndex"
  7322. :class="w.type == 1 ? 'isTypeOne' : ''"
  7323. >
  7324. <div class="workImg">
  7325. <img :src="word" @click="openTable(w)" alt />
  7326. <!-- @click="openFile(w.works)" -->
  7327. <div
  7328. class="answerScore"
  7329. v-if="w.score"
  7330. @click.stop="openScore(w)"
  7331. :class="{
  7332. rightW:
  7333. w.userid == userid ||
  7334. tType == 1 ||
  7335. tType == 4 ||
  7336. w.ateacher == userid,
  7337. }"
  7338. >
  7339. {{ JSON.parse(w.score).wScore }}分
  7340. </div>
  7341. <div
  7342. class="answerScore"
  7343. @click.stop="openScore(w)"
  7344. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7345. :class="{
  7346. rightW:
  7347. w.userid == userid ||
  7348. tType == 1 ||
  7349. tType == 4 ||
  7350. w.ateacher == userid,
  7351. }"
  7352. >
  7353. 评分
  7354. </div>
  7355. <!-- <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"> -->
  7356. <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))">
  7357. <el-popover
  7358. placement="top"
  7359. width="318"
  7360. :disabled="AIloading[toolIndex][wIndex].loading"
  7361. trigger="hover"
  7362. >
  7363. <markScore
  7364. :loading="AIloading[toolIndex][wIndex].loading"
  7365. :markScoreVisible="markScoreVisible"
  7366. :ref="`markSco${toolIndex}${wIndex}`"
  7367. @updateLoading=updateLoading
  7368. @updateDocSco=updateDocSco
  7369. @refreshOther=refreshOther
  7370. @markScoreDig=markScoreDig
  7371. :tool="tool"
  7372. :wIndex="wIndex"
  7373. :scoCon="w"
  7374. :toolIndex="toolIndex"
  7375. :key="refreshKey"
  7376. :stage="courseType"
  7377. :task="taskCount"
  7378. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7379. >
  7380. </markScore>
  7381. <div
  7382. class="answerScore"
  7383. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7384. slot="reference"
  7385. :class="{
  7386. rightW:
  7387. w.userid == userid ||
  7388. tType == 1 ||
  7389. tType == 4 ||
  7390. w.ateacher == userid,
  7391. }"
  7392. >
  7393. <span v-if="AIloading[toolIndex][wIndex].sco">
  7394. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7395. </span>
  7396. <span v-else>
  7397. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7398. </span>
  7399. </div>
  7400. </el-popover>
  7401. </div>
  7402. <img
  7403. class="deleteImg"
  7404. src="../../assets/deleteworks.png"
  7405. v-if="
  7406. w.userid == userid || tType == 1 || tType == 4
  7407. "
  7408. @click.stop="deleteWorks(w.wid)"
  7409. alt
  7410. />
  7411. </div>
  7412. <div class="comment" style="min-width: 200px">
  7413. <div class="worksName">
  7414. <div>{{ w.sName }}</div>
  7415. </div>
  7416. <div class="commentList">
  7417. <div class="commentList">
  7418. <div
  7419. class="commentImg"
  7420. @click="
  7421. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7422. "
  7423. >
  7424. <img
  7425. :src="w.isLikes == true ? likes : noLikes"
  7426. alt=""
  7427. />
  7428. </div>
  7429. <div>{{ w.likesCount }}</div>
  7430. </div>
  7431. <div class="commentList" style="margin-right: 15px">
  7432. <div
  7433. class="commentImg"
  7434. @click="commentOther(w, toolIndex, wIndex)"
  7435. >
  7436. <img
  7437. src="../../assets/icon/comment/comment.png"
  7438. alt=""
  7439. />
  7440. </div>
  7441. <div>{{ w.commentCount }}</div>
  7442. </div>
  7443. </div>
  7444. </div>
  7445. </div>
  7446. </div>
  7447. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7448. 未提交
  7449. </div>
  7450. <div
  7451. class="noWorksS"
  7452. v-if="noWorksS && noWorksS[toolIndex].length"
  7453. >
  7454. <div
  7455. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7456. :key="sIndex"
  7457. class="noWorksName"
  7458. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  7459. >
  7460. <el-tooltip effect="dark" :content="s.student" placement="top">
  7461. <span>{{ s.student }}</span>
  7462. </el-tooltip>
  7463. </div>
  7464. </div>
  7465. </div>
  7466. <div
  7467. v-if="
  7468. tType &&
  7469. tType == 2 &&
  7470. !sIsOpen &&
  7471. tool.tool.indexOf(48) != -1
  7472. "
  7473. class="worksBox"
  7474. >
  7475. <div
  7476. class="zuoyeYulan"
  7477. v-if="workStudent[toolIndex].length > 0"
  7478. >
  7479. <span class="worksTitle">作业预览</span>
  7480. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7481. </div>
  7482. <div
  7483. class="worksDetailBox"
  7484. v-if="workStudent[toolIndex].length > 0"
  7485. >
  7486. <div
  7487. class="works"
  7488. style="
  7489. width: 200px;
  7490. height: 140px;
  7491. margin: 10px 10px 10px 0;
  7492. box-shadow: 0 0 6px 1px #dfdada;
  7493. "
  7494. v-for="(w, wIndex) in workStudent[toolIndex]"
  7495. :key="wIndex"
  7496. >
  7497. <div class="workImg">
  7498. <img :src="word" @click="openTable(w)" alt />
  7499. <div
  7500. class="answerScore"
  7501. v-if="w.score"
  7502. @click.stop="openScore(w)"
  7503. :class="{
  7504. rightW:
  7505. w.userid == userid || tType == 1 || tType == 4,
  7506. }"
  7507. >
  7508. {{ JSON.parse(w.score).wScore }}分
  7509. </div>
  7510. <div
  7511. class="answerScore"
  7512. @click.stop="openScore(w)"
  7513. v-else-if="courseDetail.userid == userid"
  7514. :class="{
  7515. rightW:
  7516. w.userid == userid || tType == 1 || tType == 4,
  7517. }"
  7518. >
  7519. 评分
  7520. </div>
  7521. <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))">
  7522. <el-popover
  7523. placement="top"
  7524. width="318"
  7525. trigger="hover"
  7526. >
  7527. <markScore
  7528. :loading="AIloading[toolIndex][wIndex].loading"
  7529. :markScoreVisible="markScoreVisible"
  7530. :ref="`markSco${toolIndex}${wIndex}`"
  7531. @updateLoading=updateLoading
  7532. @updateDocSco=updateDocSco
  7533. @refreshOther=refreshOther
  7534. @markScoreDig=markScoreDig
  7535. :tool="tool"
  7536. :wIndex="wIndex"
  7537. :scoCon="w"
  7538. :toolIndex="toolIndex"
  7539. :key="refreshKey"
  7540. :stage="courseType"
  7541. :task="taskCount"
  7542. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7543. >
  7544. </markScore>
  7545. <div
  7546. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7547. slot="reference"
  7548. >
  7549. <span v-if="AIloading[toolIndex][wIndex].sco">
  7550. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  7551. </span>
  7552. <span v-else>
  7553. 评分
  7554. </span>
  7555. </div>
  7556. </el-popover>
  7557. </div>
  7558. <img
  7559. class="deleteImg"
  7560. src="../../assets/deleteworks.png"
  7561. v-if="
  7562. w.userid == userid || tType == 1 || tType == 4
  7563. "
  7564. @click.stop="deleteWorks(w.wid)"
  7565. alt
  7566. />
  7567. </div>
  7568. <div class="worksName">
  7569. <div>{{ w.sName }}</div>
  7570. </div>
  7571. </div>
  7572. </div>
  7573. </div>
  7574. <div
  7575. v-if="
  7576. tType &&
  7577. ((tType == 2 && sIsOpen == true) ||
  7578. tType == 1 ||
  7579. tType == 4) &&
  7580. tool.tool.indexOf(52) != -1
  7581. "
  7582. class="worksBox"
  7583. >
  7584. <div
  7585. class="zuoyeYulan"
  7586. style="display: flex;justify-content: space-between;align-items: center;"
  7587. v-if="
  7588. worksStudent.length &&
  7589. worksStudent[toolIndex].length > 0
  7590. "
  7591. >
  7592. <div class="worksTop">
  7593. <div>作业预览</div>
  7594. <div
  7595. class="corOpen"
  7596. @click="contract(toolIndex)"
  7597. v-if="
  7598. (isCloseList[toolIndex].isCloseBoolean) &&
  7599. isCloseList[toolIndex].isClose == 0
  7600. "
  7601. >
  7602. 折叠
  7603. </div>
  7604. <div
  7605. class="corOpen"
  7606. @click="contract(toolIndex)"
  7607. v-if="isCloseList[toolIndex].isClose == 1"
  7608. >
  7609. 展开
  7610. </div>
  7611. </div>
  7612. <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">
  7613. <!-- <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"> -->
  7614. <div @click="resetLoopEva(worksStudent[toolIndex],chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,courseType,taskCount,toolIndex,tool.toolDetail,tool)" style="margin-right:10px" class="ScoreBtn">
  7615. 一键重置
  7616. </div>
  7617. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum" >
  7618. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7619. AI评分
  7620. </div>
  7621. <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]
  7622. .taskDetail,tool)" >
  7623. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7624. AI评分
  7625. </div>
  7626. <div class="ScoreBtn" v-else >
  7627. <img src="../../assets/icon/newIcons/rootImg.png" alt="">
  7628. 正在评分
  7629. </div>
  7630. </div>
  7631. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7632. </div>
  7633. <div
  7634. :id="'tool-' + toolIndex"
  7635. :style="{
  7636. height:isCloseList[toolIndex].isClose == 1 ? retrnToolHeight('tool-' + toolIndex) : 'auto',
  7637. overflow: isCloseList[toolIndex].isClose == 1 ? 'hidden' : 'unset'
  7638. }"
  7639. class="worksDetailBox"
  7640. v-if="
  7641. worksStudent.length &&
  7642. worksStudent[toolIndex].length > 0
  7643. "
  7644. >
  7645. <div
  7646. class="works"
  7647. style="
  7648. width: 200px;
  7649. height: 140px;
  7650. margin: 10px 10px 10px 0;
  7651. border-radius: 15px;
  7652. box-shadow: 0 0 6px 1px #dfdada;
  7653. "
  7654. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7655. :key="wIndex"
  7656. :class="w.type == 1 ? 'isTypeOne' : ''"
  7657. >
  7658. <div class="workImg">
  7659. <img :src="word" @click="openWord(w)" alt />
  7660. <!-- @click="openFile(w.works)" -->
  7661. <div
  7662. class="answerScore"
  7663. v-if="w.score"
  7664. @click.stop="openScore(w)"
  7665. :class="{
  7666. rightW:
  7667. w.userid == userid ||
  7668. tType == 1 ||
  7669. tType == 4 ||
  7670. w.ateacher == userid,
  7671. }"
  7672. >
  7673. {{ JSON.parse(w.score).wScore }}分
  7674. </div>
  7675. <div
  7676. class="answerScore"
  7677. @click.stop="openScore(w)"
  7678. v-else-if="courseDetail.userid == userid && courseDetail.state != 5 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"
  7679. :class="{
  7680. rightW:
  7681. w.userid == userid ||
  7682. tType == 1 ||
  7683. tType == 4 ||
  7684. w.ateacher == userid,
  7685. }"
  7686. >
  7687. 评分
  7688. </div>
  7689. <!-- <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"> -->
  7690. <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))">
  7691. <!-- <div
  7692. class="answerScore"
  7693. @click="markScoreDig(w.userid,toolIndex)"
  7694. :class="{
  7695. rightW:
  7696. w.userid == userid ||
  7697. tType == 1 ||
  7698. tType == 4 ||
  7699. w.ateacher == userid,
  7700. }"
  7701. >
  7702. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  7703. </div> -->
  7704. <!-- @show="handleShow(toolIndex,wIndex)"
  7705. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  7706. <el-popover
  7707. placement="top"
  7708. width="318"
  7709. :disabled="AIloading[toolIndex][wIndex].loading"
  7710. trigger="hover"
  7711. >
  7712. <markScore
  7713. :loading="AIloading[toolIndex][wIndex].loading"
  7714. :markScoreVisible="markScoreVisible"
  7715. :ref="`markSco${toolIndex}${wIndex}`"
  7716. @updateLoading=updateLoading
  7717. @updateDocSco=updateDocSco
  7718. @refreshOther=refreshOther
  7719. @markScoreDig=markScoreDig
  7720. :tool="tool"
  7721. :wIndex="wIndex"
  7722. :scoCon="w"
  7723. :toolIndex="toolIndex"
  7724. :key="refreshKey"
  7725. :stage="courseType"
  7726. :task="taskCount"
  7727. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7728. >
  7729. </markScore>
  7730. <div
  7731. class="answerScore"
  7732. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7733. slot="reference"
  7734. :class="{
  7735. rightW:
  7736. w.userid == userid ||
  7737. tType == 1 ||
  7738. tType == 4 ||
  7739. w.ateacher == userid,
  7740. }"
  7741. >
  7742. <span v-if="AIloading[toolIndex][wIndex].sco">
  7743. {{ AIloading[toolIndex][wIndex].loading ? '评分中' : AIloading[toolIndex][wIndex].sco + "分" }}
  7744. </span>
  7745. <span v-else>
  7746. {{AIloading[toolIndex][wIndex].loading? '评分中' :'评分'}}
  7747. </span>
  7748. </div>
  7749. </el-popover>
  7750. </div>
  7751. <img
  7752. class="deleteImg"
  7753. src="../../assets/deleteworks.png"
  7754. v-if="
  7755. w.userid == userid || tType == 1 || tType == 4
  7756. "
  7757. @click.stop="deleteWorks(w.wid)"
  7758. alt
  7759. />
  7760. </div>
  7761. <div class="comment" style="min-width: 200px">
  7762. <div class="worksName">
  7763. <div>{{ w.sName }}</div>
  7764. </div>
  7765. <div class="commentList">
  7766. <div class="commentList">
  7767. <div
  7768. class="commentImg"
  7769. @click="
  7770. isLikes(w.wid, userid, 1, null, w.isLikes,w.sName)
  7771. "
  7772. >
  7773. <img
  7774. :src="w.isLikes == true ? likes : noLikes"
  7775. alt=""
  7776. />
  7777. </div>
  7778. <div>{{ w.likesCount }}</div>
  7779. </div>
  7780. <div class="commentList" style="margin-right: 15px">
  7781. <div
  7782. class="commentImg"
  7783. @click="commentOther(w, toolIndex, wIndex)"
  7784. >
  7785. <img
  7786. src="../../assets/icon/comment/comment.png"
  7787. alt=""
  7788. />
  7789. </div>
  7790. <div>{{ w.commentCount }}</div>
  7791. </div>
  7792. </div>
  7793. </div>
  7794. </div>
  7795. </div>
  7796. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7797. 未提交
  7798. </div>
  7799. <div
  7800. class="noWorksS"
  7801. v-if="noWorksS && noWorksS[toolIndex].length"
  7802. >
  7803. <div
  7804. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7805. :key="sIndex"
  7806. class="noWorksName"
  7807. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  7808. >
  7809. <el-tooltip effect="dark" :content="s.student" placement="top">
  7810. <span>{{ s.student }}</span>
  7811. </el-tooltip>
  7812. </div>
  7813. </div>
  7814. </div>
  7815. <div
  7816. v-if="
  7817. tType &&
  7818. tType == 2 &&
  7819. !sIsOpen &&
  7820. tool.tool.indexOf(52) != -1
  7821. "
  7822. class="worksBox"
  7823. >
  7824. <div
  7825. class="zuoyeYulan"
  7826. v-if="workStudent[toolIndex].length > 0"
  7827. >
  7828. <span class="worksTitle">作业预览</span>
  7829. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7830. </div>
  7831. <div
  7832. class="worksDetailBox"
  7833. v-if="workStudent[toolIndex].length > 0"
  7834. >
  7835. <div
  7836. class="works"
  7837. style="
  7838. width: 200px;
  7839. height: 140px;
  7840. margin: 10px 10px 10px 0;
  7841. box-shadow: 0 0 6px 1px #dfdada;
  7842. "
  7843. v-for="(w, wIndex) in workStudent[toolIndex]"
  7844. :key="wIndex"
  7845. >
  7846. <div class="workImg">
  7847. <img :src="word" @click="openWord(w)" alt />
  7848. <div
  7849. class="answerScore"
  7850. v-if="w.score"
  7851. @click.stop="openScore(w)"
  7852. :class="{
  7853. rightW:
  7854. w.userid == userid || tType == 1 || tType == 4,
  7855. }"
  7856. >
  7857. {{ JSON.parse(w.score).wScore }}分
  7858. </div>
  7859. <div
  7860. class="answerScore"
  7861. @click.stop="openScore(w)"
  7862. v-else-if="courseDetail.userid == userid"
  7863. :class="{
  7864. rightW:
  7865. w.userid == userid || tType == 1 || tType == 4,
  7866. }"
  7867. >
  7868. 评分
  7869. </div>
  7870. <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))">
  7871. <el-popover
  7872. placement="top"
  7873. width="318"
  7874. trigger="hover"
  7875. >
  7876. <markScore
  7877. :loading="AIloading[toolIndex][wIndex].loading"
  7878. :markScoreVisible="markScoreVisible"
  7879. :ref="`markSco${toolIndex}${wIndex}`"
  7880. @updateLoading=updateLoading
  7881. @updateDocSco=updateDocSco
  7882. @refreshOther=refreshOther
  7883. @markScoreDig=markScoreDig
  7884. :tool="tool"
  7885. :wIndex="wIndex"
  7886. :scoCon="w"
  7887. :toolIndex="toolIndex"
  7888. :key="refreshKey"
  7889. :stage="courseType"
  7890. :task="taskCount"
  7891. :scoTit="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList"
  7892. >
  7893. </markScore>
  7894. <div
  7895. @click="markScoreDig2(w.sName,worksStudent,w.userid,toolIndex,chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList,AIloading[toolIndex][wIndex].loading,tool)"
  7896. slot="reference"
  7897. >
  7898. <span v-if="AIloading[toolIndex][wIndex].sco">
  7899. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  7900. </span>
  7901. <span v-else>
  7902. 评分
  7903. </span>
  7904. </div>
  7905. </el-popover>
  7906. </div>
  7907. <img
  7908. class="deleteImg"
  7909. src="../../assets/deleteworks.png"
  7910. v-if="
  7911. w.userid == userid || tType == 1 || tType == 4
  7912. "
  7913. @click.stop="deleteWorks(w.wid)"
  7914. alt
  7915. />
  7916. </div>
  7917. <div class="worksName">
  7918. <div>{{ w.sName }}</div>
  7919. </div>
  7920. </div>
  7921. </div>
  7922. </div>
  7923. <div
  7924. v-if="tool.tool.indexOf(49) != -1"
  7925. class="xuan_right_box"
  7926. style="margin: 0 15px 0 25px; width: 93%"
  7927. >
  7928. <div
  7929. v-if="courseDetail.userid == userid"
  7930. style="
  7931. display: flex;
  7932. justify-content: flex-end;
  7933. margin-right: 10px;
  7934. "
  7935. >
  7936. <el-button
  7937. type="primary"
  7938. size="small"
  7939. @click="addTools(49, toolIndex, taskCount)"
  7940. >分组设置</el-button
  7941. >
  7942. </div>
  7943. <div
  7944. v-if="groupStudentUid[toolIndex]"
  7945. class="group_staic_box"
  7946. >
  7947. <div
  7948. v-for="(gp, gd) in tool.groupJson.group"
  7949. :key="gd"
  7950. class="group_staic"
  7951. >
  7952. <span> {{ gp.name }}</span>
  7953. <span>
  7954. 目前人数{{
  7955. groupStudentUid[toolIndex][gd].length
  7956. }}人</span
  7957. >
  7958. </div>
  7959. </div>
  7960. </div>
  7961. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  7962. <div
  7963. class="zuoyeYulan"
  7964. v-if="
  7965. worksStudent.length &&
  7966. worksStudent[toolIndex].length > 0
  7967. "
  7968. >
  7969. <span class="worksTitle">作业预览</span>
  7970. </div>
  7971. <div>
  7972. <div
  7973. class="group_workBox"
  7974. v-for="(g, gindex) in tool.groupJson.group"
  7975. :key="gindex"
  7976. >
  7977. <div
  7978. class="group_box"
  7979. v-if="
  7980. groupStudentUid[toolIndex] &&
  7981. worksStudent[toolIndex] &&
  7982. (worksStudent[toolIndex][gindex].length ||
  7983. groupStudentUid[toolIndex][gindex].indexOf(
  7984. userid
  7985. ) != -1)
  7986. "
  7987. >
  7988. <div class="group_title">
  7989. <el-tooltip
  7990. class="item"
  7991. effect="light"
  7992. :content="g.name"
  7993. placement="top"
  7994. >
  7995. <div class="group_name">{{ g.name }}</div>
  7996. </el-tooltip>
  7997. <el-button
  7998. type="primary"
  7999. v-if="
  8000. groupStudentUid[toolIndex][gindex].indexOf(
  8001. userid
  8002. ) != -1
  8003. "
  8004. @click="groupUpload(toolIndex, taskCount, gindex)"
  8005. >上传作业</el-button
  8006. >
  8007. </div>
  8008. <div class="group_work">
  8009. <div
  8010. class="works"
  8011. style="
  8012. width: 200px;
  8013. height: 140px;
  8014. margin: 10px 10px 10px 0;
  8015. border-radius: 15px;
  8016. box-shadow: 0 0 6px 1px #dfdada;
  8017. "
  8018. v-for="(w, wIndex) in worksStudent[toolIndex][
  8019. gindex
  8020. ]"
  8021. :key="wIndex"
  8022. :class="w.type == 1 ? 'isTypeOne' : ''"
  8023. >
  8024. <div class="workImg" v-if="w.type == 0">
  8025. <img
  8026. :src="w.works"
  8027. @click="previewImg(w.works,w)"
  8028. alt
  8029. />
  8030. <div
  8031. class="answerScore"
  8032. v-if="w.score"
  8033. @click.stop="openScore(w)"
  8034. :class="{
  8035. rightW:
  8036. w.userid == userid ||
  8037. tType == 1 ||
  8038. tType == 4 ||
  8039. w.ateacher == userid,
  8040. }"
  8041. >
  8042. {{ JSON.parse(w.score).wScore }}分
  8043. </div>
  8044. <div
  8045. class="answerScore"
  8046. @click.stop="openScore(w)"
  8047. v-else-if="courseDetail.userid == userid"
  8048. :class="{
  8049. rightW:
  8050. w.userid == userid ||
  8051. tType == 1 ||
  8052. tType == 4 ||
  8053. w.ateacher == userid,
  8054. }"
  8055. >
  8056. 评分
  8057. </div>
  8058. <img
  8059. class="deleteImg"
  8060. src="../../assets/deleteworks.png"
  8061. v-if="
  8062. w.userid == userid ||
  8063. tType == 1 ||
  8064. tType == 4
  8065. "
  8066. @click.stop="deleteWorks(w.wid)"
  8067. alt
  8068. />
  8069. </div>
  8070. <div class="workImg" v-if="w.type == 1">
  8071. <img
  8072. :src="word"
  8073. @click="openFile(w.works)"
  8074. alt
  8075. />
  8076. <!-- @click="openFile(w.works)" -->
  8077. <div
  8078. class="answerScore"
  8079. v-if="w.score"
  8080. @click.stop="openScore(w)"
  8081. :class="{
  8082. rightW:
  8083. w.userid == userid ||
  8084. tType == 1 ||
  8085. tType == 4 ||
  8086. w.ateacher == userid,
  8087. }"
  8088. >
  8089. {{ JSON.parse(w.score).wScore }}分
  8090. </div>
  8091. <div
  8092. class="answerScore"
  8093. @click.stop="openScore(w)"
  8094. v-else-if="courseDetail.userid == userid"
  8095. :class="{
  8096. rightW:
  8097. w.userid == userid ||
  8098. tType == 1 ||
  8099. tType == 4 ||
  8100. w.ateacher == userid,
  8101. }"
  8102. >
  8103. 评分
  8104. </div>
  8105. <img
  8106. class="deleteImg"
  8107. src="../../assets/deleteworks.png"
  8108. v-if="
  8109. w.userid == userid ||
  8110. tType == 1 ||
  8111. tType == 4
  8112. "
  8113. @click.stop="deleteWorks(w.wid)"
  8114. alt
  8115. />
  8116. </div>
  8117. <div class="workImg" v-if="w.type == 3">
  8118. <img
  8119. style="cursor: pointer"
  8120. :src="video"
  8121. @click="openVideo(w)"
  8122. alt
  8123. />
  8124. <!-- @click="openVideo(w.works)" -->
  8125. <div
  8126. class="answerScore"
  8127. v-if="w.score"
  8128. @click.stop="openScore(w)"
  8129. :class="{
  8130. rightW:
  8131. w.userid == userid ||
  8132. tType == 1 ||
  8133. tType == 4 ||
  8134. w.ateacher == userid,
  8135. }"
  8136. >
  8137. {{ JSON.parse(w.score).wScore }}分
  8138. </div>
  8139. <div
  8140. class="answerScore"
  8141. @click.stop="openScore(w)"
  8142. v-else-if="courseDetail.userid == userid"
  8143. :class="{
  8144. rightW:
  8145. w.userid == userid ||
  8146. tType == 1 ||
  8147. tType == 4 ||
  8148. w.ateacher == userid,
  8149. }"
  8150. >
  8151. 评分
  8152. </div>
  8153. <img
  8154. class="deleteImg"
  8155. src="../../assets/deleteworks.png"
  8156. v-if="
  8157. w.userid == userid ||
  8158. tType == 1 ||
  8159. tType == 4
  8160. "
  8161. @click.stop="deleteWorks(w.wid)"
  8162. alt
  8163. />
  8164. </div>
  8165. <div class="workImg" v-if="w.type == 12">
  8166. <img
  8167. style="cursor: pointer"
  8168. :src="word2"
  8169. @click="downloadFile(w.works)"
  8170. alt
  8171. />
  8172. <!-- @click="openVideo(w.works)" -->
  8173. <div
  8174. class="answerScore"
  8175. v-if="w.score"
  8176. @click.stop="openScore(w)"
  8177. :class="{
  8178. rightW:
  8179. w.userid == userid ||
  8180. tType == 1 ||
  8181. tType == 4 ||
  8182. w.ateacher == userid,
  8183. }"
  8184. >
  8185. {{ JSON.parse(w.score).wScore }}分
  8186. </div>
  8187. <div
  8188. class="answerScore"
  8189. @click.stop="openScore(w)"
  8190. v-else-if="courseDetail.userid == userid"
  8191. :class="{
  8192. rightW:
  8193. w.userid == userid ||
  8194. tType == 1 ||
  8195. tType == 4 ||
  8196. w.ateacher == userid,
  8197. }"
  8198. >
  8199. 评分
  8200. </div>
  8201. <img
  8202. class="deleteImg"
  8203. src="../../assets/deleteworks.png"
  8204. v-if="
  8205. w.userid == userid ||
  8206. tType == 1 ||
  8207. tType == 4
  8208. "
  8209. @click.stop="deleteWorks(w.wid)"
  8210. alt
  8211. />
  8212. </div>
  8213. <div class="comment" style="min-width: 200px">
  8214. <div class="worksName">
  8215. <div>{{ w.sName }}</div>
  8216. </div>
  8217. <div class="commentList">
  8218. <div class="commentList">
  8219. <div
  8220. class="commentImg"
  8221. @click="
  8222. isLikes(
  8223. w.wid,
  8224. userid,
  8225. 1,
  8226. null,
  8227. w.isLikes,
  8228. w.sName
  8229. )
  8230. "
  8231. >
  8232. <img
  8233. :src="
  8234. w.isLikes == true ? likes : noLikes
  8235. "
  8236. alt=""
  8237. />
  8238. </div>
  8239. <div>{{ w.likesCount }}</div>
  8240. </div>
  8241. <div
  8242. class="commentList"
  8243. style="margin-right: 15px"
  8244. >
  8245. <div
  8246. class="commentImg"
  8247. @click="
  8248. commentOther(
  8249. w,
  8250. toolIndex,
  8251. wIndex,
  8252. gindex
  8253. )
  8254. "
  8255. >
  8256. <img
  8257. src="../../assets/icon/comment/comment.png"
  8258. alt=""
  8259. />
  8260. </div>
  8261. <div>{{ w.commentCount }}</div>
  8262. </div>
  8263. </div>
  8264. </div>
  8265. </div>
  8266. </div>
  8267. </div>
  8268. </div>
  8269. </div>
  8270. </div>
  8271. <div style="width:92%;margin: 0 0 0 40px;" v-if="courseDetail.state == 5 && tool.eList && tool.eList.length">
  8272. <evaTable :eList="tool.eList"></evaTable>
  8273. </div>
  8274. </div>
  8275. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  8276. 上传文件
  8277. <input
  8278. type="file"
  8279. accept="image/png, image/gif, image/jpeg"
  8280. style="display: none"
  8281. @change="beforeUpload1($event, 2, index)"
  8282. />
  8283. </div>-->
  8284. </div>
  8285. </div>
  8286. <!-- <div
  8287. class="vedioBox"
  8288. style="margin-top: 10px"
  8289. v-if="
  8290. courseDetail.userid == userid ||
  8291. (courseDetail.course_teacher &&
  8292. courseDetail.course_teacher.indexOf(userid) != -1)
  8293. "
  8294. :style="{
  8295. borderRadius:
  8296. !(
  8297. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8298. .toolChoose[0].tool &&
  8299. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8300. .toolChoose[0].tool.length > 0
  8301. ) &&
  8302. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8303. .taskDetail == '' &&
  8304. vChapterData[taskCount].length == 0 &&
  8305. fileC[taskCount].length == 0
  8306. ? '0 0 20px 20px'
  8307. : '20px',
  8308. }"
  8309. >
  8310. <div
  8311. class="queTop"
  8312. @click="isClose = !isClose"
  8313. style="
  8314. padding: 15px 0 15px 37px;
  8315. justify-content: space-between;
  8316. "
  8317. >
  8318. <div class="queTopTitle">新增工具</div>
  8319. <div class="queTopRight">
  8320. <div class="queTopClose" v-if="isClose == 0">
  8321. 展开
  8322. <div class="closeImg">
  8323. <img src="../../assets/icon/newIcon/close.png" alt="" />
  8324. </div>
  8325. </div>
  8326. <div class="queTopClose" v-if="isClose == 1">
  8327. 折叠
  8328. <div class="openImg">
  8329. <img src="../../assets/icon/newIcon/open.png" alt="" />
  8330. </div>
  8331. </div>
  8332. <el-button
  8333. style="margin: 0 30px 0 auto"
  8334. type="primary"
  8335. size="small"
  8336. v-if="isClose == 1 && checktoolArray.length > 0"
  8337. @click.stop="addToolChoose"
  8338. >确定</el-button
  8339. >
  8340. </div>
  8341. </div>
  8342. <div
  8343. class="tool_work_box"
  8344. :style="isClose == 0 ? 'display:none' : 'display:block'"
  8345. >
  8346. <div class="tool_box">
  8347. <div class="tool_type_box">
  8348. <div class="chooseWho">
  8349. <div
  8350. :class="toolType == 0 ? 'isChooseActive' : ''"
  8351. @click="(toolType = 0), $forceUpdate()"
  8352. >
  8353. 互动类
  8354. </div>
  8355. <div
  8356. :class="toolType == 1 ? 'isChooseActive' : ''"
  8357. @click="(toolType = 1), $forceUpdate()"
  8358. >
  8359. 思维类
  8360. </div>
  8361. <div
  8362. :class="toolType == 2 ? 'isChooseActive' : ''"
  8363. @click="(toolType = 2), $forceUpdate()"
  8364. >
  8365. 测评类
  8366. </div>
  8367. <div
  8368. :class="toolType == 3 ? 'isChooseActive' : ''"
  8369. @click="(toolType = 3), $forceUpdate()"
  8370. >
  8371. 编程类
  8372. </div>
  8373. <div
  8374. :class="toolType == 5 ? 'isChooseActive' : ''"
  8375. @click="(toolType = 5), $forceUpdate()"
  8376. >
  8377. 学科类
  8378. </div>
  8379. </div>
  8380. </div>
  8381. <div>
  8382. <div class="toolSort" v-if="toolType == 0">
  8383. <div class="tool">
  8384. <div class="whiteBIcon" @click="addTools2(10)">
  8385. <img
  8386. src="../../assets/icon/thirdToolList/time.png"
  8387. alt
  8388. />
  8389. <div style="margin: 5px 0">倒计时</div>
  8390. </div>
  8391. <div class="check" @click="addTools2(10)">
  8392. <img
  8393. src="../../assets/icon/checkNo.png"
  8394. alt
  8395. v-if="checktoolArray.indexOf(10) == -1"
  8396. />
  8397. <div class="checkDiv" v-else>
  8398. <img src="../../assets/icon/checkedIs.png" alt /><span
  8399. >已选择</span
  8400. >
  8401. </div>
  8402. </div>
  8403. </div>
  8404. <div class="tool">
  8405. <div class="whiteBIcon" @click="addTools2(65)">
  8406. <img
  8407. src="../../assets/icon/firstToolList/pickPeople.png"
  8408. alt
  8409. />
  8410. <div style="margin: 5px 0">挑人</div>
  8411. </div>
  8412. <div class="check" @click="addTools2(65)">
  8413. <img
  8414. src="../../assets/icon/checkNo.png"
  8415. alt
  8416. v-if="checktoolArray.indexOf(65) == -1"
  8417. />
  8418. <div class="checkDiv" v-else>
  8419. <img src="../../assets/icon/checkedIs.png" alt /><span
  8420. >已选择</span
  8421. >
  8422. </div>
  8423. </div>
  8424. </div>
  8425. </div>
  8426. <div class="toolSort" v-if="toolType == 1">
  8427. <div class="tool">
  8428. <div class="whiteBIcon" @click="addTools2(7)">
  8429. <img
  8430. src="../../assets/icon/secondToolList/mindNetwork.png"
  8431. alt
  8432. />
  8433. <div style="margin: 5px 0">思维网格</div>
  8434. </div>
  8435. <div class="check" @click="addTools2(7)">
  8436. <img
  8437. src="../../assets/icon/checkNo.png"
  8438. alt
  8439. v-if="checktoolArray.indexOf(7) == -1"
  8440. />
  8441. <div class="checkDiv" v-else>
  8442. <img src="../../assets/icon/checkedIs.png" alt /><span
  8443. >已选择</span
  8444. >
  8445. </div>
  8446. </div>
  8447. </div>
  8448. <div class="tool">
  8449. <div class="whiteBIcon" @click="addTools2(1)">
  8450. <img
  8451. src="../../assets/icon/secondToolList/whiteBoard.png"
  8452. alt
  8453. />
  8454. <div style="margin: 5px 0">电子白板</div>
  8455. </div>
  8456. <div class="check" @click="addTools2(1)">
  8457. <img
  8458. src="../../assets/icon/checkNo.png"
  8459. alt
  8460. v-if="checktoolArray.indexOf(1) == -1"
  8461. />
  8462. <div class="checkDiv" v-else>
  8463. <img src="../../assets/icon/checkedIs.png" alt /><span
  8464. >已选择</span
  8465. >
  8466. </div>
  8467. </div>
  8468. </div>
  8469. <div class="tool">
  8470. <div class="whiteBIcon" @click="addTools2(52)">
  8471. <img
  8472. src="../../assets/icon/fourthToolList/text.png"
  8473. alt
  8474. />
  8475. <div style="margin: 5px 0">文档</div>
  8476. </div>
  8477. <div class="check" @click="addTools2(52)">
  8478. <img
  8479. src="../../assets/icon/checkNo.png"
  8480. alt
  8481. v-if="checktoolArray.indexOf(52) == -1"
  8482. />
  8483. <div class="checkDiv" v-else>
  8484. <img src="../../assets/icon/checkedIs.png" alt /><span
  8485. >已选择</span
  8486. >
  8487. </div>
  8488. </div>
  8489. </div>
  8490. <div class="tool">
  8491. <div class="whiteBIcon" @click="addTools2(3)">
  8492. <img
  8493. src="../../assets/icon/secondToolList/mindMapping.png"
  8494. alt
  8495. />
  8496. <div style="margin: 5px 0">思维导图</div>
  8497. </div>
  8498. <div class="check" @click="addTools2(3)">
  8499. <img
  8500. src="../../assets/icon/checkNo.png"
  8501. alt
  8502. v-if="checktoolArray.indexOf(3) == -1"
  8503. />
  8504. <div class="checkDiv" v-else>
  8505. <img src="../../assets/icon/checkedIs.png" alt /><span
  8506. >已选择</span
  8507. >
  8508. </div>
  8509. </div>
  8510. </div>
  8511. <div class="tool">
  8512. <div class="whiteBIcon" @click="addTools2(48)">
  8513. <img
  8514. src="../../assets/icon/fourthToolList/table.png"
  8515. alt
  8516. />
  8517. <div style="margin: 5px 0">表格</div>
  8518. </div>
  8519. <div class="check" @click="addTools2(48)">
  8520. <img
  8521. src="../../assets/icon/checkNo.png"
  8522. alt
  8523. v-if="checktoolArray.indexOf(48) == -1"
  8524. />
  8525. <div class="checkDiv" v-else>
  8526. <img src="../../assets/icon/checkedIs.png" alt /><span
  8527. >已选择</span
  8528. >
  8529. </div>
  8530. </div>
  8531. </div>
  8532. </div>
  8533. <div class="toolSort" v-if="toolType == 6">
  8534. <div v-show="tooC == 49">
  8535. <img
  8536. @click="addTools(tooC, toolIndex, taskCount)"
  8537. src="../../assets/icon/fourthToolList/group.png"
  8538. alt
  8539. />
  8540. <div style="margin: 5px 0">学生分组</div>
  8541. </div>
  8542. </div>
  8543. <div class="toolSort" v-if="toolType == 2">
  8544. <div class="tool">
  8545. <div class="whiteBIcon" @click="addTools2(16)">
  8546. <img
  8547. src="../../assets/icon/thirdToolList/work.png"
  8548. alt
  8549. />
  8550. <div style="margin: 5px 0">作业提交</div>
  8551. </div>
  8552. <div class="check" @click="addTools2(16)">
  8553. <img
  8554. src="../../assets/icon/checkNo.png"
  8555. alt
  8556. v-if="checktoolArray.indexOf(16) == -1"
  8557. />
  8558. <div class="checkDiv" v-else>
  8559. <img src="../../assets/icon/checkedIs.png" alt /><span
  8560. >已选择</span
  8561. >
  8562. </div>
  8563. </div>
  8564. </div>
  8565. <div class="tool">
  8566. <div class="whiteBIcon" @click="addTools2(50)">
  8567. <img
  8568. src="../../assets/icon/thirdToolList/plwork.png"
  8569. alt
  8570. />
  8571. <div style="margin: 5px 0">批量上传</div>
  8572. </div>
  8573. <div class="check" @click="addTools2(50)">
  8574. <img
  8575. src="../../assets/icon/checkNo.png"
  8576. alt
  8577. v-if="checktoolArray.indexOf(50) == -1"
  8578. />
  8579. <div class="checkDiv" v-else>
  8580. <img src="../../assets/icon/checkedIs.png" alt /><span
  8581. >已选择</span
  8582. >
  8583. </div>
  8584. </div>
  8585. </div>
  8586. </div>
  8587. <div class="toolSort" v-if="toolType == 3">
  8588. <div class="tool">
  8589. <div class="whiteBIcon" @click="addTools2(18)">
  8590. <img
  8591. src="../../assets/icon/thirdToolList/trainPlatform.png"
  8592. alt
  8593. />
  8594. <div style="margin: 5px 0">训练平台</div>
  8595. </div>
  8596. <div class="check" @click="addTools2(18)">
  8597. <img
  8598. src="../../assets/icon/checkNo.png"
  8599. alt
  8600. v-if="checktoolArray.indexOf(18) == -1"
  8601. />
  8602. <div class="checkDiv" v-else>
  8603. <img src="../../assets/icon/checkedIs.png" alt /><span
  8604. >已选择</span
  8605. >
  8606. </div>
  8607. </div>
  8608. </div>
  8609. <div class="tool">
  8610. <div class="whiteBIcon" @click="addTools2(21)">
  8611. <img
  8612. src="../../assets/icon/fourthToolList/program.png"
  8613. alt
  8614. />
  8615. <div style="margin: 5px 0">AIoT Blockly</div>
  8616. </div>
  8617. <div class="check" @click="addTools2(21)">
  8618. <img
  8619. src="../../assets/icon/checkNo.png"
  8620. alt
  8621. v-if="checktoolArray.indexOf(21) == -1"
  8622. />
  8623. <div class="checkDiv" v-else>
  8624. <img src="../../assets/icon/checkedIs.png" alt /><span
  8625. >已选择</span
  8626. >
  8627. </div>
  8628. </div>
  8629. </div>
  8630. <div class="tool">
  8631. <div class="whiteBIcon" @click="addTools2(23)">
  8632. <img
  8633. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  8634. alt
  8635. />
  8636. <div style="margin: 5px 0">AI Python</div>
  8637. </div>
  8638. <div class="check" @click="addTools2(23)">
  8639. <img
  8640. src="../../assets/icon/checkNo.png"
  8641. alt
  8642. v-if="checktoolArray.indexOf(23) == -1"
  8643. />
  8644. <div class="checkDiv" v-else>
  8645. <img src="../../assets/icon/checkedIs.png" alt /><span
  8646. >已选择</span
  8647. >
  8648. </div>
  8649. </div>
  8650. </div>
  8651. <div class="tool">
  8652. <div class="whiteBIcon" @click="addTools2(24)">
  8653. <img
  8654. src="../../assets/icon/fourthToolList/AIprogram.png"
  8655. alt
  8656. />
  8657. <div style="margin: 5px 0">AI Blockly</div>
  8658. </div>
  8659. <div class="check" @click="addTools2(24)">
  8660. <img
  8661. src="../../assets/icon/checkNo.png"
  8662. alt
  8663. v-if="checktoolArray.indexOf(24) == -1"
  8664. />
  8665. <div class="checkDiv" v-else>
  8666. <img src="../../assets/icon/checkedIs.png" alt /><span
  8667. >已选择</span
  8668. >
  8669. </div>
  8670. </div>
  8671. </div>
  8672. <div class="tool">
  8673. <div class="whiteBIcon" @click="addTools2(32)">
  8674. <img
  8675. src="../../assets/icon/thirdToolList/code.png"
  8676. alt
  8677. />
  8678. <div style="margin: 5px 0">源码编辑</div>
  8679. </div>
  8680. <div class="check" @click="addTools2(32)">
  8681. <img
  8682. src="../../assets/icon/checkNo.png"
  8683. alt
  8684. v-if="checktoolArray.indexOf(32) == -1"
  8685. />
  8686. <div class="checkDiv" v-else>
  8687. <img src="../../assets/icon/checkedIs.png" alt /><span
  8688. >已选择</span
  8689. >
  8690. </div>
  8691. </div>
  8692. </div>
  8693. <div class="tool">
  8694. <div class="whiteBIcon" @click="addTools2(57)">
  8695. <img
  8696. src="../../assets/icon/fourthToolList/cocopi.png"
  8697. alt
  8698. />
  8699. <div style="margin: 5px 0">CocoPi</div>
  8700. </div>
  8701. <div class="check" @click="addTools2(57)">
  8702. <img
  8703. src="../../assets/icon/checkNo.png"
  8704. alt
  8705. v-if="checktoolArray.indexOf(57) == -1"
  8706. />
  8707. <div class="checkDiv" v-else>
  8708. <img src="../../assets/icon/checkedIs.png" alt /><span
  8709. >已选择</span
  8710. >
  8711. </div>
  8712. </div>
  8713. </div>
  8714. <div class="tool">
  8715. <div class="whiteBIcon" @click="addTools2(63)">
  8716. <img
  8717. src="../../assets/icon/fourthToolList/Wood.png"
  8718. alt
  8719. />
  8720. <div style="margin: 5px 0">海龟编程</div>
  8721. </div>
  8722. <div class="check" @click="addTools2(63)">
  8723. <img
  8724. src="../../assets/icon/checkNo.png"
  8725. alt
  8726. v-if="checktoolArray.indexOf(63) == -1"
  8727. />
  8728. <div class="checkDiv" v-else>
  8729. <img src="../../assets/icon/checkedIs.png" alt /><span
  8730. >已选择</span
  8731. >
  8732. </div>
  8733. </div>
  8734. </div>
  8735. </div>
  8736. <div class="toolSort" v-if="toolType == 5">
  8737. <div class="tool">
  8738. <div class="whiteBIcon" @click="addTools2(28)">
  8739. <img
  8740. src="../../assets/icon/secondToolList/translation.png"
  8741. alt
  8742. />
  8743. <div style="margin: 5px 0">翻译</div>
  8744. </div>
  8745. <div class="check" @click="addTools2(28)">
  8746. <img
  8747. src="../../assets/icon/checkNo.png"
  8748. alt
  8749. v-if="checktoolArray.indexOf(28) == -1"
  8750. />
  8751. <div class="checkDiv" v-else>
  8752. <img src="../../assets/icon/checkedIs.png" alt /><span
  8753. >已选择</span
  8754. >
  8755. </div>
  8756. </div>
  8757. </div>
  8758. <div class="tool">
  8759. <div class="whiteBIcon" @click="addTools2(31)">
  8760. <img
  8761. src="../../assets/icon/secondToolList/networkPanel.png"
  8762. alt
  8763. />
  8764. <div style="margin: 5px 0">数字画板</div>
  8765. </div>
  8766. <div class="check" @click="addTools2(31)">
  8767. <img
  8768. src="../../assets/icon/checkNo.png"
  8769. alt
  8770. v-if="checktoolArray.indexOf(31) == -1"
  8771. />
  8772. <div class="checkDiv" v-else>
  8773. <img src="../../assets/icon/checkedIs.png" alt /><span
  8774. >已选择</span
  8775. >
  8776. </div>
  8777. </div>
  8778. </div>
  8779. <div class="tool">
  8780. <div class="whiteBIcon" @click="addTools2(39)">
  8781. <img
  8782. src="../../assets/icon/secondToolList/GeoGebra.png"
  8783. alt
  8784. />
  8785. <div style="margin: 5px 0">GeoGebra</div>
  8786. </div>
  8787. <div class="check" @click="addTools2(39)">
  8788. <img
  8789. src="../../assets/icon/checkNo.png"
  8790. alt
  8791. v-if="checktoolArray.indexOf(39) == -1"
  8792. />
  8793. <div class="checkDiv" v-else>
  8794. <img src="../../assets/icon/checkedIs.png" alt /><span
  8795. >已选择</span
  8796. >
  8797. </div>
  8798. </div>
  8799. </div>
  8800. <div class="tool">
  8801. <div class="whiteBIcon" @click="addTools2(66)">
  8802. <img
  8803. src="../../assets/icon/secondToolList/formulaEdi.png"
  8804. alt
  8805. />
  8806. <div style="margin: 5px 0">公式编辑</div>
  8807. </div>
  8808. <div class="check" @click="addTools2(66)">
  8809. <img
  8810. src="../../assets/icon/checkNo.png"
  8811. alt
  8812. v-if="checktoolArray.indexOf(66) == -1"
  8813. />
  8814. <div class="checkDiv" v-else>
  8815. <img src="../../assets/icon/checkedIs.png" alt /><span
  8816. >已选择</span
  8817. >
  8818. </div>
  8819. </div>
  8820. </div>
  8821. <div class="tool">
  8822. <div class="whiteBIcon" @click="addTools2(67)">
  8823. <img
  8824. src="../../assets/icon/secondToolList/molStr.png"
  8825. alt
  8826. />
  8827. <div style="margin: 5px 0">分子结构</div>
  8828. </div>
  8829. <div class="check" @click="addTools2(67)">
  8830. <img
  8831. src="../../assets/icon/checkNo.png"
  8832. alt
  8833. v-if="checktoolArray.indexOf(67) == -1"
  8834. />
  8835. <div class="checkDiv" v-else>
  8836. <img src="../../assets/icon/checkedIs.png" alt /><span
  8837. >已选择</span
  8838. >
  8839. </div>
  8840. </div>
  8841. </div>
  8842. <div class="tool">
  8843. <div class="whiteBIcon" @click="addTools2(68)">
  8844. <img
  8845. src="../../assets/icon/secondToolList/timeAxis.png"
  8846. alt
  8847. />
  8848. <div style="margin: 5px 0">时间轴</div>
  8849. </div>
  8850. <div class="check" @click="addTools2(68)">
  8851. <img
  8852. src="../../assets/icon/checkNo.png"
  8853. alt
  8854. v-if="checktoolArray.indexOf(68) == -1"
  8855. />
  8856. <div class="checkDiv" v-else>
  8857. <img src="../../assets/icon/checkedIs.png" alt /><span
  8858. >已选择</span
  8859. >
  8860. </div>
  8861. </div>
  8862. </div>
  8863. </div>
  8864. <div class="toolSort" v-if="toolType == 7">
  8865. <div class="tool">
  8866. <div class="whiteBIcon" @click="addTools2(40)">
  8867. <img
  8868. src="../../assets/icon/secondToolList/eval.png"
  8869. alt
  8870. />
  8871. <div style="margin: 5px 0">个人评价</div>
  8872. </div>
  8873. <div class="check" @click="addTools2(40)">
  8874. <img
  8875. src="../../assets/icon/checkNo.png"
  8876. alt
  8877. v-if="checktoolArray.indexOf(40) == -1"
  8878. />
  8879. <div class="checkDiv" v-else>
  8880. <img src="../../assets/icon/checkedIs.png" alt /><span
  8881. >已选择</span
  8882. >
  8883. </div>
  8884. </div>
  8885. </div>
  8886. </div>
  8887. <div class="toolSort" v-if="toolType == 4">
  8888. <div class="tool">
  8889. <div class="whiteBIcon" @click="addTools2(26)">
  8890. <img
  8891. src="../../assets/icon/thirdToolList/courseDesign.png"
  8892. alt
  8893. />
  8894. <div style="margin: 5px 0">课程设计</div>
  8895. </div>
  8896. <div class="check" @click="addTools2(26)">
  8897. <img
  8898. src="../../assets/icon/checkNo.png"
  8899. alt
  8900. v-if="checktoolArray.indexOf(26) == -1"
  8901. />
  8902. <div class="checkDiv" v-else>
  8903. <img src="../../assets/icon/checkedIs.png" alt /><span
  8904. >已选择</span
  8905. >
  8906. </div>
  8907. </div>
  8908. </div>
  8909. <div class="tool">
  8910. <div class="whiteBIcon" @click="addTools2(25)">
  8911. <img
  8912. src="../../assets/icon/thirdToolList/evalua.png"
  8913. alt
  8914. />
  8915. <div style="margin: 5px 0">目标管理</div>
  8916. </div>
  8917. <div class="check" @click="addTools2(25)">
  8918. <img
  8919. src="../../assets/icon/checkNo.png"
  8920. alt
  8921. v-if="checktoolArray.indexOf(25) == -1"
  8922. />
  8923. <div class="checkDiv" v-else>
  8924. <img src="../../assets/icon/checkedIs.png" alt /><span
  8925. >已选择</span
  8926. >
  8927. </div>
  8928. </div>
  8929. </div>
  8930. </div>
  8931. </div>
  8932. </div>
  8933. </div>
  8934. </div> -->
  8935. <div
  8936. class="vedioBox"
  8937. style="margin-top: 10px; border-radius: 20px"
  8938. v-if="
  8939. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8940. .eList &&
  8941. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8942. .eList.length &&
  8943. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  8944. .eList.length > 0 &&
  8945. tType != 2
  8946. "
  8947. >
  8948. <div
  8949. class="queTop"
  8950. style="
  8951. font-size: 20px;
  8952. padding: 15px 0 15px 37px;
  8953. font-weight: bold;
  8954. "
  8955. >
  8956. <!-- <div class="question" style="width: 30px">
  8957. <img src="../assets/icon/toolIcon.png" alt />
  8958. </div>
  8959. <div class="queTitle">
  8960. <div>工具</div>
  8961. </div>-->
  8962. 评一评
  8963. </div>
  8964. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  8965. <div class="elist_input" :style="{marginLeft: '20px',width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : 'calc(100% - 20px)'}">
  8966. <el-table
  8967. :data="
  8968. chapInfoList[courseType].chapterInfo[0].taskJson[
  8969. taskCount
  8970. ].eList
  8971. "
  8972. :header-cell-style="{ background: '#F0F4FA' }"
  8973. :row-class-name="tableRowClassName"
  8974. border
  8975. stripe
  8976. style="width: 100%"
  8977. >
  8978. <el-table-column :width="courseDetail.state == 5? '230': '150'" label="目标" align="center">
  8979. <template slot-scope="scope"
  8980. >
  8981. <div style="display:flex;justify-content: center;align-items: center;">
  8982. <img
  8983. class="blueRootCss"
  8984. v-if="scope.row.isai == 1 || !scope.row.isai && courseDetail.state == 5"
  8985. src="../../assets/icon/newIcons/blueRoot.png"
  8986. alt=""
  8987. />
  8988. <div v-if="courseDetail.state == 5">
  8989. {{
  8990. scope.row.target
  8991. ? scope.row.target
  8992. : "-"
  8993. }}
  8994. </div>
  8995. <div v-else>
  8996. {{
  8997. scope.row.target
  8998. ? scope.row.target[scope.row.target.length - 1]
  8999. : "-"
  9000. }}
  9001. </div>
  9002. </div>
  9003. </template
  9004. ></el-table-column
  9005. >
  9006. <el-table-column
  9007. label="评价维度"
  9008. align="center"
  9009. v-if="courseDetail.state != 5"
  9010. >
  9011. <template slot-scope="scope"
  9012. ><div>{{ scope.row.value }}</div></template
  9013. >
  9014. </el-table-column>
  9015. <el-table-column
  9016. :label="courseDetail.state == 5? '评价标准' : '维度描述'"
  9017. align="center"
  9018. >
  9019. <template slot-scope="scope"
  9020. ><div>
  9021. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  9022. </div></template
  9023. >
  9024. </el-table-column>
  9025. <el-table-column
  9026. label="细则"
  9027. align="center"
  9028. v-if="courseDetail.state == 5"
  9029. >
  9030. <template slot-scope="scope"
  9031. ><div style="display:flex;justify-content: space-around;margin:auto" v-if="scope.row.rule">
  9032. <el-popover
  9033. placement="top"
  9034. width="350"
  9035. trigger="hover"
  9036. >
  9037. <div v-html="scope.row.rule" style="white-space:pre-wrap"></div>
  9038. <div slot="reference" style="color:#4383FF;cursor: pointer;">查看</div>
  9039. </el-popover>
  9040. </div>
  9041. <div v-else>-</div>
  9042. </template
  9043. >
  9044. </el-table-column>
  9045. </el-table>
  9046. <!-- <div
  9047. v-for="(eItem, eIndex) in chapInfoList[courseType]
  9048. .chapterInfo[0].taskJson[taskCount].eList"
  9049. :key="eIndex"
  9050. class="elist_input_box"
  9051. >
  9052. <div style="width: 95%">
  9053. <div
  9054. style="
  9055. display: flex;
  9056. flex-direction: row;
  9057. flex-wrap: nowrap;
  9058. align-items: center;
  9059. "
  9060. >
  9061. <div style="max-width: calc(100% - 285px)">
  9062. <span>{{ eItem.value }}</span>
  9063. </div>
  9064. <div
  9065. style="
  9066. padding-left: 25px;
  9067. display: flex;
  9068. flex-direction: row;
  9069. align-items: center;
  9070. "
  9071. >
  9072. <el-rate
  9073. v-model="eItem.score"
  9074. :colors="colors"
  9075. disabled
  9076. ></el-rate>
  9077. </div>
  9078. </div>
  9079. <div class="elist_inptu_text" style="padding-left: 10px">
  9080. <span v-if="eItem.detail != ''">{{
  9081. eItem.detail
  9082. }}</span>
  9083. <span v-else style="color: #b2b1b3; font-size: 14px"
  9084. >暂无描述...</span
  9085. >
  9086. </div>
  9087. </div>
  9088. </div> -->
  9089. </div>
  9090. <div
  9091. v-if="evalua"
  9092. style="
  9093. border: 1px solid #e5e5e5;
  9094. max-width: 650px;
  9095. width: 100%;
  9096. margin-top: 20px;
  9097. box-shadow: 3px 1px 15px 3px #e0e0e0;
  9098. "
  9099. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  9100. >
  9101. <div class="e_add_top">
  9102. <div class="e_add_title" style="width: 100%">
  9103. <!-- <span>目标管理名称</span> -->
  9104. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  9105. <img
  9106. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  9107. src="../../assets/line.png"
  9108. class="cru_line"
  9109. style="
  9110. width: 125px;
  9111. height: 20px;
  9112. bottom: -10px;
  9113. left: 5px;
  9114. "
  9115. />
  9116. <!-- <el-input
  9117. v-model="eTitle"
  9118. placeholder="请输入名称"
  9119. @change="setMindData"
  9120. ></el-input>-->
  9121. <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>
  9122. <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>
  9123. </div>
  9124. </div>
  9125. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  9126. <div class="e_add_list_pbox">
  9127. <div class="e_add_list_pbox_title">
  9128. <!-- <span class="type_title">切换模式</span> -->
  9129. <div class="type_content">
  9130. <span
  9131. :class="{ active: typeMode == 1 }"
  9132. @click="typeMode = 1"
  9133. >目标树</span
  9134. >
  9135. <span
  9136. :class="{ active: typeMode == 2 }"
  9137. @click="typeMode = 2"
  9138. >目标罗盘</span
  9139. >
  9140. <!-- <span
  9141. :class="{ active: typeMode == 3 }"
  9142. @click="typeMode = 3"
  9143. >目标看板</span
  9144. > -->
  9145. </div>
  9146. </div>
  9147. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  9148. <Mind
  9149. :showBar="false"
  9150. :mindData="data"
  9151. style="width: 100%"
  9152. v-show="typeMode == 1"
  9153. ></Mind>
  9154. <Sunburst
  9155. :Josn="eJson"
  9156. :num="eJSONNum"
  9157. style="width: 100%"
  9158. v-if="typeMode == 2"
  9159. ></Sunburst>
  9160. <SeeBoard
  9161. :Josn="eJson"
  9162. :num="eJSONNum"
  9163. :ename="eTitle"
  9164. style="width: 100%"
  9165. v-if="typeMode == 3"
  9166. >
  9167. </SeeBoard>
  9168. </div>
  9169. </div>
  9170. </div>
  9171. </div>
  9172. </div>
  9173. </div>
  9174. <!-- <div
  9175. class="project_box"
  9176. style="margin-top: 15px; padding-bottom: 30px"
  9177. >
  9178. <div
  9179. style="
  9180. display: flex;
  9181. flex-wrap: nowrap;
  9182. flex-direction: column;
  9183. position: relative;
  9184. "
  9185. >
  9186. <div class="queTop">
  9187. <div class="question">
  9188. <img src="../../assets/icon/homeWork.png" alt="" />
  9189. </div>
  9190. <div class="queTitle">
  9191. <div>作业提交<span>(提交图文视频等)</span></div>
  9192. <div>:任务:{{ task.task }}</div>
  9193. </div>
  9194. </div>
  9195. <div class="ediBottom">
  9196. <div
  9197. class="addEditor"
  9198. style="margin-top: 23px"
  9199. @click="openAddWork"
  9200. v-if="!isNoHomeWork"
  9201. >
  9202. 选择文件
  9203. </div>
  9204. <div
  9205. class="addEditor"
  9206. style="margin-top: 23px"
  9207. @click="openAddWork"
  9208. v-else
  9209. >
  9210. 已提交
  9211. </div>
  9212. </div>
  9213. </div>
  9214. </div>-->
  9215. </div>
  9216. </div>
  9217. <el-dialog
  9218. title="作业提交"
  9219. :visible.sync="dialogVisible"
  9220. :append-to-body="true"
  9221. width="500px"
  9222. :before-close="handleClose"
  9223. class="dialog_change"
  9224. >
  9225. <div class="marginT">
  9226. <div>上传文件</div>
  9227. <div
  9228. class="chapter_add"
  9229. @click="addImg($event)"
  9230. v-if="studyJuri[0].cover.length == 0"
  9231. >
  9232. <div class="up_photo">
  9233. <img src="../../assets/icon/uploadImg.png" alt />
  9234. </div>
  9235. <!-- <input
  9236. type="file"
  9237. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  9238. style="display: none"
  9239. @change="beforeUpload1($event, 1)"
  9240. /> -->
  9241. <input
  9242. type="file"
  9243. accept="*"
  9244. style="display: none"
  9245. @change="beforeUpload1($event, 1)"
  9246. />
  9247. <!-- <input
  9248. type="file"
  9249. accept="image/*"
  9250. capture="camera"
  9251. style="display: none"
  9252. @change="beforeUpload1($event, 1)"
  9253. /> -->
  9254. </div>
  9255. <div
  9256. class="chapter_add"
  9257. style="
  9258. display: flex;
  9259. width: 100%;
  9260. flex-direction: row;
  9261. flex-wrap: wrap;
  9262. justify-content: flex-start;
  9263. padding: 15px 0;
  9264. "
  9265. v-if="studyJuri[0].cover.length > 0"
  9266. >
  9267. <div class="upCover">
  9268. <img
  9269. :src="studyJuri[0].cover[0].url"
  9270. alt
  9271. v-if="fileType == 0"
  9272. />
  9273. <img :src="word" alt v-else-if="fileType == 1" />
  9274. <img :src="video" alt v-else-if="fileType == 2" />
  9275. <img :src="word2" alt v-else-if="fileType == 3" />
  9276. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  9277. <div class="deleteWord" @click="clean(1)">
  9278. <img src="../../assets/icon/deleteWorks.png" alt />
  9279. </div>
  9280. </div>
  9281. </div>
  9282. </div>
  9283. <div
  9284. class="upload_send"
  9285. @click="addCourseWorksCopy(taskCount)"
  9286. v-if="!proVisible"
  9287. >
  9288. 提交
  9289. </div>
  9290. </el-dialog>
  9291. </div>
  9292. </div>
  9293. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  9294. <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(
  9295. '/courseDetail?userid=' +
  9296. userid +
  9297. '&oid=' +
  9298. oid +
  9299. '&org=' +
  9300. org +
  9301. '&cid=' +
  9302. classId +
  9303. '&courseId=' +
  9304. id +
  9305. '&tType=' +
  9306. tType +
  9307. '&screenType=' +
  9308. screenType
  9309. )"></classRoomHelper>
  9310. <div
  9311. class="pButton"
  9312. @click="(pzDialog = true), selectPz()"
  9313. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  9314. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  9315. >
  9316. <!-- 批 -->
  9317. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  9318. </div>
  9319. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  9320. <div class="pzTop2">
  9321. <!-- <div>评论</div>
  9322. <div @click="pzDialog = false">
  9323. <img src="../../assets/close1.png" alt="" />
  9324. </div> -->
  9325. <div class="checkbox">
  9326. <!-- <div class="check" style="font-size: 25px; position: unset">
  9327. 评论
  9328. </div> -->
  9329. <div class="cb-tabList">
  9330. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  9331. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  9332. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  9333. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  9334. </div>
  9335. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  9336. <el-option label="时间降序" :value="1"></el-option>
  9337. <el-option label="时间升序" :value="2"></el-option>
  9338. <el-option label="我的评课" :value="3"></el-option>
  9339. </el-select>
  9340. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  9341. </div>
  9342. </div>
  9343. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  9344. <div class="pzListBox" v-if="pzList && pzList.length">
  9345. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  9346. <div class="pzNavTop">
  9347. <div>评</div>
  9348. <div>
  9349. {{
  9350. pz.username && pz.username.length > 5
  9351. ? pz.username.substring(0, 5) + "..."
  9352. : pz.username
  9353. }}的评论
  9354. </div>
  9355. <div
  9356. class="pzDelete"
  9357. v-if="pz.userid == userid"
  9358. @click="deletePz(pz.id)"
  9359. >
  9360. 删除
  9361. </div>
  9362. </div>
  9363. <div
  9364. @click="checkImg(getImgList(pz.content))"
  9365. class="pzContent cont"
  9366. v-html="pz.content"
  9367. v-if="pz.type == '1'"
  9368. ></div>
  9369. <div class="pzContent" v-if="pz.type == '2'">
  9370. <audio :src="pz.content" controls="controls" ref="audio">
  9371. Your browser does not support the audio element.
  9372. </audio>
  9373. </div>
  9374. <div class="pzContent" v-if="pz.type == '3'">
  9375. <img
  9376. :src="pz.content"
  9377. style="width: 90%; margin: 0 auto; display: block"
  9378. @click="previewImg(pz.content)"
  9379. />
  9380. </div>
  9381. <div class="timeAndReply">
  9382. <div class="time">
  9383. {{ pz.time }}
  9384. </div>
  9385. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  9386. </div>
  9387. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  9388. <div
  9389. v-for="(h, hIndex) in pz.hfList"
  9390. :key="hIndex"
  9391. class="hfItem"
  9392. >
  9393. <div class="whoReplyWho">
  9394. <div class="hfName">{{ h.username }}</div>
  9395. <div class="hfImg">
  9396. <img src="../../assets/icon/newIcons/right.png" alt="" />
  9397. </div>
  9398. <div class="hfName">{{ pz.username }}</div>
  9399. </div>
  9400. <div class="hfContent" v-html="h.content"></div>
  9401. <div class="hfBottom">
  9402. <div class="hfTime">{{ h.time }}</div>
  9403. <div
  9404. class="deleteHfItem"
  9405. @click="deleteReply(h.id)"
  9406. v-if="userid == h.userid"
  9407. >
  9408. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  9409. </div>
  9410. </div>
  9411. </div>
  9412. </div>
  9413. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  9414. <div class="replyInput">
  9415. <el-input v-model="reply[pzIndex]"></el-input>
  9416. </div>
  9417. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  9418. </div> -->
  9419. </div>
  9420. </div>
  9421. <div class="noPz" v-else>
  9422. <img src="../../assets/icon/noPz.png" alt="" />
  9423. </div>
  9424. <div class="addPzButton">
  9425. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  9426. 添加评论
  9427. </div>
  9428. <!-- <div class="img1">
  9429. <div @click="(addPzDialog = true), (pzType = 2)">
  9430. <img src="../../assets/audio.png" /><span>音频</span>
  9431. </div>
  9432. </div> -->
  9433. </div>
  9434. </div>
  9435. <div class="scoreList" v-if="commentTagShow==1">
  9436. <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"/>
  9437. </div>
  9438. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  9439. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  9440. </div>
  9441. </div>
  9442. <div
  9443. v-if="toolDialogVisible == true"
  9444. class="toolMask"
  9445. @click="toolDialogVisible = false"
  9446. ></div>
  9447. <div v-if="toolDialogVisible == true" class="addToolCss">
  9448. <div class="toolTop">
  9449. <div style="font-weight: bold">新增工具</div>
  9450. <div @click="toolDialogVisible = false">
  9451. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  9452. </div>
  9453. </div>
  9454. <div class="tool_box">
  9455. <div class="tool_type_box">
  9456. <div class="chooseWho">
  9457. <div
  9458. :class="toolType == 0 ? 'isChooseActive' : ''"
  9459. @click="(toolType = 0), $forceUpdate()"
  9460. >
  9461. 互动类
  9462. </div>
  9463. <div
  9464. :class="toolType == 1 ? 'isChooseActive' : ''"
  9465. @click="(toolType = 1), $forceUpdate()"
  9466. >
  9467. 思维类
  9468. </div>
  9469. <div
  9470. :class="toolType == 2 ? 'isChooseActive' : ''"
  9471. @click="(toolType = 2), $forceUpdate()"
  9472. >
  9473. 测评类
  9474. </div>
  9475. <div
  9476. :class="toolType == 3 ? 'isChooseActive' : ''"
  9477. @click="(toolType = 3), $forceUpdate()"
  9478. >
  9479. 编程类
  9480. </div>
  9481. <div
  9482. :class="toolType == 5 ? 'isChooseActive' : ''"
  9483. @click="(toolType = 5), $forceUpdate()"
  9484. >
  9485. 学科类
  9486. </div>
  9487. </div>
  9488. </div>
  9489. <div>
  9490. <div class="toolSort" v-if="toolType == 0">
  9491. <div
  9492. class="tool"
  9493. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  9494. @click="addTools2(10)"
  9495. >
  9496. <div class="whiteBIcon">
  9497. <img src="../../assets/icon/thirdToolList/time.png" alt />
  9498. <div style="margin: 5px 0">倒计时</div>
  9499. </div>
  9500. <div class="check">
  9501. <div
  9502. v-if="checktoolArray.indexOf(10) == -1"
  9503. class="noChoose"
  9504. ></div>
  9505. <div v-else class="isChoose"></div>
  9506. </div>
  9507. </div>
  9508. <div
  9509. class="tool"
  9510. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  9511. @click="addTools2(65)"
  9512. >
  9513. <div class="whiteBIcon">
  9514. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  9515. <div style="margin: 5px 0">挑人</div>
  9516. </div>
  9517. <div class="check">
  9518. <div
  9519. v-if="checktoolArray.indexOf(65) == -1"
  9520. class="noChoose"
  9521. ></div>
  9522. <div v-else class="isChoose"></div>
  9523. </div>
  9524. </div>
  9525. </div>
  9526. <div class="toolSort" v-if="toolType == 1">
  9527. <div
  9528. class="tool"
  9529. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  9530. @click="addTools2(7)"
  9531. >
  9532. <div class="whiteBIcon">
  9533. <img
  9534. src="../../assets/icon/secondToolList/mindNetwork.png"
  9535. alt
  9536. />
  9537. <div style="margin: 5px 0">思维网格</div>
  9538. </div>
  9539. <div class="check">
  9540. <div
  9541. v-if="checktoolArray.indexOf(7) == -1"
  9542. class="noChoose"
  9543. ></div>
  9544. <div v-else class="isChoose"></div>
  9545. </div>
  9546. </div>
  9547. <div
  9548. class="tool"
  9549. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  9550. @click="addTools2(1)"
  9551. >
  9552. <div class="whiteBIcon">
  9553. <img
  9554. src="../../assets/icon/secondToolList/whiteBoard.png"
  9555. alt
  9556. />
  9557. <div style="margin: 5px 0">电子白板</div>
  9558. </div>
  9559. <div class="check">
  9560. <div
  9561. v-if="checktoolArray.indexOf(1) == -1"
  9562. class="noChoose"
  9563. ></div>
  9564. <div v-else class="isChoose"></div>
  9565. </div>
  9566. </div>
  9567. <div
  9568. class="tool"
  9569. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  9570. @click="addTools2(52)"
  9571. >
  9572. <div class="whiteBIcon">
  9573. <img src="../../assets/icon/fourthToolList/text.png" alt />
  9574. <div style="margin: 5px 0">文档</div>
  9575. </div>
  9576. <div class="check">
  9577. <div
  9578. v-if="checktoolArray.indexOf(52) == -1"
  9579. class="noChoose"
  9580. ></div>
  9581. <div v-else class="isChoose"></div>
  9582. </div>
  9583. </div>
  9584. <div
  9585. class="tool"
  9586. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  9587. @click="addTools2(3)"
  9588. >
  9589. <div class="whiteBIcon">
  9590. <img
  9591. src="../../assets/icon/secondToolList/mindMapping.png"
  9592. alt
  9593. />
  9594. <div style="margin: 5px 0">思维导图</div>
  9595. </div>
  9596. <div class="check">
  9597. <div
  9598. v-if="checktoolArray.indexOf(3) == -1"
  9599. class="noChoose"
  9600. ></div>
  9601. <div v-else class="isChoose"></div>
  9602. </div>
  9603. </div>
  9604. <div
  9605. class="tool"
  9606. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  9607. @click="addTools2(48)"
  9608. >
  9609. <div class="whiteBIcon">
  9610. <img src="../../assets/icon/fourthToolList/table.png" alt />
  9611. <div style="margin: 5px 0">表格</div>
  9612. </div>
  9613. <div class="check">
  9614. <div
  9615. v-if="checktoolArray.indexOf(48) == -1"
  9616. class="noChoose"
  9617. ></div>
  9618. <div v-else class="isChoose"></div>
  9619. </div>
  9620. </div>
  9621. </div>
  9622. <div class="toolSort" v-if="toolType == 6">
  9623. <div v-show="tooC == 49">
  9624. <img
  9625. @click="addTools(tooC, toolIndex, taskCount)"
  9626. src="../../assets/icon/fourthToolList/group.png"
  9627. alt
  9628. />
  9629. <div style="margin: 5px 0">学生分组</div>
  9630. </div>
  9631. </div>
  9632. <div class="toolSort" v-if="toolType == 2">
  9633. <div
  9634. class="tool"
  9635. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  9636. @click="addTools2(16)"
  9637. >
  9638. <div class="whiteBIcon">
  9639. <img src="../../assets/icon/thirdToolList/work.png" alt />
  9640. <div style="margin: 5px 0">作业提交</div>
  9641. </div>
  9642. <div class="check">
  9643. <div
  9644. v-if="checktoolArray.indexOf(16) == -1"
  9645. class="noChoose"
  9646. ></div>
  9647. <div v-else class="isChoose"></div>
  9648. </div>
  9649. </div>
  9650. <div
  9651. class="tool"
  9652. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  9653. @click="addTools2(50)"
  9654. >
  9655. <div class="whiteBIcon">
  9656. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  9657. <div style="margin: 5px 0">批量上传</div>
  9658. </div>
  9659. <div class="check">
  9660. <div
  9661. v-if="checktoolArray.indexOf(50) == -1"
  9662. class="noChoose"
  9663. ></div>
  9664. <div v-else class="isChoose"></div>
  9665. </div>
  9666. </div>
  9667. </div>
  9668. <div class="toolSort" v-if="toolType == 3">
  9669. <div
  9670. class="tool"
  9671. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  9672. @click="addTools2(18)"
  9673. >
  9674. <div class="whiteBIcon">
  9675. <img
  9676. src="../../assets/icon/thirdToolList/trainPlatform.png"
  9677. alt
  9678. />
  9679. <div style="margin: 5px 0">训练平台</div>
  9680. </div>
  9681. <div class="check">
  9682. <div
  9683. v-if="checktoolArray.indexOf(18) == -1"
  9684. class="noChoose"
  9685. ></div>
  9686. <div v-else class="isChoose"></div>
  9687. </div>
  9688. </div>
  9689. <div
  9690. class="tool"
  9691. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  9692. @click="addTools2(21)"
  9693. >
  9694. <div class="whiteBIcon">
  9695. <img src="../../assets/icon/fourthToolList/program.png" alt />
  9696. <div style="margin: 5px 0">AIoT Blockly</div>
  9697. </div>
  9698. <div class="check">
  9699. <div
  9700. v-if="checktoolArray.indexOf(21) == -1"
  9701. class="noChoose"
  9702. ></div>
  9703. <div v-else class="isChoose"></div>
  9704. </div>
  9705. </div>
  9706. <div
  9707. class="tool"
  9708. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  9709. @click="addTools2(23)"
  9710. >
  9711. <div class="whiteBIcon">
  9712. <img
  9713. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  9714. alt
  9715. />
  9716. <div style="margin: 5px 0">AI Python</div>
  9717. </div>
  9718. <div class="check">
  9719. <div
  9720. v-if="checktoolArray.indexOf(23) == -1"
  9721. class="noChoose"
  9722. ></div>
  9723. <div v-else class="isChoose"></div>
  9724. </div>
  9725. </div>
  9726. <div
  9727. class="tool"
  9728. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  9729. @click="addTools2(24)"
  9730. >
  9731. <div class="whiteBIcon">
  9732. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  9733. <div style="margin: 5px 0">AI Blockly</div>
  9734. </div>
  9735. <div class="check">
  9736. <div
  9737. v-if="checktoolArray.indexOf(24) == -1"
  9738. class="noChoose"
  9739. ></div>
  9740. <div v-else class="isChoose"></div>
  9741. </div>
  9742. </div>
  9743. <div
  9744. class="tool"
  9745. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  9746. @click="addTools2(32)"
  9747. >
  9748. <div class="whiteBIcon">
  9749. <img src="../../assets/icon/thirdToolList/code.png" alt />
  9750. <div style="margin: 5px 0">源码编辑</div>
  9751. </div>
  9752. <div class="check">
  9753. <div
  9754. v-if="checktoolArray.indexOf(32) == -1"
  9755. class="noChoose"
  9756. ></div>
  9757. <div v-else class="isChoose"></div>
  9758. </div>
  9759. </div>
  9760. <div
  9761. class="tool"
  9762. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  9763. @click="addTools2(57)"
  9764. >
  9765. <div class="whiteBIcon">
  9766. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  9767. <div style="margin: 5px 0">CocoPi</div>
  9768. </div>
  9769. <div class="check">
  9770. <div
  9771. v-if="checktoolArray.indexOf(57) == -1"
  9772. class="noChoose"
  9773. ></div>
  9774. <div v-else class="isChoose"></div>
  9775. </div>
  9776. </div>
  9777. <div
  9778. class="tool"
  9779. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  9780. @click="addTools2(63)"
  9781. >
  9782. <div class="whiteBIcon">
  9783. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  9784. <div style="margin: 5px 0">海龟编程</div>
  9785. </div>
  9786. <div class="check">
  9787. <div
  9788. v-if="checktoolArray.indexOf(63) == -1"
  9789. class="noChoose"
  9790. ></div>
  9791. <div v-else class="isChoose"></div>
  9792. </div>
  9793. </div>
  9794. <div
  9795. class="tool"
  9796. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  9797. @click="addTools2(71)"
  9798. >
  9799. <div class="whiteBIcon">
  9800. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  9801. <div style="margin: 5px 0">AI智能体</div>
  9802. </div>
  9803. <div class="check">
  9804. <div
  9805. v-if="checktoolArray.indexOf(71) == -1"
  9806. class="noChoose"
  9807. ></div>
  9808. <div v-else class="isChoose"></div>
  9809. </div>
  9810. </div>
  9811. </div>
  9812. <div class="toolSort" v-if="toolType == 7">
  9813. <div
  9814. class="tool"
  9815. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  9816. @click="addTools2(40)"
  9817. >
  9818. <div class="whiteBIcon">
  9819. <img src="../../assets/icon/secondToolList/eval.png" alt />
  9820. <div style="margin: 5px 0">个人评价</div>
  9821. </div>
  9822. <div class="check">
  9823. <div
  9824. v-if="checktoolArray.indexOf(40) == -1"
  9825. class="noChoose"
  9826. ></div>
  9827. <div v-else class="isChoose"></div>
  9828. </div>
  9829. </div>
  9830. </div>
  9831. <div class="toolSort" v-if="toolType == 5">
  9832. <div
  9833. class="tool"
  9834. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  9835. @click="addTools2(28)"
  9836. >
  9837. <div class="whiteBIcon">
  9838. <img
  9839. src="../../assets/icon/secondToolList/translation.png"
  9840. alt
  9841. />
  9842. <div style="margin: 5px 0">翻译</div>
  9843. </div>
  9844. <div class="check">
  9845. <div
  9846. v-if="checktoolArray.indexOf(28) == -1"
  9847. class="noChoose"
  9848. ></div>
  9849. <div v-else class="isChoose"></div>
  9850. </div>
  9851. </div>
  9852. <div
  9853. class="tool"
  9854. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  9855. @click="addTools2(31)"
  9856. >
  9857. <div class="whiteBIcon">
  9858. <img
  9859. src="../../assets/icon/secondToolList/networkPanel.png"
  9860. alt
  9861. />
  9862. <div style="margin: 5px 0">数字画板</div>
  9863. </div>
  9864. <div class="check">
  9865. <div
  9866. v-if="checktoolArray.indexOf(31) == -1"
  9867. class="noChoose"
  9868. ></div>
  9869. <div v-else class="isChoose"></div>
  9870. </div>
  9871. </div>
  9872. <div
  9873. class="tool"
  9874. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  9875. @click="addTools2(39)"
  9876. >
  9877. <div class="whiteBIcon">
  9878. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  9879. <div style="margin: 5px 0">GeoGebra</div>
  9880. </div>
  9881. <div class="check">
  9882. <div
  9883. v-if="checktoolArray.indexOf(39) == -1"
  9884. class="noChoose"
  9885. ></div>
  9886. <div v-else class="isChoose"></div>
  9887. </div>
  9888. </div>
  9889. <div
  9890. class="tool"
  9891. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  9892. @click="addTools2(66)"
  9893. >
  9894. <div class="whiteBIcon">
  9895. <img
  9896. src="../../assets/icon/secondToolList/formulaEdi.png"
  9897. alt
  9898. />
  9899. <div style="margin: 5px 0">公式编辑</div>
  9900. </div>
  9901. <div class="check">
  9902. <div
  9903. v-if="checktoolArray.indexOf(66) == -1"
  9904. class="noChoose"
  9905. ></div>
  9906. <div v-else class="isChoose"></div>
  9907. </div>
  9908. </div>
  9909. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  9910. <div class="whiteBIcon" @click="addTools2(67)">
  9911. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  9912. <div style="margin: 5px 0">分子结构</div>
  9913. </div>
  9914. <div class="check" @click="addTools2(67)">
  9915. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  9916. <div v-else class="isChoose"></div>
  9917. </div>
  9918. </div> -->
  9919. <div
  9920. class="tool"
  9921. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  9922. @click="addTools2(68)"
  9923. >
  9924. <div class="whiteBIcon">
  9925. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  9926. <div style="margin: 5px 0">时间轴</div>
  9927. </div>
  9928. <div class="check">
  9929. <div
  9930. v-if="checktoolArray.indexOf(68) == -1"
  9931. class="noChoose"
  9932. ></div>
  9933. <div v-else class="isChoose"></div>
  9934. </div>
  9935. </div>
  9936. <!-- <div
  9937. class="tool"
  9938. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  9939. @click="addTools2(69)"
  9940. >
  9941. <div class="whiteBIcon">
  9942. <img src="../../assets/icon/secondToolList/english.png" alt />
  9943. <div style="margin: 5px 0">英语写作</div>
  9944. </div>
  9945. <div class="check">
  9946. <div
  9947. v-if="checktoolArray.indexOf(69) == -1"
  9948. class="noChoose"
  9949. ></div>
  9950. <div v-else class="isChoose"></div>
  9951. </div>
  9952. </div> -->
  9953. </div>
  9954. <div class="toolSort" v-if="toolType == 4">
  9955. <div
  9956. class="tool"
  9957. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  9958. @click="addTools2(26)"
  9959. >
  9960. <div class="whiteBIcon">
  9961. <img
  9962. src="../../assets/icon/thirdToolList/courseDesign.png"
  9963. alt
  9964. />
  9965. <div style="margin: 5px 0">课程设计</div>
  9966. </div>
  9967. <div class="check">
  9968. <div
  9969. v-if="checktoolArray.indexOf(26) == -1"
  9970. class="noChoose"
  9971. ></div>
  9972. <div v-else class="isChoose"></div>
  9973. </div>
  9974. </div>
  9975. <div
  9976. class="tool"
  9977. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  9978. @click="addTools2(25)"
  9979. >
  9980. <div class="whiteBIcon">
  9981. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  9982. <div style="margin: 5px 0">目标管理</div>
  9983. </div>
  9984. <div class="check">
  9985. <div
  9986. v-if="checktoolArray.indexOf(25) == -1"
  9987. class="noChoose"
  9988. ></div>
  9989. <div v-else class="isChoose"></div>
  9990. </div>
  9991. </div>
  9992. </div>
  9993. </div>
  9994. </div>
  9995. <span
  9996. slot="footer"
  9997. class="dialog-footer"
  9998. style="display: block; text-align: center; padding: 0 0 10px 0"
  9999. >
  10000. <el-button @click="toolDialogVisible = false">取 消</el-button>
  10001. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  10002. </span>
  10003. </div>
  10004. <div
  10005. v-if="replyDialogVisible == true"
  10006. class="addDialogCss"
  10007. v-el-drag-dialog
  10008. >
  10009. <div class="pzTop">
  10010. <div class="teacherPz">
  10011. <div class="teacherPzImg">
  10012. <img src="../../assets/icon/teacherPz.png" alt="" />
  10013. </div>
  10014. <div style="margin-left: 10px; height: 25px">添加回复</div>
  10015. </div>
  10016. <div @click="replyDialogVisible = false">
  10017. <img src="../../assets/close1.png" class="pzClose" alt="" />
  10018. </div>
  10019. </div>
  10020. <div class="addPzBox">
  10021. <!-- <div class="addPzCheck">
  10022. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  10023. >文本</span
  10024. >
  10025. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  10026. >音频</span
  10027. >
  10028. </div> -->
  10029. <div style="height: calc(100% - 50px)">
  10030. <editor-bar
  10031. class="binfo_input pzConText"
  10032. style="width: 100% !important; margin: 0 auto"
  10033. placeholder="请输入回复描述"
  10034. v-model="reply"
  10035. @change="change"
  10036. ></editor-bar>
  10037. </div>
  10038. <div class="addTextCss" @click="addHf">确定</div>
  10039. </div>
  10040. </div>
  10041. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  10042. <div class="pzTop">
  10043. <div class="teacherPz">
  10044. <div class="teacherPzImg">
  10045. <img src="../../assets/icon/teacherPz.png" alt="" />
  10046. </div>
  10047. <div style="margin-left: 10px; height: 25px">教师评论</div>
  10048. </div>
  10049. <div @click="addPzDialog = false">
  10050. <img src="../../assets/close1.png" class="pzClose" alt="" />
  10051. </div>
  10052. </div>
  10053. <div class="addPzBox">
  10054. <div class="addPzCheck">
  10055. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  10056. >文本</span
  10057. >
  10058. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  10059. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  10060. >音频</span
  10061. >
  10062. </div>
  10063. <div style="height: calc(100% - 95px)">
  10064. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  10065. v-if="pzType == 1"></textarea> -->
  10066. <editor-bar
  10067. class="binfo_input pzConText"
  10068. style="width: 100% !important"
  10069. placeholder="请输入任务描述"
  10070. v-model="pzConText"
  10071. @change="change"
  10072. v-if="pzType == 1"
  10073. ></editor-bar>
  10074. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  10075. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  10076. <div @click="addImg($event)">
  10077. <el-button type="primary">上传图片</el-button>
  10078. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  10079. @change="beforeUpload1($event, 4)" />
  10080. </div>
  10081. </div> -->
  10082. </div>
  10083. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  10084. 确定
  10085. </div>
  10086. </div>
  10087. </div>
  10088. <div v-if="proVisible" class="mask">
  10089. <div class="progressBox">
  10090. <!-- <div id="closePro" class="closeCss">
  10091. <img src="../../assets/icon/close.png" alt />
  10092. </div> -->
  10093. <div class="lbox">
  10094. <img src="../../assets/loading.gif" />上传中,请稍后
  10095. </div>
  10096. <div style="margin-bottom: 10px">
  10097. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  10098. </div>
  10099. <el-progress
  10100. :text-inside="true"
  10101. :stroke-width="20"
  10102. :percentage="progress"
  10103. style="width: 80%"
  10104. ></el-progress>
  10105. </div>
  10106. </div>
  10107. <div v-if="proVisible2" class="mask">
  10108. <div class="progressBox">
  10109. <div class="lbox">
  10110. <img src="../../assets/loading.gif" />上传中,请稍后
  10111. </div>
  10112. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  10113. </div>
  10114. </div>
  10115. <el-dialog :visible.sync="pictureDialog" size="tiny">
  10116. <img width="100%" :src="dialogImageUrl" alt />
  10117. </el-dialog>
  10118. <el-dialog
  10119. :title="noteName != '' ? noteName : '查看问卷'"
  10120. :visible.sync="dialogVisible5"
  10121. :append-to-body="true"
  10122. width="1000px"
  10123. :before-close="handleClose"
  10124. class="dialog_diy dialog_diy3"
  10125. >
  10126. <div>
  10127. <div
  10128. class="a_add_title"
  10129. style="
  10130. display: flex;
  10131. flex-direction: row;
  10132. align-items: center;
  10133. justify-content: center;
  10134. "
  10135. >
  10136. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10137. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  10138. </div>
  10139. <div class="a_addBox">
  10140. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10141. 题目内容
  10142. </div>
  10143. <div
  10144. class="a_add_box"
  10145. v-for="(item1, index1) in askJson.askCount"
  10146. :key="index1"
  10147. >
  10148. <div class="a_add_head">
  10149. <div style="display: flex">
  10150. <span class="askIndex"> {{ index1 + 1 }}</span>
  10151. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  10152. </div>
  10153. <img
  10154. v-if="askJson.askJson[index1].img"
  10155. :src="askJson.askJson[index1].img"
  10156. style="height: 300px; margin-top: 10px; max-width: 100%"
  10157. />
  10158. </div>
  10159. <div class="a_add_body">
  10160. <div class="a_add_input">
  10161. <el-radio-group
  10162. v-model="radio[index1]"
  10163. v-if="
  10164. askJson.askJson[index1].type == '1' ||
  10165. !askJson.askJson[index1].type
  10166. "
  10167. >
  10168. <el-radio
  10169. v-for="(item2, checkIndex) in askJson.askJson[index1]
  10170. .checkList"
  10171. :key="checkIndex"
  10172. :label="checkIndex"
  10173. :disabled="isAnswer"
  10174. class="redioStyle"
  10175. ><span v-html="item2"></span
  10176. ></el-radio>
  10177. </el-radio-group>
  10178. <el-checkbox-group
  10179. v-model="radio[index1]"
  10180. v-if="askJson.askJson[index1].type == '2'"
  10181. >
  10182. <el-checkbox
  10183. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  10184. .checkList"
  10185. :key="checkIndex1"
  10186. :label="checkIndex1"
  10187. :disabled="isAnswer"
  10188. class="redioStyle"
  10189. ><span v-html="item2"></span>
  10190. </el-checkbox>
  10191. </el-checkbox-group>
  10192. </div>
  10193. </div>
  10194. </div>
  10195. </div>
  10196. </div>
  10197. <span slot="footer" class="dialog-footer">
  10198. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  10199. >取 消</el-button
  10200. >
  10201. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  10202. >确 定</el-button
  10203. >
  10204. </span>
  10205. </el-dialog>
  10206. <el-dialog
  10207. :title="noteName != '' ? noteName : '查看问卷'"
  10208. :visible.sync="dialogVisible5Teacher"
  10209. :append-to-body="true"
  10210. width="1000px"
  10211. :before-close="handleClose"
  10212. class="dialog_diy dialog_diy3"
  10213. >
  10214. <div>
  10215. <div class="w_name">
  10216. 学生姓名:<span>{{ sStudent.student }}</span>
  10217. </div>
  10218. <div
  10219. class="a_add_title"
  10220. style="
  10221. display: flex;
  10222. flex-direction: row;
  10223. align-items: center;
  10224. justify-content: center;
  10225. "
  10226. >
  10227. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10228. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  10229. </div>
  10230. <div class="a_addBox">
  10231. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10232. 题目内容
  10233. </div>
  10234. <div
  10235. class="a_add_box"
  10236. v-for="(item1, index1) in askJson.askCount"
  10237. :key="index1"
  10238. >
  10239. <div class="a_add_head">
  10240. <div style="display: flex">
  10241. <span class="askIndex">{{ index1 + 1 }}</span>
  10242. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  10243. </div>
  10244. <img
  10245. v-if="askJson.askJson[index1].img"
  10246. :src="askJson.askJson[index1].img"
  10247. style="height: 300px; margin-top: 10px; max-width: 100%"
  10248. />
  10249. </div>
  10250. <div class="a_add_body">
  10251. <div class="a_add_input">
  10252. <el-radio-group
  10253. v-model="radio[index1]"
  10254. v-if="
  10255. askJson.askJson[index1].type == '1' ||
  10256. !askJson.askJson[index1].type
  10257. "
  10258. >
  10259. <el-radio
  10260. v-for="(item2, checkIndex) in askJson.askJson[index1]
  10261. .checkList"
  10262. :key="checkIndex"
  10263. :label="checkIndex"
  10264. :disabled="isAnswer"
  10265. class="redioStyle"
  10266. ><span v-html="item2"></span
  10267. ></el-radio>
  10268. </el-radio-group>
  10269. <el-checkbox-group
  10270. v-model="radio[index1]"
  10271. v-if="askJson.askJson[index1].type == '2'"
  10272. >
  10273. <el-checkbox
  10274. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  10275. .checkList"
  10276. :key="checkIndex1"
  10277. :label="checkIndex1"
  10278. :disabled="isAnswer"
  10279. class="redioStyle"
  10280. ><span v-html="item2"></span>
  10281. </el-checkbox>
  10282. </el-checkbox-group>
  10283. </div>
  10284. </div>
  10285. </div>
  10286. </div>
  10287. </div>
  10288. <span slot="footer" class="dialog-footer">
  10289. <el-button
  10290. @click="dialogVisible5Teacher = false"
  10291. v-show="noteName == ''"
  10292. >取 消</el-button
  10293. >
  10294. <el-button
  10295. type="primary"
  10296. @click="addStudentAskTeacher"
  10297. v-show="noteName == ''"
  10298. >确 定</el-button
  10299. >
  10300. </span>
  10301. </el-dialog>
  10302. <el-dialog
  10303. :title="noteName != '' ? noteName : '查看选择题'"
  10304. :visible.sync="dialogVisibleChoice"
  10305. :append-to-body="true"
  10306. width="1000px"
  10307. :before-close="handleClose"
  10308. class="dialog_diy dialog_diy3"
  10309. >
  10310. <div>
  10311. <!-- <div class="a_add_title" style="
  10312. display: flex;
  10313. flex-direction: row;
  10314. align-items: center;
  10315. justify-content: center;
  10316. ">
  10317. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  10318. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  10319. </div> -->
  10320. <div class="a_addBox">
  10321. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10322. 题目内容
  10323. </div>
  10324. <div
  10325. class="a_add_box"
  10326. v-for="(item1, index1) in testJson.testCount"
  10327. :key="index1"
  10328. >
  10329. <div class="a_add_head">
  10330. <div style="display: flex">
  10331. <span class="askIndex">{{ index1 + 1 }}</span>
  10332. <div
  10333. v-if="testJson.testJson[index1].type == '1'"
  10334. style="margin-right: 5px; min-width: 70px"
  10335. >
  10336. (单选题)
  10337. </div>
  10338. <div
  10339. v-if="testJson.testJson[index1].type == '2'"
  10340. style="margin-right: 5px; min-width: 70px"
  10341. >
  10342. (多选题)
  10343. </div>
  10344. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10345. </div>
  10346. <img
  10347. v-if="testJson.testJson[index1].img"
  10348. :src="testJson.testJson[index1].img"
  10349. style="height: 300px; margin-top: 10px; max-width: 100%"
  10350. />
  10351. </div>
  10352. <div
  10353. class="timuImgBox"
  10354. v-if="
  10355. testJson.testJson[index1].timuList &&
  10356. testJson.testJson[index1].timuList.length
  10357. "
  10358. >
  10359. <div
  10360. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10361. :key="tIndex"
  10362. class="timuImg"
  10363. @click.stop="previewImg(timg.src)"
  10364. >
  10365. <img :src="timg.src" alt="" />
  10366. </div>
  10367. </div>
  10368. <div class="a_add_body">
  10369. <div class="a_add_input">
  10370. <el-radio-group
  10371. v-model="radio[index1]"
  10372. v-if="testJson.testJson[index1].type == '1'"
  10373. >
  10374. <div class="radioBox">
  10375. <el-radio
  10376. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10377. .checkList"
  10378. :key="checkIndex"
  10379. :label="checkIndex"
  10380. :disabled="isAnswer"
  10381. class="redioStyle"
  10382. >
  10383. <div
  10384. style="margin-right: 10px"
  10385. v-if="item2 && item2.imgType && item2.imgType == 1"
  10386. >
  10387. <div class="inImg" @click.stop="previewImg(item2.src)">
  10388. <img :src="item2.src" alt="" />
  10389. </div>
  10390. </div>
  10391. <span v-else v-html="item2"></span>
  10392. </el-radio>
  10393. </div>
  10394. </el-radio-group>
  10395. <el-checkbox-group
  10396. v-model="radio[index1]"
  10397. v-if="testJson.testJson[index1].type == '2'"
  10398. >
  10399. <div class="radioBox">
  10400. <el-checkbox
  10401. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10402. .checkList"
  10403. :key="checkIndex"
  10404. :label="checkIndex"
  10405. :disabled="isAnswer"
  10406. class="redioStyle"
  10407. >
  10408. <div
  10409. style="margin-right: 10px"
  10410. v-if="item2 && item2.imgType && item2.imgType == 1"
  10411. >
  10412. <div class="inImg" @click.stop="previewImg(item2.src)">
  10413. <img :src="item2.src" alt="" />
  10414. </div>
  10415. </div>
  10416. <span v-else v-html="item2"></span>
  10417. </el-checkbox>
  10418. </div>
  10419. </el-checkbox-group>
  10420. </div>
  10421. </div>
  10422. </div>
  10423. </div>
  10424. </div>
  10425. <span slot="footer" class="dialog-footer">
  10426. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  10427. >取 消</el-button
  10428. >
  10429. <el-button
  10430. type="primary"
  10431. @click="addStudentTest"
  10432. v-show="noteName == ''"
  10433. >确 定</el-button
  10434. >
  10435. </span>
  10436. </el-dialog>
  10437. <el-dialog
  10438. :title="noteName != '' ? noteName : '查看选择题'"
  10439. :visible.sync="dialogVisibleChoiceTeacher"
  10440. :append-to-body="true"
  10441. width="1000px"
  10442. :before-close="handleClose"
  10443. class="dialog_diy dialog_diy3"
  10444. >
  10445. <div>
  10446. <div class="w_name">
  10447. 学生姓名:<span>{{ sStudent.student }}</span>
  10448. </div>
  10449. <div class="a_addBox">
  10450. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  10451. 题目内容
  10452. </div>
  10453. <div
  10454. class="a_add_box"
  10455. v-for="(item1, index1) in testJson.testCount"
  10456. :key="index1"
  10457. >
  10458. <div class="a_add_head">
  10459. <div style="display: flex">
  10460. <span class="askIndex">{{ index1 + 1 }}</span>
  10461. <div
  10462. v-if="testJson.testJson[index1].type == '1'"
  10463. style="margin-right: 5px; min-width: 70px"
  10464. >
  10465. (单选题)
  10466. </div>
  10467. <div
  10468. v-if="testJson.testJson[index1].type == '2'"
  10469. style="margin-right: 5px; min-width: 70px"
  10470. >
  10471. (多选题)
  10472. </div>
  10473. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  10474. </div>
  10475. <img
  10476. v-if="testJson.testJson[index1].img"
  10477. :src="testJson.testJson[index1].img"
  10478. style="height: 300px; margin-top: 10px; max-width: 100%"
  10479. />
  10480. </div>
  10481. <div
  10482. class="timuImgBox"
  10483. v-if="
  10484. testJson.testJson[index1].timuList &&
  10485. testJson.testJson[index1].timuList.length
  10486. "
  10487. >
  10488. <div
  10489. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  10490. :key="tIndex"
  10491. class="timuImg"
  10492. @click.stop="previewImg(timg.src)"
  10493. >
  10494. <img :src="timg.src" alt="" />
  10495. </div>
  10496. </div>
  10497. <div class="a_add_body">
  10498. <div class="a_add_input">
  10499. <el-radio-group
  10500. v-model="radio[index1]"
  10501. v-if="testJson.testJson[index1].type == '1'"
  10502. >
  10503. <div class="radioBox">
  10504. <el-radio
  10505. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10506. .checkList"
  10507. :key="checkIndex"
  10508. :label="checkIndex"
  10509. :disabled="isAnswer"
  10510. class="redioStyle"
  10511. >
  10512. <div
  10513. style="margin-right: 10px"
  10514. v-if="item2 && item2.imgType && item2.imgType == 1"
  10515. >
  10516. <div class="inImg" @click.stop="previewImg(item2.src)">
  10517. <img :src="item2.src" alt="" />
  10518. </div>
  10519. </div>
  10520. <span v-else v-html="item2"></span>
  10521. </el-radio>
  10522. </div>
  10523. </el-radio-group>
  10524. <el-checkbox-group
  10525. v-model="radio[index1]"
  10526. v-if="testJson.testJson[index1].type == '2'"
  10527. >
  10528. <div class="radioBox">
  10529. <el-checkbox
  10530. v-for="(item2, checkIndex) in testJson.testJson[index1]
  10531. .checkList"
  10532. :key="checkIndex"
  10533. :label="checkIndex"
  10534. :disabled="isAnswer"
  10535. class="redioStyle"
  10536. >
  10537. <div
  10538. style="margin-right: 10px"
  10539. v-if="item2 && item2.imgType && item2.imgType == 1"
  10540. >
  10541. <div class="inImg" @click.stop="previewImg(item2.src)">
  10542. <img :src="item2.src" alt="" />
  10543. </div>
  10544. </div>
  10545. <span v-else v-html="item2"></span>
  10546. </el-checkbox>
  10547. </div>
  10548. </el-checkbox-group>
  10549. </div>
  10550. </div>
  10551. </div>
  10552. </div>
  10553. </div>
  10554. <span slot="footer" class="dialog-footer">
  10555. <el-button
  10556. @click="dialogVisibleChoiceTeacher = false"
  10557. v-show="noteName == ''"
  10558. >取 消</el-button
  10559. >
  10560. <el-button
  10561. type="primary"
  10562. @click="addStudentTestTeacher"
  10563. v-show="noteName == ''"
  10564. >确 定</el-button
  10565. >
  10566. </span>
  10567. </el-dialog>
  10568. <el-dialog
  10569. title="查看富文本"
  10570. :visible.sync="dialogVisible1"
  10571. :append-to-body="true"
  10572. width="500px"
  10573. :before-close="handleClose"
  10574. class="dialog_diy textCss"
  10575. >
  10576. <el-form style="font-size: 20px">
  10577. <el-form-item label="文本标题" class="textTitle">
  10578. <div style="font-size: 20px">{{ text.name }}</div>
  10579. </el-form-item>
  10580. <div>富文本内容</div>
  10581. <div
  10582. v-html="text.url"
  10583. style="font-size: 18px; padding: 40px 0 0 0"
  10584. ></div>
  10585. </el-form>
  10586. <span slot="footer" class="dialog-footer">
  10587. <el-button type="primary" @click="dialogVisible1 = false"
  10588. >确定</el-button
  10589. >
  10590. </span>
  10591. </el-dialog>
  10592. <el-dialog
  10593. title="文件预览"
  10594. :visible.sync="dialogVisible3"
  10595. width="50%"
  10596. :before-close="handleClose"
  10597. class="dialog_diy"
  10598. :class="{ fullStyle: full }"
  10599. >
  10600. <div slot="title" class="header-title">
  10601. <div style="color: #fff">文件预览</div>
  10602. <div style="position: absolute; top: 19px; right: 50px">
  10603. <img
  10604. src="../../assets/full.png"
  10605. style="height: 16px; cursor: pointer"
  10606. alt=""
  10607. @click="fullTools"
  10608. />
  10609. </div>
  10610. </div>
  10611. <pdf
  10612. v-if="showPDF"
  10613. :pdfUrl="pptImgUrl"
  10614. style="width: 100%; height: 520px; overflow: auto"
  10615. :class="{ fullStyle: full }"
  10616. ></pdf>
  10617. <iframe
  10618. v-else
  10619. :src="pptImgUrl"
  10620. frameborder="0"
  10621. width="100%"
  10622. height="600"
  10623. :class="{ fullStyle: full }"
  10624. ></iframe>
  10625. </el-dialog>
  10626. <el-dialog
  10627. title="文件预览"
  10628. :visible.sync="dialogVisible6"
  10629. width="50%"
  10630. :before-close="handleClose"
  10631. class="dialog_diy"
  10632. >
  10633. <iframe
  10634. :src="pptImgUrl1"
  10635. frameborder="0"
  10636. width="100%"
  10637. height="600"
  10638. ></iframe>
  10639. </el-dialog>
  10640. <el-dialog
  10641. title="提示"
  10642. :visible.sync="dialogVisible4"
  10643. :append-to-body="true"
  10644. width="800px"
  10645. :before-close="handleClose"
  10646. class="dialog_diy notice"
  10647. >
  10648. <div>此功能暂未开放!</div>
  10649. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  10650. </el-dialog>
  10651. <el-dialog
  10652. title="问答"
  10653. :visible.sync="answerDialogVisible"
  10654. :append-to-body="true"
  10655. width="800px"
  10656. :before-close="handleClose"
  10657. class="dialog_diy"
  10658. >
  10659. <div>
  10660. <div
  10661. style="
  10662. display: flex;
  10663. flex-wrap: nowrap;
  10664. flex-direction: column;
  10665. position: relative;
  10666. "
  10667. >
  10668. <div class="queTop" style="padding: 20px 0 20px 0">
  10669. <div class="question">
  10670. <img src="../../assets/icon/question.png" alt />
  10671. </div>
  10672. <div class="queTitle">
  10673. <div style="width: 90px; min-width: 90px">提问:</div>
  10674. <div>{{ answerQ }}</div>
  10675. </div>
  10676. </div>
  10677. <div class="ediBottom">
  10678. <textarea
  10679. rows="6"
  10680. class="binfo_input"
  10681. cols
  10682. style="width: 95%; height: 120px"
  10683. v-model="questionAnswer"
  10684. ></textarea>
  10685. </div>
  10686. </div>
  10687. </div>
  10688. <div slot="footer">
  10689. <el-button @click="answerDialogVisible = false">取 消</el-button>
  10690. <el-button type="primary" @click="addQuestion">提 交</el-button>
  10691. </div>
  10692. </el-dialog>
  10693. <el-dialog
  10694. title="问答"
  10695. :visible.sync="answerDialogVisibleTeacher"
  10696. :append-to-body="true"
  10697. width="800px"
  10698. :before-close="handleClose"
  10699. class="dialog_diy"
  10700. >
  10701. <div>
  10702. <div class="w_name">
  10703. 学生姓名:<span>{{ sStudent.student }}</span>
  10704. </div>
  10705. <div
  10706. style="
  10707. display: flex;
  10708. flex-wrap: nowrap;
  10709. flex-direction: column;
  10710. position: relative;
  10711. "
  10712. >
  10713. <div class="queTop" style="padding: 20px 0 20px 0">
  10714. <div class="question">
  10715. <img src="../../assets/icon/question.png" alt />
  10716. </div>
  10717. <div class="queTitle">
  10718. <div style="width: 90px; min-width: 90px">提问:</div>
  10719. <div>{{ answerQ }}</div>
  10720. </div>
  10721. </div>
  10722. <div class="ediBottom">
  10723. <textarea
  10724. rows="6"
  10725. class="binfo_input"
  10726. cols
  10727. style="width: 95%; height: 120px"
  10728. v-model="questionAnswer"
  10729. ></textarea>
  10730. </div>
  10731. </div>
  10732. </div>
  10733. <div slot="footer">
  10734. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  10735. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  10736. </div>
  10737. </el-dialog>
  10738. <el-dialog
  10739. title="倒计时"
  10740. :visible.sync="timeDialogVisible"
  10741. :append-to-body="true"
  10742. width="800px"
  10743. :before-close="handleClose"
  10744. class="dialog_diy"
  10745. >
  10746. <div>
  10747. <div style="margin-bottom: 20px; color: #999">
  10748. 提示:点击“+”或“-”修改倒计时时长。
  10749. </div>
  10750. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  10751. </div>
  10752. <div slot="footer">
  10753. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  10754. </div>
  10755. </el-dialog>
  10756. <el-dialog
  10757. title="权限设置"
  10758. :visible.sync="juriVisible"
  10759. :append-to-body="true"
  10760. width="400px"
  10761. :before-close="handleClose"
  10762. class="dialog_diy"
  10763. >
  10764. <div>
  10765. <div class="open_box">
  10766. <div class="switch_box">
  10767. <span>允许学生查看所有作业</span>
  10768. <el-switch
  10769. v-model="sIsOpen"
  10770. active-text=""
  10771. class="switchCss"
  10772. @change="updateSLook"
  10773. ></el-switch>
  10774. </div>
  10775. <div
  10776. class="switch_box"
  10777. v-if="
  10778. courseDetail.userid == userid ||
  10779. (courseDetail.course_teacher &&
  10780. courseDetail.course_teacher.indexOf(userid) != -1)
  10781. "
  10782. >
  10783. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  10784. <span>禁止学生查看所有阶段</span>
  10785. <el-switch
  10786. v-model="IsLookOpen"
  10787. active-text=""
  10788. class="switchCss"
  10789. @change="updateLookOpen"
  10790. ></el-switch>
  10791. </div>
  10792. <div class="switch_box" v-if="courseDetail.userid == userid">
  10793. <span>开启跟随模式</span>
  10794. <el-switch
  10795. v-model="IsFollow"
  10796. active-text=""
  10797. class="switchCss"
  10798. @change="updateFollow"
  10799. ></el-switch>
  10800. </div>
  10801. </div>
  10802. </div>
  10803. <div slot="footer">
  10804. <el-button
  10805. style="background: #409efe; color: #fff"
  10806. @click="juriVisible = false"
  10807. >关 闭</el-button
  10808. >
  10809. </div>
  10810. </el-dialog>
  10811. <el-dialog
  10812. title="查看视频"
  10813. :visible.sync="videoVisible"
  10814. :append-to-body="true"
  10815. width="1000px"
  10816. :before-close="handleClose"
  10817. class="dialog_diy1"
  10818. >
  10819. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  10820. <video-player
  10821. class="video-player vjs-custom-skin"
  10822. :playsinline="true"
  10823. :options="videoDetail"
  10824. @play="onPlayerPlay($event)"
  10825. style="width: 100%; height: 100%"
  10826. ></video-player>
  10827. </div>
  10828. <div slot="footer">
  10829. <el-button
  10830. style="background: #409efe; color: #fff"
  10831. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  10832. >
  10833. 关 闭</el-button
  10834. >
  10835. </div>
  10836. </el-dialog>
  10837. <el-dialog
  10838. title="查看详情"
  10839. :visible.sync="commentDialogVisible"
  10840. :append-to-body="true"
  10841. width="800px"
  10842. :before-close="handleClose"
  10843. class="dialog_diy"
  10844. >
  10845. <div class="commentTop">
  10846. <div class="studentDetail">
  10847. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  10848. <div class="nameAndTime">
  10849. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  10850. <div>{{ commentDetail.time }}</div>
  10851. </div>
  10852. <div
  10853. class="returnBtn"
  10854. style="margin-left: auto; width: 80px"
  10855. v-if="
  10856. commentDetail.works &&
  10857. commentDetail.type == 0 &&
  10858. (tType == 1 || tType == 4)
  10859. "
  10860. @click="
  10861. showPicturePaint(
  10862. commentDetail.img ? commentDetail.img : commentDetail.works
  10863. )
  10864. "
  10865. >
  10866. 教师批注
  10867. </div>
  10868. </div>
  10869. <div
  10870. class="worksAnswer"
  10871. v-if="commentDetail.works && commentDetail.type == 2"
  10872. >
  10873. {{ JSON.parse(commentDetail.works)[0].answer }}
  10874. </div>
  10875. <div
  10876. class="worksAnswer"
  10877. v-if="commentDetail.works && commentDetail.type == 1"
  10878. >
  10879. <img
  10880. src="../../assets/teacherWork.png"
  10881. v-if="commentDetail.ateacher"
  10882. class="w_teachert"
  10883. />
  10884. <pdf
  10885. v-if="showPDF"
  10886. :pdfUrl="pptImgUrl"
  10887. style="width: 100%; height: 520px; overflow: auto"
  10888. :class="{ fullStyle: full }"
  10889. ></pdf>
  10890. <iframe
  10891. v-else
  10892. :src="pptImgUrl"
  10893. frameborder="0"
  10894. width="100%"
  10895. height="600"
  10896. :class="{ fullStyle: full }"
  10897. ></iframe>
  10898. </div>
  10899. <div
  10900. class="worksAnswer"
  10901. v-if="commentDetail.works && commentDetail.type == 0"
  10902. >
  10903. <img
  10904. src="../../assets/teacherWork.png"
  10905. v-if="commentDetail.ateacher"
  10906. class="w_teachert"
  10907. style="right: 105px"
  10908. />
  10909. <img
  10910. :src="commentDetail.works"
  10911. alt=""
  10912. @click="previewImg(commentDetail.works)"
  10913. />
  10914. </div>
  10915. <div
  10916. class="worksAnswer"
  10917. v-if="commentDetail.works && commentDetail.type == 3"
  10918. >
  10919. <img
  10920. src="../../assets/teacherWork.png"
  10921. v-if="commentDetail.ateacher"
  10922. class="w_teachert"
  10923. />
  10924. <video-player
  10925. class="video-player vjs-custom-skin"
  10926. :playsinline="true"
  10927. :options="videoDetail"
  10928. @play="onPlayerPlay($event)"
  10929. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  10930. ></video-player>
  10931. </div>
  10932. <div
  10933. class="worksAnswer"
  10934. v-if="commentDetail.works && commentDetail.type == 10"
  10935. >
  10936. <div class="cont" v-html="commentDetail.works.text"></div>
  10937. </div>
  10938. <div
  10939. class="worksAnswer codeFileBox"
  10940. v-if="commentDetail.works && commentDetail.type == 12"
  10941. @click="downloadFile(commentDetail.works)"
  10942. >
  10943. <img src="../../assets/icon/codeFile.png" />
  10944. <div>点击下载文件</div>
  10945. </div>
  10946. <div
  10947. class="worksAnswer codeFileBox"
  10948. v-if="commentDetail.works && commentDetail.type == 15"
  10949. @click="
  10950. openCocoPi(
  10951. 57,
  10952. commentIndexJson.toolIndex,
  10953. commentDetail.userid,
  10954. commentDetail.sName
  10955. )
  10956. "
  10957. >
  10958. <img src="../../assets/icon/codeFile.png" />
  10959. <div>点击打开CocoPi</div>
  10960. </div>
  10961. <div
  10962. class="worksAnswer"
  10963. v-if="commentDetail.works && commentDetail.type == 13"
  10964. >
  10965. <div v-html="JSON.parse(commentDetail.works).text"></div>
  10966. </div>
  10967. <div
  10968. class="worksAnswer"
  10969. v-if="commentDetail.works && commentDetail.type == 4"
  10970. >
  10971. <div class="evalCss">
  10972. <div class="nav">请选择星星进行评分</div>
  10973. <div class="middleBox" v-if="eScore.eStar">
  10974. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  10975. <div class="nameAndrate">
  10976. <div>{{ e.value }}</div>
  10977. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  10978. </div>
  10979. <div v-if="e.detail">{{ e.detail }}</div>
  10980. </div>
  10981. <div class="bz">
  10982. <textarea
  10983. disabled
  10984. rows="4"
  10985. class="pj"
  10986. style="
  10987. padding: 10px 5px;
  10988. width: 70%;
  10989. background: #f7f6f9;
  10990. font-size: 14px;
  10991. text-indent: 10px;
  10992. color: #000;
  10993. "
  10994. cols
  10995. v-model="eScore.eBzText"
  10996. placeholder="请输入评价内容..."
  10997. ></textarea>
  10998. </div>
  10999. </div>
  11000. </div>
  11001. </div>
  11002. <div class="comment">
  11003. <div class="commentList">
  11004. <div class="commentImg">
  11005. <img
  11006. @click="
  11007. isLikes(
  11008. commentDetail.wid,
  11009. userid,
  11010. 1,
  11011. null,
  11012. commentDetail.isLikes,
  11013. commentDetail.sName
  11014. )
  11015. "
  11016. :src="commentDetail.isLikes == true ? likes : noLikes"
  11017. alt=""
  11018. />
  11019. </div>
  11020. <div>{{ commentDetail.likesCount }}</div>
  11021. </div>
  11022. <div class="commentList">
  11023. <div class="commentImg">
  11024. <img src="../../assets/icon/comment/comment.png" alt="" />
  11025. </div>
  11026. <div>{{ commentDetail.commentCount }}</div>
  11027. </div>
  11028. </div>
  11029. <div class="drawPBox" v-if="commentDetail.img">
  11030. <span>教师批注</span>
  11031. <img
  11032. :src="commentDetail.img"
  11033. alt=""
  11034. @click="previewImg(commentDetail.img)"
  11035. />
  11036. <span
  11037. class="deleteImg"
  11038. v-if="tType == 1 || tType == 4"
  11039. @click.stop="deletePicturePaint(commentDetail.wid)"
  11040. style="
  11041. font-size: 14px;
  11042. width: auto !important;
  11043. color: #b4b4b4;
  11044. top: unset;
  11045. bottom: 0;
  11046. border: none;
  11047. padding: 0;
  11048. height: auto !important;
  11049. margin: 0;
  11050. "
  11051. >删除</span
  11052. >
  11053. </div>
  11054. </div>
  11055. <div class="commentBox">
  11056. <div class="pl">评论:</div>
  11057. <div style="max-height: 200px; overflow: auto">
  11058. <div
  11059. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  11060. style="padding: 10px 0 0 0"
  11061. >
  11062. <div
  11063. class="studentDetail"
  11064. style="padding-top: 10px"
  11065. v-for="(co, coIndex) in commentDetail.commentJson"
  11066. :key="coIndex"
  11067. >
  11068. <div class="tx" style="min-width: 50px">
  11069. <img src="../../assets/avatar.png" alt="" />
  11070. </div>
  11071. <div class="plPerson">
  11072. <div class="plName">
  11073. <div>{{ co.commentPeople }}</div>
  11074. <div style="margin-left: 5px">
  11075. {{ co.commentTime }}
  11076. </div>
  11077. <div
  11078. class="deleteComment"
  11079. v-if="userid == co.userid"
  11080. @click="deleteComment(co.wid)"
  11081. >
  11082. 删除
  11083. </div>
  11084. </div>
  11085. <div class="plContent">{{ co.commentText }}</div>
  11086. </div>
  11087. </div>
  11088. </div>
  11089. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  11090. </div>
  11091. </div>
  11092. <div style="margin-top: 10px">
  11093. <div class="displayBox">
  11094. <div
  11095. style="
  11096. color: #556db4;
  11097. font-size: 14px;
  11098. font-weight: bold;
  11099. padding-bottom: 10px;
  11100. "
  11101. >
  11102. 评价
  11103. </div>
  11104. <div class="easy_comment" v-if="false">
  11105. <div
  11106. v-for="(p, pIndex) in PlTextList"
  11107. :key="pIndex"
  11108. @click="fastText(p, 1)"
  11109. >
  11110. {{ p }}
  11111. </div>
  11112. </div>
  11113. </div>
  11114. <div>
  11115. <textarea
  11116. rows="3"
  11117. class="pj"
  11118. style="padding: 10px 5px"
  11119. cols
  11120. v-model="commentText"
  11121. placeholder="请输入评论"
  11122. ></textarea>
  11123. </div>
  11124. </div>
  11125. <div slot="footer">
  11126. <el-button
  11127. @click="
  11128. (commentDialogVisible = false),
  11129. (commentIndexJson = {}),
  11130. videoDetail.sources && videoDetail.sources[0]
  11131. ? (videoDetail.sources[0].src = '')
  11132. : ''
  11133. "
  11134. >取 消</el-button
  11135. >
  11136. <el-button
  11137. type="primary"
  11138. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  11139. >确 定</el-button
  11140. >
  11141. </div>
  11142. </el-dialog>
  11143. <el-dialog
  11144. title="查看文档"
  11145. :visible.sync="fullDialogVisible"
  11146. :append-to-body="true"
  11147. width="100%"
  11148. :before-close="handleClose"
  11149. :show-close="false"
  11150. class="dialog_diy full_diy"
  11151. :class="{ full_diy2: fulltype == 3 }"
  11152. >
  11153. <div slot="title" class="header-title">
  11154. <div style="color: #fff">查看文档</div>
  11155. <div
  11156. @click="fullDialogVisible = false"
  11157. style="
  11158. cursor: pointer;
  11159. position: absolute;
  11160. top: 20px;
  11161. right: 20px;
  11162. color: #fff;
  11163. "
  11164. >
  11165. 退出全屏
  11166. </div>
  11167. </div>
  11168. <div style="height: 100%">
  11169. <div
  11170. class="wheel"
  11171. v-if="
  11172. fulltype == 2 &&
  11173. fullUrl.indexOf(
  11174. 'https://view.officeapps.live.com/op/view.aspx?src='
  11175. ) != -1
  11176. "
  11177. style="width: 95%; margin: 0 auto"
  11178. >
  11179. <iframe
  11180. style="width: 100%; height: 100%; border: none"
  11181. :src="fullUrl"
  11182. ></iframe>
  11183. </div>
  11184. <iframe
  11185. v-else-if="fulltype == 2"
  11186. style="width: 100%; height: 100%; border: none"
  11187. :src="fullUrl"
  11188. security="restricted"
  11189. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  11190. ></iframe>
  11191. <pdf
  11192. v-else-if="fulltype == 3"
  11193. :pdfUrl="fullUrl"
  11194. style="width: 100%; height: 100%; overflow: auto"
  11195. ></pdf>
  11196. <div
  11197. class="wheel"
  11198. v-if="fulltype == 1"
  11199. style="
  11200. box-shadow: 0 0 6px 1px #f2f2f2;
  11201. width: 100%;
  11202. background: #f1f1f1;
  11203. "
  11204. >
  11205. <div class="title" style="width: 100%; box-sizing: border-box">
  11206. 查看文档
  11207. </div>
  11208. <el-form class="textBox" style="height: 90%">
  11209. <el-form-item class="textTitle">
  11210. <div style="font-size: 22px">
  11211. {{ fullUrl.name }}
  11212. </div>
  11213. </el-form-item>
  11214. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  11215. <div
  11216. v-html="fullUrl.url"
  11217. class="textContent"
  11218. style="height: auto"
  11219. ></div>
  11220. </el-form>
  11221. </div>
  11222. </div>
  11223. <!-- <div slot="footer">
  11224. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  11225. </div> -->
  11226. </el-dialog>
  11227. <el-dialog
  11228. title="个人评价"
  11229. :visible.sync="studentEvalDialogVisible"
  11230. :append-to-body="true"
  11231. width="800px"
  11232. :before-close="handleClose"
  11233. class="dialog_diy"
  11234. >
  11235. <div class="evalCss">
  11236. <div class="nav">请选择星星进行评分</div>
  11237. <div class="middleBox" v-if="eScore.eStar">
  11238. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11239. <div class="nameAndrate">
  11240. <div>{{ e.value }}</div>
  11241. <el-rate
  11242. v-model="eScore.eStar[eIndex]"
  11243. :disabled="isStar"
  11244. ></el-rate>
  11245. </div>
  11246. <div v-if="e.detail">{{ e.detail }}</div>
  11247. </div>
  11248. <div class="easy_comment" v-if="false">
  11249. <div
  11250. v-for="(p, pIndex) in PlTextList"
  11251. :key="pIndex"
  11252. @click="fastText(p, 2)"
  11253. >
  11254. {{ p }}
  11255. </div>
  11256. </div>
  11257. <div class="bz">
  11258. <textarea
  11259. :disabled="isStar"
  11260. rows="4"
  11261. class="pj"
  11262. style="
  11263. padding: 10px 5px;
  11264. width: 70%;
  11265. background: #f7f6f9;
  11266. font-size: 14px;
  11267. text-indent: 10px;
  11268. "
  11269. cols
  11270. v-model="eScore.eBzText"
  11271. placeholder="请输入评价内容..."
  11272. ></textarea>
  11273. </div>
  11274. </div>
  11275. </div>
  11276. <div slot="footer">
  11277. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  11278. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  11279. >确 定</el-button
  11280. >
  11281. </div>
  11282. </el-dialog>
  11283. <el-dialog
  11284. title="个人评价"
  11285. :visible.sync="studentEvalDialogVisibleTeacher"
  11286. :append-to-body="true"
  11287. width="800px"
  11288. :before-close="handleClose"
  11289. class="dialog_diy"
  11290. >
  11291. <div class="w_name">
  11292. 学生姓名:<span>{{ sStudent.student }}</span>
  11293. </div>
  11294. <div class="evalCss">
  11295. <div class="nav">请选择星星进行评分</div>
  11296. <div class="middleBox" v-if="eScore.eStar">
  11297. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  11298. <div class="nameAndrate">
  11299. <div>{{ e.value }}</div>
  11300. <el-rate
  11301. v-model="eScore.eStar[eIndex]"
  11302. :disabled="isStar"
  11303. ></el-rate>
  11304. </div>
  11305. <div v-if="e.detail">{{ e.detail }}</div>
  11306. </div>
  11307. <div class="easy_comment" v-if="false">
  11308. <div
  11309. v-for="(p, pIndex) in PlTextList"
  11310. :key="pIndex"
  11311. @click="fastText(p, 2)"
  11312. >
  11313. {{ p }}
  11314. </div>
  11315. </div>
  11316. <div class="bz">
  11317. <textarea
  11318. :disabled="isStar"
  11319. rows="4"
  11320. class="pj"
  11321. style="
  11322. padding: 10px 5px;
  11323. width: 70%;
  11324. background: #f7f6f9;
  11325. font-size: 14px;
  11326. text-indent: 10px;
  11327. "
  11328. cols
  11329. v-model="eScore.eBzText"
  11330. placeholder="请输入评价内容..."
  11331. ></textarea>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <div slot="footer">
  11336. <el-button @click="studentEvalDialogVisibleTeacher = false"
  11337. >取 消</el-button
  11338. >
  11339. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  11340. >确 定</el-button
  11341. >
  11342. </div>
  11343. </el-dialog>
  11344. <el-dialog
  11345. title="选择匹配"
  11346. :visible.sync="dialogVisibleSelect"
  11347. :append-to-body="true"
  11348. width="90%"
  11349. :before-close="handleClose"
  11350. class="dialog_diy dialog_diy3"
  11351. >
  11352. <div v-if="selectJson">
  11353. <div class="select_box2">
  11354. <div class="select_box2_title">
  11355. <div>选择匹配</div>
  11356. <div>请选择对应的答案进行答题!</div>
  11357. </div>
  11358. <div class="select_box2_box">
  11359. <div class="select_box2_img">
  11360. <img
  11361. :src="selectJson.url"
  11362. @click="previewImg(selectJson.url)"
  11363. alt=""
  11364. />
  11365. </div>
  11366. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11367. <div style="padding-top: 15px">
  11368. <div class="select_answer_title" v-if="isSelect">
  11369. {{ selectAnswer.stu }}
  11370. </div>
  11371. <div class="select_answer_title" v-else>
  11372. 根据题目选择对应答案
  11373. </div>
  11374. <div
  11375. class="select_box2_answer_box"
  11376. v-for="(item2, checkIndex) in selectJson.select"
  11377. :key="checkIndex"
  11378. >
  11379. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11380. <el-select
  11381. :disabled="isSelect"
  11382. v-model="selectAnswer.answer[checkIndex]"
  11383. placeholder="请选择正确答案"
  11384. >
  11385. <el-option
  11386. v-for="(e, eIndex) in selectJson.select"
  11387. :key="eIndex"
  11388. :label="e"
  11389. :value="eIndex"
  11390. >
  11391. </el-option>
  11392. </el-select>
  11393. </div>
  11394. </div>
  11395. <div
  11396. class="rightAnswerCss"
  11397. v-if="isSelect && (tType == 1 || tType == 4)"
  11398. >
  11399. <div
  11400. v-for="(a, aIndex) in selectJson.answer"
  11401. :key="aIndex"
  11402. class="rightAnswer"
  11403. >
  11404. <div
  11405. v-if="selectAnswer.answer[aIndex] === a"
  11406. style="color: #767de1"
  11407. >
  11408. 回答正确
  11409. </div>
  11410. <div v-else>回答错误</div>
  11411. <div
  11412. style="margin-left: 10px"
  11413. v-if="selectAnswer.answer[aIndex] !== a"
  11414. >
  11415. 正确答案:
  11416. </div>
  11417. <div
  11418. :class="
  11419. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11420. "
  11421. >
  11422. {{ selectJson.select[a] }}
  11423. </div>
  11424. </div>
  11425. </div>
  11426. </div>
  11427. <div class="upAnswerCss">
  11428. <el-button
  11429. type="primary"
  11430. @click="addSelectAnswer"
  11431. v-if="!isSelect"
  11432. >提交答案</el-button
  11433. >
  11434. </div>
  11435. </div>
  11436. </div>
  11437. </div>
  11438. </el-dialog>
  11439. <el-dialog
  11440. title="选择匹配"
  11441. :visible.sync="dialogVisibleSelectTeacher"
  11442. :append-to-body="true"
  11443. width="90%"
  11444. :before-close="handleClose"
  11445. class="dialog_diy dialog_diy3"
  11446. >
  11447. <div v-if="selectJson">
  11448. <div class="w_name">
  11449. 学生姓名:<span>{{ sStudent.student }}</span>
  11450. </div>
  11451. <div class="select_box2">
  11452. <div class="select_box2_title">
  11453. <div>选择匹配</div>
  11454. <div>请选择对应的答案进行答题!</div>
  11455. </div>
  11456. <div class="select_box2_box">
  11457. <div class="select_box2_img">
  11458. <img
  11459. :src="selectJson.url"
  11460. @click="previewImg(selectJson.url)"
  11461. alt=""
  11462. />
  11463. </div>
  11464. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  11465. <div style="padding-top: 15px">
  11466. <div class="select_answer_title" v-if="isSelect">
  11467. {{ selectAnswer.stu }}
  11468. </div>
  11469. <div class="select_answer_title" v-else>
  11470. 根据题目选择对应答案
  11471. </div>
  11472. <div
  11473. class="select_box2_answer_box"
  11474. v-for="(item2, checkIndex) in selectJson.select"
  11475. :key="checkIndex"
  11476. >
  11477. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  11478. <el-select
  11479. :disabled="isSelect"
  11480. v-model="selectAnswer.answer[checkIndex]"
  11481. placeholder="请选择正确答案"
  11482. >
  11483. <el-option
  11484. v-for="(e, eIndex) in selectJson.select"
  11485. :key="eIndex"
  11486. :label="e"
  11487. :value="eIndex"
  11488. >
  11489. </el-option>
  11490. </el-select>
  11491. </div>
  11492. </div>
  11493. <div
  11494. class="rightAnswerCss"
  11495. v-if="isSelect && (tType == 1 || tType == 4)"
  11496. >
  11497. <div
  11498. v-for="(a, aIndex) in selectJson.answer"
  11499. :key="aIndex"
  11500. class="rightAnswer"
  11501. >
  11502. <div
  11503. v-if="selectAnswer.answer[aIndex] === a"
  11504. style="color: #767de1"
  11505. >
  11506. 回答正确
  11507. </div>
  11508. <div v-else>回答错误</div>
  11509. <div
  11510. style="margin-left: 10px"
  11511. v-if="selectAnswer.answer[aIndex] !== a"
  11512. >
  11513. 正确答案:
  11514. </div>
  11515. <div
  11516. :class="
  11517. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  11518. "
  11519. >
  11520. {{ selectJson.select[a] }}
  11521. </div>
  11522. </div>
  11523. </div>
  11524. </div>
  11525. <div class="upAnswerCss">
  11526. <el-button
  11527. type="primary"
  11528. @click="addSelectAnswerTeacher"
  11529. v-if="!isSelect"
  11530. >提交答案</el-button
  11531. >
  11532. </div>
  11533. </div>
  11534. </div>
  11535. </div>
  11536. </el-dialog>
  11537. <el-dialog
  11538. title="教师评分"
  11539. :visible.sync="dialogVisibleScore"
  11540. :append-to-body="true"
  11541. width="800px"
  11542. :before-close="handleClose"
  11543. class="dialog_diy"
  11544. >
  11545. <div>
  11546. <div class="studentDetail">
  11547. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  11548. <div class="nameAndTime">
  11549. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  11550. <div>{{ commentDetail.time }}</div>
  11551. </div>
  11552. </div>
  11553. <div
  11554. class="worksAnswer"
  11555. v-if="commentDetail.works && commentDetail.type == 2"
  11556. >
  11557. {{ JSON.parse(commentDetail.works)[0].answer }}
  11558. </div>
  11559. <div
  11560. class="worksAnswer"
  11561. v-if="commentDetail.works && commentDetail.type == 1"
  11562. >
  11563. <pdf
  11564. v-if="showPDF"
  11565. :pdfUrl="pptImgUrl"
  11566. style="width: 100%; height: 520px; overflow: auto"
  11567. :class="{ fullStyle: full }"
  11568. ></pdf>
  11569. <iframe
  11570. v-else
  11571. :src="pptImgUrl"
  11572. frameborder="0"
  11573. width="100%"
  11574. height="600"
  11575. :class="{ fullStyle: full }"
  11576. ></iframe>
  11577. </div>
  11578. <div
  11579. class="worksAnswer"
  11580. v-if="commentDetail.works && commentDetail.type == 0"
  11581. >
  11582. <img
  11583. :src="commentDetail.works"
  11584. alt=""
  11585. @click="previewImg(commentDetail.works)"
  11586. />
  11587. </div>
  11588. <div
  11589. class="worksAnswer"
  11590. v-if="commentDetail.works && commentDetail.type == 3"
  11591. >
  11592. <video-player
  11593. class="video-player vjs-custom-skin"
  11594. :playsinline="true"
  11595. :options="videoDetail"
  11596. @play="onPlayerPlay($event)"
  11597. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  11598. ></video-player>
  11599. </div>
  11600. <div
  11601. class="worksAnswer codeFileBox"
  11602. v-if="commentDetail.works && commentDetail.type == 12"
  11603. @click="downloadFile(commentDetail.works)"
  11604. >
  11605. <img src="../../assets/icon/codeFile.png" />
  11606. <div>点击下载文件</div>
  11607. </div>
  11608. <div
  11609. class="worksAnswer codeFileBox"
  11610. v-if="commentDetail.works && commentDetail.type == 15"
  11611. @click="
  11612. openCocoPi(
  11613. 57,
  11614. commentIndexJson.toolIndex,
  11615. commentDetail.userid,
  11616. commentDetail.sName
  11617. )
  11618. "
  11619. >
  11620. <img src="../../assets/icon/codeFile.png" />
  11621. <div>点击打开CocoPi</div>
  11622. </div>
  11623. <div
  11624. class="worksAnswer"
  11625. v-if="commentDetail.works && commentDetail.type == 13"
  11626. >
  11627. <div v-html="JSON.parse(commentDetail.works).text"></div>
  11628. </div>
  11629. <div class="scoreBox">
  11630. <span class="t">请输入分数</span>
  11631. <el-input-number
  11632. :disabled="courseDetail.userid != userid"
  11633. v-model="wScore"
  11634. :controls="false"
  11635. :min="0"
  11636. :max="100"
  11637. ></el-input-number>
  11638. </div>
  11639. <div class="scoreDetailBox">
  11640. <span class="t">评分评论</span>
  11641. <el-input
  11642. type="textarea"
  11643. :rows="5"
  11644. :disabled="courseDetail.userid != userid"
  11645. resize="none"
  11646. v-model="scoreDetail"
  11647. placeholder="请输入对学生的评价"
  11648. >
  11649. </el-input>
  11650. </div>
  11651. </div>
  11652. <span slot="footer" class="dialog-footer">
  11653. <el-button
  11654. @click="
  11655. (dialogVisibleScore = false),
  11656. (commentIndexJson = {}),
  11657. videoDetail.sources && videoDetail.sources[0]
  11658. ? (videoDetail.sources[0].src = '')
  11659. : ''
  11660. "
  11661. >取 消</el-button
  11662. >
  11663. <el-button
  11664. type="primary"
  11665. v-if="courseDetail.userid == userid"
  11666. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  11667. >确 定
  11668. </el-button>
  11669. </span>
  11670. </el-dialog>
  11671. <el-dialog
  11672. title="排序"
  11673. :visible.sync="dialogVisibleSentence"
  11674. :append-to-body="true"
  11675. width="1000px"
  11676. :before-close="handleClose"
  11677. class="dialog_diy dialog_diy3"
  11678. >
  11679. <div>
  11680. <div class="sentenBox">
  11681. <div
  11682. v-for="(st, stIndex) in sentenceList"
  11683. :key="stIndex"
  11684. style="padding-bottom: 20px"
  11685. >
  11686. <div
  11687. style="padding: 15px 0 10px 20px"
  11688. class="sentenceTitle"
  11689. :index="stIndex + 1"
  11690. >
  11691. 题目{{ stIndex + 1 }}:请选择正确顺序
  11692. </div>
  11693. <div class="cardList" v-if="st.chooseSenList">
  11694. <div class="cardBox">
  11695. <div
  11696. v-for="(r, rIndex) in st.chooseSenList"
  11697. :key="rIndex"
  11698. @click="returnCard(r, stIndex, rIndex)"
  11699. >
  11700. <el-tooltip
  11701. class="item"
  11702. effect="light"
  11703. :content="r"
  11704. placement="top"
  11705. v-if="r != '' && r != undefined"
  11706. >
  11707. <div
  11708. :class="{
  11709. isCard: r,
  11710. isChooseCard: r == '' || r == undefined,
  11711. }"
  11712. >
  11713. <div>{{ r }}</div>
  11714. </div>
  11715. </el-tooltip>
  11716. <div
  11717. :class="{
  11718. isCard: r,
  11719. isChooseCard: r == '' || r == undefined,
  11720. }"
  11721. v-else
  11722. >
  11723. <div>{{ r }}</div>
  11724. </div>
  11725. </div>
  11726. </div>
  11727. </div>
  11728. <div class="cardList" v-if="st.addChangeSen">
  11729. <div class="cardBox">
  11730. <div
  11731. v-for="(s, sIndex) in st.addChangeSen"
  11732. :key="sIndex"
  11733. @click="setRightAnswer(s, stIndex, sIndex)"
  11734. >
  11735. <el-tooltip
  11736. class="item"
  11737. effect="light"
  11738. :content="s"
  11739. placement="top"
  11740. v-if="s != '' && s != undefined"
  11741. >
  11742. <div
  11743. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11744. >
  11745. <div>{{ s }}</div>
  11746. </div>
  11747. </el-tooltip>
  11748. <div
  11749. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11750. v-else
  11751. >
  11752. <div>{{ s }}</div>
  11753. </div>
  11754. </div>
  11755. </div>
  11756. </div>
  11757. </div>
  11758. </div>
  11759. </div>
  11760. <span slot="footer" class="dialog-footer">
  11761. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  11762. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  11763. </span>
  11764. </el-dialog>
  11765. <el-dialog
  11766. title="排序"
  11767. :visible.sync="dialogVisibleSentenceTeacher"
  11768. :append-to-body="true"
  11769. width="1000px"
  11770. :before-close="handleClose"
  11771. class="dialog_diy dialog_diy3"
  11772. >
  11773. <div>
  11774. <div class="w_name">
  11775. 学生姓名:<span>{{ sStudent.student }}</span>
  11776. </div>
  11777. <div class="sentenBox">
  11778. <div
  11779. v-for="(st, stIndex) in sentenceList"
  11780. :key="stIndex"
  11781. style="padding-bottom: 20px"
  11782. >
  11783. <div
  11784. style="padding: 15px 0 10px 20px"
  11785. class="sentenceTitle"
  11786. :index="stIndex + 1"
  11787. >
  11788. 题目{{ stIndex + 1 }}:请选择正确顺序
  11789. </div>
  11790. <div class="cardList" v-if="st.chooseSenList">
  11791. <div class="cardBox">
  11792. <div
  11793. v-for="(r, rIndex) in st.chooseSenList"
  11794. :key="rIndex"
  11795. @click="returnCard(r, stIndex, rIndex)"
  11796. >
  11797. <el-tooltip
  11798. class="item"
  11799. effect="light"
  11800. :content="r"
  11801. placement="top"
  11802. v-if="r != '' && r != undefined"
  11803. >
  11804. <div
  11805. :class="{
  11806. isCard: r,
  11807. isChooseCard: r == '' || r == undefined,
  11808. }"
  11809. >
  11810. <div>{{ r }}</div>
  11811. </div>
  11812. </el-tooltip>
  11813. <div
  11814. :class="{
  11815. isCard: r,
  11816. isChooseCard: r == '' || r == undefined,
  11817. }"
  11818. v-else
  11819. >
  11820. <div>{{ r }}</div>
  11821. </div>
  11822. </div>
  11823. </div>
  11824. </div>
  11825. <div class="cardList" v-if="st.addChangeSen">
  11826. <div class="cardBox">
  11827. <div
  11828. v-for="(s, sIndex) in st.addChangeSen"
  11829. :key="sIndex"
  11830. @click="setRightAnswer(s, stIndex, sIndex)"
  11831. >
  11832. <el-tooltip
  11833. class="item"
  11834. effect="light"
  11835. :content="s"
  11836. placement="top"
  11837. v-if="s != '' && s != undefined"
  11838. >
  11839. <div
  11840. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11841. >
  11842. <div>{{ s }}</div>
  11843. </div>
  11844. </el-tooltip>
  11845. <div
  11846. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  11847. v-else
  11848. >
  11849. <div>{{ s }}</div>
  11850. </div>
  11851. </div>
  11852. </div>
  11853. </div>
  11854. </div>
  11855. </div>
  11856. </div>
  11857. <span slot="footer" class="dialog-footer">
  11858. <el-button @click="dialogVisibleSentenceTeacher = false"
  11859. >取 消</el-button
  11860. >
  11861. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  11862. </span>
  11863. </el-dialog>
  11864. <el-dialog
  11865. title="排序"
  11866. :visible.sync="dialogVisibleSentence1"
  11867. :append-to-body="true"
  11868. width="1000px"
  11869. :before-close="handleClose"
  11870. class="dialog_diy dialog_diy3"
  11871. >
  11872. <div>
  11873. <div class="sentenBox">
  11874. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11875. {{ sentenceList1.stuName }}的作业
  11876. </div>
  11877. <div
  11878. v-for="(st, stIndex) in sentenceList1"
  11879. :key="stIndex"
  11880. style="padding-bottom: 20px"
  11881. >
  11882. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  11883. 第{{ stIndex + 1 }}题
  11884. </div>
  11885. <div class="isWrong">
  11886. <div class="cardList1" v-if="st.chooseSenList">
  11887. <div class="cardBox">
  11888. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  11889. <el-tooltip
  11890. class="item"
  11891. effect="light"
  11892. :content="s"
  11893. placement="top"
  11894. >
  11895. <div class="isCard">
  11896. <div>{{ s }}</div>
  11897. </div>
  11898. </el-tooltip>
  11899. </div>
  11900. </div>
  11901. <div class="cardAnswerBox">
  11902. 组成句子:{{ st.chooseSenList.join(" ") }}
  11903. </div>
  11904. </div>
  11905. <div v-if="tType == 2" class="isTj">
  11906. <div class="isTjImg">
  11907. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11908. </div>
  11909. <div>已提交</div>
  11910. </div>
  11911. <div
  11912. class="answerRight isTj"
  11913. v-if="
  11914. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  11915. (tType == 1 || tType == 4)
  11916. "
  11917. >
  11918. <div class="isTjImg">
  11919. <img src="../../assets/icon/conSentences/right.png" alt="" />
  11920. </div>
  11921. <div>回答正确</div>
  11922. </div>
  11923. <div
  11924. class="answerRight isTj"
  11925. v-if="
  11926. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11927. (tType == 1 || tType == 4)
  11928. "
  11929. >
  11930. <div class="isTjImg">
  11931. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  11932. </div>
  11933. <div>回答错误</div>
  11934. </div>
  11935. </div>
  11936. <div
  11937. v-if="
  11938. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  11939. (tType == 1 || tType == 4)
  11940. "
  11941. >
  11942. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  11943. <div
  11944. class="cardList"
  11945. v-if="st.rightAnswer"
  11946. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  11947. >
  11948. <div class="cardBox">
  11949. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  11950. <el-tooltip
  11951. class="item"
  11952. effect="light"
  11953. :content="r"
  11954. placement="top"
  11955. >
  11956. <div class="isCard1">
  11957. <div>{{ r }}</div>
  11958. </div>
  11959. </el-tooltip>
  11960. </div>
  11961. </div>
  11962. <div class="cardAnswerBox">
  11963. 组成句子:{{ st.rightAnswer.join(" ") }}
  11964. </div>
  11965. </div>
  11966. </div>
  11967. </div>
  11968. </div>
  11969. </div>
  11970. <span slot="footer" class="dialog-footer">
  11971. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  11972. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  11973. >确 定</el-button
  11974. >
  11975. </span>
  11976. </el-dialog>
  11977. <el-dialog
  11978. title="教师提交作业"
  11979. :visible.sync="dialogVisibleWorks"
  11980. :append-to-body="true"
  11981. width="500px"
  11982. :before-close="handleClose"
  11983. class="dialog_change"
  11984. >
  11985. <div class="marginT">
  11986. <div class="w_name">
  11987. 学生姓名:<span>{{ sStudent.student }}</span>
  11988. </div>
  11989. <div>上传文件</div>
  11990. <div
  11991. class="chapter_add"
  11992. @click="addImg($event)"
  11993. v-if="studyJuri[0].cover.length == 0"
  11994. >
  11995. <div class="up_photo">
  11996. <img src="../../assets/uploadImg2.png" alt />
  11997. </div>
  11998. <!-- <input
  11999. type="file"
  12000. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12001. style="display: none"
  12002. @change="beforeUpload1($event, 1)"
  12003. /> -->
  12004. <input
  12005. type="file"
  12006. accept="*"
  12007. style="display: none"
  12008. @change="beforeUpload1($event, 1)"
  12009. />
  12010. </div>
  12011. <!-- capture="camera" -->
  12012. <div
  12013. class="chapter_add"
  12014. style="
  12015. display: flex;
  12016. width: 100%;
  12017. flex-direction: row;
  12018. flex-wrap: wrap;
  12019. justify-content: flex-start;
  12020. padding: 15px 0;
  12021. "
  12022. v-if="studyJuri[0].cover.length > 0"
  12023. >
  12024. <div class="upCover">
  12025. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12026. <img :src="word" alt v-else-if="fileType == 1" />
  12027. <img :src="video" alt v-else-if="fileType == 2" />
  12028. <img :src="word2" alt v-else-if="fileType == 3" />
  12029. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12030. <div class="deleteWord" @click="clean(1)">
  12031. <img src="../../assets/icon/deleteWorks.png" alt />
  12032. </div>
  12033. </div>
  12034. </div>
  12035. </div>
  12036. <div
  12037. class="upload_send"
  12038. @click="addCourseWorksTeacher(taskCount)"
  12039. v-if="!proVisible"
  12040. >
  12041. 提交
  12042. </div>
  12043. </el-dialog>
  12044. <ImgDraw
  12045. :drawShow="drawShow"
  12046. @closeDraw="closeDraw"
  12047. @addImgDraw="addImgDraw"
  12048. :bg="bg"
  12049. ></ImgDraw>
  12050. <el-dialog
  12051. title="表格"
  12052. :visible.sync="dialogVisibleTable"
  12053. :append-to-body="true"
  12054. width="95%"
  12055. :before-close="handleClose"
  12056. class="dialog_diy"
  12057. >
  12058. <el-form>
  12059. <div
  12060. style="
  12061. display: flex;
  12062. align-items: center;
  12063. justify-content: space-between;
  12064. "
  12065. >
  12066. <span>表格内容</span>
  12067. <el-button type="primary" size="small" @click="returnTableText"
  12068. >还原模板</el-button
  12069. >
  12070. </div>
  12071. <Table
  12072. v-model="tableJson.text"
  12073. @change="change"
  12074. v-if="dialogVisibleTable"
  12075. ></Table>
  12076. </el-form>
  12077. <span slot="footer" class="dialog-footer">
  12078. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  12079. <el-button type="primary" @click="addTableWorks">确定</el-button>
  12080. </span>
  12081. </el-dialog>
  12082. <el-dialog
  12083. title="表格"
  12084. :visible.sync="dialogVisibleTableTeacher"
  12085. :append-to-body="true"
  12086. width="95%"
  12087. :before-close="handleClose"
  12088. class="dialog_diy"
  12089. >
  12090. <el-form>
  12091. <div class="w_name">
  12092. 学生姓名:<span>{{ sStudent.student }}</span>
  12093. </div>
  12094. <div>表格内容</div>
  12095. <Table
  12096. v-model="tableJson.text"
  12097. @change="change"
  12098. v-if="dialogVisibleTableTeacher"
  12099. ></Table>
  12100. </el-form>
  12101. <span slot="footer" class="dialog-footer">
  12102. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  12103. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  12104. </span>
  12105. </el-dialog>
  12106. <el-dialog
  12107. title="文档"
  12108. :visible.sync="dialogVisibleWord"
  12109. :append-to-body="true"
  12110. width="95%"
  12111. :before-close="handleClose"
  12112. class="dialog_diy"
  12113. >
  12114. <el-form>
  12115. <div
  12116. style="
  12117. display: flex;
  12118. align-items: center;
  12119. justify-content: space-between;
  12120. "
  12121. >
  12122. <span>文档内容</span>
  12123. <el-button type="primary" size="small" @click="returnWordText"
  12124. >还原模板</el-button
  12125. >
  12126. </div>
  12127. <editor-bar
  12128. v-model="wordJson.text"
  12129. v-if="dialogVisibleWord"
  12130. ></editor-bar>
  12131. </el-form>
  12132. <span slot="footer" class="dialog-footer">
  12133. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  12134. <el-button type="primary" @click="addWordWorks">确定</el-button>
  12135. </span>
  12136. </el-dialog>
  12137. <el-dialog
  12138. title="文档"
  12139. :visible.sync="dialogVisibleWordTeacher"
  12140. :append-to-body="true"
  12141. width="95%"
  12142. :before-close="handleClose"
  12143. class="dialog_diy"
  12144. >
  12145. <el-form>
  12146. <div class="w_name">
  12147. 学生姓名:<span>{{ sStudent.student }}</span>
  12148. </div>
  12149. <div>文档内容</div>
  12150. <editor-bar
  12151. v-model="wordJson.text"
  12152. v-if="dialogVisibleWordTeacher"
  12153. ></editor-bar>
  12154. </el-form>
  12155. <span slot="footer" class="dialog-footer">
  12156. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  12157. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  12158. </span>
  12159. </el-dialog>
  12160. <el-dialog
  12161. title="表格"
  12162. :visible.sync="dialogVisibleTable2"
  12163. :append-to-body="true"
  12164. width="95%"
  12165. :before-close="handleClose"
  12166. class="dialog_diy"
  12167. >
  12168. <el-form>
  12169. <div class="cont" v-html="tableJson.text"></div>
  12170. </el-form>
  12171. <span slot="footer" class="dialog-footer">
  12172. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  12173. </span>
  12174. </el-dialog>
  12175. <el-dialog
  12176. title="文档"
  12177. :visible.sync="dialogVisibleTable3"
  12178. :append-to-body="true"
  12179. width="95%"
  12180. :before-close="handleClose"
  12181. class="dialog_diy"
  12182. >
  12183. <el-form>
  12184. <div class="cont" v-html="tableJson.text"></div>
  12185. </el-form>
  12186. <span slot="footer" class="dialog-footer">
  12187. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  12188. </span>
  12189. </el-dialog>
  12190. <el-dialog
  12191. title="分组设置"
  12192. :visible.sync="dialogVisibleGroup"
  12193. :append-to-body="true"
  12194. width="95%"
  12195. :before-close="handleClose"
  12196. class="dialog_diy"
  12197. >
  12198. <div v-if="dialogVisibleGroup">
  12199. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  12200. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  12201. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  12202. </div>
  12203. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  12204. @click="lockChair">
  12205. 锁定位置
  12206. </div>
  12207. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  12208. 解锁位置
  12209. </div> -->
  12210. <div class="group_switch">
  12211. <span>开放选座</span>
  12212. <el-switch
  12213. v-model="islock"
  12214. active-text=""
  12215. class="switchCss"
  12216. @change="lockChair"
  12217. ></el-switch>
  12218. </div>
  12219. <div
  12220. type="primary"
  12221. @click="updateGroup"
  12222. class="returnBtn"
  12223. style="background-color: #225bc7"
  12224. >
  12225. 分组设置
  12226. </div>
  12227. </div>
  12228. <div>
  12229. <div
  12230. class="g_d_box"
  12231. v-if="groupJson.group && groupStudent[toolindex]"
  12232. >
  12233. <div
  12234. class="g_d_group"
  12235. v-for="(g, gindex) in groupJson.group"
  12236. :key="gindex"
  12237. >
  12238. <div class="g_d_group_chair">
  12239. <div v-if="groupJson.number > 1">
  12240. <span
  12241. :class="{
  12242. isChair:
  12243. groupStudent[toolindex][gindex] &&
  12244. groupStudent[toolindex][gindex][0],
  12245. updateChair:
  12246. courseDetail.userid == userid &&
  12247. groupStudent[toolindex][gindex] &&
  12248. groupStudent[toolindex][gindex][0] &&
  12249. groupJson.islock == 2,
  12250. }"
  12251. ><span
  12252. class="updateChairBtn"
  12253. @click="
  12254. updateGroupChair(
  12255. groupStudent[toolindex][gindex] &&
  12256. groupStudent[toolindex][gindex][0]
  12257. )
  12258. "
  12259. >修改</span
  12260. ></span
  12261. ><span>{{
  12262. groupStudent[toolindex][gindex] &&
  12263. groupStudent[toolindex][gindex][0]
  12264. ? groupStudent[toolindex][gindex] &&
  12265. groupStudent[toolindex][gindex][0].name
  12266. : "空位置"
  12267. }}</span>
  12268. </div>
  12269. <div v-if="groupJson.number > 4">
  12270. <span
  12271. :class="{
  12272. isChair:
  12273. groupStudent[toolindex][gindex] &&
  12274. groupStudent[toolindex][gindex][4],
  12275. updateChair:
  12276. courseDetail.userid == userid &&
  12277. groupStudent[toolindex][gindex] &&
  12278. groupStudent[toolindex][gindex][4] &&
  12279. groupJson.islock == 2,
  12280. }"
  12281. ><span
  12282. class="updateChairBtn"
  12283. @click="
  12284. updateGroupChair(
  12285. groupStudent[toolindex][gindex] &&
  12286. groupStudent[toolindex][gindex][4]
  12287. )
  12288. "
  12289. >修改</span
  12290. ></span
  12291. ><span>{{
  12292. groupStudent[toolindex][gindex] &&
  12293. groupStudent[toolindex][gindex][4]
  12294. ? groupStudent[toolindex][gindex] &&
  12295. groupStudent[toolindex][gindex][4].name
  12296. : "空位置"
  12297. }}</span>
  12298. </div>
  12299. <div v-if="groupJson.number > 8">
  12300. <span
  12301. :class="{
  12302. isChair:
  12303. groupStudent[toolindex][gindex] &&
  12304. groupStudent[toolindex][gindex][8],
  12305. updateChair:
  12306. courseDetail.userid == userid &&
  12307. groupStudent[toolindex][gindex] &&
  12308. groupStudent[toolindex][gindex][8] &&
  12309. groupJson.islock == 2,
  12310. }"
  12311. ><span
  12312. class="updateChairBtn"
  12313. @click="
  12314. updateGroupChair(
  12315. groupStudent[toolindex][gindex] &&
  12316. groupStudent[toolindex][gindex][8]
  12317. )
  12318. "
  12319. >修改</span
  12320. ></span
  12321. ><span>{{
  12322. groupStudent[toolindex][gindex] &&
  12323. groupStudent[toolindex][gindex][8]
  12324. ? groupStudent[toolindex][gindex] &&
  12325. groupStudent[toolindex][gindex][8].name
  12326. : "空位置"
  12327. }}</span>
  12328. </div>
  12329. </div>
  12330. <div class="g_d_group_tableBox">
  12331. <div class="g_d_group_chair2">
  12332. <div v-if="groupJson.number > 2">
  12333. <span
  12334. :class="{
  12335. isChair:
  12336. groupStudent[toolindex][gindex] &&
  12337. groupStudent[toolindex][gindex][2],
  12338. updateChair:
  12339. courseDetail.userid == userid &&
  12340. groupStudent[toolindex][gindex] &&
  12341. groupStudent[toolindex][gindex][2] &&
  12342. groupJson.islock == 2,
  12343. }"
  12344. ><span
  12345. class="updateChairBtn"
  12346. @click="
  12347. updateGroupChair(
  12348. groupStudent[toolindex][gindex] &&
  12349. groupStudent[toolindex][gindex][2]
  12350. )
  12351. "
  12352. >修改</span
  12353. ></span
  12354. ><span>{{
  12355. groupStudent[toolindex][gindex] &&
  12356. groupStudent[toolindex][gindex][2]
  12357. ? groupStudent[toolindex][gindex] &&
  12358. groupStudent[toolindex][gindex][2].name
  12359. : "空位置"
  12360. }}</span>
  12361. </div>
  12362. <div v-if="groupJson.number > 6">
  12363. <span
  12364. :class="{
  12365. isChair:
  12366. groupStudent[toolindex][gindex] &&
  12367. groupStudent[toolindex][gindex][6],
  12368. updateChair:
  12369. courseDetail.userid == userid &&
  12370. groupStudent[toolindex][gindex] &&
  12371. groupStudent[toolindex][gindex][6] &&
  12372. groupJson.islock == 2,
  12373. }"
  12374. ><span
  12375. class="updateChairBtn"
  12376. @click="
  12377. updateGroupChair(
  12378. groupStudent[toolindex][gindex] &&
  12379. groupStudent[toolindex][gindex][6]
  12380. )
  12381. "
  12382. >修改</span
  12383. ></span
  12384. ><span>{{
  12385. groupStudent[toolindex][gindex] &&
  12386. groupStudent[toolindex][gindex][6]
  12387. ? groupStudent[toolindex][gindex] &&
  12388. groupStudent[toolindex][gindex][6].name
  12389. : "空位置"
  12390. }}</span>
  12391. </div>
  12392. </div>
  12393. <div class="g_d_group_table">
  12394. <div>
  12395. {{ g.name }}
  12396. </div>
  12397. <div>
  12398. <div
  12399. v-if="
  12400. courseDetail.userid == userid && groupJson.islock == 2
  12401. "
  12402. @click="deleteGroupChair(gindex)"
  12403. >
  12404. 移除组员
  12405. </div>
  12406. <div
  12407. @click="selectGroup(gindex)"
  12408. v-else-if="
  12409. groupStudentUid[toolindex] &&
  12410. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  12411. "
  12412. >
  12413. 加入分组
  12414. </div>
  12415. <div
  12416. @click="
  12417. exitGroup(
  12418. groupStudent[toolindex][gindex] &&
  12419. groupStudent[toolindex][gindex][
  12420. groupStudentUid[toolindex][gindex].indexOf(userid)
  12421. ].id
  12422. )
  12423. "
  12424. v-else-if="
  12425. groupStudentUid[toolindex] &&
  12426. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  12427. "
  12428. >
  12429. 退出分组
  12430. </div>
  12431. </div>
  12432. </div>
  12433. <div class="g_d_group_chair2">
  12434. <div v-if="groupJson.number > 3">
  12435. <span
  12436. :class="{
  12437. isChair:
  12438. groupStudent[toolindex][gindex] &&
  12439. groupStudent[toolindex][gindex][3],
  12440. updateChair:
  12441. courseDetail.userid == userid &&
  12442. groupStudent[toolindex][gindex] &&
  12443. groupStudent[toolindex][gindex][3] &&
  12444. groupJson.islock == 2,
  12445. }"
  12446. ><span
  12447. class="updateChairBtn"
  12448. @click="
  12449. updateGroupChair(
  12450. groupStudent[toolindex][gindex] &&
  12451. groupStudent[toolindex][gindex][3]
  12452. )
  12453. "
  12454. >修改</span
  12455. ></span
  12456. ><span>{{
  12457. groupStudent[toolindex][gindex] &&
  12458. groupStudent[toolindex][gindex][3]
  12459. ? groupStudent[toolindex][gindex] &&
  12460. groupStudent[toolindex][gindex][3].name
  12461. : "空位置"
  12462. }}</span>
  12463. </div>
  12464. <div v-if="groupJson.number > 7">
  12465. <span
  12466. :class="{
  12467. isChair:
  12468. groupStudent[toolindex][gindex] &&
  12469. groupStudent[toolindex][gindex][7],
  12470. updateChair:
  12471. courseDetail.userid == userid &&
  12472. groupStudent[toolindex][gindex] &&
  12473. groupStudent[toolindex][gindex][7] &&
  12474. groupJson.islock == 2,
  12475. }"
  12476. ><span
  12477. class="updateChairBtn"
  12478. @click="
  12479. updateGroupChair(
  12480. groupStudent[toolindex][gindex] &&
  12481. groupStudent[toolindex][gindex][7]
  12482. )
  12483. "
  12484. >修改</span
  12485. ></span
  12486. ><span>{{
  12487. groupStudent[toolindex][gindex] &&
  12488. groupStudent[toolindex][gindex][7]
  12489. ? groupStudent[toolindex][gindex] &&
  12490. groupStudent[toolindex][gindex][7].name
  12491. : "空位置"
  12492. }}</span>
  12493. </div>
  12494. </div>
  12495. </div>
  12496. <div class="g_d_group_chair">
  12497. <div v-if="groupJson.number > 1">
  12498. <span
  12499. :class="{
  12500. isChair:
  12501. groupStudent[toolindex][gindex] &&
  12502. groupStudent[toolindex][gindex][1],
  12503. updateChair:
  12504. courseDetail.userid == userid &&
  12505. groupStudent[toolindex][gindex] &&
  12506. groupStudent[toolindex][gindex][1] &&
  12507. groupJson.islock == 2,
  12508. }"
  12509. ><span
  12510. class="updateChairBtn"
  12511. @click="
  12512. updateGroupChair(
  12513. groupStudent[toolindex][gindex] &&
  12514. groupStudent[toolindex][gindex][1]
  12515. )
  12516. "
  12517. >修改</span
  12518. ></span
  12519. ><span>{{
  12520. groupStudent[toolindex][gindex] &&
  12521. groupStudent[toolindex][gindex][1]
  12522. ? groupStudent[toolindex][gindex] &&
  12523. groupStudent[toolindex][gindex][1].name
  12524. : "空位置"
  12525. }}</span>
  12526. </div>
  12527. <div v-if="groupJson.number > 5">
  12528. <span
  12529. :class="{
  12530. isChair:
  12531. groupStudent[toolindex][gindex] &&
  12532. groupStudent[toolindex][gindex][5],
  12533. updateChair:
  12534. courseDetail.userid == userid &&
  12535. groupStudent[toolindex][gindex] &&
  12536. groupStudent[toolindex][gindex][5] &&
  12537. groupJson.islock == 2,
  12538. }"
  12539. ><span
  12540. class="updateChairBtn"
  12541. @click="
  12542. updateGroupChair(
  12543. groupStudent[toolindex][gindex] &&
  12544. groupStudent[toolindex][gindex][5]
  12545. )
  12546. "
  12547. >修改</span
  12548. ></span
  12549. ><span>{{
  12550. groupStudent[toolindex][gindex] &&
  12551. groupStudent[toolindex][gindex][5]
  12552. ? groupStudent[toolindex][gindex] &&
  12553. groupStudent[toolindex][gindex][5].name
  12554. : "空位置"
  12555. }}</span>
  12556. </div>
  12557. <div v-if="groupJson.number > 9">
  12558. <span
  12559. :class="{
  12560. isChair:
  12561. groupStudent[toolindex][gindex] &&
  12562. groupStudent[toolindex][gindex][9],
  12563. updateChair:
  12564. courseDetail.userid == userid &&
  12565. groupStudent[toolindex][gindex] &&
  12566. groupStudent[toolindex][gindex][9] &&
  12567. groupJson.islock == 2,
  12568. }"
  12569. ><span
  12570. class="updateChairBtn"
  12571. @click="
  12572. updateGroupChair(
  12573. groupStudent[toolindex][gindex] &&
  12574. groupStudent[toolindex][gindex][9]
  12575. )
  12576. "
  12577. >修改</span
  12578. ></span
  12579. ><span>{{
  12580. groupStudent[toolindex][gindex] &&
  12581. groupStudent[toolindex][gindex][9]
  12582. ? groupStudent[toolindex][gindex] &&
  12583. groupStudent[toolindex][gindex][9].name
  12584. : "空位置"
  12585. }}</span>
  12586. </div>
  12587. </div>
  12588. </div>
  12589. </div>
  12590. </div>
  12591. </div>
  12592. <span slot="footer" class="dialog-footer">
  12593. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  12594. </span>
  12595. </el-dialog>
  12596. <el-dialog
  12597. title="分组设置"
  12598. :visible.sync="dialogVisibleGroup2"
  12599. :append-to-body="true"
  12600. width="650px"
  12601. :before-close="handleClose"
  12602. class="dialog_diy"
  12603. >
  12604. <div class="groupBox">
  12605. <div v-if="groupJson2.group" class="groupContent">
  12606. <div class="groupTitle">请设置小组数量及名称</div>
  12607. <div
  12608. v-for="(item, index) in groupJson2.group"
  12609. :key="index"
  12610. class="groupName"
  12611. >
  12612. <span class="groupn">第{{ index + 1 }}组名称:</span>
  12613. <el-input
  12614. v-model="item.name"
  12615. placeholder="请输入名称..."
  12616. style="width: 250px"
  12617. ></el-input>
  12618. <!-- <div class="groupBtn">
  12619. <el-button type="primary" size="small" @click="addGroup(index)">
  12620. 添加</el-button>
  12621. <el-button type="primary" size="small" @click="deleteGroup(index)"
  12622. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  12623. </div> -->
  12624. </div>
  12625. </div>
  12626. <div class="groupContent">
  12627. <div class="groupTitle">请设置每组人数</div>
  12628. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  12629. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  12630. <el-input
  12631. v-model="groupJson.number"
  12632. style="width: 150px"
  12633. placeholder="请输入2-10的数字"
  12634. @change="numberPan"
  12635. ></el-input>
  12636. </div>
  12637. </div>
  12638. <span slot="footer" class="dialog-footer">
  12639. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  12640. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  12641. </span>
  12642. </el-dialog>
  12643. <el-dialog
  12644. title="作业提交"
  12645. :visible.sync="dialogVisibleGroupWork"
  12646. :append-to-body="true"
  12647. width="500px"
  12648. :before-close="handleClose"
  12649. class="dialog_change"
  12650. >
  12651. <div class="marginT">
  12652. <div>上传文件</div>
  12653. <div
  12654. class="chapter_add"
  12655. @click="addImg($event)"
  12656. v-if="studyJuri[0].cover.length == 0"
  12657. >
  12658. <div class="up_photo">
  12659. <img src="../../assets/icon/uploadImg.png" alt />
  12660. </div>
  12661. <!-- <input
  12662. type="file"
  12663. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12664. style="display: none"
  12665. @change="beforeUpload1($event, 1)"
  12666. /> -->
  12667. <input
  12668. type="file"
  12669. accept="*"
  12670. style="display: none"
  12671. @change="beforeUpload1($event, 1)"
  12672. />
  12673. </div>
  12674. <!-- capture="camera" -->
  12675. <div
  12676. class="chapter_add"
  12677. style="
  12678. display: flex;
  12679. width: 100%;
  12680. flex-direction: row;
  12681. flex-wrap: wrap;
  12682. justify-content: flex-start;
  12683. padding: 15px 0;
  12684. "
  12685. v-if="studyJuri[0].cover.length > 0"
  12686. >
  12687. <div class="upCover">
  12688. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  12689. <img :src="word" alt v-else-if="fileType == 1" />
  12690. <img :src="video" alt v-else-if="fileType == 2" />
  12691. <img :src="word2" alt v-else-if="fileType == 3" />
  12692. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  12693. <div class="deleteWord" @click="clean(1)">
  12694. <img src="../../assets/icon/deleteWorks.png" alt />
  12695. </div>
  12696. </div>
  12697. </div>
  12698. </div>
  12699. <div
  12700. class="upload_send"
  12701. @click="addCourseWorks2(taskCount)"
  12702. v-if="!proVisible"
  12703. >
  12704. 提交
  12705. </div>
  12706. </el-dialog>
  12707. <el-dialog
  12708. title="修改分组"
  12709. :visible.sync="dialogVisibleUpdateGroup"
  12710. :append-to-body="true"
  12711. width="350px"
  12712. :before-close="handleClose"
  12713. class="dialog_diy"
  12714. >
  12715. <div>
  12716. <h2>
  12717. {{ this.updateGroupUser.name }}
  12718. </h2>
  12719. <div style="color: rgb(171 171 171); margin-top: 10px">
  12720. 请选择要进入的分组
  12721. </div>
  12722. <el-radio-group v-model="checkChair">
  12723. <el-radio
  12724. style="display: block; margin-top: 20px"
  12725. v-for="(item, index) in updateGroupArray"
  12726. :label="item.label"
  12727. :key="index"
  12728. >{{ item.name }}</el-radio
  12729. >
  12730. </el-radio-group>
  12731. </div>
  12732. <span slot="footer" class="dialog-footer">
  12733. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  12734. <el-button type="primary" @click="updateChair">确定</el-button>
  12735. </span>
  12736. </el-dialog>
  12737. <el-dialog
  12738. title="移除组员"
  12739. :visible.sync="dialogVisibleDeleteGroup"
  12740. :append-to-body="true"
  12741. width="350px"
  12742. :before-close="handleClose"
  12743. class="dialog_diy"
  12744. >
  12745. <div>
  12746. <h2>
  12747. {{ this.deleteGroupArray.name }}
  12748. </h2>
  12749. <div style="color: rgb(171 171 171); margin-top: 10px">
  12750. 请选择要删除的组员
  12751. </div>
  12752. <el-checkbox-group v-model="checkDeleteGroup">
  12753. <el-checkbox
  12754. style="display: flex; margin-top: 20px"
  12755. v-for="(item, index) in deleteGroupUser"
  12756. :label="item.userid"
  12757. :key="index"
  12758. >{{ item.name }}</el-checkbox
  12759. >
  12760. </el-checkbox-group>
  12761. </div>
  12762. <span slot="footer" class="dialog-footer">
  12763. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  12764. <el-button type="primary" @click="deleteChair">确定</el-button>
  12765. </span>
  12766. </el-dialog>
  12767. <el-dialog
  12768. title="批量上传"
  12769. :visible.sync="dialogVisiblePl"
  12770. :append-to-body="true"
  12771. width="700px"
  12772. :before-close="handleClose"
  12773. class="dialog_change"
  12774. >
  12775. <div class="marginT">
  12776. <div class="plworkBox">
  12777. <div
  12778. class="chapter_add"
  12779. style="
  12780. display: flex;
  12781. width: 150px;
  12782. flex-direction: row;
  12783. flex-wrap: wrap;
  12784. justify-content: flex-start;
  12785. margin: 0 10px 10px 0;
  12786. "
  12787. v-for="(item, index) in plworkFile"
  12788. :key="index"
  12789. >
  12790. <div class="upCover2">
  12791. <img
  12792. :src="item.url"
  12793. alt
  12794. v-if="item.fileType == 1"
  12795. @click="previewImg(item.url)"
  12796. />
  12797. <img :src="word" alt v-else-if="item.fileType == 4" />
  12798. <img :src="video" alt v-else />
  12799. <!-- <span class="picName">{{ item.name }}</span> -->
  12800. <!-- <el-input
  12801. v-model="item.username"
  12802. placeholder="请输入学生名字"
  12803. style="margin-top: 10px"
  12804. ></el-input> -->
  12805. <div
  12806. class="pl_select_box"
  12807. @click="
  12808. getUpdateMore(true, checkUpload(), item.username, index)
  12809. "
  12810. >
  12811. {{ getSName(item.username) }}
  12812. </div>
  12813. <!-- <el-select
  12814. style="margin-top: 10px"
  12815. v-model="item.username"
  12816. filterable
  12817. allow-create
  12818. placeholder="请选择学生"
  12819. >
  12820. <el-option
  12821. v-for="item1 in checkUpload()"
  12822. :key="item1.userid"
  12823. :label="item1.name ? item1.name : item1.username"
  12824. :value="item1.userid"
  12825. >
  12826. </el-option>
  12827. </el-select> -->
  12828. <div class="deleteWord" @click="clean2(index)">
  12829. <img src="../../assets/icon/deleteWorks.png" alt />
  12830. </div>
  12831. </div>
  12832. </div>
  12833. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  12834. <div class="up_photo2">
  12835. <img src="../../assets/icon/plwork.png" alt />
  12836. <span>点击上传文件</span>
  12837. </div>
  12838. <input
  12839. type="file"
  12840. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  12841. multiple="multiple"
  12842. style="display: none"
  12843. @change="beforeUpload3($event, 6)"
  12844. />
  12845. </div>
  12846. </div>
  12847. </div>
  12848. <!-- capture="camera" -->
  12849. <div
  12850. class="upload_send"
  12851. @click="addCourseWorksPl(taskCount)"
  12852. v-if="!proVisible2"
  12853. >
  12854. 提交
  12855. </div>
  12856. </el-dialog>
  12857. <el-dialog
  12858. title="修改名称"
  12859. :visible.sync="dialogVisibleSname"
  12860. width="500px"
  12861. :before-close="handleClose"
  12862. class="dialog_diy"
  12863. center
  12864. >
  12865. <div
  12866. style="
  12867. text-align: center;
  12868. display: flex;
  12869. align-items: center;
  12870. justify-content: center;
  12871. "
  12872. >
  12873. <span class="tian1">名称</span>
  12874. <div
  12875. class="pl_select_box"
  12876. style="margin-left: 10px; width: 200px"
  12877. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  12878. >
  12879. {{ getSName(worksSName) }}
  12880. </div>
  12881. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  12882. placeholder="请选择学生">
  12883. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  12884. :value="item.userid">
  12885. </el-option>
  12886. </el-select> -->
  12887. <!-- <el-input
  12888. v-model="worksSName"
  12889. style="width: 250px; margin: 15px 0px"
  12890. ></el-input> -->
  12891. </div>
  12892. <span slot="footer" class="dialog-footer">
  12893. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  12894. <el-button type="primary" @click="updateName">确 定</el-button>
  12895. </span>
  12896. </el-dialog>
  12897. <el-dialog
  12898. title="英语写作"
  12899. :visible.sync="engDialogVisible"
  12900. :append-to-body="true"
  12901. width="800px"
  12902. :before-close="handleClose"
  12903. class="dialog_diy"
  12904. >
  12905. <onlineWrite
  12906. v-if="engDialogVisible"
  12907. :englishList="englishList"
  12908. :myAnswerList1="myAnswerList1"
  12909. ref="engJson"
  12910. ></onlineWrite>
  12911. <span slot="footer" class="dialog-footer" style="text-align: center;">
  12912. <el-button @click="engDialogVisible = false">取 消</el-button>
  12913. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  12914. </span>
  12915. </el-dialog>
  12916. <el-dialog
  12917. title="英语写作"
  12918. :visible.sync="engUpdateDialogVisible"
  12919. :append-to-body="true"
  12920. width="800px"
  12921. :before-close="handleClose"
  12922. class="dialog_diy fullStyle"
  12923. >
  12924. <div class="engUpBox">
  12925. <div class="engUpTop">
  12926. <div class="engTitle">
  12927. <div>作文题目:</div>
  12928. <div>{{ englishList1.engTitle }}</div>
  12929. </div>
  12930. <div class="engText">
  12931. <div>作文内容:</div>
  12932. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  12933. </div>
  12934. </div>
  12935. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  12936. <div class="oldBox">
  12937. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  12938. <div class="oldText">
  12939. <div class="detailBox">
  12940. <div class="oldDetail">
  12941. <div>标题:</div>
  12942. <div>{{ oldEnglishJson.engTitle }} </div>
  12943. </div>
  12944. <div class="oldDetail1">
  12945. <div>正文:</div>
  12946. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  12947. </div>
  12948. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  12949. <div>图片:</div>
  12950. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  12951. </div>
  12952. </div>
  12953. </div>
  12954. </div>
  12955. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  12956. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  12957. <div class="oldText">
  12958. <div class="detailBox" style="position: relative;">
  12959. <div class="oldDetail">
  12960. <div>标题:</div>
  12961. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  12962. <div v-else v-html="newEnglishList.engTitle"></div>
  12963. </div>
  12964. <div class="oldDetail">
  12965. <div>正文:</div>
  12966. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  12967. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  12968. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText)"></div> -->
  12969. </div>
  12970. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12971. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12972. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12973. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12974. </div>
  12975. </div>
  12976. </div>
  12977. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  12978. <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">
  12979. <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>
  12980. <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>
  12981. </div>
  12982. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  12983. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  12984. <div class="detailBox" style="position: relative;">
  12985. <div class="oldDetail">
  12986. <div>标题:</div>
  12987. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  12988. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  12989. </div>
  12990. <div class="oldDetail">
  12991. <div>正文:</div>
  12992. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  12993. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  12994. </div>
  12995. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  12996. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  12997. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  12998. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  12999. </div>
  13000. </div>
  13001. <div class="oldText" v-else-if="newEngIndex == -1">
  13002. <div class="detailBox" style="position: relative;">
  13003. <div class="oldDetail">
  13004. <div>标题:</div>
  13005. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  13006. <div v-else v-html="newEnglishList.engTitle"></div>
  13007. </div>
  13008. <div class="oldDetail">
  13009. <div>正文:</div>
  13010. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  13011. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  13012. </div>
  13013. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  13014. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  13015. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  13016. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  13017. </div>
  13018. </div>
  13019. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  13020. <div class="detailBox" style="position: relative;">
  13021. <div class="oldDetail">
  13022. <div>标题:</div>
  13023. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  13024. <div v-else>
  13025. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  13026. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  13027. </div>
  13028. </div>
  13029. <div class="oldDetail">
  13030. <div>正文:</div>
  13031. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  13032. <div v-else>
  13033. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  13034. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  13035. </div>
  13036. </div>
  13037. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  13038. <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>
  13039. <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>
  13040. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  13041. </div>
  13042. </div>
  13043. </div>
  13044. </div>
  13045. </div>
  13046. <span slot="footer" class="dialog-footer">
  13047. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  13048. <el-button type="primary" @click="addCorrect">确 定</el-button>
  13049. </span>
  13050. </el-dialog>
  13051. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  13052. <interVideo
  13053. :dialogVisibleVideo.sync="dialogVisibleVideo"
  13054. :videoJson="videoJson"
  13055. :userid="userid"
  13056. :id="id"
  13057. :courseType="courseType"
  13058. :taskCount="taskCount"
  13059. :toolindex="toolindex"
  13060. :videoType="videoType"
  13061. ></interVideo>
  13062. <UpdateMore
  13063. :dialogVisibleMember.sync="dialogVisibleMember"
  13064. :cList="uploadStudentJuri"
  13065. :userid="userid"
  13066. :searchTN="worksSName2"
  13067. @setPlname="setPlname"
  13068. ></UpdateMore>
  13069. <wordCloud
  13070. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  13071. :data="wordCloudData"
  13072. ></wordCloud>
  13073. <el-dialog
  13074. title="挑人"
  13075. :visible.sync="dialogVisiblePickPeople"
  13076. width="650px"
  13077. :before-close="handleClose"
  13078. class="dialog_diy"
  13079. center
  13080. >
  13081. <div class="pick_box">
  13082. <div
  13083. class="noWorksName"
  13084. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  13085. v-for="(item, index) in uploadStudentJuri"
  13086. :key="index"
  13087. @click="pickStudent(item)"
  13088. >
  13089. {{ item.name }}
  13090. </div>
  13091. </div>
  13092. </el-dialog>
  13093. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  13094. :englishVoiceJson='englishVoiceJson'
  13095. :userid="userid"
  13096. :id="id"
  13097. :courseType="courseType"
  13098. :taskCount="taskCount"
  13099. :toolindex="toolindex"
  13100. @selectSWorks="selectSWorks"
  13101. @selectStudent="selectStudent"
  13102. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  13103. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  13104. :userid="userid"
  13105. :dialogVisibleENScore.sync='dialogVisibleENScore'
  13106. :commentDetail="commentDetail"
  13107. :courseDetail="courseDetail"
  13108. :wScore="wScore"
  13109. :scoreDetail="scoreDetail"
  13110. @selectSWorks="selectSWorks"
  13111. @selectStudent="selectStudent"></checkEnglishVoice>
  13112. <el-dialog
  13113. title="教师评分"
  13114. :visible.sync="markScoreVisible"
  13115. :append-to-body="true"
  13116. width="1000px"
  13117. :fullscreen="markfullscreen"
  13118. :before-close="markScorehandleClose"
  13119. class="markScore_diy"
  13120. >
  13121. <div slot="title">
  13122. <div class="markScore_diyTit">
  13123. <div>{{tType == 1 ? "教师评分" : "作业弹框"}} </div>
  13124. <div @click="markFullScreenBtn" style="cursor: pointer;"><img src="../../assets/icon/newIcons/fullScreen.png" alt=""></div>
  13125. </div>
  13126. </div>
  13127. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  13128. <!-- @updateDocSco="updateDocSco" -->
  13129. <markDialog
  13130. :key="markScoreVisible.toString()"
  13131. :uid="markScoreUid"
  13132. :toolIndex="markScoretoolIndex"
  13133. :stage="courseType"
  13134. :task="taskCount"
  13135. :taskDetail="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail"
  13136. :tool="toolListS"
  13137. :languageSetting="languageSetting"
  13138. :scoTit="markScoreTit"
  13139. :tType="tType"
  13140. :sIsOpen="sIsOpen"
  13141. :markScoreworksStudent="markScoreworksStudent"
  13142. :markScoreVisible="markScoreVisible"
  13143. ></markDialog>
  13144. </el-dialog>
  13145. <!-- 查看Txt,md等文件 -->
  13146. <el-dialog
  13147. title="文件预览"
  13148. :visible.sync="dialogVisibleTxt"
  13149. width="50%"
  13150. :before-close="handleCloseTxt"
  13151. class="dialog_diy"
  13152. :class="{ fullStyle: full }"
  13153. >
  13154. <div slot="title" class="header-title">
  13155. <div style="color: #fff">文件预览</div>
  13156. <div style="position: absolute; top: 19px; right: 50px">
  13157. <img
  13158. src="../../assets/full.png"
  13159. style="height: 16px; cursor: pointer"
  13160. alt=""
  13161. @click="fullTools"
  13162. />
  13163. </div>
  13164. </div>
  13165. <div>{{TxtMd}}</div>
  13166. </el-dialog>
  13167. </div>
  13168. </template>
  13169. <script>
  13170. import "../../common/aws-sdk-2.235.1.min.js";
  13171. // import pdf from "../components/pdf3";
  13172. import pdf from "../components/vpdf";
  13173. import AskStatic from "../components/askStatic";
  13174. import AskStatic2 from "../components/askStatic2";
  13175. import AnswerData2 from "../components/answerData2";
  13176. import AnswerData from "../components/answerData";
  13177. import EditorBar from "../tools/wangEnduit.vue";
  13178. import Table from "../tools/table.vue";
  13179. import Time from "../tools/time.vue";
  13180. import Mind from "../tools/jsmind.vue";
  13181. import Sunburst from "../tools/sunburst";
  13182. import SeeBoard from "../tools/seeBoard";
  13183. import * as imageConversion from "image-conversion";
  13184. import Audio from "../components/audio.vue";
  13185. import ImgDraw from "../tools/imgDraw/imgDraw";
  13186. import { Empty } from "element-ui";
  13187. import RecordRTC from "recordrtc";
  13188. import interVideo from "../interVideo/index.vue";
  13189. import UpdateMore from "../updateMore/updateMore.vue";
  13190. import wordCloud from "../wordCloud/index.vue";
  13191. import axios from "axios";
  13192. import JSZip from "jszip";
  13193. import FileSaver from "file-saver";
  13194. import onlineWrite from "./commpont/onlineWrite";
  13195. import englishEva from "../components/englishEva";
  13196. import * as Diff from 'diff'
  13197. import EnglishVoice from '../EnglishVoice2/index.vue'
  13198. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  13199. import correctText from '../components/correctText.vue'
  13200. import scoreItem from '../scoreList/scoreItem.vue'
  13201. import scoreZong from '../scoreZong/index.vue'
  13202. import classRoomHelper from '../classRoomHelper/index.vue'
  13203. import markScore from "./commpont/markScore";
  13204. import markDialog from "./commpont/markDialog";
  13205. import evaTable from './commpont/evaTable'
  13206. import { v4 as uuidv4 } from "uuid";
  13207. const getFile = (url) => {
  13208. return new Promise((resolve, reject) => {
  13209. var credentials = {
  13210. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  13211. secretAccessKey: "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",
  13212. }; //秘钥形式的登录上传
  13213. window.AWS.config.update(credentials);
  13214. window.AWS.config.region = "cn-northwest-1"; //设置区域
  13215. let url2 = url;
  13216. let _url2 = "";
  13217. if (
  13218. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  13219. ) {
  13220. _url2 = url2.split(
  13221. "https://view.officeapps.live.com/op/view.aspx?src="
  13222. )[1];
  13223. } else {
  13224. _url2 = url2;
  13225. }
  13226. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  13227. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  13228. var params = {
  13229. Bucket: "ccrb",
  13230. Key: name
  13231. };
  13232. s3.getObject(params, function (err, data) {
  13233. if (err) {
  13234. console.log(err, err.stack)
  13235. resolve({ data: 1 });
  13236. }else {
  13237. resolve({ data: data.Body });
  13238. console.log(data);
  13239. } // sxuccessful response
  13240. });
  13241. // axios({
  13242. // method: "get",
  13243. // url,
  13244. // responseType: "blob",
  13245. // })
  13246. // .then((data) => {
  13247. // resolve({ data: data.data });
  13248. // })
  13249. // .catch((error) => {
  13250. // resolve({ data: 1 });
  13251. // // reject(error.toString());
  13252. // });
  13253. });
  13254. };
  13255. export default {
  13256. components: {
  13257. EditorBar,
  13258. Time,
  13259. pdf,
  13260. AskStatic,
  13261. AskStatic2,
  13262. Mind,
  13263. Sunburst,
  13264. SeeBoard,
  13265. AnswerData2,
  13266. AnswerData,
  13267. Audio,
  13268. ImgDraw,
  13269. Table,
  13270. interVideo,
  13271. UpdateMore,
  13272. wordCloud,
  13273. onlineWrite,
  13274. englishEva,
  13275. EnglishVoice,
  13276. checkEnglishVoice,
  13277. correctText,
  13278. scoreItem,
  13279. classRoomHelper,
  13280. scoreZong,
  13281. markScore,
  13282. markDialog,
  13283. evaTable
  13284. },
  13285. data() {
  13286. return {
  13287. bg: null,
  13288. drawShow: false,
  13289. dialogVisible: false,
  13290. dialogVisiblePl: false,
  13291. commentDialogVisible: false,
  13292. dialogVisibleMember: false,
  13293. dialogVisibleWordCloud: false,
  13294. videoVisible: false,
  13295. isStar: false,
  13296. studentEvalDialogVisible: false,
  13297. studentEvalDialogVisibleTeacher: false,
  13298. dialogVisibleSelect: false,
  13299. dialogVisibleSelectTeacher: false,
  13300. dialogVisibleScore: false,
  13301. dialogVisibleENScore: false,
  13302. dialogVisibleSentence: false,
  13303. dialogVisibleSentenceTeacher: false,
  13304. dialogVisibleSentence1: false,
  13305. dialogVisibleWorks: false,
  13306. dialogVisibleTable: false,
  13307. dialogVisibleTableTeacher: false,
  13308. dialogVisibleWord: false,
  13309. dialogVisibleWordTeacher: false,
  13310. dialogVisibleTable2: false,
  13311. dialogVisibleTable3: false,
  13312. dialogVisibleGroupWork: false,
  13313. dialogVisibleUpdateGroup: false,
  13314. dialogVisibleDeleteGroup: false,
  13315. dialogVisibleSname: false,
  13316. dialogVisibleVideo: false,
  13317. dialogVisiblePickPeople: false,
  13318. engDialogVisible: false,
  13319. engUpdateDialogVisible:false,
  13320. engEvaDialogVisible: false,
  13321. evaEngJson: {
  13322. teacherJson: {},
  13323. studentJson: {},
  13324. message: {},
  13325. },
  13326. isNoUserid:false,
  13327. engListLength:0,
  13328. engWid:"",
  13329. newEnglishList:{
  13330. engTitle:"",
  13331. engText:"",
  13332. },
  13333. newEnglishList1:[],
  13334. oldEnglishJson:{},
  13335. oldEnglishJson1:{},
  13336. englishList1:{},
  13337. englishList:{},
  13338. myAnswerList1:{},
  13339. topHeight:0,
  13340. newEngIndex:-1,
  13341. englishToolIndex:0,
  13342. userMes:{},
  13343. englishToolIndex:0,
  13344. worksSName: "",
  13345. classJuri: [],
  13346. uploadStudentJuri: [],
  13347. uploadCid: "",
  13348. snameWid: "",
  13349. sStudent: {},
  13350. sTool: "",
  13351. bzText: "",
  13352. commentDetail: [],
  13353. selectAnswer: [],
  13354. videoDetail: {},
  13355. selectJson: {},
  13356. englishList: {},
  13357. topHeight:0,
  13358. eScore: { eBzText: "", eStar: [] },
  13359. id: this.$route.query.courseId,
  13360. userid: this.$route.query.userid,
  13361. classId: this.$route.query.cid,
  13362. // courseTypeLine: this.$route.query.type,
  13363. oid: this.$route.query.oid,
  13364. org: this.$route.query.org,
  13365. tType: this.$route.query.tType,
  13366. courseType: this.$route.query.type,
  13367. screenType: this.$route.query.screenType,
  13368. tcid2: this.$route.query.tcid,
  13369. tcid: "",
  13370. pptImgUrl: "",
  13371. pptImgUrl1: "",
  13372. commentText: "",
  13373. full: false,
  13374. sIsOpen: false,
  13375. IsLookOpen: false,
  13376. IsFollow: false,
  13377. pzDialog: false,
  13378. contentDialog: false,
  13379. mlDialog: false,
  13380. type: 1,
  13381. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  13382. sentenceList1: [],
  13383. tableJson: [],
  13384. tableJsonO: [],
  13385. wordJson: [],
  13386. wordJsonO: [],
  13387. vedio: [],
  13388. text: [],
  13389. textList: [],
  13390. line: [],
  13391. lineList: [],
  13392. chapTools: [],
  13393. chapToolList: [],
  13394. file: [],
  13395. fileC: [],
  13396. vedioTime: [],
  13397. upToolImg: "",
  13398. preTime: 0,
  13399. rateList: {
  13400. ca: 0,
  13401. },
  13402. rateParams: [],
  13403. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  13404. studyJuri: [
  13405. {
  13406. content: "",
  13407. cover: [],
  13408. upVedio: [],
  13409. upFile: [],
  13410. },
  13411. ],
  13412. isClose: 0,
  13413. plworkFile: [],
  13414. mr: require("../../assets/vedioPic.png"),
  13415. word: require("../../assets/icon/isWord.png"),
  13416. word2: require("../../assets/icon/word2.png"),
  13417. video: require("../../assets/icon/isVideo.png"),
  13418. noLikes: require("../../assets/icon/comment/noLikes.png"),
  13419. likes: require("../../assets/icon/comment/likes.png"),
  13420. scoreImg: require("../../assets/score.png"),
  13421. courseDetail: {},
  13422. reply: "",
  13423. isSelect: false,
  13424. chapInfo: [],
  13425. chapInfoList: [],
  13426. taskCount: 0,
  13427. imgList: [],
  13428. noImgList: [],
  13429. pzList: [],
  13430. timeWorkList: [],
  13431. PlTextList: [
  13432. "Excellent!",
  13433. "nice!",
  13434. "很有创意!",
  13435. "还不错哦~",
  13436. "继续努力哦~",
  13437. ],
  13438. isClickNav: "",
  13439. navId: "",
  13440. playerOptions: {
  13441. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13442. autoplay: false, //如果true,浏览器准备好时开始回放。
  13443. muted: false, // 默认情况下将会消除任何音频。
  13444. loop: false, // 导致视频一结束就重新开始。
  13445. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13446. language: "zh-CN",
  13447. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13448. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13449. sources: [
  13450. {
  13451. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13452. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13453. },
  13454. ],
  13455. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13456. // poster: dataRes.imgUrl, //你的封面地址
  13457. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13458. controlBar: {
  13459. timeDivider: true, //当前时间和持续时间的分隔符
  13460. durationDisplay: true, //显示持续时间
  13461. remainingTimeDisplay: false, //是否显示剩余时间功能
  13462. fullscreenToggle: true, //全屏按钮
  13463. },
  13464. },
  13465. playerOptions1: {
  13466. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  13467. autoplay: false, //如果true,浏览器准备好时开始回放。
  13468. muted: false, // 默认情况下将会消除任何音频。
  13469. loop: false, // 导致视频一结束就重新开始。
  13470. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  13471. language: "zh-CN",
  13472. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  13473. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  13474. sources: [
  13475. {
  13476. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  13477. src: "", //url地址require("../../../assets/media/aaa.mp4")
  13478. },
  13479. ],
  13480. // poster: require("../../../assets/tu31.png"), //你的封面地址
  13481. // poster: dataRes.imgUrl, //你的封面地址
  13482. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  13483. controlBar: {
  13484. timeDivider: true, //当前时间和持续时间的分隔符
  13485. durationDisplay: true, //显示持续时间
  13486. remainingTimeDisplay: false, //是否显示剩余时间功能
  13487. fullscreenToggle: true, //全屏按钮
  13488. },
  13489. },
  13490. playerO: {},
  13491. noneBtnImg: false,
  13492. proVisible: false,
  13493. proVisible2: false,
  13494. progress: 0,
  13495. isFinishSize: 0,
  13496. isAllSize: 0,
  13497. questionAnswer: "",
  13498. answerQ: "", //问答标题
  13499. rateJson: [],
  13500. wbCount: 0,
  13501. wordCount: 0,
  13502. mindCount: 0,
  13503. askCount: 0,
  13504. noteCount: 0,
  13505. mindNetWorkCount: 0,
  13506. libraryCount: 0,
  13507. workCount: 0,
  13508. timeCount: 0,
  13509. answerCount: 0,
  13510. trainCount: 0,
  13511. evalCount: 0,
  13512. dialogImageUrl: "",
  13513. pictureDialog: false,
  13514. toolTypeList: [],
  13515. dialogVisible1: false,
  13516. dialogVisible2: false,
  13517. dialogVisible3: false,
  13518. dialogVisible6: false,
  13519. dialogVisible4: false,
  13520. isNoHomeWork: false,
  13521. dialogVisible5: false,
  13522. dialogVisible5Teacher: false,
  13523. dialogVisibleChoice: false,
  13524. dialogVisibleChoiceTeacher: false,
  13525. answerDialogVisible: false,
  13526. answerDialogVisibleTeacher: false,
  13527. juriVisible: false,
  13528. timeDialogVisible: false,
  13529. replyDialogVisible: false,
  13530. toolDialogVisible: false,
  13531. replyIndex: 0,
  13532. replyPid: "",
  13533. radio: [],
  13534. isAsk: false,
  13535. askJson: {
  13536. askCount: 1,
  13537. askTitle: "",
  13538. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  13539. },
  13540. testJson: {},
  13541. videoType:0,
  13542. checkJson: [],
  13543. askList: [],
  13544. answerList: [],
  13545. navList: [],
  13546. addPzDialog: false,
  13547. pzConText: "",
  13548. worksStudent: [],
  13549. isCloseList: [],
  13550. workStudent: [],
  13551. groupStudent: [],
  13552. groupStudentUid: [],
  13553. noWorksS: [],
  13554. isWorksS: [],
  13555. noWorksStudent: [],
  13556. toolindex: 0,
  13557. toolDetailIndex: null,
  13558. groupIndex: 0,
  13559. workTypeB: false,
  13560. workTypeC: false,
  13561. isAnswer: false,
  13562. isHovered: false,
  13563. isHovered1: false,
  13564. isHovered2: false,
  13565. commentTagShow:0,
  13566. timer: null,
  13567. opertimer: null,
  13568. showType: 0,
  13569. fileType: 0,
  13570. showPDF: false,
  13571. noteName: "",
  13572. evaJuri: [],
  13573. evalua: "",
  13574. eTitle: "",
  13575. eName: "",
  13576. eJson: {},
  13577. fid: "", //一级
  13578. sid: "", //二级
  13579. tid: "", //二级
  13580. typeMode: 1,
  13581. eJSONNum: 0,
  13582. Etype: 1,
  13583. data: {
  13584. meta: {
  13585. name: "example",
  13586. author: "dd@163.com",
  13587. version: "0.2",
  13588. },
  13589. format: "node_array",
  13590. data: [{ id: "root", isroot: true, topic: "" }],
  13591. },
  13592. fullDialogVisible: false,
  13593. fulltype: "",
  13594. fullUrl: "",
  13595. commentIndexJson: {},
  13596. Stbodywidth: 0,
  13597. ispzType: 0,
  13598. pzType: 1,
  13599. wScore: 0,
  13600. scoreDetail: "",
  13601. videoStart: false,
  13602. recorder: null,
  13603. groupJson: {},
  13604. islock: false,
  13605. groupJson2: {},
  13606. dialogVisibleGroup: false,
  13607. dialogVisibleGroup2: false,
  13608. updateGroupArray: [],
  13609. updateGroupUser: {},
  13610. deleteGroupUser: [],
  13611. deleteGroupArray: {},
  13612. checkChair: "",
  13613. checkDeleteGroup: [],
  13614. inviteCode: "",
  13615. courseGroupStudent: [],
  13616. courseGroupStudentUid: [],
  13617. courseGroup: {},
  13618. isGroup: false,
  13619. toolIndex: null,
  13620. tool: {},
  13621. isWorkTool: [
  13622. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  13623. ], //, 40
  13624. videoJson: {},
  13625. toolType: 0,
  13626. checktoolArray: [],
  13627. vChapterData: [],
  13628. isUpdateToolDetail: false,
  13629. isUpdateToolDetail1: false,
  13630. updateToolDetailInner: "",
  13631. checkboxList: [],
  13632. plIndex: "",
  13633. worksSName2: "",
  13634. worksSid: "",
  13635. wordCloudData: [],
  13636. isPickStudent: [],
  13637. pzStype: 1,
  13638. downLoading: false,
  13639. greyType: false,
  13640. correctWord: [],
  13641. EnglishVoiceDialog: false,
  13642. englishVoiceJson: {},
  13643. englishVoiceJsonWork:[],
  13644. scoreList:{
  13645. listdata:[],
  13646. isScoreList:[],
  13647. },
  13648. classRoomHelperWidth: '85px',
  13649. orgArray:[],
  13650. oidArray:[],
  13651. refreshKey:0,
  13652. AIloading:[],
  13653. worksStudentCopy:[],
  13654. loopLoading:[],
  13655. markScoreVisible:false,
  13656. markScoretoolIndex:0,
  13657. markScoreUid:'',
  13658. markScoreTit:{},
  13659. markfullscreen:false,
  13660. xianObj: ["DOCX", "MD", "TXT", "PDF",'JPG',"PNG"],
  13661. markScoreworksStudent:[],
  13662. finalMarkList : -1,
  13663. isaiNum : 0,
  13664. dialogVisibleTxt:false,
  13665. TxtMd :'',
  13666. languageSetting: 0, //0中文 1繁体 2英文
  13667. toolListS:[]
  13668. };
  13669. },
  13670. methods: {
  13671. getAIJ(){
  13672. this.ajax.get(this.$store.state.api+"getAIJ","").then(res=>{
  13673. let oid = res.data[0];
  13674. let org = res.data[1];
  13675. let oidArray = [];
  13676. let orgArray = [];
  13677. oid.forEach(i=>oidArray.push(i.oid))
  13678. org.forEach(i=>orgArray.push(i.oid))
  13679. this.orgArray = orgArray;
  13680. this.oidArray = oidArray;
  13681. })
  13682. },
  13683. // 评分弹框全屏
  13684. markFullScreenBtn(){
  13685. this.markfullscreen = !this.markfullscreen
  13686. },
  13687. insertMemorandum(_html){//保存行为操作
  13688. //variable
  13689. //btn
  13690. let params = [{
  13691. uid:this.userid,
  13692. courseId:this.id+(this.tcid2?this.tcid2:""),
  13693. content:_html
  13694. }]
  13695. console.log(params)
  13696. this.ajax.post(this.$store.state.api+'insert_systemOperation_countdownBehavior',params).then(res=>{
  13697. if(res.data==1){
  13698. console.log('保存操作成功')
  13699. }else{
  13700. console.log('保存操作失败')
  13701. }
  13702. }).catch(e=>{
  13703. console.log('保存操作失败')
  13704. console.log(e)
  13705. })
  13706. },
  13707. // 获取文档id
  13708. createFileid(url) {
  13709. let _this = this;
  13710. return new Promise((resolve, reject) => {
  13711. try {
  13712. _this.ajax
  13713. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  13714. url: url
  13715. })
  13716. .then(res => {
  13717. let _data = res.data.FunctionResponse;
  13718. if (_data.result && _data.result.id) {
  13719. resolve(_data.result.id);
  13720. } else {
  13721. resolve(1);
  13722. }
  13723. })
  13724. .catch(function(error) {
  13725. resolve(1);
  13726. });
  13727. } catch (e) {
  13728. resolve(1);
  13729. }
  13730. });
  13731. },
  13732. // 一键重置
  13733. resetLoopEva(con,tit,stage,task,toolIndex,toolDetail,worksStudent){
  13734. let jude = false
  13735. this.AIloading.forEach((e,index)=>{
  13736. if(index == toolIndex){
  13737. e.forEach(k=>{
  13738. if(k.loading == true)
  13739. jude=true
  13740. })
  13741. }
  13742. })
  13743. if(jude) return this.$message.info('正在进行AI评分中,请稍后')
  13744. this.$confirm('确认一键重置?')
  13745. .then(_ => {
  13746. this.allEmptyScoBtn(con,stage,task,toolIndex)
  13747. })
  13748. .catch(_ => {});
  13749. },
  13750. // 一键重置
  13751. async allEmptyScoBtn(con,stage,task,toolIndex){
  13752. for (let index = 0; index < con.length; index++) {
  13753. await this.allEmptySco(con[index].userid,stage,task,toolIndex)
  13754. }
  13755. this.$message.success('重置完成')
  13756. // this.refreshAssembly();
  13757. this.worksStudent.forEach((e,index)=>{
  13758. if(toolIndex == index){
  13759. console.log('6666');
  13760. e.forEach((i,inx)=>{
  13761. let mk = `markSco${index}${inx}`
  13762. this.$refs[mk][0].getData()
  13763. })
  13764. }
  13765. })
  13766. },
  13767. // 一键重置
  13768. allEmptySco(uid,stage,task,toolIndex){
  13769. let params = [{
  13770. cid: this.id,
  13771. uid:uid,
  13772. s:stage,
  13773. t:task,
  13774. tool:toolIndex ? toolIndex : ''
  13775. }];
  13776. return new Promise(resolve => { this.ajax
  13777. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  13778. .then(res => {
  13779. resolve(1);
  13780. })
  13781. .catch(err => {
  13782. console.error(err);
  13783. });
  13784. })
  13785. .catch(error => {
  13786. console.log(error);
  13787. });
  13788. },
  13789. // AI评分循环打分
  13790. async loopEva(con,tit,stage,task,toolIndex,toolDetail,taskDetail,toolList){
  13791. let jude = false
  13792. this.AIloading.forEach((e,index)=>{
  13793. if(index == toolIndex){
  13794. e.forEach(k=>{
  13795. if(k.loading == true)
  13796. jude=true
  13797. })
  13798. }
  13799. })
  13800. if(jude) return this.$message.info('请勿同时间进行AI评分')
  13801. this.AIloading.forEach((e,index)=>{
  13802. if(index == toolIndex){
  13803. e.forEach(k=>{
  13804. k.loading=true
  13805. })
  13806. }
  13807. })
  13808. this.loopLoading[toolIndex].loading=true
  13809. let laws = ""
  13810. let std = ""
  13811. let text = ''
  13812. if(toolList && toolList.eList && toolList.eList.length){
  13813. for (let i = 0; i < toolList.eList.length; i++) {
  13814. if(toolList.eList[i].isai == 1){
  13815. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  13816. }
  13817. }
  13818. for (let i = 0; i < toolList.eList.length; i++) {
  13819. if(toolList.eList[i].isai == 1){
  13820. let a = toolList.eList[i].detail
  13821. if (isNaN(parseFloat(a)) && a) {
  13822. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13823. }else{
  13824. var result = a
  13825. }
  13826. std += `纬度${i}:“${result}”, \n`;
  13827. }
  13828. }
  13829. for (let i = 0; i < toolList.eList.length; i++) {
  13830. if(toolList.eList[i].isai == 1){
  13831. let a = toolList.eList[i].detail
  13832. if (isNaN(parseFloat(a)) && a) {
  13833. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13834. }else{
  13835. var result = a
  13836. }
  13837. text += `{'${result}' : '评价等级0-5(数字)'},`;
  13838. }
  13839. }
  13840. }else{
  13841. let titRule = 0
  13842. let titRule2 = 0
  13843. tit.forEach((e, index) => {
  13844. if (!e.isai) {
  13845. e.isai = 1;
  13846. }
  13847. });
  13848. tit.forEach((e, index) => {
  13849. if (e.isai == 1) {
  13850. titRule2++
  13851. if (e.rule) {
  13852. titRule++
  13853. }
  13854. }
  13855. });
  13856. if (titRule != titRule2) {
  13857. this.AIloading.forEach((e,index)=>{
  13858. if(index == toolIndex){
  13859. e.forEach(k=>{
  13860. k.loading=false
  13861. })
  13862. }
  13863. })
  13864. this.loopLoading[toolIndex].loading=false
  13865. this.$message.info('细则努力生成中,请稍候……')
  13866. return
  13867. }
  13868. for (let i = 0; i < tit.length; i++) {
  13869. if(tit[i].isai == 1){
  13870. laws += ` 细则${i}:${tit[i].rule}, \n`;
  13871. }
  13872. }
  13873. for (let i = 0; i < tit.length; i++) {
  13874. if(tit[i].isai == 1){
  13875. let a = tit[i].detail
  13876. if (isNaN(parseFloat(a)) && a) {
  13877. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13878. }else{
  13879. var result = a
  13880. }
  13881. std += `纬度${i}:“${result}”, \n`;
  13882. }
  13883. }
  13884. for (let i = 0; i < tit.length; i++) {
  13885. if(tit[i].isai == 1){
  13886. let a = tit[i].detail
  13887. if (isNaN(parseFloat(a)) && a) {
  13888. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  13889. }else{
  13890. var result = a
  13891. }
  13892. text += `{'${result}' : '评价等级0-5(数字)'},`;
  13893. }
  13894. }
  13895. }
  13896. let forAllList = []
  13897. // console.log('con',con)
  13898. for (let i = 0; i < con.length; i++) {
  13899. let _fileid = ''
  13900. let wok = con[i].works
  13901. // console.log('con',con);
  13902. // console.log('con[i].type',con[i].type);
  13903. if(con[i].type == 0 || con[i].type == 1 || con[i].type == 12){
  13904. let a = wok.slice(wok.lastIndexOf(".") + 1)
  13905. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  13906. _fileid = await this.createFileid(con[i].works);
  13907. }else{
  13908. this.AIloading[toolIndex][i].loading=false;
  13909. continue;
  13910. }
  13911. }
  13912. // console.log('con[i].type',con[i])
  13913. // console.log('con[i].type',con[i].type)
  13914. if(_fileid == 1 || con[i].type == 3){
  13915. this.AIloading[toolIndex][i].loading=false;
  13916. continue;
  13917. }
  13918. let msg = `NOTICE
  13919. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  13920. Language: ${this.getLang()}
  13921. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  13922. Instruction: Based on the context, follow "Format example", write content.
  13923. #目标#
  13924. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  13925. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  13926. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  13927. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  13928. ${con[i].type == 0 ? '提取图片内容进行评价' : ''}
  13929. #评分资料#
  13930. 评价标准:${std}
  13931. 评价细则:${laws}
  13932. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text }
  13933. 任务描述:${taskDetail}
  13934. 工具描述:${toolDetail}
  13935. #输出要求#
  13936. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  13937. “评语”控制在150字左右。
  13938. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  13939. #输出格式#
  13940. [${text}{'comment':'评语(150个汉字左右)'}]
  13941. `
  13942. let mk = `markSco${toolIndex}${i}`
  13943. let mkAwit = this.$refs[mk][0].aiupdetaSco(msg,con[i].userid,stage,task,_fileid,con[i].type)
  13944. forAllList.push(mkAwit)
  13945. }
  13946. Promise.all(forAllList).then(values=>{
  13947. console.log('values',values)
  13948. this.$message({
  13949. message: "评价成功",
  13950. type: "success"
  13951. });
  13952. // this.refreshKey++
  13953. // this.worksStudent.forEach((e,index)=>{
  13954. // if(toolIndex == index){
  13955. // e.forEach((i,inx)=>{
  13956. // let mk = `markSco${index}${inx}`
  13957. // this.$refs[mk][0].getData()
  13958. // })
  13959. // }
  13960. // })
  13961. this.AIloading[toolIndex].forEach(e=>{
  13962. e.loading =false
  13963. })
  13964. this.loopLoading[toolIndex].loading = false;
  13965. }).catch(reason=>{
  13966. console.error('reasonreasonreasonreasonreason',reason);
  13967. // 输出“失败原因”
  13968. })
  13969. },
  13970. // 获取评价细则
  13971. againEva(i,k){
  13972. let msg = `NOTICE
  13973. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  13974. Language: ${this.getLang()}
  13975. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  13976. Instruction: Based on the context, follow "Format example", write content.
  13977. #Context
  13978. ##要求
  13979. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  13980. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  13981. ##制定标准资料
  13982. 评价维度:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value}
  13983. 维度描述:${this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail}
  13984. # Format example
  13985. ==
  13986. 0 星,作业内容与作业要求无关;
  13987. 1 星,没有识别问题和需求;
  13988. 2 星,问题或需求没有被清晰理解或准确识别;
  13989. 3 星,问题或需求的一部分被识别;
  13990. 4 星,问题或需求的大部分被识别;
  13991. 5 星,问题或需求都被识别。
  13992. ==
  13993. `
  13994. let params = {
  13995. assistant_id: 'f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b',
  13996. message: [{"type":"text", "text":msg.replaceAll('\n', " ").replaceAll('*', "")}],
  13997. session_name: uuidv4(),
  13998. userId: this.userid,
  13999. file_ids: [],
  14000. model:'gpt-4o-mini'
  14001. };
  14002. // console.log('params',params);
  14003. this.ajax
  14004. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  14005. .then(response => {
  14006. let data = response.data.FunctionResponse;
  14007. // console.log("data", data);
  14008. if (data.message) {
  14009. let content = data.message;
  14010. var regex = new RegExp('==([^=]+)==');
  14011. let match = content.match(regex);
  14012. if (match) {
  14013. content = match[1].trim().replaceAll(' ','');
  14014. // 获取匹配到的内容并去除两端空格
  14015. // console.log('contentInsideDoubleEquals', content);
  14016. if(content.indexOf('0星') == -1 || content.indexOf('2星') == -1 || content.indexOf('3星') == -1 || content.indexOf('4星') == -1 || content.indexOf('5星') == -1){
  14017. console.log("未有星级。");
  14018. this.againEva(i,k)
  14019. return
  14020. }
  14021. // return
  14022. } else {
  14023. console.log("未找到匹配的内容。");
  14024. this.againEva(i,k)
  14025. return
  14026. }
  14027. let elist = JSON.parse(JSON.stringify(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]))
  14028. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  14029. elist.rule = JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  14030. this.$set(this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,k,elist)
  14031. this.$forceUpdate();
  14032. let params2 = [
  14033. {
  14034. cid: this.id,
  14035. chapters: JSON.stringify(this.chapInfoList),
  14036. uid: this.userid,
  14037. unitIndex: this.courseType,
  14038. },
  14039. ];
  14040. this.ajax
  14041. .post(this.$store.state.api + "updateWorkNew4", params2)
  14042. .then((res) => {
  14043. this.getCourseDetail(2);
  14044. this.$forceUpdate();
  14045. })
  14046. .catch((err) => {
  14047. this.$message.error("网络不佳");
  14048. console.error(err);
  14049. });
  14050. // 进行进一步处理或解析outputContent
  14051. // } else {
  14052. // console.log("No match found for # Output section.");
  14053. // }
  14054. }
  14055. })
  14056. .catch(error => {
  14057. console.log(error);
  14058. });
  14059. },
  14060. // 关闭评分弹框
  14061. markScorehandleClose(done) {
  14062. // this.refreshKey++
  14063. this.worksStudent.forEach((e,index)=>{
  14064. if(this.markScoretoolIndex == index){
  14065. e.forEach((i,inx)=>{
  14066. let mk = `markSco${index}${inx}`
  14067. if(this.$refs[mk]){
  14068. this.$refs[mk][0].getData()
  14069. }
  14070. })
  14071. }
  14072. })
  14073. done();
  14074. },
  14075. // 关闭txtMd预览弹框
  14076. handleCloseTxt(done){
  14077. this.TxtMd = ''
  14078. done();
  14079. },
  14080. // Txt,Md作业查看
  14081. lookTxt(val){
  14082. this.dialogVisibleTxt =true
  14083. this.TxtMd = ''
  14084. getFile(val).then(res=>{
  14085. this.TxtMd = res.data;
  14086. })
  14087. },
  14088. // 组件刷新
  14089. refreshAssembly(val){
  14090. this.refreshKey++
  14091. // console.log(this.refreshKey)
  14092. },
  14093. updateLoading(payload){
  14094. this.AIloading[payload.val][payload.val2].loading=payload.val3
  14095. },
  14096. handleShow(toolIndex,val) {
  14097. let mk = `markSco${toolIndex}${val}`
  14098. // console.log(mk);
  14099. this.$refs[mk][0].getData()
  14100. },
  14101. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  14102. markScoreDig2(uname,worksStudent,uid,tidx,titlist,val = 0,toolList){
  14103. // console.log('this.AIloading',this.AIloading)
  14104. let jude = false
  14105. this.AIloading.forEach((e,index)=>{
  14106. if(index == tidx){
  14107. e.forEach(k=>{
  14108. if(k.loading == true)
  14109. jude=true
  14110. })
  14111. }
  14112. })
  14113. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  14114. if(val) return
  14115. // console.log(uname,worksStudent,uid,tidx,titlist)
  14116. this.markScoreTit=titlist;
  14117. this.markScoreUid=uid;
  14118. this.toolListS=toolList
  14119. this.markScoretoolIndex=tidx;
  14120. this.markScoreworksStudent = worksStudent;
  14121. this.markfullscreen = false;
  14122. this.markScoreVisible = true;
  14123. if( this.tType == 1 ){
  14124. this.insertMemorandum(`查看<span class="variable">${uname}</span>的作业`)
  14125. }
  14126. },
  14127. // 点击markScore显示评分框
  14128. markScoreDig(data){
  14129. // console.log('data',data)
  14130. let jude = false
  14131. this.AIloading.forEach((e,index)=>{
  14132. if(index == data.val2){
  14133. e.forEach(k=>{
  14134. if(k.loading == true)
  14135. jude=true
  14136. })
  14137. }
  14138. })
  14139. if(jude) return this.$message.info('正在AI评价进程中请稍后')
  14140. this.markScoreTit=data.tit
  14141. this.markScoreUid=data.val
  14142. this.markScoretoolIndex=data.val2
  14143. this.markfullscreen = false
  14144. this.markScoreVisible = true
  14145. this.insertMemorandum(`查看<span class="variable">${data.uname}</span>的作业`)
  14146. },
  14147. // 刷新其他组件分数
  14148. refreshOther(v){
  14149. // console.log('v',v)
  14150. this.AIloading[v.tid].forEach((e,i)=>{
  14151. if(i == v.wid){
  14152. e.loading =false
  14153. }
  14154. })
  14155. // this.worksStudent.forEach((e,index)=>{
  14156. // if(toolIndex != index){
  14157. // e.forEach((i,inx)=>{
  14158. // let mk = `markSco${index}${inx}`
  14159. // this.$refs[mk][0].getData()
  14160. // })
  14161. // }
  14162. // })
  14163. },
  14164. updateDocSco(payload){
  14165. // console.log('payload',payload)
  14166. this.AIloading[payload.val][payload.val2].sco=payload.val3
  14167. },
  14168. gx(){
  14169. this.$forceUpdate();
  14170. },
  14171. isUpdateCorrect(t,p){
  14172. if(this.greyType == false){
  14173. this.isUpdateText = t;
  14174. this.greyType = true;
  14175. }else{
  14176. if(p == 1){
  14177. this.newEnglishList.engText = this.isUpdateText;
  14178. }else if(p == 2){
  14179. this.oldEnglishJson1.engText = this.isUpdateText;
  14180. }else if(p == 3){
  14181. this.newEnglishList.engText = this.isUpdateText;
  14182. }else{
  14183. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  14184. }
  14185. this.greyType = false
  14186. }
  14187. },
  14188. aiCorrect(t,p){
  14189. let aiText = "";
  14190. const loading = this.$loading.service({
  14191. background: "rgba(255, 255, 255)",
  14192. target: document.querySelectorAll(".loadingText")[0],
  14193. });
  14194. let param = {
  14195. model: "gpt-3.5-turbo",
  14196. temperature: 0,
  14197. max_tokens: 2048,
  14198. top_p: 1,
  14199. frequency_penalty: 0,
  14200. presence_penalty: 0,
  14201. messages: [
  14202. {
  14203. role: "user",
  14204. content:
  14205.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  14206. },
  14207. ],
  14208. uid: this.userid,
  14209. stream: false,
  14210. };
  14211. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  14212. (res) => {
  14213. if (
  14214. res.data.FunctionResponse &&
  14215. res.data.FunctionResponse.result &&
  14216. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  14217. ) {
  14218. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  14219. return;
  14220. }
  14221. aiText =
  14222. res.data.FunctionResponse.choices[0].message.content;
  14223. aiText = aiText.replace(/%/g,"%25");
  14224. // let w = "";
  14225. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  14226. // for(var k = 0;k<a.length;k++){
  14227. // //diffWordsWithSpace
  14228. // if(a.length > 1){
  14229. // if(a[k].added == true){
  14230. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  14231. // }else if(a[k].removed == true){
  14232. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  14233. // }else{
  14234. // w += '<span>' + a[k].value + '</span>';
  14235. // }
  14236. // }else{
  14237. // if(p == 1){
  14238. // w = this.newEnglishList.engText;
  14239. // }else if(p == 2){
  14240. // w = this.oldEnglishJson1.engText;
  14241. // }else if(p == 3){
  14242. // w = this.newEnglishList.engText;
  14243. // }else{
  14244. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  14245. // }
  14246. // }
  14247. // }
  14248. if(p == 1){
  14249. this.newEnglishList.engText = aiText;
  14250. }else if(p == 2){
  14251. this.oldEnglishJson1.engText = aiText;
  14252. }else if(p == 3){
  14253. this.newEnglishList.engText = aiText;
  14254. }else{
  14255. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  14256. }
  14257. loading.close();
  14258. },
  14259. (err) => {
  14260. console.log(err);
  14261. loading.close();
  14262. }
  14263. );
  14264. },
  14265. addToolChoose() {
  14266. if (!this.checktoolArray.length) {
  14267. this.$message.error("请选择要添加的任务");
  14268. return;
  14269. }
  14270. if (
  14271. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14272. this.taskCount
  14273. ].toolChoose[0].tool.length
  14274. ) {
  14275. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14276. this.taskCount
  14277. ].toolChoose[0].tool = this.checktoolArray;
  14278. } else {
  14279. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14280. this.taskCount
  14281. ].toolChoose.push({
  14282. tool: this.checktoolArray,
  14283. toolDetail: "",
  14284. toolType: 0,
  14285. askCount: 1,
  14286. askTitle: "",
  14287. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  14288. });
  14289. }
  14290. let params = [
  14291. {
  14292. cid: this.id,
  14293. chapters: JSON.stringify(this.chapInfoList),
  14294. uid: this.userid,
  14295. unitIndex: this.courseType,
  14296. },
  14297. ];
  14298. this.ajax
  14299. .post(this.$store.state.api + "updateWorkNew4", params)
  14300. .then((res) => {
  14301. this.$message({
  14302. message: "添加成功",
  14303. type: "success",
  14304. });
  14305. this.checktoolArray = [];
  14306. this.getCourseDetail(2);
  14307. this.checkBz(
  14308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14309. this.taskCount
  14310. ].toolChoose.length - 1
  14311. );
  14312. this.toolDialogVisible = false;
  14313. this.refreshCourse();
  14314. this.$forceUpdate();
  14315. })
  14316. .catch((err) => {
  14317. console.error(err);
  14318. });
  14319. },
  14320. checkBz(index) {
  14321. this.isUpdateToolDetail = false;
  14322. this.$forceUpdate();
  14323. setTimeout(() => {
  14324. document.scrollingElement.scrollTop =
  14325. document.querySelectorAll(".filebox")[index].offsetTop +
  14326. document.querySelector(".student_body").offsetTop;
  14327. }, 500);
  14328. },
  14329. updateToolDetail(i, type) {
  14330. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  14331. this.toolDetailIndex = i
  14332. this.isUpdateToolDetail1 = true;
  14333. setTimeout(() => {
  14334. this.updateToolDetailInner = JSON.parse(
  14335. JSON.stringify(
  14336. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14337. this.taskCount
  14338. ].toolChoose[i].toolDetail
  14339. )
  14340. );
  14341. document.querySelector(".checkTextArea").focus();
  14342. }, 0);
  14343. } else if((this.isUpdateToolDetail1 && type != 2)){
  14344. // this.toolDetailIndex = i;
  14345. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14346. this.taskCount
  14347. ].toolChoose[i].toolDetail = JSON.parse(
  14348. JSON.stringify(this.updateToolDetailInner)
  14349. );
  14350. let params = [
  14351. {
  14352. cid: this.id,
  14353. chapters: JSON.stringify(this.chapInfoList),
  14354. uid: this.userid,
  14355. unitIndex: this.courseType,
  14356. },
  14357. ];
  14358. this.ajax
  14359. .post(this.$store.state.api + "updateWorkNew4", params)
  14360. .then((res) => {
  14361. this.isUpdateToolDetail1 = false;
  14362. this.$message({
  14363. message: "修改成功",
  14364. type: "success",
  14365. });
  14366. this.toolDetailIndex = null;
  14367. this.updateToolDetailInner = "";
  14368. this.getCourseDetail(2);
  14369. this.$forceUpdate();
  14370. })
  14371. .catch((err) => {
  14372. console.error(err);
  14373. });
  14374. } else if((this.isUpdateToolDetail1 && type == 2)){
  14375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14376. this.taskCount
  14377. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  14378. JSON.stringify(this.updateToolDetailInner)
  14379. );
  14380. let params = [
  14381. {
  14382. cid: this.id,
  14383. chapters: JSON.stringify(this.chapInfoList),
  14384. uid: this.userid,
  14385. unitIndex: this.courseType,
  14386. },
  14387. ];
  14388. this.ajax
  14389. .post(this.$store.state.api + "updateWorkNew4", params)
  14390. .then((res) => {
  14391. this.$message({
  14392. message: "修改成功",
  14393. type: "success",
  14394. });
  14395. this.toolDetailIndex = i;
  14396. this.isUpdateToolDetail1 = true;
  14397. setTimeout(() => {
  14398. this.updateToolDetailInner = JSON.parse(
  14399. JSON.stringify(
  14400. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  14401. this.taskCount
  14402. ].toolChoose[i].toolDetail
  14403. )
  14404. );
  14405. document.querySelector(".checkTextArea").focus();
  14406. }, 0);
  14407. this.getCourseDetail(2);
  14408. this.$forceUpdate();
  14409. })
  14410. .catch((err) => {
  14411. console.error(err);
  14412. });
  14413. }
  14414. },
  14415. jumpGj(i, j, k, l) {
  14416. this.refreshAssembly()
  14417. for (var z = 0; z < this.navList.length; z++) {
  14418. for (var q = 0; q < this.navList[z].task.length; q++) {
  14419. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  14420. this.navList[z].task[q].tool[w].isTool = false;
  14421. }
  14422. }
  14423. }
  14424. this.navList[i].task[j].tool[k].isTool =
  14425. !this.navList[i].task[j].tool[k].isTool;
  14426. var a = document.scrollingElement;
  14427. let target = document.querySelector(`#gj${k}`);
  14428. if (target) {
  14429. target.scrollIntoView(true);
  14430. setTimeout(() => {
  14431. a.scrollTop = a.scrollTop - 150;
  14432. }, 0);
  14433. }
  14434. this.navId = ""
  14435. let flag = this.courseType == i;
  14436. let flag2 = this.taskCount == j
  14437. if (l) {
  14438. this.courseType = i;
  14439. // this.navId = l;
  14440. this.taskCount = j;
  14441. this.selectPz();
  14442. this.getHomeWork();
  14443. this.getCourseDetail(2);
  14444. if(flag){
  14445. if(flag2){
  14446. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  14447. }else{
  14448. 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>`)
  14449. }
  14450. }else{
  14451. 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>`)
  14452. }
  14453. }
  14454. // var b = this.$refs["bz" + k][0];
  14455. // a.scrollTop = b.offsetTop;
  14456. },
  14457. addTools2(i) {
  14458. if (i == 4) {
  14459. // this.openTools2(4);
  14460. this.$message.error("暂未开放");
  14461. return;
  14462. }
  14463. if (i == 45) {
  14464. // this.openTools2(45);
  14465. this.$message.error("暂未开放");
  14466. return;
  14467. }
  14468. if (i == 47) {
  14469. // this.openTools2(47);
  14470. this.$message.error("暂未开放");
  14471. return;
  14472. }
  14473. if (i == 49) {
  14474. // this.openTools2(49);
  14475. this.$message.error("暂未开放");
  14476. return;
  14477. }
  14478. if (i == 62) {
  14479. // this.openTools(itemTaskIndex, 62, toolIndex);
  14480. this.$message.error("暂未开放");
  14481. return;
  14482. }
  14483. if (i == 15) {
  14484. // this.openTools(itemTaskIndex, 15, toolIndex);
  14485. this.$message.error("暂未开放");
  14486. return;
  14487. }
  14488. if (i == 40) {
  14489. // this.openTools(itemTaskIndex, 40, toolIndex);
  14490. this.$message.error("暂未开放");
  14491. return;
  14492. }
  14493. if (i == 41) {
  14494. // this.openTools(itemTaskIndex, 41, toolIndex);
  14495. this.$message.error("暂未开放");
  14496. return;
  14497. }
  14498. if (i == 42) {
  14499. // this.openTools(itemTaskIndex, 42, toolIndex);
  14500. this.$message.error("暂未开放");
  14501. return;
  14502. }
  14503. if (this.checktoolArray.length > 0) {
  14504. if (this.checktoolArray.indexOf(i) != -1) {
  14505. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  14506. } else {
  14507. this.checktoolArray = [];
  14508. this.checktoolArray.push(i);
  14509. }
  14510. } else {
  14511. this.checktoolArray.push(i);
  14512. }
  14513. this.$forceUpdate();
  14514. },
  14515. jump() {
  14516. window.parent.postMessage({ tools: "43" }, "*");
  14517. },
  14518. getUpdateMore(f, checkboxList, searchTN, index) {
  14519. this.dialogVisibleMember = f;
  14520. this.checkboxList = checkboxList;
  14521. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  14522. this.plIndex = index;
  14523. },
  14524. setPlname(a) {
  14525. if (this.plworkFile.length) {
  14526. this.plworkFile[this.plIndex].username = a;
  14527. } else {
  14528. this.worksSName = a;
  14529. }
  14530. this.dialogVisibleMember = false;
  14531. },
  14532. previewImg(url,w) {
  14533. this.$hevueImgPreview(url);
  14534. if(w){
  14535. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  14536. }
  14537. },
  14538. checkImg(list) {
  14539. if (!list.length) {
  14540. return;
  14541. }
  14542. this.$hevueImgPreview({
  14543. multiple: true, // 开启多图预览模式
  14544. imgList: list, // 需要预览的多图数组
  14545. });
  14546. },
  14547. change(val) {
  14548. console.log(val);
  14549. },
  14550. goTo(path) {
  14551. this.$router.push(path);
  14552. },
  14553. handlePictureCardPreview(url) {
  14554. this.dialogImageUrl = url;
  14555. this.pictureDialog = true;
  14556. },
  14557. clean(type) {
  14558. if (type == 1) {
  14559. this.studyJuri[0].cover.splice(0, 1);
  14560. } else if (type == 2) {
  14561. this.studyJuri[0].upVedio.splice(0, 1);
  14562. } else {
  14563. this.studyJuri[0].upFile.splice(0, 1);
  14564. }
  14565. },
  14566. clean2(index) {
  14567. this.plworkFile.splice(index, 1);
  14568. },
  14569. handleClose(done) {
  14570. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  14571. this.videoDetail.sources[0].src = "";
  14572. }
  14573. this.commentIndexJson = {};
  14574. done();
  14575. },
  14576. fullTools() {
  14577. this.full = !this.full;
  14578. },
  14579. imgChange(file, fileList, type) {
  14580. if (type == 1) {
  14581. var _tmp = this.studyJuri[0].cover;
  14582. } else if (type == 2) {
  14583. var _tmp = this.studyJuri[0].upVedio;
  14584. } else {
  14585. var _tmp = this.studyJuri[0].upFile;
  14586. }
  14587. this.noneBtnImg = _tmp.length >= 1;
  14588. },
  14589. setContent(bool) {
  14590. this.contentDialog = bool;
  14591. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  14592. document.querySelector(".workd_media").style.height = "650px";
  14593. } else if (document.querySelector(".workd_media")) {
  14594. document.querySelector(".workd_media").style.height = "auto";
  14595. }
  14596. },
  14597. setContent2(bool) {
  14598. this.mlDialog = bool;
  14599. if (
  14600. bool &&
  14601. this.contentDialog &&
  14602. document.querySelector(".workd_media")
  14603. ) {
  14604. document.querySelector(".workd_media").style.height = "650px";
  14605. } else if (document.querySelector(".workd_media")) {
  14606. document.querySelector(".workd_media").style.height = "auto";
  14607. }
  14608. },
  14609. openToolAll() {
  14610. this.toolDialogVisible = true;
  14611. },
  14612. addImg(e) {
  14613. var el = e.currentTarget;
  14614. // this.$message.success('触发上传')
  14615. el.getElementsByTagName("input")[0].click();
  14616. e.target.value = "";
  14617. },
  14618. addSelectAnswer() {
  14619. let params = [
  14620. {
  14621. uid: this.userid,
  14622. cid: this.id,
  14623. stage: this.courseType,
  14624. task: this.taskCount,
  14625. tool: this.toolindex,
  14626. content: this.selectAnswer.answer,
  14627. type: 7,
  14628. },
  14629. ];
  14630. this.ajax
  14631. .post(this.$store.state.api + "addCourseWorks", params)
  14632. .then((res) => {
  14633. this.$message({
  14634. message: "提交成功",
  14635. type: "success",
  14636. });
  14637. this.dialogVisibleSelect = false;
  14638. // this.selectAnswer = {};
  14639. this.selectSWorks();
  14640. this.selectStudent();
  14641. })
  14642. .catch((err) => {
  14643. this.$message.error("提交失败");
  14644. console.error(err);
  14645. });
  14646. },
  14647. addSelectAnswerTeacher() {
  14648. let params = [
  14649. {
  14650. uid: this.sStudent.userid,
  14651. cid: this.id,
  14652. stage: this.courseType,
  14653. task: this.taskCount,
  14654. tool: this.toolindex,
  14655. content: this.selectAnswer.answer,
  14656. type: 7,
  14657. },
  14658. ];
  14659. this.ajax
  14660. .post(this.$store.state.api + "addCourseWorks", params)
  14661. .then((res) => {
  14662. this.$message({
  14663. message: "提交成功",
  14664. type: "success",
  14665. });
  14666. this.dialogVisibleSelectTeacher = false;
  14667. // this.selectAnswer = {};
  14668. this.selectSWorks();
  14669. this.selectStudent();
  14670. })
  14671. .catch((err) => {
  14672. this.$message.error("提交失败");
  14673. console.error(err);
  14674. });
  14675. },
  14676. addSenWorks() {
  14677. for (var i = 0; i < this.sentenceList.length; i++) {
  14678. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14679. if (
  14680. this.sentenceList[i].chooseSenList[j] == undefined ||
  14681. this.sentenceList[i].chooseSenList[j] == ""
  14682. ) {
  14683. this.$message.error("请将答案填写完整!");
  14684. return;
  14685. }
  14686. }
  14687. }
  14688. let params = [
  14689. {
  14690. uid: this.userid,
  14691. cid: this.id,
  14692. stage: this.courseType,
  14693. task: this.taskCount,
  14694. tool: this.toolindex,
  14695. content: JSON.stringify(this.sentenceList),
  14696. type: 9,
  14697. },
  14698. ];
  14699. this.ajax
  14700. .post(this.$store.state.api + "addCourseWorks", params)
  14701. .then((res) => {
  14702. this.$message({
  14703. message: "提交成功",
  14704. type: "success",
  14705. });
  14706. this.dialogVisibleSentence = false;
  14707. // this.selectAnswer = {};
  14708. this.selectSWorks();
  14709. this.selectStudent();
  14710. })
  14711. .catch((err) => {
  14712. this.$message.error("提交失败");
  14713. console.error(err);
  14714. });
  14715. },
  14716. addSenWorksTeacher() {
  14717. for (var i = 0; i < this.sentenceList.length; i++) {
  14718. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  14719. if (
  14720. this.sentenceList[i].chooseSenList[j] == undefined ||
  14721. this.sentenceList[i].chooseSenList[j] == ""
  14722. ) {
  14723. this.$message.error("请将答案填写完整!");
  14724. return;
  14725. }
  14726. }
  14727. }
  14728. let params = [
  14729. {
  14730. uid: this.sStudent.userid,
  14731. cid: this.id,
  14732. stage: this.courseType,
  14733. task: this.taskCount,
  14734. tool: this.toolindex,
  14735. content: JSON.stringify(this.sentenceList),
  14736. type: 9,
  14737. },
  14738. ];
  14739. this.ajax
  14740. .post(this.$store.state.api + "addCourseWorks", params)
  14741. .then((res) => {
  14742. this.$message({
  14743. message: "提交成功",
  14744. type: "success",
  14745. });
  14746. this.dialogVisibleSentenceTeacher = false;
  14747. // this.selectAnswer = {};
  14748. this.selectSWorks();
  14749. this.selectStudent();
  14750. })
  14751. .catch((err) => {
  14752. this.$message.error("提交失败");
  14753. console.error(err);
  14754. });
  14755. },
  14756. returnTableText() {
  14757. this.$confirm("确定还原此模板吗?", "提示", {
  14758. confirmButtonText: "确定",
  14759. cancelButtonText: "取消",
  14760. type: "warning",
  14761. })
  14762. .then(() => {
  14763. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  14764. })
  14765. .catch(() => {});
  14766. },
  14767. addTableWorks() {
  14768. let params = [
  14769. {
  14770. uid: this.userid,
  14771. cid: this.id,
  14772. stage: this.courseType,
  14773. task: this.taskCount,
  14774. tool: this.toolindex,
  14775. content: JSON.stringify(this.tableJson),
  14776. type: 10,
  14777. },
  14778. ];
  14779. this.ajax
  14780. .post(this.$store.state.api + "addCourseWorks", params)
  14781. .then((res) => {
  14782. this.$message({
  14783. message: "提交成功",
  14784. type: "success",
  14785. });
  14786. this.dialogVisibleTable = false;
  14787. // this.selectAnswer = {};
  14788. this.selectSWorks();
  14789. this.selectStudent();
  14790. })
  14791. .catch((err) => {
  14792. this.$message.error("提交失败");
  14793. console.error(err);
  14794. });
  14795. },
  14796. tableRowClassName({ row, rowIndex }) {
  14797. if ((rowIndex + 1) % 2 === 0) {
  14798. return "even_row";
  14799. } else {
  14800. return "";
  14801. }
  14802. },
  14803. addTableWorksTeacher() {
  14804. let params = [
  14805. {
  14806. uid: this.sStudent.userid,
  14807. cid: this.id,
  14808. stage: this.courseType,
  14809. task: this.taskCount,
  14810. tool: this.toolindex,
  14811. content: JSON.stringify(this.tableJson),
  14812. type: 10,
  14813. },
  14814. ];
  14815. this.ajax
  14816. .post(this.$store.state.api + "addCourseWorks", params)
  14817. .then((res) => {
  14818. this.$message({
  14819. message: "提交成功",
  14820. type: "success",
  14821. });
  14822. this.dialogVisibleTableTeacher = false;
  14823. // this.selectAnswer = {};
  14824. this.selectSWorks();
  14825. this.selectStudent();
  14826. })
  14827. .catch((err) => {
  14828. this.$message.error("提交失败");
  14829. console.error(err);
  14830. });
  14831. },
  14832. returnWordText() {
  14833. this.$confirm("确定还原此模板吗?", "提示", {
  14834. confirmButtonText: "确定",
  14835. cancelButtonText: "取消",
  14836. type: "warning",
  14837. })
  14838. .then(() => {
  14839. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  14840. })
  14841. .catch(() => {});
  14842. },
  14843. addWordWorks() {
  14844. let params = [
  14845. {
  14846. uid: this.userid,
  14847. cid: this.id,
  14848. stage: this.courseType,
  14849. task: this.taskCount,
  14850. tool: this.toolindex,
  14851. content: JSON.stringify(this.wordJson),
  14852. type: 13,
  14853. atool: 52,
  14854. },
  14855. ];
  14856. this.ajax
  14857. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14858. .then((res) => {
  14859. this.$message({
  14860. message: "提交成功",
  14861. type: "success",
  14862. });
  14863. this.dialogVisibleWord = false;
  14864. // this.selectAnswer = {};
  14865. this.selectSWorks();
  14866. this.selectStudent();
  14867. })
  14868. .catch((err) => {
  14869. this.$message.error("提交失败");
  14870. console.error(err);
  14871. });
  14872. },
  14873. addWordWorksTeacher() {
  14874. let params = [
  14875. {
  14876. uid: this.sStudent.userid,
  14877. cid: this.id,
  14878. stage: this.courseType,
  14879. task: this.taskCount,
  14880. tool: this.toolindex,
  14881. content: JSON.stringify(this.wordJson),
  14882. type: 13,
  14883. atool: 52,
  14884. },
  14885. ];
  14886. this.ajax
  14887. .post(this.$store.state.api + "addCourseWorks3-2", params)
  14888. .then((res) => {
  14889. this.$message({
  14890. message: "提交成功",
  14891. type: "success",
  14892. });
  14893. this.dialogVisibleWordTeacher = false;
  14894. // this.selectAnswer = {};
  14895. this.selectSWorks();
  14896. this.selectStudent();
  14897. })
  14898. .catch((err) => {
  14899. this.$message.error("提交失败");
  14900. console.error(err);
  14901. });
  14902. },
  14903. addCourseWorksCopy(i){
  14904. let arr = this.workStudent[this.toolindex].filter(e=>{
  14905. return e.userid = this.userid
  14906. })
  14907. if (arr.length > 0) {
  14908. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  14909. confirmButtonText: "确定",
  14910. cancelButtonText: "取消",
  14911. type: "warning",
  14912. })
  14913. .then(() => {
  14914. this.addCourseWorks(i)
  14915. })
  14916. .catch(() => {});
  14917. }else{
  14918. this.addCourseWorks(i)
  14919. }
  14920. },
  14921. addCourseWorks(i) {
  14922. var typesql;
  14923. if (this.fileType === 0) {
  14924. typesql = 1;
  14925. } else if (this.fileType === 1) {
  14926. typesql = 4;
  14927. } else if (this.fileType === 2) {
  14928. typesql = 5;
  14929. } else if (this.fileType === 3) {
  14930. typesql = 12;
  14931. }
  14932. if (!this.studyJuri[0].cover[0].url) {
  14933. this.$message.error("请上传文件");
  14934. return;
  14935. }
  14936. let params = [
  14937. {
  14938. uid: this.userid,
  14939. cid: this.id,
  14940. stage: this.courseType,
  14941. task: i,
  14942. tool: this.toolindex,
  14943. content: this.studyJuri[0].cover[0].url,
  14944. type: typesql,
  14945. },
  14946. ];
  14947. this.ajax
  14948. .post(this.$store.state.api + "addCourseWorksR1", params)
  14949. .then((res) => {
  14950. this.$message({
  14951. message: "提交成功",
  14952. type: "success",
  14953. });
  14954. this.studyJuri[0].cover = [];
  14955. this.dialogVisible = false;
  14956. this.getCourseDetail(2);
  14957. })
  14958. .catch((err) => {
  14959. this.$message.error("提交失败");
  14960. console.error(err);
  14961. });
  14962. },
  14963. addCourseWorksPl(i) {
  14964. let _files = this.plworkFile;
  14965. var c = 1;
  14966. for (var k = 0; k < _files.length; k++) {
  14967. if (!_files[k].username) {
  14968. c = 2;
  14969. }
  14970. }
  14971. if (c == 2) {
  14972. this.$message.error("请填写学生姓名");
  14973. return;
  14974. }
  14975. let params = [
  14976. {
  14977. ateacher: this.userid,
  14978. cid: this.id,
  14979. stage: this.courseType,
  14980. task: i,
  14981. tool: this.toolindex,
  14982. content: JSON.stringify(_files),
  14983. },
  14984. ];
  14985. this.ajax
  14986. .post(this.$store.state.api + "addCourseWorksPl", params)
  14987. .then((res) => {
  14988. this.$message({
  14989. message: "提交成功",
  14990. type: "success",
  14991. });
  14992. this.plworkFile = [];
  14993. this.dialogVisiblePl = false;
  14994. this.getCourseDetail(2);
  14995. })
  14996. .catch((err) => {
  14997. this.$message.error("提交失败");
  14998. console.error(err);
  14999. });
  15000. },
  15001. addCourseWorks2(i) {
  15002. var typesql;
  15003. if (this.fileType === 0) {
  15004. typesql = 0;
  15005. } else if (this.fileType === 1) {
  15006. typesql = 1;
  15007. } else if (this.fileType === 2) {
  15008. typesql = 3;
  15009. } else if (this.fileType === 3) {
  15010. typesql = 12;
  15011. }
  15012. if (!this.studyJuri[0].cover[0].url) {
  15013. this.$message.error("请上传文件");
  15014. return;
  15015. }
  15016. let params = [
  15017. {
  15018. uid: this.userid,
  15019. cid: this.id,
  15020. stage: this.courseType,
  15021. task: i,
  15022. tool: this.toolindex,
  15023. content: JSON.stringify({
  15024. type: typesql,
  15025. groupIndex: this.groupIndex,
  15026. url: this.studyJuri[0].cover[0].url,
  15027. }),
  15028. type: 11,
  15029. atool: 49,
  15030. text: "",
  15031. },
  15032. ];
  15033. this.ajax
  15034. .post(this.$store.state.api + "addCourseWorks5", params)
  15035. .then((res) => {
  15036. this.$message({
  15037. message: "提交成功",
  15038. type: "success",
  15039. });
  15040. this.studyJuri[0].cover = [];
  15041. this.dialogVisibleGroupWork = false;
  15042. this.getCourseDetail(2);
  15043. })
  15044. .catch((err) => {
  15045. this.$message.error("提交失败");
  15046. console.error(err);
  15047. });
  15048. },
  15049. addEnglishWork() {
  15050. this.myAnList = this.$refs['engJson'].myAnswerList;
  15051. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  15052. this.$message.error("请输入作文标题和正文!");
  15053. return;
  15054. }
  15055. let params = [
  15056. {
  15057. uid: this.userid,
  15058. cid: this.id,
  15059. stage: this.courseType,
  15060. task: this.taskCount,
  15061. tool: this.englishToolIndex,
  15062. content: JSON.stringify(this.myAnList),
  15063. type: 16,
  15064. atool: 69,
  15065. text: "",
  15066. },
  15067. ];
  15068. this.ajax
  15069. .post(this.$store.state.api + "addCourseWorks5", params)
  15070. .then((res) => {
  15071. this.$message({
  15072. message: "提交成功",
  15073. type: "success",
  15074. });
  15075. this.myAnList = {};
  15076. this.englishList = {};
  15077. this.englishToolIndex = 0;
  15078. this.engDialogVisible = false;
  15079. this.selectSWorks();
  15080. this.selectStudent();
  15081. })
  15082. .catch((err) => {
  15083. this.$message.error("提交失败");
  15084. console.error(err);
  15085. });
  15086. },
  15087. addCourseWorksGong(i, data, tool) {
  15088. let params = [
  15089. {
  15090. uid: this.userid,
  15091. cid: this.id,
  15092. stage: this.courseType,
  15093. task: this.taskCount,
  15094. tool: i,
  15095. content: data,
  15096. type: 12,
  15097. atool: tool,
  15098. text: "",
  15099. },
  15100. ];
  15101. this.ajax
  15102. .post(this.$store.state.api + "addCourseWorks5", params)
  15103. .then((res) => {
  15104. this.$message({
  15105. message: "提交成功",
  15106. type: "success",
  15107. });
  15108. this.studyJuri[0].cover = [];
  15109. this.selectSWorks();
  15110. this.selectStudent();
  15111. })
  15112. .catch((err) => {
  15113. this.$message.error("提交失败");
  15114. console.error(err);
  15115. });
  15116. },
  15117. addCourseWorksGongTeacher(i, data, tool) {
  15118. let params = [
  15119. {
  15120. uid: this.sStudent.userid,
  15121. cid: this.id,
  15122. stage: this.courseType,
  15123. task: this.taskCount,
  15124. tool: i,
  15125. content: data,
  15126. type: 12,
  15127. atool: tool,
  15128. text: "",
  15129. },
  15130. ];
  15131. this.ajax
  15132. .post(this.$store.state.api + "addCourseWorks5", params)
  15133. .then((res) => {
  15134. this.$message({
  15135. message: "提交成功",
  15136. type: "success",
  15137. });
  15138. this.studyJuri[0].cover = [];
  15139. this.dialogVisibleWorks = false;
  15140. this.selectSWorks();
  15141. this.selectStudent();
  15142. })
  15143. .catch((err) => {
  15144. this.$message.error("提交失败");
  15145. console.error(err);
  15146. });
  15147. },
  15148. addCourseWorksGongPl(i, data, tool, type) {
  15149. let params = [
  15150. {
  15151. uid: this.sStudent.userid,
  15152. cid: this.id,
  15153. stage: this.courseType,
  15154. task: this.taskCount,
  15155. tool: i,
  15156. content: data,
  15157. type: type,
  15158. atool: tool,
  15159. text: "",
  15160. },
  15161. ];
  15162. this.ajax
  15163. .post(this.$store.state.api + "addCourseWorks5", params)
  15164. .then((res) => {
  15165. this.$message({
  15166. message: "提交成功",
  15167. type: "success",
  15168. });
  15169. this.studyJuri[0].cover = [];
  15170. this.dialogVisibleWorks = false;
  15171. this.selectSWorks();
  15172. this.selectStudent();
  15173. })
  15174. .catch((err) => {
  15175. this.$message.error("提交失败");
  15176. console.error(err);
  15177. });
  15178. },
  15179. addCourseWorksTeacher(i) {
  15180. var typesql;
  15181. if (this.sTool == 32) {
  15182. this.addCourseWorksGongTeacher(
  15183. this.toolindex,
  15184. this.studyJuri[0].cover[0].url,
  15185. this.sTool
  15186. );
  15187. return;
  15188. }
  15189. if (this.fileType === 0) {
  15190. typesql = 1;
  15191. } else if (this.fileType === 1) {
  15192. typesql = 4;
  15193. } else if (this.fileType === 2) {
  15194. typesql = 5;
  15195. } else if (this.fileType === 3) {
  15196. typesql = 12;
  15197. }
  15198. if (this.sTool == 50) {
  15199. this.addCourseWorksGongPl(
  15200. this.toolindex,
  15201. this.studyJuri[0].cover[0].url,
  15202. this.sTool,
  15203. typesql
  15204. );
  15205. return;
  15206. }
  15207. if (!this.studyJuri[0].cover[0].url) {
  15208. this.$message.error("请上传文件");
  15209. return;
  15210. }
  15211. let params = [
  15212. {
  15213. uid: this.sStudent.userid,
  15214. cid: this.id,
  15215. stage: this.courseType,
  15216. task: i,
  15217. tool: this.toolindex,
  15218. content: this.studyJuri[0].cover[0].url,
  15219. type: typesql,
  15220. ateacher: this.userid,
  15221. },
  15222. ];
  15223. this.ajax
  15224. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  15225. .then((res) => {
  15226. this.$message({
  15227. message: "提交成功",
  15228. type: "success",
  15229. });
  15230. this.studyJuri[0].cover = [];
  15231. this.dialogVisibleWorks = false;
  15232. this.getCourseDetail(2);
  15233. })
  15234. .catch((err) => {
  15235. this.$message.error("提交失败");
  15236. console.error(err);
  15237. });
  15238. },
  15239. selectUploadStudent(type) {
  15240. const loading = this.$loading.service({
  15241. background: "rgba(255, 255, 255, 0.7)",
  15242. target: document.body,
  15243. });
  15244. let params = {
  15245. cid: this.uploadCid,
  15246. oid: this.oid,
  15247. cn: "",
  15248. };
  15249. this.ajax
  15250. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  15251. .then((res) => {
  15252. loading.close();
  15253. var studentK = [];
  15254. if (this.isWorksS[this.toolindex].length > 0) {
  15255. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  15256. studentK.push(this.isWorksS[this.toolindex][z].uid);
  15257. }
  15258. studentK = studentK.join(",");
  15259. }
  15260. this.uploadStudentJuri = res.data[0].filter((el) => {
  15261. return studentK.indexOf(el.userid) == -1;
  15262. });
  15263. if (this.worksSName && this.worksSid) {
  15264. this.uploadStudentJuri.push({
  15265. userid: this.worksSid,
  15266. name: this.worksSName,
  15267. });
  15268. }
  15269. if (type == 1) {
  15270. this.plworkFile = [];
  15271. this.dialogVisibleSname = true;
  15272. } else if (type == 2) {
  15273. this.dialogVisiblePl = true;
  15274. }
  15275. })
  15276. .catch((err) => {
  15277. loading.close();
  15278. console.error(err);
  15279. });
  15280. },
  15281. selectPickStudent() {
  15282. const loading = this.$loading.service({
  15283. background: "rgba(255, 255, 255, 0.7)",
  15284. target: document.body,
  15285. });
  15286. let params = {
  15287. cid: this.uploadCid,
  15288. oid: this.oid,
  15289. cn: "",
  15290. };
  15291. this.ajax
  15292. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  15293. .then((res) => {
  15294. loading.close();
  15295. this.uploadStudentJuri = res.data[0];
  15296. this.dialogVisiblePickPeople = true;
  15297. })
  15298. .catch((err) => {
  15299. loading.close();
  15300. console.error(err);
  15301. });
  15302. },
  15303. arrayToArray(arrayo, arrayt) {
  15304. let array1 = arrayo;
  15305. let array2 = arrayt;
  15306. let commonElements = [];
  15307. for (let i = 0; i < array1.length; i++) {
  15308. for (let j = 0; j < array2.length; j++) {
  15309. if (array1[i] === array2[j]) {
  15310. commonElements.push(array1[i]);
  15311. }
  15312. }
  15313. }
  15314. return commonElements;
  15315. },
  15316. selectWorksStudent() {
  15317. let params = {
  15318. oid: this.oid,
  15319. cid: this.courseDetail.juri,
  15320. };
  15321. this.ajax
  15322. .get(this.$store.state.api + "selectWorksStudent", params)
  15323. .then((res) => {
  15324. var a = res.data[0];
  15325. for (var i = 0; i < this.isWorksS.length; i++) {
  15326. this.noWorksS[i] = [];
  15327. var studentK = [];
  15328. if (this.isWorksS[i].length > 0) {
  15329. for (var z = 0; z < this.isWorksS[i].length; z++) {
  15330. studentK.push(this.isWorksS[i][z].uid);
  15331. }
  15332. studentK = studentK.join(",");
  15333. for (var j = 0; j < a.length; j++) {
  15334. if (studentK.indexOf(a[j].userid) == -1) {
  15335. if (this.tcid) {
  15336. // a[j].classid.indexOf(this.tcid) != -1
  15337. if (
  15338. this.arrayToArray(
  15339. a[j].classid.split(","),
  15340. this.tcid.split(",")
  15341. ).length
  15342. ) {
  15343. this.noWorksS[i].push({
  15344. student: a[j].name,
  15345. userid: a[j].userid,
  15346. });
  15347. }
  15348. } else {
  15349. this.noWorksS[i].push({
  15350. student: a[j].name,
  15351. userid: a[j].userid,
  15352. });
  15353. }
  15354. }
  15355. }
  15356. } else {
  15357. for (var k = 0; k < a.length; k++) {
  15358. if (this.tcid) {
  15359. if (
  15360. this.arrayToArray(
  15361. a[k].classid.split(","),
  15362. this.tcid.split(",")
  15363. ).length
  15364. ) {
  15365. this.noWorksS[i].push({
  15366. student: a[k].name,
  15367. userid: a[k].userid,
  15368. });
  15369. }
  15370. } else {
  15371. this.noWorksS[i].push({
  15372. student: a[k].name,
  15373. userid: a[k].userid,
  15374. });
  15375. }
  15376. }
  15377. }
  15378. }
  15379. this.$forceUpdate();
  15380. if (
  15381. Object.keys(this.commentDetail).length &&
  15382. Object.keys(this.commentIndexJson).length &&
  15383. !this.dialogVisibleScore && !this.dialogVisibleENScore
  15384. ) {
  15385. let a = 1;
  15386. let c = this.commentIndexJson;
  15387. if (
  15388. this.commentIndexJson.gindex ||
  15389. this.commentIndexJson.gindex === 0
  15390. ) {
  15391. for (
  15392. var i = 0;
  15393. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15394. i++
  15395. ) {
  15396. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  15397. groupA: for (var k = 0; k < _el.length; k++) {
  15398. let el = _el[k];
  15399. if (el.wid == this.commentDetail.wid) {
  15400. a = 2;
  15401. this.commentOther(
  15402. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  15403. this.commentIndexJson.toolIndex,
  15404. k,
  15405. this.commentIndexJson.gindex
  15406. );
  15407. break groupA;
  15408. }
  15409. }
  15410. }
  15411. if (a === 1) {
  15412. this.commentDetail = [];
  15413. this.commentIndexJson = {};
  15414. this.commentDialogVisible = false;
  15415. this.$message("此作业已被删除");
  15416. }
  15417. } else {
  15418. if (this.isGroup && this.commentIndexJson.gid) {
  15419. groupA: for (
  15420. var i = 0;
  15421. i < this.courseGroup.group.length;
  15422. i++
  15423. ) {
  15424. let _group = this.courseGroup.group[i];
  15425. if (_group.id == this.commentIndexJson.gid) {
  15426. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  15427. for (var k = 0; k < _el2.length; k++) {
  15428. let el2 = _el2[k];
  15429. if (el2.wid == this.commentDetail.wid) {
  15430. a = 2;
  15431. this.commentOther(
  15432. _el2[k],
  15433. this.commentIndexJson.toolIndex,
  15434. k,
  15435. null,
  15436. this.commentIndexJson.gid
  15437. );
  15438. break groupA;
  15439. }
  15440. }
  15441. }
  15442. }
  15443. }
  15444. if (a == 1) {
  15445. for (
  15446. var i = 0;
  15447. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  15448. i++
  15449. ) {
  15450. let el =
  15451. this.worksStudent[this.commentIndexJson.toolIndex][i];
  15452. if (el.wid == this.commentDetail.wid) {
  15453. a = 2;
  15454. this.commentOther(
  15455. this.worksStudent[this.commentIndexJson.toolIndex][i],
  15456. this.commentIndexJson.toolIndex,
  15457. i
  15458. );
  15459. break;
  15460. }
  15461. }
  15462. }
  15463. if (a === 1) {
  15464. this.commentDetail = [];
  15465. this.commentIndexJson = {};
  15466. this.commentDialogVisible = false;
  15467. this.$message("此作业已被删除");
  15468. }
  15469. }
  15470. }
  15471. })
  15472. .catch((err) => {
  15473. console.error(err);
  15474. });
  15475. },
  15476. selectStudent() {
  15477. //学生查看自己作业
  15478. let params = {
  15479. uid: this.userid,
  15480. cid: this.id,
  15481. s: this.courseType,
  15482. t: this.taskCount,
  15483. };
  15484. this.ajax
  15485. .get(this.$store.state.api + "selectStudentWorks", params)
  15486. .then((res) => {
  15487. var a =
  15488. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15489. this.taskCount
  15490. ].toolChoose;
  15491. var b = res.data[0];
  15492. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  15493. var y = [
  15494. "AVI",
  15495. "NAVI",
  15496. "MPEG",
  15497. "ASF",
  15498. "MOV",
  15499. "WMV",
  15500. "3GP",
  15501. "RM",
  15502. "RMVB",
  15503. "FLV",
  15504. "F4V",
  15505. "H.264",
  15506. "H.265",
  15507. "REAL VIDEO",
  15508. "MKV",
  15509. "WebM",
  15510. "HDDVD",
  15511. "MP4",
  15512. "MPG",
  15513. "M4V",
  15514. "MGV",
  15515. "OGV",
  15516. "QTM",
  15517. "STR",
  15518. "AMC",
  15519. "DVX",
  15520. "EVO",
  15521. "DAT",
  15522. "OGG",
  15523. "OGM",
  15524. ];
  15525. for (var i = 0; i < a.length; i++) {
  15526. this.workStudent[i] = [];
  15527. for (var j = 0; j < b.length; j++) {
  15528. if (i == b[j].tool) {
  15529. if (
  15530. (b[j].type == 1 ||
  15531. b[j].type == 4 ||
  15532. b[j].type == 5 ||
  15533. b[j].type == 6 ||
  15534. b[j].type == 12 ||
  15535. b[j].type == 7) &&
  15536. a[i].tool[0] != 15 &&
  15537. a[i].tool[0] != 4 &&
  15538. a[i].tool[0] != 45 &&
  15539. a[i].tool[0] != 50 &&
  15540. a[i].tool[0] != 32 &&
  15541. a[i].tool[0] != 57 &&
  15542. a[i].tool[0] != 52 &&
  15543. a[i].tool[0] != 69
  15544. ) {
  15545. if (
  15546. c.indexOf(
  15547. b[j].content
  15548. .split(".")
  15549. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15550. ) != -1 &&
  15551. a[i].tool[0] == 16 &&
  15552. b[j].atool != 50
  15553. ) {
  15554. this.workStudent[i].push({
  15555. works: b[j].content,
  15556. sName: b[j].name,
  15557. score: b[j].score,
  15558. img: b[j].img,
  15559. type: 1,
  15560. time: b[j].time,
  15561. userid: b[j].userid,
  15562. wid: b[j].id,
  15563. });
  15564. } else if (
  15565. y.indexOf(
  15566. b[j].content
  15567. .split(".")
  15568. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  15569. ) != -1 &&
  15570. a[i].tool[0] == 16 &&
  15571. b[j].atool != 50
  15572. ) {
  15573. this.workStudent[i].push({
  15574. userid: b[j].userid,
  15575. wid: b[j].id,
  15576. works: b[j].content,
  15577. sName: b[j].name,
  15578. score: b[j].score,
  15579. img: b[j].img,
  15580. type: 3,
  15581. time: b[j].time,
  15582. });
  15583. } else if (b[j].type == 6 && b[j].atool != 50) {
  15584. this.workStudent[i].push({
  15585. userid: b[j].userid,
  15586. wid: b[j].id,
  15587. works: b[j].content,
  15588. sName: b[j].name,
  15589. score: b[j].score,
  15590. img: b[j].img,
  15591. type: 4,
  15592. time: b[j].time,
  15593. });
  15594. } else if (b[j].type == 7 && b[j].atool != 50) {
  15595. this.workStudent[i].push({
  15596. userid: b[j].userid,
  15597. wid: b[j].id,
  15598. works: b[j].content,
  15599. sName: b[j].name,
  15600. score: b[j].score,
  15601. img: b[j].img,
  15602. type: 5,
  15603. time: b[j].time,
  15604. });
  15605. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  15606. this.workStudent[i].push({
  15607. works: b[j].content,
  15608. sName: b[j].name,
  15609. score: b[j].score,
  15610. img: b[j].img,
  15611. type: 12,
  15612. time: b[j].time,
  15613. userid: b[j].userid,
  15614. wid: b[j].id,
  15615. });
  15616. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  15617. this.workStudent[i].push({
  15618. works: b[j].content,
  15619. sName: b[j].name,
  15620. score: b[j].score,
  15621. img: b[j].img,
  15622. type: 0,
  15623. time: b[j].time,
  15624. userid: b[j].userid,
  15625. wid: b[j].id,
  15626. });
  15627. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  15628. this.workStudent[i].push({
  15629. works: b[j].content,
  15630. sName: b[j].name,
  15631. score: b[j].score,
  15632. img: b[j].img,
  15633. type: 0,
  15634. time: b[j].time,
  15635. userid: b[j].userid,
  15636. wid: b[j].id,
  15637. });
  15638. }
  15639. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  15640. this.workStudent[i].push({
  15641. works: b[j].content,
  15642. sName: b[j].name,
  15643. score: b[j].score,
  15644. img: b[j].img,
  15645. type: 2,
  15646. time: b[j].time,
  15647. userid: b[j].userid,
  15648. wid: b[j].id,
  15649. });
  15650. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  15651. //问卷
  15652. this.workStudent[i].push({
  15653. works: b[j].content,
  15654. sName: b[j].name,
  15655. score: b[j].score,
  15656. img: b[j].img,
  15657. type: 2,
  15658. time: b[j].time,
  15659. userid: b[j].userid,
  15660. wid: b[j].id,
  15661. });
  15662. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  15663. //选择题
  15664. this.workStudent[i].push({
  15665. works: b[j].content,
  15666. sName: b[j].name,
  15667. score: b[j].score,
  15668. img: b[j].img,
  15669. type: 8,
  15670. time: b[j].time,
  15671. userid: b[j].userid,
  15672. wid: b[j].id,
  15673. });
  15674. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  15675. //选择题
  15676. this.workStudent[i].push({
  15677. works: b[j].content,
  15678. sName: b[j].name,
  15679. score: b[j].score,
  15680. img: b[j].img,
  15681. type: 9,
  15682. time: b[j].time,
  15683. userid: b[j].userid,
  15684. wid: b[j].id,
  15685. });
  15686. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  15687. //选择题
  15688. this.workStudent[i].push({
  15689. works: b[j].content,
  15690. sName: b[j].name,
  15691. score: b[j].score,
  15692. img: b[j].img,
  15693. type: 10,
  15694. time: b[j].time,
  15695. userid: b[j].userid,
  15696. wid: b[j].id,
  15697. });
  15698. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  15699. //选择题
  15700. this.workStudent[i].push({
  15701. works: b[j].content,
  15702. sName: b[j].name,
  15703. score: b[j].score,
  15704. img: b[j].img,
  15705. type: 13,
  15706. time: b[j].time,
  15707. userid: b[j].userid,
  15708. wid: b[j].id,
  15709. });
  15710. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  15711. //选择题
  15712. this.workStudent[i].push({
  15713. works: b[j].content,
  15714. sName: b[j].name,
  15715. score: b[j].score,
  15716. img: b[j].img,
  15717. type: 12,
  15718. time: b[j].time,
  15719. userid: b[j].userid,
  15720. wid: b[j].id,
  15721. });
  15722. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  15723. //选择题
  15724. this.workStudent[i].push({
  15725. works: b[j].content,
  15726. sName: b[j].name,
  15727. score: b[j].score,
  15728. img: b[j].img,
  15729. type: 12,
  15730. time: b[j].time,
  15731. userid: b[j].userid,
  15732. wid: b[j].id,
  15733. });
  15734. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  15735. //选择题
  15736. this.workStudent[i].push({
  15737. works: b[j].content,
  15738. sName: b[j].name,
  15739. score: b[j].score,
  15740. img: b[j].img,
  15741. type: 15,
  15742. time: b[j].time,
  15743. userid: b[j].userid,
  15744. wid: b[j].id,
  15745. });
  15746. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  15747. //英语写作
  15748. this.workStudent[i].push({
  15749. works: b[j].content,
  15750. sName: b[j].name,
  15751. score: b[j].score,
  15752. img: b[j].img,
  15753. type: 16,
  15754. time: b[j].time,
  15755. userid: b[j].userid,
  15756. wid: b[j].id,
  15757. aiCode: b[j].aiCode,
  15758. teacherCode: b[j].teacherCode
  15759. });
  15760. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  15761. //英语写作
  15762. this.workStudent[i].push({
  15763. works: b[j].content,
  15764. sName: b[j].name,
  15765. score: b[j].score,
  15766. img: b[j].img,
  15767. type: 17,
  15768. time: b[j].time,
  15769. userid: b[j].userid,
  15770. wid: b[j].id,
  15771. });
  15772. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  15773. //英语口语
  15774. this.workStudent[i].push({
  15775. works: b[j].content,
  15776. sName: b[j].name,
  15777. score: b[j].score,
  15778. img: b[j].img,
  15779. type: 14,
  15780. time: b[j].time,
  15781. userid: b[j].userid,
  15782. wid: b[j].id,
  15783. });
  15784. }
  15785. }
  15786. }
  15787. }
  15788. })
  15789. .catch((err) => {
  15790. console.error(err);
  15791. });
  15792. },
  15793. openVideo(w) {
  15794. this.videoDetail = {};
  15795. this.playerOptions1.sources[0].src = w.works;
  15796. this.videoDetail = this.playerOptions1;
  15797. this.videoVisible = true;
  15798. },
  15799. isLikes(wid, uid, t, c, isLikes,sName) {
  15800. if (isLikes == false) {
  15801. let params = [
  15802. {
  15803. wid: wid,
  15804. lid: uid,
  15805. t: t,
  15806. c: c,
  15807. },
  15808. ];
  15809. this.ajax
  15810. .post(this.$store.state.api + "insertComment", params)
  15811. .then((res) => {
  15812. this.$message({
  15813. message: "点赞成功",
  15814. type: "success",
  15815. });
  15816. this.selectSWorks();
  15817. this.selectStudent();
  15818. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  15819. })
  15820. .catch((err) => {
  15821. this.$message.error("点赞失败");
  15822. console.error(err);
  15823. });
  15824. } else {
  15825. let params = {
  15826. wid: wid,
  15827. lid: uid,
  15828. type: t,
  15829. };
  15830. this.ajax
  15831. .get(this.$store.state.api + "deleteComment", params)
  15832. .then((res) => {
  15833. this.$message({
  15834. message: "取消点赞成功",
  15835. type: "success",
  15836. });
  15837. this.selectSWorks();
  15838. this.selectStudent();
  15839. })
  15840. .catch((err) => {
  15841. console.error(err);
  15842. });
  15843. }
  15844. },
  15845. deleteComment(wid) {
  15846. this.$confirm("确定删除此评论吗?", "提示", {
  15847. confirmButtonText: "确定",
  15848. cancelButtonText: "取消",
  15849. type: "warning",
  15850. })
  15851. .then(() => {
  15852. let params = {
  15853. id: wid,
  15854. };
  15855. this.ajax
  15856. .get(this.$store.state.api + "deleteComment2", params)
  15857. .then((res) => {
  15858. this.$message({
  15859. message: "删除评论成功",
  15860. type: "success",
  15861. });
  15862. this.selectSWorks();
  15863. this.selectStudent();
  15864. })
  15865. .catch((err) => {
  15866. console.error(err);
  15867. });
  15868. })
  15869. .catch(() => {});
  15870. },
  15871. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  15872. this.commentIndexJson = {
  15873. toolIndex: toolIndex,
  15874. wIndex: wIndex,
  15875. gindex: gindex,
  15876. gid: gid,
  15877. };
  15878. this.commentDetail = [];
  15879. this.commentDialogVisible = true;
  15880. this.commentDetail = w;
  15881. if (w.works && w.type == 1) {
  15882. // this.pptImgUrl = "";
  15883. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15884. if (
  15885. a.indexOf(
  15886. w.works
  15887. .split(".")
  15888. [w.works.split(".").length - 1].toLocaleUpperCase()
  15889. ) != -1
  15890. ) {
  15891. let _uuurl = await this.checkLink(w.works);
  15892. this.pptImgUrl =
  15893. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15894. this.showPDF = false;
  15895. } else if (
  15896. w.works
  15897. .split(".")
  15898. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15899. ) {
  15900. this.pptImgUrl = w.works;
  15901. this.showPDF = true;
  15902. }
  15903. } else if (w.works && w.type == 3) {
  15904. this.videoDetail = {};
  15905. this.playerOptions1.sources[0].src = w.works;
  15906. this.videoDetail = this.playerOptions1;
  15907. // this.videoVisible = true;
  15908. } else if (w.works && w.type == 4) {
  15909. this.eScore = JSON.parse(w.works);
  15910. this.rateJson =
  15911. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15912. this.taskCount
  15913. ].toolChoose[toolIndex].rateJson;
  15914. } else if (w.works && w.type == 10) {
  15915. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  15916. } else if (w.works && w.type == 13) {
  15917. this.wordJson =
  15918. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  15919. this.taskCount
  15920. ].toolChoose[toolIndex].wordJson;
  15921. }
  15922. },
  15923. async openScore(w, index) {
  15924. this.wScore = 0;
  15925. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  15926. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  15927. this.commentDetail = [];
  15928. if(w.type == 17){
  15929. this.dialogVisibleENScore = true;
  15930. }else{
  15931. this.dialogVisibleScore = true;
  15932. }
  15933. this.commentDetail = w;
  15934. if (w.works && w.type == 1) {
  15935. this.pptImgUrl = "";
  15936. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  15937. if (
  15938. a.indexOf(
  15939. w.works
  15940. .split(".")
  15941. [w.works.split(".").length - 1].toLocaleUpperCase()
  15942. ) != -1
  15943. ) {
  15944. let _uuurl = await this.checkLink(w.works);
  15945. this.pptImgUrl =
  15946. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  15947. this.showPDF = false;
  15948. } else if (
  15949. w.works
  15950. .split(".")
  15951. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  15952. ) {
  15953. this.pptImgUrl = w.works;
  15954. this.showPDF = true;
  15955. }
  15956. } else if (w.works && w.type == 3) {
  15957. this.videoDetail = {};
  15958. this.playerOptions1.sources[0].src = w.works;
  15959. this.videoDetail = this.playerOptions1;
  15960. }else if(w.type == 17){
  15961. let englishVoiceJson = {}
  15962. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  15963. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  15964. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  15965. .toolChoose[index].englishVoiceJson
  15966. : {};
  15967. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  15968. }
  15969. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  15970. },
  15971. addComment(wid, uid, t,detail) {
  15972. if (this.commentText == "") {
  15973. this.$message.error("请输入评论");
  15974. return;
  15975. }
  15976. let params2 = [
  15977. {
  15978. wid: wid,
  15979. lid: uid,
  15980. t: t,
  15981. },
  15982. ];
  15983. this.ajax
  15984. .post(this.$store.state.api + "getComment", params2)
  15985. .then((res) => {
  15986. if (res.data[0].length > 0) {
  15987. this.$message.error("一个作业只能评论一条");
  15988. } else {
  15989. let params = [
  15990. {
  15991. wid: wid,
  15992. lid: uid,
  15993. t: t,
  15994. c: this.commentText,
  15995. },
  15996. ];
  15997. this.ajax
  15998. .post(this.$store.state.api + "insertComment", params)
  15999. .then((res) => {
  16000. this.$message({
  16001. message: "评论成功",
  16002. type: "success",
  16003. });
  16004. this.commentText = "";
  16005. this.selectSWorks();
  16006. this.selectStudent();
  16007. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  16008. })
  16009. .catch((err) => {
  16010. this.$message.error("评论失败");
  16011. console.error(err);
  16012. });
  16013. }
  16014. })
  16015. .catch((err) => {
  16016. // this.$message.error("评论失败");
  16017. console.error(err);
  16018. });
  16019. },
  16020. scoreWork(wid,sName) {
  16021. if (this.wScore == 0) {
  16022. this.$message.error("请评分");
  16023. return;
  16024. }
  16025. let params = [
  16026. {
  16027. wid: wid,
  16028. score: JSON.stringify({
  16029. wScore: this.wScore,
  16030. detail: this.scoreDetail,
  16031. }),
  16032. },
  16033. ];
  16034. this.ajax
  16035. .post(this.$store.state.api + "scoreWork", params)
  16036. .then((res) => {
  16037. this.$message({
  16038. message: "评分成功",
  16039. type: "success",
  16040. });
  16041. this.wScore = 0;
  16042. this.scoreDetail = "";
  16043. this.dialogVisibleScore = false;
  16044. this.selectSWorks();
  16045. this.selectStudent();
  16046. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  16047. })
  16048. .catch((err) => {
  16049. this.$message.error("评分失败");
  16050. console.error(err);
  16051. });
  16052. },
  16053. openXz(w, i) {
  16054. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  16055. .taskJson[this.taskCount].toolChoose[i].selectJson
  16056. ? JSON.parse(
  16057. JSON.stringify(
  16058. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16059. this.taskCount
  16060. ].toolChoose[i].selectJson
  16061. )
  16062. )
  16063. : { url: "", select: [], answer: [] };
  16064. var a = w.works.split(",");
  16065. for (var k = 0; k < a.length; k++) {
  16066. a[k] = parseInt(a[k]);
  16067. }
  16068. this.selectAnswer = { answer: a, stu: w.sName };
  16069. this.isSelect = true;
  16070. this.dialogVisibleSelect = true;
  16071. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16072. },
  16073. openSen(w, i) {
  16074. this.sentenceList1 = JSON.parse(w.works);
  16075. this.sentenceList1.stuName = w.sName;
  16076. this.dialogVisibleSentence1 = true;
  16077. },
  16078. openPj(w, toolindex) {
  16079. this.isStar = true;
  16080. this.eScore = JSON.parse(w);
  16081. this.rateJson =
  16082. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16083. this.taskCount
  16084. ].toolChoose[toolindex].rateJson;
  16085. this.studentEvalDialogVisible = true;
  16086. },
  16087. openEnglishEva(id,i){
  16088. let params = {
  16089. wid: id
  16090. };
  16091. this.ajax
  16092. .get(this.$store.state.api + "selectEngWork", params)
  16093. .then((res) => {
  16094. this.evaEngJson.message = res.data[0][0];
  16095. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  16096. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  16097. .toolChoose[i].englishList;
  16098. this.engEvaDialogVisible = true;
  16099. })
  16100. .catch((err) => {
  16101. console.error(err);
  16102. });
  16103. },
  16104. deleteWorks(id) {
  16105. this.$confirm("确定删除此作业吗?", "提示", {
  16106. confirmButtonText: "确定",
  16107. cancelButtonText: "取消",
  16108. type: "warning",
  16109. })
  16110. .then(() => {
  16111. let params = [
  16112. {
  16113. id: id
  16114. },
  16115. ];
  16116. this.ajax
  16117. .post(this.$store.state.api + "deleteCourseWork", params)
  16118. .then((res) => {
  16119. this.$message({
  16120. message: "删除成功",
  16121. type: "success",
  16122. });
  16123. this.selectStudent();
  16124. this.selectSWorks();
  16125. this.selectSLook();
  16126. })
  16127. .catch((err) => {
  16128. this.$message.error("网络异常");
  16129. console.error(err);
  16130. });
  16131. })
  16132. .catch(() => {});
  16133. },
  16134. // deleteWorksTwo(w,stage,task) {
  16135. // // let mk = `markSco${toolIndex}${wIndex}`
  16136. // // console.log(this.$refs[mk][0].homeworkVal)
  16137. // // let wid = this.$refs[mk][0].homeworkVal.id
  16138. // // console.log('wid',wid);
  16139. // this.$confirm("确定删除此作业吗?", "提示", {
  16140. // confirmButtonText: "确定",
  16141. // cancelButtonText: "取消",
  16142. // type: "warning",
  16143. // })
  16144. // .then(() => {
  16145. // let params = [
  16146. // {
  16147. // id: w.wid,
  16148. // cid: this.id,
  16149. // uid:w.userid,
  16150. // s:stage,
  16151. // t:task
  16152. // },
  16153. // ];
  16154. // // return console.log(params)
  16155. // this.ajax
  16156. // .post(this.$store.state.api + "deleteCourseWorkTwo2", params)
  16157. // .then((res) => {
  16158. // this.$message({
  16159. // message: "删除成功",
  16160. // type: "success",
  16161. // });
  16162. // this.selectStudent();
  16163. // this.selectSWorks();
  16164. // this.selectSLook();
  16165. // })
  16166. // .catch((err) => {
  16167. // this.$message.error("网络异常");
  16168. // console.error(err);
  16169. // });
  16170. // })
  16171. // .catch(() => {});
  16172. // },
  16173. noIsAi(){
  16174. this.$message.info('您暂未设置AI评分,请修改该工具的评价设置后使用。')
  16175. },
  16176. getLang(){
  16177. let lang = ''
  16178. if(this.languageSetting == 0){
  16179. lang = 'Chinese.'
  16180. }else if(this.languageSetting == 1){
  16181. lang = 'Traditional Chinese.'
  16182. }else if(this.languageSetting == 2){
  16183. lang = 'English.'
  16184. }
  16185. return lang
  16186. },
  16187. selectSWorks(gindex) {
  16188. //教师查看全部作业
  16189. let params = {
  16190. cid: this.id,
  16191. s: this.courseType,
  16192. t: this.taskCount,
  16193. };
  16194. this.ajax
  16195. .get(this.$store.state.api + "selectSWorks", params)
  16196. .then((res) => {
  16197. var a =
  16198. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16199. this.taskCount
  16200. ].toolChoose;
  16201. var b = res.data[0];
  16202. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  16203. var y = [
  16204. "AVI",
  16205. "NAVI",
  16206. "MPEG",
  16207. "ASF",
  16208. "MOV",
  16209. "WMV",
  16210. "3GP",
  16211. "RM",
  16212. "RMVB",
  16213. "FLV",
  16214. "F4V",
  16215. "H.264",
  16216. "H.265",
  16217. "REAL VIDEO",
  16218. "MKV",
  16219. "WebM",
  16220. "HDDVD",
  16221. "MP4",
  16222. "MPG",
  16223. "M4V",
  16224. "MGV",
  16225. "OGV",
  16226. "QTM",
  16227. "STR",
  16228. "AMC",
  16229. "DVX",
  16230. "EVO",
  16231. "DAT",
  16232. "OGG",
  16233. "OGM",
  16234. ];
  16235. var d = res.data[1];
  16236. var e = res.data[2];
  16237. var f = res.data[3];
  16238. let _worksStudent = [];
  16239. var _worksStudent2 = [];
  16240. for (var i = 0; i < a.length; i++) {
  16241. _worksStudent[i] = [];
  16242. _worksStudent2[i] = [];
  16243. if (
  16244. !this.isCloseList[i] ||
  16245. this.isCloseList[i].isClose == undefined
  16246. ) {
  16247. this.isCloseList[i] = { isClose: 0 };
  16248. }
  16249. this.groupStudent[i] = [];
  16250. this.groupStudentUid[i] = [];
  16251. if (this.isGroup) {
  16252. for (
  16253. var groupI = 0;
  16254. groupI < this.courseGroup.group.length;
  16255. groupI++
  16256. ) {
  16257. this.courseGroup.group[groupI].works[i] = [];
  16258. }
  16259. }
  16260. this.isWorksS[i] = [];
  16261. this.checkJson[i] = [];
  16262. if (a[i].tool[0] == 49) {
  16263. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  16264. this.groupStudent[i][gA] = [];
  16265. this.groupStudentUid[i][gA] = [];
  16266. _worksStudent[i][gA] = [];
  16267. _worksStudent2[i][gA] = [];
  16268. this.isCloseList[i][gA] = [];
  16269. for (var g = 0; g < f.length; g++) {
  16270. if (
  16271. f[g].ttype == 2 &&
  16272. this.tcid &&
  16273. this.arrayToArray(
  16274. (f[g].classid ? f[g].classid.split(",") : []),
  16275. this.tcid.split(",")
  16276. ).length == 0
  16277. ) {
  16278. continue;
  16279. }
  16280. if (gA == f[g].group && f[g].tool == i && (this.arrayToArray(
  16281. (f[g].classid ? f[g].classid.split(",") : []),
  16282. this.tcid.split(",")
  16283. ).length !== 0 || this.arrayToArray(
  16284. (f[g].classid ? f[g].classid.split(",") : []),
  16285. this.classId ? this.classId.split(",") : []
  16286. ).length !== 0 || (!this.tcid && this.tType == '1') || (this.courseDetail.juri === '') || f[g].ttype == 1)) {
  16287. this.groupStudent[i][gA].push(f[g]);
  16288. this.groupStudentUid[i][gA].push(f[g].userid);
  16289. }
  16290. }
  16291. }
  16292. this.$forceUpdate();
  16293. }
  16294. for (var j = 0; j < b.length; j++) {
  16295. if (
  16296. b[j].ttype == 2 &&
  16297. this.tcid &&
  16298. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  16299. .length == 0
  16300. ) {
  16301. continue;
  16302. }
  16303. var likesCount = 0;
  16304. var commentCount = 0;
  16305. var isLikes = false;
  16306. var commentJson = [];
  16307. var likeJson = [];
  16308. var data = b[j];
  16309. if (i == b[j].tool) {
  16310. if (data.type == 2 && a[i].tool[0] == 4) {
  16311. // if(JSON.parse(data.content)[0].anwer){
  16312. var checkL =
  16313. JSON.parse(data.content)[0].anwer instanceof Array
  16314. ? JSON.parse(data.content)[0].anwer
  16315. : JSON.parse(data.content)[0].anwer.split(",");
  16316. for (var z = 0; z < checkL.length; z++) {
  16317. if (!this.checkJson[i][z]) {
  16318. this.checkJson[i].push({
  16319. checkCount: [],
  16320. checkPerson: [],
  16321. rightPerson: [],
  16322. });
  16323. }
  16324. if (!this.checkJson[i][z].checkCount.length) {
  16325. this.checkJson[i][z].checkCount = [];
  16326. let _askItemCount = JSON.parse(data.content)[0].askJson
  16327. .askJson[z].askItem;
  16328. for (var aic = 0; aic < _askItemCount; aic++) {
  16329. this.checkJson[i][z].checkCount.push(0);
  16330. }
  16331. }
  16332. if (checkL[z] instanceof Array) {
  16333. if (
  16334. JSON.parse(data.content)[0].anwer.sort().join(",") ==
  16335. checkL[z].sort().join(",")
  16336. ) {
  16337. this.checkJson[i][z].rightPerson.push(data.name);
  16338. }
  16339. for (var q = 0; q < checkL[z].length; q++) {
  16340. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16341. ? this.checkJson[i][z].checkPerson[
  16342. parseInt(checkL[z][q])
  16343. ].push(data.name)
  16344. : (this.checkJson[i][z].checkPerson[
  16345. parseInt(checkL[z][q])
  16346. ] = [data.name]);
  16347. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16348. ? this.checkJson[i][z].checkCount[
  16349. parseInt(checkL[z][q])
  16350. ]++
  16351. : (this.checkJson[i][z].checkCount[
  16352. parseInt(checkL[z][q])
  16353. ] = 1);
  16354. }
  16355. } else {
  16356. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  16357. this.checkJson[i][z].rightPerson.push(data.name);
  16358. }
  16359. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16360. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16361. ? this.checkJson[i][z].checkPerson[
  16362. parseInt(checkL[z])
  16363. ].push(data.name)
  16364. : (this.checkJson[i][z].checkPerson[
  16365. parseInt(checkL[z])
  16366. ] = [data.name]);
  16367. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16368. ? this.checkJson[i][z].checkCount[
  16369. parseInt(checkL[z])
  16370. ]++
  16371. : (this.checkJson[i][z].checkCount[
  16372. parseInt(checkL[z])
  16373. ] = 1);
  16374. }
  16375. }
  16376. }
  16377. } else if (data.type == 8 && a[i].tool[0] == 45) {
  16378. var checkL = JSON.parse(data.content)[0].anwer;
  16379. for (var z = 0; z < checkL.length; z++) {
  16380. if (!this.checkJson[i][z]) {
  16381. this.checkJson[i].push({
  16382. checkCount: [],
  16383. checkPerson: [],
  16384. rightPerson: [],
  16385. });
  16386. }
  16387. if (!this.checkJson[i][z].checkCount.length) {
  16388. this.checkJson[i][z].checkCount = [];
  16389. let _askItemCount = JSON.parse(data.content)[0].testJson
  16390. .testJson[z].testItem;
  16391. for (var aic = 0; aic < _askItemCount; aic++) {
  16392. this.checkJson[i][z].checkCount.push(0);
  16393. }
  16394. }
  16395. if (checkL[z] instanceof Array) {
  16396. if (
  16397. JSON.parse(data.content)[0]
  16398. .testJson.testJson[z].answer.sort()
  16399. .join(",") == checkL[z].sort().join(",")
  16400. ) {
  16401. this.checkJson[i][z].rightPerson.push(data.name);
  16402. }
  16403. for (var q = 0; q < checkL[z].length; q++) {
  16404. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  16405. ? this.checkJson[i][z].checkPerson[
  16406. parseInt(checkL[z][q])
  16407. ].push(data.name)
  16408. : (this.checkJson[i][z].checkPerson[
  16409. parseInt(checkL[z][q])
  16410. ] = [data.name]);
  16411. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  16412. ? this.checkJson[i][z].checkCount[
  16413. parseInt(checkL[z][q])
  16414. ]++
  16415. : (this.checkJson[i][z].checkCount[
  16416. parseInt(checkL[z][q])
  16417. ] = 1);
  16418. }
  16419. } else {
  16420. if (
  16421. JSON.parse(data.content)[0].testJson.testJson[z]
  16422. .answer == checkL[z]
  16423. ) {
  16424. this.checkJson[i][z].rightPerson.push(data.name);
  16425. }
  16426. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  16427. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  16428. ? this.checkJson[i][z].checkPerson[
  16429. parseInt(checkL[z])
  16430. ].push(data.name)
  16431. : (this.checkJson[i][z].checkPerson[
  16432. parseInt(checkL[z])
  16433. ] = [data.name]);
  16434. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  16435. ? this.checkJson[i][z].checkCount[
  16436. parseInt(checkL[z])
  16437. ]++
  16438. : (this.checkJson[i][z].checkCount[
  16439. parseInt(checkL[z])
  16440. ] = 1);
  16441. }
  16442. }
  16443. }
  16444. } else if (data.type == 9 && a[i].tool[0] == 47) {
  16445. var checkL = JSON.parse(data.content);
  16446. for (var z = 0; z < checkL.length; z++) {
  16447. if (!this.checkJson[i][z]) {
  16448. this.checkJson[i].push({
  16449. checkCount: [],
  16450. checkPerson: [],
  16451. rightPerson: [],
  16452. });
  16453. }
  16454. this.checkJson[i][z].checkPerson.push(data.name);
  16455. if (
  16456. checkL[z].chooseSenList.toString() ==
  16457. checkL[z].rightAnswer.toString()
  16458. ) {
  16459. this.checkJson[i][z].rightPerson.push(data.name);
  16460. }
  16461. }
  16462. }
  16463. for (var k = 0; k < d.length; k++) {
  16464. //点赞
  16465. if (d[k].workId == b[j].id) {
  16466. likesCount++;
  16467. likeJson.push(d[k])
  16468. if (d[k].likesId == this.userid) {
  16469. isLikes = true;
  16470. }
  16471. }
  16472. }
  16473. for (var l = 0; l < e.length; l++) {
  16474. //评论
  16475. if (e[l].workId == b[j].id) {
  16476. if (e[l].comment != "") {
  16477. commentCount++;
  16478. commentJson.push({
  16479. commentText: e[l].comment,
  16480. commentTime: e[l].commentTime,
  16481. commentPeople: e[l].commentPeople,
  16482. userid: e[l].userid,
  16483. wid: e[l].id,
  16484. });
  16485. }
  16486. }
  16487. }
  16488. if (
  16489. (b[j].type == 1 ||
  16490. b[j].type == 4 ||
  16491. b[j].type == 5 ||
  16492. b[j].type == 6 ||
  16493. b[j].type == 12 ||
  16494. b[j].type == 7) &&
  16495. a[i].tool[0] != 15 &&
  16496. a[i].tool[0] != 4 &&
  16497. a[i].tool[0] != 45 &&
  16498. a[i].tool[0] != 50 &&
  16499. a[i].tool[0] != 32 &&
  16500. a[i].tool[0] != 57 &&
  16501. a[i].tool[0] != 52
  16502. ) {
  16503. if (
  16504. c.indexOf(
  16505. b[j].content
  16506. .split(".")
  16507. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16508. ) != -1 &&
  16509. a[i].tool[0] == 16 &&
  16510. b[j].atool != 50
  16511. ) {
  16512. let _works = {
  16513. userid: b[j].userid,
  16514. ateacher: b[j].ateacher,
  16515. wid: b[j].id,
  16516. works: b[j].content,
  16517. sName: b[j].name,
  16518. type: 1,
  16519. ttype:b[j].ttype,
  16520. time: b[j].time,
  16521. score: b[j].score,
  16522. img: b[j].img,
  16523. likesCount: likesCount,
  16524. commentCount: commentCount,
  16525. isLikes: isLikes,
  16526. commentJson: commentJson,
  16527. likeJson:likeJson
  16528. };
  16529. if (this.isGroup) {
  16530. let isGw = 1;
  16531. for (
  16532. var groupI = 0;
  16533. groupI < this.courseGroup.group.length;
  16534. groupI++
  16535. ) {
  16536. let gid = this.courseGroup.group[groupI].id;
  16537. if (
  16538. this.courseGroupStudentUid[gid].indexOf(
  16539. b[j].userid
  16540. ) != -1
  16541. ) {
  16542. isGw = 2;
  16543. this.courseGroup.group[groupI].works[i].push(_works);
  16544. break;
  16545. }
  16546. }
  16547. if (isGw == 1) {
  16548. _worksStudent[i].push(_works);
  16549. }
  16550. } else {
  16551. _worksStudent[i].push(_works);
  16552. }
  16553. _worksStudent2[i].push(_works);
  16554. this.isWorksS[i].push({
  16555. uid: b[j].userid,
  16556. sName: b[j].name,
  16557. });
  16558. } else if (
  16559. y.indexOf(
  16560. b[j].content
  16561. .split(".")
  16562. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  16563. ) != -1 &&
  16564. a[i].tool[0] == 16 &&
  16565. b[j].atool != 50
  16566. ) {
  16567. let _works = {
  16568. userid: b[j].userid,
  16569. ateacher: b[j].ateacher,
  16570. wid: b[j].id,
  16571. works: b[j].content,
  16572. sName: b[j].name,
  16573. type: 3,
  16574. ttype:b[j].ttype,
  16575. time: b[j].time,
  16576. score: b[j].score,
  16577. img: b[j].img,
  16578. likesCount: likesCount,
  16579. commentCount: commentCount,
  16580. isLikes: isLikes,
  16581. commentJson: commentJson,
  16582. likeJson:likeJson
  16583. };
  16584. if (this.isGroup) {
  16585. let isGw = 1;
  16586. for (
  16587. var groupI = 0;
  16588. groupI < this.courseGroup.group.length;
  16589. groupI++
  16590. ) {
  16591. let gid = this.courseGroup.group[groupI].id;
  16592. if (
  16593. this.courseGroupStudentUid[gid].indexOf(
  16594. b[j].userid
  16595. ) != -1
  16596. ) {
  16597. isGw = 2;
  16598. this.courseGroup.group[groupI].works[i].push(_works);
  16599. break;
  16600. }
  16601. }
  16602. if (isGw == 1) {
  16603. _worksStudent[i].push(_works);
  16604. }
  16605. } else {
  16606. _worksStudent[i].push(_works);
  16607. }
  16608. _worksStudent2[i].push(_works);
  16609. this.isWorksS[i].push({
  16610. uid: b[j].userid,
  16611. sName: b[j].name,
  16612. });
  16613. } else if (b[j].type == 6 && b[j].atool != 50) {
  16614. let _works = {
  16615. userid: b[j].userid,
  16616. ateacher: b[j].ateacher,
  16617. wid: b[j].id,
  16618. works: b[j].content,
  16619. sName: b[j].name,
  16620. type: 4,
  16621. ttype:b[j].ttype,
  16622. time: b[j].time,
  16623. score: b[j].score,
  16624. img: b[j].img,
  16625. likesCount: likesCount,
  16626. commentCount: commentCount,
  16627. isLikes: isLikes,
  16628. commentJson: commentJson,
  16629. likeJson:likeJson
  16630. };
  16631. _worksStudent[i].push(_works);
  16632. _worksStudent2[i].push(_works);
  16633. this.isWorksS[i].push({
  16634. uid: b[j].userid,
  16635. sName: b[j].name,
  16636. });
  16637. } else if (b[j].type == 7 && b[j].atool != 50) {
  16638. let _work = {
  16639. userid: b[j].userid,
  16640. ateacher: b[j].ateacher,
  16641. wid: b[j].id,
  16642. works: b[j].content,
  16643. sName: b[j].name,
  16644. type: 5,
  16645. ttype:b[j].ttype,
  16646. time: b[j].time,
  16647. score: b[j].score,
  16648. img: b[j].img,
  16649. likesCount: likesCount,
  16650. commentCount: commentCount,
  16651. isLikes: isLikes,
  16652. commentJson: commentJson,
  16653. likeJson:likeJson
  16654. };
  16655. _worksStudent[i].push(_work);
  16656. _worksStudent2[i].push(_work);
  16657. this.isWorksS[i].push({
  16658. uid: b[j].userid,
  16659. sName: b[j].name,
  16660. });
  16661. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  16662. let _works = {
  16663. userid: b[j].userid,
  16664. ateacher: b[j].ateacher,
  16665. wid: b[j].id,
  16666. works: b[j].content,
  16667. sName: b[j].name,
  16668. type: 12,
  16669. ttype:b[j].ttype,
  16670. time: b[j].time,
  16671. score: b[j].score,
  16672. img: b[j].img,
  16673. likesCount: likesCount,
  16674. commentCount: commentCount,
  16675. isLikes: isLikes,
  16676. commentJson: commentJson,
  16677. likeJson:likeJson
  16678. };
  16679. if (this.isGroup) {
  16680. let isGw = 1;
  16681. for (
  16682. var groupI = 0;
  16683. groupI < this.courseGroup.group.length;
  16684. groupI++
  16685. ) {
  16686. let gid = this.courseGroup.group[groupI].id;
  16687. if (
  16688. this.courseGroupStudentUid[gid].indexOf(
  16689. b[j].userid
  16690. ) != -1
  16691. ) {
  16692. isGw = 2;
  16693. this.courseGroup.group[groupI].works[i].push(_works);
  16694. break;
  16695. }
  16696. }
  16697. if (isGw == 1) {
  16698. _worksStudent[i].push(_works);
  16699. }
  16700. } else {
  16701. _worksStudent[i].push(_works);
  16702. }
  16703. _worksStudent2[i].push(_works);
  16704. this.isWorksS[i].push({
  16705. uid: b[j].userid,
  16706. sName: b[j].name,
  16707. });
  16708. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  16709. let _works = {
  16710. userid: b[j].userid,
  16711. ateacher: b[j].ateacher,
  16712. wid: b[j].id,
  16713. works: b[j].content,
  16714. sName: b[j].name,
  16715. type: 0,
  16716. ttype:b[j].ttype,
  16717. time: b[j].time,
  16718. score: b[j].score,
  16719. img: b[j].img,
  16720. likesCount: likesCount,
  16721. commentCount: commentCount,
  16722. isLikes: isLikes,
  16723. commentJson: commentJson,
  16724. likeJson:likeJson
  16725. };
  16726. if (this.isGroup) {
  16727. let isGw = 1;
  16728. for (
  16729. var groupI = 0;
  16730. groupI < this.courseGroup.group.length;
  16731. groupI++
  16732. ) {
  16733. let gid = this.courseGroup.group[groupI].id;
  16734. if (
  16735. this.courseGroupStudentUid[gid].indexOf(
  16736. b[j].userid
  16737. ) != -1
  16738. ) {
  16739. isGw = 2;
  16740. this.courseGroup.group[groupI].works[i].push(_works);
  16741. break;
  16742. }
  16743. }
  16744. if (isGw == 1) {
  16745. _worksStudent[i].push(_works);
  16746. }
  16747. } else {
  16748. _worksStudent[i].push(_works);
  16749. }
  16750. _worksStudent2[i].push(_works);
  16751. this.isWorksS[i].push({
  16752. uid: b[j].userid,
  16753. sName: b[j].name,
  16754. });
  16755. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  16756. let _works = {
  16757. userid: b[j].userid,
  16758. ateacher: b[j].ateacher,
  16759. wid: b[j].id,
  16760. works: b[j].content,
  16761. sName: b[j].name,
  16762. type: 0,
  16763. ttype:b[j].ttype,
  16764. time: b[j].time,
  16765. score: b[j].score,
  16766. img: b[j].img,
  16767. likesCount: likesCount,
  16768. commentCount: commentCount,
  16769. isLikes: isLikes,
  16770. commentJson: commentJson,
  16771. likeJson:likeJson
  16772. };
  16773. if (this.isGroup) {
  16774. let isGw = 1;
  16775. for (
  16776. var groupI = 0;
  16777. groupI < this.courseGroup.group.length;
  16778. groupI++
  16779. ) {
  16780. let gid = this.courseGroup.group[groupI].id;
  16781. if (
  16782. this.courseGroupStudentUid[gid].indexOf(
  16783. b[j].userid
  16784. ) != -1
  16785. ) {
  16786. isGw = 2;
  16787. this.courseGroup.group[groupI].works[i].push(_works);
  16788. break;
  16789. }
  16790. }
  16791. if (isGw == 1) {
  16792. _worksStudent[i].push(_works);
  16793. }
  16794. } else {
  16795. _worksStudent[i].push(_works);
  16796. }
  16797. _worksStudent2[i].push(_works);
  16798. this.isWorksS[i].push({
  16799. uid: b[j].userid,
  16800. sName: b[j].name,
  16801. });
  16802. }
  16803. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  16804. let _works = {
  16805. userid: b[j].userid,
  16806. ateacher: b[j].ateacher,
  16807. wid: b[j].id,
  16808. works: b[j].content,
  16809. sName: b[j].name,
  16810. type: 2,
  16811. ttype:b[j].ttype,
  16812. time: b[j].time,
  16813. score: b[j].score,
  16814. img: b[j].img,
  16815. likesCount: likesCount,
  16816. commentCount: commentCount,
  16817. isLikes: isLikes,
  16818. commentJson: commentJson,
  16819. likeJson:likeJson
  16820. };
  16821. if (this.isGroup) {
  16822. let isGw = 1;
  16823. for (
  16824. var groupI = 0;
  16825. groupI < this.courseGroup.group.length;
  16826. groupI++
  16827. ) {
  16828. let gid = this.courseGroup.group[groupI].id;
  16829. if (
  16830. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  16831. -1
  16832. ) {
  16833. isGw = 2;
  16834. this.courseGroup.group[groupI].works[i].push(_works);
  16835. break;
  16836. }
  16837. }
  16838. if (isGw == 1) {
  16839. _worksStudent[i].push(_works);
  16840. }
  16841. } else {
  16842. _worksStudent[i].push(_works);
  16843. }
  16844. _worksStudent2[i].push(_works);
  16845. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16846. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  16847. //问卷
  16848. let _work = {
  16849. userid: b[j].userid,
  16850. ateacher: b[j].ateacher,
  16851. wid: b[j].id,
  16852. works: b[j].content,
  16853. sName: b[j].name,
  16854. type: 2,
  16855. ttype:b[j].ttype,
  16856. time: b[j].time,
  16857. score: b[j].score,
  16858. img: b[j].img,
  16859. likesCount: likesCount,
  16860. commentCount: commentCount,
  16861. isLikes: isLikes,
  16862. commentJson: commentJson,
  16863. likeJson:likeJson
  16864. };
  16865. _worksStudent[i].push(_work);
  16866. _worksStudent2[i].push(_work);
  16867. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16868. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  16869. //选择题
  16870. let _work = {
  16871. userid: b[j].userid,
  16872. ateacher: b[j].ateacher,
  16873. wid: b[j].id,
  16874. works: b[j].content,
  16875. sName: b[j].name,
  16876. type: 8,
  16877. ttype:b[j].ttype,
  16878. time: b[j].time,
  16879. score: b[j].score,
  16880. img: b[j].img,
  16881. likesCount: likesCount,
  16882. commentCount: commentCount,
  16883. isLikes: isLikes,
  16884. commentJson: commentJson,
  16885. likeJson:likeJson
  16886. };
  16887. _worksStudent[i].push(_work);
  16888. _worksStudent2[i].push(_work);
  16889. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16890. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  16891. //选择题
  16892. let _work = {
  16893. userid: b[j].userid,
  16894. ateacher: b[j].ateacher,
  16895. wid: b[j].id,
  16896. works: b[j].content,
  16897. sName: b[j].name,
  16898. type: 9,
  16899. ttype:b[j].ttype,
  16900. time: b[j].time,
  16901. score: b[j].score,
  16902. img: b[j].img,
  16903. likesCount: likesCount,
  16904. commentCount: commentCount,
  16905. isLikes: isLikes,
  16906. commentJson: commentJson,
  16907. likeJson:likeJson
  16908. };
  16909. _worksStudent[i].push(_work);
  16910. _worksStudent2[i].push(_work);
  16911. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16912. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  16913. //选择题
  16914. let _work = {
  16915. userid: b[j].userid,
  16916. ateacher: b[j].ateacher,
  16917. wid: b[j].id,
  16918. works: b[j].content,
  16919. sName: b[j].name,
  16920. type: 10,
  16921. ttype:b[j].ttype,
  16922. time: b[j].time,
  16923. score: b[j].score,
  16924. img: b[j].img,
  16925. likesCount: likesCount,
  16926. commentCount: commentCount,
  16927. isLikes: isLikes,
  16928. commentJson: commentJson,
  16929. likeJson:likeJson
  16930. };
  16931. _worksStudent[i].push(_work);
  16932. _worksStudent2[i].push(_work);
  16933. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16934. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  16935. //选择题
  16936. let _work = {
  16937. userid: b[j].userid,
  16938. ateacher: b[j].ateacher,
  16939. wid: b[j].id,
  16940. works: b[j].content,
  16941. sName: b[j].name,
  16942. type: 13,
  16943. ttype:b[j].ttype,
  16944. time: b[j].time,
  16945. score: b[j].score,
  16946. img: b[j].img,
  16947. likesCount: likesCount,
  16948. commentCount: commentCount,
  16949. isLikes: isLikes,
  16950. commentJson: commentJson,
  16951. likeJson:likeJson
  16952. };
  16953. _worksStudent[i].push(_work);
  16954. _worksStudent2[i].push(_work);
  16955. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16956. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  16957. //选择题
  16958. let _work = {
  16959. userid: b[j].userid,
  16960. ateacher: b[j].ateacher,
  16961. wid: b[j].id,
  16962. works: b[j].content,
  16963. sName: b[j].name,
  16964. type: 16,
  16965. ttype:b[j].ttype,
  16966. time: b[j].time,
  16967. score: b[j].score,
  16968. img: b[j].img,
  16969. likesCount: likesCount,
  16970. commentCount: commentCount,
  16971. isLikes: isLikes,
  16972. commentJson: commentJson,
  16973. aiCode: b[j].aiCode,
  16974. teacherCode: b[j].teacherCode,
  16975. likeJson:likeJson
  16976. };
  16977. _worksStudent[i].push(_work);
  16978. _worksStudent2[i].push(_work);
  16979. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  16980. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  16981. //选择题
  16982. let _work = {
  16983. userid: b[j].userid,
  16984. ateacher: b[j].ateacher,
  16985. wid: b[j].id,
  16986. works: b[j].content,
  16987. sName: b[j].name,
  16988. type: 17,
  16989. ttype:b[j].ttype,
  16990. time: b[j].time,
  16991. score: b[j].score,
  16992. img: b[j].img,
  16993. likesCount: likesCount,
  16994. commentCount: commentCount,
  16995. isLikes: isLikes,
  16996. commentJson: commentJson,
  16997. likeJson:likeJson
  16998. };
  16999. _worksStudent[i].push(_work);
  17000. _worksStudent2[i].push(_work);
  17001. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17002. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  17003. //交互视频
  17004. let _work = {
  17005. userid: b[j].userid,
  17006. ateacher: b[j].ateacher,
  17007. wid: b[j].id,
  17008. works: b[j].content,
  17009. sName: b[j].name,
  17010. type: 14,
  17011. ttype:b[j].ttype,
  17012. time: b[j].time,
  17013. score: b[j].score,
  17014. img: b[j].img,
  17015. likesCount: likesCount,
  17016. commentCount: commentCount,
  17017. isLikes: isLikes,
  17018. commentJson: commentJson,
  17019. likeJson:likeJson
  17020. };
  17021. _worksStudent[i].push(_work);
  17022. _worksStudent2[i].push(_work);
  17023. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17024. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  17025. let _gindex = JSON.parse(b[j].content);
  17026. if (
  17027. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  17028. b[j].userid
  17029. ) != -1
  17030. ) {
  17031. let _work = {
  17032. userid: b[j].userid,
  17033. ateacher: b[j].ateacher,
  17034. wid: b[j].id,
  17035. works: _gindex.url,
  17036. sName: b[j].name,
  17037. type: _gindex.type,
  17038. ttype:b[j].ttype,
  17039. time: b[j].time,
  17040. score: b[j].score,
  17041. img: b[j].img,
  17042. likesCount: likesCount,
  17043. commentCount: commentCount,
  17044. isLikes: isLikes,
  17045. commentJson: commentJson,
  17046. likeJson:likeJson
  17047. };
  17048. _worksStudent[i][_gindex.groupIndex].push(_work);
  17049. _worksStudent2[i][_gindex.groupIndex].push(_work);
  17050. }
  17051. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17052. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  17053. let _work = {
  17054. userid: b[j].userid,
  17055. ateacher: b[j].ateacher,
  17056. wid: b[j].id,
  17057. works: b[j].content,
  17058. sName: b[j].name ? b[j].name : b[j].userid,
  17059. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  17060. ttype:b[j].ttype,
  17061. time: b[j].time,
  17062. score: b[j].score,
  17063. img: b[j].img,
  17064. likesCount: likesCount,
  17065. commentCount: commentCount,
  17066. isLikes: isLikes,
  17067. commentJson: commentJson,
  17068. likeJson:likeJson
  17069. };
  17070. _worksStudent[i].push(_work);
  17071. _worksStudent2[i].push(_work);
  17072. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17073. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  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: 12,
  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 (
  17095. a[i].tool[0] == 57 &&
  17096. b[j].atool == 57 &&
  17097. b[j].type == 12
  17098. ) {
  17099. let _work = {
  17100. userid: b[j].userid,
  17101. ateacher: b[j].ateacher,
  17102. wid: b[j].id,
  17103. works: b[j].content,
  17104. sName: b[j].name ? b[j].name : b[j].userid,
  17105. type: 12,
  17106. ttype:b[j].ttype,
  17107. time: b[j].time,
  17108. score: b[j].score,
  17109. img: b[j].img,
  17110. likesCount: likesCount,
  17111. commentCount: commentCount,
  17112. isLikes: isLikes,
  17113. commentJson: commentJson,
  17114. likeJson:likeJson
  17115. };
  17116. _worksStudent[i].push(_work);
  17117. _worksStudent2[i].push(_work);
  17118. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17119. } else if (
  17120. a[i].tool[0] == 57 &&
  17121. b[j].atool == 57 &&
  17122. b[j].type == 15
  17123. ) {
  17124. let _work = {
  17125. userid: b[j].userid,
  17126. ateacher: b[j].ateacher,
  17127. wid: b[j].id,
  17128. works: b[j].content,
  17129. sName: b[j].name ? b[j].name : b[j].userid,
  17130. type: 15,
  17131. ttype:b[j].ttype,
  17132. time: b[j].time,
  17133. score: b[j].score,
  17134. img: b[j].img,
  17135. likesCount: likesCount,
  17136. commentCount: commentCount,
  17137. isLikes: isLikes,
  17138. commentJson: commentJson,
  17139. likeJson:likeJson
  17140. };
  17141. _worksStudent[i].push(_work);
  17142. _worksStudent2[i].push(_work);
  17143. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  17144. }
  17145. }
  17146. }
  17147. if (_worksStudent[i] && _worksStudent[i].length) {
  17148. _worksStudent[i] = _worksStudent[i].sort(function (a, b) {
  17149. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  17150. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  17151. var scoreA = parseFloat(jscoreA);
  17152. var scoreB = parseFloat(jscoreB);
  17153. if (scoreA == scoreB) {
  17154. return b.likesCount - a.likesCount;
  17155. }
  17156. return scoreB - scoreA;
  17157. });
  17158. if (this.isGroup) {
  17159. for (
  17160. var groupI = 0;
  17161. groupI < this.courseGroup.group.length;
  17162. groupI++
  17163. ) {
  17164. this.courseGroup.group[groupI].works[i] =
  17165. this.courseGroup.group[groupI].works[i].sort(function (
  17166. a,
  17167. b
  17168. ) {
  17169. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  17170. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  17171. var scoreA = parseFloat(jscoreA);
  17172. var scoreB = parseFloat(jscoreB);
  17173. if (scoreA == scoreB) {
  17174. return b.likesCount - a.likesCount;
  17175. }
  17176. return scoreB - scoreA;
  17177. });
  17178. }
  17179. }
  17180. }
  17181. }
  17182. this.timeWorkList = _worksStudent2;
  17183. for (var i = 0; i < a.length; i++) {
  17184. for (var j = 0; j < b.length; j++) {
  17185. var data = b[j];
  17186. if (i == b[j].tool) {
  17187. if (data.type == 2 || data.type == 8) {
  17188. for (var z = 0; z < this.checkJson[i].length; z++) {
  17189. this.checkJson[i][z].checkPerent = [];
  17190. this.checkJson[i][z].right = Math.round(
  17191. (this.checkJson[i][z].rightPerson.length /
  17192. parseInt(_worksStudent[i].length)) *
  17193. 100
  17194. );
  17195. let aaaa = this.checkJson[i][z];
  17196. for (
  17197. var k = 0;
  17198. k < this.checkJson[i][z].checkCount.length;
  17199. k++
  17200. ) {
  17201. this.checkJson[i][z].checkPerent.push(
  17202. Math.round(
  17203. (this.checkJson[i][z].checkCount[k] /
  17204. parseInt(_worksStudent[i].length)) *
  17205. 100
  17206. )
  17207. );
  17208. }
  17209. }
  17210. } else if (data.type == 9) {
  17211. for (var z = 0; z < this.checkJson[i].length; z++) {
  17212. this.checkJson[i][z].checkPerent = [];
  17213. this.checkJson[i][z].right = Math.round(
  17214. (this.checkJson[i][z].rightPerson.length /
  17215. this.checkJson[i][z].checkPerson.length) *
  17216. 100
  17217. );
  17218. }
  17219. }
  17220. }
  17221. }
  17222. }
  17223. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  17224. this.joinGroup(gindex);
  17225. }
  17226. this.worksStudent = _worksStudent;
  17227. if( JSON.stringify(this.worksStudentCopy) != JSON.stringify(this.worksStudent)){
  17228. console.log('88888999999')
  17229. this.worksStudentCopy=this.worksStudent
  17230. this.AIloading=[]
  17231. this.loopLoading=[]
  17232. this.worksStudent.forEach((e,index)=>{
  17233. this.loopLoading.push({loading:false})
  17234. this.AIloading.push([])
  17235. e.forEach(k=>{
  17236. this.AIloading[index].push({loading:false,sco:0})
  17237. })
  17238. })
  17239. this.refreshAssembly()
  17240. }
  17241. this.selectWorksStudent();
  17242. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  17243. this.$nextTick(()=>{
  17244. setTimeout(()=>{
  17245. setTimeout(()=>{
  17246. this.panToolHeight('tool-'+ci);
  17247. }, 500)
  17248. }, 0)
  17249. })
  17250. }
  17251. })
  17252. .catch((err) => {
  17253. console.error(err);
  17254. });
  17255. },
  17256. pngToWhiteBg(file) {
  17257. const _file = file;
  17258. let read = new FileReader();
  17259. read.readAsDataURL(file); // 文件转base64
  17260. return new Promise((resolve, reject) => {
  17261. read.onload = (e) => {
  17262. let img = new Image();
  17263. img.src = e.target.result;
  17264. img.onload = async () => {
  17265. // 生成canvas
  17266. let canvas = document.createElement("canvas");
  17267. let context = canvas.getContext("2d");
  17268. // 绘制图片到canvas上
  17269. canvas.width = img.width;
  17270. canvas.height = img.height;
  17271. // 在canvas绘制前填充白色背景
  17272. context.fillStyle = "#fff";
  17273. context.fillRect(0, 0, canvas.width, canvas.height);
  17274. context.drawImage(img, 0, 0);
  17275. let base64 = canvas.toDataURL(file["type"], 1);
  17276. let newFile = this.dataUrlToFile(base64, _file);
  17277. resolve(newFile);
  17278. };
  17279. };
  17280. });
  17281. },
  17282. dataUrlToFile(dataurl, file) {
  17283. let arr = dataurl.split(","),
  17284. mime = arr[0].match(/:(.*?);/)[1],
  17285. bstr = atob(arr[1]),
  17286. n = bstr.length,
  17287. u8arr = new Uint8Array(n);
  17288. while (n--) {
  17289. u8arr[n] = bstr.charCodeAt(n);
  17290. }
  17291. // return new Blob([u8arr], { type: mime });
  17292. return new File([new Blob([u8arr], { type: mime })], file.name, {
  17293. type: mime,
  17294. });
  17295. },
  17296. async beforeUpload1(event, type, i) {
  17297. // this.$message.success('进入上传')
  17298. var file = "";
  17299. if (type == 5) {
  17300. file = event;
  17301. } else {
  17302. file = event.target.files[0];
  17303. }
  17304. var credentials = {
  17305. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17306. secretAccessKey: "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",
  17307. }; //秘钥形式的登录上传
  17308. window.AWS.config.update(credentials);
  17309. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17310. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17311. var _this = this;
  17312. _this.progress = 0;
  17313. _this.proVisible = true;
  17314. _this.isFinishSize = 0;
  17315. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  17316. var b = [
  17317. "DOC",
  17318. "DOCX",
  17319. "DOCM",
  17320. "DOTM",
  17321. "DOTX",
  17322. "PPTX",
  17323. "PPSX",
  17324. "PPT",
  17325. "PPS",
  17326. "PPTM",
  17327. "POTM",
  17328. "PPAM",
  17329. "POTX",
  17330. "PPSM",
  17331. ];
  17332. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17333. var photoA = [
  17334. "BMP",
  17335. "GIF",
  17336. "PNG",
  17337. "JPEG",
  17338. "JPEG",
  17339. "JPG",
  17340. "TIF",
  17341. "PCX",
  17342. "TGA",
  17343. "EXIF",
  17344. "FPX",
  17345. "SVG",
  17346. "APNG",
  17347. ];
  17348. // if (
  17349. // b.indexOf(
  17350. // file.name
  17351. // .split(".")
  17352. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17353. // ) != -1
  17354. // ) {
  17355. // if (file.size / 1024 / 1024 > 10) {
  17356. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  17357. // return;
  17358. // }
  17359. // } else if (
  17360. // excelA.indexOf(
  17361. // file.name
  17362. // .split(".")
  17363. // [file.name.split(".").length - 1].toLocaleUpperCase()
  17364. // ) != "-1"
  17365. // ) {
  17366. // if (file.size / 1024 / 1024 > 5) {
  17367. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  17368. // return;
  17369. // }
  17370. // }
  17371. if (
  17372. photoA.indexOf(
  17373. file.name
  17374. .split(".")
  17375. [file.name.split(".").length - 1].toLocaleUpperCase()
  17376. ) != -1 &&
  17377. type != 4
  17378. ) {
  17379. // const blob = await imageConversion.compress(file, 0.8)
  17380. file = await this.pngToWhiteBg(file);
  17381. const blob = await imageConversion.compressAccurately(file, 256);
  17382. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17383. file = new File([blob], file.name, { type: file.type });
  17384. }
  17385. if (file) {
  17386. var params = {
  17387. Key:
  17388. file.name.split(".")[0] +
  17389. new Date().getTime() +
  17390. "." +
  17391. file.name.split(".")[file.name.split(".").length - 1],
  17392. ContentType: file.type,
  17393. Body: file,
  17394. "Access-Control-Allow-Credentials": "*",
  17395. ACL: "public-read",
  17396. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17397. var options = {
  17398. // partSize: 2048 * 1024 * 1024,
  17399. partSize: 1024 * 1024 * 1024,
  17400. queueSize: 2,
  17401. leavePartsOnError: true,
  17402. };
  17403. bucket
  17404. .upload(params, options)
  17405. .on("httpUploadProgress", function (evt) {
  17406. //这里可以写进度条
  17407. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17408. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  17409. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  17410. })
  17411. .send(function (err, data) {
  17412. _this.progress = 100;
  17413. _this.isFinishSize = _this.isAllSize;
  17414. setTimeout(() => {
  17415. _this.proVisible = false;
  17416. }, 1000);
  17417. if (err) {
  17418. var a = _this.$refs.upload1.uploadFiles;
  17419. a.splice(a.length - 1, a.length);
  17420. _this.$message.error("上传失败");
  17421. } else {
  17422. // _this.$message.success('上传成功')
  17423. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17424. var c = [
  17425. "AVI",
  17426. "NAVI",
  17427. "MPEG",
  17428. "ASF",
  17429. "MOV",
  17430. "WMV",
  17431. "3GP",
  17432. "RM",
  17433. "RMVB",
  17434. "FLV",
  17435. "F4V",
  17436. "H.264",
  17437. "H.265",
  17438. "REAL VIDEO",
  17439. "MKV",
  17440. "WebM",
  17441. "HDDVD",
  17442. "MP4",
  17443. "MPG",
  17444. "M4V",
  17445. "MGV",
  17446. "OGV",
  17447. "QTM",
  17448. "STR",
  17449. "AMC",
  17450. "DVX",
  17451. "EVO",
  17452. "DAT",
  17453. "OGG",
  17454. "OGM",
  17455. ];
  17456. if (type == 1) {
  17457. _this.studyJuri[0].cover.push({
  17458. name: file.name,
  17459. url: data.Location,
  17460. uid: file.uid,
  17461. });
  17462. if (
  17463. c.indexOf(
  17464. _this.studyJuri[0].cover[0].url
  17465. .split(".")
  17466. [
  17467. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17468. ].toLocaleUpperCase()
  17469. ) != -1
  17470. ) {
  17471. _this.fileType = 2;
  17472. } else if (
  17473. b.indexOf(
  17474. _this.studyJuri[0].cover[0].url
  17475. .split(".")
  17476. [
  17477. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17478. ].toLocaleUpperCase()
  17479. ) != -1
  17480. ) {
  17481. _this.fileType = 1;
  17482. } else if (
  17483. photoA.indexOf(
  17484. _this.studyJuri[0].cover[0].url
  17485. .split(".")
  17486. [
  17487. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17488. ].toLocaleUpperCase()
  17489. ) != -1
  17490. ) {
  17491. _this.fileType = 0;
  17492. } else {
  17493. _this.fileType = 3;
  17494. }
  17495. _this.imgChange(null, null, type);
  17496. } else if (type == 2) {
  17497. _this.upToolImg = data.Location;
  17498. _this.imgChange(null, null, type);
  17499. _this.addCourseWorks(i);
  17500. } else if (type == 4) {
  17501. _this.addPz("3", data.Location);
  17502. } else if (type == 5) {
  17503. _this.addImgDrawImG(data.Location);
  17504. } else if (type == 6) {
  17505. var _ftype = 1;
  17506. if (
  17507. c.indexOf(
  17508. data.Location.split(".")[
  17509. data.Location.split(".").length - 1
  17510. ].toLocaleUpperCase()
  17511. ) != -1
  17512. ) {
  17513. _ftype = 5;
  17514. } else if (
  17515. b.indexOf(
  17516. data.Location.split(".")[
  17517. data.Location.split(".").length - 1
  17518. ].toLocaleUpperCase()
  17519. ) != -1
  17520. ) {
  17521. _ftype = 4;
  17522. } else {
  17523. _ftype = 1;
  17524. }
  17525. _this.plworkFile.push({
  17526. name: file.name,
  17527. url: data.Location,
  17528. uid: file.uid,
  17529. fileType: _ftype,
  17530. username:
  17531. _this.plworkFile.length > 10
  17532. ? _this.plworkFile.length + 1
  17533. : "0" + (_this.plworkFile.length + 1),
  17534. });
  17535. } else if (type == 7) {
  17536. _this.addCourseWorksGong(i, data.Location, 32);
  17537. } else if (type == 8) {
  17538. _this.addCourseWorksGong(i, data.Location, 57);
  17539. }
  17540. _this.imgChange(null, null, type);
  17541. console.log(data.Location);
  17542. // _this.$message.success('上传成功'+data.Location)
  17543. }
  17544. });
  17545. }
  17546. },
  17547. async beforeUpload3(event, type, i) {
  17548. // this.$message.success('进入上传')
  17549. let file = "";
  17550. let cfindex2 = 0;
  17551. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  17552. file = event.target.files[cfindex];
  17553. var credentials = {
  17554. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17555. secretAccessKey: "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",
  17556. }; //秘钥形式的登录上传
  17557. window.AWS.config.update(credentials);
  17558. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17559. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17560. var _this = this;
  17561. // _this.progress = 0;
  17562. _this.proVisible2 = true;
  17563. var b = [
  17564. "DOC",
  17565. "DOCX",
  17566. "DOCM",
  17567. "DOTM",
  17568. "DOTX",
  17569. "PPTX",
  17570. "PPSX",
  17571. "PPT",
  17572. "PPS",
  17573. "PPTM",
  17574. "POTM",
  17575. "PPAM",
  17576. "POTX",
  17577. "PPSM",
  17578. ];
  17579. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  17580. var photoA = [
  17581. "BMP",
  17582. "GIF",
  17583. "PNG",
  17584. "JPEG",
  17585. "JPG",
  17586. "TIF",
  17587. "PCX",
  17588. "TGA",
  17589. "EXIF",
  17590. "FPX",
  17591. "SVG",
  17592. "APNG",
  17593. ];
  17594. if (
  17595. photoA.indexOf(
  17596. file.name
  17597. .split(".")
  17598. [file.name.split(".").length - 1].toLocaleUpperCase()
  17599. ) != -1 &&
  17600. type != 4
  17601. ) {
  17602. // const blob = await imageConversion.compress(file, 0.8)
  17603. file = await this.pngToWhiteBg(file);
  17604. const blob = await imageConversion.compressAccurately(file, 256);
  17605. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  17606. file = new File([blob], file.name, { type: file.type });
  17607. }
  17608. if (file) {
  17609. var params = {
  17610. Key:
  17611. file.name.split(".")[0] +
  17612. new Date().getTime() +
  17613. "." +
  17614. file.name.split(".")[file.name.split(".").length - 1],
  17615. ContentType: file.type,
  17616. Body: file,
  17617. "Access-Control-Allow-Credentials": "*",
  17618. ACL: "public-read",
  17619. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17620. var options = {
  17621. // partSize: 2048 * 1024 * 1024,
  17622. partSize: 1024 * 1024 * 1024,
  17623. queueSize: 2,
  17624. leavePartsOnError: true,
  17625. };
  17626. bucket
  17627. .upload(params, options)
  17628. .on("httpUploadProgress", function (evt) {
  17629. //这里可以写进度条
  17630. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17631. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17632. })
  17633. .send(function (err, data) {
  17634. // _this.progress = 100;
  17635. cfindex2++;
  17636. setTimeout(() => {
  17637. if (
  17638. cfindex2 == event.target.files.length - 1 ||
  17639. cfindex2 > event.target.files.length - 1
  17640. ) {
  17641. _this.proVisible2 = false;
  17642. }
  17643. }, 1000);
  17644. if (err) {
  17645. var a = _this.$refs.upload1.uploadFiles;
  17646. a.splice(a.length - 1, a.length);
  17647. _this.$message.error("上传失败");
  17648. } else {
  17649. // _this.$message.success('上传成功')
  17650. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17651. var c = [
  17652. "AVI",
  17653. "NAVI",
  17654. "MPEG",
  17655. "ASF",
  17656. "MOV",
  17657. "WMV",
  17658. "3GP",
  17659. "RM",
  17660. "RMVB",
  17661. "FLV",
  17662. "F4V",
  17663. "H.264",
  17664. "H.265",
  17665. "REAL VIDEO",
  17666. "MKV",
  17667. "WebM",
  17668. "HDDVD",
  17669. "MP4",
  17670. "MPG",
  17671. "M4V",
  17672. "MGV",
  17673. "OGV",
  17674. "QTM",
  17675. "STR",
  17676. "AMC",
  17677. "DVX",
  17678. "EVO",
  17679. "DAT",
  17680. "OGG",
  17681. "OGM",
  17682. ];
  17683. if (type == 1) {
  17684. _this.studyJuri[0].cover.push({
  17685. name: file.name,
  17686. url: data.Location,
  17687. uid: file.uid,
  17688. });
  17689. if (
  17690. c.indexOf(
  17691. _this.studyJuri[0].cover[0].url
  17692. .split(".")
  17693. [
  17694. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17695. ].toLocaleUpperCase()
  17696. ) != -1
  17697. ) {
  17698. _this.fileType = 2;
  17699. } else if (
  17700. b.indexOf(
  17701. _this.studyJuri[0].cover[0].url
  17702. .split(".")
  17703. [
  17704. _this.studyJuri[0].cover[0].url.split(".").length - 1
  17705. ].toLocaleUpperCase()
  17706. ) != -1
  17707. ) {
  17708. _this.fileType = 1;
  17709. } else {
  17710. _this.fileType = 0;
  17711. }
  17712. _this.imgChange(null, null, type);
  17713. } else if (type == 2) {
  17714. _this.upToolImg = data.Location;
  17715. _this.imgChange(null, null, type);
  17716. _this.addCourseWorks(i);
  17717. } else if (type == 4) {
  17718. _this.addPz("3", data.Location);
  17719. } else if (type == 5) {
  17720. _this.addImgDrawImG(data.Location);
  17721. } else if (type == 6) {
  17722. var _ftype = 1;
  17723. if (
  17724. c.indexOf(
  17725. data.Location.split(".")[
  17726. data.Location.split(".").length - 1
  17727. ].toLocaleUpperCase()
  17728. ) != -1
  17729. ) {
  17730. _ftype = 5;
  17731. } else if (
  17732. b.indexOf(
  17733. data.Location.split(".")[
  17734. data.Location.split(".").length - 1
  17735. ].toLocaleUpperCase()
  17736. ) != -1
  17737. ) {
  17738. _ftype = 4;
  17739. } else {
  17740. _ftype = 1;
  17741. }
  17742. _this.plworkFile.push({
  17743. name: file.name,
  17744. url: data.Location,
  17745. uid: file.uid,
  17746. fileType: _ftype,
  17747. username:
  17748. _this.plworkFile.length + 1 > 9
  17749. ? _this.plworkFile.length + 1
  17750. : "0" + (_this.plworkFile.length + 1),
  17751. });
  17752. }
  17753. _this.imgChange(null, null, type);
  17754. console.log(data.Location);
  17755. // _this.$message.success('上传成功'+data.Location)
  17756. }
  17757. });
  17758. }
  17759. }
  17760. },
  17761. beforeUpload2(event, type) {
  17762. var file = event.target.files[0];
  17763. var credentials = {
  17764. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  17765. secretAccessKey: "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",
  17766. }; //秘钥形式的登录上传
  17767. window.AWS.config.update(credentials);
  17768. window.AWS.config.region = "cn-northwest-1"; //设置区域
  17769. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  17770. var _this = this;
  17771. _this.progress = 0;
  17772. _this.proVisible = true;
  17773. if (file) {
  17774. var params = {
  17775. Key:
  17776. file.name.split(".")[0] +
  17777. new Date().getTime() +
  17778. "." +
  17779. file.name.split(".")[file.name.split(".").length - 1],
  17780. ContentType: file.type,
  17781. Body: file,
  17782. "Access-Control-Allow-Credentials": "*",
  17783. ACL: "public-read",
  17784. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  17785. var options = {
  17786. partSize: 2048 * 1024 * 1024,
  17787. queueSize: 2,
  17788. leavePartsOnError: true,
  17789. };
  17790. bucket
  17791. .upload(params, options)
  17792. .on("httpUploadProgress", function (evt) {
  17793. //这里可以写进度条
  17794. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  17795. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  17796. })
  17797. .send(function (err, data) {
  17798. _this.progress = 100;
  17799. setTimeout(() => {
  17800. _this.proVisible = false;
  17801. }, 1000);
  17802. if (err) {
  17803. var a = _this.$refs.upload1.uploadFiles;
  17804. a.splice(a.length - 1, a.length);
  17805. _this.$message.error("上传失败");
  17806. } else {
  17807. if (type == 2) {
  17808. _this.studyJuri[0].upVedio.push({
  17809. name: file.name,
  17810. url: data.Location,
  17811. uid: file.uid,
  17812. });
  17813. _this.imgChange(null, null, type);
  17814. } else if (type == 3) {
  17815. _this.studyJuri[0].upFile.push({
  17816. name: file.name,
  17817. url: data.Location,
  17818. uid: file.uid,
  17819. });
  17820. _this.imgChange(null, null, type);
  17821. }
  17822. console.log(data.Location);
  17823. }
  17824. });
  17825. }
  17826. },
  17827. allScrell() {
  17828. window.parent.postMessage({ allScreen: this.screenType }, "*");
  17829. },
  17830. nextOrpreSteps(t) {
  17831. if (this.IsFollow && this.tType == 2) {
  17832. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17833. return;
  17834. }
  17835. var b = this.chapInfoList.length - 1;
  17836. if (t == 0) {
  17837. if (this.courseType == 0) {
  17838. if (this.taskCount == 0) {
  17839. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  17840. if (this.IsLookOpen) {
  17841. if (
  17842. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  17843. ) {
  17844. if (
  17845. this.courseDetail.userid != this.userid &&
  17846. (!this.courseDetail.course_teacher ||
  17847. (this.courseDetail.course_teacher &&
  17848. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  17849. ) {
  17850. this.$message.error("任务未解锁");
  17851. } else {
  17852. this.$message.error("上一任务未解锁");
  17853. }
  17854. return;
  17855. }
  17856. }
  17857. this.navList[this.courseType].isOpen = false;
  17858. this.courseType = b;
  17859. this.taskCount =
  17860. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17861. .length - 1;
  17862. this.navList[this.courseType].isOpen = true;
  17863. } else {
  17864. this.taskCount--;
  17865. }
  17866. } else {
  17867. if (this.taskCount == 0) {
  17868. this.navList[this.courseType].isOpen = false;
  17869. this.courseType--;
  17870. this.taskCount =
  17871. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  17872. .length - 1;
  17873. this.navList[this.courseType].isOpen = true;
  17874. } else {
  17875. this.taskCount--;
  17876. }
  17877. }
  17878. } else {
  17879. if (this.courseType == b) {
  17880. if (
  17881. this.taskCount ==
  17882. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17883. 1
  17884. ) {
  17885. this.navList[this.courseType].isOpen = false;
  17886. this.courseType = 0;
  17887. this.taskCount = 0;
  17888. this.navList[this.courseType].isOpen = true;
  17889. } else {
  17890. var bbb = parseInt(this.taskCount) + 1;
  17891. if (
  17892. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17893. .isLook &&
  17894. this.courseDetail.userid != this.userid &&
  17895. (!this.courseDetail.course_teacher ||
  17896. (this.courseDetail.course_teacher &&
  17897. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17898. this.IsLookOpen
  17899. ) {
  17900. this.$message.error("任务未解锁");
  17901. return;
  17902. }
  17903. this.taskCount++;
  17904. if (this.IsLookOpen) {
  17905. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17906. this.taskCount
  17907. ].isLook = true;
  17908. this.addCourseState(3);
  17909. }
  17910. }
  17911. } else {
  17912. if (
  17913. this.taskCount ==
  17914. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  17915. 1
  17916. ) {
  17917. var bbb = parseInt(this.courseType) + 1;
  17918. if (
  17919. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  17920. this.courseDetail.userid != this.userid &&
  17921. (!this.courseDetail.course_teacher ||
  17922. (this.courseDetail.course_teacher &&
  17923. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17924. this.IsLookOpen
  17925. ) {
  17926. this.$message.error("任务未解锁");
  17927. return;
  17928. }
  17929. this.navList[this.courseType].isOpen = false;
  17930. this.courseType++;
  17931. this.taskCount = 0;
  17932. this.navList[this.courseType].isOpen = true;
  17933. } else {
  17934. var bbb = parseInt(this.taskCount) + 1;
  17935. if (
  17936. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  17937. .isLook &&
  17938. this.courseDetail.userid != this.userid &&
  17939. (!this.courseDetail.course_teacher ||
  17940. (this.courseDetail.course_teacher &&
  17941. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  17942. this.IsLookOpen
  17943. ) {
  17944. this.$message.error("任务未解锁");
  17945. return;
  17946. }
  17947. this.taskCount++;
  17948. }
  17949. if (this.IsLookOpen) {
  17950. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17951. this.taskCount
  17952. ].isLook = true;
  17953. this.addCourseState(3);
  17954. }
  17955. }
  17956. // if (
  17957. // this.taskCount ==
  17958. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  17959. // ) {
  17960. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  17961. // } else {
  17962. // this.taskCount++;
  17963. // }
  17964. }
  17965. document.scrollingElement.scrollTop = 0;
  17966. this.showType = 7;
  17967. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  17968. // if (this.vedio[this.taskCount].length > 0) {
  17969. // var a =
  17970. // document.getElementsByClassName("box_course")[this.taskCount]
  17971. // .offsetHeight;
  17972. // document.getElementsByClassName("vedioList")[
  17973. // this.taskCount
  17974. // ].style.height = a + "px";
  17975. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  17976. // a - 40 + "px";
  17977. // }
  17978. this.isNoHomeWork = false;
  17979. (this.studyJuri = [
  17980. {
  17981. content: "",
  17982. cover: [],
  17983. upVedio: [],
  17984. upFile: [],
  17985. },
  17986. ]),
  17987. (this.radio = []);
  17988. this.isClickNav = "";
  17989. this.selectPz();
  17990. this.getHomeWork();
  17991. this.getCourseDetail(2);
  17992. this.$forceUpdate();
  17993. },
  17994. openTask(s, n, i) {
  17995. this.refreshAssembly()
  17996. if (this.IsFollow && this.tType == 2) {
  17997. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  17998. return;
  17999. }
  18000. if (this.IsLookOpen) {
  18001. if (
  18002. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  18003. this.courseDetail.userid != this.userid &&
  18004. (!this.courseDetail.course_teacher ||
  18005. (this.courseDetail.course_teacher &&
  18006. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  18007. ) {
  18008. this.$message.error("任务未解锁");
  18009. return;
  18010. }
  18011. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  18012. if (
  18013. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  18014. .isLook
  18015. ) {
  18016. this.$message.error("上一任务未解锁");
  18017. return;
  18018. }
  18019. } else if (s > this.courseType) {
  18020. if (n > 0) {
  18021. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  18022. this.$message.error("上一任务未解锁");
  18023. return;
  18024. }
  18025. } else {
  18026. if (
  18027. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  18028. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  18029. ].isLook
  18030. ) {
  18031. this.$message.error("上一任务未解锁");
  18032. return;
  18033. }
  18034. }
  18035. }
  18036. }
  18037. if (this.navList[s].task[n].isOpen == true) {
  18038. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  18039. return;
  18040. }
  18041. let flag = this.courseType==s;
  18042. this.courseType = s;
  18043. this.navId = i;
  18044. this.taskCount = n;
  18045. this.navList[this.courseType].task[this.taskCount].isOpen =
  18046. !this.navList[this.courseType].task[this.taskCount].isOpen;
  18047. if (this.IsLookOpen) {
  18048. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18049. this.taskCount
  18050. ].isLook = true;
  18051. this.addCourseState(3);
  18052. }
  18053. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  18054. this.isCloseList[ci].isClose = 0;
  18055. this.isCloseList[ci].isCloseBoolean = false;
  18056. this.$nextTick(()=>{
  18057. setTimeout(()=>{
  18058. setTimeout(()=>{
  18059. this.panToolHeight('tool-'+ci);
  18060. }, 0)
  18061. }, 0)
  18062. })
  18063. }
  18064. this.showType = 7;
  18065. this.isNoHomeWork = false;
  18066. (this.studyJuri = [
  18067. {
  18068. content: "",
  18069. cover: [],
  18070. upVedio: [],
  18071. upFile: [],
  18072. },
  18073. ]),
  18074. (this.radio = []);
  18075. document.scrollingElement.scrollTop = 0;
  18076. // setTimeout(() => {
  18077. // let a = document.getElementById(i);
  18078. // if (a.offsetTop - 110 == 0) {
  18079. // window.scrollTo(0, 0);
  18080. // } else {
  18081. // window.scrollTo(0, a.offsetTop);
  18082. // }
  18083. // }, 0);
  18084. for (var z = 0; z < this.navList.length; z++) {
  18085. for (var q = 0; q < this.navList[z].task.length; q++) {
  18086. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  18087. this.navList[z].task[q].tool[w].isTool = false;
  18088. }
  18089. }
  18090. }
  18091. this.selectPz();
  18092. this.getHomeWork();
  18093. this.getCourseDetail(2);
  18094. if(flag){
  18095. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  18096. }else{
  18097. 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>`)
  18098. }
  18099. },
  18100. get(i) {
  18101. if (this.IsFollow && this.tType == 2) {
  18102. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  18103. return;
  18104. }
  18105. // for(var k=0;k<this.navList.length;k++){
  18106. // this.navList[k].isOpen = false;
  18107. // }
  18108. // this.navList[i].isOpen = true;
  18109. this.navList[i].isOpen = !this.navList[i].isOpen;
  18110. if (this.navList[i].isOpen) {
  18111. this.openTask(i, 0, i + "-0");
  18112. }
  18113. },
  18114. addQuestion() {
  18115. this.answerList.push({
  18116. answerTitle: this.answerQ,
  18117. answer: this.questionAnswer,
  18118. });
  18119. let params = [
  18120. {
  18121. uid: this.userid,
  18122. cid: this.id,
  18123. stage: this.courseType,
  18124. task: this.taskCount,
  18125. tool: this.toolindex,
  18126. content: JSON.stringify(this.answerList),
  18127. type: 3,
  18128. },
  18129. ];
  18130. this.ajax
  18131. .post(this.$store.state.api + "addCourseWorks", params)
  18132. .then((res) => {
  18133. this.$message({
  18134. message: "提交成功",
  18135. type: "success",
  18136. });
  18137. this.answerList = [];
  18138. this.answerDialogVisible = false;
  18139. this.selectStudent();
  18140. this.selectSWorks();
  18141. this.selectSLook();
  18142. })
  18143. .catch((err) => {
  18144. this.$message.error("提交失败");
  18145. console.error(err);
  18146. });
  18147. },
  18148. addQuestionTeacher() {
  18149. this.answerList.push({
  18150. answerTitle: this.answerQ,
  18151. answer: this.questionAnswer,
  18152. });
  18153. let params = [
  18154. {
  18155. uid: this.sStudent.userid,
  18156. cid: this.id,
  18157. stage: this.courseType,
  18158. task: this.taskCount,
  18159. tool: this.toolindex,
  18160. content: JSON.stringify(this.answerList),
  18161. type: 3,
  18162. ateacher: this.userid,
  18163. },
  18164. ];
  18165. this.ajax
  18166. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18167. .then((res) => {
  18168. this.$message({
  18169. message: "提交成功",
  18170. type: "success",
  18171. });
  18172. this.answerList = [];
  18173. this.questionAnswer = "";
  18174. this.answerDialogVisibleTeacher = false;
  18175. this.selectStudent();
  18176. this.selectSWorks();
  18177. this.selectSLook();
  18178. })
  18179. .catch((err) => {
  18180. this.$message.error("提交失败");
  18181. console.error(err);
  18182. });
  18183. },
  18184. refreshCourse() {
  18185. // window.location.reload();
  18186. this.navList = [];
  18187. this.getCourseDetail(1);
  18188. },
  18189. getCourseDetail(type, gindex) {
  18190. let loading;
  18191. if (type != 2) {
  18192. loading = this.$loading.service({
  18193. background: "rgba(255, 255, 255, 0.7)",
  18194. target: document.querySelector(".student_table"),
  18195. });
  18196. }
  18197. this.downLoading = false
  18198. // this.navList[0].isOpen = false;
  18199. // this.navList[this.courseType].isOpen = true;
  18200. // this.courseType = this.courseTypeLine;
  18201. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  18202. let params = {
  18203. courseId: this.id,
  18204. };
  18205. this.ajax
  18206. .get(this.$store.state.api + "selectCourseDetail3", params)
  18207. .then((res) => {
  18208. if (type != 2) {
  18209. loading.close();
  18210. if (
  18211. this.courseType >
  18212. JSON.parse(res.data[0][0].chapters).length - 1
  18213. ) {
  18214. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  18215. }
  18216. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  18217. .chapterInfo[0].taskJson;
  18218. var b = [
  18219. "AVI",
  18220. "NAVI",
  18221. "MPEG",
  18222. "ASF",
  18223. "MOV",
  18224. "WMV",
  18225. "3GP",
  18226. "RM",
  18227. "RMVB",
  18228. "FLV",
  18229. "F4V",
  18230. "H.264",
  18231. "H.265",
  18232. "REAL VIDEO",
  18233. "MKV",
  18234. "WebM",
  18235. "HDDVD",
  18236. "MP4",
  18237. "MPG",
  18238. "M4V",
  18239. "MGV",
  18240. "OGV",
  18241. "QTM",
  18242. "STR",
  18243. "AMC",
  18244. "DVX",
  18245. "EVO",
  18246. "DAT",
  18247. "OGG",
  18248. "OGM",
  18249. "MP3",
  18250. ];
  18251. let _chapterData = [];
  18252. for (var i = 0; i < a.length; i++) {
  18253. var c = a[i].chapterData;
  18254. this.vedio[i] = [];
  18255. this.textList[i] = [];
  18256. this.lineList[i] = [];
  18257. this.chapToolList[i] = [];
  18258. this.file[i] = [];
  18259. this.fileC[i] = [];
  18260. _chapterData[i] = c.filter((el) => {
  18261. return el.type != 12;
  18262. });
  18263. this.fileC[i] = c.filter((el) => {
  18264. return el.type == 12;
  18265. });
  18266. // else if (c[j].type == 12) {
  18267. // this.fileC[i].push(c[j]);
  18268. // }
  18269. for (var j = 0; j < c.length; j++) {
  18270. if (c[j].type == 7) {
  18271. this.chapToolList[i].push(c[j]);
  18272. } else if (c[j].type == 8 || c[j].type == 14) {
  18273. this.lineList[i].push(c[j]);
  18274. } else if (c[j].type == 6) {
  18275. this.textList[i].push(c[j]);
  18276. } else {
  18277. if (
  18278. b.indexOf(
  18279. c[j].url
  18280. .split(".")
  18281. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18282. ) != -1
  18283. ) {
  18284. this.vedio[i].push(c[j]);
  18285. } else {
  18286. this.file[i].push(c[j]);
  18287. }
  18288. }
  18289. }
  18290. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18291. d.sources[0].src =
  18292. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18293. this.playerO[i] = d;
  18294. }
  18295. this.courseDetail = res.data[0][0];
  18296. this.tcid = this.arrayToArray(
  18297. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  18298. this.tcid2 ? this.tcid2.split(",") : []
  18299. ).join(",");
  18300. this.evalua = res.data[0][0].evaId;
  18301. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  18302. this.courseType
  18303. ];
  18304. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18305. if (this.tcid && res.data[1].length) {
  18306. let _inviteA = [];
  18307. for (var ik = 0; ik < res.data[1].length; ik++) {
  18308. _inviteA.push({
  18309. cid: res.data[1][ik].classid,
  18310. ic: res.data[1][ik].code,
  18311. });
  18312. }
  18313. for (var ik = 0; ik < _inviteA.length; ik++) {
  18314. if (
  18315. this.arrayToArray(
  18316. _inviteA[ik].cid.split(","),
  18317. this.tcid.split(",")
  18318. ).length
  18319. ) {
  18320. this.inviteCode = _inviteA[ik].ic;
  18321. break;
  18322. }
  18323. }
  18324. }
  18325. for (var l = 0; l < this.chapInfoList.length; l++) {
  18326. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  18327. for (var m = 0; m < w.length; m++) {
  18328. w[m].id = l + "-" + m;
  18329. }
  18330. }
  18331. if (
  18332. _chapterData[this.taskCount].length &&
  18333. _chapterData[this.taskCount][0].type == 2
  18334. ) {
  18335. this.showType = 0;
  18336. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18337. } else {
  18338. if (_chapterData[this.taskCount].length > 0) {
  18339. let _url = _chapterData[this.taskCount][0].url;
  18340. if (
  18341. _chapterData[this.taskCount][0].type == 8 ||
  18342. _chapterData[this.taskCount][0].type == 14
  18343. ) {
  18344. this.showType = 2;
  18345. if (
  18346. _url.indexOf("https://") == -1 &&
  18347. _url.indexOf("http://") == -1
  18348. ) {
  18349. _url = "https://" + _url;
  18350. }
  18351. this.pptImgUrl1 = _url;
  18352. } else if (_chapterData[this.taskCount][0].type == 3) {
  18353. if (
  18354. _url
  18355. .split(".")
  18356. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18357. ) {
  18358. this.showType = 3;
  18359. this.pptImgUrl1 = _url;
  18360. } else if (
  18361. this.isAssetTypeAnImage(
  18362. _url
  18363. .split(".")
  18364. [_url.split(".").length - 1].toLocaleLowerCase()
  18365. )
  18366. ) {
  18367. this.showType = 4;
  18368. this.pptImgUrl1 = _url;
  18369. } else {
  18370. this.showType = 2;
  18371. this.pptImgUrl1 =
  18372. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18373. encodeURIComponent(_url);
  18374. }
  18375. } else if (_chapterData[this.taskCount][0].type == 13) {
  18376. this.showType = 4;
  18377. this.pptImgUrl1 = _url;
  18378. } else if (_chapterData[this.taskCount][0].type == 6) {
  18379. this.showType = 1;
  18380. this.text = this.textList[this.taskCount][0];
  18381. }
  18382. }
  18383. }
  18384. this.isClickNav = 0;
  18385. if (
  18386. !_chapterData[this.taskCount].length ||
  18387. _chapterData[this.taskCount][0].type == 12
  18388. ) {
  18389. this.isClickNav = "";
  18390. this.showType = "";
  18391. }
  18392. this.vChapterData = _chapterData;
  18393. } else {
  18394. this.showType = 0;
  18395. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  18396. .chapterInfo[0].taskJson;
  18397. var b = [
  18398. "AVI",
  18399. "NAVI",
  18400. "MPEG",
  18401. "ASF",
  18402. "MOV",
  18403. "WMV",
  18404. "3GP",
  18405. "RM",
  18406. "RMVB",
  18407. "FLV",
  18408. "F4V",
  18409. "H.264",
  18410. "H.265",
  18411. "REAL VIDEO",
  18412. "MKV",
  18413. "WebM",
  18414. "HDDVD",
  18415. "MP4",
  18416. "MPG",
  18417. "M4V",
  18418. "MGV",
  18419. "OGV",
  18420. "QTM",
  18421. "STR",
  18422. "AMC",
  18423. "DVX",
  18424. "EVO",
  18425. "DAT",
  18426. "OGG",
  18427. "OGM",
  18428. "MP3",
  18429. ];
  18430. let _chapterData = [];
  18431. for (var i = 0; i < a.length; i++) {
  18432. var c = a[i].chapterData;
  18433. this.vedio[i] = [];
  18434. this.textList[i] = [];
  18435. this.lineList[i] = [];
  18436. this.chapToolList[i] = [];
  18437. this.file[i] = [];
  18438. this.fileC[i] = [];
  18439. _chapterData[i] = c.filter((el) => {
  18440. return el.type != 12;
  18441. });
  18442. this.fileC[i] = c.filter((el) => {
  18443. return el.type == 12;
  18444. });
  18445. for (var j = 0; j < c.length; j++) {
  18446. if (c[j].type == 7) {
  18447. this.chapToolList[i].push(c[j]);
  18448. } else if (c[j].type == 8 || c[j].type == 14) {
  18449. this.lineList[i].push(c[j]);
  18450. } else if (c[j].type == 6) {
  18451. this.textList[i].push(c[j]);
  18452. } else {
  18453. if (
  18454. b.indexOf(
  18455. c[j].url
  18456. .split(".")
  18457. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  18458. ) != -1
  18459. ) {
  18460. this.vedio[i].push(c[j]);
  18461. } else {
  18462. this.file[i].push(c[j]);
  18463. }
  18464. }
  18465. }
  18466. var d = JSON.parse(JSON.stringify(this.playerOptions));
  18467. d.sources[0].src =
  18468. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  18469. this.playerO[i] = d;
  18470. }
  18471. if (
  18472. _chapterData[this.taskCount].length &&
  18473. _chapterData[this.taskCount][0].type == 2
  18474. ) {
  18475. this.showType = 0;
  18476. this.pptImgUrl1 = _chapterData[this.taskCount][0].url;
  18477. } else {
  18478. if (_chapterData[this.taskCount].length > 0) {
  18479. let _url = _chapterData[this.taskCount][0].url;
  18480. if (
  18481. _chapterData[this.taskCount][0].type == 8 ||
  18482. _chapterData[this.taskCount][0].type == 14
  18483. ) {
  18484. this.showType = 2;
  18485. if (
  18486. _url.indexOf("https://") == -1 &&
  18487. _url.indexOf("http://") == -1
  18488. ) {
  18489. _url = "https://" + _url;
  18490. }
  18491. this.pptImgUrl1 = _url;
  18492. } else if (_chapterData[this.taskCount][0].type == 3) {
  18493. if (
  18494. _url
  18495. .split(".")
  18496. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18497. ) {
  18498. this.showType = 3;
  18499. this.pptImgUrl1 = _url;
  18500. } else if (
  18501. this.isAssetTypeAnImage(
  18502. _url
  18503. .split(".")
  18504. [_url.split(".").length - 1].toLocaleLowerCase()
  18505. )
  18506. ) {
  18507. this.showType = 4;
  18508. this.pptImgUrl1 = _url;
  18509. } else {
  18510. this.showType = 2;
  18511. this.pptImgUrl1 =
  18512. "https://view.officeapps.live.com/op/view.aspx?src=" +
  18513. encodeURIComponent(_url);
  18514. }
  18515. } else if (_chapterData[this.taskCount][0].type == 13) {
  18516. this.showType = 4;
  18517. this.pptImgUrl1 = _url;
  18518. } else if (_chapterData[this.taskCount][0].type == 6) {
  18519. this.showType = 1;
  18520. this.text = this.textList[this.taskCount][0];
  18521. }
  18522. }
  18523. }
  18524. this.isClickNav = 0;
  18525. if (
  18526. !_chapterData[this.taskCount].length ||
  18527. _chapterData[this.taskCount][0].type == 12
  18528. ) {
  18529. this.isClickNav = "";
  18530. this.showType = "";
  18531. }
  18532. this.vChapterData = _chapterData;
  18533. this.$forceUpdate();
  18534. }
  18535. // console.log('this.chapInfoList22222',JS);
  18536. if(res.data[0][0].setting){
  18537. try {
  18538. 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;
  18539. }catch(error){
  18540. console.error(error)
  18541. }
  18542. }
  18543. // finalMarkList用来判断哪个工具为评分工具
  18544. if(this.courseDetail.state == 5){
  18545. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  18546. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  18547. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  18548. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  18549. // // 没有的话在选其他工具为评分工具
  18550. // if(adc.length > 0){
  18551. // for (let k = chap.length - 1; k >= 0; k--) {
  18552. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  18553. // this.finalMarkList = k;
  18554. // break;
  18555. // }
  18556. // }
  18557. // }else{
  18558. // for (let k = chap.length - 1; k >= 0; k--) {
  18559. // 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) {
  18560. // this.finalMarkList = k;
  18561. // break;
  18562. // }
  18563. // }
  18564. // }
  18565. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  18566. // 不然会无限循环报错,会很难受
  18567. let aiSNum = 0
  18568. if(chapInfoListCopy[this.taskCount].eList && chapInfoListCopy[this.taskCount].eList.length){
  18569. chapInfoListCopy[this.taskCount].eList.forEach(e=>{
  18570. if (e.isai == 2) {
  18571. aiSNum++
  18572. }
  18573. })
  18574. if(aiSNum == chapInfoListCopy[this.taskCount].eList.length){
  18575. this.isaiNum = aiSNum
  18576. }else{
  18577. this.isaiNum = 0
  18578. }
  18579. for (let k = 0; k < chapInfoListCopy[this.taskCount].eList.length; k++) {
  18580. if(!chapInfoListCopy[this.taskCount].eList[k].rule){
  18581. this.againEva(this.taskCount,k)
  18582. }
  18583. }
  18584. }
  18585. }
  18586. // else {
  18587. // this.courseDetail = res.data[0][0];
  18588. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  18589. // }
  18590. let _this = this;
  18591. if (_this.timer) {
  18592. clearInterval(_this.timer);
  18593. _this.timer = null;
  18594. }
  18595. if (_this.tcid) {
  18596. _this.getCourseGroup(gindex);
  18597. } else {
  18598. _this.selectSWorks(gindex);
  18599. }
  18600. _this.selectStudent();
  18601. _this.selectSLook();
  18602. _this.getPick();
  18603. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18604. _this.setCTask();
  18605. }
  18606. if (_this.dialogVisibleGroup) {
  18607. _this.groupJson =
  18608. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18609. _this.taskCount
  18610. ].toolChoose[_this.toolindex].groupJson;
  18611. }
  18612. _this.$nextTick(() => {
  18613. setTimeout(() => {
  18614. _this.checkEva();
  18615. }, 1000);
  18616. });
  18617. _this.timer = setInterval(function () {
  18618. // _this.getCourseDetail(2);
  18619. if (_this.tcid) {
  18620. _this.getCourseGroup(gindex);
  18621. } else {
  18622. _this.selectSWorks(gindex);
  18623. }
  18624. _this.selectStudent();
  18625. _this.selectSLook();
  18626. _this.getPick();
  18627. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  18628. _this.setCTask();
  18629. }
  18630. if (_this.dialogVisibleGroup) {
  18631. _this.groupJson =
  18632. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  18633. _this.taskCount
  18634. ].toolChoose[_this.toolindex].groupJson;
  18635. }
  18636. if (_this.tType == 4 || _this.ispzType == 4) {
  18637. _this.selectPz();
  18638. }
  18639. }, 5000);
  18640. _this.$nextTick(function () {
  18641. setTimeout(() => {
  18642. // var a =
  18643. // document.getElementsByClassName("box_course")[0].offsetHeight;
  18644. // document.getElementsByClassName("vedioList")[0].style.height =
  18645. // a + "px";
  18646. // document.getElementsByClassName("navBox")[0].style.height =
  18647. // a - 40 + "px";
  18648. // if (_this.vedio[_this.taskCount].length > 0) {
  18649. // _this.vedioTime = [];
  18650. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  18651. // _this.vedioTime[i] = document.getElementsByClassName(
  18652. // "vjs-duration-display"
  18653. // )[i].textContent;
  18654. // }
  18655. // }
  18656. }, 1000);
  18657. });
  18658. })
  18659. .catch((err) => {
  18660. loading.close();
  18661. console.error(err);
  18662. });
  18663. },
  18664. getCourseGroup(gindex) {
  18665. let params = {
  18666. cid: this.id,
  18667. classid: this.tcid ? this.tcid : "1",
  18668. };
  18669. this.ajax
  18670. .get(this.$store.state.api + "getCourseGroup", params)
  18671. .then((res) => {
  18672. if (res.data && res.data[0].length) {
  18673. if (!this.isGroup) {
  18674. let courseGroup = JSON.parse(res.data[0][0].group);
  18675. courseGroup.group = courseGroup.group.filter((el) => {
  18676. el.works = [];
  18677. return el;
  18678. });
  18679. if (courseGroup.isopen == 2) {
  18680. this.isGroup = false;
  18681. this.selectSWorks(gindex);
  18682. return;
  18683. }
  18684. this.courseGroup = courseGroup;
  18685. let groupPerson = res.data[1];
  18686. let group = JSON.parse(res.data[0][0].group).group;
  18687. let courseGroupStudent = {};
  18688. let courseGroupStudentUid = {};
  18689. for (var i = 0; i < group.length; i++) {
  18690. courseGroupStudent[group[i].id] = [];
  18691. courseGroupStudentUid[group[i].id] = [];
  18692. for (var j = 0; j < groupPerson.length; j++) {
  18693. if (groupPerson[j].groupCid == group[i].id) {
  18694. courseGroupStudent[group[i].id].push(groupPerson[j]);
  18695. courseGroupStudentUid[group[i].id].push(
  18696. groupPerson[j].userid
  18697. );
  18698. }
  18699. }
  18700. }
  18701. this.courseGroupStudent = courseGroupStudent;
  18702. this.courseGroupStudentUid = courseGroupStudentUid;
  18703. }
  18704. if (this.courseGroup.isopen == 2) {
  18705. this.isGroup = false;
  18706. } else {
  18707. this.isGroup = true;
  18708. }
  18709. this.selectSWorks(gindex);
  18710. } else {
  18711. this.selectSWorks(gindex);
  18712. this.isGroup = false;
  18713. }
  18714. })
  18715. .catch((err) => {
  18716. // this.$message.error("网络不佳");
  18717. console.error(err);
  18718. });
  18719. },
  18720. setOperationTime() {
  18721. let _this = this;
  18722. if (_this.opertimer) {
  18723. clearInterval(_this.opertimer);
  18724. _this.opertimer = null;
  18725. }
  18726. _this.opertimer = setInterval(() => {
  18727. _this.setoTime("600");
  18728. }, 600000);
  18729. },
  18730. setoTime(time) {
  18731. let params = [
  18732. {
  18733. uid: this.userid,
  18734. cid: this.id,
  18735. type: "2",
  18736. time: time,
  18737. },
  18738. ];
  18739. this.ajax
  18740. .post(this.$store.state.api + "addOperationTimeT2", params)
  18741. .then((res) => {})
  18742. .catch((err) => {
  18743. console.error(err);
  18744. });
  18745. },
  18746. addPz(type, content) {
  18747. if (type == "1" && this.pzConText == "") {
  18748. this.$message.error("评论不能为空!");
  18749. return;
  18750. }
  18751. let params = [
  18752. {
  18753. cid: this.id,
  18754. uid: this.userid,
  18755. s: this.courseType,
  18756. t: this.taskCount,
  18757. c: type == "1" ? this.pzConText : content,
  18758. type: type,
  18759. },
  18760. ];
  18761. this.ajax
  18762. .post(this.$store.state.api + "addPz2", params)
  18763. .then((res) => {
  18764. this.$message({
  18765. message: "添加成功",
  18766. type: "success",
  18767. });
  18768. this.pzConText = "";
  18769. this.addPzDialog = false;
  18770. this.selectPz();
  18771. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  18772. })
  18773. .catch((err) => {
  18774. this.$message.error("添加失败");
  18775. console.error(err);
  18776. });
  18777. },
  18778. setReplyIndex(id, i) {
  18779. this.replyIndex = i;
  18780. this.replyPid = id;
  18781. this.replyDialogVisible = true;
  18782. },
  18783. addHf() {
  18784. if (this.reply == "") {
  18785. this.$message.error("回复不能为空!");
  18786. return;
  18787. }
  18788. let params = [
  18789. {
  18790. cid: this.id,
  18791. uid: this.userid,
  18792. s: this.courseType,
  18793. t: this.taskCount,
  18794. type: "1",
  18795. ct: 2,
  18796. pid: this.replyPid,
  18797. c: this.reply,
  18798. },
  18799. ];
  18800. this.ajax
  18801. .post(this.$store.state.api + "addHf", params)
  18802. .then((res) => {
  18803. this.reply = "";
  18804. this.$message({
  18805. message: "回复成功",
  18806. type: "success",
  18807. });
  18808. this.replyDialogVisible = false;
  18809. this.selectPz();
  18810. })
  18811. .catch((err) => {
  18812. this.$message.error("回复失败");
  18813. console.error(err);
  18814. });
  18815. },
  18816. deletePz(id) {
  18817. this.$confirm("确定删除此评论吗?", "提示", {
  18818. confirmButtonText: "确定",
  18819. cancelButtonText: "取消",
  18820. type: "warning",
  18821. })
  18822. .then(() => {
  18823. let params = [
  18824. {
  18825. id: id,
  18826. },
  18827. ];
  18828. this.ajax
  18829. .post(this.$store.state.api + "deletePz", params)
  18830. .then((res) => {
  18831. this.$message({
  18832. message: "删除成功",
  18833. type: "success",
  18834. });
  18835. this.selectPz();
  18836. })
  18837. .catch((err) => {
  18838. this.$message.error("网络异常");
  18839. console.error(err);
  18840. });
  18841. })
  18842. .catch(() => {});
  18843. },
  18844. deleteReply(id) {
  18845. this.$confirm("确定删除此回复吗?", "提示", {
  18846. confirmButtonText: "确定",
  18847. cancelButtonText: "取消",
  18848. type: "warning",
  18849. })
  18850. .then(() => {
  18851. let params = [
  18852. {
  18853. id: id,
  18854. },
  18855. ];
  18856. this.ajax
  18857. .post(this.$store.state.api + "deleteReply", params)
  18858. .then((res) => {
  18859. this.$message({
  18860. message: "删除成功",
  18861. type: "success",
  18862. });
  18863. this.selectPz();
  18864. })
  18865. .catch((err) => {
  18866. this.$message.error("网络异常");
  18867. console.error(err);
  18868. });
  18869. })
  18870. .catch(() => {});
  18871. },
  18872. setPz() {
  18873. if (this.ispzType == 4) {
  18874. this.ispzType = 0;
  18875. this.pzDialog = false;
  18876. return;
  18877. }
  18878. this.ispzType = 4;
  18879. this.pzDialog = true;
  18880. this.selectPz();
  18881. },
  18882. selectPz() {
  18883. let params = {
  18884. cid: this.id,
  18885. s: this.courseType,
  18886. t: this.taskCount,
  18887. type: this.pzStype,
  18888. uid: this.userid,
  18889. };
  18890. this.ajax
  18891. .get(this.$store.state.api + "selectPzListType", params)
  18892. .then((res) => {
  18893. this.pzList = res.data[0];
  18894. var a = res.data[1];
  18895. for (var i = 0; i < a.length; i++) {
  18896. for (var j = 0; j < this.pzList.length; j++) {
  18897. if (!this.pzList[j].hfList) {
  18898. this.pzList[j].hfList = [];
  18899. }
  18900. if (a[i].pid == this.pzList[j].id) {
  18901. this.pzList[j].hfList.push(a[i]);
  18902. }
  18903. }
  18904. }
  18905. })
  18906. .catch((err) => {
  18907. console.error(err);
  18908. });
  18909. },
  18910. // selectHf() {
  18911. // let params = {
  18912. // cid: this.id,
  18913. // s: this.courseType,
  18914. // t: this.taskCount,
  18915. // };
  18916. // this.ajax
  18917. // .get(this.$store.state.api + "selectHfList", params)
  18918. // .then((res) => {
  18919. // var a = res.data[0];
  18920. // for (var i = 0; i < a.length; i++) {
  18921. // for (var j = 0; j < this.pzList.length; j++) {
  18922. // if (!this.pzList[i].hfList) {
  18923. // this.pzList[i].hfList = [];
  18924. // }
  18925. // if (a[i].pid == this.pzList[j].id) {
  18926. // this.pzList[i].hfList.push(a[i]);
  18927. // }
  18928. // }
  18929. // }
  18930. // })
  18931. // .catch((err) => {
  18932. // console.error(err);
  18933. // });
  18934. // },
  18935. updateSLook() {
  18936. let params = {
  18937. sopen: this.sIsOpen == false ? 1 : 2,
  18938. cid: this.id,
  18939. };
  18940. this.ajax
  18941. .get(this.$store.state.api + "updateCourseSLook", params)
  18942. .then((res) => {
  18943. if (this.sIsOpen == true) {
  18944. this.$message({
  18945. message: "权限设置成功",
  18946. type: "success",
  18947. });
  18948. } else {
  18949. this.$message({
  18950. message: "权限关闭成功",
  18951. type: "success",
  18952. });
  18953. }
  18954. })
  18955. .catch((err) => {
  18956. console.error(err);
  18957. });
  18958. },
  18959. updateFollow() {
  18960. let params = [
  18961. {
  18962. sopen: this.IsFollow == false ? 1 : 2,
  18963. cid: this.id,
  18964. },
  18965. ];
  18966. this.ajax
  18967. .post(this.$store.state.api + "updateCourseFollow", params)
  18968. .then((res) => {
  18969. if (this.IsFollow == true) {
  18970. this.$message({
  18971. message: "开启成功",
  18972. type: "success",
  18973. });
  18974. } else {
  18975. this.$message({
  18976. message: "关闭成功",
  18977. type: "success",
  18978. });
  18979. }
  18980. this.setCTask();
  18981. })
  18982. .catch((err) => {
  18983. console.error(err);
  18984. });
  18985. },
  18986. setCTask() {
  18987. let params = [
  18988. {
  18989. sopen: this.courseType + "-" + this.taskCount,
  18990. cid: this.id,
  18991. },
  18992. ];
  18993. this.ajax
  18994. .post(this.$store.state.api + "updateCourseFollowC", params)
  18995. .then((res) => {})
  18996. .catch((err) => {
  18997. console.error(err);
  18998. });
  18999. },
  19000. updateLookOpen() {
  19001. let params = [
  19002. {
  19003. sopen: this.IsLookOpen == false ? 1 : 2,
  19004. cid: this.id,
  19005. },
  19006. ];
  19007. this.ajax
  19008. .post(this.$store.state.api + "updateCourseLookOpen", params)
  19009. .then((res) => {
  19010. if (this.IsLookOpen == true) {
  19011. // if (this.courseType != 0 && this.taskCount != 0) {
  19012. // this.openTask(0, 0, "0-0");
  19013. // }
  19014. this.$message({
  19015. message: "权限设置成功",
  19016. type: "success",
  19017. });
  19018. } else {
  19019. this.$message({
  19020. message: "权限关闭成功",
  19021. type: "success",
  19022. });
  19023. }
  19024. this.getCourseState(2);
  19025. })
  19026. .catch((err) => {
  19027. console.error(err);
  19028. });
  19029. },
  19030. selectSLook() {
  19031. let params = {
  19032. cid: this.id,
  19033. };
  19034. this.ajax
  19035. .get(this.$store.state.api + "selectCourseSLook", params)
  19036. .then((res) => {
  19037. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  19038. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  19039. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  19040. if (!this.IsLookOpen) {
  19041. this.setNavList();
  19042. } else {
  19043. this.getCourseState(1);
  19044. }
  19045. if (this.IsFollow && this.tType == 2) {
  19046. this.setContent2(false);
  19047. let _followC = res.data[0][0].followC.split("-");
  19048. if (
  19049. this.courseType != _followC[0] ||
  19050. this.taskCount != _followC[1]
  19051. ) {
  19052. this.navList[this.courseType].isOpen = false;
  19053. this.courseType = _followC[0];
  19054. this.navList[this.courseType].isOpen = true;
  19055. this.taskCount = parseInt(_followC[1]);
  19056. this.navId = res.data[0][0].followC;
  19057. document.scrollingElement.scrollTop = 0;
  19058. this.getCourseDetail(2);
  19059. }
  19060. }
  19061. })
  19062. .catch((err) => {
  19063. console.error(err);
  19064. });
  19065. },
  19066. setNavList() {
  19067. if (this.navList.length == 0) {
  19068. this.navList = [];
  19069. var copyList = [];
  19070. for (var l = 0; l < this.chapInfoList.length; l++) {
  19071. var q = this.chapInfoList[l].dyName;
  19072. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  19073. var e;
  19074. copyList.push({
  19075. dyName: q,
  19076. isOpen: l === 0 ? true : false,
  19077. task: [],
  19078. });
  19079. for (var r = 0; r < w.length; r++) {
  19080. e = w[r].task;
  19081. if (this.chapInfoList[l].easy == 1) {
  19082. copyList[l].task.push({
  19083. taskName: q,
  19084. id: l + "-" + r,
  19085. isLook: w[r].isLook,
  19086. isOpen: r === 0 ? true : false,
  19087. tool: [],
  19088. });
  19089. } else {
  19090. copyList[l].task.push({
  19091. taskName: e,
  19092. id: l + "-" + r,
  19093. isLook: w[r].isLook,
  19094. isOpen: r === 0 ? true : false,
  19095. tool: [],
  19096. });
  19097. }
  19098. var t = w[r].toolChoose;
  19099. for (var k = 0; k < t.length; k++) {
  19100. var tool = t[k].tool[0];
  19101. copyList[l].task[r].tool.push({
  19102. tool: tool,
  19103. isTool: false,
  19104. });
  19105. }
  19106. // this.navId = this.navId ? this.navId : l + "-" + r;
  19107. // this.navId = l + "-" + r;
  19108. }
  19109. }
  19110. this.navList = copyList;
  19111. this.navList[0].isOpen = false;
  19112. this.navList[this.courseType].isOpen = true;
  19113. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  19114. } else {
  19115. this.setNavList2();
  19116. }
  19117. },
  19118. setNavList2() {
  19119. for (var l = 0; l < this.chapInfoList.length; l++) {
  19120. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  19121. for (var r = 0; r < w.length; r++) {
  19122. this.navList[l].task[r].isLook = w[r].isLook;
  19123. }
  19124. }
  19125. if (
  19126. this.IsLookOpen &&
  19127. !this.navList[this.courseType].task[this.taskCount].isLook
  19128. ) {
  19129. this.openTask(0, 0, "0-0");
  19130. }
  19131. this.$forceUpdate();
  19132. },
  19133. getCourseState(type) {
  19134. let params = {
  19135. cid: this.id,
  19136. };
  19137. this.ajax
  19138. .get(this.$store.state.api + "getCourseState", params)
  19139. .then((res) => {
  19140. if (res.data[0].length > 0 && this.IsLookOpen && type == 1) {
  19141. this.chapInfoList = JSON.parse(res.data[0][0].state);
  19142. console.log('this.chapInfoList',this.chapInfoList);
  19143. this.setNavList();
  19144. this.$forceUpdate();
  19145. } else if (res.data[0].length > 0 && this.IsLookOpen && type == 2) {
  19146. this.addCourseState(2);
  19147. } else {
  19148. this.addCourseState(1);
  19149. }
  19150. })
  19151. .catch((err) => {
  19152. console.error(err);
  19153. });
  19154. },
  19155. addCourseState(type) {
  19156. let _state = this.chapInfoList;
  19157. // this.courseType this.taskCount
  19158. if (type == 1 || type == 2) {
  19159. for (var i = 0; i < _state.length; i++) {
  19160. let el = _state[i].chapterInfo[0].taskJson;
  19161. for (var j = 0; j < el.length; j++) {
  19162. // if (i == 0 && j == 0) {
  19163. // el[j].isLook = true;
  19164. // } else {
  19165. // el[j].isLook = false;
  19166. // }
  19167. if (
  19168. this.courseType > i ||
  19169. (this.courseType == i && this.taskCount + 1 > j)
  19170. ) {
  19171. el[j].isLook = true;
  19172. } else {
  19173. el[j].isLook = false;
  19174. }
  19175. }
  19176. }
  19177. }
  19178. let params = [
  19179. {
  19180. cid: this.id,
  19181. state: JSON.stringify(_state),
  19182. },
  19183. ];
  19184. this.ajax
  19185. .post(
  19186. this.$store.state.api +
  19187. (type == 1 ? "addCourseState" : "updateCourseSate"),
  19188. params
  19189. )
  19190. .then((res) => {
  19191. if (this.IsLookOpen) {
  19192. this.setNavList();
  19193. }
  19194. if (type == 3 && type == 2) {
  19195. this.getCourseState(1);
  19196. }
  19197. })
  19198. .catch((err) => {
  19199. console.error(err);
  19200. });
  19201. },
  19202. getHomeWork() {
  19203. let params = {
  19204. cid: this.id,
  19205. stage: this.courseType,
  19206. task: this.taskCount,
  19207. uid: this.userid,
  19208. };
  19209. this.ajax
  19210. .get(this.$store.state.api + "selectWork", params)
  19211. .then((res) => {
  19212. if (res.data[0].length > 0) {
  19213. this.studyJuri = JSON.parse(res.data[0][0].content);
  19214. this.isNoHomeWork = true;
  19215. }
  19216. })
  19217. .catch((err) => {
  19218. console.error(err);
  19219. });
  19220. },
  19221. isAssetTypeAnImage(ext) {
  19222. return (
  19223. [
  19224. "png",
  19225. "jpg",
  19226. "jpeg",
  19227. "bmp",
  19228. "gif",
  19229. "webp",
  19230. "psd",
  19231. "svg",
  19232. "tiff",
  19233. ].indexOf(ext) !== -1
  19234. );
  19235. },
  19236. switchVideo(media) {
  19237. this.playerO = {};
  19238. this.playerOptions.poster = "";
  19239. this.playerOptions.sources[0].src = media;
  19240. this.playerO = this.playerOptions;
  19241. },
  19242. onPlayerPlay() {},
  19243. onPlayerTimeupdate(player) {
  19244. let gklog = player.cache_.currentTime; //当前播放的秒数
  19245. let a = player.cache_.duration; //视频的总时长
  19246. let gklog2 = parseInt(gklog);
  19247. // if(gklog2 == '3'){
  19248. // player.pause()
  19249. // setTimeout(()=>{
  19250. // player.currentTime(gklog2+1)
  19251. // player.play()
  19252. // },1000)
  19253. // }
  19254. console.log(" onPlayerTimeupdate!", gklog);
  19255. console.log(" onPlayerTimeupdate!", gklog2);
  19256. },
  19257. lookVedio(u, i) {
  19258. this.isClickNav = "";
  19259. // this.playerOptions.sources[0].src = u;
  19260. var d = JSON.parse(JSON.stringify(this.playerOptions));
  19261. d.sources[0].src = u;
  19262. this.playerO[this.taskCount] = d;
  19263. this.showType = 0;
  19264. // this.isClickNav = "video" + i;
  19265. this.isClickNav = i;
  19266. this.$forceUpdate();
  19267. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  19268. },
  19269. lookText(i, t) {
  19270. this.isClickNav = "";
  19271. // this.text = this.textList[i][t];
  19272. this.text = this.vChapterData[i][t];
  19273. // this.dialogVisible1 = true;
  19274. this.showType = 1;
  19275. // this.isClickNav = "text" + t;
  19276. this.isClickNav = t;
  19277. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  19278. },
  19279. lookTools(i, t) {
  19280. this.chapTools = this.chapToolList[i][t];
  19281. this.dialogVisible2 = true;
  19282. },
  19283. async openFile(f) {
  19284. this.pptImgUrl = "";
  19285. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  19286. if (
  19287. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  19288. -1
  19289. ) {
  19290. let _uuurl = await this.checkLink(f);
  19291. this.pptImgUrl =
  19292. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19293. this.showPDF = false;
  19294. this.dialogVisible3 = true;
  19295. } else if (
  19296. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  19297. ) {
  19298. this.pptImgUrl = f;
  19299. this.showPDF = true;
  19300. this.dialogVisible3 = true;
  19301. }
  19302. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  19303. },
  19304. openTable(f) {
  19305. this.tableJson = JSON.parse(f.works);
  19306. this.dialogVisibleTable2 = true;
  19307. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  19308. },
  19309. openWord(f) {
  19310. this.tableJson = JSON.parse(f.works);
  19311. this.dialogVisibleTable3 = true;
  19312. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  19313. },
  19314. doUrl(url, i) {
  19315. this.isClickNav = "";
  19316. this.pptImgUrl1 = "";
  19317. this.showType = 2;
  19318. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  19319. url = "https://" + url;
  19320. }
  19321. this.pptImgUrl1 = "";
  19322. setTimeout(() => {
  19323. this.pptImgUrl1 = url;
  19324. }, 500);
  19325. // this.isClickNav = "line" + i;
  19326. this.isClickNav = i;
  19327. this.$forceUpdate();
  19328. },
  19329. checkPhoto(f, i) {
  19330. this.showType = 4;
  19331. this.pptImgUrl1 = f.url;
  19332. this.isClickNav = i;
  19333. this.$forceUpdate();
  19334. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  19335. },
  19336. async downFile(f, i) {
  19337. this.isClickNav = "";
  19338. this.pptImgUrl1 = "";
  19339. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  19340. if (
  19341. a.indexOf(
  19342. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  19343. ) != -1
  19344. ) {
  19345. let _uuurl = await this.checkLink(f.url);
  19346. this.pptImgUrl1 =
  19347. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  19348. // this.dialogVisible3 = true;
  19349. this.showType = 2;
  19350. } else if (
  19351. this.isAssetTypeAnImage(
  19352. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  19353. )
  19354. ) {
  19355. this.showType = 4;
  19356. this.pptImgUrl1 = f.url;
  19357. } else if (
  19358. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  19359. "PDF"
  19360. ) {
  19361. this.pptImgUrl1 = f.url;
  19362. // this.dialogVisible3 = true;
  19363. this.showType = 3;
  19364. } else {
  19365. window.open(this.file[i].url);
  19366. }
  19367. // this.isClickNav = "word" + i;
  19368. this.isClickNav = i;
  19369. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  19370. },
  19371. downFileList(i) {
  19372. window.open(this.noImgList[i].url);
  19373. },
  19374. openAddWork() {
  19375. this.dialogVisible = true;
  19376. },
  19377. addBzWorks() {
  19378. let params = [
  19379. {
  19380. uid: this.userid,
  19381. cid: this.id,
  19382. stage: this.courseType,
  19383. task: this.taskCount,
  19384. tool: this.toolindex,
  19385. content: JSON.stringify(this.eScore),
  19386. type: 6,
  19387. },
  19388. ];
  19389. this.ajax
  19390. .post(this.$store.state.api + "addCourseWorks", params)
  19391. .then((res) => {
  19392. this.$message({
  19393. message: "提交成功",
  19394. type: "success",
  19395. });
  19396. this.eScore = { eBzText: "", eStar: [] };
  19397. this.studentEvalDialogVisible = false;
  19398. this.selectSWorks();
  19399. })
  19400. .catch((err) => {
  19401. this.$message.error("提交失败");
  19402. console.error(err);
  19403. });
  19404. },
  19405. addBzWorksTeacher() {
  19406. let params = [
  19407. {
  19408. uid: this.sStudent.userid,
  19409. cid: this.id,
  19410. stage: this.courseType,
  19411. task: this.taskCount,
  19412. tool: this.toolindex,
  19413. content: JSON.stringify(this.eScore),
  19414. type: 6,
  19415. },
  19416. ];
  19417. this.ajax
  19418. .post(this.$store.state.api + "addCourseWorks", params)
  19419. .then((res) => {
  19420. this.$message({
  19421. message: "提交成功",
  19422. type: "success",
  19423. });
  19424. this.eScore = { eBzText: "", eStar: [] };
  19425. this.studentEvalDialogVisibleTeacher = false;
  19426. this.selectSWorks();
  19427. })
  19428. .catch((err) => {
  19429. this.$message.error("提交失败");
  19430. console.error(err);
  19431. });
  19432. },
  19433. addStudentAsk() {
  19434. if (!this.radio.length) {
  19435. this.$message.error("请选择选项");
  19436. return;
  19437. }
  19438. for (var i = 0; i < this.askJson.askCount; i++) {
  19439. if (
  19440. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19441. (this.radio[i] !== 0 && !this.radio[i])
  19442. ) {
  19443. this.$message.error("请选择选项");
  19444. return;
  19445. }
  19446. }
  19447. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19448. let params = [
  19449. {
  19450. uid: this.userid,
  19451. cid: this.id,
  19452. stage: this.courseType,
  19453. task: this.taskCount,
  19454. tool: this.toolindex,
  19455. content: JSON.stringify(this.askList),
  19456. type: 2,
  19457. },
  19458. ];
  19459. this.ajax
  19460. .post(this.$store.state.api + "addCourseWorks", params)
  19461. .then((res) => {
  19462. this.$message({
  19463. message: "提交成功",
  19464. type: "success",
  19465. });
  19466. this.askList = [];
  19467. this.dialogVisible5 = false;
  19468. this.selectStudent();
  19469. this.selectSWorks();
  19470. this.selectSLook();
  19471. })
  19472. .catch((err) => {
  19473. this.$message.error("提交失败");
  19474. console.error(err);
  19475. });
  19476. },
  19477. addStudentAskTeacher() {
  19478. if (!this.radio.length) {
  19479. this.$message.error("请选择选项");
  19480. return;
  19481. }
  19482. for (var i = 0; i < this.askJson.askCount; i++) {
  19483. if (
  19484. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19485. (this.radio[i] !== 0 && !this.radio[i])
  19486. ) {
  19487. this.$message.error("请选择选项");
  19488. return;
  19489. }
  19490. }
  19491. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  19492. let params = [
  19493. {
  19494. uid: this.sStudent.userid,
  19495. cid: this.id,
  19496. stage: this.courseType,
  19497. task: this.taskCount,
  19498. tool: this.toolindex,
  19499. content: JSON.stringify(this.askList),
  19500. type: 2,
  19501. },
  19502. ];
  19503. this.ajax
  19504. .post(this.$store.state.api + "addCourseWorks", params)
  19505. .then((res) => {
  19506. this.$message({
  19507. message: "提交成功",
  19508. type: "success",
  19509. });
  19510. this.askList = [];
  19511. this.dialogVisible5Teacher = false;
  19512. this.selectStudent();
  19513. this.selectSWorks();
  19514. this.selectSLook();
  19515. })
  19516. .catch((err) => {
  19517. this.$message.error("提交失败");
  19518. console.error(err);
  19519. });
  19520. },
  19521. addStudentTest() {
  19522. if (!this.radio.length) {
  19523. this.$message.error("请选择选项");
  19524. return;
  19525. }
  19526. for (var i = 0; i < this.testJson.testCount; i++) {
  19527. if (
  19528. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19529. (this.radio[i] !== 0 && !this.radio[i])
  19530. ) {
  19531. this.$message.error("请选择选项");
  19532. return;
  19533. }
  19534. }
  19535. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19536. let params = [
  19537. {
  19538. uid: this.userid,
  19539. cid: this.id,
  19540. stage: this.courseType,
  19541. task: this.taskCount,
  19542. tool: this.toolindex,
  19543. content: JSON.stringify(this.askList),
  19544. type: 8,
  19545. },
  19546. ];
  19547. this.ajax
  19548. .post(this.$store.state.api + "addCourseWorks", params)
  19549. .then((res) => {
  19550. this.$message({
  19551. message: "提交成功",
  19552. type: "success",
  19553. });
  19554. this.askList = [];
  19555. this.dialogVisibleChoice = false;
  19556. this.selectStudent();
  19557. this.selectSWorks();
  19558. this.selectSLook();
  19559. })
  19560. .catch((err) => {
  19561. this.$message.error("提交失败");
  19562. console.error(err);
  19563. });
  19564. },
  19565. addStudentTestTeacher() {
  19566. if (!this.radio.length) {
  19567. this.$message.error("请选择选项");
  19568. return;
  19569. }
  19570. for (var i = 0; i < this.testJson.testCount; i++) {
  19571. if (
  19572. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  19573. (this.radio[i] !== 0 && !this.radio[i])
  19574. ) {
  19575. this.$message.error("请选择选项");
  19576. return;
  19577. }
  19578. }
  19579. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  19580. let params = [
  19581. {
  19582. uid: this.sStudent.userid,
  19583. cid: this.id,
  19584. stage: this.courseType,
  19585. task: this.taskCount,
  19586. tool: this.toolindex,
  19587. content: JSON.stringify(this.askList),
  19588. type: 8,
  19589. },
  19590. ];
  19591. this.ajax
  19592. .post(this.$store.state.api + "addCourseWorks", params)
  19593. .then((res) => {
  19594. this.$message({
  19595. message: "提交成功",
  19596. type: "success",
  19597. });
  19598. this.askList = [];
  19599. this.dialogVisibleChoiceTeacher = false;
  19600. this.selectStudent();
  19601. this.selectSWorks();
  19602. this.selectSLook();
  19603. })
  19604. .catch((err) => {
  19605. this.$message.error("提交失败");
  19606. console.error(err);
  19607. });
  19608. },
  19609. addWork() {
  19610. if (this.studyJuri[0].content == "") {
  19611. this.$message.error("请将信息填写完整");
  19612. return;
  19613. } else if (this.studyJuri[0].cover.length == 0) {
  19614. this.$message.error("请将信息填写完整");
  19615. return;
  19616. } else if (this.studyJuri[0].upVedio.length == 0) {
  19617. this.$message.error("请将信息填写完整");
  19618. return;
  19619. }
  19620. if (this.isNoHomeWork) {
  19621. this.$confirm(
  19622. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  19623. "提示",
  19624. {
  19625. confirmButtonText: "确定",
  19626. cancelButtonText: "取消",
  19627. type: "warning",
  19628. }
  19629. )
  19630. .then(() => {
  19631. let params = [
  19632. {
  19633. uid: this.userid,
  19634. cid: this.id,
  19635. stage: this.courseType,
  19636. task: this.taskCount,
  19637. content: JSON.stringify(this.studyJuri),
  19638. },
  19639. ];
  19640. this.ajax
  19641. .post(this.$store.state.api + "addWorks", params)
  19642. .then((res) => {
  19643. this.$message({
  19644. message: "提交成功",
  19645. type: "success",
  19646. });
  19647. this.isNoHomeWork = true;
  19648. this.dialogVisible = false;
  19649. })
  19650. .catch((err) => {
  19651. this.$message.error("提交失败");
  19652. console.error(err);
  19653. });
  19654. })
  19655. .catch(() => {});
  19656. } else {
  19657. let params = [
  19658. {
  19659. uid: this.userid,
  19660. cid: this.id,
  19661. stage: this.courseType,
  19662. task: this.taskCount,
  19663. content: JSON.stringify(this.studyJuri),
  19664. },
  19665. ];
  19666. this.ajax
  19667. .post(this.$store.state.api + "addWorks", params)
  19668. .then((res) => {
  19669. this.$message({
  19670. message: "提交成功",
  19671. type: "success",
  19672. });
  19673. this.isNoHomeWork = true;
  19674. this.dialogVisible = false;
  19675. })
  19676. .catch((err) => {
  19677. this.$message.error("提交失败");
  19678. console.error(err);
  19679. });
  19680. }
  19681. },
  19682. selectCount() {
  19683. let params = {
  19684. cid: this.id,
  19685. chid: this.courseType,
  19686. uid: this.userid,
  19687. };
  19688. this.ajax
  19689. .get(this.$store.state.api + "selectToolsCount", params)
  19690. .then((res) => {
  19691. for (var i = 0; i < res.data[0].length; i++) {
  19692. if (res.data[0][i].tools == 1) {
  19693. this.wbCount = res.data[0][i].count;
  19694. } else if (res.data[0][i].tools == 2) {
  19695. this.wordCount = res.data[0][i].count;
  19696. } else if (res.data[0][i].tools == 3) {
  19697. this.mindCount = res.data[0][i].count;
  19698. } else if (res.data[0][i].tools == 4) {
  19699. this.askCount = res.data[0][i].count;
  19700. } else if (res.data[0][i].tools == 6) {
  19701. this.noteCount = res.data[0][i].count;
  19702. } else if (res.data[0][i].tools == 7) {
  19703. this.mindNetWorkCount = res.data[0][i].count;
  19704. } else if (res.data[0][i].tools == 8) {
  19705. this.libraryCount = res.data[0][i].count;
  19706. } else if (res.data[0][i].tools == 16) {
  19707. this.workCount = res.data[0][i].count;
  19708. } else if (res.data[0][i].tools == 10) {
  19709. this.timeCount = res.data[0][i].count;
  19710. } else if (res.data[0][i].tools == 15) {
  19711. this.answerCount = res.data[0][i].count;
  19712. } else if (res.data[0][i].tools == 18) {
  19713. this.trainCount = res.data[0][i].count;
  19714. }
  19715. }
  19716. })
  19717. .catch((err) => {
  19718. console.error(err);
  19719. });
  19720. },
  19721. openTools(t, i, index, c, sName,id) {
  19722. var z = JSON.parse(c);
  19723. this.noteName = sName;
  19724. if (t == 4) {
  19725. this.radio = [];
  19726. this.isAnswer = false;
  19727. let b = z[0].anwer;
  19728. this.radio = b;
  19729. this.askJson = z[0].askJson;
  19730. this.isAnswer = true;
  19731. this.dialogVisible5 = true;
  19732. } else if (t == 45) {
  19733. this.radio = [];
  19734. this.isAnswer = false;
  19735. let b = z[0].anwer;
  19736. this.radio = b;
  19737. this.testJson = z[0].testJson;
  19738. this.isAnswer = true;
  19739. this.dialogVisibleChoice = true;
  19740. }else if(t == 69){
  19741. this.oldEnglishJson1 = {}
  19742. this.oldEnglishJson = {}
  19743. this.englishList1 = {}
  19744. this.newEngIndex = -1;
  19745. this.isNoUserid = false;
  19746. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  19747. .toolChoose[i].englishList;
  19748. this.oldEnglishJson = z;
  19749. this.engWid = id;
  19750. this.newEnglishList = { engTitle:"",engText:"" }
  19751. this.newEnglishList1 = []
  19752. this.selectEngC(id,z);
  19753. }else if(t == 62){
  19754. this.videoType = 1;
  19755. this.videoJson = {};
  19756. this.videoJson = JSON.parse(c);
  19757. // this.videoJson =
  19758. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19759. // index
  19760. // ].toolChoose[i].videoJson;
  19761. this.dialogVisibleVideo = true;
  19762. }
  19763. // else if (t == 15) {
  19764. // this.answerQ = "";
  19765. // this.questionAnswer = "";
  19766. // this.answerQ = z[0].answerTitle;
  19767. // this.questionAnswer = z[0].answer;
  19768. // this.answerDialogVisible = true;
  19769. // }
  19770. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  19771. },
  19772. fastText(p, t) {
  19773. if (t == 1) {
  19774. this.commentText += p;
  19775. } else {
  19776. this.eScore.eBzText += p;
  19777. }
  19778. },
  19779. addTools(t, i, index) {
  19780. var a = 0;
  19781. // this.taskCount = index;
  19782. this.toolindex = i;
  19783. if (t == 1) {
  19784. if (this.wbCount > 0) {
  19785. this.updateCount(this.wbCount, t);
  19786. } else {
  19787. this.wbCount++;
  19788. a = this.wbCount;
  19789. this.toolsCount(a, t);
  19790. }
  19791. window.parent.postMessage(
  19792. {
  19793. tools: "1",
  19794. cid: this.id,
  19795. stage: this.courseType,
  19796. task: this.taskCount,
  19797. tool: i,
  19798. },
  19799. "*"
  19800. );
  19801. } else if (t == 2) {
  19802. if (this.wordCount > 0) {
  19803. this.updateCount(this.wordCount, t);
  19804. } else {
  19805. this.wordCount++;
  19806. a = this.wordCount;
  19807. this.toolsCount(a, t);
  19808. }
  19809. window.parent.postMessage({ tools: "2" }, "*");
  19810. } else if (t == 3) {
  19811. if (this.mindCount > 0) {
  19812. this.updateCount(this.mindCount, t);
  19813. } else {
  19814. this.mindCount++;
  19815. a = this.mindCount;
  19816. this.toolsCount(a, t);
  19817. }
  19818. window.parent.postMessage(
  19819. {
  19820. tools: "3",
  19821. cid: this.id,
  19822. stage: this.courseType,
  19823. task: this.taskCount,
  19824. tool: i,
  19825. },
  19826. "*"
  19827. );
  19828. } else if (t == 4) {
  19829. this.radio = [];
  19830. this.noteName = "";
  19831. this.isAnswer = false;
  19832. if (this.askCount > 0) {
  19833. this.updateCount(this.askCount, t);
  19834. } else {
  19835. this.askCount++;
  19836. a = this.askCount;
  19837. this.toolsCount(a, t);
  19838. }
  19839. if (!this.dialogVisible2) {
  19840. this.askJson.askJson =
  19841. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19842. index
  19843. ].toolChoose[i].askJson;
  19844. this.askJson.askTitle =
  19845. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19846. index
  19847. ].toolChoose[i].askTitle;
  19848. this.askJson.askCount =
  19849. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19850. index
  19851. ].toolChoose[i].askCount;
  19852. } else {
  19853. this.askJson.askJson = this.chapTools.askJson.askJson;
  19854. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  19855. this.askJson.askCount = this.chapTools.askJson.askCount;
  19856. }
  19857. for (var k = 0; k < this.askJson.askJson.length; k++) {
  19858. if (this.askJson.askJson[k].type == "2") {
  19859. this.radio.push([]);
  19860. } else {
  19861. this.radio.push("");
  19862. }
  19863. }
  19864. this.dialogVisible5 = true;
  19865. // window.parent.postMessage({ tools: "4" }, "*");
  19866. } else if (t == 45) {
  19867. this.noteName = "";
  19868. this.radio = [];
  19869. this.isAnswer = false;
  19870. if (this.askCount > 0) {
  19871. this.updateCount(this.askCount, t);
  19872. } else {
  19873. this.askCount++;
  19874. a = this.askCount;
  19875. this.toolsCount(a, t);
  19876. }
  19877. this.testJson =
  19878. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19879. index
  19880. ].toolChoose[i].testJson;
  19881. for (var k = 0; k < this.testJson.testJson.length; k++) {
  19882. if (this.testJson.testJson[k].type == "2") {
  19883. this.radio.push([]);
  19884. } else {
  19885. this.radio.push("");
  19886. }
  19887. }
  19888. this.dialogVisibleChoice = true;
  19889. // window.parent.postMessage({ tools: "4" }, "*");
  19890. } else if (t == 5) {
  19891. if (this.scoreCount > 0) {
  19892. this.updateCount(this.scoreCount, t);
  19893. } else {
  19894. this.scoreCount++;
  19895. a = this.scoreCount;
  19896. this.toolsCount(a, t);
  19897. }
  19898. this.dialogVisible4 = true;
  19899. // window.parent.postMessage({ tools: "5" }, "*");
  19900. } else if (t == 6) {
  19901. if (this.noteCount > 0) {
  19902. this.updateCount(this.noteCount, t);
  19903. } else {
  19904. this.noteCount++;
  19905. a = this.noteCount;
  19906. this.toolsCount(a, t);
  19907. }
  19908. window.parent.postMessage(
  19909. {
  19910. tools: "6",
  19911. cid: this.id,
  19912. stage: this.courseType,
  19913. task: this.taskCount,
  19914. tool: i,
  19915. },
  19916. "*"
  19917. );
  19918. } else if (t == 7) {
  19919. if (this.mindNetWorkCount > 0) {
  19920. this.updateCount(this.mindNetWorkCount, t);
  19921. } else {
  19922. this.mindNetWorkCount++;
  19923. a = this.mindNetWorkCount;
  19924. this.toolsCount(a, t);
  19925. }
  19926. window.parent.postMessage(
  19927. {
  19928. tools: "7",
  19929. cid: this.id,
  19930. stage: this.courseType,
  19931. task: this.taskCount,
  19932. tool: i,
  19933. },
  19934. "*"
  19935. );
  19936. } else if (t == 16) {
  19937. if (this.workCount > 0) {
  19938. this.updateCount(this.workCount, t);
  19939. } else {
  19940. this.workCount++;
  19941. a = this.workCount;
  19942. this.toolsCount(a, t);
  19943. }
  19944. this.dialogVisible = true;
  19945. } else if (t == 50) {
  19946. if (this.tType == 2) {
  19947. this.$message.error("不支持学生使用");
  19948. return;
  19949. }
  19950. this.plworkFile = [];
  19951. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  19952. if (!this.uploadCid) {
  19953. this.$message.error(
  19954. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  19955. );
  19956. return;
  19957. }
  19958. // this.uploadCid =
  19959. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19960. // index
  19961. // ].toolChoose[i].uploadJson[0];
  19962. this.selectUploadStudent(2);
  19963. } else if (t == 8) {
  19964. if (this.libraryCount > 0) {
  19965. this.updateCount(this.libraryCount, t);
  19966. } else {
  19967. this.libraryCount++;
  19968. a = this.libraryCount;
  19969. this.toolsCount(a, t);
  19970. }
  19971. window.parent.postMessage({ tools: "8" }, "*");
  19972. } else if (t == 17) {
  19973. if (this.libraryCount > 0) {
  19974. this.updateCount(this.libraryCount, t);
  19975. } else {
  19976. this.libraryCount++;
  19977. a = this.libraryCount;
  19978. this.toolsCount(a, t);
  19979. }
  19980. window.parent.postMessage({ tools: "17" }, "*");
  19981. } else if (t == 18) {
  19982. if (this.trainCount > 0) {
  19983. this.updateCount(this.trainCount, t);
  19984. } else {
  19985. this.trainCount++;
  19986. a = this.trainCount;
  19987. this.toolsCount(a, t);
  19988. }
  19989. window.parent.postMessage({ tools: "18" }, "*");
  19990. } else if (t == 10) {
  19991. if (this.timeCount > 0) {
  19992. this.updateCount(this.timeCount, t);
  19993. } else {
  19994. this.timeCount++;
  19995. a = this.timeCount;
  19996. this.toolsCount(a, t);
  19997. }
  19998. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  19999. .taskJson[index].toolChoose[i].preTime
  20000. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20001. .toolChoose[i].preTime
  20002. : "";
  20003. this.timeDialogVisible = true;
  20004. } else if (t == 15) {
  20005. this.answerQ = "";
  20006. this.questionAnswer = "";
  20007. if (this.answerCount > 0) {
  20008. this.updateCount(this.answerCount, t);
  20009. } else {
  20010. this.answerCount++;
  20011. a = this.answerCount;
  20012. this.toolsCount(a, t);
  20013. }
  20014. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  20015. .taskJson[index].toolChoose[i].answerQ
  20016. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20017. .toolChoose[i].answerQ
  20018. : "";
  20019. this.answerDialogVisible = true;
  20020. } else if (t == 21) {
  20021. window.parent.postMessage({ tools: "21" }, "*");
  20022. } else if (t == 22) {
  20023. window.parent.postMessage({ tools: "22" }, "*");
  20024. } else if (t == 23) {
  20025. window.parent.postMessage({ tools: "23" }, "*");
  20026. } else if (t == 24) {
  20027. window.parent.postMessage({ tools: "24" }, "*");
  20028. } else if (t == 25) {
  20029. window.parent.postMessage({ tools: "25" }, "*");
  20030. } else if (t == 31) {
  20031. window.parent.postMessage({ tools: "31" }, "*");
  20032. } else if (t == 28) {
  20033. window.parent.postMessage({ tools: "28" }, "*");
  20034. } else if (t == 37) {
  20035. window.parent.postMessage({ tools: "37" }, "*");
  20036. } else if (t == 38) {
  20037. window.parent.postMessage({ tools: "38" }, "*");
  20038. } else if (t == 39) {
  20039. window.parent.postMessage({ tools: "39" }, "*");
  20040. } else if (t == 32) {
  20041. window.parent.postMessage({ tools: "32" }, "*");
  20042. } else if (t == 66) {
  20043. window.parent.postMessage({ tools: "66" }, "*");
  20044. } else if (t == 67) {
  20045. window.parent.postMessage({ tools: "67" }, "*");
  20046. } else if (t == 68) {
  20047. window.parent.postMessage({ tools: "68" }, "*");
  20048. } else if (t == 57) {
  20049. // window.parent.postMessage({ tools: "57" }, "*");
  20050. window.parent.postMessage(
  20051. {
  20052. tools: "57u",
  20053. cid: this.id,
  20054. stage: this.courseType,
  20055. task: this.taskCount,
  20056. tool: i,
  20057. },
  20058. "*"
  20059. );
  20060. } else if (t == 58) {
  20061. window.parent.postMessage({ tools: "58" }, "*");
  20062. } else if (t == 59) {
  20063. window.parent.postMessage({ tools: "59" }, "*");
  20064. } else if (t == 60) {
  20065. window.parent.postMessage({ tools: "60" }, "*");
  20066. } else if (t == 61) {
  20067. window.parent.postMessage({ tools: "61" }, "*");
  20068. } else if (t == 63) {
  20069. window.parent.postMessage({ tools: "63" }, "*");
  20070. } else if (t == 71) {
  20071. window.parent.postMessage({ tools: "71" }, "*");
  20072. } else if (t == 69) {
  20073. if (this.worksStudent[i].length) {
  20074. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20075. if (this.userid == this.worksStudent[i][k].userid) {
  20076. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  20077. break;
  20078. } else {
  20079. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  20080. }
  20081. }
  20082. } else {
  20083. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  20084. }
  20085. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  20086. .taskJson[index].toolChoose[i].englishList
  20087. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20088. .toolChoose[i].englishList
  20089. : {};
  20090. this.englishToolIndex = i;
  20091. this.myAnList = this.myAnswerList1;
  20092. this.engDialogVisible = true;
  20093. } else if (t == 70) {
  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 && this.worksStudent[i][k].type == 17) {
  20097. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  20098. break;
  20099. } else {
  20100. this.englishVoiceJsonWork = [];
  20101. }
  20102. }
  20103. } else {
  20104. this.englishVoiceJsonWork = [];
  20105. }
  20106. let englishVoiceJson = {}
  20107. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20108. .taskJson[index].toolChoose[i].englishVoiceJson
  20109. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20110. .toolChoose[i].englishVoiceJson
  20111. : {};
  20112. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  20113. this.EnglishVoiceDialog = true;
  20114. } else if (t == 65) {
  20115. if (this.tType == 2) {
  20116. this.$message.error("不支持学生使用");
  20117. return;
  20118. }
  20119. this.uploadCid = this.tcid;
  20120. if (!this.uploadCid) {
  20121. this.$message.error(
  20122. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  20123. );
  20124. return;
  20125. }
  20126. this.selectPickStudent();
  20127. } else if (t == 26) {
  20128. window.parent.postMessage(
  20129. {
  20130. tools: "26",
  20131. cid: this.id,
  20132. stage: this.courseType,
  20133. task: this.taskCount,
  20134. tool: i,
  20135. },
  20136. "*"
  20137. );
  20138. } else if (t == 40) {
  20139. if (this.evalCount > 0) {
  20140. this.updateCount(this.evalCount, t);
  20141. } else {
  20142. this.evalCount++;
  20143. a = this.evalCount;
  20144. this.toolsCount(a, t);
  20145. }
  20146. this.eScore = { eBzText: "", eStar: [] };
  20147. if (this.worksStudent[i].length) {
  20148. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20149. if (this.userid == this.worksStudent[i][k].userid) {
  20150. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20151. this.rateJson =
  20152. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20153. index
  20154. ].toolChoose[i].rateJson;
  20155. break;
  20156. } else {
  20157. this.rateJson =
  20158. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20159. index
  20160. ].toolChoose[i].rateJson;
  20161. }
  20162. }
  20163. } else {
  20164. this.rateJson =
  20165. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20166. index
  20167. ].toolChoose[i].rateJson;
  20168. }
  20169. this.isStar = false;
  20170. this.studentEvalDialogVisible = true;
  20171. } else if (t == 41) {
  20172. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20173. .taskJson[index].toolChoose[i].selectJson
  20174. ? JSON.parse(
  20175. JSON.stringify(
  20176. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20177. index
  20178. ].toolChoose[i].selectJson
  20179. )
  20180. )
  20181. : { url: "", select: [], answer: [] };
  20182. if (this.worksStudent[i].length) {
  20183. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20184. if (this.userid == this.worksStudent[i][k].userid) {
  20185. var a = this.worksStudent[i][k].works.split(",");
  20186. for (var ki = 0; ki < a.length; ki++) {
  20187. a[ki] = parseInt(a[ki]);
  20188. }
  20189. this.selectAnswer = {
  20190. answer: a,
  20191. stu: this.worksStudent[i][k].sName,
  20192. };
  20193. break;
  20194. } else {
  20195. this.selectAnswer = { answer: [], stu: "" };
  20196. }
  20197. }
  20198. } else {
  20199. this.selectAnswer = { answer: [], stu: "" };
  20200. }
  20201. this.isSelect = false;
  20202. this.dialogVisibleSelect = true;
  20203. } else if (t == 44) {
  20204. window.parent.postMessage({ tools: "44" }, "*");
  20205. } else if (t == 47) {
  20206. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20207. .taskJson[index].toolChoose[i].sentenceList
  20208. ? JSON.parse(
  20209. JSON.stringify(
  20210. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20211. index
  20212. ].toolChoose[i].sentenceList
  20213. )
  20214. )
  20215. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20216. for (var q = 0; q < this.sentenceList.length; q++) {
  20217. this.sentenceList[q].chooseSenList = [];
  20218. this.sentenceList[q].addChangeSen = [];
  20219. this.sentenceList[q].addChangeSen = JSON.parse(
  20220. JSON.stringify(this.sentenceList[q].addSentence)
  20221. );
  20222. this.sentenceList[q].chooseSenList.length =
  20223. this.sentenceList[q].rightAnswer.length;
  20224. }
  20225. this.dialogVisibleSentence = true;
  20226. } else if (t == 48) {
  20227. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20228. .taskJson[index].toolChoose[i].tableJson
  20229. ? JSON.parse(
  20230. JSON.stringify(
  20231. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20232. index
  20233. ].toolChoose[i].tableJson
  20234. )
  20235. )
  20236. : { text: "" };
  20237. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  20238. if (this.worksStudent[i].length) {
  20239. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20240. if (this.userid == this.worksStudent[i][k].userid) {
  20241. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20242. break;
  20243. }
  20244. }
  20245. }
  20246. this.dialogVisibleTable = true;
  20247. } else if (t == 52) {
  20248. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20249. .taskJson[index].toolChoose[i].wordJson
  20250. ? JSON.parse(
  20251. JSON.stringify(
  20252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20253. index
  20254. ].toolChoose[i].wordJson
  20255. )
  20256. )
  20257. : { text: "" };
  20258. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  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.wordJson = JSON.parse(this.worksStudent[i][k].works);
  20263. break;
  20264. }
  20265. }
  20266. }
  20267. this.dialogVisibleWord = true;
  20268. } else if (t == 49) {
  20269. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  20270. return
  20271. }
  20272. this.groupJson =
  20273. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20274. index
  20275. ].toolChoose[i].groupJson;
  20276. this.islock = this.groupJson.islock == 1 ? true : false;
  20277. this.dialogVisibleGroup = true;
  20278. } else if (t == 62) {
  20279. this.videoType = 0;
  20280. this.videoJson = {};
  20281. this.videoJson =
  20282. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20283. index
  20284. ].toolChoose[i].videoJson;
  20285. this.dialogVisibleVideo = true;
  20286. }
  20287. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  20288. },
  20289. teacherWorkSubmit(t, i, index, s) {
  20290. this.sStudent = s;
  20291. this.toolindex = i;
  20292. this.sTool = t;
  20293. if (this.tType !== "1" && this.tType !== "4") {
  20294. return;
  20295. }
  20296. if (t == 16 || t == 32 || t == 50) {
  20297. this.dialogVisibleWorks = true;
  20298. } else if (t == 15) {
  20299. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  20300. .taskJson[index].toolChoose[i].answerQ
  20301. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  20302. .toolChoose[i].answerQ
  20303. : "";
  20304. this.questionAnswer = "";
  20305. this.answerDialogVisibleTeacher = true; //问答
  20306. } else if (t == 52) {
  20307. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20308. .taskJson[index].toolChoose[i].wordJson
  20309. ? JSON.parse(
  20310. JSON.stringify(
  20311. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20312. index
  20313. ].toolChoose[i].wordJson
  20314. )
  20315. )
  20316. : { text: "" };
  20317. if (this.worksStudent[i].length) {
  20318. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20319. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20320. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  20321. break;
  20322. }
  20323. }
  20324. }
  20325. this.dialogVisibleWordTeacher = true; //文档
  20326. } else if (t == 4) {
  20327. this.radio = [];
  20328. this.noteName = "";
  20329. this.isAnswer = false;
  20330. if (this.askCount > 0) {
  20331. this.updateCount(this.askCount, t);
  20332. } else {
  20333. this.askCount++;
  20334. a = this.askCount;
  20335. this.toolsCount(a, t);
  20336. }
  20337. if (!this.dialogVisible2) {
  20338. this.askJson.askJson =
  20339. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20340. index
  20341. ].toolChoose[i].askJson;
  20342. this.askJson.askTitle =
  20343. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20344. index
  20345. ].toolChoose[i].askTitle;
  20346. this.askJson.askCount =
  20347. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20348. index
  20349. ].toolChoose[i].askCount;
  20350. } else {
  20351. this.askJson.askJson = this.chapTools.askJson.askJson;
  20352. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  20353. this.askJson.askCount = this.chapTools.askJson.askCount;
  20354. }
  20355. for (var k = 0; k < this.askJson.askJson.length; k++) {
  20356. if (this.askJson.askJson[k].type == "2") {
  20357. this.radio.push([]);
  20358. } else {
  20359. this.radio.push("");
  20360. }
  20361. }
  20362. this.dialogVisible5Teacher = true;
  20363. } else if (t == 45) {
  20364. this.noteName = "";
  20365. this.radio = [];
  20366. this.isAnswer = false;
  20367. if (this.askCount > 0) {
  20368. this.updateCount(this.askCount, t);
  20369. } else {
  20370. this.askCount++;
  20371. a = this.askCount;
  20372. this.toolsCount(a, t);
  20373. }
  20374. this.testJson =
  20375. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20376. index
  20377. ].toolChoose[i].testJson;
  20378. for (var k = 0; k < this.testJson.testJson.length; k++) {
  20379. if (this.testJson.testJson[k].type == "2") {
  20380. this.radio.push([]);
  20381. } else {
  20382. this.radio.push("");
  20383. }
  20384. }
  20385. this.dialogVisibleChoiceTeacher = true;
  20386. } else if (t == 41) {
  20387. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20388. .taskJson[index].toolChoose[i].selectJson
  20389. ? JSON.parse(
  20390. JSON.stringify(
  20391. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20392. index
  20393. ].toolChoose[i].selectJson
  20394. )
  20395. )
  20396. : { url: "", select: [], answer: [] };
  20397. if (this.worksStudent[i].length) {
  20398. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20399. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20400. var a = this.worksStudent[i][k].works.split(",");
  20401. for (var ki = 0; ki < a.length; ki++) {
  20402. a[ki] = parseInt(a[ki]);
  20403. }
  20404. this.selectAnswer = {
  20405. answer: a,
  20406. stu: this.worksStudent[i][k].sName,
  20407. };
  20408. break;
  20409. } else {
  20410. this.selectAnswer = { answer: [], stu: "" };
  20411. }
  20412. }
  20413. } else {
  20414. this.selectAnswer = { answer: [], stu: "" };
  20415. }
  20416. this.isSelect = false;
  20417. this.dialogVisibleSelectTeacher = true;
  20418. } else if (t == 47) {
  20419. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  20420. .taskJson[index].toolChoose[i].sentenceList
  20421. ? JSON.parse(
  20422. JSON.stringify(
  20423. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20424. index
  20425. ].toolChoose[i].sentenceList
  20426. )
  20427. )
  20428. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  20429. for (var q = 0; q < this.sentenceList.length; q++) {
  20430. this.sentenceList[q].chooseSenList = [];
  20431. this.sentenceList[q].addChangeSen = [];
  20432. this.sentenceList[q].addChangeSen = JSON.parse(
  20433. JSON.stringify(this.sentenceList[q].addSentence)
  20434. );
  20435. this.sentenceList[q].chooseSenList.length =
  20436. this.sentenceList[q].rightAnswer.length;
  20437. }
  20438. this.dialogVisibleSentenceTeacher = true;
  20439. } else if (t == 48) {
  20440. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  20441. .taskJson[index].toolChoose[i].tableJson
  20442. ? JSON.parse(
  20443. JSON.stringify(
  20444. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20445. index
  20446. ].toolChoose[i].tableJson
  20447. )
  20448. )
  20449. : { text: "" };
  20450. if (this.worksStudent[i].length) {
  20451. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20452. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20453. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  20454. break;
  20455. }
  20456. }
  20457. }
  20458. this.dialogVisibleTableTeacher = true;
  20459. } else if (t == 40) {
  20460. if (this.evalCount > 0) {
  20461. this.updateCount(this.evalCount, t);
  20462. } else {
  20463. this.evalCount++;
  20464. a = this.evalCount;
  20465. this.toolsCount(a, t);
  20466. }
  20467. this.eScore = { eBzText: "", eStar: [] };
  20468. if (this.worksStudent[i].length) {
  20469. for (var k = 0; k < this.worksStudent[i].length; k++) {
  20470. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  20471. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  20472. this.rateJson =
  20473. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20474. index
  20475. ].toolChoose[i].rateJson;
  20476. break;
  20477. } else {
  20478. this.rateJson =
  20479. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20480. index
  20481. ].toolChoose[i].rateJson;
  20482. }
  20483. }
  20484. } else {
  20485. this.rateJson =
  20486. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20487. index
  20488. ].toolChoose[i].rateJson;
  20489. }
  20490. this.isStar = false;
  20491. this.studentEvalDialogVisibleTeacher = true;
  20492. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  20493. window.parent.postMessage(
  20494. {
  20495. tools: t + "teacher",
  20496. cid: this.id,
  20497. stage: this.courseType,
  20498. task: this.taskCount,
  20499. tool: i,
  20500. student: this.sStudent,
  20501. },
  20502. "*"
  20503. );
  20504. }
  20505. },
  20506. openCocoPi(tool, i, uid, uname) {
  20507. let student = {
  20508. userid: uid,
  20509. student: uname,
  20510. };
  20511. if (tool == 57) {
  20512. window.parent.postMessage(
  20513. {
  20514. tools: tool + "teacher",
  20515. cid: this.id,
  20516. stage: this.courseType,
  20517. task: this.taskCount,
  20518. tool: i,
  20519. student: student,
  20520. },
  20521. "*"
  20522. );
  20523. }
  20524. },
  20525. setRightAnswer(s, i, j) {
  20526. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  20527. if (
  20528. this.sentenceList[i].chooseSenList[q] == undefined ||
  20529. this.sentenceList[i].chooseSenList[q] == ""
  20530. ) {
  20531. this.sentenceList[i].chooseSenList[q] = s;
  20532. this.sentenceList[i].addChangeSen[j] = "";
  20533. break;
  20534. }
  20535. }
  20536. this.$forceUpdate();
  20537. },
  20538. returnCard(r, i, j) {
  20539. var a = this.sentenceList[i].addSentence.indexOf(r);
  20540. this.sentenceList[i].chooseSenList[j] = "";
  20541. this.sentenceList[i].addChangeSen[a] = r;
  20542. this.$forceUpdate();
  20543. },
  20544. // addSentenceTool() {
  20545. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20546. // this.taskCount
  20547. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  20548. // this.sentenceList = [
  20549. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  20550. // ];
  20551. // this.dialogVisibleSentence = false;
  20552. // },
  20553. toolsCount(a, t) {
  20554. let params = {
  20555. cid: this.id,
  20556. chid: this.courseType,
  20557. uid: this.userid,
  20558. tid: t,
  20559. count: a,
  20560. };
  20561. this.ajax
  20562. .get(this.$store.state.api + "insertToolsCount", params)
  20563. .then((res) => {
  20564. this.selectCount();
  20565. })
  20566. .catch((err) => {
  20567. console.error(err);
  20568. });
  20569. },
  20570. updateCount(c, t) {
  20571. c++;
  20572. let params = {
  20573. cid: this.id,
  20574. chid: this.courseType,
  20575. uid: this.userid,
  20576. tid: t,
  20577. count: c,
  20578. };
  20579. this.ajax
  20580. .get(this.$store.state.api + "updateToolsCount", params)
  20581. .then((res) => {
  20582. this.selectCount();
  20583. })
  20584. .catch((err) => {
  20585. console.error(err);
  20586. });
  20587. },
  20588. checkEva() {
  20589. if (this.evalua != "") {
  20590. for (var i = 0; i < this.evaJuri.length; i++) {
  20591. if (this.evalua == this.evaJuri[i].id) {
  20592. this.eTitle = this.evaJuri[i].title;
  20593. this.eJson = JSON.parse(this.evaJuri[i].content);
  20594. }
  20595. }
  20596. this.$forceUpdate();
  20597. setTimeout(() => {
  20598. this.setMindData();
  20599. }, 0);
  20600. }
  20601. },
  20602. selectEva() {
  20603. let params = {
  20604. oid: this.oid,
  20605. };
  20606. this.ajax
  20607. .get(this.$store.state.api + "selectAllEvaluation", params)
  20608. .then((res) => {
  20609. this.evaJuri = res.data[0];
  20610. })
  20611. .catch((err) => {
  20612. console.error(err);
  20613. });
  20614. },
  20615. setMindData() {
  20616. this.data.data = [];
  20617. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  20618. let _eJson = Object.keys(this.eJson);
  20619. let _e = this.eJson;
  20620. for (let i = 0; i < _eJson.length; i++) {
  20621. let element = _e[_eJson[i]];
  20622. this.data.data.push({
  20623. id: element.id,
  20624. parentid: "root",
  20625. topic: element.name,
  20626. });
  20627. let _eJsonc = Object.keys(element.child);
  20628. let _e2 = element.child;
  20629. for (let j = 0; j < _eJsonc.length; j++) {
  20630. let _ec = _e2[_eJsonc[j]];
  20631. this.data.data.push({
  20632. id: _ec.id,
  20633. parentid: element.id,
  20634. topic: _ec.name,
  20635. });
  20636. let _eJsonz = Object.keys(_ec.child);
  20637. let _e3 = _ec.child;
  20638. for (let z = 0; z < _eJsonz.length; z++) {
  20639. let _ez = _e3[_eJsonz[z]];
  20640. this.data.data.push({
  20641. id: _ez.id,
  20642. parentid: _ec.id,
  20643. topic: _ez.name,
  20644. });
  20645. }
  20646. }
  20647. }
  20648. this.$forceUpdate();
  20649. },
  20650. checkFileFull(type, url) {
  20651. this.fullDialogVisible = true;
  20652. this.fulltype = type;
  20653. this.fullUrl = url;
  20654. },
  20655. async checkFileFull1(t, f) {
  20656. this.fullDialogVisible = true;
  20657. if (t == 6) {
  20658. this.fulltype = 1;
  20659. this.fullUrl = JSON.parse(JSON.stringify(f));
  20660. } else if (t == 8) {
  20661. this.fulltype = 2;
  20662. this.fullUrl = f.url;
  20663. } else if (
  20664. t == 3 &&
  20665. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  20666. "PDF"
  20667. ) {
  20668. this.fulltype = 3;
  20669. this.fullUrl = f.url;
  20670. } else if (t == 3) {
  20671. this.fulltype = 2;
  20672. let _uuurl = await this.checkLink(f.url);
  20673. this.fullUrl =
  20674. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  20675. }
  20676. },
  20677. openSname(n, id, i, uid) {
  20678. this.snameWid = id;
  20679. this.worksSName = n;
  20680. this.worksSid = uid == n ? "" : uid;
  20681. this.toolindex = i;
  20682. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  20683. if (!this.uploadCid) {
  20684. this.$message.error(
  20685. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  20686. );
  20687. return;
  20688. }
  20689. this.selectUploadStudent(1);
  20690. },
  20691. updateName() {
  20692. let params = {
  20693. n: this.worksSName,
  20694. cid: this.snameWid,
  20695. };
  20696. this.ajax
  20697. .get(this.$store.state.api + "updateCourseWorksName", params)
  20698. .then((res) => {
  20699. this.$message({
  20700. message: "修改成功",
  20701. type: "success",
  20702. });
  20703. this.dialogVisibleSname = false;
  20704. this.getCourseDetail(2);
  20705. this.snameWid = "";
  20706. this.worksSName = "";
  20707. })
  20708. .catch((err) => {
  20709. console.error(err);
  20710. });
  20711. },
  20712. downloadFile2(f) {
  20713. // const loading = this.$loading.service({
  20714. // background: "rgba(255, 255, 255, 0.7)",
  20715. // target: document.body,
  20716. // text: "文件加载中...",
  20717. // });
  20718. // let url2 = f.url;
  20719. // let _url2 = "";
  20720. // if (
  20721. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20722. // ) {
  20723. // _url2 = url2.split(
  20724. // "https://view.officeapps.live.com/op/view.aspx?src="
  20725. // )[1];
  20726. // } else {
  20727. // _url2 = url2;
  20728. // }
  20729. // let params = {
  20730. // url: _url2,
  20731. // name: f.name,
  20732. // };
  20733. // this.ajax
  20734. // .get(this.$store.state.api + "download", params)
  20735. // .then((res) => {
  20736. // loading.close();
  20737. // let content = res.data.data.data;
  20738. // let ab = new ArrayBuffer(content.length);
  20739. // let view = new Uint8Array(ab);
  20740. // for (var i = 0; i < content.length; ++i) {
  20741. // view[i] = content[i];
  20742. // }
  20743. // let elink = document.createElement("a");
  20744. // elink.download = f.name;
  20745. // elink.style.display = "none";
  20746. // let blob = new Blob([ab], {
  20747. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  20748. // });
  20749. // elink.href = URL.createObjectURL(blob);
  20750. // document.body.appendChild(elink);
  20751. // elink.click();
  20752. // document.body.removeChild(elink);
  20753. // })
  20754. // .catch((err) => {
  20755. // loading.close();
  20756. // console.error(err);
  20757. // });
  20758. var credentials = {
  20759. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20760. secretAccessKey: "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",
  20761. }; //秘钥形式的登录上传
  20762. window.AWS.config.update(credentials);
  20763. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20764. let url2 = f.url;
  20765. let _url2 = "";
  20766. if (
  20767. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20768. ) {
  20769. _url2 = url2.split(
  20770. "https://view.officeapps.live.com/op/view.aspx?src="
  20771. )[1];
  20772. } else {
  20773. _url2 = url2;
  20774. }
  20775. let _this = this;
  20776. _this.downLoading = true
  20777. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20778. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20779. var params = {
  20780. Bucket: "ccrb",
  20781. Key: name
  20782. };
  20783. s3.getObject(params, function (err, data) {
  20784. _this.downLoading = false
  20785. if (err) console.log(err, err.stack); // an error occurred
  20786. else {
  20787. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20788. let a = document.createElement("a");
  20789. a.name = f.name;
  20790. a.href = url;
  20791. a.download = f.name;
  20792. a.click();
  20793. console.log(data);
  20794. } // sxuccessful response
  20795. });
  20796. return;
  20797. let url = f.url;
  20798. let _url = "";
  20799. if (
  20800. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20801. ) {
  20802. _url = url.split(
  20803. "https://view.officeapps.live.com/op/view.aspx?src="
  20804. )[1];
  20805. } else {
  20806. _url = url;
  20807. }
  20808. _this.downLoading = true
  20809. // const loading = _this.$loading.service({
  20810. // background: "rgba(255, 255, 255, 0.7)",
  20811. // target: document.body,
  20812. // text: "文件加载中...",
  20813. // });
  20814. let x = new XMLHttpRequest();
  20815. x.open("GET", _url, true);
  20816. x.responseType = "blob";
  20817. x.onload = function () {
  20818. _this.downLoading = false
  20819. // loading.close();
  20820. let url = window.URL.createObjectURL(new Blob([x.response]));
  20821. let a = document.createElement("a");
  20822. a.name = f.name;
  20823. a.href = url;
  20824. a.download = f.name;
  20825. a.click();
  20826. };
  20827. x.send();
  20828. },
  20829. downloadFile(url) {
  20830. let hz = url.substring(url.lastIndexOf(".") + 1);
  20831. if(hz == "txt" || hz == "md"){
  20832. this.lookTxt(url)
  20833. return
  20834. }
  20835. var credentials = {
  20836. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20837. secretAccessKey: "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",
  20838. }; //秘钥形式的登录上传
  20839. window.AWS.config.update(credentials);
  20840. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20841. let url2 = url;
  20842. let _url2 = "";
  20843. if (
  20844. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20845. ) {
  20846. _url2 = url2.split(
  20847. "https://view.officeapps.live.com/op/view.aspx?src="
  20848. )[1];
  20849. } else {
  20850. _url2 = url2;
  20851. }
  20852. const loading2 = this.$loading.service({
  20853. background: "rgba(255, 255, 255, 0.7)",
  20854. target: document.body,
  20855. text: "文件加载中...",
  20856. });
  20857. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  20858. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  20859. var params = {
  20860. Bucket: "ccrb",
  20861. Key: name
  20862. };
  20863. s3.getObject(params, function (err, data) {
  20864. loading2.close();
  20865. if (err) console.log(err, err.stack); // an error occurred
  20866. else {
  20867. let url = window.URL.createObjectURL(new Blob([data.Body]));
  20868. let a = document.createElement("a");
  20869. a.name = name;
  20870. a.href = url;
  20871. a.download = name;
  20872. a.click();
  20873. console.log(data);
  20874. } // sxuccessful response
  20875. });
  20876. return;
  20877. let _this = this;
  20878. let _url = "";
  20879. if (
  20880. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  20881. ) {
  20882. _url = url.split(
  20883. "https://view.officeapps.live.com/op/view.aspx?src="
  20884. )[1];
  20885. } else {
  20886. _url = url;
  20887. }
  20888. const x = new XMLHttpRequest();
  20889. x.open("GET", _url, true);
  20890. x.responseType = "blob";
  20891. const loading = _this.$loading.service({
  20892. background: "rgba(255, 255, 255, 0.7)",
  20893. target: document.body,
  20894. text: "文件加载中...",
  20895. });
  20896. // _this.$message.success("文件下载中...");
  20897. x.onload = function (e) {
  20898. loading.close();
  20899. let content = x.response;
  20900. let elink = document.createElement("a");
  20901. elink.download = decodeURI(
  20902. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  20903. );
  20904. elink.style.display = "none";
  20905. let blob = new Blob([content]);
  20906. elink.href = URL.createObjectURL(blob);
  20907. document.body.appendChild(elink);
  20908. elink.click();
  20909. document.body.removeChild(elink);
  20910. };
  20911. x.send();
  20912. },
  20913. openLine(url) {
  20914. window.open(url);
  20915. },
  20916. resize() {
  20917. if (document.getElementsByClassName("box_course").length) {
  20918. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  20919. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  20920. if (this.showType == 2 || this.showType == 3) {
  20921. document.getElementsByClassName("navBox")[0].style.height =
  20922. a - 40 + 0+ "px";
  20923. } else {
  20924. document.getElementsByClassName("navBox")[0].style.height =
  20925. a - 40 + "px";
  20926. }
  20927. }
  20928. this.Stbodywidth =
  20929. document.getElementsByClassName("student_body").length &&
  20930. document.getElementsByClassName("student_body")[0].offsetWidth;
  20931. },
  20932. closeDraw() {
  20933. this.bg = null;
  20934. this.drawShow = false;
  20935. },
  20936. showPicturePaint(url) {
  20937. let params = {
  20938. img: url,
  20939. };
  20940. this.ajax
  20941. .get(this.$store.state.api + "imgToBase64", params)
  20942. .then((res) => {
  20943. this.drawShow = true;
  20944. this.bg = res.data[0].img;
  20945. })
  20946. .catch((err) => {
  20947. console.error(err);
  20948. });
  20949. },
  20950. addImgDraw(base64) {
  20951. let file = { name: "批注图.png" };
  20952. let img = this.dataUrlToFile(base64, file);
  20953. this.beforeUpload1(img, 5);
  20954. },
  20955. addImgDrawImG(url) {
  20956. // console.log(url);
  20957. let params = [
  20958. {
  20959. wid: this.commentDetail.wid,
  20960. img: url,
  20961. },
  20962. ];
  20963. this.ajax
  20964. .post(this.$store.state.api + "updateCourseWorks", params)
  20965. .then((res) => {
  20966. this.$message({
  20967. message: "提交成功",
  20968. type: "success",
  20969. });
  20970. this.drawShow = false;
  20971. this.bg = "";
  20972. this.selectSWorks();
  20973. this.selectStudent();
  20974. })
  20975. .catch((err) => {
  20976. this.$message.error("提交失败");
  20977. console.error(err);
  20978. });
  20979. },
  20980. deletePicturePaint() {
  20981. this.$confirm("确定删除此批注吗?", "提示", {
  20982. confirmButtonText: "确定",
  20983. cancelButtonText: "取消",
  20984. type: "warning",
  20985. })
  20986. .then(() => {
  20987. let params = [
  20988. {
  20989. wid: this.commentDetail.wid,
  20990. img: "",
  20991. },
  20992. ];
  20993. this.ajax
  20994. .post(this.$store.state.api + "updateCourseWorks", params)
  20995. .then((res) => {
  20996. this.$message({
  20997. message: "删除成功",
  20998. type: "success",
  20999. });
  21000. this.selectSWorks();
  21001. this.selectStudent();
  21002. })
  21003. .catch((err) => {
  21004. this.$message.error("删除失败");
  21005. console.error(err);
  21006. });
  21007. })
  21008. .catch(() => {});
  21009. },
  21010. getAudioVideo(constraintsData) {
  21011. if (navigator.mediaDevices === undefined) {
  21012. navigator.mediaDevices = {};
  21013. }
  21014. if (navigator.mediaDevices.getUserMedia === undefined) {
  21015. navigator.mediaDevices.getUserMedia = function (constraints) {
  21016. // 首先,如果有getUserMedia的话,就获得它
  21017. var getUserMedia =
  21018. navigator.getUserMedia ||
  21019. navigator.webkitGetUserMedia ||
  21020. navigator.mozGetUserMedia ||
  21021. navigator.msGetUserMedia;
  21022. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  21023. if (!getUserMedia) {
  21024. return Promise.reject({ code: 404 });
  21025. }
  21026. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  21027. return new Promise(function (resolve, reject) {
  21028. getUserMedia.call(navigator, constraints, resolve, reject);
  21029. });
  21030. };
  21031. }
  21032. return navigator.mediaDevices.getUserMedia(constraintsData);
  21033. },
  21034. /**
  21035. * 开始录制
  21036. */
  21037. startRecording(callback) {
  21038. let _function = (screenStream) => {
  21039. this.addStreamStopListener(screenStream, () => {
  21040. console.log("流停止监听");
  21041. this.stopRecording();
  21042. this.$emit("streamStop", {});
  21043. // this.stopRecording();
  21044. });
  21045. var options = {
  21046. type: "video",
  21047. mimeType: "video/webm",
  21048. disableLogs: false,
  21049. getNativeBlob: false, // enable it for longer recordings
  21050. ignoreMutedMedia: false,
  21051. };
  21052. // this.video.srcObject = screenStream;
  21053. this.recorder = RecordRTC(screenStream, options);
  21054. this.recorder.startRecording();
  21055. this.recorder.screen = screenStream;
  21056. this.videoStart = true;
  21057. // callback(true);
  21058. };
  21059. this.getAudioVideo({ audio: true })
  21060. .then((res) => {
  21061. this.captureScreen(_function, true);
  21062. console.log("已点击允许,开启成功");
  21063. })
  21064. .catch((err) => {
  21065. // console.log('浏览器不支持,请更换浏览器')
  21066. // } else {
  21067. this.captureScreen(_function, false);
  21068. console.log("请检查是否存在麦克风");
  21069. });
  21070. },
  21071. /**
  21072. * 停止录制
  21073. */
  21074. stopRecording(callback) {
  21075. this.recorder.stopRecording(() => {
  21076. // this.video.src = this.video.srcObject = null;
  21077. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  21078. const url = URL.createObjectURL(this.recorder.getBlob());
  21079. const a = document.createElement("a"); //this.fileName+
  21080. let videoFile = new File(
  21081. [this.recorder.getBlob()],
  21082. this.courseDetail.title + "录屏.mp4",
  21083. {
  21084. type: "video/mp4",
  21085. }
  21086. );
  21087. let downloadUrl = URL.createObjectURL(videoFile);
  21088. document.body.appendChild(a);
  21089. a.style.display = "none";
  21090. a.href = url;
  21091. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  21092. a.click();
  21093. this.recorder.screen.stop();
  21094. this.recorder.destroy();
  21095. this.recorder = null;
  21096. this.videoStart = false;
  21097. // callback(false);
  21098. });
  21099. },
  21100. //初始化
  21101. captureScreen(callback, type) {
  21102. if (navigator.getDisplayMedia) {
  21103. //录制结束,文件下载
  21104. navigator
  21105. .getDisplayMedia({
  21106. video: true,
  21107. })
  21108. .then((screenStream) => {
  21109. if (type) {
  21110. navigator.mediaDevices
  21111. .getUserMedia({ audio: true })
  21112. .then((mic) => {
  21113. screenStream.addTrack(mic.getTracks()[0]);
  21114. callback(screenStream);
  21115. });
  21116. } else {
  21117. callback(screenStream);
  21118. }
  21119. })
  21120. .catch(function (error) {
  21121. console.log("error", error);
  21122. });
  21123. } else if (navigator.mediaDevices.getDisplayMedia) {
  21124. navigator.mediaDevices
  21125. .getDisplayMedia({
  21126. video: true,
  21127. })
  21128. .then((screenStream) => {
  21129. if (type) {
  21130. navigator.mediaDevices
  21131. .getUserMedia({ audio: true })
  21132. .then((mic) => {
  21133. screenStream.addTrack(mic.getTracks()[0]);
  21134. callback(screenStream);
  21135. });
  21136. } else {
  21137. callback(screenStream);
  21138. }
  21139. })
  21140. .catch(function (error) {
  21141. console.log("error", error);
  21142. });
  21143. } else {
  21144. var error = "getDisplayMedia API are not supported in this browser.";
  21145. console.log("error", error);
  21146. alert(error);
  21147. }
  21148. },
  21149. //流监听
  21150. addStreamStopListener(stream, callback) {
  21151. stream.addEventListener(
  21152. "ended",
  21153. function () {
  21154. callback();
  21155. callback = function () {};
  21156. },
  21157. false
  21158. );
  21159. stream.addEventListener(
  21160. "inactive",
  21161. function () {
  21162. callback();
  21163. callback = function () {};
  21164. },
  21165. false
  21166. );
  21167. stream.getTracks().forEach(function (track) {
  21168. track.addEventListener(
  21169. "ended",
  21170. function () {
  21171. callback();
  21172. callback = function () {};
  21173. },
  21174. false
  21175. );
  21176. track.addEventListener(
  21177. "inactive",
  21178. function () {
  21179. callback();
  21180. callback = function () {};
  21181. },
  21182. false
  21183. );
  21184. });
  21185. },
  21186. updateGroup() {
  21187. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  21188. this.dialogVisibleGroup2 = true;
  21189. },
  21190. numberPan() {
  21191. if (
  21192. /[^\d]/.test(this.groupJson.number) ||
  21193. this.groupJson.number < 2 ||
  21194. this.groupJson.number > 10
  21195. ) {
  21196. this.$message.error("请输入2-10的数字");
  21197. this.groupJson.number = "";
  21198. }
  21199. },
  21200. updateGroupJson() {
  21201. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  21202. if (
  21203. this.groupStudentUid[this.toolindex][i].length >
  21204. this.groupJson2.number
  21205. ) {
  21206. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  21207. return;
  21208. }
  21209. }
  21210. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  21211. this.islock = this.groupJson.islock == 1 ? true : false;
  21212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  21213. this.taskCount
  21214. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  21215. let params = [
  21216. {
  21217. cid: this.id,
  21218. chapters: JSON.stringify(this.chapInfoList),
  21219. uid: this.userid,
  21220. unitIndex: this.courseType,
  21221. },
  21222. ];
  21223. this.ajax
  21224. .post(this.$store.state.api + "updateWorkNew4", params)
  21225. .then((res) => {
  21226. this.$message.success("设置成功");
  21227. this.getCourseDetail(2);
  21228. this.dialogVisibleGroup2 = false;
  21229. this.groupJson2 = {};
  21230. this.$forceUpdate();
  21231. })
  21232. .catch((err) => {
  21233. this.$message.error("网络不佳");
  21234. console.error(err);
  21235. });
  21236. },
  21237. lockChair() {
  21238. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  21239. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  21240. this.updateGroupJson();
  21241. },
  21242. selectGroup(index) {
  21243. this.getCourseDetail(2, index);
  21244. },
  21245. joinGroup(index) {
  21246. if (this.groupJson.islock == 2) {
  21247. this.$message.error("位置已被锁定,无法加入");
  21248. return;
  21249. }
  21250. if (
  21251. this.groupStudent[this.toolindex][index].length >
  21252. this.groupJson.number ||
  21253. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  21254. ) {
  21255. this.$message.error("位置已满,无法加入");
  21256. return;
  21257. }
  21258. let params = [
  21259. {
  21260. cid: this.id,
  21261. stage: this.courseType,
  21262. task: this.taskCount,
  21263. tool: this.toolindex,
  21264. g: index,
  21265. uid: this.userid,
  21266. },
  21267. ];
  21268. this.ajax
  21269. .post(this.$store.state.api + "joinGroup", params)
  21270. .then((res) => {
  21271. this.$message.success("加入成功");
  21272. this.getCourseDetail(2);
  21273. })
  21274. .catch((err) => {
  21275. this.$message.error("网络不佳");
  21276. console.error(err);
  21277. });
  21278. },
  21279. exitGroup(id) {
  21280. if (this.groupJson.islock == 2) {
  21281. this.$message.error("位置已被锁定,无法退出");
  21282. return;
  21283. }
  21284. let params = [
  21285. {
  21286. gid: id,
  21287. },
  21288. ];
  21289. this.ajax
  21290. .post(this.$store.state.api + "exitGroup", 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. groupUpload(index, task, gindex) {
  21301. this.taskCount = task;
  21302. this.toolindex = index;
  21303. this.groupIndex = gindex;
  21304. this.dialogVisibleGroupWork = true;
  21305. },
  21306. updateGroupChair(user) {
  21307. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  21308. el.label = index;
  21309. return index != user.group;
  21310. });
  21311. this.updateGroupUser = user;
  21312. this.dialogVisibleUpdateGroup = true;
  21313. },
  21314. updateChair() {
  21315. if (
  21316. this.groupStudent[this.toolindex][this.checkChair].length >
  21317. this.groupJson.number ||
  21318. this.groupStudent[this.toolindex][this.checkChair].length ==
  21319. this.groupJson.number
  21320. ) {
  21321. this.$message.error("位置已满,无法加入");
  21322. return;
  21323. }
  21324. let params = [
  21325. {
  21326. cid: this.id,
  21327. stage: this.courseType,
  21328. task: this.taskCount,
  21329. tool: this.toolindex,
  21330. g: this.checkChair,
  21331. uid: this.updateGroupUser.userid,
  21332. },
  21333. ];
  21334. this.ajax
  21335. .post(this.$store.state.api + "joinGroup", params)
  21336. .then((res) => {
  21337. this.$message.success("修改成功");
  21338. this.updateGroupUser = {};
  21339. this.checkChair = "";
  21340. this.updateGroupArray = {};
  21341. this.dialogVisibleUpdateGroup = false;
  21342. this.getCourseDetail(2);
  21343. })
  21344. .catch((err) => {
  21345. this.$message.error("网络不佳");
  21346. console.error(err);
  21347. });
  21348. },
  21349. deleteGroupChair(gindex) {
  21350. this.checkDeleteGroup = [];
  21351. this.deleteGroupUser = JSON.parse(
  21352. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  21353. );
  21354. this.deleteGroupArray = this.groupJson.group[gindex];
  21355. this.groupIndex = gindex;
  21356. this.dialogVisibleDeleteGroup = true;
  21357. },
  21358. async deleteChair() {
  21359. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  21360. const gid =
  21361. this.groupStudent[this.toolindex][this.groupIndex][
  21362. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  21363. this.checkDeleteGroup[i]
  21364. )
  21365. ];
  21366. let params = [
  21367. {
  21368. gid: gid.id,
  21369. },
  21370. ];
  21371. var a = await this.deleteChairA(params);
  21372. if (i == this.checkDeleteGroup.length - 1) {
  21373. this.$message.success("退出成功");
  21374. this.dialogVisibleDeleteGroup = false;
  21375. this.deleteGroupUser = [];
  21376. this.deleteGroupArray = {};
  21377. this.groupIndex = "";
  21378. this.checkDeleteGroup = [];
  21379. this.getCourseDetail(2);
  21380. }
  21381. }
  21382. },
  21383. deleteChairA(params) {
  21384. return new Promise((resolve, reject) => {
  21385. this.ajax
  21386. .post(this.$store.state.api + "exitGroup", params)
  21387. .then((res) => {
  21388. resolve(1);
  21389. })
  21390. .catch((err) => {
  21391. this.$message.error("网络不佳");
  21392. console.error(err);
  21393. });
  21394. });
  21395. },
  21396. contract(i) {
  21397. if (this.isCloseList[i].isClose == 0) {
  21398. this.isCloseList[i].isClose = 1;
  21399. } else {
  21400. this.isCloseList[i].isClose = 0;
  21401. }
  21402. this.$forceUpdate();
  21403. },
  21404. openWordCloud(toolindex) {
  21405. let array = [];
  21406. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  21407. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  21408. array.push({ name: works });
  21409. }
  21410. if (this.isGroup) {
  21411. for (var i = 0; i < this.courseGroup.group.length; i++) {
  21412. let works = this.courseGroup.group[i].works[toolindex];
  21413. for (var j = 0; j < works.length; j++) {
  21414. let answer = JSON.parse(works[j].works)[0].answer;
  21415. array.push({ name: answer });
  21416. }
  21417. }
  21418. }
  21419. this.wordCloudData = array;
  21420. this.dialogVisibleWordCloud = true;
  21421. },
  21422. openTips(i) {
  21423. this.tipsIndex = i;
  21424. this.downDialogVisible = true;
  21425. },
  21426. uploadWorks() {
  21427. this.$confirm("确定导出作业吗?", "提示", {
  21428. confirmButtonText: "确定",
  21429. cancelButtonText: "取消",
  21430. type: "warning",
  21431. })
  21432. .then(() => {
  21433. const loading = this.$loading.service({
  21434. background: "rgba(255, 255, 255, 0.7)",
  21435. target: document.body,
  21436. text: "文件加载中...",
  21437. });
  21438. const _worksStudent = this.worksStudent;
  21439. let url = [];
  21440. var counts = {};
  21441. for (var l = 0; l < _worksStudent[i].length; l++) {
  21442. var item = _worksStudent[i][l];
  21443. var name = item.sName;
  21444. if (!counts.hasOwnProperty(name)) {
  21445. counts[name] = 0;
  21446. } else {
  21447. counts[name]++;
  21448. }
  21449. if (counts[name] > 0) {
  21450. item.sName += " (" + counts[name] + ")";
  21451. }
  21452. }
  21453. for (var l = 0; l < _worksStudent[i].length; l++) {
  21454. var item = _worksStudent[i][l];
  21455. if (
  21456. item.works.indexOf(
  21457. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  21458. ) !== -1 &&
  21459. item.works.indexOf("img") === -1
  21460. ) {
  21461. url.push({ name: item.sName, url: item.works });
  21462. }
  21463. }
  21464. // var toolList = [
  21465. // { name: "电子白板", tool: 1 },
  21466. // { name: "思维导图", tool: 3 },
  21467. // { name: "协同文档", tool: 6 },
  21468. // { name: "思维网格", tool: 7 },
  21469. // { name: "素材库", tool: 8 },
  21470. // { name: "学习资料", tool: 17 },
  21471. // { name: "便签", tool: 2 },
  21472. // { name: "问卷调查", tool: 4 },
  21473. // { name: "选择题", tool: 45 },
  21474. // { name: "倒计时", tool: 10 },
  21475. // { name: "问答", tool: 15 },
  21476. // { name: "课程设计", tool: 26 },
  21477. // { name: "训练服务器", tool: 18 },
  21478. // { name: "作业提交", tool: 16 },
  21479. // { name: "批量上传", tool: 50 },
  21480. // { name: "AIoT Blockly", tool: 21 },
  21481. // { name: "AI Python", tool: 23 },
  21482. // { name: "AI Blockly", tool: 24 },
  21483. // { name: "目标管理", tool: 25 },
  21484. // { name: "数学画板", tool: 31 },
  21485. // { name: "翻译", tool: 28 },
  21486. // { name: "魔盒识字", tool: 37 },
  21487. // { name: "数学画板", tool: 31 },
  21488. // { name: "24点", tool: 38 },
  21489. // { name: "GeoGebra", tool: 39 },
  21490. // { name: "源码编辑", tool: 32 },
  21491. // { name: "个人评价", tool: 40 },
  21492. // { name: "选择匹配", tool: 41 },
  21493. // { name: "汉字宫", tool: 44 },
  21494. // { name: "排序", tool: 47 },
  21495. // { name: "表格", tool: 48 },
  21496. // { name: "文档", tool: 52 },
  21497. // { name: "学生分组", tool: 49 },
  21498. // { name: "CocoPi", tool: 57 },
  21499. // { name: "模拟驾驶", tool: 58 },
  21500. // { name: "路径搜索", tool: 59 },
  21501. // { name: "深度学习", tool: 60 },
  21502. // { name: "全历史", tool: 61 },
  21503. // { name: "交互视频", tool: 62 },
  21504. // { name: "海龟编程", tool: 63 },
  21505. // { name: "挑人", tool: 65 },
  21506. // { name: "公式编辑", tool: 66 },
  21507. // { name: "分子结构", tool: 67 },
  21508. // { name: "时间轴", tool: 68 },
  21509. // ];
  21510. // var toolName = "";
  21511. // for(var w = 0;w<toolList.length;w++){
  21512. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  21513. // toolName = toolList[w].name;
  21514. // }
  21515. // }
  21516. console.log(url);
  21517. this.downLoadAll(url, loading);
  21518. })
  21519. .catch(() => {});
  21520. },
  21521. downLoadAll(url, loading) {
  21522. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  21523. const zip = new JSZip();
  21524. const cache = {};
  21525. const promises = [];
  21526. data.forEach((item) => {
  21527. const promise = getFile(item.url).then((data) => {
  21528. if (data.data != 1) {
  21529. // 下载文件, 并存成ArrayBuffer对象
  21530. const file_name =
  21531. item.name +
  21532. "." +
  21533. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  21534. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  21535. cache[file_name] = data.data;
  21536. }
  21537. });
  21538. promises.push(promise);
  21539. });
  21540. Promise.all(promises).then(() => {
  21541. zip.generateAsync({ type: "blob" }).then((content) => {
  21542. // 生成二进制流
  21543. FileSaver.saveAs(
  21544. content,
  21545. this.courseDetail.title + "-" + "作业提交工具.zip"
  21546. ); // 利用file-saver保存文件 自定义文件名
  21547. setTimeout(() => {
  21548. loading.close();
  21549. }, 2000);
  21550. });
  21551. });
  21552. },
  21553. pickStudent(stu) {
  21554. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  21555. return;
  21556. }
  21557. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  21558. confirmButtonText: "确定",
  21559. cancelButtonText: "取消",
  21560. type: "warning",
  21561. })
  21562. .then(() => {
  21563. let params = [
  21564. {
  21565. uid: stu.userid,
  21566. cid: this.id,
  21567. stage: this.courseType,
  21568. task: this.taskCount,
  21569. tool: this.toolindex,
  21570. },
  21571. ];
  21572. this.ajax
  21573. .post(this.$store.state.api + "updateCoursePick", params)
  21574. .then((res) => {
  21575. this.$message.success("操作成功");
  21576. this.getPick();
  21577. })
  21578. .catch((err) => {
  21579. this.$message.error("网络不佳");
  21580. console.error(err);
  21581. });
  21582. })
  21583. .catch(() => {});
  21584. },
  21585. selectUser(){
  21586. let params = {
  21587. userid: this.userid,
  21588. };
  21589. this.ajax
  21590. .get(this.$store.state.api + "selectUser", params)
  21591. .then((res) => {
  21592. this.userMes = res.data[0];
  21593. })
  21594. .catch((err) => {
  21595. console.error(err);
  21596. });
  21597. },
  21598. setEngText(i){
  21599. this.newEngIndex = i;
  21600. this.$forceUpdate();
  21601. },
  21602. addCorrect(){
  21603. this.$confirm("你确定提交批改嘛?", "提示", {
  21604. confirmButtonText: "确定",
  21605. showCancelButton: false,
  21606. closeOnClickModal: false,
  21607. type: "warning",
  21608. })
  21609. .then(() => {
  21610. let params = {
  21611. cid: this.id,
  21612. s: parseInt(this.courseType),
  21613. t: this.taskCount,
  21614. tool: this.toolindex,
  21615. wid: this.engWid,
  21616. c: this.userid,
  21617. 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) : "",
  21618. };
  21619. this.ajax
  21620. .get(this.$store.state.api + "addEngC", params)
  21621. .then((res) => {
  21622. this.$message.success("提交成功");
  21623. this.engUpdateDialogVisible = false;
  21624. })
  21625. .catch((err) => {
  21626. console.error(err);
  21627. });
  21628. })
  21629. .catch(() => {});
  21630. },
  21631. selectEngC(id,z){
  21632. let params = {
  21633. workid: id,
  21634. };
  21635. this.ajax
  21636. .get(this.$store.state.api + "selectEngC", params)
  21637. .then((res) => {
  21638. if(res.data[0].length == 0){
  21639. this.newEnglishList.engTitle = z.engTitle;
  21640. this.newEnglishList.engText = z.engText;
  21641. }else{
  21642. var a = res.data[0];
  21643. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  21644. if(this.userMes[0].type == 2){
  21645. var snum = 0;
  21646. for(var i = 0;i<a.length;i++){
  21647. if(this.userMes[0].userid == a[i].correct){
  21648. this.newEnglishList = JSON.parse(a[i].cWork);
  21649. snum = 1;
  21650. }
  21651. }
  21652. if(snum == 0){
  21653. this.newEnglishList = { engTitle:"",engText:"" };
  21654. this.newEnglishList.engTitle = z.engTitle;
  21655. this.newEnglishList.engText = z.engText;
  21656. }
  21657. }else if(this.userMes[0].type == 1){
  21658. var num = 0;
  21659. for(var w= 0;w<a.length;w++){
  21660. if(this.userMes[0].userid == a[w].correct){
  21661. num = 1;
  21662. }
  21663. }
  21664. if(num == 0){
  21665. this.isNoUserid = true;
  21666. var c = JSON.parse(JSON.stringify(z));
  21667. this.oldEnglishJson1 = c;
  21668. }else{
  21669. this.isNoUserid = false;
  21670. }
  21671. var b = a.sort((item, index) => {
  21672. console.log(item)
  21673. if (item.correct === this.userMes[0].userid) {
  21674. return -1; // 将a移到前面
  21675. } else if (index.correct === this.userMes[0].userid) {
  21676. return 1; // 将b移到前面
  21677. } else {
  21678. return 0; // 保持默认顺序
  21679. }
  21680. });
  21681. for(var p = 0;p<b.length;p++){
  21682. for(var y = 0;y<ppp.length;y++){
  21683. if(b[p].id == ppp[y].id){
  21684. b[p].cWork = JSON.parse(ppp[y].cWork);
  21685. break
  21686. }
  21687. }
  21688. }
  21689. this.newEnglishList1 = b;
  21690. }
  21691. }
  21692. this.greyType = false;
  21693. setTimeout(() => {
  21694. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21695. if(this.newEnglishList1.length > 0){
  21696. if(this.isNoUserid == true){
  21697. this.engListLength = this.newEnglishList1.length + 1;
  21698. this.newEngIndex = -1;
  21699. }else{
  21700. this.engListLength = this.newEnglishList1.length;
  21701. this.newEngIndex = 0;
  21702. }
  21703. }
  21704. if(this.userMes[0].type == 2){
  21705. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21706. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  21707. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  21708. }else if(this.newEngIndex == -1){
  21709. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  21710. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  21711. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  21712. }
  21713. }, 500);
  21714. this.engUpdateDialogVisible = true;
  21715. this.$forceUpdate();
  21716. })
  21717. .catch((err) => {
  21718. console.error(err);
  21719. });
  21720. },
  21721. getPick() {
  21722. let params = {
  21723. cid: this.id,
  21724. };
  21725. this.ajax
  21726. .get(this.$store.state.api + "getPick", params)
  21727. .then((res) => {
  21728. let array = [];
  21729. for (var i = 0; i < res.data[0].length; i++) {
  21730. array.push(res.data[0][i].userid);
  21731. }
  21732. this.isPickStudent = array;
  21733. if (array.indexOf(this.userid) !== -1) {
  21734. this.$confirm("你被老师选到啦!", "提示", {
  21735. confirmButtonText: "确定",
  21736. showCancelButton: false,
  21737. closeOnClickModal: false,
  21738. type: "warning",
  21739. })
  21740. .then(() => {
  21741. let pa = [
  21742. {
  21743. uid: this.userid,
  21744. cid: this.id,
  21745. },
  21746. ];
  21747. this.ajax
  21748. .post(this.$store.state.api + "deletePick", pa)
  21749. .then((res) => {
  21750. this.getPick();
  21751. })
  21752. .catch((err) => {
  21753. this.$message.error("网络不佳");
  21754. console.error(err);
  21755. });
  21756. })
  21757. .catch(() => {});
  21758. }
  21759. })
  21760. .catch((err) => {
  21761. this.$message.error("网络不佳");
  21762. console.error(err);
  21763. });
  21764. },
  21765. foldEva() {
  21766. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  21767. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  21768. } else {
  21769. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  21770. setTimeout(() => {
  21771. this.checkEva();
  21772. setTimeout(() => {
  21773. this.checkEva();
  21774. }, 500);
  21775. }, 0);
  21776. }
  21777. this.$forceUpdate();
  21778. },
  21779. panToolHeight(tool) {
  21780. var _tool = document.querySelectorAll('#'+tool)[0]
  21781. var _toolA = _tool ? _tool.offsetHeight : 0
  21782. var _toolC = 0
  21783. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  21784. let boolean2 = (_toolA > _toolC) ? true : false
  21785. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  21786. this.$forceUpdate();
  21787. },
  21788. async checkLink(url) {
  21789. // console.log(url)
  21790. let _url = url
  21791. try {
  21792. const response = await fetch(url);
  21793. if(!response.ok){
  21794. _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]))
  21795. }
  21796. // console.log(response.ok)
  21797. } catch (error) {
  21798. console.error('Error checking link:', error);
  21799. // console.log(false)
  21800. _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]))
  21801. }
  21802. // console.log(_url)
  21803. return _url
  21804. },
  21805. setClassRoomHelperWidth(width){
  21806. this.classRoomHelperWidth = width
  21807. }
  21808. },
  21809. directives: {
  21810. // 使用局部注册指令的方式
  21811. resize: {
  21812. // 指令的名称
  21813. bind(el, binding) {
  21814. // el为绑定的元素,binding为绑定给指令的对象
  21815. let width = "",
  21816. height = "";
  21817. function isReize() {
  21818. const style = document.defaultView.getComputedStyle(el);
  21819. if (width !== style.width || height !== style.height) {
  21820. binding.value(); // 关键
  21821. }
  21822. width = style.width;
  21823. height = style.height;
  21824. }
  21825. el.__vueSetInterval__ = setInterval(isReize, 300);
  21826. },
  21827. unbind(el) {
  21828. clearInterval(el.__vueSetInterval__);
  21829. },
  21830. },
  21831. autoHeight: {
  21832. update(el, binding) {
  21833. const { value } = binding
  21834. if (value && typeof value === 'number') {
  21835. el.style.height = `${value}px`
  21836. } else {
  21837. el.style.height = 'auto'
  21838. }
  21839. },
  21840. componentUpdated(el) {
  21841. el.style.height = `${el.scrollHeight + 5}px`
  21842. },
  21843. }
  21844. },
  21845. beforeDestroy() {
  21846. window.onresize = null;
  21847. clearInterval(this.timer);
  21848. this.timer = null;
  21849. clearInterval(this.opertimer);
  21850. this.opertimer = null;
  21851. },
  21852. computed: {
  21853. getHeight(){
  21854. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  21855. },
  21856. contentConvent() {
  21857. return function (c) {
  21858. return c
  21859. ? c
  21860. .replaceAll(/\r\n/g, "<br/>")
  21861. .replaceAll(/\n/g, "<br/>")
  21862. .replaceAll(/\s/g, " &nbsp")
  21863. : "";
  21864. };
  21865. },
  21866. commentRight(){
  21867. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  21868. return "35px";
  21869. }
  21870. return `calc(${this.classRoomHelperWidth} + 5px)`
  21871. // if(this.$refs["classRoomHelperRef"].type==0){
  21872. // return "100px";
  21873. // }else if(this.$refs["classRoomHelperRef"].type==1){
  21874. // return "502px"
  21875. // }else{
  21876. // return "0px"
  21877. // }
  21878. },
  21879. checkUpload() {
  21880. return function () {
  21881. var studentK = [];
  21882. if (this.plworkFile.length > 0) {
  21883. for (var z = 0; z < this.plworkFile.length; z++) {
  21884. studentK.push(this.plworkFile[z].username);
  21885. }
  21886. studentK = studentK.join(",");
  21887. }
  21888. var a = this.uploadStudentJuri.filter((el) => {
  21889. return studentK.indexOf(el.userid) == -1;
  21890. });
  21891. return a;
  21892. };
  21893. },
  21894. getSName() {
  21895. return function (name) {
  21896. var check = name;
  21897. this.uploadStudentJuri.forEach((el) => {
  21898. if (el.userid == check) {
  21899. check = el.name ? el.name : el.username;
  21900. }
  21901. });
  21902. return check;
  21903. };
  21904. },
  21905. getImgList() {
  21906. return function (val) {
  21907. let srcList = []; // 定义一个数组用来接收后面的img地址
  21908. val.replace(
  21909. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  21910. function (match, capture) {
  21911. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  21912. srcList.push(capture);
  21913. }
  21914. );
  21915. return srcList;
  21916. };
  21917. },
  21918. retrnToolHeight(){
  21919. return function (tool) {
  21920. var _tool = document.querySelectorAll('#'+tool)[0]
  21921. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  21922. };
  21923. },
  21924. Correct() {
  21925. return function (c) {
  21926. let w = "";
  21927. let a = this.correctWord;
  21928. for(var k = 0;k<a.length;k++){
  21929. //diffWordsWithSpace
  21930. if(a.length > 1){
  21931. if(a[k].added == true){
  21932. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21933. }else if(a[k].removed == true){
  21934. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21935. }else{
  21936. w += '<span>' + a[k].value + '</span>';
  21937. }
  21938. }else{
  21939. w = c
  21940. }
  21941. //diffChars方法
  21942. // if(w == ""){
  21943. // if(a.length > 1){
  21944. // if(a[k].added == true){
  21945. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21946. // }else if(a[k].removed == true){
  21947. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21948. // }
  21949. // }else{
  21950. // w = c
  21951. // }
  21952. // }else{
  21953. // if(k == a.length - 1){
  21954. // if(a[k].added == true){
  21955. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21956. // }else if(a[k].removed == true){
  21957. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21958. // }
  21959. // }else{
  21960. // if(a[k].added == true){
  21961. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  21962. // }else if(a[k].removed == true){
  21963. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  21964. // }
  21965. // }
  21966. // }
  21967. }
  21968. c = w;
  21969. return c;
  21970. };
  21971. },
  21972. getScoreList(){
  21973. let params = {
  21974. cid: this.id,
  21975. };
  21976. this.ajax
  21977. .get(this.$store.state.api + "selectTestCourseByCid", params)
  21978. .then((res) => {
  21979. let result = res.data;
  21980. this.scoreList.datalist = result[0];
  21981. this.scoreList.isScoreList = result[1];
  21982. })
  21983. .catch((err) => {
  21984. console.error(err);
  21985. });
  21986. },
  21987. },
  21988. mounted() {
  21989. document.body.addEventListener("click", (e) => {
  21990. if (this.isUpdateToolDetail1) {
  21991. this.updateToolDetail(this.toolDetailIndex);
  21992. }
  21993. });
  21994. if (this.screenType == 2) {
  21995. window.parent.postMessage({ allScreen: 4 }, "*");
  21996. } else if (this.screenType == 3) {
  21997. window.parent.postMessage({ allScreen: 5 }, "*");
  21998. } else if (this.screenType == 1) {
  21999. window.parent.postMessage({ allScreen: 6 }, "*");
  22000. }
  22001. this.setOperationTime();
  22002. this.selectEva();
  22003. this.getCourseDetail();
  22004. this.selectCount();
  22005. this.getHomeWork();
  22006. this.selectUser();
  22007. this.getAIJ()
  22008. this.contentDialog = true;
  22009. this.setContent2(true);
  22010. if (this.tType == 4) {
  22011. this.pzDialog = true;
  22012. this.selectPz();
  22013. }
  22014. // 获取评分列表
  22015. this.getScoreList()
  22016. document.scrollingElement.scrollTop = 0;
  22017. window.addEventListener("resize", () => {
  22018. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  22019. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  22020. if (this.showType == 2 || this.showType == 3) {
  22021. document.getElementsByClassName("navBox")[0].style.height =
  22022. a - 40 + 0+ "px";
  22023. } else {
  22024. document.getElementsByClassName("navBox")[0].style.height =
  22025. a - 40 + "px";
  22026. }
  22027. });
  22028. let _this = this;
  22029. setTimeout(() => {
  22030. // _this.vedioTime = [];
  22031. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  22032. // _this.vedioTime[i] = document.getElementsByClassName(
  22033. // "vjs-duration-display"
  22034. // )[i].textContent;
  22035. // }
  22036. }, 1000);
  22037. },
  22038. };
  22039. </script>
  22040. <style scoped>
  22041. @media screen and (max-width: 1280px) {
  22042. /* .courseIndex > div:first-child(2) {
  22043. width: 15% !important;
  22044. } */
  22045. /* .navText {
  22046. width: 120px !important;
  22047. } */
  22048. .evaCss {
  22049. flex-direction: column !important;
  22050. align-items: center !important;
  22051. }
  22052. .elist_input {
  22053. width: 90% !important;
  22054. }
  22055. .dialog_diy1 >>> .el-dialog {
  22056. width: 100% !important;
  22057. }
  22058. .rightWidthCss {
  22059. width: 100% !important;
  22060. }
  22061. .dialog_diy3 >>> .el-dialog {
  22062. width: 100% !important;
  22063. }
  22064. .addToolCss {
  22065. right: 0 !important;
  22066. width: 100% !important;
  22067. min-width: unset !important;
  22068. }
  22069. }
  22070. .evaCssMax {
  22071. flex-direction: column !important;
  22072. align-items: center !important;
  22073. }
  22074. .dialog_diy >>> .el-dialog {
  22075. margin-top: 10vh !important;
  22076. }
  22077. .body_student {
  22078. width: 77%;
  22079. height: 100%;
  22080. position: absolute;
  22081. left: 22%;
  22082. top: 0;
  22083. }
  22084. .student_head {
  22085. width: 100%;
  22086. margin: 20px auto 0;
  22087. padding-bottom: 20px;
  22088. display: flex;
  22089. flex-direction: column;
  22090. flex-wrap: nowrap;
  22091. align-items: flex-start;
  22092. justify-content: flex-start;
  22093. }
  22094. .pb_left {
  22095. width: 20%;
  22096. margin-right: 10px;
  22097. background: rgb(255, 255, 255);
  22098. position: fixed;
  22099. height: calc(100% - 40px);
  22100. border-radius: 20px;
  22101. padding-bottom: 15px;
  22102. box-sizing: border-box;
  22103. }
  22104. .wheel > img,
  22105. .project > img,
  22106. .star > img,
  22107. .evaluate > img,
  22108. .up_photo > img,
  22109. .chapter_add > img,
  22110. .deleteWord > img,
  22111. .question > img,
  22112. .homework > img {
  22113. width: 100%;
  22114. height: 100%;
  22115. }
  22116. .upCover > img {
  22117. width: 131px;
  22118. height: 69px;
  22119. object-fit: cover;
  22120. }
  22121. .upCover {
  22122. width: calc(100% / 3.5);
  22123. position: relative;
  22124. margin: 0 15px 10px 0;
  22125. display: flex;
  22126. flex-direction: column;
  22127. flex-wrap: nowrap;
  22128. justify-content: center;
  22129. align-content: center;
  22130. align-items: center;
  22131. height: fit-content;
  22132. }
  22133. .upCover2 {
  22134. width: 100%;
  22135. position: relative;
  22136. margin: 0 15px 10px 0;
  22137. display: flex;
  22138. flex-direction: column;
  22139. flex-wrap: nowrap;
  22140. justify-content: center;
  22141. align-content: center;
  22142. align-items: center;
  22143. }
  22144. .upCover2 > img {
  22145. width: 100%;
  22146. height: 90px;
  22147. object-fit: contain;
  22148. }
  22149. .chapter_add {
  22150. width: 120px;
  22151. position: relative;
  22152. text-align: center;
  22153. }
  22154. .isAddThings {
  22155. margin-top: 20px;
  22156. position: relative;
  22157. text-align: center;
  22158. background: #f7f8fa;
  22159. height: 90px;
  22160. width: 90px;
  22161. display: flex;
  22162. flex-direction: column;
  22163. justify-content: center;
  22164. }
  22165. .deleteWord {
  22166. width: 22px;
  22167. height: 22px;
  22168. position: absolute;
  22169. right: -5px;
  22170. top: -5px;
  22171. cursor: pointer;
  22172. }
  22173. .box_course {
  22174. /* width: 60%; */
  22175. width: calc(100% - 300px);
  22176. }
  22177. .wheel {
  22178. width: 100%;
  22179. /* height: 100%; */
  22180. height: 650px;
  22181. }
  22182. .right_box {
  22183. display: flex;
  22184. flex-direction: column;
  22185. margin-left: 30px;
  22186. justify-content: space-around;
  22187. }
  22188. .right_box_title {
  22189. font-size: 23px;
  22190. }
  22191. .people {
  22192. display: flex;
  22193. }
  22194. .student_body {
  22195. width: 100%;
  22196. margin: 0 auto;
  22197. margin-top: 10px;
  22198. padding: 0 0 20px;
  22199. }
  22200. .study_top {
  22201. margin-top: 100px;
  22202. width: 100%;
  22203. height: auto;
  22204. padding-bottom: 20px;
  22205. }
  22206. .study_top .checkbox {
  22207. display: flex;
  22208. align-items: center;
  22209. padding: 15px 0 15px 30px;
  22210. flex: 0 0 auto;
  22211. font-weight: bold;
  22212. border-bottom: 1px solid #eee;
  22213. }
  22214. .study_top .check {
  22215. padding-bottom: 5px;
  22216. text-align: center;
  22217. cursor: pointer;
  22218. height: 30px;
  22219. box-sizing: border-box;
  22220. display: flex;
  22221. }
  22222. .study_top .checked {
  22223. border-bottom: 4px solid #3fc6a0;
  22224. padding-bottom: 5px;
  22225. color: #3fc6a0;
  22226. display: flex;
  22227. height: 35px;
  22228. }
  22229. .study_top .checked > div,
  22230. .study_top .check > div {
  22231. margin-right: 5px;
  22232. }
  22233. .videoTop {
  22234. display: flex;
  22235. flex-direction: row;
  22236. justify-content: space-between;
  22237. background: #fff;
  22238. align-items: center;
  22239. width: 95%;
  22240. padding: 20px;
  22241. }
  22242. .filebox {
  22243. display: flex;
  22244. flex-wrap: wrap;
  22245. flex-direction: column;
  22246. padding: 0 0 5px;
  22247. position: relative;
  22248. }
  22249. .filebox:before {
  22250. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  22251. position: absolute;
  22252. top: 20px;
  22253. left: 13px;
  22254. border-left: 2px dotted #cad1dc;
  22255. height: calc(100% - 15px);
  22256. }
  22257. .toolHeng2 > div:last-child::before {
  22258. height: calc(100% - 43px);
  22259. }
  22260. .filebox .tooldetail {
  22261. width: calc(100%);
  22262. margin: 0px 12px;
  22263. padding: 12px;
  22264. line-height: 30px;
  22265. word-break: break-word;
  22266. background: #ffffff;
  22267. border-radius: 8px 8px 8px 8px;
  22268. opacity: 1;
  22269. border: 1px solid #cad1dc;
  22270. overflow:hidden;
  22271. box-sizing:border-box;
  22272. }
  22273. .file {
  22274. display: flex;
  22275. flex-direction: column;
  22276. align-items: center;
  22277. justify-content: center;
  22278. cursor: pointer;
  22279. width: 200px;
  22280. }
  22281. .file div {
  22282. margin-top: 10px;
  22283. width: 150px;
  22284. text-align: center;
  22285. overflow: hidden;
  22286. white-space: nowrap;
  22287. text-overflow: ellipsis;
  22288. }
  22289. .media {
  22290. display: flex;
  22291. flex-direction: column;
  22292. align-items: center;
  22293. justify-content: center;
  22294. margin: 0 20px 20px 0;
  22295. cursor: pointer;
  22296. margin: 12px 0 5px 15px;
  22297. overflow: hidden;
  22298. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  22299. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  22300. box-sizing: border-box;
  22301. }
  22302. .media img {
  22303. height: 90px;
  22304. width: 160px;
  22305. object-fit: cover;
  22306. }
  22307. .media .title {
  22308. padding: 5px;
  22309. text-align: left;
  22310. width: 100%;
  22311. box-sizing: border-box;
  22312. }
  22313. .media .btn {
  22314. width: 100%;
  22315. height: 35px;
  22316. line-height: 35px;
  22317. color: #fff;
  22318. background: #606060;
  22319. text-align: center;
  22320. overflow: hidden;
  22321. white-space: nowrap;
  22322. text-overflow: ellipsis;
  22323. }
  22324. .detail_content_top {
  22325. width: 100%;
  22326. padding: 25px 0 25px 0;
  22327. }
  22328. .detail_title {
  22329. text-align: center;
  22330. font-size: 24px;
  22331. }
  22332. .detail_time {
  22333. font-size: 13px;
  22334. padding: 15px 0 0 40px;
  22335. }
  22336. .detail_content {
  22337. line-height: 2pc;
  22338. width: 90%;
  22339. margin: 0 auto;
  22340. padding-top: 30px;
  22341. text-indent: 30px;
  22342. overflow: auto;
  22343. height: 200px;
  22344. }
  22345. .score_box >>> .el-rate {
  22346. margin-left: 10px;
  22347. }
  22348. .dialog_change >>> .el-dialog {
  22349. border-radius: 5px;
  22350. }
  22351. .dialog_change >>> .el-dialog__header {
  22352. background: #f2f2f2;
  22353. text-align: center;
  22354. }
  22355. .dialog_change >>> .el-dialog__title {
  22356. line-height: 5px;
  22357. }
  22358. .dialog_change >>> .el-dialog__body {
  22359. background: #fff;
  22360. padding: 10px 20px;
  22361. }
  22362. .score_box {
  22363. display: flex;
  22364. align-items: center;
  22365. margin-bottom: 18px;
  22366. margin-top: 20px;
  22367. }
  22368. .up_photo {
  22369. width: 120px;
  22370. cursor: pointer;
  22371. margin-top: 10px;
  22372. }
  22373. .up_photo2 {
  22374. width: 180px;
  22375. box-sizing: border-box;
  22376. min-width: 180px;
  22377. height: 180px;
  22378. max-height: 180px;
  22379. min-height: 180px;
  22380. cursor: pointer;
  22381. display: flex;
  22382. flex-direction: column;
  22383. align-items: center;
  22384. justify-content: center;
  22385. background: rgb(242, 246, 255);
  22386. /* padding: 25px; */
  22387. margin-bottom: 10px;
  22388. }
  22389. .up_photo2 img {
  22390. width: 50%;
  22391. height: auto;
  22392. }
  22393. .up_photo2 span {
  22394. color: #898989;
  22395. }
  22396. .plworkBox {
  22397. display: flex;
  22398. align-items: center;
  22399. margin-top: 10px;
  22400. flex-wrap: wrap;
  22401. }
  22402. .upload_send {
  22403. margin: 30px auto 30px;
  22404. width: 60%;
  22405. background: #3681fc;
  22406. text-align: center;
  22407. height: 35px;
  22408. line-height: 35px;
  22409. color: #fff;
  22410. border-radius: 5px;
  22411. cursor: pointer;
  22412. }
  22413. .marginT {
  22414. margin-top: 20px;
  22415. }
  22416. .cd_content_steps {
  22417. display: flex;
  22418. width: 90%;
  22419. justify-content: space-around;
  22420. border-top: 1px solid #eeeeee;
  22421. }
  22422. .cd_steps_box {
  22423. display: flex;
  22424. justify-content: center;
  22425. align-items: center;
  22426. flex-direction: column;
  22427. cursor: pointer;
  22428. }
  22429. .first {
  22430. display: flex;
  22431. align-items: center;
  22432. margin: 15px 0 20px 0;
  22433. font-size: 20px;
  22434. }
  22435. .first > div:nth-child(2) {
  22436. font-size: 16px !important;
  22437. padding-left: 10px;
  22438. line-height: 26px;
  22439. box-sizing: border-box;
  22440. }
  22441. .blue_box_one {
  22442. text-align: center;
  22443. color: #fff;
  22444. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  22445. border-radius: 7px;
  22446. margin: 10px;
  22447. cursor: pointer;
  22448. width: 95%;
  22449. height: 45px;
  22450. display: flex;
  22451. flex-direction: row;
  22452. justify-content: flex-start;
  22453. align-items: center;
  22454. }
  22455. .blue_box_one > div:nth-child(1) {
  22456. line-height: 30px;
  22457. margin: 0 5px 0 10px;
  22458. width: 30%;
  22459. min-width: 70px;
  22460. border-radius: 4px;
  22461. }
  22462. .blue_box_one > div:nth-child(2) {
  22463. white-space: nowrap;
  22464. text-overflow: ellipsis;
  22465. overflow: hidden;
  22466. word-break: break-all;
  22467. width: 70%;
  22468. text-align: left;
  22469. margin-right: 10px;
  22470. max-width: calc(100% - 85px);
  22471. }
  22472. .blue_box_one > div:nth-child(2):hover {
  22473. overflow: hidden;
  22474. text-overflow: ellipsis;
  22475. white-space: nowrap;
  22476. cursor: pointer;
  22477. }
  22478. .upFile {
  22479. margin: 0 auto;
  22480. width: 120px;
  22481. background: #3681fc;
  22482. color: #fff;
  22483. height: 30px;
  22484. text-align: center;
  22485. line-height: 30px;
  22486. border-radius: 5px;
  22487. font-size: 14px;
  22488. cursor: pointer;
  22489. }
  22490. .courseTitle {
  22491. width: 85%;
  22492. margin: 10px auto 26px auto;
  22493. display: flex;
  22494. flex-direction: row;
  22495. align-items: center;
  22496. justify-content: space-between;
  22497. text-align: center;
  22498. }
  22499. .courseTitle .ctitle {
  22500. font-size: 20px;
  22501. font-weight: bold;
  22502. color: #0e1e33;
  22503. white-space: nowrap;
  22504. overflow: hidden;
  22505. text-overflow: ellipsis;
  22506. }
  22507. .inviteBox {
  22508. font-size: 14px;
  22509. /* margin-top: 5px; */
  22510. color: #00000099;
  22511. text-align: center;
  22512. }
  22513. .courseTitle >>> .el-tooltip {
  22514. width: 100%;
  22515. white-space: nowrap;
  22516. overflow: hidden;
  22517. text-overflow: ellipsis;
  22518. word-break: break-word;
  22519. }
  22520. .ml {
  22521. margin-left: 20px;
  22522. color: #5b7dba;
  22523. border-left: 3px solid #5b7dba;
  22524. padding-left: 5px;
  22525. font-weight: bold;
  22526. }
  22527. .return {
  22528. width: 2rem;
  22529. height: 2rem;
  22530. cursor: pointer;
  22531. }
  22532. .return > img {
  22533. width: 100%;
  22534. height: 100%;
  22535. }
  22536. .returnBtn {
  22537. width: 86px;
  22538. height: 36px;
  22539. background: #3681fc;
  22540. border-radius: 4px;
  22541. color: #fff;
  22542. text-align: center;
  22543. line-height: 36px;
  22544. margin-right: 20px;
  22545. cursor: pointer;
  22546. font-size: 14px;
  22547. font-weight: 400;
  22548. display: flex;
  22549. flex-direction: row;
  22550. flex-wrap: nowrap;
  22551. align-items: center;
  22552. justify-content: center;
  22553. }
  22554. .reBtnIcon,
  22555. .commentIcon,
  22556. .vedioIcon,
  22557. .vedioIcon1 {
  22558. /* width: 36px; */
  22559. height: 36px;
  22560. border-radius: 4px;
  22561. position: relative;
  22562. /* background: #e0eafb; */
  22563. background: #0061ff;
  22564. cursor: pointer;
  22565. margin-right: 12px;
  22566. display: flex;
  22567. align-items: center;
  22568. padding: 0 10px;
  22569. box-sizing: border-box;
  22570. font-size: 14px;
  22571. color: #fff;
  22572. }
  22573. .reBtnIcon::before,
  22574. .commentIcon::before,
  22575. .vedioIcon::before,
  22576. .vedioIcon1::before {
  22577. content: "";
  22578. display: block;
  22579. background-size: 100% 100%;
  22580. background-repeat: no-repeat;
  22581. width: 20px;
  22582. height: 20px;
  22583. margin-right: 5px;
  22584. /* position: absolute; */
  22585. /* top: 8px;
  22586. left: 8px; */
  22587. }
  22588. .vedioIcon1 {
  22589. background: #f63564;
  22590. }
  22591. .reBtnIcon::before {
  22592. background-image: url("../../assets/icon/newIcons/refresh.png");
  22593. }
  22594. .commentIcon::before {
  22595. background-image: url("../../assets/icon/newIcons/comment.png");
  22596. }
  22597. .vedioIcon::before {
  22598. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22599. }
  22600. .vedioIcon1::before {
  22601. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  22602. background-image: url("../../assets/icon/newIcons/transcribe.png");
  22603. }
  22604. .tool {
  22605. display: flex;
  22606. flex-direction: column;
  22607. flex-wrap: nowrap;
  22608. width: 13%;
  22609. margin: 0 30px;
  22610. align-items: center;
  22611. position: relative;
  22612. padding: 10px 25px;
  22613. cursor: pointer;
  22614. }
  22615. .whiteBIcon {
  22616. width: 150px;
  22617. }
  22618. .whiteBIcon > img {
  22619. width: 100%;
  22620. height: 100%;
  22621. }
  22622. .mask {
  22623. background-color: rgba(0, 0, 0, 0);
  22624. position: fixed;
  22625. top: 0;
  22626. left: 0;
  22627. width: 100%;
  22628. height: 100%;
  22629. z-index: 20000;
  22630. display: flex;
  22631. align-items: center;
  22632. justify-content: center;
  22633. }
  22634. .progressBox {
  22635. width: 500px;
  22636. height: 180px;
  22637. background: #fff;
  22638. border-radius: 10px;
  22639. box-shadow: 0 0 6px 1px #bfbfbf;
  22640. display: flex;
  22641. align-items: center;
  22642. justify-content: center;
  22643. flex-direction: column;
  22644. position: relative;
  22645. color: #6c6c6c;
  22646. }
  22647. .progressBox >>> .el-progress-bar__outer {
  22648. background-color: #d1dfff !important;
  22649. }
  22650. .progressBox .lbox {
  22651. height: 50px;
  22652. font-size: 19px;
  22653. display: flex;
  22654. align-items: center;
  22655. color: #747474;
  22656. }
  22657. .progressBox .lbox img {
  22658. width: 40px;
  22659. margin-right: 20px;
  22660. }
  22661. .closeCss {
  22662. position: absolute;
  22663. top: 8px;
  22664. right: 8px;
  22665. cursor: pointer;
  22666. width: 20px;
  22667. height: 20px;
  22668. }
  22669. .closeCss > img {
  22670. width: 100%;
  22671. height: 100%;
  22672. }
  22673. .uploadVedio {
  22674. display: flex;
  22675. flex-direction: column;
  22676. flex-wrap: nowrap;
  22677. justify-content: center;
  22678. align-items: center;
  22679. margin: 0 15px 10px 0;
  22680. }
  22681. .uploadVedio > img {
  22682. width: 30px;
  22683. height: 30px;
  22684. }
  22685. .uploadVedio > span {
  22686. white-space: nowrap;
  22687. overflow: hidden;
  22688. text-overflow: ellipsis;
  22689. width: 75px;
  22690. margin-top: 7px;
  22691. }
  22692. .picName {
  22693. white-space: nowrap;
  22694. overflow: hidden;
  22695. text-overflow: ellipsis;
  22696. width: 75px;
  22697. margin-top: 7px;
  22698. }
  22699. .new_top {
  22700. display: flex;
  22701. background: #fff;
  22702. flex-direction: row;
  22703. justify-content: flex-start;
  22704. align-items: center;
  22705. height: 60px;
  22706. position: fixed;
  22707. top: 20px;
  22708. left: 22%;
  22709. width: 77%;
  22710. z-index: 999;
  22711. border-radius: 12px 12px 0 0;
  22712. border-bottom: 1px solid #cad1dc;
  22713. padding: 10px 0;
  22714. }
  22715. .new_topFixed {
  22716. width: 100%;
  22717. height: 40px;
  22718. position: fixed;
  22719. top: 0px;
  22720. display: block;
  22721. background: #f2f2f2;
  22722. z-index: 998;
  22723. }
  22724. .before {
  22725. position: absolute;
  22726. background: #c3dad4;
  22727. width: 6px;
  22728. height: 100%;
  22729. }
  22730. .courseIndex {
  22731. display: flex;
  22732. flex-direction: row;
  22733. align-items: center;
  22734. width: calc(100% - 745px);
  22735. }
  22736. .courseIndex > div:nth-child(1) {
  22737. margin: 0 0 0 10px;
  22738. font-size: 20px;
  22739. min-width: 100px;
  22740. font-weight: bold;
  22741. border-left: 4px solid #3363b9;
  22742. height: 32px;
  22743. text-align: center;
  22744. line-height: 35px;
  22745. }
  22746. .courseIndex > div:nth-child(2) {
  22747. font-size: 20px;
  22748. /* width: 300px; */
  22749. max-width: calc(100% - 105px);
  22750. white-space: nowrap;
  22751. overflow: hidden;
  22752. text-overflow: ellipsis;
  22753. }
  22754. .courseIndex > div:nth-child(3) {
  22755. border-bottom: 1px solid #d7d7d7;
  22756. padding-bottom: 5px;
  22757. background: #3681fc;
  22758. width: 55px;
  22759. min-width: 55px;
  22760. border-radius: 5px;
  22761. color: #fff;
  22762. text-align: center;
  22763. height: 20px;
  22764. line-height: 26px;
  22765. font-size: 14px;
  22766. margin: 0 0 0 10px;
  22767. }
  22768. .course_text {
  22769. padding: 20px 0 0 15px;
  22770. text-indent: 30px;
  22771. width: 80%;
  22772. min-height: 20px;
  22773. }
  22774. .vedioList {
  22775. background: #f2f2f2;
  22776. border: 1px solid #ececec;
  22777. /* width: 38.8%; */
  22778. /* width: 300px; */
  22779. width: 100%;
  22780. height: 445px;
  22781. border-radius: 10px;
  22782. overflow: hidden;
  22783. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  22784. }
  22785. .vedioNav {
  22786. margin: 10px 0 0 15px;
  22787. border-bottom: 1px solid #d7d7d7;
  22788. padding-bottom: 5px;
  22789. background: #3681fc;
  22790. width: 55px;
  22791. min-width: 55px;
  22792. border-radius: 5px;
  22793. color: #fff;
  22794. text-align: center;
  22795. height: 20px;
  22796. line-height: 26px;
  22797. font-size: 14px;
  22798. }
  22799. .queTop {
  22800. display: flex;
  22801. padding: 20px 0 20px 30px;
  22802. width: 100%;
  22803. flex-direction: row;
  22804. justify-content: flex-start;
  22805. align-items: center;
  22806. box-sizing: border-box;
  22807. }
  22808. .queTopTitle {
  22809. display: flex;
  22810. flex-direction: row;
  22811. flex-wrap: nowrap;
  22812. align-items: center;
  22813. font-weight: bold;
  22814. font-size: 20px;
  22815. color: rgb(14, 30, 51);
  22816. }
  22817. .queTopTitle::before {
  22818. content: "";
  22819. width: 2px;
  22820. height: 22px;
  22821. background: #3681fc;
  22822. border-radius: 3px;
  22823. display: block;
  22824. margin: 2px 6px 0 0;
  22825. }
  22826. .queTopRight {
  22827. display: flex;
  22828. flex-direction: row;
  22829. flex-wrap: nowrap;
  22830. align-items: center;
  22831. }
  22832. .queTopClose {
  22833. margin-right: 20px;
  22834. cursor: pointer;
  22835. position: relative;
  22836. display: flex;
  22837. }
  22838. .closeImg,
  22839. .openImg {
  22840. width: 25px;
  22841. height: 25px;
  22842. position: absolute;
  22843. left: -20px;
  22844. top: -1px;
  22845. }
  22846. .closeImg > img,
  22847. .openImg > img {
  22848. width: 100%;
  22849. height: 100%;
  22850. }
  22851. .question {
  22852. width: 40px;
  22853. margin-right: 10px;
  22854. margin-top: 7px;
  22855. }
  22856. .queTitle {
  22857. margin-left: 5px;
  22858. font-size: 25px;
  22859. display: flex;
  22860. align-items: center;
  22861. }
  22862. .addEditor {
  22863. width: 100px;
  22864. height: 30px;
  22865. background: #42cda6;
  22866. color: #fff;
  22867. border-radius: 5px;
  22868. text-align: center;
  22869. line-height: 30px;
  22870. box-shadow: 1px 3px 6px 1px #bfbfbf;
  22871. cursor: pointer;
  22872. }
  22873. /* .vedioName {
  22874. cursor: pointer;
  22875. margin: 0px 0px 10px 5px;
  22876. white-space: nowrap;
  22877. overflow: hidden;
  22878. text-overflow: ellipsis;
  22879. width: 100%;
  22880. } */
  22881. .vedioTime {
  22882. width: 35px;
  22883. position: absolute;
  22884. color: #fff;
  22885. bottom: 0px;
  22886. right: 0px;
  22887. text-align: center;
  22888. background: #46411f;
  22889. height: 20px;
  22890. font-size: 14px;
  22891. line-height: 20px;
  22892. }
  22893. .homework {
  22894. width: 200px;
  22895. display: flex;
  22896. flex-direction: column;
  22897. flex-wrap: nowrap;
  22898. align-items: center;
  22899. cursor: pointer;
  22900. }
  22901. .homebox {
  22902. display: flex;
  22903. flex-wrap: wrap;
  22904. flex-direction: row;
  22905. justify-content: flex-start;
  22906. align-items: center;
  22907. padding: 15px 0;
  22908. }
  22909. .isChooseActive {
  22910. color: #3681fc !important;
  22911. font-weight: bold !important;
  22912. }
  22913. .chooseWho {
  22914. display: flex;
  22915. width: 100%;
  22916. flex-direction: row;
  22917. flex-wrap: nowrap;
  22918. justify-content: flex-start;
  22919. padding-bottom: 10px;
  22920. }
  22921. .chooseWho > div {
  22922. cursor: pointer;
  22923. padding-bottom: 10px;
  22924. margin: 0 30px 0 0;
  22925. font-weight: 400;
  22926. color: #0e1e33;
  22927. }
  22928. .addPoint > div > img {
  22929. cursor: pointer;
  22930. width: 85px;
  22931. border-radius: 15px;
  22932. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  22933. }
  22934. .addPoint > div {
  22935. display: flex;
  22936. flex-direction: column;
  22937. flex-wrap: nowrap;
  22938. align-items: center;
  22939. }
  22940. .isBorder > div {
  22941. margin: 0 0 10px 0;
  22942. align-items: flex-start !important;
  22943. }
  22944. .noiframeBox {
  22945. display: flex;
  22946. flex-wrap: wrap;
  22947. }
  22948. .iframeBox iframe {
  22949. width: 100%;
  22950. height: 800px;
  22951. border: none;
  22952. margin-bottom: 20px;
  22953. border: 1px solid #ccc;
  22954. }
  22955. .upload_toolBtn {
  22956. background: #3681fc;
  22957. color: #fff;
  22958. width: 110px;
  22959. text-align: center;
  22960. height: 35px;
  22961. line-height: 35px;
  22962. font-size: 14px;
  22963. border-radius: 5px;
  22964. cursor: pointer;
  22965. position: absolute;
  22966. right: 10px;
  22967. bottom: 0;
  22968. }
  22969. .binfo_input,
  22970. .pj {
  22971. font: inherit;
  22972. color: currentColor;
  22973. width: 100%;
  22974. margin: 0;
  22975. padding: 15px 14px;
  22976. display: block;
  22977. min-width: 0;
  22978. outline: none;
  22979. box-sizing: content-box;
  22980. background: none;
  22981. -webkit-tap-highlight-color: transparent;
  22982. border: 1px solid rgba(0, 0, 0, 0.23);
  22983. border-radius: 4px;
  22984. box-sizing: border-box;
  22985. resize: none;
  22986. }
  22987. .binfo_input:focus-visible {
  22988. border: 1px solid rgba(61, 103, 188);
  22989. }
  22990. .dialog_diy >>> .el-dialog__header,
  22991. .dialog_diy1 >>> .el-dialog__header {
  22992. background: #454545 !important;
  22993. padding: 15px 20px;
  22994. }
  22995. .dialog_diy >>> .el-dialog__title,
  22996. .dialog_diy1 >>> .el-dialog__title {
  22997. color: #fff;
  22998. }
  22999. .dialog_diy >>> .el-dialog__headerbtn,
  23000. .dialog_diy1 >>> .el-dialog__headerbtn {
  23001. top: 19px;
  23002. }
  23003. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  23004. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  23005. color: #fff;
  23006. }
  23007. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  23008. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  23009. color: #fff;
  23010. }
  23011. .dialog_diy1 >>> .el-dialog__body {
  23012. padding: 0;
  23013. }
  23014. .dialog_diy >>> .el-dialog__body,
  23015. .dialog_diy >>> .el-dialog__footer,
  23016. .dialog_diy1 >>> .el-dialog__footer {
  23017. background: #fafafa;
  23018. }
  23019. .markScore_diy >>> .el-dialog {
  23020. border-radius:10px;
  23021. }
  23022. .markScore_diy >>> .el-dialog__body{
  23023. padding: 0;
  23024. height: 621px;
  23025. min-height: calc(100% - 60px);
  23026. }
  23027. .markScore_diy >>> .el-dialog__header{
  23028. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  23029. }
  23030. .markScore_diy >>> .markScore_diyTit{
  23031. width: calc(100% - 60px);
  23032. display: flex;
  23033. justify-content: space-between;
  23034. align-items: center;
  23035. }
  23036. .a_addBox {
  23037. padding: 0 0 0 15px;
  23038. }
  23039. .a_add_box {
  23040. padding: 10px;
  23041. background: #fff;
  23042. margin-bottom: 10px;
  23043. border-radius: 5px;
  23044. box-shadow: 0 0 5px 0 #d5d5d5;
  23045. }
  23046. .a_add_head {
  23047. display: flex;
  23048. align-items: flex-start;
  23049. /* justify-content: space-between; */
  23050. flex-direction: column;
  23051. /* flex-direction: row; */
  23052. margin: 10px 0 20px 0;
  23053. font-size: 18px;
  23054. width: 100%;
  23055. }
  23056. .askIndex {
  23057. background: #3681fc;
  23058. border-radius: 50%;
  23059. color: #fff;
  23060. width: 25px;
  23061. height: 25px;
  23062. min-width: 25px;
  23063. min-height: 25px;
  23064. text-align: center;
  23065. line-height: 25px;
  23066. margin-right: 5px;
  23067. }
  23068. .a_add_head .a_add_head_input {
  23069. width: 300px;
  23070. }
  23071. .a_add_head .a_add_head_div {
  23072. display: flex;
  23073. align-items: center;
  23074. justify-content: space-between;
  23075. }
  23076. .a_add_body {
  23077. display: flex;
  23078. align-items: center;
  23079. }
  23080. .a_add_input {
  23081. display: flex;
  23082. align-items: center;
  23083. flex-wrap: wrap;
  23084. width: 100%;
  23085. }
  23086. .a_add_input >>> .el-radio-group,
  23087. .a_add_input >>> .el-checkbox-group {
  23088. width: 100%;
  23089. }
  23090. .a_add_input >>> .el-radio,
  23091. .a_add_input >>> .el-checkbox {
  23092. display: flex;
  23093. flex-direction: row;
  23094. flex-wrap: nowrap;
  23095. align-items: center;
  23096. padding: 15px 0;
  23097. }
  23098. .a_add_input >>> .el-radio:not(:last-child),
  23099. .a_add_input >>> .el-checkbox:not(:last-child) {
  23100. width: 100%;
  23101. border-bottom: 1px solid #efefef;
  23102. }
  23103. .redioStyle >>> .el-radio__label {
  23104. font-size: 18px;
  23105. }
  23106. .redioStyle >>> .el-radio__label > span,
  23107. .redioStyle >>> .el-checkbox__label > span {
  23108. word-break: break-all;
  23109. white-space: normal;
  23110. }
  23111. .redioStyle >>> .el-checkbox__label {
  23112. font-size: 18px;
  23113. }
  23114. .toolHeng2 {
  23115. width: 100%;
  23116. padding-left: 15px;
  23117. box-sizing: border-box;
  23118. }
  23119. .workNav {
  23120. font-size: 20px;
  23121. font-weight: bold;
  23122. color: #0e1e33;
  23123. display: flex;
  23124. flex-direction: row;
  23125. flex-wrap: nowrap;
  23126. align-items: center;
  23127. padding: 15px 0 15px 0;
  23128. }
  23129. .workNav::before {
  23130. content: "";
  23131. width: 2px;
  23132. height: 22px;
  23133. background: #3681fc;
  23134. border-radius: 3px;
  23135. display: block;
  23136. margin: 2px 6px 0 0;
  23137. }
  23138. .toolHeng {
  23139. display: flex;
  23140. flex-direction: row;
  23141. flex-wrap: wrap;
  23142. justify-content: flex-start;
  23143. align-items: center;
  23144. width: 100%;
  23145. }
  23146. .toolHeng > div {
  23147. padding-left: 20px;
  23148. }
  23149. .isWidth {
  23150. width: 20%;
  23151. }
  23152. .textTitle {
  23153. display: flex;
  23154. flex-direction: row;
  23155. flex-wrap: nowrap;
  23156. align-items: center;
  23157. width: 95%;
  23158. }
  23159. .textTitle >>> .el-form-item__label {
  23160. font-size: 22px;
  23161. color: #918f8f;
  23162. width: 100px;
  23163. }
  23164. .textTitle >>> .el-form-item__content {
  23165. width: calc(100% - 100px);
  23166. }
  23167. .textCss >>> .el-dialog {
  23168. width: 800px !important;
  23169. height: 400px;
  23170. background: #fafafa;
  23171. }
  23172. .textCss >>> .el-dialog__body {
  23173. margin: 55px 8% 0 8%;
  23174. padding: 0 !important;
  23175. }
  23176. .textCss >>> .el-dialog__footer {
  23177. padding-top: 38px;
  23178. }
  23179. .toolsCss >>> .el-dialog__body {
  23180. padding: 20px;
  23181. }
  23182. .lineCss >>> .el-dialog__body {
  23183. display: flex;
  23184. flex-direction: row;
  23185. align-items: center;
  23186. justify-content: center;
  23187. }
  23188. .newNav {
  23189. display: flex;
  23190. flex-direction: row;
  23191. align-items: baseline;
  23192. justify-content: flex-start;
  23193. }
  23194. .navListItem {
  23195. width: calc(100% - 20px);
  23196. height: 50px;
  23197. margin: 0px auto 10px;
  23198. display: flex;
  23199. flex-direction: row;
  23200. flex-wrap: nowrap;
  23201. align-items: center;
  23202. justify-content: space-between;
  23203. background: #f0f4fa;
  23204. border-radius: 6px 6px 6px 6px;
  23205. }
  23206. .navText {
  23207. cursor: pointer;
  23208. white-space: nowrap;
  23209. overflow: hidden;
  23210. text-overflow: ellipsis;
  23211. width: 220px;
  23212. padding: 0 10px;
  23213. font-weight: 400;
  23214. color: #0e1e33;
  23215. }
  23216. .downIcon {
  23217. width: 20px;
  23218. min-width: 20px;
  23219. height: 20px;
  23220. margin-right: 15px;
  23221. cursor: pointer;
  23222. }
  23223. .downIcon > img {
  23224. width: 100%;
  23225. height: 100%;
  23226. }
  23227. .noVedio {
  23228. display: flex;
  23229. flex-direction: row;
  23230. justify-content: center;
  23231. align-content: center;
  23232. }
  23233. .noNavText {
  23234. cursor: pointer;
  23235. margin: 0px 0px 10px 5px;
  23236. width: 112px;
  23237. }
  23238. .listNoVedio {
  23239. margin: 0 0 0 30px;
  23240. width: 97%;
  23241. }
  23242. .video-player >>> .video-js {
  23243. height: 100%;
  23244. }
  23245. .hangVedioList {
  23246. width: 90% !important;
  23247. height: 150px !important;
  23248. margin: 20px 0 0 30px;
  23249. }
  23250. .hangVedio {
  23251. width: 100%;
  23252. height: 170px !important;
  23253. align-items: flex-start !important;
  23254. }
  23255. .hangHand {
  23256. height: 150px !important;
  23257. }
  23258. .twoChild {
  23259. width: 95%;
  23260. margin: 10px;
  23261. border-radius: 5px;
  23262. background: #f2f2f2;
  23263. display: flex;
  23264. flex-direction: column;
  23265. flex-wrap: nowrap;
  23266. justify-content: flex-start;
  23267. align-items: flex-start;
  23268. transition: all 0.5s;
  23269. overflow: hidden;
  23270. height: 0;
  23271. background: #e7f3ff;
  23272. }
  23273. .twoChild > div:nth-child(1) {
  23274. margin-top: 5px;
  23275. }
  23276. .navChild {
  23277. width: 100%;
  23278. cursor: pointer;
  23279. margin-bottom: 10px;
  23280. position: relative;
  23281. }
  23282. .navChild img {
  23283. position: absolute;
  23284. right: 11px;
  23285. width: 15px;
  23286. top: 50%;
  23287. transform: translateY(-50%);
  23288. }
  23289. .navActive,
  23290. .toolActive {
  23291. height: auto !important;
  23292. overflow: auto !important;
  23293. /* // padding-bottom: 16px; */
  23294. }
  23295. .toolActive {
  23296. padding: 0;
  23297. }
  23298. .navTask {
  23299. display: flex;
  23300. flex-direction: row;
  23301. flex-wrap: nowrap;
  23302. align-items: center;
  23303. align-content: flex-start;
  23304. height: 40px;
  23305. justify-content: flex-start;
  23306. padding: 0 10px;
  23307. width: 100%;
  23308. box-sizing: border-box;
  23309. }
  23310. .navTaskname {
  23311. white-space: nowrap;
  23312. text-overflow: ellipsis;
  23313. overflow: hidden;
  23314. word-break: break-all;
  23315. padding-left: 5px;
  23316. }
  23317. .openTaskActive {
  23318. /* background-color: #e0eafb !important;
  23319. color: #0061ff; */
  23320. color:#fff;
  23321. background: rgb(55, 129, 252) !important;
  23322. }
  23323. .iframeName {
  23324. margin: 5px 0;
  23325. border-left: 4px solid #41c4a4;
  23326. padding-left: 4px;
  23327. }
  23328. .toolTitle {
  23329. margin: 0px 0px 20px;
  23330. font-size: 20px;
  23331. font-weight: 500;
  23332. border-left: 4px solid #41c4a4;
  23333. padding-left: 4px;
  23334. }
  23335. .cru_selectBox {
  23336. overflow: auto;
  23337. width: 95%;
  23338. margin: 17px auto 0;
  23339. height: calc(100% - 40px - 21px - 20px - 17px);
  23340. background: #fff;
  23341. border-radius: 8px;
  23342. }
  23343. .cru_selectBox::-webkit-scrollbar,
  23344. .study_top::-webkit-scrollbar,
  23345. .textContent::-webkit-scrollbar {
  23346. /*滚动条整体样式*/
  23347. width: 6px;
  23348. /*高宽分别对应横竖滚动条的尺寸*/
  23349. height: 6px;
  23350. }
  23351. /*定义滚动条轨道 内阴影+圆角*/
  23352. .cru_selectBox::-webkit-scrollbar-track,
  23353. .study_top::-webkit-scrollbar-track,
  23354. .textContent::-webkit-scrollbar {
  23355. border-radius: 10px;
  23356. background-color: #b8bdc9;
  23357. }
  23358. /*定义滑块 内阴影+圆角*/
  23359. .cru_selectBox::-webkit-scrollbar-thumb,
  23360. .study_top::-webkit-scrollbar-thumb,
  23361. .textContent::-webkit-scrollbar-thumb {
  23362. border-radius: 10px;
  23363. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  23364. background-color: #2c5ab3;
  23365. }
  23366. .vedioBox {
  23367. border-radius: 0 0 20px 20px;
  23368. background: #fff;
  23369. overflow: auto;
  23370. }
  23371. .taskBox {
  23372. width: 98%;
  23373. background: #f0f4fa;
  23374. margin: 10px auto;
  23375. padding: 0 10px;
  23376. border-radius: 4px;
  23377. box-sizing: border-box;
  23378. }
  23379. .vedioTaskBox {
  23380. width: 100%;
  23381. display: flex;
  23382. flex-direction: row;
  23383. flex-wrap: nowrap;
  23384. align-items: flex-start;
  23385. position: relative;
  23386. }
  23387. .toolBox {
  23388. margin: 15px 0 0 25px;
  23389. display: flex;
  23390. position: relative;
  23391. padding: 18px 20px;
  23392. border-top-left-radius: 5px;
  23393. border-top-right-radius: 5px;
  23394. width: 90%;
  23395. }
  23396. .btnAll {
  23397. position: absolute;
  23398. right: 0;
  23399. display: flex;
  23400. flex-direction: row;
  23401. flex-wrap: nowrap;
  23402. align-items: center;
  23403. }
  23404. .btnLeft,
  23405. .btnRight {
  23406. display: flex;
  23407. flex-direction: row;
  23408. flex-wrap: nowrap;
  23409. align-items: center;
  23410. padding: 5px 0;
  23411. }
  23412. .btnLeft {
  23413. border-right: 1px solid #cad1dc;
  23414. }
  23415. .btnLeft > .custom-tooltip {
  23416. background: #3681fc;
  23417. color: #fff;
  23418. }
  23419. .last:hover {
  23420. background: #3383fa !important;
  23421. color: #fff;
  23422. border: 1px solid #3383fa !important;
  23423. }
  23424. .last,
  23425. .returnBtn1 {
  23426. width: 90px;
  23427. height: 36px;
  23428. background: #ffffff;
  23429. border-radius: 4px;
  23430. border: 1px solid #0061ff;
  23431. color: #0061ff;
  23432. cursor: pointer;
  23433. display: flex;
  23434. flex-direction: row;
  23435. flex-wrap: nowrap;
  23436. align-items: center;
  23437. justify-content: center;
  23438. margin-left: 12px;
  23439. }
  23440. .returnBtn1 {
  23441. background: #f0f4fa;
  23442. border-radius: 4px;
  23443. border: 1px solid #cad1dc;
  23444. margin: 0 12px;
  23445. }
  23446. .lastImg {
  23447. min-width: 15px;
  23448. width: 15px;
  23449. height: 15px;
  23450. display: flex;
  23451. }
  23452. .lastText {
  23453. padding: 0 5px 0 5px;
  23454. box-sizing: border-box;
  23455. font-size: 14px;
  23456. }
  23457. .lastImg > img {
  23458. width: 100%;
  23459. height: 100%;
  23460. }
  23461. /* .vedioTimeBox {
  23462. display: flex;
  23463. flex-direction: row;
  23464. align-items: center;
  23465. flex-wrap: nowrap;
  23466. position: relative;
  23467. } */
  23468. .navBox {
  23469. background: #fff;
  23470. height: calc(100% - 40px);
  23471. overflow-y: auto;
  23472. overflow-x: hidden;
  23473. }
  23474. .worksBox {
  23475. margin: 0 0 10px 25px;
  23476. border-bottom: 1px solid #eeeeee;
  23477. padding: 18px 20px;
  23478. border-radius: 4px;
  23479. width: 90%;
  23480. }
  23481. .worksBTitle {
  23482. font-size: 20px;
  23483. padding-bottom: 15px;
  23484. border-bottom: 1px solid #eeeeee;
  23485. display: flex;
  23486. align-items: center;
  23487. }
  23488. .greenBox {
  23489. width: 5px;
  23490. height: 30px;
  23491. background: #63b6fa;
  23492. margin-right: 5px;
  23493. }
  23494. .worksDetailBox {
  23495. display: flex;
  23496. width: 100%;
  23497. flex-direction: row;
  23498. flex-wrap: wrap;
  23499. align-items: flex-end;
  23500. justify-content: flex-start;
  23501. padding: 15px 5px;
  23502. box-sizing: border-box;
  23503. }
  23504. .works {
  23505. display: flex;
  23506. flex-direction: column;
  23507. flex-wrap: nowrap;
  23508. align-items: flex-start;
  23509. justify-content: flex-start;
  23510. align-content: center;
  23511. max-width: 240px;
  23512. width: calc(100% / 3 - 10px);
  23513. height: auto;
  23514. margin-right: 10px;
  23515. margin-bottom: 10px;
  23516. overflow: hidden;
  23517. height: 140px;
  23518. box-shadow: 0 0 6px 1px #dfdada;
  23519. border-radius: 15px;
  23520. }
  23521. .workImg {
  23522. width: 100%;
  23523. /* height: calc(100% - 40px); */
  23524. height: 105px;
  23525. position: relative;
  23526. }
  23527. .workImg > img {
  23528. width: 100%;
  23529. height: 100%;
  23530. object-fit: contain;
  23531. cursor: pointer;
  23532. }
  23533. .worksName {
  23534. height: 40px;
  23535. line-height: 40px;
  23536. display: flex;
  23537. width: 100%;
  23538. flex-direction: row;
  23539. flex-wrap: nowrap;
  23540. justify-content: space-between;
  23541. align-items: center;
  23542. margin: 0 0 0 10px;
  23543. }
  23544. .worksName > div:nth-child(1) {
  23545. width: 110px;
  23546. white-space: nowrap;
  23547. overflow: hidden;
  23548. text-overflow: ellipsis;
  23549. }
  23550. .worksName > div:nth-child(2) {
  23551. color: #b7b4b5;
  23552. }
  23553. .noWorksS {
  23554. padding: 15px 0;
  23555. display: flex;
  23556. flex-direction: row;
  23557. flex-wrap: wrap;
  23558. align-items: center;
  23559. justify-content: flex-start;
  23560. }
  23561. .noWorksName,
  23562. .isWorksName,
  23563. .isWorksName2 {
  23564. background: #ddebf8;
  23565. color: #000;
  23566. width: 90px;
  23567. height: 25px;
  23568. text-align: center;
  23569. line-height: 25px;
  23570. border-radius: 4px;
  23571. margin: 10px 15px 10px 0;
  23572. white-space: nowrap;
  23573. overflow: hidden;
  23574. padding: 5px;
  23575. text-overflow: ellipsis;
  23576. cursor: pointer;
  23577. border: 1px solid #ddebf8;
  23578. }
  23579. .noWorksName {
  23580. background: #fff;
  23581. color: #0061ff;
  23582. border: 1px solid #0061ff;
  23583. }
  23584. .noWorksName > span{
  23585. max-width: 100%;
  23586. display: block;
  23587. overflow: hidden;
  23588. text-overflow: ellipsis;
  23589. white-space: nowrap;
  23590. }
  23591. .isWorksName2 {
  23592. width: 100px;
  23593. height: 40px;
  23594. line-height: 40px;
  23595. position: relative;
  23596. background: #dae6f9;
  23597. }
  23598. .isWorksName {
  23599. background: #e7ebf1 !important;
  23600. width: 100px;
  23601. height: 40px;
  23602. line-height: 40px;
  23603. position: relative;
  23604. color: #acb4bf;
  23605. border: 1px solid #cad1dc !important;
  23606. }
  23607. .isSelectName,
  23608. .noWorksName:hover {
  23609. background: #3383fa !important;
  23610. color: #fff !important;
  23611. border: 1px solid #3383fa !important;
  23612. }
  23613. .title {
  23614. background: #1e5cc9;
  23615. /* width: 98%; */
  23616. height: 45px;
  23617. color: #fff;
  23618. line-height: 45px;
  23619. padding-left: 20px;
  23620. box-sizing: border-box;
  23621. }
  23622. .textBox {
  23623. font-size: 20px;
  23624. width: 90%;
  23625. display: flex;
  23626. flex-direction: column;
  23627. align-items: center;
  23628. margin: 20px auto 0;
  23629. max-height: calc(100% - 75px);
  23630. overflow: auto;
  23631. }
  23632. .textContent {
  23633. font-size: 18px;
  23634. width: 95%;
  23635. max-width: 95%;
  23636. }
  23637. .answerBg {
  23638. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  23639. background-size: 100% 100%;
  23640. width: 100%;
  23641. height: 100%;
  23642. color: #fff;
  23643. text-align: center;
  23644. display: flex;
  23645. flex-direction: column;
  23646. flex-wrap: nowrap;
  23647. align-items: center;
  23648. position: relative;
  23649. justify-content: center;
  23650. }
  23651. .answerBg > div:nth-child(1) {
  23652. /* font-size: 22px;
  23653. padding: 25px 0 10px; */
  23654. }
  23655. .answerContent {
  23656. width: 215px;
  23657. max-height: 60px;
  23658. word-break: break-all;
  23659. text-align: center;
  23660. /* white-space: nowrap; */
  23661. overflow: hidden;
  23662. text-overflow: ellipsis;
  23663. /* padding: 23px 0 0; */
  23664. -webkit-line-clamp: 3;
  23665. -webkit-box-orient: vertical;
  23666. display: -webkit-box;
  23667. font-size: 15px;
  23668. cursor: pointer;
  23669. }
  23670. .elist_input_box {
  23671. display: flex;
  23672. align-items: flex-start;
  23673. flex-wrap: nowrap;
  23674. padding: 10px 0 15px 30px;
  23675. flex-direction: column;
  23676. }
  23677. .elist_input {
  23678. /* width: 40%; */
  23679. width: 45%;
  23680. padding: 20px;
  23681. /* margin: 20px; */
  23682. box-sizing: border-box;
  23683. }
  23684. .elist_input .elist_input_box input {
  23685. font: inherit;
  23686. color: currentColor;
  23687. width: 200px;
  23688. padding: 8px 14px;
  23689. display: block;
  23690. min-width: 0;
  23691. outline: none;
  23692. border: 1px solid rgba(0, 0, 0, 0.23);
  23693. border-radius: 4px;
  23694. box-sizing: border-box;
  23695. background: #fff;
  23696. margin: 0 20px 0 0;
  23697. }
  23698. .elist_input .elist_input_box span {
  23699. height: 36px;
  23700. line-height: 36px;
  23701. color: rgb(82, 82, 82);
  23702. }
  23703. .elist_input .elist_input_box .remove {
  23704. height: 20px;
  23705. width: 20px;
  23706. background-size: 100% 100%;
  23707. background-position: unset;
  23708. margin-left: 5px;
  23709. }
  23710. .elist_input_box >>> .el-rate {
  23711. display: flex;
  23712. height: 36px;
  23713. align-items: center;
  23714. }
  23715. .elist_input_box .elist_inptu_text {
  23716. min-height: 50px;
  23717. /* width: 500px;
  23718. max-height: 150px; */
  23719. width: 100%;
  23720. line-height: 50px;
  23721. color: rgb(82, 82, 82);
  23722. overflow: auto;
  23723. text-indent: 5px;
  23724. background: #f7f6f9;
  23725. border-radius: 10px;
  23726. }
  23727. .elist_input_box .elist_inptu_text input {
  23728. width: 500px;
  23729. }
  23730. .elist_input_box >>> .el-rate__icon {
  23731. font-size: 24px;
  23732. }
  23733. .isClick {
  23734. background: #4d9def;
  23735. }
  23736. .bzBox {
  23737. display: flex;
  23738. flex-direction: row;
  23739. align-items: center;
  23740. }
  23741. .bzBox .yCss {
  23742. width: 7px;
  23743. height: 7px;
  23744. background: #fff;
  23745. margin: 0 16px 0 6px;
  23746. border-radius: 50%;
  23747. border: 5px solid #3681fc;
  23748. z-index: 99;
  23749. }
  23750. .bzBox > div:nth-child(2) {
  23751. font-size: 18px;
  23752. font-weight: bold;
  23753. color: #0e1e33;
  23754. }
  23755. .navTitile {
  23756. padding: 0 0px 0 15px;
  23757. font-size: 16px;
  23758. font-weight: bold;
  23759. color: #0e1e33;
  23760. height: 40px;
  23761. line-height: 40px;
  23762. }
  23763. .isTypeOne {
  23764. width: 240px;
  23765. height: 170px;
  23766. /* border: 1px solid #f8f8f8; */
  23767. border-radius: 10px;
  23768. box-shadow: 0 0 6px 1px #dfdada;
  23769. }
  23770. .e_add_top {
  23771. display: flex;
  23772. justify-content: space-between;
  23773. padding: 10px 20px;
  23774. border-radius: 3px;
  23775. background: #fff;
  23776. }
  23777. .e_add_title2 {
  23778. display: flex;
  23779. align-items: center;
  23780. }
  23781. .e_add_title2 span {
  23782. width: 40px;
  23783. }
  23784. .e_add_title {
  23785. display: flex;
  23786. align-items: center;
  23787. color: #b8b8b8;
  23788. font-size: 18px;
  23789. position: relative;
  23790. height: 40px;
  23791. }
  23792. .e_add_title span {
  23793. margin-right: 10px;
  23794. }
  23795. .e_add_title .el_input {
  23796. width: 300px;
  23797. }
  23798. .e_add_title >>> .el-input__inner {
  23799. width: 400px;
  23800. }
  23801. .e_add_btn {
  23802. }
  23803. .e_add_content {
  23804. display: flex;
  23805. width: 100%;
  23806. max-width: 650px;
  23807. height: 550px;
  23808. }
  23809. .e_add_list {
  23810. background: #fff;
  23811. height: 500px;
  23812. width: 210px;
  23813. position: relative;
  23814. margin: 15px 5px 0 0;
  23815. flex-shrink: 0;
  23816. display: flex;
  23817. flex-direction: column;
  23818. }
  23819. .e_add_list_title {
  23820. font-size: 20px;
  23821. width: 100%;
  23822. box-sizing: border-box;
  23823. padding: 15px 40px;
  23824. text-align: center;
  23825. border-bottom: 1px solid #eaeaea;
  23826. position: relative;
  23827. display: flex;
  23828. align-items: center;
  23829. justify-content: center;
  23830. height: 57px;
  23831. background: #f6f6f6;
  23832. }
  23833. .e_add_list_title span {
  23834. overflow: hidden;
  23835. white-space: nowrap;
  23836. text-overflow: ellipsis;
  23837. }
  23838. .e_add_list_title img {
  23839. position: absolute;
  23840. right: 15px;
  23841. width: 25px;
  23842. cursor: pointer;
  23843. top: 50%;
  23844. transform: translateY(-50%);
  23845. }
  23846. .e_add_list_body {
  23847. height: calc(100% - 187px);
  23848. overflow: auto;
  23849. }
  23850. .e_add_list_child {
  23851. width: 100%;
  23852. display: flex;
  23853. align-items: center;
  23854. justify-content: center;
  23855. position: relative;
  23856. box-sizing: border-box;
  23857. padding: 15px 40px;
  23858. text-align: center;
  23859. }
  23860. .e_add_list_child span {
  23861. overflow: hidden;
  23862. white-space: nowrap;
  23863. text-overflow: ellipsis;
  23864. cursor: pointer;
  23865. }
  23866. .e_add_list_child img {
  23867. position: absolute;
  23868. right: 10px;
  23869. width: 21px;
  23870. cursor: pointer;
  23871. top: 50%;
  23872. transform: translateY(-50%);
  23873. }
  23874. .e_add_list_child + .e_add_list_child {
  23875. border-top: 1px solid #eaeaea;
  23876. }
  23877. .e_add_list_child .active {
  23878. color: #409eff;
  23879. }
  23880. .e_add_list_btn {
  23881. position: absolute;
  23882. bottom: 0;
  23883. height: 50px;
  23884. background: rgb(120, 120, 254);
  23885. width: 100%;
  23886. color: #fff;
  23887. font-size: 16px;
  23888. text-align: center;
  23889. line-height: 50px;
  23890. cursor: pointer;
  23891. }
  23892. .e_add_list_detail {
  23893. position: absolute;
  23894. bottom: 0;
  23895. height: 130px;
  23896. background: rgb(120, 120, 254);
  23897. width: 100%;
  23898. color: #fff;
  23899. font-size: 16px;
  23900. display: flex;
  23901. align-items: center;
  23902. justify-content: center;
  23903. }
  23904. .e_add_list_detail textarea {
  23905. height: 90%;
  23906. width: 95%;
  23907. border: none;
  23908. resize: none;
  23909. outline: none;
  23910. padding: 5px;
  23911. box-sizing: border-box;
  23912. }
  23913. .e_add_list_pbox {
  23914. width: 100%;
  23915. max-width: 650px;
  23916. /* height: 600px; */
  23917. }
  23918. .e_add_list_pbox_title {
  23919. height: 50px;
  23920. background: #fff;
  23921. display: flex;
  23922. align-items: center;
  23923. width: 100%;
  23924. box-sizing: border-box;
  23925. padding: 0 20px;
  23926. }
  23927. .type_title {
  23928. font-size: 18px;
  23929. font-weight: 700;
  23930. }
  23931. .type_content {
  23932. font-size: 16px;
  23933. /* margin-left: 30px; */
  23934. }
  23935. .type_content span + span {
  23936. margin-left: 20px;
  23937. }
  23938. .type_content span {
  23939. cursor: pointer;
  23940. padding-bottom: 5px;
  23941. box-sizing: border-box;
  23942. }
  23943. .type_content .active {
  23944. color: #409eff;
  23945. border-bottom: 2px solid #409eff;
  23946. }
  23947. .e_add_list_pbox_content {
  23948. height: calc(100% - 50px);
  23949. display: flex;
  23950. align-items: center;
  23951. width: 100%;
  23952. background: #fff;
  23953. }
  23954. .evaCss {
  23955. display: flex;
  23956. flex-direction: row;
  23957. flex-wrap: nowrap;
  23958. align-items: flex-start;
  23959. padding: 0 0 20px;
  23960. }
  23961. .evaCss >>> .cell {
  23962. position: relative;
  23963. overflow: visible;
  23964. }
  23965. .evaCss >>>.el-table__body-wrapper{
  23966. overflow: visible;
  23967. }
  23968. .evaCss >>> .el-table{
  23969. overflow: visible;
  23970. }
  23971. .blueRootCss{
  23972. position: absolute;
  23973. top:50%;
  23974. left: 0;
  23975. transform: translate(-20px,-50%);
  23976. }
  23977. .cru_line {
  23978. position: absolute;
  23979. bottom: 0px;
  23980. transition: all 0.5s;
  23981. left: 0px;
  23982. width: 125px;
  23983. margin-left: -25px;
  23984. }
  23985. .isNoMessage {
  23986. width: 20%;
  23987. margin: 25% auto 0;
  23988. }
  23989. .isNoMessage > img {
  23990. width: 100%;
  23991. height: 100%;
  23992. }
  23993. .fullStyle >>> .el-dialog__body {
  23994. height: 100% !important;
  23995. }
  23996. .fullStyle >>> .el-dialog,
  23997. .fullStyle {
  23998. width: 100% !important;
  23999. max-width: 100% !important;
  24000. height: 100% !important;
  24001. margin: 0 !important;
  24002. }
  24003. .full_diy >>> .el-dialog {
  24004. margin: 0 !important;
  24005. height: 100%;
  24006. padding: 4px;
  24007. }
  24008. .full_diy >>> .el-dialog__body {
  24009. height: calc(100% - 100px);
  24010. }
  24011. .full_diy2 >>> .el-dialog__body {
  24012. height: calc(100% - 50px);
  24013. padding: 0;
  24014. }
  24015. .switchCss {
  24016. /* width: 100%; */
  24017. display: flex;
  24018. flex-direction: row;
  24019. flex-wrap: nowrap;
  24020. align-items: center;
  24021. /* justify-content: center; */
  24022. }
  24023. .isClickNav {
  24024. /* color: #499eef; */
  24025. color: #000;
  24026. }
  24027. .commentImg {
  24028. width: 25px;
  24029. height: 25px;
  24030. cursor: pointer;
  24031. }
  24032. .commentImg > img {
  24033. width: 100%;
  24034. height: 100%;
  24035. }
  24036. .comment {
  24037. background: #f9f9f9;
  24038. border-radius: 0 0 4px 4px;
  24039. display: flex;
  24040. flex-direction: row;
  24041. flex-wrap: nowrap;
  24042. align-items: center;
  24043. justify-content: flex-end;
  24044. height: 35px;
  24045. }
  24046. .commentList {
  24047. display: flex;
  24048. flex-direction: row;
  24049. flex-wrap: nowrap;
  24050. align-items: center;
  24051. justify-content: center;
  24052. align-content: center;
  24053. /* margin-left: 15px; */
  24054. /* margin-left: 8px; */
  24055. }
  24056. .scoreImg {
  24057. width: 17px;
  24058. height: 17px;
  24059. }
  24060. .studentDetail {
  24061. display: flex;
  24062. flex-direction: row;
  24063. flex-wrap: nowrap;
  24064. /* align-items: center; */
  24065. align-items: flex-start;
  24066. }
  24067. .tx {
  24068. width: 50px;
  24069. }
  24070. .tx > img {
  24071. width: 100%;
  24072. height: 100%;
  24073. }
  24074. .nameAndTime {
  24075. display: flex;
  24076. flex-direction: column;
  24077. flex-wrap: nowrap;
  24078. align-items: flex-start;
  24079. margin-left: 10px;
  24080. }
  24081. .worksAnswer {
  24082. color: #4078dd;
  24083. margin: 10px 0;
  24084. font-size: 16px;
  24085. position: relative;
  24086. }
  24087. .worksAnswer > img {
  24088. width: 500px;
  24089. height: 300px;
  24090. object-fit: contain;
  24091. margin: 0 auto;
  24092. display: block;
  24093. }
  24094. .commentTop {
  24095. border-bottom: 1px solid #eaeaea;
  24096. padding-bottom: 10px;
  24097. }
  24098. .commentBox {
  24099. padding-top: 15px;
  24100. }
  24101. .pl {
  24102. font-size: 18px;
  24103. }
  24104. .plPerson {
  24105. width: 100%;
  24106. }
  24107. .plName {
  24108. display: flex;
  24109. flex-direction: row;
  24110. flex-wrap: nowrap;
  24111. align-items: baseline;
  24112. color: #78787a;
  24113. width: 100%;
  24114. }
  24115. .deleteComment {
  24116. cursor: pointer;
  24117. margin-left: auto;
  24118. color: #237ade;
  24119. }
  24120. .plContent {
  24121. margin-top: 5px;
  24122. }
  24123. .evalCss {
  24124. background: #fff;
  24125. font-size: 18px;
  24126. }
  24127. .nav {
  24128. color: #9d9d9d;
  24129. padding: 5px 0 15px 20px;
  24130. }
  24131. .middleBox {
  24132. padding: 5px 0 15px 20px;
  24133. }
  24134. .pfBox {
  24135. padding-bottom: 30px;
  24136. }
  24137. .nameAndrate {
  24138. display: flex;
  24139. flex-direction: row;
  24140. flex-wrap: nowrap;
  24141. align-items: center;
  24142. padding-bottom: 10px;
  24143. height: 30px;
  24144. line-height: 30px;
  24145. }
  24146. .nameAndrate > div {
  24147. margin-left: 10px;
  24148. color: #000;
  24149. height: 30px;
  24150. }
  24151. .nameAndrate >>> .el-rate__icon {
  24152. font-size: 28px !important;
  24153. }
  24154. .pfBox > div:nth-child(2) {
  24155. background: #f7f6f9;
  24156. width: 400px;
  24157. min-height: 45px;
  24158. border-radius: 10px;
  24159. font-size: 16px;
  24160. display: flex;
  24161. flex-wrap: wrap;
  24162. align-items: center;
  24163. padding: 10px 20px;
  24164. box-sizing: border-box;
  24165. color: #000;
  24166. }
  24167. .bz {
  24168. display: flex;
  24169. flex-direction: row;
  24170. flex-wrap: nowrap;
  24171. align-items: flex-start;
  24172. }
  24173. .bz > div {
  24174. padding: 0 10px;
  24175. }
  24176. .select_box2_title {
  24177. background: #fff;
  24178. border-radius: 5px;
  24179. padding: 15px 10px;
  24180. box-sizing: border-box;
  24181. margin-bottom: 10px;
  24182. display: flex;
  24183. flex-direction: row;
  24184. flex-wrap: nowrap;
  24185. align-items: center;
  24186. }
  24187. .select_box2_title > div:nth-child(2) {
  24188. margin-left: 10px;
  24189. color: #c4c4c4;
  24190. }
  24191. .select_box2_box {
  24192. display: flex;
  24193. height: 500px;
  24194. }
  24195. .select_box2_img {
  24196. width: calc(100% - 310px);
  24197. height: 100%;
  24198. overflow: auto;
  24199. background: #fff;
  24200. border-radius: 5px;
  24201. }
  24202. .select_box2_img img {
  24203. width: 100%;
  24204. }
  24205. .select_box2_answer {
  24206. background: #fff;
  24207. margin-left: 10px;
  24208. border-radius: 5px;
  24209. width: 300px;
  24210. overflow: auto;
  24211. height: 90%;
  24212. display: flex;
  24213. flex-direction: column;
  24214. align-items: flex-start;
  24215. padding-top: 10px;
  24216. box-sizing: border-box;
  24217. position: relative;
  24218. }
  24219. .select_answer_title {
  24220. padding: 0 0 15px 20px;
  24221. color: #c4c4c4;
  24222. }
  24223. .select_box2_answer_box {
  24224. margin: 0 0 10px 20px;
  24225. width: 85%;
  24226. display: flex;
  24227. flex-direction: row;
  24228. flex-wrap: nowrap;
  24229. align-items: center;
  24230. }
  24231. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  24232. color: #000;
  24233. }
  24234. .upAnswerCss {
  24235. position: absolute;
  24236. bottom: 15px;
  24237. right: 15px;
  24238. }
  24239. .upAnswerCss >>> .el-button {
  24240. width: 95px;
  24241. height: 35px;
  24242. line-height: 35px;
  24243. padding: 0;
  24244. }
  24245. .rightWidthCss {
  24246. width: 60%;
  24247. display: flex;
  24248. flex-direction: row;
  24249. align-items: flex-start;
  24250. }
  24251. .rightAnswer {
  24252. display: flex;
  24253. flex-direction: row;
  24254. flex-wrap: nowrap;
  24255. align-items: center;
  24256. color: red;
  24257. margin-bottom: 31px;
  24258. }
  24259. .rightAnswerCss {
  24260. display: flex;
  24261. flex-direction: column;
  24262. flex-wrap: nowrap;
  24263. padding-top: 60px;
  24264. }
  24265. .blueCss {
  24266. color: #767de1;
  24267. margin-left: 10px;
  24268. }
  24269. .redCss {
  24270. color: red;
  24271. }
  24272. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  24273. color: rgb(0 123 255) !important;
  24274. }
  24275. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  24276. color: rgb(0 123 255) !important;
  24277. }
  24278. .zuoyeYulan {
  24279. padding-top: 0;
  24280. font-size: 18px;
  24281. display: flex;
  24282. align-items: flex-end;
  24283. }
  24284. .buttonA {
  24285. margin-left: 10px;
  24286. padding: 0;
  24287. }
  24288. .displayBox {
  24289. margin-bottom: 10px;
  24290. display: block;
  24291. border-bottom: 3px solid #eee;
  24292. display: flex;
  24293. align-items: center;
  24294. }
  24295. .easy_comment {
  24296. width: calc(100% - 90px);
  24297. margin-left: 10px;
  24298. display: flex;
  24299. flex-wrap: wrap;
  24300. }
  24301. .easy_comment > div {
  24302. border: 1px solid #4a4a4a;
  24303. color: #666;
  24304. border-radius: 15px;
  24305. padding: 5px 10px;
  24306. font-size: 16px;
  24307. margin-bottom: 10px;
  24308. margin-right: 5px;
  24309. cursor: pointer;
  24310. }
  24311. .easy_comment div:hover {
  24312. border: 1px solid #f7ba2a;
  24313. color: #c69217;
  24314. }
  24315. .xuan_right_box {
  24316. padding: 10px 0;
  24317. background: #f0f4fa;
  24318. margin: 0 15px 0 25px;
  24319. border-bottom-left-radius: 5px;
  24320. border-bottom-right-radius: 5px;
  24321. width: 91.5%;
  24322. }
  24323. .tool_right_box {
  24324. display: flex;
  24325. align-items: center;
  24326. }
  24327. .tool_right_box + .tool_right_box {
  24328. margin-top: 10px;
  24329. }
  24330. .right_box_xuan {
  24331. border-radius: 5px;
  24332. padding: 5px;
  24333. margin-left: 10px;
  24334. min-width: 85px;
  24335. background: #fff;
  24336. color: #0061ff;
  24337. border: 1px solid #0061ff;
  24338. font-size: 14px;
  24339. }
  24340. .pButton:hover {
  24341. opacity: 1 !important;
  24342. }
  24343. .pButton {
  24344. position: fixed;
  24345. text-align: center;
  24346. cursor: pointer;
  24347. z-index: 999;
  24348. right: 20px;
  24349. top: 110px;
  24350. width: 50px;
  24351. height: 50px;
  24352. display: flex;
  24353. align-items: center;
  24354. justify-content: center;
  24355. border-radius: 5px;
  24356. }
  24357. .pzClass {
  24358. width: calc(100% - 340px);
  24359. }
  24360. .newDialogCss {
  24361. /* position: fixed;
  24362. right: 5%;
  24363. top: 50%;
  24364. width: 340px;
  24365. transform: translateY(-50%);
  24366. height: 60%;
  24367. box-shadow: 0px 0 8px 0px #555555;
  24368. border-radius: 15px;
  24369. z-index: 999; */
  24370. position: fixed;
  24371. right: 20px;
  24372. top: 101px;
  24373. width: 330px;
  24374. height: calc(100% - 80px);
  24375. z-index: 999;
  24376. background: #fff;
  24377. border-top-right-radius: 0px;
  24378. border-bottom-right-radius: 0px;
  24379. overflow: hidden;
  24380. }
  24381. .newDialogCss>.scoreList{
  24382. width:100%;
  24383. height:100%;
  24384. box-sizing:border-box;
  24385. padding:10px 15px;
  24386. overflow:auto;
  24387. padding-bottom:80px;
  24388. }
  24389. .pzTop {
  24390. color: #fff;
  24391. background: #000;
  24392. display: flex;
  24393. flex-direction: row;
  24394. flex-wrap: nowrap;
  24395. align-items: center;
  24396. justify-content: space-between;
  24397. height: 40px;
  24398. border-radius: 15px 15px 0 0;
  24399. user-select: none;
  24400. }
  24401. .pzTop2 .checkbox {
  24402. display: flex;
  24403. align-items: center;
  24404. padding: 5px 10px;
  24405. flex: 0 0 auto;
  24406. font-weight: bold;
  24407. border-bottom: 1px solid #eee;
  24408. justify-content: space-between;
  24409. }
  24410. .checkbox>.cb-tabList{
  24411. display:flex;
  24412. align-items:center;
  24413. }
  24414. .cb-tabList>div{
  24415. margin-right:20px;
  24416. font-weight:400;
  24417. cursor:pointer;
  24418. }
  24419. .cb-tabList>.cb-tabItem{
  24420. color:#1684FC;
  24421. position:relative;
  24422. }
  24423. .cb-tabItem::after{
  24424. content:"";
  24425. width:100%;
  24426. height:2px;
  24427. background:#1684FC;
  24428. position:absolute;
  24429. bottom:-5px;
  24430. left:0
  24431. }
  24432. .pzTop2 .check {
  24433. text-align: center;
  24434. cursor: pointer;
  24435. box-sizing: border-box;
  24436. display: flex;
  24437. }
  24438. .pzTop2 img {
  24439. width: 25px;
  24440. cursor: pointer;
  24441. }
  24442. .pzTop > div:nth-child(1) {
  24443. padding-left: 10px;
  24444. }
  24445. .pzTop > div:nth-child(2) {
  24446. width: 15px;
  24447. height: 15px;
  24448. padding-right: 10px;
  24449. cursor: pointer;
  24450. }
  24451. .pzTop > div:nth-child(2) > img {
  24452. width: 100%;
  24453. height: 100%;
  24454. }
  24455. .pzBox,
  24456. .noPzBox {
  24457. height: calc(100% - 60px);
  24458. /* background: #ededed; */
  24459. background: #fff;
  24460. /* border-radius: 0 0 15px 15px; */
  24461. }
  24462. .noPzBox {
  24463. display: flex;
  24464. flex-direction: column;
  24465. flex-wrap: nowrap;
  24466. justify-content: center;
  24467. align-items: center;
  24468. }
  24469. .pzList {
  24470. background: #f7f7f7;
  24471. width: 90%;
  24472. margin: 0 auto 15px;
  24473. border-radius: 5px;
  24474. }
  24475. .pzNavTop {
  24476. display: flex;
  24477. flex-direction: row;
  24478. flex-wrap: nowrap;
  24479. padding: 10px 10px 0 10px;
  24480. align-items: center;
  24481. }
  24482. .pzDelete {
  24483. cursor: pointer;
  24484. margin-left: auto;
  24485. font-size: 14px;
  24486. color: #afafaf;
  24487. }
  24488. .pzNavTop > div:nth-child(1) {
  24489. background: #3760af;
  24490. width: 35px;
  24491. height: 35px;
  24492. color: #fff;
  24493. text-align: center;
  24494. line-height: 35px;
  24495. border-radius: 50%;
  24496. font-size: 14px;
  24497. }
  24498. .pzNavTop > div:nth-child(2) {
  24499. font-size: 18px;
  24500. color: #959595;
  24501. margin-left: 5px;
  24502. }
  24503. .pzContent {
  24504. padding: 10px;
  24505. word-break: break-word;
  24506. }
  24507. .pzContent audio {
  24508. width: 100%;
  24509. }
  24510. .pzContent audio::-webkit-media-controls-panel {
  24511. background: #fff;
  24512. }
  24513. .pzContent >>> img {
  24514. max-width: 100%;
  24515. }
  24516. .pzListBox {
  24517. padding-top: 15px;
  24518. height: calc(100% - 110px);
  24519. overflow: auto;
  24520. }
  24521. .addPzButton {
  24522. position: relative;
  24523. margin-top: 3px;
  24524. width: 100%;
  24525. }
  24526. .addPzButton .img1 {
  24527. position: absolute;
  24528. top: 50%;
  24529. right: 25px;
  24530. transform: translateY(-50%);
  24531. height: 100%;
  24532. display: flex;
  24533. align-items: center;
  24534. }
  24535. .addPzButton .img1 div {
  24536. display: flex;
  24537. }
  24538. .addPzButton .img1 div img {
  24539. width: 28px;
  24540. margin-left: 10px;
  24541. cursor: pointer;
  24542. }
  24543. .addPzButton .img1 div span {
  24544. font-size: 14px;
  24545. margin: 4px 0 0 3px;
  24546. color: #afafaf;
  24547. }
  24548. .addPz {
  24549. background: #4b79ce;
  24550. width: 100px;
  24551. color: #fff;
  24552. font-size: 12px;
  24553. height: 30px;
  24554. margin: 0 auto;
  24555. text-align: center;
  24556. line-height: 30px;
  24557. border-radius: 10px;
  24558. cursor: pointer;
  24559. }
  24560. .addDialogCss {
  24561. position: fixed;
  24562. width: 600px;
  24563. height: 70%;
  24564. min-height: 450px;
  24565. box-shadow: 0px 0 8px 0px #555555;
  24566. border-radius: 15px;
  24567. z-index: 999;
  24568. left: 50%;
  24569. top: 50%;
  24570. margin: -18% 0 0 -300px;
  24571. }
  24572. .teacherPz {
  24573. display: flex;
  24574. flex-direction: row;
  24575. align-items: center;
  24576. flex-wrap: nowrap;
  24577. }
  24578. .teacherPzImg {
  24579. width: 30px;
  24580. height: 30px;
  24581. }
  24582. .teacherPzImg > img {
  24583. width: 100%;
  24584. height: 100%;
  24585. }
  24586. .addPzBox {
  24587. height: calc(100% - 40px);
  24588. background: #ededed;
  24589. border-bottom-left-radius: 15px;
  24590. border-bottom-right-radius: 15px;
  24591. }
  24592. .pzAudioClass {
  24593. margin: 15px 14px;
  24594. background: #fff;
  24595. height: 100%;
  24596. display: flex;
  24597. justify-content: center;
  24598. align-items: center;
  24599. }
  24600. .pzConText {
  24601. width: 95%;
  24602. height: 100%;
  24603. margin: 10px auto 0;
  24604. border: none;
  24605. background: #fff;
  24606. border-radius: 0px;
  24607. }
  24608. .pzConText >>> .text {
  24609. height: calc(100% - 82px);
  24610. }
  24611. .addTextCss {
  24612. background: #4b79ce;
  24613. width: 80px;
  24614. height: 30px;
  24615. text-align: center;
  24616. color: #fff;
  24617. line-height: 30px;
  24618. border-radius: 10px;
  24619. margin: 10px auto 0;
  24620. cursor: pointer;
  24621. }
  24622. .pzConText:focus-visible {
  24623. border: none !important;
  24624. }
  24625. .maxWidth {
  24626. width: 1000px;
  24627. }
  24628. .noPz {
  24629. width: 150px;
  24630. margin: 0 auto 20%;
  24631. }
  24632. .noPz > img {
  24633. width: 100%;
  24634. height: 100%;
  24635. }
  24636. .timeAndReply {
  24637. display: flex;
  24638. flex-direction: row;
  24639. flex-wrap: nowrap;
  24640. justify-content: space-between;
  24641. align-items: center;
  24642. font-size: 14px;
  24643. box-sizing: border-box;
  24644. padding: 0 10px 10px 0px;
  24645. }
  24646. .timeAndReply .time {
  24647. color: #bfbfbf;
  24648. padding: 0 0 0 10px;
  24649. box-sizing: border-box;
  24650. }
  24651. .timeAndReply > div:last-child {
  24652. cursor: pointer;
  24653. color: #777;
  24654. }
  24655. /* table 样式 */
  24656. .cont >>> table {
  24657. border-top: 1px solid #ccc;
  24658. border-left: 1px solid #ccc;
  24659. }
  24660. .cont >>> table td,
  24661. .cont >>> table th {
  24662. border-bottom: 1px solid #ccc;
  24663. border-right: 1px solid #ccc;
  24664. /* padding: 20px 5px; */
  24665. padding: 5px 10px;
  24666. max-width: 0px;
  24667. height: 30px;
  24668. vertical-align: baseline;
  24669. box-sizing: border-box;
  24670. }
  24671. .cont >>> table th {
  24672. border-bottom: 2px solid #ccc;
  24673. text-align: center;
  24674. }
  24675. /* blockquote 样式 */
  24676. .cont >>> blockquote {
  24677. display: block;
  24678. border-left: 8px solid #d0e5f2;
  24679. padding: 5px 10px;
  24680. margin: 10px 0;
  24681. line-height: 1.4;
  24682. font-size: 100%;
  24683. background-color: #f1f1f1;
  24684. }
  24685. /* code 样式 */
  24686. .cont >>> code {
  24687. display: inline-block;
  24688. /* *display: inline; */
  24689. zoom: 1;
  24690. background-color: #f1f1f1;
  24691. border-radius: 3px;
  24692. padding: 3px 5px;
  24693. margin: 0 3px;
  24694. }
  24695. .cont >>> pre code {
  24696. display: block;
  24697. }
  24698. /* ul ol 样式 */
  24699. .cont >>> ul,
  24700. ol {
  24701. margin: 10px 0 10px 20px;
  24702. }
  24703. .addPzCheck {
  24704. display: flex;
  24705. flex-direction: row;
  24706. flex-wrap: nowrap;
  24707. padding: 10px 15px 0;
  24708. }
  24709. .addPzCheck span {
  24710. cursor: pointer;
  24711. padding-bottom: 5px;
  24712. font-weight: bold;
  24713. }
  24714. .addPzCheck span + span {
  24715. margin-left: 10px;
  24716. }
  24717. .addPzCheck .isChooseActive {
  24718. color: #3e88f4;
  24719. border-bottom: 2px solid #2f80f3;
  24720. }
  24721. /* code 样式 */
  24722. .cont {
  24723. /* -webkit-user-modify: read-write; */
  24724. overflow-wrap: break-word;
  24725. -webkit-line-break: after-white-space;
  24726. word-break: break-word;
  24727. white-space: pre-line;
  24728. }
  24729. .scoreBox,
  24730. .scoreDetailBox {
  24731. display: flex;
  24732. align-items: center;
  24733. justify-content: flex-start;
  24734. margin-top: 20px;
  24735. font-size: 18px;
  24736. width: 100%;
  24737. }
  24738. .scoreBox .t,
  24739. .scoreDetailBox .t {
  24740. margin-right: 10px;
  24741. width: 100px;
  24742. text-align: right;
  24743. }
  24744. .scoreDetailBox {
  24745. align-items: flex-start;
  24746. }
  24747. .scoreDetailBox >>> .el-textarea {
  24748. width: calc(100% - 200px);
  24749. }
  24750. .scoreBox >>> .el-input {
  24751. width: 130px;
  24752. font-size: 38px;
  24753. }
  24754. .scoreBox >>> .el-input__inner {
  24755. height: 60px;
  24756. }
  24757. .answerScore {
  24758. position: absolute;
  24759. top: 10px;
  24760. right: 10px;
  24761. background: #0000008f;
  24762. border-radius: 5px;
  24763. padding: 3px 5px;
  24764. font-size: 14px;
  24765. color: #fff;
  24766. cursor: pointer;
  24767. }
  24768. .open_box .switch_box {
  24769. width: 100%;
  24770. margin: 0 auto;
  24771. display: flex;
  24772. justify-content: space-between;
  24773. }
  24774. .open_box .switch_box + .switch_box {
  24775. margin-top: 10px;
  24776. }
  24777. .deleteImg,.deleteImg1 {
  24778. width: 25px !important;
  24779. height: 25px !important;
  24780. cursor: pointer;
  24781. position: absolute;
  24782. top: 10px;
  24783. right: 10px;
  24784. }
  24785. .deleteImg2 {
  24786. width: 23px !important;
  24787. height: 23px !important;
  24788. top: 5px;
  24789. right: 5px;
  24790. }
  24791. .deleteImg1{
  24792. width: 23px !important;
  24793. height: 23px !important;
  24794. top: 5px !important;
  24795. right: 30px !important;
  24796. }
  24797. .rightW {
  24798. right: 40px;
  24799. }
  24800. .drawPBox {
  24801. display: flex;
  24802. flex-direction: column;
  24803. position: relative;
  24804. }
  24805. .drawPBox span {
  24806. font-size: 18px;
  24807. color: #606266;
  24808. padding-bottom: 10px;
  24809. margin: 10px 0;
  24810. border-bottom: 1px solid #eaeaea;
  24811. }
  24812. .drawPBox img {
  24813. width: 500px;
  24814. height: 300px;
  24815. object-fit: contain;
  24816. cursor: pointer;
  24817. margin: 0 auto;
  24818. }
  24819. .sentenBox {
  24820. background: #fff;
  24821. height: 450px;
  24822. overflow: auto;
  24823. background-image: url("../../assets/icon/conSentences/stuBg.png");
  24824. background-position: 102%;
  24825. background-repeat: no-repeat;
  24826. background-size: 60%;
  24827. }
  24828. .addSen {
  24829. background: #409efe;
  24830. width: 90px;
  24831. color: #fff;
  24832. height: 35px;
  24833. text-align: center;
  24834. line-height: 35px;
  24835. border-radius: 5px;
  24836. float: right;
  24837. margin: 10px 20px 0 0;
  24838. cursor: pointer;
  24839. }
  24840. .sentenTop {
  24841. display: flex;
  24842. flex-direction: row;
  24843. flex-wrap: nowrap;
  24844. align-items: center;
  24845. padding: 55px 0 0 20px;
  24846. box-sizing: border-box;
  24847. }
  24848. .sentenTop > div:nth-child(2) {
  24849. width: 300px;
  24850. margin: 0 15px;
  24851. }
  24852. .sentenTop > div:nth-child(3) {
  24853. background: #409efe;
  24854. color: #fff;
  24855. width: 65px;
  24856. height: 35px;
  24857. text-align: center;
  24858. line-height: 35px;
  24859. border-radius: 5px;
  24860. cursor: pointer;
  24861. }
  24862. .cardList,
  24863. .cardList1 {
  24864. padding: 10px 0 10px 0;
  24865. display: flex;
  24866. flex-direction: row;
  24867. flex-wrap: wrap;
  24868. align-items: center;
  24869. box-sizing: border-box;
  24870. border-bottom: 1px solid #f4f4f4;
  24871. width: 98%;
  24872. margin: 0 auto;
  24873. min-width: 60%;
  24874. max-width: 85%;
  24875. }
  24876. .cardList1 {
  24877. padding: 10px 0 10px 10px !important;
  24878. margin: 0 !important;
  24879. }
  24880. .cardBox {
  24881. display: flex;
  24882. flex-direction: row;
  24883. flex-wrap: wrap;
  24884. align-items: center;
  24885. align-content: center;
  24886. }
  24887. .cardBox > div {
  24888. margin-bottom: 10px;
  24889. }
  24890. .isCard,
  24891. .isChooseCard,
  24892. .noCard,
  24893. .isCard1 {
  24894. min-width: 130px;
  24895. width: auto;
  24896. height: 60px;
  24897. text-align: center;
  24898. line-height: 60px;
  24899. font-size: 20px;
  24900. cursor: pointer;
  24901. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  24902. background-size: cover;
  24903. transition: all 2s;
  24904. margin-right: 20px;
  24905. background-size: 100% 100%;
  24906. padding: 0 20px;
  24907. box-sizing: border-box;
  24908. }
  24909. .isCard > div,
  24910. .noCard > div,
  24911. .isCard1 > div {
  24912. white-space: nowrap;
  24913. overflow: hidden;
  24914. text-overflow: ellipsis;
  24915. width: 100%;
  24916. margin: 0 auto;
  24917. }
  24918. .noCard {
  24919. background-image: none;
  24920. }
  24921. .isCard1 {
  24922. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  24923. }
  24924. .isChooseCard {
  24925. background-image: none;
  24926. border: 1px dashed #b9b9b9;
  24927. border-radius: 10px;
  24928. }
  24929. .card {
  24930. width: 130px;
  24931. height: 60px;
  24932. }
  24933. .card > img {
  24934. width: 100%;
  24935. height: 100%;
  24936. }
  24937. .rightCardBox {
  24938. margin: 10px 0 0 10px;
  24939. }
  24940. .rightCardBox > div:nth-child(1) {
  24941. margin-bottom: 10px;
  24942. }
  24943. .cardCss {
  24944. display: flex;
  24945. flex-direction: column;
  24946. flex-wrap: nowrap;
  24947. align-items: center;
  24948. border-bottom: 3px solid #b4c3d3;
  24949. padding: 0 0 5px 0;
  24950. margin-right: 10px;
  24951. }
  24952. .cardCss > div:nth-child(2) {
  24953. background: #5b7b9d;
  24954. color: #fff;
  24955. width: 20px;
  24956. height: 20px;
  24957. border-radius: 50%;
  24958. text-align: center;
  24959. line-height: 20px;
  24960. }
  24961. .isWrong {
  24962. display: flex;
  24963. flex-direction: row;
  24964. flex-wrap: nowrap;
  24965. align-content: center;
  24966. align-items: center;
  24967. }
  24968. .answerRight {
  24969. width: 25%;
  24970. }
  24971. .isTj {
  24972. display: flex;
  24973. flex-direction: row;
  24974. flex-wrap: nowrap;
  24975. align-items: center;
  24976. }
  24977. .isTj > div:nth-child(2) {
  24978. color: #727070;
  24979. margin-left: 10px;
  24980. }
  24981. .isTjImg {
  24982. width: 30px;
  24983. height: 30px;
  24984. }
  24985. .isTjImg > img {
  24986. width: 100%;
  24987. height: 100%;
  24988. }
  24989. .cardAnswerBox {
  24990. font-size: 18px;
  24991. width: 97%;
  24992. border: 5px;
  24993. padding: 0;
  24994. border-radius: 5px;
  24995. margin: 10px auto;
  24996. word-break: break-word;
  24997. }
  24998. .w_name {
  24999. margin-bottom: 10px;
  25000. }
  25001. .w_name span {
  25002. font-size: 16px;
  25003. }
  25004. .w_teachert {
  25005. width: 50px !important;
  25006. position: absolute;
  25007. height: auto !important;
  25008. z-index: 10;
  25009. right: 25px;
  25010. top: -25px;
  25011. }
  25012. .group_workBox {
  25013. }
  25014. .group_workBox + .group_workBox {
  25015. margin-top: 20px;
  25016. }
  25017. .group_box {
  25018. padding-bottom: 20px;
  25019. border-bottom: 2px solid #f0f0f0;
  25020. margin-top: 10px;
  25021. }
  25022. .group_title {
  25023. display: flex;
  25024. align-items: center;
  25025. justify-content: space-between;
  25026. width: 95%;
  25027. }
  25028. .group_name {
  25029. background-image: url(../../assets/icon/groupN.png);
  25030. width: 220px;
  25031. background-size: 100% 100%;
  25032. height: 67px;
  25033. padding: 0 20px 0 43px;
  25034. box-sizing: border-box;
  25035. line-height: 63px;
  25036. color: #fff;
  25037. overflow: hidden;
  25038. white-space: nowrap;
  25039. text-overflow: ellipsis;
  25040. }
  25041. .group_work {
  25042. width: 100%;
  25043. padding: 0 10px;
  25044. box-sizing: border-box;
  25045. display: flex;
  25046. flex-wrap: wrap;
  25047. }
  25048. .g_d_box {
  25049. display: flex;
  25050. flex-flow: wrap;
  25051. justify-content: space-around;
  25052. }
  25053. .g_d_box .isChair {
  25054. background-image: url(../../assets/avatar.png) !important;
  25055. }
  25056. .g_d_group {
  25057. width: 500px;
  25058. margin-bottom: 80px;
  25059. }
  25060. .g_d_group_chair {
  25061. display: flex;
  25062. align-items: center;
  25063. justify-content: center;
  25064. }
  25065. .g_d_group_chair > div + div {
  25066. margin-left: 30px;
  25067. }
  25068. .g_d_group_chair > div,
  25069. .g_d_group_chair2 > div {
  25070. display: flex;
  25071. flex-direction: column;
  25072. align-items: center;
  25073. }
  25074. .g_d_group_chair > div > span:nth-child(1),
  25075. .g_d_group_chair2 > div > span:nth-child(1) {
  25076. background-image: url(../../assets/icon/chair.png);
  25077. width: 50px;
  25078. height: 50px;
  25079. display: block;
  25080. background-size: 100% 100%;
  25081. }
  25082. .g_d_group_tableBox {
  25083. display: flex;
  25084. align-items: center;
  25085. justify-content: center;
  25086. }
  25087. .g_d_group_chair2 {
  25088. display: flex;
  25089. flex-direction: column;
  25090. align-items: center;
  25091. justify-content: center;
  25092. }
  25093. .g_d_group_chair2 > div + div {
  25094. margin-top: 10px;
  25095. }
  25096. .g_d_group_table {
  25097. background-image: url(../../assets/icon/groupBg.png);
  25098. width: 354px;
  25099. height: 196px;
  25100. background-size: 100% 100%;
  25101. display: flex;
  25102. align-items: center;
  25103. justify-content: center;
  25104. flex-direction: column;
  25105. color: #fff;
  25106. }
  25107. .g_d_group_table > div:nth-child(1) {
  25108. font-size: 24px;
  25109. margin-bottom: 5px;
  25110. }
  25111. .g_d_group_table > div:nth-child(2) div {
  25112. cursor: pointer;
  25113. background: #2e77bf;
  25114. padding: 4px 10px;
  25115. border-radius: 5px;
  25116. }
  25117. .groupBox {
  25118. }
  25119. .groupContent + .groupContent {
  25120. margin-top: 30px;
  25121. }
  25122. .groupTitle {
  25123. font-size: 24px;
  25124. color: rgb(80, 80, 80);
  25125. margin-bottom: 20px;
  25126. }
  25127. .groupName {
  25128. display: flex;
  25129. align-items: center;
  25130. }
  25131. .groupn {
  25132. font-size: 15px;
  25133. margin-right: 10px;
  25134. }
  25135. .groupName + .groupName {
  25136. margin-top: 15px;
  25137. }
  25138. .groupBtn {
  25139. margin-left: 10px;
  25140. }
  25141. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  25142. text-align: left;
  25143. }
  25144. .g_d_btnBox {
  25145. display: flex;
  25146. justify-content: flex-end;
  25147. align-items: center;
  25148. margin-bottom: 20px;
  25149. }
  25150. .updateChair {
  25151. position: relative;
  25152. }
  25153. .updateChairBtn {
  25154. position: absolute;
  25155. width: 50px;
  25156. height: 50px;
  25157. overflow: hidden;
  25158. /* display: flex; */
  25159. align-items: center;
  25160. justify-content: center;
  25161. background: #00000087;
  25162. color: #fff;
  25163. border-radius: 50px;
  25164. display: none;
  25165. cursor: pointer;
  25166. }
  25167. .updateChair:hover .updateChairBtn {
  25168. display: flex;
  25169. }
  25170. .group_staic_box {
  25171. display: flex;
  25172. padding: 30px 40px 10px;
  25173. flex-wrap: wrap;
  25174. }
  25175. .group_staic {
  25176. /* width: 50%; */
  25177. margin-bottom: 20px;
  25178. display: flex;
  25179. align-items: center;
  25180. }
  25181. .group_staic span:nth-child(1) {
  25182. width: 150px;
  25183. text-align: right;
  25184. margin-right: 15px;
  25185. }
  25186. .group_staic span:nth-child(2) {
  25187. background: rgb(0 123 255);
  25188. color: #fff;
  25189. border-radius: 5px;
  25190. padding: 5px;
  25191. }
  25192. .codeFileBox {
  25193. height: 300px;
  25194. background: #fff;
  25195. display: flex;
  25196. align-items: center;
  25197. justify-content: center;
  25198. }
  25199. .codeFileBox img {
  25200. width: 200px;
  25201. margin: 0;
  25202. height: auto;
  25203. }
  25204. .codeFileBox div {
  25205. background: rgb(80, 142, 226);
  25206. color: #fff;
  25207. padding: 10px 20px;
  25208. border-radius: 25px;
  25209. cursor: pointer;
  25210. margin-left: 15px;
  25211. }
  25212. .radioBox {
  25213. display: flex;
  25214. flex-direction: column;
  25215. flex-wrap: nowrap;
  25216. align-items: flex-start;
  25217. }
  25218. .radioBox > div {
  25219. margin: 10px 0 0 10px;
  25220. }
  25221. /* .radioBox >>> .el-radio__input,
  25222. .radioBox >>> .el-checkbox__inner {
  25223. margin-left: 10px;
  25224. } */
  25225. .radioBox >>> .el-radio__label,
  25226. .radioBox >>> .el-checkbox__label {
  25227. display: flex;
  25228. align-items: center;
  25229. width: 100%;
  25230. }
  25231. .radioBox >>> .el-radio__label > span {
  25232. width: 100%;
  25233. display: -webkit-box;
  25234. overflow: hidden;
  25235. white-space: normal !important;
  25236. text-overflow: ellipsis;
  25237. word-wrap: break-word;
  25238. }
  25239. .inImg {
  25240. width: 100px;
  25241. cursor: pointer;
  25242. }
  25243. .inImg > img {
  25244. width: 100%;
  25245. height: 100%;
  25246. object-fit: cover;
  25247. }
  25248. .timuImgBox {
  25249. margin: 10px 0;
  25250. display: flex;
  25251. flex-direction: column;
  25252. flex-wrap: wrap;
  25253. align-items: flex-start;
  25254. }
  25255. .timuImg {
  25256. width: 150px;
  25257. margin: 5px 0;
  25258. cursor: pointer;
  25259. }
  25260. .timuImg > img {
  25261. width: 100%;
  25262. height: 100%;
  25263. object-fit: cover;
  25264. }
  25265. .worksTop {
  25266. display: flex;
  25267. flex-direction: row;
  25268. align-items: flex-end;
  25269. }
  25270. .worksTitle{
  25271. display: flex;
  25272. flex-direction: row;
  25273. flex-wrap: nowrap;
  25274. align-items: center;
  25275. }
  25276. .worksTitle::before,.worksTop::before{
  25277. content: '';
  25278. display: block;
  25279. width: 3px;
  25280. height: 20px;
  25281. background: #0061FF;
  25282. border-radius: 3px;
  25283. margin: 0 5px 0 0;
  25284. }
  25285. .corOpen {
  25286. margin: 0 0 0 10px;
  25287. font-size: 14px;
  25288. cursor: pointer;
  25289. color: #505050;
  25290. }
  25291. .corOpen:hover {
  25292. color: #499eef;
  25293. }
  25294. .navCorOpenBox {
  25295. display: flex;
  25296. flex-direction: row;
  25297. align-items: center;
  25298. justify-content: space-between;
  25299. height: 55px;
  25300. background: #ffffff;
  25301. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  25302. border-radius: 8px 8px 0px 0px;
  25303. z-index: 9;
  25304. position: relative;
  25305. }
  25306. .navCorOpen {
  25307. padding-right: 15px;
  25308. cursor: pointer;
  25309. width: 45px;
  25310. display: flex;
  25311. }
  25312. .navCorOpen > img {
  25313. width: 100%;
  25314. height: 100%;
  25315. }
  25316. .mlImg {
  25317. width: 40px !important;
  25318. min-width: 40px;
  25319. cursor: pointer;
  25320. transform: rotate(180deg);
  25321. }
  25322. .mlImg > img {
  25323. width: 100%;
  25324. height: 100%;
  25325. }
  25326. .navLeftCss {
  25327. width: 100% !important;
  25328. left: 0 !important;
  25329. }
  25330. .isContentCss {
  25331. width: 100% !important;
  25332. }
  25333. .isAllWidth {
  25334. width: 100% !important;
  25335. }
  25336. .group_switch {
  25337. margin-right: 10px;
  25338. height: 30px;
  25339. display: flex;
  25340. align-items: center;
  25341. }
  25342. .group_switch > span {
  25343. margin-right: 5px;
  25344. }
  25345. .fileC_box {
  25346. padding-top: 15px;
  25347. }
  25348. .fileC_box > .fileC_title {
  25349. padding: 10px 5px 14px 10px;
  25350. border-top: 1px solid #cad1dc;
  25351. font-size: 14px;
  25352. font-weight: 400;
  25353. color: #cad1dc;
  25354. width: calc(100% - 20px);
  25355. margin: 0 auto;
  25356. box-sizing: border-box;
  25357. }
  25358. .pl_select_box {
  25359. height: 40px;
  25360. line-height: 40px;
  25361. width: 100%;
  25362. cursor: pointer;
  25363. padding: 0 20px;
  25364. box-sizing: border-box;
  25365. border-radius: 5px;
  25366. border: 1px solid #d6d6d6;
  25367. white-space: nowrap;
  25368. overflow: hidden;
  25369. text-overflow: ellipsis;
  25370. background: #fff;
  25371. text-align: left;
  25372. }
  25373. .newButton {
  25374. width: 102px;
  25375. height: 36px;
  25376. background: #e7ebf1;
  25377. border-radius: 4px;
  25378. color: #0e1e33;
  25379. font-weight: 400;
  25380. font-size: 14px;
  25381. border: none;
  25382. float: right;
  25383. margin-left: 10px;
  25384. }
  25385. .el-table >>> .even_row {
  25386. background-color: #f0f4fa;
  25387. }
  25388. .stageBoxCss,
  25389. .stageBoxIsCss {
  25390. display: flex;
  25391. flex-direction: row;
  25392. flex-wrap: nowrap;
  25393. align-items: center;
  25394. height: 50px;
  25395. border-bottom: 1px solid #e2f5fc;
  25396. cursor: pointer;
  25397. width: 100%;
  25398. }
  25399. .stageBoxIsCss {
  25400. background: #0061ff;
  25401. color: #fff;
  25402. border-radius: 8px;
  25403. }
  25404. .closeTri,
  25405. .closeTri1 {
  25406. min-width: 15px;
  25407. width: 15px;
  25408. height: 15px;
  25409. }
  25410. .closeTri1 {
  25411. padding-left: 10px;
  25412. cursor: pointer;
  25413. }
  25414. .closeTri > img,
  25415. .closeTri1 > img {
  25416. width: 100%;
  25417. height: 100%;
  25418. /* transition: all .5s; */
  25419. }
  25420. .noToolBlue {
  25421. min-width: 10px;
  25422. width: 10px;
  25423. height: 10px;
  25424. background: #0061ff;
  25425. border-radius: 50%;
  25426. margin-left: 13px;
  25427. }
  25428. .stageChild,
  25429. .toolChild {
  25430. height: 0;
  25431. overflow: hidden;
  25432. transition: all 0.5s;
  25433. }
  25434. .toolChild {
  25435. /* margin: 0 0 0 17px;
  25436. padding: 0 0 0 20px;
  25437. border-left: 1px solid #d7d7d7; */
  25438. }
  25439. .toolChild > div + div{
  25440. margin-top:5px;
  25441. }
  25442. .gjCss {
  25443. display: flex;
  25444. flex-direction: row;
  25445. flex-wrap: nowrap;
  25446. align-items: center;
  25447. padding: 10px 0 10px 40px;
  25448. box-sizing: border-box;
  25449. font-size: 14px;
  25450. cursor: pointer;
  25451. border-radius:5px;
  25452. }
  25453. .toolChild > div {
  25454. position: relative;
  25455. width: 100%;
  25456. }
  25457. .toolChild > div::before {
  25458. /* content: "";
  25459. width: 15px;
  25460. height: 1px;
  25461. background: #cad1dc;
  25462. position: absolute;
  25463. top: 24px;
  25464. left: -20px;
  25465. display: block; */
  25466. }
  25467. .isGjCss {
  25468. /* color: #0061ff; */
  25469. color:#fff;
  25470. background: rgb(55, 129, 252);
  25471. /* background-color: #e0eafb !important;
  25472. color: #0061ff !important; */
  25473. }
  25474. .navItem {
  25475. background: #ffffff;
  25476. border-radius: 4px;
  25477. width: 100%;
  25478. margin: 10px auto;
  25479. position: relative;
  25480. height: 40px;
  25481. display: flex;
  25482. flex-direction: row;
  25483. flex-wrap: nowrap;
  25484. align-items: center;
  25485. }
  25486. .navItemList {
  25487. display: flex;
  25488. flex-direction: row;
  25489. flex-wrap: nowrap;
  25490. align-items: center;
  25491. padding: 0 13px;
  25492. cursor: pointer;
  25493. width: calc(100% - 60px);
  25494. height: 100%;
  25495. }
  25496. .navItemList > div:first-child {
  25497. min-width: 60px;
  25498. }
  25499. .navItemList > div:last-child {
  25500. width: calc(100% - 80px);
  25501. white-space: nowrap;
  25502. overflow: hidden;
  25503. text-overflow: ellipsis;
  25504. word-break: break-word;
  25505. }
  25506. /* .isItemList > div {
  25507. color: #fff !important;
  25508. } */
  25509. .tool_work_box {
  25510. width: 100%;
  25511. padding: 0 37px 0;
  25512. box-sizing: border-box;
  25513. }
  25514. .tool_box {
  25515. width: 100%;
  25516. padding: 0 0 0 20px;
  25517. }
  25518. .tool_type_box {
  25519. display: flex;
  25520. flex-direction: row;
  25521. align-items: baseline;
  25522. flex-wrap: nowrap;
  25523. justify-content: flex-start;
  25524. position: relative;
  25525. }
  25526. .toolSort {
  25527. display: flex;
  25528. flex-direction: row;
  25529. flex-wrap: wrap;
  25530. justify-content: flex-start;
  25531. align-items: flex-start;
  25532. padding: 0 0 15px 0;
  25533. }
  25534. .toolSort > div {
  25535. margin: 0 10px 0 0;
  25536. width: 135px;
  25537. box-sizing: border-box;
  25538. border: 2px solid transparent;
  25539. }
  25540. .tools {
  25541. width: 100%;
  25542. display: flex;
  25543. flex-direction: column;
  25544. flex-wrap: nowrap;
  25545. align-items: flex-start;
  25546. }
  25547. .whiteBIcon {
  25548. width: fit-content;
  25549. cursor: pointer;
  25550. display: flex;
  25551. flex-direction: column;
  25552. flex-wrap: nowrap;
  25553. align-items: center;
  25554. font-size: 14px;
  25555. }
  25556. .tool:hover {
  25557. border: 2px solid #a5c7ff;
  25558. border-radius: 5px;
  25559. }
  25560. .whiteBIcon > img {
  25561. width: 65px;
  25562. height: 100%;
  25563. }
  25564. .whiteBIcon > img {
  25565. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  25566. border-radius: 15px;
  25567. }
  25568. .check {
  25569. /* width: 20px;
  25570. height: 20px; */
  25571. cursor: pointer;
  25572. margin: 10px 0;
  25573. position: absolute;
  25574. right: 2px;
  25575. top: -5px;
  25576. }
  25577. .noChoose,
  25578. .isChoose {
  25579. width: 15px;
  25580. height: 15px;
  25581. border-radius: 50%;
  25582. border: 1px solid #adadad;
  25583. }
  25584. .isChoose {
  25585. border: 4px solid #0363ff !important;
  25586. width: 10px;
  25587. height: 10px;
  25588. }
  25589. .isToolChoose {
  25590. border: 2px solid #5394ff !important;
  25591. border-radius: 5px;
  25592. box-shadow: 0 0 6px 0px #5394ff;
  25593. }
  25594. .checkDiv {
  25595. display: flex;
  25596. align-items: center;
  25597. }
  25598. .checkDiv span {
  25599. margin-left: 5px;
  25600. color: #858585;
  25601. }
  25602. .check img {
  25603. width: 20px;
  25604. height: 20px;
  25605. }
  25606. .lockTaskIcon {
  25607. width: 20px;
  25608. height: 20px;
  25609. position: absolute;
  25610. right: 10px;
  25611. top: 10px;
  25612. }
  25613. .lockTaskIcon > img {
  25614. width: 100%;
  25615. height: 100%;
  25616. }
  25617. .pick_box {
  25618. display: flex;
  25619. align-items: flex-start;
  25620. flex-wrap: wrap;
  25621. }
  25622. .selectBox {
  25623. width: 110px;
  25624. margin-left: 10px;
  25625. margin: 0 10px 0 auto;
  25626. }
  25627. .selectBox >>> .el-input__inner {
  25628. height: 30px;
  25629. line-height: 30px;
  25630. }
  25631. .selectBox >>> .el-input__icon {
  25632. line-height: 30px;
  25633. }
  25634. .sentenceTitle {
  25635. display: flex;
  25636. flex-direction: row;
  25637. flex-wrap: nowrap;
  25638. align-items: center;
  25639. }
  25640. .sentenceTitle::before {
  25641. content: attr(index);
  25642. background: #3681fc;
  25643. border-radius: 50%;
  25644. color: #fff;
  25645. width: 25px;
  25646. height: 25px;
  25647. min-width: 25px;
  25648. min-height: 25px;
  25649. text-align: center;
  25650. line-height: 25px;
  25651. margin-right: 5px;
  25652. }
  25653. .hfBox {
  25654. padding: 10px;
  25655. box-sizing: border-box;
  25656. }
  25657. .whoReplyWho {
  25658. display: flex;
  25659. flex-direction: row;
  25660. flex-wrap: nowrap;
  25661. align-items: baseline;
  25662. justify-content: flex-start;
  25663. }
  25664. .hfBottom {
  25665. display: flex;
  25666. flex-direction: row;
  25667. flex-wrap: nowrap;
  25668. align-items: center;
  25669. justify-content: space-between;
  25670. font-size: 14px;
  25671. }
  25672. .deleteHfItem {
  25673. cursor: pointer;
  25674. width: 20px;
  25675. height: 20px;
  25676. }
  25677. .deleteHfItem > img {
  25678. width: 100%;
  25679. height: 100%;
  25680. }
  25681. .whoReplyWho > .hfImg {
  25682. width: 12px;
  25683. height: 12px;
  25684. margin: 0 5px;
  25685. }
  25686. .whoReplyWho > .hfImg > img {
  25687. width: 100%;
  25688. height: 100%;
  25689. }
  25690. .hfContent {
  25691. padding-top: 10px;
  25692. box-sizing: border-box;
  25693. display: -webkit-box;
  25694. overflow: hidden;
  25695. white-space: normal !important;
  25696. text-overflow: ellipsis;
  25697. word-wrap: break-word;
  25698. -webkit-box-orient: vertical;
  25699. }
  25700. .hfTime {
  25701. text-align: left;
  25702. box-sizing: border-box;
  25703. padding: 10px 0 10px 0px;
  25704. color: #bfbfbf;
  25705. font-size: 14px;
  25706. }
  25707. .btnAllNT {
  25708. position: fixed;
  25709. bottom: 100px;
  25710. right: 40px;
  25711. z-index: 999;
  25712. display: flex;
  25713. flex-direction: row;
  25714. }
  25715. .btnAllNT > img {
  25716. cursor: pointer;
  25717. width: 80px;
  25718. }
  25719. .toolMask {
  25720. position: fixed;
  25721. width: 100%;
  25722. height: 100%;
  25723. background: #3f3c3c;
  25724. opacity: 0.5;
  25725. top: 0;
  25726. left: 0;
  25727. z-index: 999;
  25728. }
  25729. .addToolCss {
  25730. position: fixed;
  25731. z-index: 999;
  25732. background: #fff;
  25733. right: 5%;
  25734. bottom: 18%;
  25735. min-width: 1035px;
  25736. min-height: 300px;
  25737. border-radius: 10px;
  25738. box-shadow: 0 0 8px 1px #b2b2b2;
  25739. }
  25740. .toolTop {
  25741. display: flex;
  25742. flex-direction: row;
  25743. flex-wrap: nowrap;
  25744. justify-content: space-between;
  25745. align-items: center;
  25746. padding: 20px;
  25747. }
  25748. .toolTop > div:nth-child(2) {
  25749. width: 15px;
  25750. height: 15px;
  25751. padding-right: 10px;
  25752. cursor: pointer;
  25753. }
  25754. .toolTop > div:nth-child(2) > img {
  25755. width: 100%;
  25756. height: 100%;
  25757. }
  25758. .fullStyle>>>.el-dialog__body {
  25759. height: calc(100% - 125px) !important;
  25760. box-sizing: border-box;
  25761. padding: 30px 0 !important;
  25762. background: #fff !important;
  25763. }
  25764. .fullStyle>>>.el-dialog {
  25765. width: 100% !important;
  25766. max-width: 100% !important;
  25767. height: 100% !important;
  25768. margin: 0 !important;
  25769. }
  25770. .fullStyle {
  25771. width: 100% !important;
  25772. max-width: 100% !important;
  25773. height: 100% !important;
  25774. margin: 0 auto !important;
  25775. }
  25776. .fullStyle>>>.el-dialog__footer{
  25777. background: #fff !important;
  25778. }
  25779. .engUpBox {
  25780. width: 100%;
  25781. height: 100%;
  25782. }
  25783. .engTitle,
  25784. .engText {
  25785. display: flex;
  25786. flex-direction: row;
  25787. flex-wrap: nowrap;
  25788. align-items: flex-start;
  25789. padding: 0 20px 20px 20px;
  25790. box-sizing: border-box;
  25791. }
  25792. .engTitle > .div:first-child,
  25793. .engText > div:first-child {
  25794. min-width: 75px;
  25795. }
  25796. .correctBox{
  25797. width: 100%;
  25798. display: flex;
  25799. flex-direction: row;
  25800. flex-wrap: nowrap;
  25801. align-items: flex-start;
  25802. }
  25803. .oldBox{
  25804. width: 50%;
  25805. height: 100%;
  25806. display: flex;
  25807. flex-direction: column;
  25808. flex-wrap: nowrap;
  25809. align-items: center;
  25810. border-top: 1px solid #d9d9d9;
  25811. border-left: 1px solid #d9d9d9;
  25812. border-right: 1px solid #d9d9d9;
  25813. }
  25814. .oldBox>div:first-child{
  25815. width: 100%;
  25816. text-align: center;
  25817. background: #d9d9d9;
  25818. height: 35px;
  25819. line-height: 35px;
  25820. font-weight: bold;
  25821. }
  25822. .oldText{
  25823. width: 100%;
  25824. height: calc(100% - 35px);
  25825. overflow: auto;
  25826. margin: 10px 0;
  25827. display: flex;
  25828. flex-direction: column;
  25829. flex-wrap: nowrap;
  25830. align-content: center;
  25831. align-items: center;
  25832. }
  25833. .detailBox{
  25834. width: 50%;
  25835. padding: 10px;
  25836. background: #f6f6f6;
  25837. border-radius: 5px;
  25838. }
  25839. .oldDetail,.oldDetail1{
  25840. padding-bottom: 30px;
  25841. }
  25842. .oldImg{
  25843. width:30px;
  25844. height: 30px;
  25845. }
  25846. .oldImg>img{
  25847. width: 100%;
  25848. height: 100%;
  25849. }
  25850. .allName{
  25851. min-width: 200px;
  25852. white-space: nowrap;
  25853. overflow: hidden;
  25854. text-overflow: ellipsis;
  25855. word-break: break-word;
  25856. cursor: pointer;
  25857. text-align: center;
  25858. border: 1px solid #bcc2cc;
  25859. box-sizing: border-box;
  25860. }
  25861. .engUpTop{
  25862. max-height: 300px;
  25863. overflow: auto;
  25864. }
  25865. .isUpdateToolDetailClass{
  25866. padding: 0 !important;
  25867. }
  25868. .isUpdateToolDetailClass textarea{
  25869. padding:12px;
  25870. font-size: 16px;
  25871. min-height:100%;
  25872. width: 100%;
  25873. box-sizing:border-box;
  25874. outline: none;
  25875. border:none;
  25876. line-height: 30px;
  25877. resize: none;
  25878. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  25879. color: #838383;
  25880. }
  25881. .show_taskD {
  25882. min-width: fit-content;
  25883. margin-left: 10px;
  25884. display: flex;
  25885. align-items: center;
  25886. font-size: 14px;
  25887. cursor: pointer;
  25888. color: #717c8d;
  25889. }
  25890. .show_taskD > img {
  25891. width: 15px;
  25892. margin-right: 5px;
  25893. transition: 0.2s all;
  25894. transform: rotate(-90deg);
  25895. }
  25896. .show_taskD.show > img {
  25897. transform: rotate(0deg);
  25898. }
  25899. .correctCss{
  25900. position: absolute;
  25901. bottom: -70px;
  25902. background: #409eff;
  25903. color: #fff;
  25904. }
  25905. .ScoreBtn{
  25906. background: rgba(87, 159, 248, 1);
  25907. display: flex;
  25908. justify-content: center;
  25909. align-items: center;
  25910. color: #fff;
  25911. font-size: 14px;
  25912. padding:8px 12px;
  25913. border-radius: 5px;
  25914. cursor: pointer;
  25915. }
  25916. .max-height-popover .el-popover {
  25917. min-height: 200px;
  25918. max-height: 400px; /* 设置最大高度 */
  25919. overflow: auto; /* 超出部分显示滚动条 */
  25920. }
  25921. .blueRootCss{
  25922. display: block;
  25923. margin-right: 5px;
  25924. }
  25925. .stuLookScore{
  25926. position: absolute;
  25927. top: 12px;
  25928. right: 40px;
  25929. background: #0000008f;
  25930. border-radius: 5px;
  25931. padding: 3px 5px;
  25932. font-size: 14px;
  25933. color: #fff;
  25934. cursor: pointer;
  25935. }
  25936. </style>