studyStudent.vue 1.0 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 上课模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 40px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 10px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  239. <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>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 20% - 47px)' : 'calc(100% - '+`${!['2'].includes(tType)?classRoomHelperWidth:'10px'}`+' - 18px)', left: mlDialog ? 'calc(20% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid)) && !['2'].includes(tType) ? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid) || ['2'].includes(tType)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. >
  524. <div
  525. style="
  526. padding: 15px 0;
  527. line-height: 29px;
  528. font-size: 18px;
  529. color: #0e1e33;
  530. "
  531. class="cont"
  532. v-if="
  533. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  534. .taskDetail != ''
  535. "
  536. v-html="
  537. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  538. .taskDetail
  539. ? chapInfoList[courseType].chapterInfo[0].taskJson[
  540. taskCount
  541. ].taskDetail
  542. : '暂无描述'
  543. "
  544. ></div>
  545. </div>
  546. </div>
  547. <div
  548. class="student_head"
  549. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  550. >
  551. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  552. <div
  553. :class="
  554. contentDialog == false
  555. ? 'box_course isContentCss'
  556. : 'box_course'
  557. "
  558. v-if="
  559. vChapterData.length > 0 &&
  560. vChapterData[0] &&
  561. showType !== ''
  562. "
  563. >
  564. <div class="wheel" style="height: auto" v-if="showType === 0">
  565. <div
  566. class="workd_media"
  567. style="height: 650px; width: calc(100% - 50px)"
  568. >
  569. <video-player
  570. class="video-player vjs-custom-skin"
  571. :class="contentDialog == false ? 'isAllWidth' : ''"
  572. :playsinline="true"
  573. :options="playerO[0]"
  574. @play="onPlayerPlay($event)"
  575. style="width: 100%; height: 100%; margin: 0 0 0 30px"
  576. ></video-player>
  577. </div>
  578. </div>
  579. <div
  580. class="wheel"
  581. v-if="showType == 1"
  582. style="
  583. box-shadow: 0 0 6px 1px #f2f2f2;
  584. width: 95%;
  585. margin: 0 auto;
  586. background: #f1f1f1;
  587. "
  588. >
  589. <div class="title">查看文档</div>
  590. <el-form class="textBox">
  591. <el-form-item class="textTitle">
  592. <div style="font-size: 22px">
  593. {{ text.name }}
  594. </div>
  595. </el-form-item>
  596. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  597. <div v-html="text.url" class="textContent cont"></div>
  598. </el-form>
  599. </div>
  600. <div
  601. class="wheel"
  602. v-if="
  603. pptImgUrl1.indexOf(
  604. 'https://view.officeapps.live.com/op/view.aspx?src='
  605. ) != -1 && showType == 2
  606. "
  607. style="width: 95%; margin: 0 auto"
  608. >
  609. <iframe
  610. style="width: 100%; height: 100%; border: none"
  611. :src="pptImgUrl1"
  612. ></iframe>
  613. </div>
  614. <div
  615. class="wheel"
  616. v-else-if="showType == 2"
  617. style="width: 95%; margin: 0 auto"
  618. >
  619. <iframe
  620. style="width: 100%; height: 100%; border: none"
  621. security="restricted"
  622. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  623. :src="pptImgUrl1"
  624. ></iframe>
  625. </div>
  626. <div
  627. class="wheel"
  628. v-if="showType == 3"
  629. style="width: 95%; margin: 0 auto"
  630. >
  631. <pdf
  632. :pdfUrl="pptImgUrl1"
  633. style="width: 100%; height: 100%; overflow: auto"
  634. ></pdf>
  635. </div>
  636. <div
  637. class="wheel"
  638. v-if="showType == 4"
  639. style="width: 95%; margin: 0 auto"
  640. >
  641. <el-image
  642. :src="pptImgUrl1"
  643. fit="contain"
  644. style="width: 100%; height: 100%; cursor: pointer"
  645. @click="previewImg(pptImgUrl1)"
  646. ></el-image>
  647. </div>
  648. </div>
  649. <div
  650. class="pButton"
  651. style="position: absolute; right: 20px; top: 0; z-index: 998"
  652. v-if="!contentDialog"
  653. @click="setContent(true)"
  654. >
  655. <!-- 批 -->
  656. <img
  657. src="../../assets/icon/newIcons/isLeft.png"
  658. style="width: 45px"
  659. alt=""
  660. />
  661. </div>
  662. <div
  663. v-if="contentDialog == true"
  664. :style="{
  665. width:
  666. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  667. showType === ''
  668. ? 'calc(100%)'
  669. : '300px',
  670. margin:
  671. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  672. showType === ''
  673. ? '0 15px'
  674. : '0 15px 0 0',
  675. }"
  676. >
  677. <div
  678. class="vedioList"
  679. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  680. style="height: 650px"
  681. >
  682. <div class="navCorOpenBox">
  683. <div class="navTitile">内容列表:</div>
  684. <div class="navCorOpen" @click="setContent(false)">
  685. <img
  686. src="../../assets/icon/newIcons/isRight.png"
  687. alt=""
  688. />
  689. </div>
  690. </div>
  691. <div class="navBox">
  692. <div
  693. v-show="
  694. vChapterData[0].length > 0 || fileC[0].length > 0
  695. "
  696. style="padding: 10px 0 25px 0"
  697. >
  698. <div
  699. class="vedioTimeBox"
  700. v-for="(vitem, vindex) in vChapterData[0]"
  701. :key="vindex + '1'"
  702. >
  703. <div class="navListItem" v-if="vitem.type == 2">
  704. <div
  705. @click="lookVedio(vitem.url, vindex)"
  706. class="navText"
  707. :class="isClickNav == vindex ? 'isClickNav' : ''"
  708. >
  709. <span v-if="vitem.text">{{ vitem.text }}-</span
  710. >{{ vitem.name }}
  711. </div>
  712. <div class="downIcon" @click="downloadFile2(vitem)">
  713. <img
  714. src="../../assets/icon/newIcon/down.png"
  715. alt
  716. />
  717. </div>
  718. </div>
  719. <div class="navListItem" v-if="vitem.type == 6">
  720. <div
  721. @click="lookText(0, vindex)"
  722. class="navText"
  723. :class="isClickNav == vindex ? 'isClickNav' : ''"
  724. >
  725. {{ vitem.name }}.doc
  726. </div>
  727. <div
  728. class="downIcon"
  729. @click="checkFileFull1(vitem.type, vitem)"
  730. >
  731. <img
  732. src="../../assets/icon/newIcon/allScreen.png"
  733. alt
  734. />
  735. </div>
  736. </div>
  737. <div
  738. class="navListItem"
  739. v-if="vitem.type == 8 || vitem.type == 14"
  740. >
  741. <div
  742. @click="doUrl(vitem.url, vindex)"
  743. class="navText"
  744. :class="isClickNav == vindex ? 'isClickNav' : ''"
  745. >
  746. {{ vitem.title ? vitem.title : vitem.url }}
  747. </div>
  748. <div
  749. class="downIcon"
  750. @click="checkFileFull1(vitem.type, vitem)"
  751. >
  752. <img
  753. src="../../assets/icon/newIcon/allScreen.png"
  754. alt
  755. />
  756. </div>
  757. </div>
  758. <div class="navListItem" v-if="vitem.type == 3">
  759. <div
  760. @click="downFile(vitem, vindex)"
  761. class="navText"
  762. :class="isClickNav == vindex ? 'isClickNav' : ''"
  763. >
  764. <span v-if="vitem.text">{{ vitem.text }}-</span
  765. >{{ vitem.name }}
  766. </div>
  767. <div
  768. class="downIcon"
  769. @click="checkFileFull1(vitem.type, vitem)"
  770. >
  771. <img
  772. src="../../assets/icon/newIcon/allScreen.png"
  773. alt
  774. />
  775. </div>
  776. <div class="downIcon" @click="downloadFile2(vitem)">
  777. <img
  778. src="../../assets/icon/newIcon/down.png"
  779. alt
  780. />
  781. </div>
  782. </div>
  783. <div class="navListItem" v-if="vitem.type == 12">
  784. <div class="navText" @click="downloadFile2(vitem)">
  785. <span v-if="vitem.text">{{ vitem.text }}-</span
  786. >{{ vitem.name }}
  787. </div>
  788. <div
  789. class="downIcon"
  790. @click="checkFileFull1(vitem.type, vitem)"
  791. >
  792. <img
  793. src="../../assets/icon/newIcon/allScreen.png"
  794. alt
  795. />
  796. </div>
  797. <div class="downIcon" @click="downloadFile2(vitem)">
  798. <img
  799. src="../../assets/icon/newIcon/down.png"
  800. alt
  801. />
  802. </div>
  803. </div>
  804. <div class="navListItem" v-if="vitem.type == 13">
  805. <div
  806. class="navText"
  807. @click="checkPhoto(vitem, vindex)"
  808. :class="isClickNav == vindex ? 'isClickNav' : ''"
  809. >
  810. {{ vitem.name }}
  811. </div>
  812. <div class="downIcon" @click="downloadFile2(vitem)">
  813. <img
  814. src="../../assets/icon/newIcon/down.png"
  815. alt
  816. />
  817. </div>
  818. </div>
  819. </div>
  820. <div class="fileC_box" v-if="fileC[0].length > 0">
  821. <div class="fileC_title">以下文件不支持预览</div>
  822. <div
  823. class="vedioTimeBox"
  824. v-for="(vitem, vindex) in fileC[0]"
  825. :key="vindex + '1'"
  826. >
  827. <div class="navListItem" v-if="vitem.type == 12">
  828. <div class="navText" style="color: #acb4bf">
  829. <span v-if="vitem.text">{{ vitem.text }}-</span
  830. >{{ vitem.name }}
  831. </div>
  832. <div
  833. class="downIcon"
  834. @click="downloadFile2(vitem)"
  835. >
  836. <img
  837. src="../../assets/icon/newIcon/down.png"
  838. alt
  839. />
  840. </div>
  841. </div>
  842. </div>
  843. </div>
  844. </div>
  845. </div>
  846. </div>
  847. </div>
  848. </div>
  849. <div style="width: calc(100% - 315px)">
  850. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  851. <!-- <el-button
  852. type="primary"
  853. class="newButton"
  854. @click="checkFileFull(showType, pptImgUrl1)"
  855. >全屏查看</el-button
  856. >
  857. <el-button
  858. type="primary"
  859. class="newButton"
  860. @click="downloadFile(pptImgUrl1)"
  861. v-if="showType != 2"
  862. >文件下载</el-button
  863. > -->
  864. <el-button
  865. v-if="
  866. showType == 2 &&
  867. pptImgUrl1.indexOf(
  868. 'https://view.officeapps.live.com/op/view.aspx?src='
  869. ) == -1
  870. "
  871. type="primary"
  872. class="newButton"
  873. @click="openLine(pptImgUrl1)"
  874. >打开链接
  875. </el-button>
  876. </div>
  877. <!-- <div
  878. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  879. v-if="showType == 1"
  880. >
  881. <el-button
  882. type="primary"
  883. class="newButton"
  884. @click="checkFileFull(showType, text)"
  885. >全屏查看</el-button
  886. >
  887. </div> -->
  888. </div>
  889. </div>
  890. </div>
  891. <div class="student_body" v-resize="resize">
  892. <div
  893. class="vedioBox"
  894. :style="{
  895. borderRadius:
  896. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  897. .taskDetail == '' &&
  898. vChapterData[taskCount].length == 0 &&
  899. fileC[taskCount].length == 0
  900. ? '0 0 20px 20px'
  901. : '20px',
  902. }"
  903. v-if="
  904. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  905. .toolChoose[0].tool &&
  906. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  907. .toolChoose[0].tool.length > 0
  908. "
  909. >
  910. <div
  911. class="toolHeng2"
  912. style="position: relative"
  913. v-if="
  914. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  915. .toolChoose[0].tool &&
  916. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  917. .toolChoose[0].tool.length &&
  918. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  919. .toolChoose[0].tool.length > 0
  920. "
  921. >
  922. <div class="workNav">工作区</div>
  923. <div
  924. class="filebox"
  925. style="flex-wrap: nowrap"
  926. v-for="(tool, toolIndex) in chapInfoList[courseType]
  927. .chapterInfo[0].taskJson[taskCount].toolChoose"
  928. :key="toolIndex"
  929. >
  930. <div class="bzBox">
  931. <div class="yCss"></div>
  932. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  933. 工具{{ toolIndex + 1 }}
  934. </div>
  935. <div
  936. v-if="timeWorkList[toolIndex].length > 0"
  937. style="margin: 0 0 0 10px"
  938. >
  939. {{
  940. timeWorkList[toolIndex][0].time
  941. ? "时间:" + timeWorkList[toolIndex][0].time
  942. : ""
  943. }}
  944. </div>
  945. </div>
  946. <div class="toolBox">
  947. <div>
  948. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  949. :key="indexTool"-->
  950. <!-- <div class="iframeBox">
  951. <div
  952. class="addPoint isBorder"
  953. v-for="(tooC, toolCIndex) in tool.tool"
  954. :key="toolCIndex"
  955. >
  956. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  957. <div
  958. class="iframeName"
  959. >
  960. 电子白板
  961. </div>
  962. <iframe
  963. src="https://iwb.cocorobo.cn/"
  964. ref="whiteBoard"
  965. ></iframe>
  966. </div>
  967. </div>
  968. </div>-->
  969. <div class="noiframeBox">
  970. <div
  971. class="addPoint"
  972. v-for="(tooC, toolCIndex) in tool.tool"
  973. :key="toolCIndex"
  974. >
  975. <div v-if="tooC == 1">
  976. <img
  977. src="../../assets/icon/secondToolList/whiteBoard.png"
  978. alt
  979. @click="addTools(tooC, toolIndex, taskCount)"
  980. />
  981. <div style="margin: 5px 0">电子白板</div>
  982. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  983. style="position: absolute;right: 33px;top: -30px;">
  984. 投影
  985. </div>
  986. </div>
  987. <div v-if="tooC == 3">
  988. <img
  989. src="../../assets/icon/secondToolList/mindMapping.png"
  990. alt
  991. @click="addTools(tooC, toolIndex, taskCount)"
  992. />
  993. <div style="margin: 5px 0">思维导图</div>
  994. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  995. style="position: absolute;right: 33px;top: -30px;">
  996. 投影
  997. </div>
  998. </div>
  999. <div v-if="tooC == 6">
  1000. <img
  1001. src="../../assets/icon/secondToolList/doc.png"
  1002. alt
  1003. @click="addTools(tooC, toolIndex, taskCount)"
  1004. />
  1005. <div style="margin: 5px 0">协同文档</div>
  1006. </div>
  1007. <div v-if="tooC == 7">
  1008. <img
  1009. src="../../assets/icon/secondToolList/mindNetwork.png"
  1010. alt
  1011. @click="addTools(tooC, toolIndex, taskCount)"
  1012. />
  1013. <div style="margin: 5px 0">思维网格</div>
  1014. <!-- && worksStudent[toolIndex].length>0 -->
  1015. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1016. style="position: absolute;right: 33px;top: -30px;">
  1017. 投影
  1018. </div>
  1019. </div>
  1020. <div v-if="tooC == 8">
  1021. <img
  1022. src="../../assets/icon/secondToolList/library.png"
  1023. alt
  1024. @click="addTools(tooC, toolIndex, taskCount)"
  1025. />
  1026. <div style="margin: 5px 0">素材库</div>
  1027. </div>
  1028. <div v-if="tooC == 17">
  1029. <img
  1030. src="../../assets/icon/secondToolList/library.png"
  1031. alt
  1032. @click="addTools(tooC, toolIndex, taskCount)"
  1033. />
  1034. <div style="margin: 5px 0">学习资料</div>
  1035. </div>
  1036. <div v-if="tooC == 2">
  1037. <img
  1038. @click="addTools(tooC, toolIndex, taskCount)"
  1039. src="../../assets/icon/secondToolList/note.png"
  1040. alt
  1041. />
  1042. <div style="margin: 5px 0">便签</div>
  1043. </div>
  1044. <div v-if="tooC == 4">
  1045. <img
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. src="../../assets/icon/thirdToolList/ask.png"
  1048. alt
  1049. />
  1050. <div style="margin: 5px 0">问卷调查</div>
  1051. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1052. style="position: absolute;right: 153px;top: -30px;">
  1053. 投影
  1054. </div>
  1055. <div
  1056. class="upload_toolBtn"
  1057. v-if="tType === '1'"
  1058. @click="
  1059. openStatisticalAnalysis(
  1060. tooC,
  1061. toolIndex,
  1062. taskCount,
  1063. 45
  1064. )
  1065. "
  1066. style="position: absolute;right: 33px;top: -30px;"
  1067. >
  1068. 统计分析
  1069. </div>
  1070. </div>
  1071. <div v-if="tooC == 45">
  1072. <img
  1073. @click="addTools(tooC, toolIndex, taskCount)"
  1074. src="../../assets/icon/thirdToolList/choose.png"
  1075. alt
  1076. />
  1077. <div style="margin: 5px 0">选择题</div>
  1078. <!-- &&worksStudent[toolIndex].length > 0 -->
  1079. <div
  1080. class="upload_toolBtn"
  1081. @click="
  1082. openChoseWorksDetailDialog(
  1083. tooC,
  1084. toolIndex,
  1085. taskCount,45
  1086. )
  1087. "
  1088. style="position: absolute;right: 33px;top: -30px;"
  1089. >
  1090. 投影
  1091. </div>
  1092. </div>
  1093. <!-- <div v-if="tooC == 5">
  1094. <img
  1095. @click="addTools(tooC, toolIndex, taskCount)"
  1096. src="../../assets/icon/thirdToolList/score.png"
  1097. alt
  1098. />
  1099. <div style="margin: 5px 0">量规评分</div>
  1100. </div> -->
  1101. <div v-if="tooC == 10">
  1102. <img
  1103. @click="addTools(tooC, toolIndex, taskCount)"
  1104. src="../../assets/icon/thirdToolList/time.png"
  1105. alt
  1106. />
  1107. <div style="margin: 5px 0">倒计时</div>
  1108. </div>
  1109. <div v-if="tooC == 15">
  1110. <img
  1111. @click="addTools(tooC, toolIndex, taskCount)"
  1112. src="../../assets/icon/thirdToolList/answer.png"
  1113. alt
  1114. />
  1115. <div style="margin: 5px 0">问答</div>
  1116. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1117. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1118. 投影
  1119. </div>
  1120. </div>
  1121. <div v-if="tooC == 26">
  1122. <img
  1123. @click="addTools(tooC, toolIndex, taskCount)"
  1124. src="../../assets/icon/thirdToolList/courseDesign.png"
  1125. alt
  1126. />
  1127. <div style="margin: 5px 0">课程设计</div>
  1128. </div>
  1129. <div v-if="tooC == 18">
  1130. <img
  1131. @click="addTools(tooC, toolIndex, taskCount)"
  1132. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1133. alt
  1134. />
  1135. <div style="margin: 5px 0">训练服务器</div>
  1136. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1137. style="position: absolute;right: 33px;top: -30px;">
  1138. 投影
  1139. </div>
  1140. </div>
  1141. <div v-if="tooC == 16">
  1142. <img
  1143. @click="addTools(tooC, toolIndex, taskCount)"
  1144. src="../../assets/icon/thirdToolList/work.png"
  1145. alt
  1146. />
  1147. <div style="margin: 5px 0">作业提交</div>
  1148. </div>
  1149. <div v-if="tooC == 50">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/thirdToolList/plwork.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">批量上传</div>
  1156. </div>
  1157. <div v-if="tooC == 21">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/fourthToolList/program.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">AIoT Blockly</div>
  1164. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1165. style="position: absolute;right: 33px;top: -30px;">
  1166. 投影
  1167. </div>
  1168. </div>
  1169. <!-- <div v-if="tooC == 22">
  1170. <img
  1171. @click="addTools(tooC, toolIndex, taskCount)"
  1172. src="../../assets/icon/fourthToolList/program.png"
  1173. alt
  1174. />
  1175. <div style="margin: 5px 0">AI体验</div>
  1176. </div> -->
  1177. <div v-if="tooC == 23">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">AI Python</div>
  1184. </div>
  1185. <div v-if="tooC == 24">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/fourthToolList/AIprogram.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">AI Blockly</div>
  1192. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1193. style="position: absolute;right: 33px;top: -30px;">
  1194. 投影
  1195. </div>
  1196. </div>
  1197. <div v-if="tooC == 25">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/thirdToolList/evalua.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">目标管理</div>
  1204. </div>
  1205. <div v-if="tooC == 31">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/secondToolList/networkPanel.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">数学画板</div>
  1212. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1213. style="position: absolute;right: 33px;top: -30px;">
  1214. 投影
  1215. </div>
  1216. </div>
  1217. <div v-if="tooC == 28">
  1218. <img
  1219. @click="addTools(tooC, toolIndex, taskCount)"
  1220. src="../../assets/icon/secondToolList/translation.png"
  1221. alt
  1222. />
  1223. <div style="margin: 5px 0">翻译</div>
  1224. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1225. style="position: absolute;right: 33px;top: -30px;">
  1226. 投影
  1227. </div>
  1228. </div>
  1229. <div v-if="tooC == 37">
  1230. <img
  1231. @click="addTools(tooC, toolIndex, taskCount)"
  1232. src="../../assets/icon/secondToolList/mohe.png"
  1233. alt
  1234. />
  1235. <div style="margin: 5px 0">魔盒识字</div>
  1236. </div>
  1237. <div v-if="tooC == 38">
  1238. <img
  1239. @click="addTools(tooC, toolIndex, taskCount)"
  1240. src="../../assets/icon/secondToolList/24game.png"
  1241. alt
  1242. />
  1243. <div style="margin: 5px 0">24点</div>
  1244. </div>
  1245. <div v-if="tooC == 39">
  1246. <img
  1247. @click="addTools(tooC, toolIndex, taskCount)"
  1248. src="../../assets/icon/secondToolList/GeoGebra.png"
  1249. alt
  1250. />
  1251. <div style="margin: 5px 0">GeoGebra</div>
  1252. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1253. style="position: absolute;right: 33px;top: -30px;">
  1254. 投影
  1255. </div>
  1256. </div>
  1257. <div v-if="tooC == 32">
  1258. <img
  1259. @click="addTools(tooC, toolIndex, taskCount)"
  1260. src="../../assets/icon/thirdToolList/code.png"
  1261. alt
  1262. />
  1263. <div style="margin: 5px 0">源码编辑</div>
  1264. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1265. style="position: absolute;right: 153px;top: -42px;">
  1266. 投影
  1267. </div>
  1268. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1269. style="position: absolute;left: 110px;bottom: 30px;">
  1270. 上传文件
  1271. <input type="file" accept="*" style="display: none"
  1272. @change="beforeUpload1($event, 7, toolIndex)" />
  1273. </div> -->
  1274. </div>
  1275. <div v-if="tooC == 40">
  1276. <img
  1277. @click="addTools(tooC, toolIndex, taskCount)"
  1278. src="../../assets/icon/secondToolList/eval.png"
  1279. alt
  1280. />
  1281. <div style="margin: 5px 0">个人评价</div>
  1282. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1283. style="position: absolute;right: 33px;top: -30px;">
  1284. 投影
  1285. </div>
  1286. </div>
  1287. <div v-if="tooC == 41">
  1288. <img
  1289. @click="addTools(tooC, toolIndex, taskCount)"
  1290. src="../../assets/icon/thirdToolList/select.png"
  1291. alt
  1292. />
  1293. <div style="margin: 5px 0">选择匹配</div>
  1294. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1295. style="position: absolute;right: 33px;top: -30px;">
  1296. 投影
  1297. </div>
  1298. </div>
  1299. <div v-if="tooC == 44">
  1300. <img
  1301. @click="addTools(tooC, toolIndex, taskCount)"
  1302. src="../../assets/icon/thirdToolList/hanClass.png"
  1303. alt
  1304. />
  1305. <div style="margin: 5px 0">汉字宫</div>
  1306. </div>
  1307. <div v-if="tooC == 47">
  1308. <img
  1309. @click="addTools(tooC, toolIndex, taskCount)"
  1310. src="../../assets/icon/fourthToolList/conSentences.png"
  1311. alt
  1312. />
  1313. <div style="margin: 5px 0">排序</div>
  1314. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1315. style="position: absolute;right: 33px;top: -30px;">
  1316. 投影
  1317. </div>
  1318. </div>
  1319. <div v-if="tooC == 48">
  1320. <img
  1321. @click="addTools(tooC, toolIndex, taskCount)"
  1322. src="../../assets/icon/fourthToolList/table.png"
  1323. alt
  1324. />
  1325. <div style="margin: 5px 0">表格</div>
  1326. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1327. style="position: absolute;right: 33px;top: -30px;">
  1328. 投影
  1329. </div>
  1330. </div>
  1331. <div v-if="tooC == 52">
  1332. <img
  1333. @click="addTools(tooC, toolIndex, taskCount)"
  1334. src="../../assets/icon/fourthToolList/text.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">文档</div>
  1338. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1339. style="position: absolute;right: 33px;top: -30px;">
  1340. 投影
  1341. </div>
  1342. </div>
  1343. <div v-if="tooC == 49">
  1344. <img
  1345. @click="addTools(tooC, toolIndex, taskCount)"
  1346. src="../../assets/icon/fourthToolList/group.png"
  1347. alt
  1348. />
  1349. <div style="margin: 5px 0">学生分组</div>
  1350. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1351. style="position: absolute;right: 33px;top: -30px;">
  1352. 投影
  1353. </div>
  1354. </div>
  1355. <div v-if="tooC == 57">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/fourthToolList/cocopi.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">CocoPi</div>
  1362. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1363. style="position: absolute;right: 33px;top: -30px;">
  1364. 投影
  1365. </div>
  1366. </div>
  1367. <div v-if="tooC == 58">
  1368. <img
  1369. @click="addTools(tooC, toolIndex, taskCount)"
  1370. src="../../assets/icon/fourthToolList/car.png"
  1371. alt
  1372. />
  1373. <div style="margin: 5px 0">模拟驾驶</div>
  1374. </div>
  1375. <div v-if="tooC == 59">
  1376. <img
  1377. @click="addTools(tooC, toolIndex, taskCount)"
  1378. src="../../assets/icon/fourthToolList/lineSearch.png"
  1379. alt
  1380. />
  1381. <div style="margin: 5px 0">路径搜索</div>
  1382. </div>
  1383. <div v-if="tooC == 60">
  1384. <img
  1385. @click="addTools(tooC, toolIndex, taskCount)"
  1386. src="../../assets/icon/fourthToolList/deepLearning.png"
  1387. alt
  1388. />
  1389. <div style="margin: 5px 0">深度学习</div>
  1390. </div>
  1391. <div v-if="tooC == 61">
  1392. <img
  1393. @click="addTools(tooC, toolIndex, taskCount)"
  1394. src="../../assets/icon/fourthToolList/allHistory.png"
  1395. alt
  1396. />
  1397. <div style="margin: 5px 0">全历史</div>
  1398. </div>
  1399. <div v-if="tooC == 62">
  1400. <img
  1401. @click="addTools(tooC, toolIndex, taskCount)"
  1402. src="../../assets/icon/fourthToolList/interVideo.png"
  1403. alt
  1404. />
  1405. <div style="margin: 5px 0">交互视频</div>
  1406. </div>
  1407. <div v-if="tooC == 63">
  1408. <img
  1409. @click="addTools(tooC, toolIndex, taskCount)"
  1410. src="../../assets/icon/fourthToolList/Wood.png"
  1411. alt
  1412. />
  1413. <div style="margin: 5px 0">海龟编程</div>
  1414. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1415. style="position: absolute;right: 33px;top: -30px;">
  1416. 投影
  1417. </div>
  1418. </div>
  1419. <div v-if="tooC == 71">
  1420. <img
  1421. @click="addTools(tooC, toolIndex, taskCount)"
  1422. src="../../assets/icon/fourthToolList/chatgpt.png"
  1423. alt
  1424. />
  1425. <div style="margin: 5px 0">AI智能体</div>
  1426. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1427. style="position: absolute;right: 33px;top: -30px;">
  1428. 投影
  1429. </div>
  1430. </div>
  1431. <div v-if="tooC == 72">
  1432. <img
  1433. style="height: 85px;object-fit: cover;"
  1434. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1435. @click="addTools(tooC, toolIndex, taskCount)"
  1436. :src="tool.appJson.json.icon"
  1437. alt
  1438. />
  1439. <img
  1440. v-else
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/firstToolList/appStore.png"
  1443. alt
  1444. />
  1445. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1446. <!-- content to trigger tooltip here -->
  1447. <div class="Ovh">
  1448. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1449. </div>
  1450. </el-tooltip>
  1451. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1452. style="position: absolute;right: 33px;top: -30px;">
  1453. 投影
  1454. </div>
  1455. </div>
  1456. <div v-if="tooC == 65">
  1457. <img
  1458. @click="addTools(tooC, toolIndex, taskCount)"
  1459. src="../../assets/icon/firstToolList/pickPeople.png"
  1460. alt
  1461. />
  1462. <div style="margin: 5px 0">挑人</div>
  1463. </div>
  1464. <div v-if="tooC == 66">
  1465. <img
  1466. @click="addTools(tooC, toolIndex, taskCount)"
  1467. src="../../assets/icon/secondToolList/formulaEdi.png"
  1468. alt
  1469. />
  1470. <div style="margin: 5px 0">公式编辑</div>
  1471. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1472. style="position: absolute;right: 33px;top: -30px;">
  1473. 投影
  1474. </div>
  1475. </div>
  1476. <div v-if="tooC == 67">
  1477. <img
  1478. @click="addTools(tooC, toolIndex, taskCount)"
  1479. src="../../assets/icon/secondToolList/molStr.png"
  1480. alt
  1481. />
  1482. <div style="margin: 5px 0">分子结构</div>
  1483. </div>
  1484. <div v-if="tooC == 68">
  1485. <img
  1486. @click="addTools(tooC, toolIndex, taskCount)"
  1487. src="../../assets/icon/secondToolList/timeAxis.png"
  1488. alt
  1489. />
  1490. <div style="margin: 5px 0">时间轴</div>
  1491. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1492. style="position: absolute;right: 33px;top: -30px;">
  1493. 投影
  1494. </div> -->
  1495. </div>
  1496. <div v-if="tooC == 69">
  1497. <img
  1498. @click="addTools(tooC, toolIndex, taskCount)"
  1499. src="../../assets/icon/secondToolList/english.png"
  1500. alt
  1501. />
  1502. <div style="margin: 5px 0">英语写作</div>
  1503. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1504. style="position: absolute;right: 33px;top: -30px;">
  1505. 投影
  1506. </div>
  1507. </div>
  1508. <div v-if="tooC == 70">
  1509. <img
  1510. @click="addTools(tooC, toolIndex, taskCount)"
  1511. src="../../assets/icon/thirdToolList/englishVoice.png"
  1512. alt
  1513. />
  1514. <div style="margin: 5px 0">英语口语</div>
  1515. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1516. style="position: absolute;right: 33px;top: -30px;">
  1517. 投影
  1518. </div>
  1519. </div>
  1520. </div>
  1521. </div>
  1522. </div>
  1523. <div
  1524. class="tooldetail"
  1525. v-if="tool.toolDetail != ''"
  1526. :class="{
  1527. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1528. }"
  1529. >
  1530. <!-- <div class="toolTitle">工具描述</div> -->
  1531. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1532. <div
  1533. style="height:100%;"
  1534. v-html="contentConvent(tool.toolDetail)"
  1535. v-if="toolDetailIndex != toolIndex"
  1536. ></div>
  1537. <div v-else @click.stop="" style="height:100%;">
  1538. <textarea
  1539. @change="
  1540. () => {
  1541. $forceUpdate();
  1542. }
  1543. "
  1544. class="checkTextArea"
  1545. rows="3"
  1546. v-autoHeight="70"
  1547. type="text"
  1548. placeholder="请输入任务描述"
  1549. v-model="updateToolDetailInner"
  1550. ></textarea>
  1551. </div>
  1552. </div>
  1553. <el-button
  1554. type="primary"
  1555. v-if="tool.tool[0] == 32"
  1556. style="position: absolute; right: 30px; top: -45px"
  1557. @click="addImg($event)"
  1558. >上传作业<input
  1559. type="file"
  1560. accept="*"
  1561. style="display: none"
  1562. @change="beforeUpload1($event, 7, toolIndex)"
  1563. /></el-button>
  1564. <el-button
  1565. type="primary"
  1566. v-if="tool.tool[0] == 15"
  1567. style="position: absolute; right: 30px; top: -45px"
  1568. @click="openWordCloud(toolIndex)"
  1569. >生成词云</el-button
  1570. >
  1571. <el-button
  1572. type="primary"
  1573. v-if="
  1574. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0
  1575. "
  1576. style="position: absolute; right: 30px; top: -45px"
  1577. @click="uploadWorks(toolIndex)"
  1578. >导出作业</el-button
  1579. >
  1580. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1581. position: absolute;
  1582. right: 30px;
  1583. transform: translateY(-130%);
  1584. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1585. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1586. </div>
  1587. <div
  1588. v-if="
  1589. tType &&
  1590. tType == 2 &&
  1591. !sIsOpen &&
  1592. tool.tool.indexOf(16) != -1
  1593. "
  1594. class="worksBox"
  1595. >
  1596. <div
  1597. class="zuoyeYulan"
  1598. v-if="workStudent[toolIndex].length > 0"
  1599. >
  1600. <span class="worksTitle">作业预览</span>
  1601. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1602. </div>
  1603. <div
  1604. class="worksDetailBox"
  1605. v-if="workStudent[toolIndex].length > 0"
  1606. >
  1607. <div
  1608. class="works"
  1609. style="
  1610. width: 200px;
  1611. height: 140px;
  1612. margin: 10px 10px 10px 0;
  1613. box-shadow: 0 0 6px 1px #dfdada;
  1614. "
  1615. v-for="(w, wIndex) in workStudent[toolIndex]"
  1616. :key="wIndex"
  1617. >
  1618. <div class="workImg" v-if="w.type == 0">
  1619. <img
  1620. :src="w.works"
  1621. @click="previewImg(w.works, w)"
  1622. alt
  1623. />
  1624. <div
  1625. class="answerScore"
  1626. v-if="w.score"
  1627. @click.stop="openScore(w)"
  1628. :class="{
  1629. rightW:
  1630. w.userid == userid || tType == 1 || tType == 4
  1631. }"
  1632. >
  1633. {{ JSON.parse(w.score).wScore }}分
  1634. </div>
  1635. <div
  1636. class="answerScore"
  1637. @click.stop="openScore(w)"
  1638. v-else-if="courseDetail.userid == userid"
  1639. :class="{
  1640. rightW:
  1641. w.userid == userid || tType == 1 || tType == 4
  1642. }"
  1643. >
  1644. 评分
  1645. </div>
  1646. <div
  1647. class="stuLookScore"
  1648. v-if="
  1649. w.userid == userid ||
  1650. (tType == 1 &&
  1651. courseDetail.state == 6 &&
  1652. ((chapInfoList[courseType].chapterInfo[0]
  1653. .taskJson[taskCount].eList &&
  1654. chapInfoList[courseType].chapterInfo[0]
  1655. .taskJson[taskCount].eList.length) ||
  1656. (tool.eList && tool.eList.length)))
  1657. "
  1658. >
  1659. <el-popover
  1660. placement="top"
  1661. width="318"
  1662. trigger="hover"
  1663. >
  1664. <markScore
  1665. :loading="AIloading[toolIndex][wIndex].loading"
  1666. :markScoreVisible="markScoreVisible"
  1667. :ref="`markSco${toolIndex}${wIndex}`"
  1668. @updateLoading="updateLoading"
  1669. @updateDocSco="updateDocSco"
  1670. @refreshOther="refreshOther"
  1671. @markScoreDig="markScoreDig"
  1672. :tool="tool"
  1673. :wIndex="wIndex"
  1674. :scoCon="w"
  1675. :toolIndex="toolIndex"
  1676. :key="refreshKey"
  1677. :stage="courseType"
  1678. :task="taskCount"
  1679. :scoTit="
  1680. chapInfoList[courseType].chapterInfo[0]
  1681. .taskJson[taskCount].eList
  1682. "
  1683. >
  1684. </markScore>
  1685. <div
  1686. @click="
  1687. markScoreDig2(
  1688. w.sName,
  1689. worksStudent,
  1690. w.userid,
  1691. toolIndex,
  1692. chapInfoList[courseType].chapterInfo[0]
  1693. .taskJson[taskCount].eList,
  1694. AIloading[toolIndex][wIndex].loading,
  1695. tool
  1696. )
  1697. "
  1698. slot="reference"
  1699. >
  1700. <span v-if="AIloading[toolIndex][wIndex].sco">
  1701. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1702. </span>
  1703. <span v-else>
  1704. 评分
  1705. </span>
  1706. </div>
  1707. </el-popover>
  1708. </div>
  1709. <img
  1710. class="deleteImg"
  1711. src="../../assets/deleteworks.png"
  1712. v-if="
  1713. w.userid == userid || tType == 1 || tType == 4
  1714. "
  1715. @click.stop="deleteWorks(w.wid)"
  1716. alt
  1717. />
  1718. </div>
  1719. <div class="workImg" v-if="w.type == 1">
  1720. <img :src="word" @click="openFile(w.works)" alt />
  1721. <div
  1722. class="answerScore"
  1723. v-if="w.score"
  1724. @click.stop="openScore(w)"
  1725. :class="{
  1726. rightW:
  1727. w.userid == userid || tType == 1 || tType == 4
  1728. }"
  1729. >
  1730. {{ JSON.parse(w.score).wScore }}分
  1731. </div>
  1732. <div
  1733. class="answerScore"
  1734. @click.stop="openScore(w)"
  1735. v-else-if="courseDetail.userid == userid"
  1736. :class="{
  1737. rightW:
  1738. w.userid == userid || tType == 1 || tType == 4
  1739. }"
  1740. >
  1741. 评分
  1742. </div>
  1743. <div
  1744. class="stuLookScore"
  1745. v-if="
  1746. w.userid == userid ||
  1747. (tType == 1 &&
  1748. courseDetail.state == 6 &&
  1749. ((chapInfoList[courseType].chapterInfo[0]
  1750. .taskJson[taskCount].eList &&
  1751. chapInfoList[courseType].chapterInfo[0]
  1752. .taskJson[taskCount].eList.length) ||
  1753. (tool.eList && tool.eList.length)))
  1754. "
  1755. >
  1756. <el-popover
  1757. placement="top"
  1758. width="318"
  1759. trigger="hover"
  1760. >
  1761. <markScore
  1762. :loading="AIloading[toolIndex][wIndex].loading"
  1763. :markScoreVisible="markScoreVisible"
  1764. :ref="`markSco${toolIndex}${wIndex}`"
  1765. @updateLoading="updateLoading"
  1766. @updateDocSco="updateDocSco"
  1767. @refreshOther="refreshOther"
  1768. @markScoreDig="markScoreDig"
  1769. :tool="tool"
  1770. :wIndex="wIndex"
  1771. :scoCon="w"
  1772. :toolIndex="toolIndex"
  1773. :key="refreshKey"
  1774. :stage="courseType"
  1775. :task="taskCount"
  1776. :scoTit="
  1777. chapInfoList[courseType].chapterInfo[0]
  1778. .taskJson[taskCount].eList
  1779. "
  1780. >
  1781. </markScore>
  1782. <div
  1783. @click="
  1784. markScoreDig2(
  1785. w.sName,
  1786. worksStudent,
  1787. w.userid,
  1788. toolIndex,
  1789. chapInfoList[courseType].chapterInfo[0]
  1790. .taskJson[taskCount].eList,
  1791. AIloading[toolIndex][wIndex].loading,
  1792. tool
  1793. )
  1794. "
  1795. slot="reference"
  1796. >
  1797. <span v-if="AIloading[toolIndex][wIndex].sco">
  1798. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1799. </span>
  1800. <span v-else>
  1801. 评分
  1802. </span>
  1803. </div>
  1804. </el-popover>
  1805. </div>
  1806. <img
  1807. class="deleteImg"
  1808. src="../../assets/deleteworks.png"
  1809. v-if="
  1810. w.userid == userid || tType == 1 || tType == 4
  1811. "
  1812. @click.stop="deleteWorks(w.wid)"
  1813. alt
  1814. />
  1815. </div>
  1816. <div class="workImg" v-if="w.type == 3">
  1817. <img
  1818. style="cursor: pointer"
  1819. :src="video"
  1820. @click="openVideo(w)"
  1821. alt
  1822. />
  1823. <div
  1824. class="answerScore"
  1825. v-if="w.score"
  1826. @click.stop="openScore(w)"
  1827. :class="{
  1828. rightW:
  1829. w.userid == userid || tType == 1 || tType == 4
  1830. }"
  1831. >
  1832. {{ JSON.parse(w.score).wScore }}分
  1833. </div>
  1834. <div
  1835. class="answerScore"
  1836. @click.stop="openScore(w)"
  1837. v-else-if="courseDetail.userid == userid"
  1838. :class="{
  1839. rightW:
  1840. w.userid == userid || tType == 1 || tType == 4
  1841. }"
  1842. >
  1843. 评分
  1844. </div>
  1845. <div
  1846. class="stuLookScore"
  1847. v-if="
  1848. w.userid == userid ||
  1849. (tType == 1 &&
  1850. courseDetail.state == 6 &&
  1851. ((chapInfoList[courseType].chapterInfo[0]
  1852. .taskJson[taskCount].eList &&
  1853. chapInfoList[courseType].chapterInfo[0]
  1854. .taskJson[taskCount].eList.length) ||
  1855. (tool.eList && tool.eList.length)))
  1856. "
  1857. >
  1858. <el-popover
  1859. placement="top"
  1860. width="318"
  1861. trigger="hover"
  1862. >
  1863. <markScore
  1864. :loading="AIloading[toolIndex][wIndex].loading"
  1865. :markScoreVisible="markScoreVisible"
  1866. :ref="`markSco${toolIndex}${wIndex}`"
  1867. @updateLoading="updateLoading"
  1868. @updateDocSco="updateDocSco"
  1869. @refreshOther="refreshOther"
  1870. @markScoreDig="markScoreDig"
  1871. :tool="tool"
  1872. :wIndex="wIndex"
  1873. :scoCon="w"
  1874. :toolIndex="toolIndex"
  1875. :key="refreshKey"
  1876. :stage="courseType"
  1877. :task="taskCount"
  1878. :scoTit="
  1879. chapInfoList[courseType].chapterInfo[0]
  1880. .taskJson[taskCount].eList
  1881. "
  1882. >
  1883. </markScore>
  1884. <div
  1885. @click="
  1886. markScoreDig2(
  1887. w.sName,
  1888. worksStudent,
  1889. w.userid,
  1890. toolIndex,
  1891. chapInfoList[courseType].chapterInfo[0]
  1892. .taskJson[taskCount].eList,
  1893. AIloading[toolIndex][wIndex].loading,
  1894. tool
  1895. )
  1896. "
  1897. slot="reference"
  1898. >
  1899. <span v-if="AIloading[toolIndex][wIndex].sco">
  1900. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1901. </span>
  1902. <span v-else>
  1903. 评分
  1904. </span>
  1905. </div>
  1906. </el-popover>
  1907. </div>
  1908. <img
  1909. class="deleteImg"
  1910. src="../../assets/deleteworks.png"
  1911. v-if="
  1912. w.userid == userid || tType == 1 || tType == 4
  1913. "
  1914. @click.stop="deleteWorks(w.wid)"
  1915. alt
  1916. />
  1917. </div>
  1918. <div class="workImg" v-if="w.type == 12">
  1919. <img
  1920. style="cursor: pointer"
  1921. :src="word2"
  1922. @click="downloadFile(w.works)"
  1923. alt
  1924. />
  1925. <div
  1926. class="answerScore"
  1927. v-if="w.score"
  1928. @click.stop="openScore(w)"
  1929. :class="{
  1930. rightW:
  1931. w.userid == userid || tType == 1 || tType == 4
  1932. }"
  1933. >
  1934. {{ JSON.parse(w.score).wScore }}分
  1935. </div>
  1936. <div
  1937. class="answerScore"
  1938. @click.stop="openScore(w)"
  1939. v-else-if="courseDetail.userid == userid"
  1940. :class="{
  1941. rightW:
  1942. w.userid == userid || tType == 1 || tType == 4
  1943. }"
  1944. >
  1945. 评分
  1946. </div>
  1947. <div
  1948. class="stuLookScore"
  1949. v-if="
  1950. w.userid == userid ||
  1951. (tType == 1 &&
  1952. courseDetail.state == 6 &&
  1953. ((chapInfoList[courseType].chapterInfo[0]
  1954. .taskJson[taskCount].eList &&
  1955. chapInfoList[courseType].chapterInfo[0]
  1956. .taskJson[taskCount].eList.length) ||
  1957. (tool.eList && tool.eList.length)))
  1958. "
  1959. >
  1960. <el-popover
  1961. placement="top"
  1962. width="318"
  1963. trigger="hover"
  1964. >
  1965. <markScore
  1966. :loading="AIloading[toolIndex][wIndex].loading"
  1967. :markScoreVisible="markScoreVisible"
  1968. :ref="`markSco${toolIndex}${wIndex}`"
  1969. @updateLoading="updateLoading"
  1970. @updateDocSco="updateDocSco"
  1971. @refreshOther="refreshOther"
  1972. @markScoreDig="markScoreDig"
  1973. :tool="tool"
  1974. :wIndex="wIndex"
  1975. :scoCon="w"
  1976. :toolIndex="toolIndex"
  1977. :key="refreshKey"
  1978. :stage="courseType"
  1979. :task="taskCount"
  1980. :scoTit="
  1981. chapInfoList[courseType].chapterInfo[0]
  1982. .taskJson[taskCount].eList
  1983. "
  1984. >
  1985. </markScore>
  1986. <div
  1987. @click="
  1988. markScoreDig2(
  1989. w.sName,
  1990. worksStudent,
  1991. w.userid,
  1992. toolIndex,
  1993. chapInfoList[courseType].chapterInfo[0]
  1994. .taskJson[taskCount].eList,
  1995. AIloading[toolIndex][wIndex].loading,
  1996. tool
  1997. )
  1998. "
  1999. slot="reference"
  2000. >
  2001. <span v-if="AIloading[toolIndex][wIndex].sco">
  2002. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2003. </span>
  2004. <span v-else>
  2005. 评分
  2006. </span>
  2007. </div>
  2008. </el-popover>
  2009. </div>
  2010. <img
  2011. class="deleteImg"
  2012. src="../../assets/deleteworks.png"
  2013. v-if="
  2014. w.userid == userid || tType == 1 || tType == 4
  2015. "
  2016. @click.stop="deleteWorks(w.wid)"
  2017. alt
  2018. />
  2019. </div>
  2020. <div class="worksName">
  2021. <div>{{ w.sName }}</div>
  2022. </div>
  2023. </div>
  2024. </div>
  2025. </div>
  2026. <div
  2027. v-if="
  2028. tType &&
  2029. tType == 2 &&
  2030. !sIsOpen &&
  2031. tool.tool.indexOf(32) != -1
  2032. "
  2033. class="worksBox"
  2034. >
  2035. <div
  2036. class="zuoyeYulan"
  2037. v-if="workStudent[toolIndex].length > 0"
  2038. >
  2039. <span class="worksTitle">作业预览</span>
  2040. </div>
  2041. <div
  2042. class="worksDetailBox"
  2043. v-if="workStudent[toolIndex].length > 0"
  2044. >
  2045. <div
  2046. class="works"
  2047. style="
  2048. width: 200px;
  2049. height: 140px;
  2050. margin: 10px 10px 10px 0;
  2051. box-shadow: 0 0 6px 1px #dfdada;
  2052. "
  2053. v-for="(w, wIndex) in workStudent[toolIndex]"
  2054. :key="wIndex"
  2055. >
  2056. <div class="workImg">
  2057. <img
  2058. :src="word2"
  2059. @click="downloadFile(w.works)"
  2060. alt
  2061. />
  2062. <div
  2063. class="answerScore"
  2064. v-if="w.score"
  2065. @click.stop="openScore(w)"
  2066. :class="{
  2067. rightW:
  2068. w.userid == userid || tType == 1 || tType == 4
  2069. }"
  2070. >
  2071. {{ JSON.parse(w.score).wScore }}分
  2072. </div>
  2073. <div
  2074. class="answerScore"
  2075. @click.stop="openScore(w)"
  2076. v-else-if="courseDetail.userid == userid"
  2077. :class="{
  2078. rightW:
  2079. w.userid == userid || tType == 1 || tType == 4
  2080. }"
  2081. >
  2082. 评分
  2083. </div>
  2084. <img
  2085. class="deleteImg"
  2086. src="../../assets/deleteworks.png"
  2087. v-if="
  2088. w.userid == userid || tType == 1 || tType == 4
  2089. "
  2090. @click.stop="deleteWorks(w.wid)"
  2091. alt
  2092. />
  2093. </div>
  2094. <div class="worksName">
  2095. <div>{{ w.sName }}</div>
  2096. </div>
  2097. </div>
  2098. </div>
  2099. </div>
  2100. <div
  2101. v-if="
  2102. tType &&
  2103. tType == 2 &&
  2104. !sIsOpen &&
  2105. tool.tool.indexOf(57) != -1
  2106. "
  2107. class="worksBox"
  2108. >
  2109. <div
  2110. class="zuoyeYulan"
  2111. v-if="workStudent[toolIndex].length > 0"
  2112. >
  2113. <span class="worksTitle">作业预览</span>
  2114. </div>
  2115. <div
  2116. class="worksDetailBox"
  2117. v-if="workStudent[toolIndex].length > 0"
  2118. >
  2119. <div
  2120. class="works"
  2121. style="
  2122. width: 200px;
  2123. height: 140px;
  2124. margin: 10px 10px 10px 0;
  2125. box-shadow: 0 0 6px 1px #dfdada;
  2126. "
  2127. v-for="(w, wIndex) in workStudent[toolIndex]"
  2128. :key="wIndex"
  2129. >
  2130. <div class="workImg">
  2131. <img
  2132. :src="word2"
  2133. @click="downloadFile(w.works)"
  2134. v-if="w.type == 12"
  2135. alt
  2136. />
  2137. <img
  2138. :src="word2"
  2139. @click="
  2140. openCocoPi(57, toolIndex, w.userid, w.sName)
  2141. "
  2142. v-else-if="w.type == 15"
  2143. alt
  2144. />
  2145. <div
  2146. class="answerScore"
  2147. v-if="w.score"
  2148. @click.stop="openScore(w)"
  2149. :class="{
  2150. rightW:
  2151. w.userid == userid || tType == 1 || tType == 4
  2152. }"
  2153. >
  2154. {{ JSON.parse(w.score).wScore }}分
  2155. </div>
  2156. <div
  2157. class="answerScore"
  2158. @click.stop="openScore(w)"
  2159. v-else-if="courseDetail.userid == userid"
  2160. :class="{
  2161. rightW:
  2162. w.userid == userid || tType == 1 || tType == 4
  2163. }"
  2164. >
  2165. 评分
  2166. </div>
  2167. <img
  2168. class="deleteImg"
  2169. src="../../assets/deleteworks.png"
  2170. v-if="
  2171. w.userid == userid || tType == 1 || tType == 4
  2172. "
  2173. @click.stop="deleteWorks(w.wid)"
  2174. alt
  2175. />
  2176. </div>
  2177. <div class="worksName">
  2178. <div>{{ w.sName }}</div>
  2179. </div>
  2180. </div>
  2181. </div>
  2182. </div>
  2183. <div
  2184. v-if="
  2185. tType &&
  2186. tType == 2 &&
  2187. !sIsOpen &&
  2188. tool.tool.indexOf(4) != -1
  2189. "
  2190. class="worksBox"
  2191. >
  2192. <div
  2193. class="zuoyeYulan"
  2194. v-if="workStudent[toolIndex].length > 0"
  2195. >
  2196. <span class="worksTitle">作业预览</span>
  2197. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2198. </div>
  2199. <div
  2200. class="worksDetailBox"
  2201. v-if="workStudent[toolIndex].length > 0"
  2202. >
  2203. <div
  2204. class="isWorksName2"
  2205. v-for="(w, wIndex) in workStudent[toolIndex]"
  2206. :key="wIndex"
  2207. @click="
  2208. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2209. "
  2210. >
  2211. {{ w.sName }}
  2212. <img
  2213. class="deleteImg deleteImg2"
  2214. src="../../assets/deleteworks.png"
  2215. v-if="w.userid == userid || tType == 1 || tType == 4"
  2216. @click.stop="deleteWorks(w.wid)"
  2217. alt
  2218. />
  2219. </div>
  2220. <!-- <div
  2221. class="works"
  2222. style="
  2223. width: 200px;
  2224. height: 140px;
  2225. border-radius: 10px;
  2226. box-shadow: 0 0 6px 1px #dfdada;
  2227. overflow: hidden;
  2228. "
  2229. v-for="(w, wIndex) in workStudent[toolIndex]"
  2230. :key="wIndex"
  2231. >
  2232. <div class="workImg">
  2233. <img
  2234. src="../../assets/icon/works/noImg.png"
  2235. @click="
  2236. openTools(
  2237. 4,
  2238. toolIndex,
  2239. taskCount,
  2240. w.works,
  2241. w.sName
  2242. )
  2243. "
  2244. alt
  2245. />
  2246. </div>
  2247. <div class="worksName">
  2248. <div>{{ w.sName }}</div>
  2249. <div>{{ w.time }}</div>
  2250. </div>
  2251. </div> -->
  2252. </div>
  2253. </div>
  2254. <div
  2255. v-if="
  2256. tType &&
  2257. ((tType == 2 && sIsOpen == true) ||
  2258. tType == 1 ||
  2259. tType == 4) &&
  2260. tool.tool.indexOf(62) != -1
  2261. "
  2262. class="worksBox"
  2263. >
  2264. <div
  2265. class="zuoyeYulan"
  2266. v-if="
  2267. worksStudent.length &&
  2268. worksStudent[toolIndex].length > 0
  2269. "
  2270. >
  2271. <div class="worksTop">
  2272. <div>作业预览</div>
  2273. <div
  2274. class="corOpen"
  2275. @click="contract(toolIndex)"
  2276. v-if="
  2277. isCloseList[toolIndex].isCloseBoolean &&
  2278. isCloseList[toolIndex].isClose == 0
  2279. "
  2280. >
  2281. 折叠
  2282. </div>
  2283. <div
  2284. class="corOpen"
  2285. @click="contract(toolIndex)"
  2286. v-if="isCloseList[toolIndex].isClose == 1"
  2287. >
  2288. 展开
  2289. </div>
  2290. </div>
  2291. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2292. </div>
  2293. <div>
  2294. <div
  2295. :id="'tool-' + toolIndex"
  2296. :style="{
  2297. height:
  2298. isCloseList[toolIndex].isClose == 1
  2299. ? retrnToolHeight('tool-' + toolIndex)
  2300. : 'auto',
  2301. overflow:
  2302. isCloseList[toolIndex].isClose == 1
  2303. ? 'hidden'
  2304. : 'unset'
  2305. }"
  2306. class="worksDetailBox"
  2307. v-if="
  2308. worksStudent.length &&
  2309. worksStudent[toolIndex].length > 0
  2310. "
  2311. >
  2312. <div
  2313. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2314. :key="wIndex"
  2315. class="isWorksName2"
  2316. @click="
  2317. openTools(
  2318. 62,
  2319. toolIndex,
  2320. taskCount,
  2321. w.works,
  2322. w.sName
  2323. )
  2324. "
  2325. >
  2326. {{ w.sName }}
  2327. <img
  2328. class="deleteImg deleteImg2"
  2329. src="../../assets/deleteworks.png"
  2330. v-if="
  2331. w.userid == userid || tType == 1 || tType == 4
  2332. "
  2333. @click.stop="deleteWorks(w.wid)"
  2334. alt
  2335. />
  2336. </div>
  2337. </div>
  2338. </div>
  2339. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2340. 未提交
  2341. </div>
  2342. <div
  2343. class="noWorksS"
  2344. v-if="noWorksS && noWorksS[toolIndex].length"
  2345. >
  2346. <div
  2347. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2348. :key="sIndex"
  2349. class="noWorksName"
  2350. >
  2351. <el-tooltip
  2352. effect="dark"
  2353. :content="s.student"
  2354. placement="top"
  2355. >
  2356. <span>{{ s.student }}</span>
  2357. </el-tooltip>
  2358. </div>
  2359. </div>
  2360. </div>
  2361. <div
  2362. v-if="
  2363. tType &&
  2364. tType == 2 &&
  2365. !sIsOpen &&
  2366. tool.tool.indexOf(62) != -1
  2367. "
  2368. class="worksBox"
  2369. >
  2370. <div
  2371. class="zuoyeYulan"
  2372. v-if="workStudent[toolIndex].length > 0"
  2373. >
  2374. <span class="worksTitle">作业预览</span>
  2375. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2376. </div>
  2377. <div
  2378. class="worksDetailBox"
  2379. v-if="workStudent[toolIndex].length > 0"
  2380. >
  2381. <div
  2382. class="isWorksName2"
  2383. v-for="(w, wIndex) in workStudent[toolIndex]"
  2384. :key="wIndex"
  2385. @click="
  2386. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2387. "
  2388. >
  2389. {{ w.sName }}
  2390. <img
  2391. class="deleteImg deleteImg2"
  2392. src="../../assets/deleteworks.png"
  2393. v-if="w.userid == userid || tType == 1 || tType == 4"
  2394. @click.stop="deleteWorks(w.wid)"
  2395. alt
  2396. />
  2397. </div>
  2398. </div>
  2399. </div>
  2400. <div
  2401. v-if="
  2402. tType &&
  2403. tType == 2 &&
  2404. !sIsOpen &&
  2405. tool.tool.indexOf(45) != -1
  2406. "
  2407. class="worksBox"
  2408. >
  2409. <div
  2410. class="zuoyeYulan"
  2411. v-if="workStudent[toolIndex].length > 0"
  2412. >
  2413. <span class="worksTitle">作业预览</span>
  2414. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2415. </div>
  2416. <div
  2417. class="worksDetailBox"
  2418. v-if="workStudent[toolIndex].length > 0"
  2419. >
  2420. <div
  2421. class="isWorksName2"
  2422. v-for="(w, wIndex) in workStudent[toolIndex]"
  2423. :key="wIndex"
  2424. @click="
  2425. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2426. "
  2427. >
  2428. {{ w.sName }}
  2429. <img
  2430. class="deleteImg deleteImg2"
  2431. src="../../assets/deleteworks.png"
  2432. v-if="w.userid == userid || tType == 1 || tType == 4"
  2433. @click.stop="deleteWorks(w.wid)"
  2434. alt
  2435. />
  2436. </div>
  2437. </div>
  2438. </div>
  2439. <div
  2440. v-if="
  2441. tType &&
  2442. tType == 2 &&
  2443. !sIsOpen &&
  2444. tool.tool.indexOf(69) != -1
  2445. "
  2446. class="worksBox"
  2447. >
  2448. <div
  2449. class="zuoyeYulan"
  2450. v-if="workStudent[toolIndex].length > 0"
  2451. >
  2452. <span class="worksTitle">作业预览</span>
  2453. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2454. </div>
  2455. <div
  2456. class="worksDetailBox"
  2457. v-if="workStudent[toolIndex].length > 0"
  2458. >
  2459. <div
  2460. class="isWorksName2"
  2461. v-for="(w, wIndex) in workStudent[toolIndex]"
  2462. :key="wIndex"
  2463. @click="
  2464. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2465. "
  2466. >
  2467. {{ w.sName }}
  2468. <img
  2469. class="deleteImg deleteImg2"
  2470. src="../../assets/deleteworks.png"
  2471. v-if="w.userid == userid || tType == 1 || tType == 4"
  2472. @click.stop="deleteWorks(w.wid)"
  2473. alt
  2474. />
  2475. </div>
  2476. </div>
  2477. </div>
  2478. <div
  2479. v-if="
  2480. tType &&
  2481. tType == 2 &&
  2482. !sIsOpen &&
  2483. tool.tool.indexOf(15) != -1
  2484. "
  2485. class="worksBox"
  2486. >
  2487. <div
  2488. class="zuoyeYulan"
  2489. v-if="workStudent[toolIndex].length > 0"
  2490. >
  2491. <span class="worksTitle">作业预览</span>
  2492. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2493. </div>
  2494. <div
  2495. class="worksDetailBox"
  2496. v-if="workStudent[toolIndex].length > 0"
  2497. >
  2498. <div
  2499. class="works"
  2500. v-for="(w, wIndex) in workStudent[toolIndex]"
  2501. :key="wIndex"
  2502. >
  2503. <div class="workImg">
  2504. <!-- <img
  2505. src="../../assets/icon/works/noImg.png"
  2506. @click="openTools(15, toolIndex, taskCount, w.works)"
  2507. alt=""
  2508. />-->
  2509. <div class="answerBg">
  2510. <!-- <div>{{ w.sName }}</div> -->
  2511. <el-tooltip
  2512. class="item"
  2513. effect="light"
  2514. :content="JSON.parse(w.works)[0].answer"
  2515. placement="top"
  2516. >
  2517. <div class="answerContent">
  2518. {{ JSON.parse(w.works)[0].answer }}
  2519. </div>
  2520. </el-tooltip>
  2521. <div
  2522. class="answerScore"
  2523. v-if="w.score"
  2524. @click.stop="openScore(w)"
  2525. :class="{
  2526. rightW:
  2527. w.userid == userid || tType == 1 || tType == 4
  2528. }"
  2529. >
  2530. {{ JSON.parse(w.score).wScore }}分
  2531. </div>
  2532. <div
  2533. class="answerScore"
  2534. @click.stop="openScore(w)"
  2535. v-else-if="courseDetail.userid == userid"
  2536. :class="{
  2537. rightW:
  2538. w.userid == userid || tType == 1 || tType == 4
  2539. }"
  2540. >
  2541. 评分
  2542. </div>
  2543. <img
  2544. class="deleteImg"
  2545. src="../../assets/deleteworks.png"
  2546. v-if="
  2547. w.userid == userid || tType == 1 || tType == 4
  2548. "
  2549. @click.stop="deleteWorks(w.wid)"
  2550. alt
  2551. />
  2552. </div>
  2553. <div class="comment">
  2554. <div class="worksName">
  2555. <div>{{ w.sName }}</div>
  2556. </div>
  2557. </div>
  2558. </div>
  2559. </div>
  2560. </div>
  2561. </div>
  2562. <div
  2563. v-if="
  2564. tType &&
  2565. tType == 2 &&
  2566. !sIsOpen &&
  2567. tool.tool.indexOf(1) != -1
  2568. "
  2569. class="worksBox"
  2570. >
  2571. <div
  2572. class="zuoyeYulan"
  2573. v-if="workStudent[toolIndex].length > 0"
  2574. >
  2575. <span class="worksTitle">作业预览</span>
  2576. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2577. </div>
  2578. <div
  2579. class="worksDetailBox"
  2580. v-if="workStudent[toolIndex].length > 0"
  2581. >
  2582. <div
  2583. class="works"
  2584. style="
  2585. width: 200px;
  2586. height: 140px;
  2587. margin: 10px 10px 10px 0;
  2588. box-shadow: 0 0 6px 1px #dfdada;
  2589. "
  2590. v-for="(w, wIndex) in workStudent[toolIndex]"
  2591. :key="wIndex"
  2592. >
  2593. <div class="workImg">
  2594. <img
  2595. :src="w.works"
  2596. @click="previewImg(w.works, w)"
  2597. alt
  2598. />
  2599. <div
  2600. class="answerScore"
  2601. v-if="w.score"
  2602. @click.stop="openScore(w)"
  2603. :class="{
  2604. rightW:
  2605. w.userid == userid || tType == 1 || tType == 4
  2606. }"
  2607. >
  2608. {{ JSON.parse(w.score).wScore }}分
  2609. </div>
  2610. <div
  2611. class="answerScore"
  2612. @click.stop="openScore(w)"
  2613. v-else-if="courseDetail.userid == userid"
  2614. :class="{
  2615. rightW:
  2616. w.userid == userid || tType == 1 || tType == 4
  2617. }"
  2618. >
  2619. 评分
  2620. </div>
  2621. <div
  2622. class="stuLookScore"
  2623. v-if="
  2624. w.userid == userid ||
  2625. (tType == 1 &&
  2626. courseDetail.state == 6 &&
  2627. ((chapInfoList[courseType].chapterInfo[0]
  2628. .taskJson[taskCount].eList &&
  2629. chapInfoList[courseType].chapterInfo[0]
  2630. .taskJson[taskCount].eList.length) ||
  2631. (tool.eList && tool.eList.length)))
  2632. "
  2633. >
  2634. <el-popover
  2635. placement="top"
  2636. width="318"
  2637. trigger="hover"
  2638. >
  2639. <markScore
  2640. :loading="AIloading[toolIndex][wIndex].loading"
  2641. :markScoreVisible="markScoreVisible"
  2642. :ref="`markSco${toolIndex}${wIndex}`"
  2643. @updateLoading="updateLoading"
  2644. @updateDocSco="updateDocSco"
  2645. @refreshOther="refreshOther"
  2646. @markScoreDig="markScoreDig"
  2647. :tool="tool"
  2648. :wIndex="wIndex"
  2649. :scoCon="w"
  2650. :toolIndex="toolIndex"
  2651. :key="refreshKey"
  2652. :stage="courseType"
  2653. :task="taskCount"
  2654. :scoTit="
  2655. chapInfoList[courseType].chapterInfo[0]
  2656. .taskJson[taskCount].eList
  2657. "
  2658. >
  2659. </markScore>
  2660. <div
  2661. @click="
  2662. markScoreDig2(
  2663. w.sName,
  2664. worksStudent,
  2665. w.userid,
  2666. toolIndex,
  2667. chapInfoList[courseType].chapterInfo[0]
  2668. .taskJson[taskCount].eList,
  2669. AIloading[toolIndex][wIndex].loading,
  2670. tool
  2671. )
  2672. "
  2673. slot="reference"
  2674. >
  2675. <span v-if="AIloading[toolIndex][wIndex].sco">
  2676. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2677. </span>
  2678. <span v-else>
  2679. 评分
  2680. </span>
  2681. </div>
  2682. </el-popover>
  2683. </div>
  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 &&
  2704. !sIsOpen &&
  2705. tool.tool.indexOf(3) != -1
  2706. "
  2707. class="worksBox"
  2708. >
  2709. <div
  2710. class="zuoyeYulan"
  2711. v-if="workStudent[toolIndex].length > 0"
  2712. >
  2713. <span class="worksTitle">作业预览</span>
  2714. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2715. </div>
  2716. <div
  2717. class="worksDetailBox"
  2718. v-if="workStudent[toolIndex].length > 0"
  2719. >
  2720. <div
  2721. class="works"
  2722. style="
  2723. width: 200px;
  2724. height: 140px;
  2725. margin: 10px 10px 10px 0;
  2726. box-shadow: 0 0 6px 1px #dfdada;
  2727. "
  2728. v-for="(w, wIndex) in workStudent[toolIndex]"
  2729. :key="wIndex"
  2730. >
  2731. <div class="workImg">
  2732. <img
  2733. :src="w.works"
  2734. @click="previewImg(w.works, w)"
  2735. alt
  2736. />
  2737. <div
  2738. class="answerScore"
  2739. v-if="w.score"
  2740. @click.stop="openScore(w)"
  2741. :class="{
  2742. rightW:
  2743. w.userid == userid || tType == 1 || tType == 4
  2744. }"
  2745. >
  2746. {{ JSON.parse(w.score).wScore }}分
  2747. </div>
  2748. <div
  2749. class="answerScore"
  2750. @click.stop="openScore(w)"
  2751. v-else-if="courseDetail.userid == userid"
  2752. :class="{
  2753. rightW:
  2754. w.userid == userid || tType == 1 || tType == 4
  2755. }"
  2756. >
  2757. 评分
  2758. </div>
  2759. <div
  2760. class="stuLookScore"
  2761. v-if="
  2762. w.userid == userid ||
  2763. (tType == 1 &&
  2764. courseDetail.state == 6 &&
  2765. ((chapInfoList[courseType].chapterInfo[0]
  2766. .taskJson[taskCount].eList &&
  2767. chapInfoList[courseType].chapterInfo[0]
  2768. .taskJson[taskCount].eList.length) ||
  2769. (tool.eList && tool.eList.length)))
  2770. "
  2771. >
  2772. <el-popover
  2773. placement="top"
  2774. width="318"
  2775. trigger="hover"
  2776. >
  2777. <markScore
  2778. :loading="AIloading[toolIndex][wIndex].loading"
  2779. :markScoreVisible="markScoreVisible"
  2780. :ref="`markSco${toolIndex}${wIndex}`"
  2781. @updateLoading="updateLoading"
  2782. @updateDocSco="updateDocSco"
  2783. @refreshOther="refreshOther"
  2784. @markScoreDig="markScoreDig"
  2785. :tool="tool"
  2786. :wIndex="wIndex"
  2787. :scoCon="w"
  2788. :toolIndex="toolIndex"
  2789. :key="refreshKey"
  2790. :stage="courseType"
  2791. :task="taskCount"
  2792. :scoTit="
  2793. chapInfoList[courseType].chapterInfo[0]
  2794. .taskJson[taskCount].eList
  2795. "
  2796. >
  2797. </markScore>
  2798. <div
  2799. @click="
  2800. markScoreDig2(
  2801. w.sName,
  2802. worksStudent,
  2803. w.userid,
  2804. toolIndex,
  2805. chapInfoList[courseType].chapterInfo[0]
  2806. .taskJson[taskCount].eList,
  2807. AIloading[toolIndex][wIndex].loading,
  2808. tool
  2809. )
  2810. "
  2811. slot="reference"
  2812. >
  2813. <span v-if="AIloading[toolIndex][wIndex].sco">
  2814. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2815. </span>
  2816. <span v-else>
  2817. 评分
  2818. </span>
  2819. </div>
  2820. </el-popover>
  2821. </div>
  2822. <img
  2823. class="deleteImg"
  2824. src="../../assets/deleteworks.png"
  2825. v-if="
  2826. w.userid == userid || tType == 1 || tType == 4
  2827. "
  2828. @click.stop="deleteWorks(w.wid)"
  2829. alt
  2830. />
  2831. </div>
  2832. <div class="worksName">
  2833. <div>{{ w.sName }}</div>
  2834. </div>
  2835. </div>
  2836. </div>
  2837. </div>
  2838. <div
  2839. v-if="
  2840. tType &&
  2841. tType == 2 &&
  2842. !sIsOpen &&
  2843. tool.tool.indexOf(6) != -1
  2844. "
  2845. class="worksBox"
  2846. >
  2847. <div
  2848. class="zuoyeYulan"
  2849. v-if="workStudent[toolIndex].length > 0"
  2850. >
  2851. <span class="worksTitle">作业预览</span>
  2852. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2853. </div>
  2854. <div
  2855. class="worksDetailBox"
  2856. v-if="workStudent[toolIndex].length > 0"
  2857. >
  2858. <div
  2859. class="works"
  2860. style="
  2861. width: 200px;
  2862. height: 140px;
  2863. margin: 10px 10px 10px 0;
  2864. box-shadow: 0 0 6px 1px #dfdada;
  2865. "
  2866. v-for="(w, wIndex) in workStudent[toolIndex]"
  2867. :key="wIndex"
  2868. >
  2869. <div class="workImg">
  2870. <img
  2871. :src="w.works"
  2872. @click="previewImg(w.works, w)"
  2873. alt
  2874. />
  2875. <div
  2876. class="answerScore"
  2877. v-if="w.score"
  2878. @click.stop="openScore(w)"
  2879. :class="{
  2880. rightW:
  2881. w.userid == userid || tType == 1 || tType == 4
  2882. }"
  2883. >
  2884. {{ JSON.parse(w.score).wScore }}分
  2885. </div>
  2886. <div
  2887. class="answerScore"
  2888. @click.stop="openScore(w)"
  2889. v-else-if="courseDetail.userid == userid"
  2890. :class="{
  2891. rightW:
  2892. w.userid == userid || tType == 1 || tType == 4
  2893. }"
  2894. >
  2895. 评分
  2896. </div>
  2897. <img
  2898. class="deleteImg"
  2899. src="../../assets/deleteworks.png"
  2900. v-if="
  2901. w.userid == userid || tType == 1 || tType == 4
  2902. "
  2903. @click.stop="deleteWorks(w.wid)"
  2904. alt
  2905. />
  2906. </div>
  2907. <div class="worksName">
  2908. <div>{{ w.sName }}</div>
  2909. </div>
  2910. </div>
  2911. </div>
  2912. </div>
  2913. <div
  2914. v-if="
  2915. tType &&
  2916. tType == 2 &&
  2917. !sIsOpen &&
  2918. tool.tool.indexOf(7) != -1
  2919. "
  2920. class="worksBox"
  2921. >
  2922. <div
  2923. class="zuoyeYulan"
  2924. v-if="workStudent[toolIndex].length > 0"
  2925. >
  2926. <span class="worksTitle">作业预览</span>
  2927. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2928. </div>
  2929. <div
  2930. class="worksDetailBox"
  2931. v-if="workStudent[toolIndex].length > 0"
  2932. >
  2933. <div
  2934. class="works"
  2935. style="
  2936. width: 200px;
  2937. height: 140px;
  2938. margin: 10px 10px 10px 0;
  2939. box-shadow: 0 0 6px 1px #dfdada;
  2940. "
  2941. v-for="(w, wIndex) in workStudent[toolIndex]"
  2942. :key="wIndex"
  2943. >
  2944. <div class="workImg">
  2945. <img
  2946. :src="w.works"
  2947. @click="previewImg(w.works, w)"
  2948. alt
  2949. />
  2950. <div
  2951. class="answerScore"
  2952. v-if="w.score"
  2953. @click.stop="openScore(w)"
  2954. :class="{
  2955. rightW:
  2956. w.userid == userid || tType == 1 || tType == 4
  2957. }"
  2958. >
  2959. {{ JSON.parse(w.score).wScore }}分
  2960. </div>
  2961. <div
  2962. class="answerScore"
  2963. @click.stop="openScore(w)"
  2964. v-else-if="courseDetail.userid == userid"
  2965. :class="{
  2966. rightW:
  2967. w.userid == userid || tType == 1 || tType == 4
  2968. }"
  2969. >
  2970. 评分
  2971. </div>
  2972. <div
  2973. class="stuLookScore"
  2974. v-if="
  2975. w.userid == userid ||
  2976. (tType == 1 &&
  2977. courseDetail.state == 6 &&
  2978. ((chapInfoList[courseType].chapterInfo[0]
  2979. .taskJson[taskCount].eList &&
  2980. chapInfoList[courseType].chapterInfo[0]
  2981. .taskJson[taskCount].eList.length) ||
  2982. (tool.eList && tool.eList.length)))
  2983. "
  2984. >
  2985. <el-popover
  2986. placement="top"
  2987. width="318"
  2988. trigger="hover"
  2989. >
  2990. <markScore
  2991. :loading="AIloading[toolIndex][wIndex].loading"
  2992. :markScoreVisible="markScoreVisible"
  2993. :ref="`markSco${toolIndex}${wIndex}`"
  2994. @updateLoading="updateLoading"
  2995. @updateDocSco="updateDocSco"
  2996. @refreshOther="refreshOther"
  2997. @markScoreDig="markScoreDig"
  2998. :tool="tool"
  2999. :wIndex="wIndex"
  3000. :scoCon="w"
  3001. :toolIndex="toolIndex"
  3002. :key="refreshKey"
  3003. :stage="courseType"
  3004. :task="taskCount"
  3005. :scoTit="
  3006. chapInfoList[courseType].chapterInfo[0]
  3007. .taskJson[taskCount].eList
  3008. "
  3009. >
  3010. </markScore>
  3011. <div
  3012. @click="
  3013. markScoreDig2(
  3014. w.sName,
  3015. worksStudent,
  3016. w.userid,
  3017. toolIndex,
  3018. chapInfoList[courseType].chapterInfo[0]
  3019. .taskJson[taskCount].eList,
  3020. AIloading[toolIndex][wIndex].loading,
  3021. tool
  3022. )
  3023. "
  3024. slot="reference"
  3025. >
  3026. <span v-if="AIloading[toolIndex][wIndex].sco">
  3027. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3028. </span>
  3029. <span v-else>
  3030. 评分
  3031. </span>
  3032. </div>
  3033. </el-popover>
  3034. </div>
  3035. <img
  3036. class="deleteImg"
  3037. src="../../assets/deleteworks.png"
  3038. v-if="
  3039. w.userid == userid || tType == 1 || tType == 4
  3040. "
  3041. @click.stop="deleteWorks(w.wid)"
  3042. alt
  3043. />
  3044. </div>
  3045. <div class="worksName">
  3046. <div>{{ w.sName }}</div>
  3047. </div>
  3048. </div>
  3049. </div>
  3050. </div>
  3051. <div
  3052. v-if="
  3053. tType &&
  3054. tType == 2 &&
  3055. !sIsOpen &&
  3056. tool.tool.indexOf(26) != -1
  3057. "
  3058. class="worksBox"
  3059. >
  3060. <div
  3061. class="zuoyeYulan"
  3062. v-if="workStudent[toolIndex].length > 0"
  3063. >
  3064. <span class="worksTitle">作业预览</span>
  3065. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3066. </div>
  3067. <div
  3068. class="worksDetailBox"
  3069. v-if="workStudent[toolIndex].length > 0"
  3070. >
  3071. <div
  3072. class="works"
  3073. style="
  3074. width: 200px;
  3075. height: 140px;
  3076. margin: 10px 10px 10px 0;
  3077. box-shadow: 0 0 6px 1px #dfdada;
  3078. "
  3079. v-for="(w, wIndex) in workStudent[toolIndex]"
  3080. :key="wIndex"
  3081. >
  3082. <div class="workImg">
  3083. <img
  3084. :src="w.works"
  3085. @click="previewImg(w.works, w)"
  3086. alt
  3087. />
  3088. <img
  3089. class="deleteImg"
  3090. src="../../assets/deleteworks.png"
  3091. v-if="
  3092. w.userid == userid || tType == 1 || tType == 4
  3093. "
  3094. @click.stop="deleteWorks(w.wid)"
  3095. alt
  3096. />
  3097. </div>
  3098. <div class="worksName">
  3099. <div>{{ w.sName }}</div>
  3100. </div>
  3101. </div>
  3102. </div>
  3103. </div>
  3104. <div
  3105. v-if="
  3106. tType &&
  3107. ((tType == 2 && sIsOpen == true) ||
  3108. tType == 1 ||
  3109. tType == 4) &&
  3110. tool.tool.indexOf(16) != -1
  3111. "
  3112. class="worksBox"
  3113. >
  3114. <div
  3115. class="zuoyeYulan"
  3116. style="display: flex;justify-content: space-between;align-items: center;"
  3117. v-if="
  3118. (worksStudent.length &&
  3119. worksStudent[toolIndex].length > 0) ||
  3120. (courseGroup.group && courseGroup.group.length)
  3121. "
  3122. >
  3123. <div class="worksTop">
  3124. <div>作业预览</div>
  3125. <div
  3126. class="corOpen"
  3127. @click="contract(toolIndex)"
  3128. v-if="
  3129. isCloseList[toolIndex].isCloseBoolean &&
  3130. isCloseList[toolIndex].isClose == 0
  3131. "
  3132. >
  3133. 折叠
  3134. </div>
  3135. <div
  3136. class="corOpen"
  3137. @click="contract(toolIndex)"
  3138. v-if="isCloseList[toolIndex].isClose == 1"
  3139. >
  3140. 展开
  3141. </div>
  3142. </div>
  3143. <div
  3144. style="display: flex;"
  3145. v-if="
  3146. (courseDetail.userid == userid ||
  3147. (courseDetail.course_teacher &&
  3148. courseDetail.course_teacher.indexOf(userid) !=
  3149. -1)) &&
  3150. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3151. taskCount
  3152. ].eList &&
  3153. chapInfoList[courseType].chapterInfo[0].taskJson[
  3154. taskCount
  3155. ].eList.length) ||
  3156. (tool.eList && tool.eList.length)) &&
  3157. courseDetail.state == 6
  3158. "
  3159. >
  3160. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6"> -->
  3161. <div
  3162. style="margin-right:10px"
  3163. class="ScoreBtn"
  3164. @click="
  3165. resetLoopEva(
  3166. worksStudent[toolIndex],
  3167. chapInfoList[courseType].chapterInfo[0].taskJson[
  3168. taskCount
  3169. ].eList,
  3170. courseType,
  3171. taskCount,
  3172. toolIndex,
  3173. tool.toolDetail,
  3174. worksStudent
  3175. )
  3176. "
  3177. >
  3178. 一键重置
  3179. </div>
  3180. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3181. <img
  3182. src="../../assets/icon/newIcons/rootImg.png"
  3183. alt=""
  3184. />
  3185. AI评分
  3186. </div>
  3187. <div
  3188. class="ScoreBtn"
  3189. v-else-if="!loopLoading[toolIndex].loading"
  3190. @click="
  3191. loopEva(
  3192. worksStudent[toolIndex],
  3193. chapInfoList[courseType].chapterInfo[0].taskJson[
  3194. taskCount
  3195. ].eList,
  3196. courseType,
  3197. taskCount,
  3198. toolIndex,
  3199. tool.toolDetail,
  3200. chapInfoList[courseType].chapterInfo[0].taskJson[
  3201. taskCount
  3202. ].taskDetail,
  3203. tool
  3204. )
  3205. "
  3206. >
  3207. <img
  3208. src="../../assets/icon/newIcons/rootImg.png"
  3209. alt=""
  3210. />
  3211. AI评分
  3212. </div>
  3213. <div class="ScoreBtn" v-else>
  3214. <img
  3215. src="../../assets/icon/newIcons/rootImg.png"
  3216. alt=""
  3217. />
  3218. 正在评分
  3219. </div>
  3220. </div>
  3221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3222. </div>
  3223. <div
  3224. class="group_workBox"
  3225. v-for="(g, gindex) in courseGroup.group"
  3226. :key="gindex"
  3227. >
  3228. <div class="group_box">
  3229. <div class="group_title">
  3230. <el-tooltip
  3231. class="item"
  3232. effect="light"
  3233. :content="g.name"
  3234. placement="top"
  3235. >
  3236. <div class="group_name">{{ g.name }}</div>
  3237. </el-tooltip>
  3238. </div>
  3239. <div
  3240. class="group_work"
  3241. v-if="
  3242. g.works &&
  3243. g.works.length &&
  3244. g.works[toolIndex].length
  3245. "
  3246. >
  3247. <div
  3248. class="works"
  3249. style="
  3250. width: 200px;
  3251. height: 140px;
  3252. margin: 10px 10px 10px 0;
  3253. border-radius: 15px;
  3254. box-shadow: 0 0 6px 1px #dfdada;
  3255. "
  3256. v-for="(w, wIndex) in g.works[toolIndex]"
  3257. :key="wIndex"
  3258. :class="w.type == 1 ? 'isTypeOne' : ''"
  3259. >
  3260. <div class="workImg" v-if="w.type == 0">
  3261. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3262. <img
  3263. :src="w.works"
  3264. @click="previewImg(w.works, w)"
  3265. alt
  3266. />
  3267. <div
  3268. class="answerScore"
  3269. v-if="w.score"
  3270. @click.stop="openScore(w)"
  3271. :class="{
  3272. rightW:
  3273. w.userid == userid ||
  3274. tType == 1 ||
  3275. tType == 4 ||
  3276. w.ateacher == userid
  3277. }"
  3278. >
  3279. {{ JSON.parse(w.score).wScore }}分
  3280. </div>
  3281. <div
  3282. class="answerScore"
  3283. @click.stop="openScore(w)"
  3284. v-else-if="courseDetail.userid == userid"
  3285. :class="{
  3286. rightW:
  3287. w.userid == userid ||
  3288. tType == 1 ||
  3289. tType == 4 ||
  3290. w.ateacher == userid
  3291. }"
  3292. >
  3293. 评分
  3294. </div>
  3295. <img
  3296. class="deleteImg"
  3297. src="../../assets/deleteworks.png"
  3298. v-if="
  3299. w.userid == userid || tType == 1 || tType == 4
  3300. "
  3301. @click.stop="deleteWorks(w.wid)"
  3302. alt
  3303. />
  3304. </div>
  3305. <div class="workImg" v-if="w.type == 1">
  3306. <img :src="word" @click="openFile(w.works)" alt />
  3307. <!-- @click="openFile(w.works)" -->
  3308. <div
  3309. class="answerScore"
  3310. v-if="w.score"
  3311. @click.stop="openScore(w)"
  3312. :class="{
  3313. rightW:
  3314. w.userid == userid ||
  3315. tType == 1 ||
  3316. tType == 4 ||
  3317. w.ateacher == userid
  3318. }"
  3319. >
  3320. {{ JSON.parse(w.score).wScore }}分
  3321. </div>
  3322. <div
  3323. class="answerScore"
  3324. @click.stop="openScore(w)"
  3325. v-else-if="courseDetail.userid == userid"
  3326. :class="{
  3327. rightW:
  3328. w.userid == userid ||
  3329. tType == 1 ||
  3330. tType == 4 ||
  3331. w.ateacher == userid
  3332. }"
  3333. >
  3334. 评分
  3335. </div>
  3336. <img
  3337. class="deleteImg"
  3338. src="../../assets/deleteworks.png"
  3339. v-if="
  3340. w.userid == userid || tType == 1 || tType == 4
  3341. "
  3342. @click.stop="deleteWorks(w.wid)"
  3343. alt
  3344. />
  3345. </div>
  3346. <div class="workImg" v-if="w.type == 3">
  3347. <img
  3348. style="cursor: pointer"
  3349. :src="video"
  3350. @click="openVideo(w)"
  3351. alt
  3352. />
  3353. <!-- @click="openVideo(w.works)" -->
  3354. <div
  3355. class="answerScore"
  3356. v-if="w.score"
  3357. @click.stop="openScore(w)"
  3358. :class="{
  3359. rightW:
  3360. w.userid == userid ||
  3361. tType == 1 ||
  3362. tType == 4 ||
  3363. w.ateacher == userid
  3364. }"
  3365. >
  3366. {{ JSON.parse(w.score).wScore }}分
  3367. </div>
  3368. <div
  3369. class="answerScore"
  3370. @click.stop="openScore(w)"
  3371. v-else-if="courseDetail.userid == userid"
  3372. :class="{
  3373. rightW:
  3374. w.userid == userid ||
  3375. tType == 1 ||
  3376. tType == 4 ||
  3377. w.ateacher == userid
  3378. }"
  3379. >
  3380. 评分
  3381. </div>
  3382. <img
  3383. class="deleteImg"
  3384. src="../../assets/deleteworks.png"
  3385. v-if="
  3386. w.userid == userid || tType == 1 || tType == 4
  3387. "
  3388. @click.stop="deleteWorks(w.wid)"
  3389. alt
  3390. />
  3391. </div>
  3392. <div class="workImg" v-if="w.type == 12">
  3393. <img
  3394. style="cursor: pointer"
  3395. :src="word2"
  3396. @click="downloadFile(w.works)"
  3397. alt
  3398. />
  3399. <!-- @click="openVideo(w.works)" -->
  3400. <div
  3401. class="answerScore"
  3402. v-if="w.score"
  3403. @click.stop="openScore(w)"
  3404. :class="{
  3405. rightW:
  3406. w.userid == userid ||
  3407. tType == 1 ||
  3408. tType == 4 ||
  3409. w.ateacher == userid
  3410. }"
  3411. >
  3412. {{ JSON.parse(w.score).wScore }}分
  3413. </div>
  3414. <div
  3415. class="answerScore"
  3416. @click.stop="openScore(w)"
  3417. v-else-if="courseDetail.userid == userid"
  3418. :class="{
  3419. rightW:
  3420. w.userid == userid ||
  3421. tType == 1 ||
  3422. tType == 4 ||
  3423. w.ateacher == userid
  3424. }"
  3425. >
  3426. 评分
  3427. </div>
  3428. <img
  3429. class="deleteImg"
  3430. src="../../assets/deleteworks.png"
  3431. v-if="
  3432. w.userid == userid || tType == 1 || tType == 4
  3433. "
  3434. @click.stop="deleteWorks(w.wid)"
  3435. alt
  3436. />
  3437. </div>
  3438. <div class="comment" style="min-width: 200px">
  3439. <div class="worksName">
  3440. <div>{{ w.sName }}</div>
  3441. </div>
  3442. <div class="commentList">
  3443. <div class="commentList">
  3444. <div
  3445. class="commentImg"
  3446. @click="
  3447. isLikes(
  3448. w.wid,
  3449. userid,
  3450. 1,
  3451. null,
  3452. w.isLikes,
  3453. w.sName
  3454. )
  3455. "
  3456. >
  3457. <img
  3458. :src="w.isLikes == true ? likes : noLikes"
  3459. alt=""
  3460. />
  3461. </div>
  3462. <div>{{ w.likesCount }}</div>
  3463. </div>
  3464. <div
  3465. class="commentList"
  3466. style="margin-right: 15px"
  3467. >
  3468. <div
  3469. class="commentImg"
  3470. @click="
  3471. commentOther(
  3472. w,
  3473. toolIndex,
  3474. wIndex,
  3475. null,
  3476. g.id
  3477. )
  3478. "
  3479. >
  3480. <img
  3481. src="../../assets/icon/comment/comment.png"
  3482. alt=""
  3483. />
  3484. </div>
  3485. <div>{{ w.commentCount }}</div>
  3486. </div>
  3487. </div>
  3488. </div>
  3489. </div>
  3490. </div>
  3491. <div class="group_work" v-else>暂无提交作业</div>
  3492. </div>
  3493. </div>
  3494. <div
  3495. :id="'tool-' + toolIndex"
  3496. :style="{
  3497. height:
  3498. isCloseList[toolIndex].isClose == 1
  3499. ? retrnToolHeight('tool-' + toolIndex)
  3500. : 'auto',
  3501. overflow:
  3502. isCloseList[toolIndex].isClose == 1
  3503. ? 'hidden'
  3504. : 'unset'
  3505. }"
  3506. class="worksDetailBox"
  3507. v-if="
  3508. worksStudent.length &&
  3509. worksStudent[toolIndex].length > 0
  3510. "
  3511. >
  3512. <div
  3513. class="works"
  3514. style="
  3515. width: 200px;
  3516. height: 140px;
  3517. margin: 10px 10px 10px 0;
  3518. border-radius: 15px;
  3519. box-shadow: 0 0 6px 1px #dfdada;
  3520. "
  3521. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3522. :key="wIndex"
  3523. :class="w.type == 1 ? 'isTypeOne' : ''"
  3524. >
  3525. <div class="workImg" v-if="w.type == 0">
  3526. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3527. <img
  3528. :src="w.works"
  3529. @click="previewImg(w.works, w)"
  3530. alt
  3531. />
  3532. <div
  3533. class="answerScore"
  3534. v-if="w.score"
  3535. @click.stop="openScore(w)"
  3536. :class="{
  3537. rightW:
  3538. w.userid == userid ||
  3539. tType == 1 ||
  3540. tType == 4 ||
  3541. w.ateacher == userid
  3542. }"
  3543. >
  3544. {{ JSON.parse(w.score).wScore }}分
  3545. </div>
  3546. <div
  3547. class="answerScore"
  3548. @click.stop="openScore(w)"
  3549. v-else-if="
  3550. courseDetail.userid == userid &&
  3551. courseDetail.state != 6 &&
  3552. chapInfoList[courseType].chapterInfo[0]
  3553. .taskJson[taskCount].eList &&
  3554. chapInfoList[courseType].chapterInfo[0]
  3555. .taskJson[taskCount].eList.length
  3556. "
  3557. :class="{
  3558. rightW:
  3559. w.userid == userid ||
  3560. tType == 1 ||
  3561. tType == 4 ||
  3562. w.ateacher == userid
  3563. }"
  3564. >
  3565. 评分
  3566. </div>
  3567. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3568. <div
  3569. v-else-if="
  3570. (courseDetail.userid == userid ||
  3571. (courseDetail.course_teacher &&
  3572. courseDetail.course_teacher.indexOf(userid) !=
  3573. -1) ||
  3574. (w.userid == userid && sIsOpen)) &&
  3575. courseDetail.state == 6 &&
  3576. ((chapInfoList[courseType].chapterInfo[0]
  3577. .taskJson[taskCount].eList &&
  3578. chapInfoList[courseType].chapterInfo[0]
  3579. .taskJson[taskCount].eList.length) ||
  3580. (tool.eList && tool.eList.length))
  3581. "
  3582. >
  3583. <el-popover
  3584. placement="top"
  3585. width="318"
  3586. :disabled="AIloading[toolIndex][wIndex].loading"
  3587. trigger="hover"
  3588. >
  3589. <markScore
  3590. :loading="AIloading[toolIndex][wIndex].loading"
  3591. :markScoreVisible="markScoreVisible"
  3592. :ref="`markSco${toolIndex}${wIndex}`"
  3593. @updateLoading="updateLoading"
  3594. @updateDocSco="updateDocSco"
  3595. @refreshOther="refreshOther"
  3596. @markScoreDig="markScoreDig"
  3597. :tool="tool"
  3598. :wIndex="wIndex"
  3599. :scoCon="w"
  3600. :toolIndex="toolIndex"
  3601. :key="refreshKey"
  3602. :stage="courseType"
  3603. :task="taskCount"
  3604. :scoTit="
  3605. chapInfoList[courseType].chapterInfo[0]
  3606. .taskJson[taskCount].eList
  3607. "
  3608. >
  3609. </markScore>
  3610. <div
  3611. class="answerScore"
  3612. @click="
  3613. markScoreDig2(
  3614. w.sName,
  3615. worksStudent,
  3616. w.userid,
  3617. toolIndex,
  3618. chapInfoList[courseType].chapterInfo[0]
  3619. .taskJson[taskCount].eList,
  3620. AIloading[toolIndex][wIndex].loading,
  3621. tool
  3622. )
  3623. "
  3624. slot="reference"
  3625. :class="{
  3626. rightW:
  3627. w.userid == userid ||
  3628. tType == 1 ||
  3629. tType == 4 ||
  3630. w.ateacher == userid
  3631. }"
  3632. >
  3633. <span v-if="AIloading[toolIndex][wIndex].sco">
  3634. {{
  3635. AIloading[toolIndex][wIndex].loading
  3636. ? "评分中"
  3637. : AIloading[toolIndex][wIndex].sco + "分"
  3638. }}
  3639. </span>
  3640. <span v-else>
  3641. {{
  3642. AIloading[toolIndex][wIndex].loading
  3643. ? "评分中"
  3644. : "评分"
  3645. }}
  3646. </span>
  3647. </div>
  3648. </el-popover>
  3649. </div>
  3650. <img
  3651. class="deleteImg"
  3652. src="../../assets/deleteworks.png"
  3653. v-if="
  3654. w.userid == userid || tType == 1 || tType == 4
  3655. "
  3656. @click.stop="deleteWorks(w.wid)"
  3657. alt
  3658. />
  3659. </div>
  3660. <div class="workImg" v-if="w.type == 1">
  3661. <img :src="word" @click="openFile(w.works)" alt />
  3662. <!-- @click="openFile(w.works)" -->
  3663. <div
  3664. class="answerScore"
  3665. v-if="w.score"
  3666. @click.stop="openScore(w)"
  3667. :class="{
  3668. rightW:
  3669. w.userid == userid ||
  3670. tType == 1 ||
  3671. tType == 4 ||
  3672. w.ateacher == userid
  3673. }"
  3674. >
  3675. {{ JSON.parse(w.score).wScore }}分
  3676. </div>
  3677. <div
  3678. class="answerScore"
  3679. @click.stop="openScore(w)"
  3680. v-else-if="
  3681. courseDetail.userid == userid &&
  3682. courseDetail.state != 6 &&
  3683. chapInfoList[courseType].chapterInfo[0]
  3684. .taskJson[taskCount].eList &&
  3685. chapInfoList[courseType].chapterInfo[0]
  3686. .taskJson[taskCount].eList.length
  3687. "
  3688. :class="{
  3689. rightW:
  3690. w.userid == userid ||
  3691. tType == 1 ||
  3692. tType == 4 ||
  3693. w.ateacher == userid
  3694. }"
  3695. >
  3696. 评分
  3697. </div>
  3698. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3699. <div
  3700. v-else-if="
  3701. (courseDetail.userid == userid ||
  3702. (courseDetail.course_teacher &&
  3703. courseDetail.course_teacher.indexOf(userid) !=
  3704. -1) ||
  3705. (w.userid == userid && sIsOpen)) &&
  3706. courseDetail.state == 6 &&
  3707. ((chapInfoList[courseType].chapterInfo[0]
  3708. .taskJson[taskCount].eList &&
  3709. chapInfoList[courseType].chapterInfo[0]
  3710. .taskJson[taskCount].eList.length) ||
  3711. (tool.eList && tool.eList.length))
  3712. "
  3713. >
  3714. <el-popover
  3715. placement="top"
  3716. width="318"
  3717. :disabled="AIloading[toolIndex][wIndex].loading"
  3718. trigger="hover"
  3719. >
  3720. <markScore
  3721. :loading="AIloading[toolIndex][wIndex].loading"
  3722. :markScoreVisible="markScoreVisible"
  3723. :ref="`markSco${toolIndex}${wIndex}`"
  3724. @updateLoading="updateLoading"
  3725. @updateDocSco="updateDocSco"
  3726. @refreshOther="refreshOther"
  3727. @markScoreDig="markScoreDig"
  3728. :tool="tool"
  3729. :wIndex="wIndex"
  3730. :scoCon="w"
  3731. :toolIndex="toolIndex"
  3732. :key="refreshKey"
  3733. :stage="courseType"
  3734. :task="taskCount"
  3735. :scoTit="
  3736. chapInfoList[courseType].chapterInfo[0]
  3737. .taskJson[taskCount].eList
  3738. "
  3739. >
  3740. </markScore>
  3741. <div
  3742. class="answerScore"
  3743. @click="
  3744. markScoreDig2(
  3745. w.sName,
  3746. worksStudent,
  3747. w.userid,
  3748. toolIndex,
  3749. chapInfoList[courseType].chapterInfo[0]
  3750. .taskJson[taskCount].eList,
  3751. AIloading[toolIndex][wIndex].loading,
  3752. tool
  3753. )
  3754. "
  3755. slot="reference"
  3756. :class="{
  3757. rightW:
  3758. w.userid == userid ||
  3759. tType == 1 ||
  3760. tType == 4 ||
  3761. w.ateacher == userid
  3762. }"
  3763. >
  3764. <span v-if="AIloading[toolIndex][wIndex].sco">
  3765. {{
  3766. AIloading[toolIndex][wIndex].loading
  3767. ? "评分中"
  3768. : AIloading[toolIndex][wIndex].sco + "分"
  3769. }}
  3770. </span>
  3771. <span v-else>
  3772. {{
  3773. AIloading[toolIndex][wIndex].loading
  3774. ? "评分中"
  3775. : "评分"
  3776. }}
  3777. </span>
  3778. </div>
  3779. </el-popover>
  3780. </div>
  3781. <img
  3782. class="deleteImg"
  3783. src="../../assets/deleteworks.png"
  3784. v-if="
  3785. w.userid == userid || tType == 1 || tType == 4
  3786. "
  3787. @click.stop="deleteWorks(w.wid)"
  3788. alt
  3789. />
  3790. </div>
  3791. <div class="workImg" v-if="w.type == 3">
  3792. <img
  3793. style="cursor: pointer"
  3794. :src="video"
  3795. @click="openVideo(w)"
  3796. alt
  3797. />
  3798. <!-- @click="openVideo(w.works)" -->
  3799. <div
  3800. class="answerScore"
  3801. v-if="w.score"
  3802. @click.stop="openScore(w)"
  3803. :class="{
  3804. rightW:
  3805. w.userid == userid ||
  3806. tType == 1 ||
  3807. tType == 4 ||
  3808. w.ateacher == userid
  3809. }"
  3810. >
  3811. {{ JSON.parse(w.score).wScore }}分
  3812. </div>
  3813. <div
  3814. class="answerScore"
  3815. @click.stop="openScore(w)"
  3816. v-else-if="
  3817. courseDetail.userid == userid &&
  3818. courseDetail.state != 6 &&
  3819. chapInfoList[courseType].chapterInfo[0]
  3820. .taskJson[taskCount].eList &&
  3821. chapInfoList[courseType].chapterInfo[0]
  3822. .taskJson[taskCount].eList.length
  3823. "
  3824. :class="{
  3825. rightW:
  3826. w.userid == userid ||
  3827. tType == 1 ||
  3828. tType == 4 ||
  3829. w.ateacher == userid
  3830. }"
  3831. >
  3832. 评分
  3833. </div>
  3834. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3835. <div
  3836. v-else-if="
  3837. (courseDetail.userid == userid ||
  3838. (courseDetail.course_teacher &&
  3839. courseDetail.course_teacher.indexOf(userid) !=
  3840. -1) ||
  3841. (w.userid == userid && sIsOpen)) &&
  3842. courseDetail.state == 6 &&
  3843. ((chapInfoList[courseType].chapterInfo[0]
  3844. .taskJson[taskCount].eList &&
  3845. chapInfoList[courseType].chapterInfo[0]
  3846. .taskJson[taskCount].eList.length) ||
  3847. (tool.eList && tool.eList.length))
  3848. "
  3849. >
  3850. <el-popover
  3851. placement="top"
  3852. width="318"
  3853. :disabled="AIloading[toolIndex][wIndex].loading"
  3854. trigger="hover"
  3855. >
  3856. <markScore
  3857. :loading="AIloading[toolIndex][wIndex].loading"
  3858. :markScoreVisible="markScoreVisible"
  3859. :ref="`markSco${toolIndex}${wIndex}`"
  3860. @updateLoading="updateLoading"
  3861. @updateDocSco="updateDocSco"
  3862. @refreshOther="refreshOther"
  3863. @markScoreDig="markScoreDig"
  3864. :tool="tool"
  3865. :wIndex="wIndex"
  3866. :scoCon="w"
  3867. :toolIndex="toolIndex"
  3868. :key="refreshKey"
  3869. :stage="courseType"
  3870. :task="taskCount"
  3871. :scoTit="
  3872. chapInfoList[courseType].chapterInfo[0]
  3873. .taskJson[taskCount].eList
  3874. "
  3875. >
  3876. </markScore>
  3877. <div
  3878. class="answerScore"
  3879. @click="
  3880. markScoreDig2(
  3881. w.sName,
  3882. worksStudent,
  3883. w.userid,
  3884. toolIndex,
  3885. chapInfoList[courseType].chapterInfo[0]
  3886. .taskJson[taskCount].eList,
  3887. AIloading[toolIndex][wIndex].loading,
  3888. tool
  3889. )
  3890. "
  3891. slot="reference"
  3892. :class="{
  3893. rightW:
  3894. w.userid == userid ||
  3895. tType == 1 ||
  3896. tType == 4 ||
  3897. w.ateacher == userid
  3898. }"
  3899. >
  3900. <span v-if="AIloading[toolIndex][wIndex].sco">
  3901. {{
  3902. AIloading[toolIndex][wIndex].loading
  3903. ? "评分中"
  3904. : AIloading[toolIndex][wIndex].sco + "分"
  3905. }}
  3906. </span>
  3907. <span v-else>
  3908. {{
  3909. AIloading[toolIndex][wIndex].loading
  3910. ? "评分中"
  3911. : "评分"
  3912. }}
  3913. </span>
  3914. </div>
  3915. </el-popover>
  3916. </div>
  3917. <img
  3918. class="deleteImg"
  3919. src="../../assets/deleteworks.png"
  3920. v-if="
  3921. w.userid == userid || tType == 1 || tType == 4
  3922. "
  3923. @click.stop="deleteWorks(w.wid)"
  3924. alt
  3925. />
  3926. </div>
  3927. <div class="workImg" v-if="w.type == 12">
  3928. <img
  3929. style="cursor: pointer"
  3930. :src="word2"
  3931. @click="downloadFile(w.works)"
  3932. alt
  3933. />
  3934. <!-- @click="openVideo(w.works)" -->
  3935. <div
  3936. class="answerScore"
  3937. v-if="w.score"
  3938. @click.stop="openScore(w)"
  3939. :class="{
  3940. rightW:
  3941. w.userid == userid ||
  3942. tType == 1 ||
  3943. tType == 4 ||
  3944. w.ateacher == userid
  3945. }"
  3946. >
  3947. {{ JSON.parse(w.score).wScore }}分
  3948. </div>
  3949. <div
  3950. class="answerScore"
  3951. @click.stop="openScore(w)"
  3952. v-else-if="
  3953. courseDetail.userid == userid &&
  3954. courseDetail.state != 6 &&
  3955. chapInfoList[courseType].chapterInfo[0]
  3956. .taskJson[taskCount].eList &&
  3957. chapInfoList[courseType].chapterInfo[0]
  3958. .taskJson[taskCount].eList.length
  3959. "
  3960. :class="{
  3961. rightW:
  3962. w.userid == userid ||
  3963. tType == 1 ||
  3964. tType == 4 ||
  3965. w.ateacher == userid
  3966. }"
  3967. >
  3968. 评分
  3969. </div>
  3970. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  3971. <div
  3972. v-else-if="
  3973. (courseDetail.userid == userid ||
  3974. (courseDetail.course_teacher &&
  3975. courseDetail.course_teacher.indexOf(userid) !=
  3976. -1) ||
  3977. (w.userid == userid && sIsOpen)) &&
  3978. courseDetail.state == 6 &&
  3979. ((chapInfoList[courseType].chapterInfo[0]
  3980. .taskJson[taskCount].eList &&
  3981. chapInfoList[courseType].chapterInfo[0]
  3982. .taskJson[taskCount].eList.length) ||
  3983. (tool.eList && tool.eList.length))
  3984. "
  3985. >
  3986. <el-popover
  3987. placement="top"
  3988. width="318"
  3989. :disabled="AIloading[toolIndex][wIndex].loading"
  3990. trigger="hover"
  3991. >
  3992. <markScore
  3993. :loading="AIloading[toolIndex][wIndex].loading"
  3994. :markScoreVisible="markScoreVisible"
  3995. :ref="`markSco${toolIndex}${wIndex}`"
  3996. @updateLoading="updateLoading"
  3997. @updateDocSco="updateDocSco"
  3998. @refreshOther="refreshOther"
  3999. @markScoreDig="markScoreDig"
  4000. :tool="tool"
  4001. :wIndex="wIndex"
  4002. :scoCon="w"
  4003. :toolIndex="toolIndex"
  4004. :key="refreshKey"
  4005. :stage="courseType"
  4006. :task="taskCount"
  4007. :scoTit="
  4008. chapInfoList[courseType].chapterInfo[0]
  4009. .taskJson[taskCount].eList
  4010. "
  4011. >
  4012. </markScore>
  4013. <div
  4014. class="answerScore"
  4015. @click="
  4016. markScoreDig2(
  4017. w.sName,
  4018. worksStudent,
  4019. w.userid,
  4020. toolIndex,
  4021. chapInfoList[courseType].chapterInfo[0]
  4022. .taskJson[taskCount].eList,
  4023. AIloading[toolIndex][wIndex].loading,
  4024. tool
  4025. )
  4026. "
  4027. slot="reference"
  4028. :class="{
  4029. rightW:
  4030. w.userid == userid ||
  4031. tType == 1 ||
  4032. tType == 4 ||
  4033. w.ateacher == userid
  4034. }"
  4035. >
  4036. <span v-if="AIloading[toolIndex][wIndex].sco">
  4037. {{
  4038. AIloading[toolIndex][wIndex].loading
  4039. ? "评分中"
  4040. : AIloading[toolIndex][wIndex].sco + "分"
  4041. }}
  4042. </span>
  4043. <span v-else>
  4044. {{
  4045. AIloading[toolIndex][wIndex].loading
  4046. ? "评分中"
  4047. : "评分"
  4048. }}
  4049. </span>
  4050. </div>
  4051. </el-popover>
  4052. </div>
  4053. <img
  4054. class="deleteImg"
  4055. src="../../assets/deleteworks.png"
  4056. v-if="
  4057. w.userid == userid || tType == 1 || tType == 4
  4058. "
  4059. @click.stop="deleteWorks(w.wid)"
  4060. alt
  4061. />
  4062. </div>
  4063. <div class="comment" style="min-width: 200px">
  4064. <div class="worksName">
  4065. <div>{{ w.sName }}</div>
  4066. </div>
  4067. <div class="commentList">
  4068. <div class="commentList">
  4069. <div
  4070. class="commentImg"
  4071. @click="
  4072. isLikes(
  4073. w.wid,
  4074. userid,
  4075. 1,
  4076. null,
  4077. w.isLikes,
  4078. w.sName
  4079. )
  4080. "
  4081. >
  4082. <img
  4083. :src="w.isLikes == true ? likes : noLikes"
  4084. alt=""
  4085. />
  4086. </div>
  4087. <div>{{ w.likesCount }}</div>
  4088. </div>
  4089. <div class="commentList" style="margin-right: 15px">
  4090. <div
  4091. class="commentImg"
  4092. @click="commentOther(w, toolIndex, wIndex)"
  4093. >
  4094. <img
  4095. src="../../assets/icon/comment/comment.png"
  4096. alt=""
  4097. />
  4098. </div>
  4099. <div>{{ w.commentCount }}</div>
  4100. </div>
  4101. </div>
  4102. </div>
  4103. </div>
  4104. </div>
  4105. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4106. 未提交
  4107. </div>
  4108. <div
  4109. class="noWorksS"
  4110. v-if="noWorksS && noWorksS[toolIndex].length"
  4111. >
  4112. <div
  4113. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4114. :key="sIndex"
  4115. class="noWorksName"
  4116. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4117. >
  4118. <el-tooltip
  4119. effect="dark"
  4120. :content="s.student"
  4121. placement="top"
  4122. >
  4123. <span>{{ s.student }}</span>
  4124. </el-tooltip>
  4125. </div>
  4126. </div>
  4127. </div>
  4128. <div
  4129. v-if="
  4130. tType &&
  4131. ((tType == 2 && sIsOpen == true) ||
  4132. tType == 1 ||
  4133. tType == 4) &&
  4134. tool.tool.indexOf(70) != -1
  4135. "
  4136. class="worksBox"
  4137. >
  4138. <div
  4139. class="zuoyeYulan"
  4140. v-if="
  4141. worksStudent.length &&
  4142. worksStudent[toolIndex].length > 0
  4143. "
  4144. >
  4145. <div class="worksTop">
  4146. <div>作业预览</div>
  4147. <div
  4148. class="corOpen"
  4149. @click="contract(toolIndex)"
  4150. v-if="
  4151. isCloseList[toolIndex].isCloseBoolean &&
  4152. isCloseList[toolIndex].isClose == 0
  4153. "
  4154. >
  4155. 折叠
  4156. </div>
  4157. <div
  4158. class="corOpen"
  4159. @click="contract(toolIndex)"
  4160. v-if="isCloseList[toolIndex].isClose == 1"
  4161. >
  4162. 展开
  4163. </div>
  4164. </div>
  4165. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4166. </div>
  4167. <div
  4168. :id="'tool-' + toolIndex"
  4169. :style="{
  4170. height:
  4171. isCloseList[toolIndex].isClose == 1
  4172. ? retrnToolHeight('tool-' + toolIndex)
  4173. : 'auto',
  4174. overflow:
  4175. isCloseList[toolIndex].isClose == 1
  4176. ? 'hidden'
  4177. : 'unset'
  4178. }"
  4179. class="worksDetailBox"
  4180. v-if="
  4181. worksStudent.length &&
  4182. worksStudent[toolIndex].length > 0
  4183. "
  4184. >
  4185. <div
  4186. class="works"
  4187. style="
  4188. width: 200px;
  4189. height: 140px;
  4190. margin: 10px 10px 10px 0;
  4191. border-radius: 15px;
  4192. box-shadow: 0 0 6px 1px #dfdada;
  4193. "
  4194. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4195. :key="wIndex"
  4196. :class="w.type == 1 ? 'isTypeOne' : ''"
  4197. >
  4198. <div
  4199. class="workImg"
  4200. @click.stop="openScore(w, toolIndex)"
  4201. >
  4202. <img :src="word" alt />
  4203. <img
  4204. class="deleteImg"
  4205. src="../../assets/deleteworks.png"
  4206. v-if="
  4207. w.userid == userid || tType == 1 || tType == 4
  4208. "
  4209. @click.stop="deleteWorks(w.wid)"
  4210. alt
  4211. />
  4212. </div>
  4213. <div class="comment" style="min-width: 200px">
  4214. <div class="worksName">
  4215. <div>{{ w.sName }}</div>
  4216. </div>
  4217. </div>
  4218. </div>
  4219. </div>
  4220. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4221. 未提交
  4222. </div>
  4223. <div
  4224. class="noWorksS"
  4225. v-if="noWorksS && noWorksS[toolIndex].length"
  4226. >
  4227. <div
  4228. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4229. :key="sIndex"
  4230. class="noWorksName"
  4231. >
  4232. <el-tooltip
  4233. effect="dark"
  4234. :content="s.student"
  4235. placement="top"
  4236. >
  4237. <span>{{ s.student }}</span>
  4238. </el-tooltip>
  4239. </div>
  4240. </div>
  4241. </div>
  4242. <div
  4243. v-if="
  4244. tType &&
  4245. tType == 2 &&
  4246. !sIsOpen &&
  4247. tool.tool.indexOf(70) != -1
  4248. "
  4249. class="worksBox"
  4250. >
  4251. <div
  4252. class="zuoyeYulan"
  4253. v-if="workStudent[toolIndex].length > 0"
  4254. >
  4255. <span class="worksTitle">作业预览</span>
  4256. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4257. </div>
  4258. <div
  4259. class="worksDetailBox"
  4260. v-if="workStudent[toolIndex].length > 0"
  4261. >
  4262. <div
  4263. class="works"
  4264. style="
  4265. width: 200px;
  4266. height: 140px;
  4267. margin: 10px 10px 10px 0;
  4268. box-shadow: 0 0 6px 1px #dfdada;
  4269. "
  4270. v-for="(w, wIndex) in workStudent[toolIndex]"
  4271. :key="wIndex"
  4272. >
  4273. <div
  4274. class="workImg"
  4275. @click.stop="openScore(w, toolIndex)"
  4276. >
  4277. <img :src="word" alt />
  4278. <img
  4279. class="deleteImg"
  4280. src="../../assets/deleteworks.png"
  4281. v-if="
  4282. w.userid == userid || tType == 1 || tType == 4
  4283. "
  4284. @click.stop="deleteWorks(w.wid)"
  4285. alt
  4286. />
  4287. </div>
  4288. <div class="worksName">
  4289. <div>{{ w.sName }}</div>
  4290. </div>
  4291. </div>
  4292. </div>
  4293. </div>
  4294. <div
  4295. v-if="
  4296. tType &&
  4297. ((tType == 2 && sIsOpen == true) ||
  4298. tType == 1 ||
  4299. tType == 4) &&
  4300. tool.tool.indexOf(32) != -1
  4301. "
  4302. class="worksBox"
  4303. >
  4304. <div
  4305. class="zuoyeYulan"
  4306. v-if="
  4307. worksStudent.length &&
  4308. worksStudent[toolIndex].length > 0
  4309. "
  4310. >
  4311. <div class="worksTop">
  4312. <div>作业预览</div>
  4313. <div
  4314. class="corOpen"
  4315. @click="contract(toolIndex)"
  4316. v-if="
  4317. isCloseList[toolIndex].isCloseBoolean &&
  4318. isCloseList[toolIndex].isClose == 0
  4319. "
  4320. >
  4321. 折叠
  4322. </div>
  4323. <div
  4324. class="corOpen"
  4325. @click="contract(toolIndex)"
  4326. v-if="isCloseList[toolIndex].isClose == 1"
  4327. >
  4328. 展开
  4329. </div>
  4330. </div>
  4331. </div>
  4332. <div
  4333. :id="'tool-' + toolIndex"
  4334. :style="{
  4335. height:
  4336. isCloseList[toolIndex].isClose == 1
  4337. ? retrnToolHeight('tool-' + toolIndex)
  4338. : 'auto',
  4339. overflow:
  4340. isCloseList[toolIndex].isClose == 1
  4341. ? 'hidden'
  4342. : 'unset'
  4343. }"
  4344. class="worksDetailBox"
  4345. v-if="
  4346. worksStudent.length &&
  4347. worksStudent[toolIndex].length > 0
  4348. "
  4349. >
  4350. <div
  4351. class="works"
  4352. style="
  4353. width: 200px;
  4354. height: 140px;
  4355. margin: 10px 10px 10px 0;
  4356. border-radius: 15px;
  4357. box-shadow: 0 0 6px 1px #dfdada;
  4358. "
  4359. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4360. :key="wIndex"
  4361. :class="w.type == 1 ? 'isTypeOne' : ''"
  4362. >
  4363. <div class="workImg">
  4364. <img
  4365. :src="word2"
  4366. @click="downloadFile(w.works)"
  4367. alt
  4368. />
  4369. <div
  4370. class="answerScore"
  4371. v-if="w.score"
  4372. @click.stop="openScore(w)"
  4373. :class="{
  4374. rightW:
  4375. w.userid == userid ||
  4376. tType == 1 ||
  4377. tType == 4 ||
  4378. w.ateacher == userid
  4379. }"
  4380. >
  4381. {{ JSON.parse(w.score).wScore }}分
  4382. </div>
  4383. <div
  4384. class="answerScore"
  4385. @click.stop="openScore(w)"
  4386. v-else-if="courseDetail.userid == userid"
  4387. :class="{
  4388. rightW:
  4389. w.userid == userid ||
  4390. tType == 1 ||
  4391. tType == 4 ||
  4392. w.ateacher == userid
  4393. }"
  4394. >
  4395. 评分
  4396. </div>
  4397. <img
  4398. class="deleteImg"
  4399. src="../../assets/deleteworks.png"
  4400. v-if="
  4401. w.userid == userid || tType == 1 || tType == 4
  4402. "
  4403. @click.stop="deleteWorks(w.wid)"
  4404. alt
  4405. />
  4406. </div>
  4407. <div class="comment" style="min-width: 200px">
  4408. <div class="worksName">
  4409. <div>{{ w.sName }}</div>
  4410. </div>
  4411. <div class="commentList">
  4412. <div class="commentList">
  4413. <div
  4414. class="commentImg"
  4415. @click="
  4416. isLikes(
  4417. w.wid,
  4418. userid,
  4419. 1,
  4420. null,
  4421. w.isLikes,
  4422. w.sName
  4423. )
  4424. "
  4425. >
  4426. <img
  4427. :src="w.isLikes == true ? likes : noLikes"
  4428. alt=""
  4429. />
  4430. </div>
  4431. <div>{{ w.likesCount }}</div>
  4432. </div>
  4433. <div class="commentList" style="margin-right: 15px">
  4434. <div
  4435. class="commentImg"
  4436. @click="commentOther(w, toolIndex, wIndex)"
  4437. >
  4438. <img
  4439. src="../../assets/icon/comment/comment.png"
  4440. alt=""
  4441. />
  4442. </div>
  4443. <div>{{ w.commentCount }}</div>
  4444. </div>
  4445. </div>
  4446. </div>
  4447. </div>
  4448. </div>
  4449. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4450. 未提交
  4451. </div>
  4452. <div
  4453. class="noWorksS"
  4454. v-if="noWorksS && noWorksS[toolIndex].length"
  4455. >
  4456. <div
  4457. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4458. :key="sIndex"
  4459. class="noWorksName"
  4460. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4461. >
  4462. <el-tooltip
  4463. effect="dark"
  4464. :content="s.student"
  4465. placement="top"
  4466. >
  4467. <span>{{ s.student }}</span>
  4468. </el-tooltip>
  4469. </div>
  4470. </div>
  4471. </div>
  4472. <div
  4473. v-if="
  4474. tType &&
  4475. ((tType == 2 && sIsOpen == true) ||
  4476. tType == 1 ||
  4477. tType == 4) &&
  4478. tool.tool.indexOf(57) != -1
  4479. "
  4480. class="worksBox"
  4481. >
  4482. <div
  4483. class="zuoyeYulan"
  4484. v-if="
  4485. worksStudent.length &&
  4486. worksStudent[toolIndex].length > 0
  4487. "
  4488. >
  4489. <div class="worksTop">
  4490. <div>作业预览</div>
  4491. <div
  4492. class="corOpen"
  4493. @click="contract(toolIndex)"
  4494. v-if="
  4495. isCloseList[toolIndex].isCloseBoolean &&
  4496. isCloseList[toolIndex].isClose == 0
  4497. "
  4498. >
  4499. 折叠
  4500. </div>
  4501. <div
  4502. class="corOpen"
  4503. @click="contract(toolIndex)"
  4504. v-if="isCloseList[toolIndex].isClose == 1"
  4505. >
  4506. 展开
  4507. </div>
  4508. </div>
  4509. </div>
  4510. <div
  4511. :id="'tool-' + toolIndex"
  4512. :style="{
  4513. height:
  4514. isCloseList[toolIndex].isClose == 1
  4515. ? retrnToolHeight('tool-' + toolIndex)
  4516. : 'auto',
  4517. overflow:
  4518. isCloseList[toolIndex].isClose == 1
  4519. ? 'hidden'
  4520. : 'unset'
  4521. }"
  4522. class="worksDetailBox"
  4523. v-if="
  4524. worksStudent.length &&
  4525. worksStudent[toolIndex].length > 0
  4526. "
  4527. >
  4528. <div
  4529. class="works"
  4530. style="
  4531. width: 200px;
  4532. height: 140px;
  4533. margin: 10px 10px 10px 0;
  4534. border-radius: 15px;
  4535. box-shadow: 0 0 6px 1px #dfdada;
  4536. "
  4537. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4538. :key="wIndex"
  4539. :class="w.type == 1 ? 'isTypeOne' : ''"
  4540. >
  4541. <div class="workImg">
  4542. <img
  4543. :src="word2"
  4544. @click="downloadFile(w.works)"
  4545. v-if="w.type == 12"
  4546. alt
  4547. />
  4548. <img
  4549. :src="word2"
  4550. @click="
  4551. openCocoPi(57, toolIndex, w.userid, w.sName)
  4552. "
  4553. v-else-if="w.type == 15"
  4554. alt
  4555. />
  4556. <div
  4557. class="answerScore"
  4558. v-if="w.score"
  4559. @click.stop="openScore(w)"
  4560. :class="{
  4561. rightW:
  4562. w.userid == userid ||
  4563. tType == 1 ||
  4564. tType == 4 ||
  4565. w.ateacher == userid
  4566. }"
  4567. >
  4568. {{ JSON.parse(w.score).wScore }}分
  4569. </div>
  4570. <div
  4571. class="answerScore"
  4572. @click.stop="openScore(w)"
  4573. v-else-if="
  4574. courseDetail.userid == userid &&
  4575. courseDetail.state != 6 &&
  4576. chapInfoList[courseType].chapterInfo[0]
  4577. .taskJson[taskCount].eList &&
  4578. chapInfoList[courseType].chapterInfo[0]
  4579. .taskJson[taskCount].eList.length
  4580. "
  4581. :class="{
  4582. rightW:
  4583. w.userid == userid ||
  4584. tType == 1 ||
  4585. tType == 4 ||
  4586. w.ateacher == userid
  4587. }"
  4588. >
  4589. 评分
  4590. </div>
  4591. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  4592. <div
  4593. v-else-if="
  4594. (courseDetail.userid == userid ||
  4595. (courseDetail.course_teacher &&
  4596. courseDetail.course_teacher.indexOf(userid) !=
  4597. -1) ||
  4598. (w.userid == userid && sIsOpen)) &&
  4599. courseDetail.state == 6 &&
  4600. ((chapInfoList[courseType].chapterInfo[0]
  4601. .taskJson[taskCount].eList &&
  4602. chapInfoList[courseType].chapterInfo[0]
  4603. .taskJson[taskCount].eList.length) ||
  4604. (tool.eList && tool.eList.length))
  4605. "
  4606. >
  4607. <el-popover
  4608. placement="top"
  4609. width="318"
  4610. :disabled="AIloading[toolIndex][wIndex].loading"
  4611. trigger="hover"
  4612. >
  4613. <markScore
  4614. :loading="AIloading[toolIndex][wIndex].loading"
  4615. :markScoreVisible="markScoreVisible"
  4616. :ref="`markSco${toolIndex}${wIndex}`"
  4617. @updateLoading="updateLoading"
  4618. @updateDocSco="updateDocSco"
  4619. @refreshOther="refreshOther"
  4620. @markScoreDig="markScoreDig"
  4621. :tool="tool"
  4622. :wIndex="wIndex"
  4623. :scoCon="w"
  4624. :toolIndex="toolIndex"
  4625. :key="refreshKey"
  4626. :stage="courseType"
  4627. :task="taskCount"
  4628. :scoTit="
  4629. chapInfoList[courseType].chapterInfo[0]
  4630. .taskJson[taskCount].eList
  4631. "
  4632. >
  4633. </markScore>
  4634. <div
  4635. class="answerScore"
  4636. @click="
  4637. markScoreDig2(
  4638. w.sName,
  4639. worksStudent,
  4640. w.userid,
  4641. toolIndex,
  4642. chapInfoList[courseType].chapterInfo[0]
  4643. .taskJson[taskCount].eList,
  4644. AIloading[toolIndex][wIndex].loading,
  4645. tool
  4646. )
  4647. "
  4648. slot="reference"
  4649. :class="{
  4650. rightW:
  4651. w.userid == userid ||
  4652. tType == 1 ||
  4653. tType == 4 ||
  4654. w.ateacher == userid
  4655. }"
  4656. >
  4657. <span v-if="AIloading[toolIndex][wIndex].sco">
  4658. {{
  4659. AIloading[toolIndex][wIndex].loading
  4660. ? "评分中"
  4661. : AIloading[toolIndex][wIndex].sco + "分"
  4662. }}
  4663. </span>
  4664. <span v-else>
  4665. {{
  4666. AIloading[toolIndex][wIndex].loading
  4667. ? "评分中"
  4668. : "评分"
  4669. }}
  4670. </span>
  4671. </div>
  4672. </el-popover>
  4673. </div>
  4674. <img
  4675. class="deleteImg"
  4676. src="../../assets/deleteworks.png"
  4677. v-if="
  4678. w.userid == userid || tType == 1 || tType == 4
  4679. "
  4680. @click.stop="deleteWorks(w.wid)"
  4681. alt
  4682. />
  4683. </div>
  4684. <div class="comment" style="min-width: 200px">
  4685. <div class="worksName">
  4686. <div>{{ w.sName }}</div>
  4687. </div>
  4688. <div class="commentList">
  4689. <div class="commentList">
  4690. <div
  4691. class="commentImg"
  4692. @click="
  4693. isLikes(
  4694. w.wid,
  4695. userid,
  4696. 1,
  4697. null,
  4698. w.isLikes,
  4699. w.sName
  4700. )
  4701. "
  4702. >
  4703. <img
  4704. :src="w.isLikes == true ? likes : noLikes"
  4705. alt=""
  4706. />
  4707. </div>
  4708. <div>{{ w.likesCount }}</div>
  4709. </div>
  4710. <div class="commentList" style="margin-right: 15px">
  4711. <div
  4712. class="commentImg"
  4713. @click="commentOther(w, toolIndex, wIndex)"
  4714. >
  4715. <img
  4716. src="../../assets/icon/comment/comment.png"
  4717. alt=""
  4718. />
  4719. </div>
  4720. <div>{{ w.commentCount }}</div>
  4721. </div>
  4722. </div>
  4723. </div>
  4724. </div>
  4725. </div>
  4726. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4727. 未提交
  4728. </div>
  4729. <div
  4730. class="noWorksS"
  4731. v-if="noWorksS && noWorksS[toolIndex].length"
  4732. >
  4733. <div
  4734. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4735. :key="sIndex"
  4736. class="noWorksName"
  4737. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4738. >
  4739. <el-tooltip
  4740. effect="dark"
  4741. :content="s.student"
  4742. placement="top"
  4743. >
  4744. <span>{{ s.student }}</span>
  4745. </el-tooltip>
  4746. </div>
  4747. </div>
  4748. </div>
  4749. <div
  4750. v-if="
  4751. tType &&
  4752. ((tType == 2 && sIsOpen == true) ||
  4753. tType == 1 ||
  4754. tType == 4) &&
  4755. tool.tool.indexOf(72) != -1
  4756. "
  4757. class="worksBox"
  4758. >
  4759. <div
  4760. class="zuoyeYulan"
  4761. v-if="
  4762. worksStudent.length &&
  4763. worksStudent[toolIndex].length > 0
  4764. "
  4765. >
  4766. <div class="worksTop">
  4767. <div>作业预览</div>
  4768. <div
  4769. class="corOpen"
  4770. @click="contract(toolIndex)"
  4771. v-if="
  4772. isCloseList[toolIndex].isCloseBoolean &&
  4773. isCloseList[toolIndex].isClose == 0
  4774. "
  4775. >
  4776. 折叠
  4777. </div>
  4778. <div
  4779. class="corOpen"
  4780. @click="contract(toolIndex)"
  4781. v-if="isCloseList[toolIndex].isClose == 1"
  4782. >
  4783. 展开
  4784. </div>
  4785. </div>
  4786. </div>
  4787. <div
  4788. :id="'tool-' + toolIndex"
  4789. :style="{
  4790. height:
  4791. isCloseList[toolIndex].isClose == 1
  4792. ? retrnToolHeight('tool-' + toolIndex)
  4793. : 'auto',
  4794. overflow:
  4795. isCloseList[toolIndex].isClose == 1
  4796. ? 'hidden'
  4797. : 'unset'
  4798. }"
  4799. class="worksDetailBox"
  4800. v-if="
  4801. worksStudent.length &&
  4802. worksStudent[toolIndex].length > 0
  4803. "
  4804. >
  4805. <div
  4806. class="works"
  4807. style="
  4808. width: 200px;
  4809. height: 140px;
  4810. margin: 10px 10px 10px 0;
  4811. border-radius: 15px;
  4812. box-shadow: 0 0 6px 1px #dfdada;
  4813. "
  4814. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4815. :key="wIndex"
  4816. :class="w.type == 1 ? 'isTypeOne' : ''"
  4817. >
  4818. <div class="workImg">
  4819. <!-- <img
  4820. :src="word2"
  4821. @click="downloadFile(w.works)"
  4822. v-if="w.type == 12"
  4823. alt
  4824. /> -->
  4825. <img
  4826. :src="word2"
  4827. @click="
  4828. openCocoFlow(w)
  4829. "
  4830. alt
  4831. />
  4832. <div
  4833. class="answerScore"
  4834. v-if="w.score"
  4835. @click.stop="openScore(w)"
  4836. :class="{
  4837. rightW:
  4838. w.userid == userid ||
  4839. tType == 1 ||
  4840. tType == 4 ||
  4841. w.ateacher == userid
  4842. }"
  4843. >
  4844. {{ JSON.parse(w.score).wScore }}分
  4845. </div>
  4846. <div
  4847. class="answerScore"
  4848. @click.stop="openScore(w)"
  4849. v-else-if="
  4850. courseDetail.userid == userid &&
  4851. courseDetail.state != 5 &&
  4852. chapInfoList[courseType].chapterInfo[0]
  4853. .taskJson[taskCount].eList &&
  4854. chapInfoList[courseType].chapterInfo[0]
  4855. .taskJson[taskCount].eList.length
  4856. "
  4857. :class="{
  4858. rightW:
  4859. w.userid == userid ||
  4860. tType == 1 ||
  4861. tType == 4 ||
  4862. w.ateacher == userid
  4863. }"
  4864. >
  4865. 评分
  4866. </div>
  4867. <img
  4868. class="deleteImg"
  4869. src="../../assets/deleteworks.png"
  4870. v-if="
  4871. w.userid == userid || tType == 1 || tType == 4
  4872. "
  4873. @click.stop="deleteWorks(w.wid)"
  4874. alt
  4875. />
  4876. </div>
  4877. <div class="comment" style="min-width: 200px">
  4878. <div class="worksName">
  4879. <div>{{ w.sName }}</div>
  4880. </div>
  4881. <div class="commentList">
  4882. <div class="commentList">
  4883. <div
  4884. class="commentImg"
  4885. @click="
  4886. isLikes(
  4887. w.wid,
  4888. userid,
  4889. 1,
  4890. null,
  4891. w.isLikes,
  4892. w.sName
  4893. )
  4894. "
  4895. >
  4896. <img
  4897. :src="w.isLikes == true ? likes : noLikes"
  4898. alt=""
  4899. />
  4900. </div>
  4901. <div>{{ w.likesCount }}</div>
  4902. </div>
  4903. <div class="commentList" style="margin-right: 15px">
  4904. <div
  4905. class="commentImg"
  4906. @click="commentOther(w, toolIndex, wIndex)"
  4907. >
  4908. <img
  4909. src="../../assets/icon/comment/comment.png"
  4910. alt=""
  4911. />
  4912. </div>
  4913. <div>{{ w.commentCount }}</div>
  4914. </div>
  4915. </div>
  4916. </div>
  4917. </div>
  4918. </div>
  4919. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4920. 未提交
  4921. </div>
  4922. <div
  4923. class="noWorksS"
  4924. v-if="noWorksS && noWorksS[toolIndex].length"
  4925. >
  4926. <div
  4927. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4928. :key="sIndex"
  4929. class="noWorksName"
  4930. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  4931. >
  4932. <el-tooltip
  4933. effect="dark"
  4934. :content="s.student"
  4935. placement="top"
  4936. >
  4937. <span>{{ s.student }}</span>
  4938. </el-tooltip>
  4939. </div>
  4940. </div>
  4941. </div>
  4942. <div
  4943. v-if="
  4944. tType &&
  4945. tType == 2 &&
  4946. !sIsOpen &&
  4947. tool.tool.indexOf(72) != -1
  4948. "
  4949. class="worksBox"
  4950. >
  4951. <div
  4952. class="zuoyeYulan"
  4953. v-if="workStudent[toolIndex].length > 0"
  4954. >
  4955. <span class="worksTitle">作业预览</span>
  4956. </div>
  4957. <div
  4958. class="worksDetailBox"
  4959. v-if="workStudent[toolIndex].length > 0"
  4960. >
  4961. <div
  4962. class="works"
  4963. style="
  4964. width: 200px;
  4965. height: 140px;
  4966. margin: 10px 10px 10px 0;
  4967. box-shadow: 0 0 6px 1px #dfdada;
  4968. "
  4969. v-for="(w, wIndex) in workStudent[toolIndex]"
  4970. :key="wIndex"
  4971. >
  4972. <div class="workImg">
  4973. <!-- <img
  4974. :src="word2"
  4975. @click="downloadFile(w.works)"
  4976. v-if="w.type == 12"
  4977. alt
  4978. /> -->
  4979. <img
  4980. :src="word2"
  4981. @click="
  4982. openCocoFlow(w)
  4983. "
  4984. alt
  4985. />
  4986. <div
  4987. class="answerScore"
  4988. v-if="w.score"
  4989. @click.stop="openScore(w)"
  4990. :class="{
  4991. rightW:
  4992. w.userid == userid || tType == 1 || tType == 4
  4993. }"
  4994. >
  4995. {{ JSON.parse(w.score).wScore }}分
  4996. </div>
  4997. <div
  4998. class="answerScore"
  4999. @click.stop="openScore(w)"
  5000. v-else-if="courseDetail.userid == userid"
  5001. :class="{
  5002. rightW:
  5003. w.userid == userid || tType == 1 || tType == 4
  5004. }"
  5005. >
  5006. 评分
  5007. </div>
  5008. <img
  5009. class="deleteImg"
  5010. src="../../assets/deleteworks.png"
  5011. v-if="
  5012. w.userid == userid || tType == 1 || tType == 4
  5013. "
  5014. @click.stop="deleteWorks(w.wid)"
  5015. alt
  5016. />
  5017. </div>
  5018. <div class="worksName">
  5019. <div>{{ w.sName }}</div>
  5020. </div>
  5021. </div>
  5022. </div>
  5023. </div>
  5024. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5025. <div
  5026. style="display: flex;justify-content: space-between;align-items: center;"
  5027. >
  5028. <div
  5029. class="zuoyeYulan"
  5030. v-if="
  5031. worksStudent.length &&
  5032. worksStudent[toolIndex].length > 0
  5033. "
  5034. >
  5035. <span class="worksTitle">作业预览</span>
  5036. <div
  5037. class="corOpen"
  5038. @click="contract(toolIndex)"
  5039. v-if="
  5040. isCloseList[toolIndex].isCloseBoolean &&
  5041. isCloseList[toolIndex].isClose == 0
  5042. "
  5043. >
  5044. 折叠
  5045. </div>
  5046. <div
  5047. class="corOpen"
  5048. @click="contract(toolIndex)"
  5049. v-if="isCloseList[toolIndex].isClose == 1"
  5050. >
  5051. 展开
  5052. </div>
  5053. </div>
  5054. <div
  5055. style="display: flex;"
  5056. v-if="
  5057. (courseDetail.userid == userid ||
  5058. (courseDetail.course_teacher &&
  5059. courseDetail.course_teacher.indexOf(userid) !=
  5060. -1)) &&
  5061. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5062. taskCount
  5063. ].eList &&
  5064. chapInfoList[courseType].chapterInfo[0].taskJson[
  5065. taskCount
  5066. ].eList.length) ||
  5067. (tool.eList && tool.eList.length)) &&
  5068. courseDetail.state == 6
  5069. "
  5070. >
  5071. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length && courseDetail.state == 6 "> -->
  5072. <div
  5073. style="margin-right:10px"
  5074. class="ScoreBtn"
  5075. @click="
  5076. resetLoopEva(
  5077. worksStudent[toolIndex],
  5078. chapInfoList[courseType].chapterInfo[0].taskJson[
  5079. taskCount
  5080. ].eList,
  5081. courseType,
  5082. taskCount,
  5083. toolIndex,
  5084. tool.toolDetail,
  5085. worksStudent
  5086. )
  5087. "
  5088. >
  5089. 一键重置
  5090. </div>
  5091. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5092. <img
  5093. src="../../assets/icon/newIcons/rootImg.png"
  5094. alt=""
  5095. />
  5096. AI评分
  5097. </div>
  5098. <div
  5099. class="ScoreBtn"
  5100. v-else-if="!loopLoading[toolIndex].loading"
  5101. @click="
  5102. loopEva(
  5103. worksStudent[toolIndex],
  5104. chapInfoList[courseType].chapterInfo[0].taskJson[
  5105. taskCount
  5106. ].eList,
  5107. courseType,
  5108. taskCount,
  5109. toolIndex,
  5110. tool.toolDetail,
  5111. chapInfoList[courseType].chapterInfo[0].taskJson[
  5112. taskCount
  5113. ].taskDetail,
  5114. tool
  5115. )
  5116. "
  5117. >
  5118. <img
  5119. src="../../assets/icon/newIcons/rootImg.png"
  5120. alt=""
  5121. />
  5122. AI评分
  5123. </div>
  5124. <div class="ScoreBtn" v-else>
  5125. <img
  5126. src="../../assets/icon/newIcons/rootImg.png"
  5127. alt=""
  5128. />
  5129. 正在评分
  5130. </div>
  5131. </div>
  5132. </div>
  5133. <div
  5134. :id="'tool-' + toolIndex"
  5135. :style="{
  5136. height:
  5137. isCloseList[toolIndex].isClose == 1
  5138. ? retrnToolHeight('tool-' + toolIndex)
  5139. : 'auto',
  5140. overflow:
  5141. isCloseList[toolIndex].isClose == 1
  5142. ? 'hidden'
  5143. : 'unset'
  5144. }"
  5145. class="worksDetailBox"
  5146. v-if="
  5147. worksStudent.length &&
  5148. worksStudent[toolIndex].length > 0
  5149. "
  5150. >
  5151. <div
  5152. class="works"
  5153. style="
  5154. width: 200px;
  5155. height: 140px;
  5156. margin: 10px 10px 10px 0;
  5157. border-radius: 15px;
  5158. box-shadow: 0 0 6px 1px #dfdada;
  5159. "
  5160. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5161. :key="wIndex"
  5162. :class="w.type == 1 ? 'isTypeOne' : ''"
  5163. >
  5164. <div class="workImg" v-if="w.type == 0">
  5165. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5166. <img
  5167. :src="w.works"
  5168. @click="previewImg(w.works, w)"
  5169. alt
  5170. />
  5171. <div
  5172. class="answerScore"
  5173. v-if="w.score"
  5174. @click.stop="openScore(w)"
  5175. :class="{
  5176. rightW:
  5177. w.userid == userid ||
  5178. tType == 1 ||
  5179. tType == 4 ||
  5180. w.ateacher == userid
  5181. }"
  5182. >
  5183. {{ JSON.parse(w.score).wScore }}分
  5184. </div>
  5185. <div
  5186. class="answerScore"
  5187. @click.stop="openScore(w)"
  5188. v-else-if="
  5189. courseDetail.userid == userid &&
  5190. courseDetail.state != 6 &&
  5191. chapInfoList[courseType].chapterInfo[0]
  5192. .taskJson[taskCount].eList &&
  5193. chapInfoList[courseType].chapterInfo[0]
  5194. .taskJson[taskCount].eList.length
  5195. "
  5196. :class="{
  5197. rightW:
  5198. w.userid == userid ||
  5199. tType == 1 ||
  5200. tType == 4 ||
  5201. w.ateacher == userid
  5202. }"
  5203. >
  5204. 评分
  5205. </div>
  5206. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5207. <div
  5208. v-else-if="
  5209. (courseDetail.userid == userid ||
  5210. (courseDetail.course_teacher &&
  5211. courseDetail.course_teacher.indexOf(userid) !=
  5212. -1) ||
  5213. (w.userid == userid && sIsOpen)) &&
  5214. courseDetail.state == 6 &&
  5215. ((chapInfoList[courseType].chapterInfo[0]
  5216. .taskJson[taskCount].eList &&
  5217. chapInfoList[courseType].chapterInfo[0]
  5218. .taskJson[taskCount].eList.length) ||
  5219. (tool.eList && tool.eList.length))
  5220. "
  5221. >
  5222. <el-popover
  5223. placement="top"
  5224. width="318"
  5225. :disabled="AIloading[toolIndex][wIndex].loading"
  5226. trigger="hover"
  5227. >
  5228. <markScore
  5229. :loading="AIloading[toolIndex][wIndex].loading"
  5230. :markScoreVisible="markScoreVisible"
  5231. :ref="`markSco${toolIndex}${wIndex}`"
  5232. @updateLoading="updateLoading"
  5233. @updateDocSco="updateDocSco"
  5234. @refreshOther="refreshOther"
  5235. @markScoreDig="markScoreDig"
  5236. :tool="tool"
  5237. :wIndex="wIndex"
  5238. :scoCon="w"
  5239. :toolIndex="toolIndex"
  5240. :key="refreshKey"
  5241. :stage="courseType"
  5242. :task="taskCount"
  5243. :scoTit="
  5244. chapInfoList[courseType].chapterInfo[0]
  5245. .taskJson[taskCount].eList
  5246. "
  5247. >
  5248. </markScore>
  5249. <div
  5250. class="answerScore"
  5251. @click="
  5252. markScoreDig2(
  5253. w.sName,
  5254. worksStudent,
  5255. w.userid,
  5256. toolIndex,
  5257. chapInfoList[courseType].chapterInfo[0]
  5258. .taskJson[taskCount].eList,
  5259. AIloading[toolIndex][wIndex].loading,
  5260. tool
  5261. )
  5262. "
  5263. slot="reference"
  5264. :class="{
  5265. rightW:
  5266. w.userid == userid ||
  5267. tType == 1 ||
  5268. tType == 4 ||
  5269. w.ateacher == userid
  5270. }"
  5271. >
  5272. <span v-if="AIloading[toolIndex][wIndex].sco">
  5273. {{
  5274. AIloading[toolIndex][wIndex].loading
  5275. ? "评分中"
  5276. : AIloading[toolIndex][wIndex].sco + "分"
  5277. }}
  5278. </span>
  5279. <span v-else>
  5280. {{
  5281. AIloading[toolIndex][wIndex].loading
  5282. ? "评分中"
  5283. : "评分"
  5284. }}
  5285. </span>
  5286. </div>
  5287. </el-popover>
  5288. </div>
  5289. <img
  5290. class="deleteImg"
  5291. src="../../assets/deleteworks.png"
  5292. v-if="
  5293. w.userid == userid || tType == 1 || tType == 4
  5294. "
  5295. @click.stop="deleteWorks(w.wid)"
  5296. alt
  5297. />
  5298. </div>
  5299. <div
  5300. class="workImg"
  5301. style="cursor: pointer"
  5302. v-if="w.type == 1"
  5303. >
  5304. <img :src="word" @click="openFile(w.works)" alt />
  5305. <!-- @click="openFile(w.works)" -->
  5306. <div
  5307. class="answerScore"
  5308. v-if="w.score"
  5309. @click.stop="openScore(w)"
  5310. :class="{
  5311. rightW:
  5312. w.userid == userid ||
  5313. tType == 1 ||
  5314. tType == 4 ||
  5315. w.ateacher == userid
  5316. }"
  5317. >
  5318. {{ JSON.parse(w.score).wScore }}分
  5319. </div>
  5320. <div
  5321. class="answerScore"
  5322. @click.stop="openScore(w)"
  5323. v-else-if="
  5324. courseDetail.userid == userid &&
  5325. courseDetail.state != 6 &&
  5326. chapInfoList[courseType].chapterInfo[0]
  5327. .taskJson[taskCount].eList &&
  5328. chapInfoList[courseType].chapterInfo[0]
  5329. .taskJson[taskCount].eList.length
  5330. "
  5331. :class="{
  5332. rightW:
  5333. w.userid == userid ||
  5334. tType == 1 ||
  5335. tType == 4 ||
  5336. w.ateacher == userid
  5337. }"
  5338. >
  5339. 评分
  5340. </div>
  5341. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5342. <div
  5343. v-else-if="
  5344. (courseDetail.userid == userid ||
  5345. (courseDetail.course_teacher &&
  5346. courseDetail.course_teacher.indexOf(userid) !=
  5347. -1) ||
  5348. (w.userid == userid && sIsOpen)) &&
  5349. courseDetail.state == 6 &&
  5350. ((chapInfoList[courseType].chapterInfo[0]
  5351. .taskJson[taskCount].eList &&
  5352. chapInfoList[courseType].chapterInfo[0]
  5353. .taskJson[taskCount].eList.length) ||
  5354. (tool.eList && tool.eList.length))
  5355. "
  5356. >
  5357. <el-popover
  5358. placement="top"
  5359. width="318"
  5360. :disabled="AIloading[toolIndex][wIndex].loading"
  5361. trigger="hover"
  5362. >
  5363. <markScore
  5364. :loading="AIloading[toolIndex][wIndex].loading"
  5365. :markScoreVisible="markScoreVisible"
  5366. :ref="`markSco${toolIndex}${wIndex}`"
  5367. @updateLoading="updateLoading"
  5368. @updateDocSco="updateDocSco"
  5369. @refreshOther="refreshOther"
  5370. @markScoreDig="markScoreDig"
  5371. :tool="tool"
  5372. :wIndex="wIndex"
  5373. :scoCon="w"
  5374. :toolIndex="toolIndex"
  5375. :key="refreshKey"
  5376. :stage="courseType"
  5377. :task="taskCount"
  5378. :scoTit="
  5379. chapInfoList[courseType].chapterInfo[0]
  5380. .taskJson[taskCount].eList
  5381. "
  5382. >
  5383. </markScore>
  5384. <div
  5385. class="answerScore"
  5386. @click="
  5387. markScoreDig2(
  5388. w.sName,
  5389. worksStudent,
  5390. w.userid,
  5391. toolIndex,
  5392. chapInfoList[courseType].chapterInfo[0]
  5393. .taskJson[taskCount].eList,
  5394. AIloading[toolIndex][wIndex].loading,
  5395. tool
  5396. )
  5397. "
  5398. slot="reference"
  5399. :class="{
  5400. rightW:
  5401. w.userid == userid ||
  5402. tType == 1 ||
  5403. tType == 4 ||
  5404. w.ateacher == userid
  5405. }"
  5406. >
  5407. <span v-if="AIloading[toolIndex][wIndex].sco">
  5408. {{
  5409. AIloading[toolIndex][wIndex].loading
  5410. ? "评分中"
  5411. : AIloading[toolIndex][wIndex].sco + "分"
  5412. }}
  5413. </span>
  5414. <span v-else>
  5415. {{
  5416. AIloading[toolIndex][wIndex].loading
  5417. ? "评分中"
  5418. : "评分"
  5419. }}
  5420. </span>
  5421. </div>
  5422. </el-popover>
  5423. </div>
  5424. <img
  5425. class="deleteImg"
  5426. src="../../assets/deleteworks.png"
  5427. v-if="
  5428. w.userid == userid || tType == 1 || tType == 4
  5429. "
  5430. @click.stop="deleteWorks(w.wid)"
  5431. alt
  5432. />
  5433. </div>
  5434. <div class="workImg" v-if="w.type == 3">
  5435. <img
  5436. style="cursor: pointer"
  5437. :src="video"
  5438. @click="openVideo(w)"
  5439. alt
  5440. />
  5441. <!-- @click="openVideo(w.works)" -->
  5442. <div
  5443. class="answerScore"
  5444. v-if="w.score"
  5445. @click.stop="openScore(w)"
  5446. :class="{
  5447. rightW:
  5448. w.userid == userid ||
  5449. tType == 1 ||
  5450. tType == 4 ||
  5451. w.ateacher == userid
  5452. }"
  5453. >
  5454. {{ JSON.parse(w.score).wScore }}分
  5455. </div>
  5456. <div
  5457. class="answerScore"
  5458. @click.stop="openScore(w)"
  5459. v-else-if="
  5460. courseDetail.userid == userid &&
  5461. courseDetail.state != 6 &&
  5462. chapInfoList[courseType].chapterInfo[0]
  5463. .taskJson[taskCount].eList &&
  5464. chapInfoList[courseType].chapterInfo[0]
  5465. .taskJson[taskCount].eList.length
  5466. "
  5467. :class="{
  5468. rightW:
  5469. w.userid == userid ||
  5470. tType == 1 ||
  5471. tType == 4 ||
  5472. w.ateacher == userid
  5473. }"
  5474. >
  5475. 评分
  5476. </div>
  5477. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  5478. <div
  5479. v-else-if="
  5480. (courseDetail.userid == userid ||
  5481. (courseDetail.course_teacher &&
  5482. courseDetail.course_teacher.indexOf(userid) !=
  5483. -1) ||
  5484. (w.userid == userid && sIsOpen)) &&
  5485. courseDetail.state == 6 &&
  5486. ((chapInfoList[courseType].chapterInfo[0]
  5487. .taskJson[taskCount].eList &&
  5488. chapInfoList[courseType].chapterInfo[0]
  5489. .taskJson[taskCount].eList.length) ||
  5490. (tool.eList && tool.eList.length))
  5491. "
  5492. >
  5493. <el-popover
  5494. placement="top"
  5495. width="318"
  5496. :disabled="AIloading[toolIndex][wIndex].loading"
  5497. trigger="hover"
  5498. >
  5499. <markScore
  5500. :loading="AIloading[toolIndex][wIndex].loading"
  5501. :markScoreVisible="markScoreVisible"
  5502. :ref="`markSco${toolIndex}${wIndex}`"
  5503. @updateLoading="updateLoading"
  5504. @updateDocSco="updateDocSco"
  5505. @refreshOther="refreshOther"
  5506. @markScoreDig="markScoreDig"
  5507. :tool="tool"
  5508. :wIndex="wIndex"
  5509. :scoCon="w"
  5510. :toolIndex="toolIndex"
  5511. :key="refreshKey"
  5512. :stage="courseType"
  5513. :task="taskCount"
  5514. :scoTit="
  5515. chapInfoList[courseType].chapterInfo[0]
  5516. .taskJson[taskCount].eList
  5517. "
  5518. >
  5519. </markScore>
  5520. <div
  5521. class="answerScore"
  5522. @click="
  5523. markScoreDig2(
  5524. w.sName,
  5525. worksStudent,
  5526. w.userid,
  5527. toolIndex,
  5528. chapInfoList[courseType].chapterInfo[0]
  5529. .taskJson[taskCount].eList,
  5530. AIloading[toolIndex][wIndex].loading,
  5531. tool
  5532. )
  5533. "
  5534. slot="reference"
  5535. :class="{
  5536. rightW:
  5537. w.userid == userid ||
  5538. tType == 1 ||
  5539. tType == 4 ||
  5540. w.ateacher == userid
  5541. }"
  5542. >
  5543. <span v-if="AIloading[toolIndex][wIndex].sco">
  5544. {{
  5545. AIloading[toolIndex][wIndex].loading
  5546. ? "评分中"
  5547. : AIloading[toolIndex][wIndex].sco + "分"
  5548. }}
  5549. </span>
  5550. <span v-else>
  5551. {{
  5552. AIloading[toolIndex][wIndex].loading
  5553. ? "评分中"
  5554. : "评分"
  5555. }}
  5556. </span>
  5557. </div>
  5558. </el-popover>
  5559. </div>
  5560. <img
  5561. class="deleteImg"
  5562. src="../../assets/deleteworks.png"
  5563. v-if="
  5564. w.userid == userid || tType == 1 || tType == 4
  5565. "
  5566. @click.stop="deleteWorks(w.wid)"
  5567. alt
  5568. />
  5569. </div>
  5570. <div class="comment" style="min-width: 200px">
  5571. <div class="worksName">
  5572. <div
  5573. style="cursor: pointer"
  5574. @click="
  5575. openSname(w.sName, w.wid, toolIndex, w.userid)
  5576. "
  5577. >
  5578. {{ w.sName }}
  5579. </div>
  5580. </div>
  5581. <div class="commentList">
  5582. <div class="commentList">
  5583. <div
  5584. class="commentImg"
  5585. @click="
  5586. isLikes(
  5587. w.wid,
  5588. userid,
  5589. 1,
  5590. null,
  5591. w.isLikes,
  5592. w.sName
  5593. )
  5594. "
  5595. >
  5596. <img
  5597. :src="w.isLikes == true ? likes : noLikes"
  5598. alt=""
  5599. />
  5600. </div>
  5601. <div>{{ w.likesCount }}</div>
  5602. </div>
  5603. <div class="commentList" style="margin-right: 15px">
  5604. <div
  5605. class="commentImg"
  5606. @click="commentOther(w, toolIndex, wIndex)"
  5607. >
  5608. <img
  5609. src="../../assets/icon/comment/comment.png"
  5610. alt=""
  5611. />
  5612. </div>
  5613. <div>{{ w.commentCount }}</div>
  5614. </div>
  5615. </div>
  5616. </div>
  5617. </div>
  5618. </div>
  5619. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5620. 未提交
  5621. </div>
  5622. <div
  5623. class="noWorksS"
  5624. v-if="noWorksS && noWorksS[toolIndex].length"
  5625. >
  5626. <div
  5627. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5628. :key="sIndex"
  5629. class="noWorksName"
  5630. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5631. >
  5632. <el-tooltip
  5633. effect="dark"
  5634. :content="s.student"
  5635. placement="top"
  5636. >
  5637. <span>{{ s.student }}</span>
  5638. </el-tooltip>
  5639. </div>
  5640. </div>
  5641. </div>
  5642. <div
  5643. v-if="
  5644. tType &&
  5645. ((tType == 2 && sIsOpen == true) ||
  5646. tType == 1 ||
  5647. tType == 4) &&
  5648. tool.tool.indexOf(4) != -1 &&
  5649. (tool.askJson[0].answer ||
  5650. tool.askJson[0].answer === 0) &&
  5651. checkJson[toolIndex].length
  5652. "
  5653. class="xuan_right_box"
  5654. >
  5655. <div
  5656. class="tool_right_box"
  5657. v-for="(item, index) in tool.askJson"
  5658. :key="index"
  5659. >
  5660. <div style="width: calc(100% - 30px);">
  5661. <el-tooltip
  5662. effect="light"
  5663. :content="index + 1 + '、' + item.askstitle"
  5664. placement="top"
  5665. popper-class="text_tooltip"
  5666. >
  5667. <div
  5668. style="
  5669. width: calc(100% - 130px);
  5670. display: block;
  5671. white-space: nowrap;
  5672. overflow: hidden;
  5673. text-overflow: ellipsis;
  5674. word-break: break-word;
  5675. cursor: pointer;
  5676. "
  5677. >
  5678. {{ index + 1 + "、" + item.askstitle }}
  5679. </div>
  5680. </el-tooltip>
  5681. </div>
  5682. <div class="right_box_xuan">
  5683. <span>正确率</span>
  5684. <span>{{
  5685. (checkJson[toolIndex][index].right
  5686. ? checkJson[toolIndex][index].right
  5687. : 0) + "%"
  5688. }}</span>
  5689. </div>
  5690. </div>
  5691. </div>
  5692. <div
  5693. class="xuan_right_box"
  5694. style="background: unset; padding: 0 10px"
  5695. v-if="
  5696. tType &&
  5697. ((tType == 2 && sIsOpen == true) ||
  5698. tType == 1 ||
  5699. tType == 4) &&
  5700. tool.tool.indexOf(4) != -1
  5701. "
  5702. >
  5703. <AskStatic
  5704. v-if="
  5705. worksStudent.length &&
  5706. worksStudent[toolIndex].length > 0
  5707. "
  5708. :askJSON="tool"
  5709. :checkJson="checkJson[toolIndex]"
  5710. ></AskStatic>
  5711. </div>
  5712. <div
  5713. v-if="
  5714. tType &&
  5715. ((tType == 2 && sIsOpen == true) ||
  5716. tType == 1 ||
  5717. tType == 4) &&
  5718. tool.tool.indexOf(4) != -1
  5719. "
  5720. class="worksBox"
  5721. >
  5722. <div
  5723. class="zuoyeYulan"
  5724. v-if="
  5725. worksStudent.length &&
  5726. worksStudent[toolIndex].length > 0
  5727. "
  5728. >
  5729. <div class="worksTop">
  5730. <div>作业预览</div>
  5731. <div
  5732. class="corOpen"
  5733. @click="contract(toolIndex)"
  5734. v-if="
  5735. isCloseList[toolIndex].isCloseBoolean &&
  5736. isCloseList[toolIndex].isClose == 0
  5737. "
  5738. >
  5739. 折叠
  5740. </div>
  5741. <div
  5742. class="corOpen"
  5743. @click="contract(toolIndex)"
  5744. v-if="isCloseList[toolIndex].isClose == 1"
  5745. >
  5746. 展开
  5747. </div>
  5748. </div>
  5749. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5750. </div>
  5751. <div>
  5752. <div
  5753. :id="'tool-' + toolIndex"
  5754. :style="{
  5755. height:
  5756. isCloseList[toolIndex].isClose == 1
  5757. ? retrnToolHeight('tool-' + toolIndex)
  5758. : 'auto',
  5759. overflow:
  5760. isCloseList[toolIndex].isClose == 1
  5761. ? 'hidden'
  5762. : 'unset'
  5763. }"
  5764. class="worksDetailBox"
  5765. v-if="
  5766. worksStudent.length &&
  5767. worksStudent[toolIndex].length > 0
  5768. "
  5769. >
  5770. <div
  5771. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5772. :key="wIndex"
  5773. class="isWorksName2"
  5774. @click="
  5775. openTools(4, toolIndex, taskCount, w.works, w.sName)
  5776. "
  5777. >
  5778. {{ w.sName }}
  5779. <img
  5780. class="deleteImg deleteImg2"
  5781. src="../../assets/deleteworks.png"
  5782. v-if="
  5783. w.userid == userid || tType == 1 || tType == 4
  5784. "
  5785. @click.stop="deleteWorks(w.wid)"
  5786. alt
  5787. />
  5788. </div>
  5789. <!-- <div class="works" style="
  5790. width: 200px;
  5791. height: 140px;
  5792. border-radius: 10px;
  5793. box-shadow: 0 0 6px 1px #dfdada;
  5794. overflow: hidden;
  5795. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  5796. <div class="workImg">
  5797. <img src="../../assets/icon/works/noImg.png" @click="
  5798. openTools(
  5799. 4,
  5800. toolIndex,
  5801. taskCount,
  5802. w.works,
  5803. w.sName
  5804. )
  5805. " alt />
  5806. </div>
  5807. <div class="worksName">
  5808. <div>{{ w.sName }}</div>
  5809. <div>{{ w.time }}</div>
  5810. </div>
  5811. </div> -->
  5812. </div>
  5813. </div>
  5814. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5815. 未提交
  5816. </div>
  5817. <div
  5818. class="noWorksS"
  5819. v-if="noWorksS && noWorksS[toolIndex].length"
  5820. >
  5821. <div
  5822. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5823. :key="sIndex"
  5824. class="noWorksName"
  5825. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  5826. >
  5827. <el-tooltip
  5828. effect="dark"
  5829. :content="s.student"
  5830. placement="top"
  5831. >
  5832. <span>{{ s.student }}</span>
  5833. </el-tooltip>
  5834. </div>
  5835. </div>
  5836. </div>
  5837. <div
  5838. v-if="
  5839. tType &&
  5840. ((tType == 2 && sIsOpen == true) ||
  5841. tType == 1 ||
  5842. tType == 4) &&
  5843. tool.tool.indexOf(45) != -1 &&
  5844. (tool.testJson.testJson[0].answer ||
  5845. tool.testJson.testJson[0].answer === 0) &&
  5846. checkJson[toolIndex].length
  5847. "
  5848. class="xuan_right_box"
  5849. >
  5850. <div
  5851. class="tool_right_box"
  5852. v-for="(item, index) in tool.testJson.testJson"
  5853. :key="index"
  5854. >
  5855. <div class="right_box_xuan" style="margin-right: 10px">
  5856. <span>正确率</span>
  5857. <span>{{
  5858. (checkJson[toolIndex][index].right
  5859. ? checkJson[toolIndex][index].right
  5860. : 0) + "%"
  5861. }}</span>
  5862. </div>
  5863. <div style="width: calc(100% - 30px);">
  5864. <el-tooltip
  5865. effect="light"
  5866. :content="index + 1 + '、' + item.teststitle"
  5867. placement="top"
  5868. popper-class="text_tooltip"
  5869. >
  5870. <div
  5871. style="
  5872. width: calc(100% - 130px);
  5873. display: block;
  5874. white-space: nowrap;
  5875. overflow: hidden;
  5876. text-overflow: ellipsis;
  5877. word-break: break-word;
  5878. cursor: pointer;
  5879. "
  5880. >
  5881. {{ index + 1 + "、" + item.teststitle }}
  5882. </div>
  5883. </el-tooltip>
  5884. </div>
  5885. </div>
  5886. </div>
  5887. <div
  5888. class="xuan_right_box"
  5889. style="background: unset; padding: 0 10px; width: 91.5%"
  5890. v-if="
  5891. tType &&
  5892. ((tType == 2 && sIsOpen == true) ||
  5893. tType == 1 ||
  5894. tType == 4) &&
  5895. tool.tool.indexOf(45) != -1
  5896. "
  5897. >
  5898. <AskStatic2
  5899. v-if="
  5900. worksStudent.length &&
  5901. worksStudent[toolIndex].length > 0
  5902. "
  5903. :askJSON="tool"
  5904. :checkJson="checkJson[toolIndex]"
  5905. ></AskStatic2>
  5906. </div>
  5907. <div
  5908. v-if="
  5909. tType &&
  5910. ((tType == 2 && sIsOpen == true) ||
  5911. tType == 1 ||
  5912. tType == 4) &&
  5913. tool.tool.indexOf(45) != -1
  5914. "
  5915. class="worksBox"
  5916. >
  5917. <div
  5918. class="zuoyeYulan"
  5919. v-if="
  5920. worksStudent.length &&
  5921. worksStudent[toolIndex].length > 0
  5922. "
  5923. >
  5924. <div class="worksTop">
  5925. <div>作业预览</div>
  5926. <div
  5927. class="corOpen"
  5928. @click="contract(toolIndex)"
  5929. v-if="
  5930. isCloseList[toolIndex].isCloseBoolean &&
  5931. isCloseList[toolIndex].isClose == 0
  5932. "
  5933. >
  5934. 折叠
  5935. </div>
  5936. <div
  5937. class="corOpen"
  5938. @click="contract(toolIndex)"
  5939. v-if="isCloseList[toolIndex].isClose == 1"
  5940. >
  5941. 展开
  5942. </div>
  5943. </div>
  5944. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  5945. </div>
  5946. <div>
  5947. <div
  5948. :id="'tool-' + toolIndex"
  5949. :style="{
  5950. height:
  5951. isCloseList[toolIndex].isClose == 1
  5952. ? retrnToolHeight('tool-' + toolIndex)
  5953. : 'auto',
  5954. overflow:
  5955. isCloseList[toolIndex].isClose == 1
  5956. ? 'hidden'
  5957. : 'unset'
  5958. }"
  5959. class="worksDetailBox"
  5960. v-if="
  5961. worksStudent.length &&
  5962. worksStudent[toolIndex].length > 0
  5963. "
  5964. >
  5965. <div
  5966. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5967. :key="wIndex"
  5968. class="isWorksName2"
  5969. @click="
  5970. openTools(
  5971. 45,
  5972. toolIndex,
  5973. taskCount,
  5974. w.works,
  5975. w.sName
  5976. )
  5977. "
  5978. >
  5979. {{ w.sName }}
  5980. <img
  5981. class="deleteImg deleteImg2"
  5982. src="../../assets/deleteworks.png"
  5983. v-if="
  5984. w.userid == userid || tType == 1 || tType == 4
  5985. "
  5986. @click.stop="deleteWorks(w.wid)"
  5987. alt
  5988. />
  5989. </div>
  5990. </div>
  5991. </div>
  5992. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5993. 未提交
  5994. </div>
  5995. <div
  5996. class="noWorksS"
  5997. v-if="noWorksS && noWorksS[toolIndex].length"
  5998. >
  5999. <div
  6000. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6001. :key="sIndex"
  6002. class="noWorksName"
  6003. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6004. >
  6005. <el-tooltip
  6006. effect="dark"
  6007. :content="s.student"
  6008. placement="top"
  6009. >
  6010. <span>{{ s.student }}</span>
  6011. </el-tooltip>
  6012. </div>
  6013. </div>
  6014. </div>
  6015. <div
  6016. v-if="
  6017. tType &&
  6018. ((tType == 2 && sIsOpen == true) ||
  6019. tType == 1 ||
  6020. tType == 4) &&
  6021. tool.tool.indexOf(69) != -1
  6022. "
  6023. class="worksBox"
  6024. >
  6025. <div
  6026. class="zuoyeYulan"
  6027. v-if="
  6028. worksStudent.length &&
  6029. worksStudent[toolIndex].length > 0
  6030. "
  6031. >
  6032. <div class="worksTop">
  6033. <div>作业预览</div>
  6034. <div
  6035. class="corOpen"
  6036. @click="contract(toolIndex)"
  6037. v-if="
  6038. isCloseList[toolIndex].isCloseBoolean &&
  6039. isCloseList[toolIndex].isClose == 0
  6040. "
  6041. >
  6042. 折叠
  6043. </div>
  6044. <div
  6045. class="corOpen"
  6046. @click="contract(toolIndex)"
  6047. v-if="isCloseList[toolIndex].isClose == 1"
  6048. >
  6049. 展开
  6050. </div>
  6051. </div>
  6052. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6053. </div>
  6054. <div>
  6055. <div
  6056. :id="'tool-' + toolIndex"
  6057. :style="{
  6058. height:
  6059. isCloseList[toolIndex].isClose == 1
  6060. ? retrnToolHeight('tool-' + toolIndex)
  6061. : 'auto',
  6062. overflow:
  6063. isCloseList[toolIndex].isClose == 1
  6064. ? 'hidden'
  6065. : 'unset'
  6066. }"
  6067. class="worksDetailBox"
  6068. v-if="
  6069. worksStudent.length &&
  6070. worksStudent[toolIndex].length > 0
  6071. "
  6072. >
  6073. <div
  6074. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6075. :key="wIndex"
  6076. class="isWorksName2"
  6077. style="width: 160px;height: 65px;line-height: 65px;"
  6078. @click="
  6079. openTools(
  6080. 69,
  6081. toolIndex,
  6082. taskCount,
  6083. w.works,
  6084. w.sName,
  6085. w.wid
  6086. )
  6087. "
  6088. >
  6089. {{ w.sName }}
  6090. <img
  6091. class="deleteImg1"
  6092. src="../../assets/evaEnglish.png"
  6093. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6094. alt
  6095. v-if="
  6096. (courseDetail &&
  6097. (courseDetail.userid == userid ||
  6098. (courseDetail.course_teacher &&
  6099. courseDetail.course_teacher.indexOf(
  6100. userid
  6101. ) != -1))) ||
  6102. w.aiCode || w.teacherCode
  6103. "
  6104. />
  6105. <img
  6106. class="deleteImg deleteImg2"
  6107. src="../../assets/deleteworks.png"
  6108. v-if="
  6109. w.userid == userid || tType == 1 || tType == 4
  6110. "
  6111. @click.stop="deleteWorks(w.wid)"
  6112. alt
  6113. />
  6114. </div>
  6115. </div>
  6116. </div>
  6117. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6118. 未提交
  6119. </div>
  6120. <div
  6121. class="noWorksS"
  6122. v-if="noWorksS && noWorksS[toolIndex].length"
  6123. >
  6124. <div
  6125. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6126. :key="sIndex"
  6127. class="noWorksName"
  6128. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6129. >
  6130. <el-tooltip
  6131. effect="dark"
  6132. :content="s.student"
  6133. placement="top"
  6134. >
  6135. <span>{{ s.student }}</span>
  6136. </el-tooltip>
  6137. </div>
  6138. </div>
  6139. </div>
  6140. <div
  6141. v-if="
  6142. tType &&
  6143. ((tType == 2 && sIsOpen == true) ||
  6144. tType == 1 ||
  6145. tType == 4) &&
  6146. tool.tool.indexOf(15) != -1
  6147. "
  6148. class="worksBox"
  6149. >
  6150. <div
  6151. class="zuoyeYulan"
  6152. v-if="
  6153. (worksStudent.length &&
  6154. worksStudent[toolIndex].length > 0) ||
  6155. (courseGroup.group && courseGroup.group.length)
  6156. "
  6157. >
  6158. <div class="worksTop">
  6159. <div>作业预览</div>
  6160. <div
  6161. class="corOpen"
  6162. @click="contract(toolIndex)"
  6163. v-if="
  6164. isCloseList[toolIndex].isCloseBoolean &&
  6165. isCloseList[toolIndex].isClose == 0
  6166. "
  6167. >
  6168. 折叠
  6169. </div>
  6170. <div
  6171. class="corOpen"
  6172. @click="contract(toolIndex)"
  6173. v-if="isCloseList[toolIndex].isClose == 1"
  6174. >
  6175. 展开
  6176. </div>
  6177. </div>
  6178. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6179. </div>
  6180. <div
  6181. class="group_workBox"
  6182. v-for="(g, gindex) in courseGroup.group"
  6183. :key="gindex"
  6184. >
  6185. <div class="group_box">
  6186. <div class="group_title">
  6187. <el-tooltip
  6188. class="item"
  6189. effect="light"
  6190. :content="g.name"
  6191. placement="top"
  6192. >
  6193. <div class="group_name">{{ g.name }}</div>
  6194. </el-tooltip>
  6195. </div>
  6196. <div
  6197. class="group_work"
  6198. v-if="
  6199. g.works &&
  6200. g.works.length &&
  6201. g.works[toolIndex].length
  6202. "
  6203. >
  6204. <div
  6205. class="works"
  6206. v-for="(w, wIndex) in g.works[toolIndex]"
  6207. :key="wIndex"
  6208. >
  6209. <div
  6210. class="workImg"
  6211. style="
  6212. border-radius: 15px;
  6213. box-shadow: 0px 0px 5px 5px #eee;
  6214. "
  6215. >
  6216. <div
  6217. class="answerBg"
  6218. style="border-radius: 15px 15px 0 0"
  6219. @click="
  6220. commentOther(w, toolIndex, wIndex, null, g.id)
  6221. "
  6222. >
  6223. <div class="answerContent">
  6224. {{ JSON.parse(w.works)[0].answer }}
  6225. </div>
  6226. <div
  6227. class="answerScore"
  6228. v-if="w.score"
  6229. @click.stop="openScore(w)"
  6230. :class="{
  6231. rightW:
  6232. w.userid == userid ||
  6233. tType == 1 ||
  6234. tType == 4
  6235. }"
  6236. >
  6237. {{ JSON.parse(w.score).wScore }}分
  6238. </div>
  6239. <div
  6240. class="answerScore"
  6241. @click.stop="openScore(w)"
  6242. v-else-if="
  6243. courseDetail.userid == userid &&
  6244. courseDetail.state != 6 &&
  6245. chapInfoList[courseType].chapterInfo[0]
  6246. .taskJson[taskCount].eList &&
  6247. chapInfoList[courseType].chapterInfo[0]
  6248. .taskJson[taskCount].eList.length
  6249. "
  6250. :class="{
  6251. rightW:
  6252. w.userid == userid ||
  6253. tType == 1 ||
  6254. tType == 4
  6255. }"
  6256. >
  6257. 评分
  6258. </div>
  6259. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6260. <div
  6261. v-else-if="
  6262. (courseDetail.userid == userid ||
  6263. (courseDetail.course_teacher &&
  6264. courseDetail.course_teacher.indexOf(
  6265. userid
  6266. ) != -1) ||
  6267. (w.userid == userid && sIsOpen)) &&
  6268. courseDetail.state == 6 &&
  6269. ((chapInfoList[courseType].chapterInfo[0]
  6270. .taskJson[taskCount].eList &&
  6271. chapInfoList[courseType].chapterInfo[0]
  6272. .taskJson[taskCount].eList.length) ||
  6273. (tool.eList && tool.eList.length))
  6274. "
  6275. >
  6276. <el-popover
  6277. placement="top"
  6278. width="318"
  6279. :disabled="
  6280. AIloading[toolIndex][wIndex].loading
  6281. "
  6282. trigger="hover"
  6283. >
  6284. <markScore
  6285. :loading="
  6286. AIloading[toolIndex][wIndex].loading
  6287. "
  6288. :markScoreVisible="markScoreVisible"
  6289. :ref="`markSco${toolIndex}${wIndex}`"
  6290. @updateLoading="updateLoading"
  6291. @updateDocSco="updateDocSco"
  6292. @refreshOther="refreshOther"
  6293. @markScoreDig="markScoreDig"
  6294. :tool="tool"
  6295. :wIndex="wIndex"
  6296. :scoCon="w"
  6297. :toolIndex="toolIndex"
  6298. :key="refreshKey"
  6299. :stage="courseType"
  6300. :task="taskCount"
  6301. :scoTit="
  6302. chapInfoList[courseType].chapterInfo[0]
  6303. .taskJson[taskCount].eList
  6304. "
  6305. >
  6306. </markScore>
  6307. <div
  6308. class="answerScore"
  6309. @click.stop="
  6310. markScoreDig2(
  6311. w.sName,
  6312. worksStudent,
  6313. w.userid,
  6314. toolIndex,
  6315. chapInfoList[courseType]
  6316. .chapterInfo[0].taskJson[taskCount]
  6317. .eList,
  6318. AIloading[toolIndex][wIndex].loading,
  6319. tool
  6320. )
  6321. "
  6322. slot="reference"
  6323. :class="{
  6324. rightW:
  6325. w.userid == userid ||
  6326. tType == 1 ||
  6327. tType == 4 ||
  6328. w.ateacher == userid
  6329. }"
  6330. >
  6331. <span
  6332. v-if="AIloading[toolIndex][wIndex].sco"
  6333. >
  6334. {{
  6335. AIloading[toolIndex][wIndex].loading
  6336. ? "评分中"
  6337. : AIloading[toolIndex][wIndex].sco +
  6338. "分"
  6339. }}
  6340. </span>
  6341. <span v-else>
  6342. {{
  6343. AIloading[toolIndex][wIndex].loading
  6344. ? "评分中"
  6345. : "评分"
  6346. }}
  6347. </span>
  6348. </div>
  6349. </el-popover>
  6350. </div>
  6351. <img
  6352. class="deleteImg"
  6353. src="../../assets/deleteworks.png"
  6354. v-if="
  6355. w.userid == userid ||
  6356. tType == 1 ||
  6357. tType == 4
  6358. "
  6359. @click.stop="deleteWorks(w.wid)"
  6360. alt
  6361. />
  6362. </div>
  6363. <div class="comment">
  6364. <div class="worksName">
  6365. <div>{{ w.sName }}</div>
  6366. </div>
  6367. <div class="commentList">
  6368. <div
  6369. class="commentImg"
  6370. @click="
  6371. isLikes(
  6372. w.wid,
  6373. userid,
  6374. 1,
  6375. null,
  6376. w.isLikes,
  6377. w.sName
  6378. )
  6379. "
  6380. >
  6381. <img
  6382. :src="w.isLikes == true ? likes : noLikes"
  6383. alt=""
  6384. />
  6385. </div>
  6386. <div>{{ w.likesCount }}</div>
  6387. </div>
  6388. <div
  6389. class="commentList"
  6390. style="margin-right: 15px"
  6391. >
  6392. <div
  6393. class="commentImg"
  6394. @click="
  6395. commentOther(
  6396. w,
  6397. toolIndex,
  6398. wIndex,
  6399. null,
  6400. g.id
  6401. )
  6402. "
  6403. >
  6404. <img
  6405. src="../../assets/icon/comment/comment.png"
  6406. alt=""
  6407. />
  6408. </div>
  6409. <div>{{ w.commentCount }}</div>
  6410. </div>
  6411. </div>
  6412. </div>
  6413. </div>
  6414. </div>
  6415. <div class="group_work" v-else>暂无提交作业</div>
  6416. </div>
  6417. </div>
  6418. <div
  6419. :id="'tool-' + toolIndex"
  6420. :style="{
  6421. height:
  6422. isCloseList[toolIndex].isClose == 1
  6423. ? retrnToolHeight('tool-' + toolIndex)
  6424. : 'auto',
  6425. overflow:
  6426. isCloseList[toolIndex].isClose == 1
  6427. ? 'hidden'
  6428. : 'unset'
  6429. }"
  6430. class="worksDetailBox"
  6431. v-if="
  6432. worksStudent.length &&
  6433. worksStudent[toolIndex].length > 0
  6434. "
  6435. >
  6436. <div
  6437. class="works"
  6438. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6439. :key="wIndex"
  6440. >
  6441. <div
  6442. class="workImg"
  6443. style="
  6444. border-radius: 15px;
  6445. box-shadow: 0px 0px 5px 5px #eee;
  6446. "
  6447. >
  6448. <!-- <img
  6449. src="../../assets/icon/works/noImg.png"
  6450. @click="openTools(15, toolIndex, taskCount, w.works)"
  6451. alt=""
  6452. />-->
  6453. <div
  6454. class="answerBg"
  6455. style="border-radius: 15px 15px 0 0"
  6456. @click="commentOther(w, toolIndex, wIndex)"
  6457. >
  6458. <!-- <div>{{ w.sName }}</div> -->
  6459. <div class="answerContent">
  6460. {{ JSON.parse(w.works)[0].answer }}
  6461. </div>
  6462. <div
  6463. class="answerScore"
  6464. v-if="w.score"
  6465. @click.stop="openScore(w)"
  6466. :class="{
  6467. rightW:
  6468. w.userid == userid || tType == 1 || tType == 4
  6469. }"
  6470. >
  6471. {{ JSON.parse(w.score).wScore }}分
  6472. </div>
  6473. <div
  6474. class="answerScore"
  6475. @click.stop="openScore(w)"
  6476. v-else-if="
  6477. courseDetail.userid == userid &&
  6478. courseDetail.state != 6 &&
  6479. chapInfoList[courseType].chapterInfo[0]
  6480. .taskJson[taskCount].eList &&
  6481. chapInfoList[courseType].chapterInfo[0]
  6482. .taskJson[taskCount].eList.length
  6483. "
  6484. :class="{
  6485. rightW:
  6486. w.userid == userid || tType == 1 || tType == 4
  6487. }"
  6488. >
  6489. 评分
  6490. </div>
  6491. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  6492. <div
  6493. v-else-if="
  6494. (courseDetail.userid == userid ||
  6495. (courseDetail.course_teacher &&
  6496. courseDetail.course_teacher.indexOf(
  6497. userid
  6498. ) != -1) ||
  6499. (w.userid == userid && sIsOpen)) &&
  6500. courseDetail.state == 6 &&
  6501. ((chapInfoList[courseType].chapterInfo[0]
  6502. .taskJson[taskCount].eList &&
  6503. chapInfoList[courseType].chapterInfo[0]
  6504. .taskJson[taskCount].eList.length) ||
  6505. (tool.eList && tool.eList.length))
  6506. "
  6507. >
  6508. <el-popover
  6509. placement="top"
  6510. width="318"
  6511. :disabled="AIloading[toolIndex][wIndex].loading"
  6512. trigger="hover"
  6513. >
  6514. <markScore
  6515. :loading="
  6516. AIloading[toolIndex][wIndex].loading
  6517. "
  6518. :markScoreVisible="markScoreVisible"
  6519. :ref="`markSco${toolIndex}${wIndex}`"
  6520. @updateLoading="updateLoading"
  6521. @updateDocSco="updateDocSco"
  6522. @refreshOther="refreshOther"
  6523. @markScoreDig="markScoreDig"
  6524. :tool="tool"
  6525. :wIndex="wIndex"
  6526. :scoCon="w"
  6527. :toolIndex="toolIndex"
  6528. :key="refreshKey"
  6529. :stage="courseType"
  6530. :task="taskCount"
  6531. :scoTit="
  6532. chapInfoList[courseType].chapterInfo[0]
  6533. .taskJson[taskCount].eList
  6534. "
  6535. >
  6536. </markScore>
  6537. <div
  6538. class="answerScore"
  6539. @click.stop="
  6540. markScoreDig2(
  6541. w.sName,
  6542. worksStudent,
  6543. w.userid,
  6544. toolIndex,
  6545. chapInfoList[courseType].chapterInfo[0]
  6546. .taskJson[taskCount].eList,
  6547. AIloading[toolIndex][wIndex].loading,
  6548. tool
  6549. )
  6550. "
  6551. slot="reference"
  6552. :class="{
  6553. rightW:
  6554. w.userid == userid ||
  6555. tType == 1 ||
  6556. tType == 4 ||
  6557. w.ateacher == userid
  6558. }"
  6559. >
  6560. <span v-if="AIloading[toolIndex][wIndex].sco">
  6561. {{
  6562. AIloading[toolIndex][wIndex].loading
  6563. ? "评分中"
  6564. : AIloading[toolIndex][wIndex].sco +
  6565. "分"
  6566. }}
  6567. </span>
  6568. <span v-else>
  6569. {{
  6570. AIloading[toolIndex][wIndex].loading
  6571. ? "评分中"
  6572. : "评分"
  6573. }}
  6574. </span>
  6575. </div>
  6576. </el-popover>
  6577. </div>
  6578. <img
  6579. class="deleteImg"
  6580. src="../../assets/deleteworks.png"
  6581. v-if="
  6582. w.userid == userid || tType == 1 || tType == 4
  6583. "
  6584. @click.stop="deleteWorks(w.wid)"
  6585. alt
  6586. />
  6587. </div>
  6588. <div class="comment">
  6589. <div class="worksName">
  6590. <div>{{ w.sName }}</div>
  6591. </div>
  6592. <div class="commentList">
  6593. <div
  6594. class="commentImg"
  6595. @click="
  6596. isLikes(
  6597. w.wid,
  6598. userid,
  6599. 1,
  6600. null,
  6601. w.isLikes,
  6602. w.sName
  6603. )
  6604. "
  6605. >
  6606. <img
  6607. :src="w.isLikes == true ? likes : noLikes"
  6608. alt=""
  6609. />
  6610. </div>
  6611. <div>{{ w.likesCount }}</div>
  6612. </div>
  6613. <div class="commentList" style="margin-right: 15px">
  6614. <div
  6615. class="commentImg"
  6616. @click="commentOther(w, toolIndex, wIndex)"
  6617. >
  6618. <img
  6619. src="../../assets/icon/comment/comment.png"
  6620. alt=""
  6621. />
  6622. </div>
  6623. <div>{{ w.commentCount }}</div>
  6624. </div>
  6625. </div>
  6626. </div>
  6627. </div>
  6628. </div>
  6629. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6630. 未提交
  6631. </div>
  6632. <div
  6633. class="noWorksS"
  6634. v-if="noWorksS && noWorksS[toolIndex].length"
  6635. >
  6636. <div
  6637. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6638. :key="sIndex"
  6639. class="noWorksName"
  6640. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6641. >
  6642. <el-tooltip
  6643. effect="dark"
  6644. :content="s.student"
  6645. placement="top"
  6646. >
  6647. <span>{{ s.student }}</span>
  6648. </el-tooltip>
  6649. </div>
  6650. </div>
  6651. </div>
  6652. <div
  6653. v-if="
  6654. tType &&
  6655. ((tType == 2 && sIsOpen == true) ||
  6656. tType == 1 ||
  6657. tType == 4) &&
  6658. tool.tool.indexOf(1) != -1
  6659. "
  6660. class="worksBox"
  6661. >
  6662. <div
  6663. class="zuoyeYulan"
  6664. style="display: flex;justify-content: space-between;align-items: center;"
  6665. v-if="
  6666. (worksStudent.length &&
  6667. worksStudent[toolIndex].length > 0) ||
  6668. (courseGroup.group && courseGroup.group.length)
  6669. "
  6670. >
  6671. <div class="worksTop">
  6672. <div>作业预览</div>
  6673. <div
  6674. class="corOpen"
  6675. @click="contract(toolIndex)"
  6676. v-if="
  6677. isCloseList[toolIndex].isCloseBoolean &&
  6678. isCloseList[toolIndex].isClose == 0
  6679. "
  6680. >
  6681. 折叠
  6682. </div>
  6683. <div
  6684. class="corOpen"
  6685. @click="contract(toolIndex)"
  6686. v-if="isCloseList[toolIndex].isClose == 1"
  6687. >
  6688. 展开
  6689. </div>
  6690. </div>
  6691. <div
  6692. style="display: flex;"
  6693. v-if="
  6694. (courseDetail.userid == userid ||
  6695. (courseDetail.course_teacher &&
  6696. courseDetail.course_teacher.indexOf(userid) !=
  6697. -1)) &&
  6698. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6699. taskCount
  6700. ].eList &&
  6701. chapInfoList[courseType].chapterInfo[0].taskJson[
  6702. taskCount
  6703. ].eList.length) ||
  6704. (tool.eList && tool.eList.length)) &&
  6705. courseDetail.state == 6
  6706. "
  6707. >
  6708. <div
  6709. style="margin-right:10px"
  6710. class="ScoreBtn"
  6711. @click="
  6712. resetLoopEva(
  6713. worksStudent[toolIndex],
  6714. chapInfoList[courseType].chapterInfo[0].taskJson[
  6715. taskCount
  6716. ].eList,
  6717. courseType,
  6718. taskCount,
  6719. toolIndex,
  6720. tool.toolDetail,
  6721. worksStudent
  6722. )
  6723. "
  6724. >
  6725. 一键重置
  6726. </div>
  6727. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  6728. <img
  6729. src="../../assets/icon/newIcons/rootImg.png"
  6730. alt=""
  6731. />
  6732. AI评分
  6733. </div>
  6734. <div
  6735. class="ScoreBtn"
  6736. v-else-if="!loopLoading[toolIndex].loading"
  6737. @click="
  6738. loopEva(
  6739. worksStudent[toolIndex],
  6740. chapInfoList[courseType].chapterInfo[0].taskJson[
  6741. taskCount
  6742. ].eList,
  6743. courseType,
  6744. taskCount,
  6745. toolIndex,
  6746. tool.toolDetail,
  6747. chapInfoList[courseType].chapterInfo[0].taskJson[
  6748. taskCount
  6749. ].taskDetail,
  6750. tool
  6751. )
  6752. "
  6753. >
  6754. <img
  6755. src="../../assets/icon/newIcons/rootImg.png"
  6756. alt=""
  6757. />
  6758. AI评分
  6759. </div>
  6760. <div class="ScoreBtn" v-else>
  6761. <img
  6762. src="../../assets/icon/newIcons/rootImg.png"
  6763. alt=""
  6764. />
  6765. 正在评分
  6766. </div>
  6767. </div>
  6768. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6769. </div>
  6770. <div
  6771. class="group_workBox"
  6772. v-for="(g, gindex) in courseGroup.group"
  6773. :key="gindex"
  6774. >
  6775. <div class="group_box">
  6776. <div class="group_title">
  6777. <el-tooltip
  6778. class="item"
  6779. effect="light"
  6780. :content="g.name"
  6781. placement="top"
  6782. >
  6783. <div class="group_name">{{ g.name }}</div>
  6784. </el-tooltip>
  6785. </div>
  6786. <div
  6787. class="group_work"
  6788. v-if="
  6789. g.works &&
  6790. g.works.length &&
  6791. g.works[toolIndex].length
  6792. "
  6793. >
  6794. <div
  6795. class="works"
  6796. style="
  6797. width: 200px;
  6798. height: 140px;
  6799. margin: 10px 10px 10px 0;
  6800. border-radius: 15px;
  6801. box-shadow: 0 0 6px 1px #dfdada;
  6802. "
  6803. v-for="(w, wIndex) in g.works[toolIndex]"
  6804. :key="wIndex"
  6805. :class="w.type == 1 ? 'isTypeOne' : ''"
  6806. >
  6807. <div class="workImg">
  6808. <img
  6809. :src="w.works"
  6810. @click="previewImg(w.works, w)"
  6811. alt
  6812. />
  6813. <div
  6814. class="answerScore"
  6815. v-if="w.score"
  6816. @click.stop="openScore(w)"
  6817. :class="{
  6818. rightW:
  6819. w.userid == userid ||
  6820. tType == 1 ||
  6821. tType == 4
  6822. }"
  6823. >
  6824. {{ JSON.parse(w.score).wScore }}分
  6825. </div>
  6826. <div
  6827. class="answerScore"
  6828. @click.stop="openScore(w)"
  6829. v-else-if="courseDetail.userid == userid"
  6830. :class="{
  6831. rightW:
  6832. w.userid == userid ||
  6833. tType == 1 ||
  6834. tType == 4
  6835. }"
  6836. >
  6837. 评分
  6838. </div>
  6839. <img
  6840. class="deleteImg"
  6841. src="../../assets/deleteworks.png"
  6842. v-if="
  6843. w.userid == userid || tType == 1 || tType == 4
  6844. "
  6845. @click.stop="deleteWorks(w.wid)"
  6846. alt
  6847. />
  6848. </div>
  6849. <div class="comment" style="min-width: 200px">
  6850. <div class="worksName">
  6851. <div>{{ w.sName }}</div>
  6852. </div>
  6853. <div class="commentList">
  6854. <div class="commentList">
  6855. <div
  6856. class="commentImg"
  6857. @click="
  6858. isLikes(
  6859. w.wid,
  6860. userid,
  6861. 1,
  6862. null,
  6863. w.isLikes,
  6864. w.sName
  6865. )
  6866. "
  6867. >
  6868. <img
  6869. :src="w.isLikes == true ? likes : noLikes"
  6870. alt=""
  6871. />
  6872. </div>
  6873. <div>{{ w.likesCount }}</div>
  6874. </div>
  6875. <div
  6876. class="commentList"
  6877. style="margin-right: 15px"
  6878. >
  6879. <div
  6880. class="commentImg"
  6881. @click="
  6882. commentOther(
  6883. w,
  6884. toolIndex,
  6885. wIndex,
  6886. null,
  6887. g.id
  6888. )
  6889. "
  6890. >
  6891. <img
  6892. src="../../assets/icon/comment/comment.png"
  6893. alt=""
  6894. />
  6895. </div>
  6896. <div>{{ w.commentCount }}</div>
  6897. </div>
  6898. </div>
  6899. </div>
  6900. </div>
  6901. </div>
  6902. <div class="group_work" v-else>暂无提交作业</div>
  6903. </div>
  6904. </div>
  6905. <div
  6906. :id="'tool-' + toolIndex"
  6907. :style="{
  6908. height:
  6909. isCloseList[toolIndex].isClose == 1
  6910. ? retrnToolHeight('tool-' + toolIndex)
  6911. : 'auto',
  6912. overflow:
  6913. isCloseList[toolIndex].isClose == 1
  6914. ? 'hidden'
  6915. : 'unset'
  6916. }"
  6917. class="worksDetailBox"
  6918. v-if="
  6919. worksStudent.length &&
  6920. worksStudent[toolIndex].length > 0
  6921. "
  6922. >
  6923. <div
  6924. class="works"
  6925. style="
  6926. width: 200px;
  6927. height: 140px;
  6928. margin: 10px 10px 10px 0;
  6929. border-radius: 15px;
  6930. box-shadow: 0 0 6px 1px #dfdada;
  6931. "
  6932. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6933. :key="wIndex"
  6934. >
  6935. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  6936. <div class="workImg">
  6937. <img
  6938. :src="w.works"
  6939. @click="previewImg(w.works, w)"
  6940. alt
  6941. />
  6942. <div
  6943. class="answerScore"
  6944. v-if="w.score"
  6945. @click.stop="openScore(w)"
  6946. :class="{
  6947. rightW:
  6948. w.userid == userid || tType == 1 || tType == 4
  6949. }"
  6950. >
  6951. {{ JSON.parse(w.score).wScore }}分
  6952. </div>
  6953. <div
  6954. class="answerScore"
  6955. @click.stop="openScore(w)"
  6956. v-else-if="
  6957. courseDetail.userid == userid &&
  6958. courseDetail.state != 6 &&
  6959. chapInfoList[courseType].chapterInfo[0]
  6960. .taskJson[taskCount].eList &&
  6961. chapInfoList[courseType].chapterInfo[0]
  6962. .taskJson[taskCount].eList.length
  6963. "
  6964. :class="{
  6965. rightW:
  6966. w.userid == userid || tType == 1 || tType == 4
  6967. }"
  6968. >
  6969. 评分
  6970. </div>
  6971. <div
  6972. v-else-if="
  6973. (courseDetail.userid == userid ||
  6974. (courseDetail.course_teacher &&
  6975. courseDetail.course_teacher.indexOf(userid) !=
  6976. -1) ||
  6977. (courseDetail.course_teacher &&
  6978. courseDetail.course_teacher.indexOf(userid) !=
  6979. -1) ||
  6980. (courseDetail.course_teacher &&
  6981. courseDetail.course_teacher.indexOf(userid) !=
  6982. -1) ||
  6983. (w.userid == userid && sIsOpen)) &&
  6984. courseDetail.state == 6 &&
  6985. ((chapInfoList[courseType].chapterInfo[0]
  6986. .taskJson[taskCount].eList &&
  6987. chapInfoList[courseType].chapterInfo[0]
  6988. .taskJson[taskCount].eList.length) ||
  6989. (tool.eList && tool.eList.length))
  6990. "
  6991. >
  6992. <el-popover
  6993. placement="top"
  6994. width="318"
  6995. :disabled="AIloading[toolIndex][wIndex].loading"
  6996. trigger="hover"
  6997. >
  6998. <markScore
  6999. :loading="AIloading[toolIndex][wIndex].loading"
  7000. :markScoreVisible="markScoreVisible"
  7001. :ref="`markSco${toolIndex}${wIndex}`"
  7002. @updateLoading="updateLoading"
  7003. @updateDocSco="updateDocSco"
  7004. @refreshOther="refreshOther"
  7005. @markScoreDig="markScoreDig"
  7006. :tool="tool"
  7007. :wIndex="wIndex"
  7008. :scoCon="w"
  7009. :toolIndex="toolIndex"
  7010. :key="refreshKey"
  7011. :stage="courseType"
  7012. :task="taskCount"
  7013. :scoTit="
  7014. chapInfoList[courseType].chapterInfo[0]
  7015. .taskJson[taskCount].eList
  7016. "
  7017. >
  7018. </markScore>
  7019. <div
  7020. class="answerScore"
  7021. @click="
  7022. markScoreDig2(
  7023. w.sName,
  7024. worksStudent,
  7025. w.userid,
  7026. toolIndex,
  7027. chapInfoList[courseType].chapterInfo[0]
  7028. .taskJson[taskCount].eList,
  7029. AIloading[toolIndex][wIndex].loading,
  7030. tool
  7031. )
  7032. "
  7033. slot="reference"
  7034. :class="{
  7035. rightW:
  7036. w.userid == userid ||
  7037. tType == 1 ||
  7038. tType == 4 ||
  7039. w.ateacher == userid
  7040. }"
  7041. >
  7042. <span v-if="AIloading[toolIndex][wIndex].sco">
  7043. {{
  7044. AIloading[toolIndex][wIndex].loading
  7045. ? "评分中"
  7046. : AIloading[toolIndex][wIndex].sco + "分"
  7047. }}
  7048. </span>
  7049. <span v-else>
  7050. {{
  7051. AIloading[toolIndex][wIndex].loading
  7052. ? "评分中"
  7053. : "评分"
  7054. }}
  7055. </span>
  7056. </div>
  7057. </el-popover>
  7058. </div>
  7059. <img
  7060. class="deleteImg"
  7061. src="../../assets/deleteworks.png"
  7062. v-if="
  7063. w.userid == userid || tType == 1 || tType == 4
  7064. "
  7065. @click.stop="deleteWorks(w.wid)"
  7066. alt
  7067. />
  7068. </div>
  7069. <div class="comment" style="min-width: 200px">
  7070. <div class="worksName">
  7071. <div>{{ w.sName }}</div>
  7072. </div>
  7073. <div class="commentList">
  7074. <div class="commentList">
  7075. <div
  7076. class="commentImg"
  7077. @click="
  7078. isLikes(
  7079. w.wid,
  7080. userid,
  7081. 1,
  7082. null,
  7083. w.isLikes,
  7084. w.sName
  7085. )
  7086. "
  7087. >
  7088. <img
  7089. :src="w.isLikes == true ? likes : noLikes"
  7090. alt=""
  7091. />
  7092. </div>
  7093. <div>{{ w.likesCount }}</div>
  7094. </div>
  7095. <div class="commentList" style="margin-right: 15px">
  7096. <div
  7097. class="commentImg"
  7098. @click="commentOther(w, toolIndex, wIndex)"
  7099. >
  7100. <img
  7101. src="../../assets/icon/comment/comment.png"
  7102. alt=""
  7103. />
  7104. </div>
  7105. <div>{{ w.commentCount }}</div>
  7106. </div>
  7107. </div>
  7108. </div>
  7109. </div>
  7110. </div>
  7111. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7112. 未提交
  7113. </div>
  7114. <div
  7115. class="noWorksS"
  7116. v-if="noWorksS && noWorksS[toolIndex].length"
  7117. >
  7118. <div
  7119. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7120. :key="sIndex"
  7121. class="noWorksName"
  7122. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7123. >
  7124. <el-tooltip
  7125. effect="dark"
  7126. :content="s.student"
  7127. placement="top"
  7128. >
  7129. <span>{{ s.student }}</span>
  7130. </el-tooltip>
  7131. </div>
  7132. </div>
  7133. </div>
  7134. <div
  7135. v-if="
  7136. tType &&
  7137. ((tType == 2 && sIsOpen == true) ||
  7138. tType == 1 ||
  7139. tType == 4) &&
  7140. tool.tool.indexOf(3) != -1
  7141. "
  7142. class="worksBox"
  7143. >
  7144. <div
  7145. class="zuoyeYulan"
  7146. style="display: flex;justify-content: space-between;align-items: center;"
  7147. v-if="
  7148. (worksStudent.length &&
  7149. worksStudent[toolIndex].length > 0) ||
  7150. (courseGroup.group && courseGroup.group.length)
  7151. "
  7152. >
  7153. <div class="worksTop">
  7154. <div>作业预览</div>
  7155. <div
  7156. class="corOpen"
  7157. @click="contract(toolIndex)"
  7158. v-if="
  7159. isCloseList[toolIndex].isCloseBoolean &&
  7160. isCloseList[toolIndex].isClose == 0
  7161. "
  7162. >
  7163. 折叠
  7164. </div>
  7165. <div
  7166. class="corOpen"
  7167. @click="contract(toolIndex)"
  7168. v-if="isCloseList[toolIndex].isClose == 1"
  7169. >
  7170. 展开
  7171. </div>
  7172. </div>
  7173. <div
  7174. style="display: flex;"
  7175. v-if="
  7176. (courseDetail.userid == userid ||
  7177. (courseDetail.course_teacher &&
  7178. courseDetail.course_teacher.indexOf(userid) !=
  7179. -1)) &&
  7180. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7181. taskCount
  7182. ].eList &&
  7183. chapInfoList[courseType].chapterInfo[0].taskJson[
  7184. taskCount
  7185. ].eList.length) ||
  7186. (tool.eList && tool.eList.length)) &&
  7187. courseDetail.state == 6
  7188. "
  7189. >
  7190. <div
  7191. style="margin-right:10px"
  7192. class="ScoreBtn"
  7193. @click="
  7194. resetLoopEva(
  7195. worksStudent[toolIndex],
  7196. chapInfoList[courseType].chapterInfo[0].taskJson[
  7197. taskCount
  7198. ].eList,
  7199. courseType,
  7200. taskCount,
  7201. toolIndex,
  7202. tool.toolDetail,
  7203. worksStudent
  7204. )
  7205. "
  7206. >
  7207. 一键重置
  7208. </div>
  7209. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7210. <img
  7211. src="../../assets/icon/newIcons/rootImg.png"
  7212. alt=""
  7213. />
  7214. AI评分
  7215. </div>
  7216. <div
  7217. class="ScoreBtn"
  7218. v-else-if="!loopLoading[toolIndex].loading"
  7219. @click="
  7220. loopEva(
  7221. worksStudent[toolIndex],
  7222. chapInfoList[courseType].chapterInfo[0].taskJson[
  7223. taskCount
  7224. ].eList,
  7225. courseType,
  7226. taskCount,
  7227. toolIndex,
  7228. tool.toolDetail,
  7229. chapInfoList[courseType].chapterInfo[0].taskJson[
  7230. taskCount
  7231. ].taskDetail,
  7232. tool
  7233. )
  7234. "
  7235. >
  7236. <img
  7237. src="../../assets/icon/newIcons/rootImg.png"
  7238. alt=""
  7239. />
  7240. AI评分
  7241. </div>
  7242. <div class="ScoreBtn" v-else>
  7243. <img
  7244. src="../../assets/icon/newIcons/rootImg.png"
  7245. alt=""
  7246. />
  7247. 正在评分
  7248. </div>
  7249. </div>
  7250. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7251. </div>
  7252. <div
  7253. class="group_workBox"
  7254. v-for="(g, gindex) in courseGroup.group"
  7255. :key="gindex"
  7256. >
  7257. <div class="group_box">
  7258. <div class="group_title">
  7259. <el-tooltip
  7260. class="item"
  7261. effect="light"
  7262. :content="g.name"
  7263. placement="top"
  7264. >
  7265. <div class="group_name">{{ g.name }}</div>
  7266. </el-tooltip>
  7267. </div>
  7268. <div
  7269. class="group_work"
  7270. v-if="
  7271. g.works &&
  7272. g.works.length &&
  7273. g.works[toolIndex].length
  7274. "
  7275. >
  7276. <div
  7277. class="works"
  7278. style="
  7279. width: 200px;
  7280. height: 140px;
  7281. margin: 10px 10px 10px 0;
  7282. border-radius: 15px;
  7283. box-shadow: 0 0 6px 1px #dfdada;
  7284. "
  7285. v-for="(w, wIndex) in g.works[toolIndex]"
  7286. :key="wIndex"
  7287. :class="w.type == 1 ? 'isTypeOne' : ''"
  7288. >
  7289. <div class="workImg">
  7290. <img
  7291. :src="w.works"
  7292. @click="previewImg(w.works, w)"
  7293. alt
  7294. />
  7295. <div
  7296. class="answerScore"
  7297. v-if="w.score"
  7298. @click.stop="openScore(w)"
  7299. :class="{
  7300. rightW:
  7301. w.userid == userid ||
  7302. tType == 1 ||
  7303. tType == 4
  7304. }"
  7305. >
  7306. {{ JSON.parse(w.score).wScore }}分
  7307. </div>
  7308. <div
  7309. class="answerScore"
  7310. @click.stop="openScore(w)"
  7311. v-else-if="courseDetail.userid == userid"
  7312. :class="{
  7313. rightW:
  7314. w.userid == userid ||
  7315. tType == 1 ||
  7316. tType == 4
  7317. }"
  7318. >
  7319. 评分
  7320. </div>
  7321. <img
  7322. class="deleteImg"
  7323. src="../../assets/deleteworks.png"
  7324. v-if="
  7325. w.userid == userid || tType == 1 || tType == 4
  7326. "
  7327. @click.stop="deleteWorks(w.wid)"
  7328. alt
  7329. />
  7330. </div>
  7331. <div class="comment" style="min-width: 200px">
  7332. <div class="worksName">
  7333. <div>{{ w.sName }}</div>
  7334. </div>
  7335. <div class="commentList">
  7336. <div class="commentList">
  7337. <div
  7338. class="commentImg"
  7339. @click="
  7340. isLikes(
  7341. w.wid,
  7342. userid,
  7343. 1,
  7344. null,
  7345. w.isLikes,
  7346. w.sName
  7347. )
  7348. "
  7349. >
  7350. <img
  7351. :src="w.isLikes == true ? likes : noLikes"
  7352. alt=""
  7353. />
  7354. </div>
  7355. <div>{{ w.likesCount }}</div>
  7356. </div>
  7357. <div
  7358. class="commentList"
  7359. style="margin-right: 15px"
  7360. >
  7361. <div
  7362. class="commentImg"
  7363. @click="
  7364. commentOther(
  7365. w,
  7366. toolIndex,
  7367. wIndex,
  7368. null,
  7369. g.id
  7370. )
  7371. "
  7372. >
  7373. <img
  7374. src="../../assets/icon/comment/comment.png"
  7375. alt=""
  7376. />
  7377. </div>
  7378. <div>{{ w.commentCount }}</div>
  7379. </div>
  7380. </div>
  7381. </div>
  7382. </div>
  7383. </div>
  7384. <div class="group_work" v-else>暂无提交作业</div>
  7385. </div>
  7386. </div>
  7387. <div
  7388. :id="'tool-' + toolIndex"
  7389. :style="{
  7390. height:
  7391. isCloseList[toolIndex].isClose == 1
  7392. ? retrnToolHeight('tool-' + toolIndex)
  7393. : 'auto',
  7394. overflow:
  7395. isCloseList[toolIndex].isClose == 1
  7396. ? 'hidden'
  7397. : 'unset'
  7398. }"
  7399. class="worksDetailBox"
  7400. v-if="
  7401. worksStudent.length &&
  7402. worksStudent[toolIndex].length > 0
  7403. "
  7404. >
  7405. <div
  7406. class="works"
  7407. style="
  7408. width: 200px;
  7409. height: 140px;
  7410. margin: 10px 10px 10px 0;
  7411. border-radius: 15px;
  7412. box-shadow: 0 0 6px 1px #dfdada;
  7413. "
  7414. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7415. :key="wIndex"
  7416. >
  7417. <!-- @click="previewImg(w.works)" -->
  7418. <div class="workImg">
  7419. <img
  7420. :src="w.works"
  7421. @click="previewImg(w.works, w)"
  7422. alt
  7423. />
  7424. <div
  7425. class="answerScore"
  7426. v-if="w.score"
  7427. @click.stop="openScore(w)"
  7428. :class="{
  7429. rightW:
  7430. w.userid == userid || tType == 1 || tType == 4
  7431. }"
  7432. >
  7433. {{ JSON.parse(w.score).wScore }}分
  7434. </div>
  7435. <div
  7436. class="answerScore"
  7437. @click.stop="openScore(w)"
  7438. v-else-if="
  7439. courseDetail.userid == userid &&
  7440. courseDetail.state != 6 &&
  7441. chapInfoList[courseType].chapterInfo[0]
  7442. .taskJson[taskCount].eList &&
  7443. chapInfoList[courseType].chapterInfo[0]
  7444. .taskJson[taskCount].eList.length
  7445. "
  7446. :class="{
  7447. rightW:
  7448. w.userid == userid || tType == 1 || tType == 4
  7449. }"
  7450. >
  7451. 评分
  7452. </div>
  7453. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  7454. <div
  7455. v-else-if="
  7456. (courseDetail.userid == userid ||
  7457. (courseDetail.course_teacher &&
  7458. courseDetail.course_teacher.indexOf(userid) !=
  7459. -1) ||
  7460. (w.userid == userid && sIsOpen)) &&
  7461. courseDetail.state == 6 &&
  7462. ((chapInfoList[courseType].chapterInfo[0]
  7463. .taskJson[taskCount].eList &&
  7464. chapInfoList[courseType].chapterInfo[0]
  7465. .taskJson[taskCount].eList.length) ||
  7466. (tool.eList && tool.eList.length))
  7467. "
  7468. >
  7469. <el-popover
  7470. placement="top"
  7471. width="318"
  7472. :disabled="AIloading[toolIndex][wIndex].loading"
  7473. trigger="hover"
  7474. >
  7475. <markScore
  7476. :loading="AIloading[toolIndex][wIndex].loading"
  7477. :markScoreVisible="markScoreVisible"
  7478. :ref="`markSco${toolIndex}${wIndex}`"
  7479. @updateLoading="updateLoading"
  7480. @updateDocSco="updateDocSco"
  7481. @refreshOther="refreshOther"
  7482. @markScoreDig="markScoreDig"
  7483. :tool="tool"
  7484. :wIndex="wIndex"
  7485. :scoCon="w"
  7486. :toolIndex="toolIndex"
  7487. :key="refreshKey"
  7488. :stage="courseType"
  7489. :task="taskCount"
  7490. :scoTit="
  7491. chapInfoList[courseType].chapterInfo[0]
  7492. .taskJson[taskCount].eList
  7493. "
  7494. >
  7495. </markScore>
  7496. <div
  7497. class="answerScore"
  7498. @click="
  7499. markScoreDig2(
  7500. w.sName,
  7501. worksStudent,
  7502. w.userid,
  7503. toolIndex,
  7504. chapInfoList[courseType].chapterInfo[0]
  7505. .taskJson[taskCount].eList,
  7506. AIloading[toolIndex][wIndex].loading,
  7507. tool
  7508. )
  7509. "
  7510. slot="reference"
  7511. :class="{
  7512. rightW:
  7513. w.userid == userid ||
  7514. tType == 1 ||
  7515. tType == 4 ||
  7516. w.ateacher == userid
  7517. }"
  7518. >
  7519. <span v-if="AIloading[toolIndex][wIndex].sco">
  7520. {{
  7521. AIloading[toolIndex][wIndex].loading
  7522. ? "评分中"
  7523. : AIloading[toolIndex][wIndex].sco + "分"
  7524. }}
  7525. </span>
  7526. <span v-else>
  7527. {{
  7528. AIloading[toolIndex][wIndex].loading
  7529. ? "评分中"
  7530. : "评分"
  7531. }}
  7532. </span>
  7533. </div>
  7534. </el-popover>
  7535. </div>
  7536. <img
  7537. class="deleteImg"
  7538. src="../../assets/deleteworks.png"
  7539. v-if="
  7540. w.userid == userid || tType == 1 || tType == 4
  7541. "
  7542. @click.stop="deleteWorks(w.wid)"
  7543. alt
  7544. />
  7545. </div>
  7546. <div class="comment" style="min-width: 200px">
  7547. <div class="worksName">
  7548. <div>{{ w.sName }}</div>
  7549. </div>
  7550. <div class="commentList">
  7551. <div class="commentList">
  7552. <div
  7553. class="commentImg"
  7554. @click="
  7555. isLikes(
  7556. w.wid,
  7557. userid,
  7558. 1,
  7559. null,
  7560. w.isLikes,
  7561. w.sName
  7562. )
  7563. "
  7564. >
  7565. <img
  7566. :src="w.isLikes == true ? likes : noLikes"
  7567. alt=""
  7568. />
  7569. </div>
  7570. <div>{{ w.likesCount }}</div>
  7571. </div>
  7572. <div class="commentList" style="margin-right: 15px">
  7573. <div
  7574. class="commentImg"
  7575. @click="commentOther(w, toolIndex, wIndex)"
  7576. >
  7577. <img
  7578. src="../../assets/icon/comment/comment.png"
  7579. alt=""
  7580. />
  7581. </div>
  7582. <div>{{ w.commentCount }}</div>
  7583. </div>
  7584. </div>
  7585. </div>
  7586. </div>
  7587. </div>
  7588. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7589. 未提交
  7590. </div>
  7591. <div
  7592. class="noWorksS"
  7593. v-if="noWorksS && noWorksS[toolIndex].length"
  7594. >
  7595. <div
  7596. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7597. :key="sIndex"
  7598. class="noWorksName"
  7599. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7600. >
  7601. <el-tooltip
  7602. effect="dark"
  7603. :content="s.student"
  7604. placement="top"
  7605. >
  7606. <span>{{ s.student }}</span>
  7607. </el-tooltip>
  7608. </div>
  7609. </div>
  7610. </div>
  7611. <div
  7612. v-if="
  7613. tType &&
  7614. ((tType == 2 && sIsOpen == true) ||
  7615. tType == 1 ||
  7616. tType == 4) &&
  7617. tool.tool.indexOf(6) != -1
  7618. "
  7619. class="worksBox"
  7620. >
  7621. <div
  7622. class="zuoyeYulan"
  7623. v-if="
  7624. (worksStudent.length &&
  7625. worksStudent[toolIndex].length > 0) ||
  7626. (courseGroup.group && courseGroup.group.length)
  7627. "
  7628. >
  7629. <div class="worksTop">
  7630. <div>作业预览</div>
  7631. <div
  7632. class="corOpen"
  7633. @click="contract(toolIndex)"
  7634. v-if="
  7635. isCloseList[toolIndex].isCloseBoolean &&
  7636. isCloseList[toolIndex].isClose == 0
  7637. "
  7638. >
  7639. 折叠
  7640. </div>
  7641. <div
  7642. class="corOpen"
  7643. @click="contract(toolIndex)"
  7644. v-if="isCloseList[toolIndex].isClose == 1"
  7645. >
  7646. 展开
  7647. </div>
  7648. </div>
  7649. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7650. </div>
  7651. <div
  7652. class="group_workBox"
  7653. v-for="(g, gindex) in courseGroup.group"
  7654. :key="gindex"
  7655. >
  7656. <div class="group_box">
  7657. <div class="group_title">
  7658. <el-tooltip
  7659. class="item"
  7660. effect="light"
  7661. :content="g.name"
  7662. placement="top"
  7663. >
  7664. <div class="group_name">{{ g.name }}</div>
  7665. </el-tooltip>
  7666. </div>
  7667. <div
  7668. class="group_work"
  7669. v-if="
  7670. g.works &&
  7671. g.works.length &&
  7672. g.works[toolIndex].length
  7673. "
  7674. >
  7675. <div
  7676. class="works"
  7677. style="
  7678. width: 200px;
  7679. height: 140px;
  7680. margin: 10px 10px 10px 0;
  7681. border-radius: 15px;
  7682. box-shadow: 0 0 6px 1px #dfdada;
  7683. "
  7684. v-for="(w, wIndex) in g.works[toolIndex]"
  7685. :key="wIndex"
  7686. :class="w.type == 1 ? 'isTypeOne' : ''"
  7687. >
  7688. <div class="workImg">
  7689. <img
  7690. :src="w.works"
  7691. @click="previewImg(w.works, w)"
  7692. alt
  7693. />
  7694. <div
  7695. class="answerScore"
  7696. v-if="w.score"
  7697. @click.stop="openScore(w)"
  7698. :class="{
  7699. rightW:
  7700. w.userid == userid ||
  7701. tType == 1 ||
  7702. tType == 4
  7703. }"
  7704. >
  7705. {{ JSON.parse(w.score).wScore }}分
  7706. </div>
  7707. <div
  7708. class="answerScore"
  7709. @click.stop="openScore(w)"
  7710. v-else-if="courseDetail.userid == userid"
  7711. :class="{
  7712. rightW:
  7713. w.userid == userid ||
  7714. tType == 1 ||
  7715. tType == 4
  7716. }"
  7717. >
  7718. 评分
  7719. </div>
  7720. <img
  7721. class="deleteImg"
  7722. src="../../assets/deleteworks.png"
  7723. v-if="
  7724. w.userid == userid || tType == 1 || tType == 4
  7725. "
  7726. @click.stop="deleteWorks(w.wid)"
  7727. alt
  7728. />
  7729. </div>
  7730. <div class="comment" style="min-width: 200px">
  7731. <div class="worksName">
  7732. <div>{{ w.sName }}</div>
  7733. </div>
  7734. <div class="commentList">
  7735. <div class="commentList">
  7736. <div
  7737. class="commentImg"
  7738. @click="
  7739. isLikes(
  7740. w.wid,
  7741. userid,
  7742. 1,
  7743. null,
  7744. w.isLikes,
  7745. w.sName
  7746. )
  7747. "
  7748. >
  7749. <img
  7750. :src="w.isLikes == true ? likes : noLikes"
  7751. alt=""
  7752. />
  7753. </div>
  7754. <div>{{ w.likesCount }}</div>
  7755. </div>
  7756. <div
  7757. class="commentList"
  7758. style="margin-right: 15px"
  7759. >
  7760. <div
  7761. class="commentImg"
  7762. @click="
  7763. commentOther(
  7764. w,
  7765. toolIndex,
  7766. wIndex,
  7767. null,
  7768. g.id
  7769. )
  7770. "
  7771. >
  7772. <img
  7773. src="../../assets/icon/comment/comment.png"
  7774. alt=""
  7775. />
  7776. </div>
  7777. <div>{{ w.commentCount }}</div>
  7778. </div>
  7779. </div>
  7780. </div>
  7781. </div>
  7782. </div>
  7783. <div class="group_work" v-else>暂无提交作业</div>
  7784. </div>
  7785. </div>
  7786. <div
  7787. :id="'tool-' + toolIndex"
  7788. :style="{
  7789. height:
  7790. isCloseList[toolIndex].isClose == 1
  7791. ? retrnToolHeight('tool-' + toolIndex)
  7792. : 'auto',
  7793. overflow:
  7794. isCloseList[toolIndex].isClose == 1
  7795. ? 'hidden'
  7796. : 'unset'
  7797. }"
  7798. class="worksDetailBox"
  7799. v-if="
  7800. worksStudent.length &&
  7801. worksStudent[toolIndex].length > 0
  7802. "
  7803. >
  7804. <div
  7805. class="works"
  7806. style="
  7807. width: 200px;
  7808. height: 140px;
  7809. margin: 10px 10px 10px 0;
  7810. border-radius: 15px;
  7811. box-shadow: 0 0 6px 1px #dfdada;
  7812. "
  7813. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7814. :key="wIndex"
  7815. >
  7816. <!-- @click="previewImg(w.works)" -->
  7817. <div class="workImg">
  7818. <img
  7819. :src="w.works"
  7820. @click="previewImg(w.works, w)"
  7821. alt
  7822. />
  7823. <div
  7824. class="answerScore"
  7825. v-if="w.score"
  7826. @click.stop="openScore(w)"
  7827. :class="{
  7828. rightW:
  7829. w.userid == userid || tType == 1 || tType == 4
  7830. }"
  7831. >
  7832. {{ JSON.parse(w.score).wScore }}分
  7833. </div>
  7834. <div
  7835. class="answerScore"
  7836. @click.stop="openScore(w)"
  7837. v-else-if="courseDetail.userid == userid"
  7838. :class="{
  7839. rightW:
  7840. w.userid == userid || tType == 1 || tType == 4
  7841. }"
  7842. >
  7843. 评分
  7844. </div>
  7845. <img
  7846. class="deleteImg"
  7847. src="../../assets/deleteworks.png"
  7848. v-if="
  7849. w.userid == userid || tType == 1 || tType == 4
  7850. "
  7851. @click.stop="deleteWorks(w.wid)"
  7852. alt
  7853. />
  7854. </div>
  7855. <div class="comment" style="min-width: 200px">
  7856. <div class="worksName">
  7857. <div>{{ w.sName }}</div>
  7858. </div>
  7859. <div class="commentList">
  7860. <div class="commentList">
  7861. <div
  7862. class="commentImg"
  7863. @click="
  7864. isLikes(
  7865. w.wid,
  7866. userid,
  7867. 1,
  7868. null,
  7869. w.isLikes,
  7870. w.sName
  7871. )
  7872. "
  7873. >
  7874. <img
  7875. :src="w.isLikes == true ? likes : noLikes"
  7876. alt=""
  7877. />
  7878. </div>
  7879. <div>{{ w.likesCount }}</div>
  7880. </div>
  7881. <div class="commentList" style="margin-right: 15px">
  7882. <div
  7883. class="commentImg"
  7884. @click="commentOther(w, toolIndex, wIndex)"
  7885. >
  7886. <img
  7887. src="../../assets/icon/comment/comment.png"
  7888. alt=""
  7889. />
  7890. </div>
  7891. <div>{{ w.commentCount }}</div>
  7892. </div>
  7893. </div>
  7894. </div>
  7895. </div>
  7896. </div>
  7897. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7898. 未提交
  7899. </div>
  7900. <div
  7901. class="noWorksS"
  7902. v-if="noWorksS && noWorksS[toolIndex].length"
  7903. >
  7904. <div
  7905. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7906. :key="sIndex"
  7907. class="noWorksName"
  7908. >
  7909. <el-tooltip
  7910. effect="dark"
  7911. :content="s.student"
  7912. placement="top"
  7913. >
  7914. <span>{{ s.student }}</span>
  7915. </el-tooltip>
  7916. </div>
  7917. </div>
  7918. </div>
  7919. <div
  7920. v-if="
  7921. tType &&
  7922. ((tType == 2 && sIsOpen == true) ||
  7923. tType == 1 ||
  7924. tType == 4) &&
  7925. tool.tool.indexOf(7) != -1
  7926. "
  7927. class="worksBox"
  7928. >
  7929. <div
  7930. class="zuoyeYulan"
  7931. style="display: flex;justify-content: space-between;align-items: center;"
  7932. v-if="
  7933. (worksStudent.length &&
  7934. worksStudent[toolIndex].length > 0) ||
  7935. (courseGroup.group && courseGroup.group.length)
  7936. "
  7937. >
  7938. <div class="worksTop">
  7939. <div>作业预览</div>
  7940. <div
  7941. class="corOpen"
  7942. @click="contract(toolIndex)"
  7943. v-if="
  7944. isCloseList[toolIndex].isCloseBoolean &&
  7945. isCloseList[toolIndex].isClose == 0
  7946. "
  7947. >
  7948. 折叠
  7949. </div>
  7950. <div
  7951. class="corOpen"
  7952. @click="contract(toolIndex)"
  7953. v-if="isCloseList[toolIndex].isClose == 1"
  7954. >
  7955. 展开
  7956. </div>
  7957. </div>
  7958. <div
  7959. style="display: flex;"
  7960. v-if="
  7961. (courseDetail.userid == userid ||
  7962. (courseDetail.course_teacher &&
  7963. courseDetail.course_teacher.indexOf(userid) !=
  7964. -1)) &&
  7965. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7966. taskCount
  7967. ].eList &&
  7968. chapInfoList[courseType].chapterInfo[0].taskJson[
  7969. taskCount
  7970. ].eList.length) ||
  7971. (tool.eList && tool.eList.length)) &&
  7972. courseDetail.state == 6
  7973. "
  7974. >
  7975. <div
  7976. style="margin-right:10px"
  7977. class="ScoreBtn"
  7978. @click="
  7979. resetLoopEva(
  7980. worksStudent[toolIndex],
  7981. chapInfoList[courseType].chapterInfo[0].taskJson[
  7982. taskCount
  7983. ].eList,
  7984. courseType,
  7985. taskCount,
  7986. toolIndex,
  7987. tool.toolDetail,
  7988. worksStudent
  7989. )
  7990. "
  7991. >
  7992. 一键重置
  7993. </div>
  7994. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7995. <img
  7996. src="../../assets/icon/newIcons/rootImg.png"
  7997. alt=""
  7998. />
  7999. AI评分
  8000. </div>
  8001. <div
  8002. class="ScoreBtn"
  8003. v-else-if="!loopLoading[toolIndex].loading"
  8004. @click="
  8005. loopEva(
  8006. worksStudent[toolIndex],
  8007. chapInfoList[courseType].chapterInfo[0].taskJson[
  8008. taskCount
  8009. ].eList,
  8010. courseType,
  8011. taskCount,
  8012. toolIndex,
  8013. tool.toolDetail,
  8014. chapInfoList[courseType].chapterInfo[0].taskJson[
  8015. taskCount
  8016. ].taskDetail,
  8017. tool
  8018. )
  8019. "
  8020. >
  8021. <img
  8022. src="../../assets/icon/newIcons/rootImg.png"
  8023. alt=""
  8024. />
  8025. AI评分
  8026. </div>
  8027. <div class="ScoreBtn" v-else>
  8028. <img
  8029. src="../../assets/icon/newIcons/rootImg.png"
  8030. alt=""
  8031. />
  8032. 正在评分
  8033. </div>
  8034. </div>
  8035. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8036. </div>
  8037. <div
  8038. class="group_workBox"
  8039. v-for="(g, gindex) in courseGroup.group"
  8040. :key="gindex"
  8041. >
  8042. <div class="group_box">
  8043. <div class="group_title">
  8044. <el-tooltip
  8045. class="item"
  8046. effect="light"
  8047. :content="g.name"
  8048. placement="top"
  8049. >
  8050. <div class="group_name">{{ g.name }}</div>
  8051. </el-tooltip>
  8052. </div>
  8053. <div
  8054. class="group_work"
  8055. v-if="
  8056. g.works &&
  8057. g.works.length &&
  8058. g.works[toolIndex].length
  8059. "
  8060. >
  8061. <div
  8062. class="works"
  8063. style="
  8064. width: 200px;
  8065. height: 140px;
  8066. margin: 10px 10px 10px 0;
  8067. border-radius: 15px;
  8068. box-shadow: 0 0 6px 1px #dfdada;
  8069. "
  8070. v-for="(w, wIndex) in g.works[toolIndex]"
  8071. :key="wIndex"
  8072. :class="w.type == 1 ? 'isTypeOne' : ''"
  8073. >
  8074. <div class="workImg">
  8075. <img
  8076. :src="w.works"
  8077. @click="previewImg(w.works, w)"
  8078. alt
  8079. />
  8080. <div
  8081. class="answerScore"
  8082. v-if="w.score"
  8083. @click.stop="openScore(w)"
  8084. :class="{
  8085. rightW:
  8086. w.userid == userid ||
  8087. tType == 1 ||
  8088. tType == 4
  8089. }"
  8090. >
  8091. {{ JSON.parse(w.score).wScore }}分
  8092. </div>
  8093. <div
  8094. class="answerScore"
  8095. @click.stop="openScore(w)"
  8096. v-else-if="courseDetail.userid == userid"
  8097. :class="{
  8098. rightW:
  8099. w.userid == userid ||
  8100. tType == 1 ||
  8101. tType == 4
  8102. }"
  8103. >
  8104. 评分
  8105. </div>
  8106. <img
  8107. class="deleteImg"
  8108. src="../../assets/deleteworks.png"
  8109. v-if="
  8110. w.userid == userid || tType == 1 || tType == 4
  8111. "
  8112. @click.stop="deleteWorks(w.wid)"
  8113. alt
  8114. />
  8115. </div>
  8116. <div class="comment" style="min-width: 200px">
  8117. <div class="worksName">
  8118. <div>{{ w.sName }}</div>
  8119. </div>
  8120. <div class="commentList">
  8121. <div class="commentList">
  8122. <div
  8123. class="commentImg"
  8124. @click="
  8125. isLikes(
  8126. w.wid,
  8127. userid,
  8128. 1,
  8129. null,
  8130. w.isLikes,
  8131. w.sName
  8132. )
  8133. "
  8134. >
  8135. <img
  8136. :src="w.isLikes == true ? likes : noLikes"
  8137. alt=""
  8138. />
  8139. </div>
  8140. <div>{{ w.likesCount }}</div>
  8141. </div>
  8142. <div
  8143. class="commentList"
  8144. style="margin-right: 15px"
  8145. >
  8146. <div
  8147. class="commentImg"
  8148. @click="
  8149. commentOther(
  8150. w,
  8151. toolIndex,
  8152. wIndex,
  8153. null,
  8154. g.id
  8155. )
  8156. "
  8157. >
  8158. <img
  8159. src="../../assets/icon/comment/comment.png"
  8160. alt=""
  8161. />
  8162. </div>
  8163. <div>{{ w.commentCount }}</div>
  8164. </div>
  8165. </div>
  8166. </div>
  8167. </div>
  8168. </div>
  8169. <div class="group_work" v-else>暂无提交作业</div>
  8170. </div>
  8171. </div>
  8172. <div
  8173. :id="'tool-' + toolIndex"
  8174. :style="{
  8175. height:
  8176. isCloseList[toolIndex].isClose == 1
  8177. ? retrnToolHeight('tool-' + toolIndex)
  8178. : 'auto',
  8179. overflow:
  8180. isCloseList[toolIndex].isClose == 1
  8181. ? 'hidden'
  8182. : 'unset'
  8183. }"
  8184. class="worksDetailBox"
  8185. v-if="
  8186. worksStudent.length &&
  8187. worksStudent[toolIndex].length > 0
  8188. "
  8189. >
  8190. <div
  8191. class="works"
  8192. style="
  8193. width: 200px;
  8194. height: 140px;
  8195. margin: 10px 10px 10px 0;
  8196. border-radius: 15px;
  8197. box-shadow: 0 0 6px 1px #dfdada;
  8198. "
  8199. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8200. :key="wIndex"
  8201. >
  8202. <!-- @click="previewImg(w.works)" -->
  8203. <div class="workImg">
  8204. <img
  8205. :src="w.works"
  8206. @click="previewImg(w.works, w)"
  8207. alt
  8208. />
  8209. <div
  8210. class="answerScore"
  8211. v-if="w.score"
  8212. @click.stop="openScore(w)"
  8213. :class="{
  8214. rightW:
  8215. w.userid == userid || tType == 1 || tType == 4
  8216. }"
  8217. >
  8218. {{ JSON.parse(w.score).wScore }}分
  8219. </div>
  8220. <div
  8221. class="answerScore"
  8222. @click.stop="openScore(w)"
  8223. v-else-if="
  8224. courseDetail.userid == userid &&
  8225. courseDetail.state != 6 &&
  8226. chapInfoList[courseType].chapterInfo[0]
  8227. .taskJson[taskCount].eList &&
  8228. chapInfoList[courseType].chapterInfo[0]
  8229. .taskJson[taskCount].eList.length
  8230. "
  8231. :class="{
  8232. rightW:
  8233. w.userid == userid || tType == 1 || tType == 4
  8234. }"
  8235. >
  8236. 评分
  8237. </div>
  8238. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  8239. <div
  8240. v-else-if="
  8241. (courseDetail.userid == userid ||
  8242. (courseDetail.course_teacher &&
  8243. courseDetail.course_teacher.indexOf(userid) !=
  8244. -1) ||
  8245. (w.userid == userid && sIsOpen)) &&
  8246. courseDetail.state == 6 &&
  8247. ((chapInfoList[courseType].chapterInfo[0]
  8248. .taskJson[taskCount].eList &&
  8249. chapInfoList[courseType].chapterInfo[0]
  8250. .taskJson[taskCount].eList.length) ||
  8251. (tool.eList && tool.eList.length))
  8252. "
  8253. >
  8254. <el-popover
  8255. placement="top"
  8256. width="318"
  8257. :disabled="AIloading[toolIndex][wIndex].loading"
  8258. trigger="hover"
  8259. >
  8260. <markScore
  8261. :loading="AIloading[toolIndex][wIndex].loading"
  8262. :markScoreVisible="markScoreVisible"
  8263. :ref="`markSco${toolIndex}${wIndex}`"
  8264. @updateLoading="updateLoading"
  8265. @updateDocSco="updateDocSco"
  8266. @refreshOther="refreshOther"
  8267. @markScoreDig="markScoreDig"
  8268. :tool="tool"
  8269. :wIndex="wIndex"
  8270. :scoCon="w"
  8271. :toolIndex="toolIndex"
  8272. :key="refreshKey"
  8273. :stage="courseType"
  8274. :task="taskCount"
  8275. :scoTit="
  8276. chapInfoList[courseType].chapterInfo[0]
  8277. .taskJson[taskCount].eList
  8278. "
  8279. >
  8280. </markScore>
  8281. <div
  8282. class="answerScore"
  8283. @click="
  8284. markScoreDig2(
  8285. w.sName,
  8286. worksStudent,
  8287. w.userid,
  8288. toolIndex,
  8289. chapInfoList[courseType].chapterInfo[0]
  8290. .taskJson[taskCount].eList,
  8291. AIloading[toolIndex][wIndex].loading,
  8292. tool
  8293. )
  8294. "
  8295. slot="reference"
  8296. :class="{
  8297. rightW:
  8298. w.userid == userid ||
  8299. tType == 1 ||
  8300. tType == 4 ||
  8301. w.ateacher == userid
  8302. }"
  8303. >
  8304. <span v-if="AIloading[toolIndex][wIndex].sco">
  8305. {{
  8306. AIloading[toolIndex][wIndex].loading
  8307. ? "评分中"
  8308. : AIloading[toolIndex][wIndex].sco + "分"
  8309. }}
  8310. </span>
  8311. <span v-else>
  8312. {{
  8313. AIloading[toolIndex][wIndex].loading
  8314. ? "评分中"
  8315. : "评分"
  8316. }}
  8317. </span>
  8318. </div>
  8319. </el-popover>
  8320. </div>
  8321. <img
  8322. class="deleteImg"
  8323. src="../../assets/deleteworks.png"
  8324. v-if="
  8325. w.userid == userid || tType == 1 || tType == 4
  8326. "
  8327. @click.stop="deleteWorks(w.wid)"
  8328. alt
  8329. />
  8330. </div>
  8331. <div class="comment" style="min-width: 200px">
  8332. <div class="worksName">
  8333. <div>{{ w.sName }}</div>
  8334. </div>
  8335. <div class="commentList">
  8336. <div class="commentList">
  8337. <div
  8338. class="commentImg"
  8339. @click="
  8340. isLikes(
  8341. w.wid,
  8342. userid,
  8343. 1,
  8344. null,
  8345. w.isLikes,
  8346. w.sName
  8347. )
  8348. "
  8349. >
  8350. <img
  8351. :src="w.isLikes == true ? likes : noLikes"
  8352. alt=""
  8353. />
  8354. </div>
  8355. <div>{{ w.likesCount }}</div>
  8356. </div>
  8357. <div class="commentList" style="margin-right: 15px">
  8358. <div
  8359. class="commentImg"
  8360. @click="commentOther(w, toolIndex, wIndex)"
  8361. >
  8362. <img
  8363. src="../../assets/icon/comment/comment.png"
  8364. alt=""
  8365. />
  8366. </div>
  8367. <div>{{ w.commentCount }}</div>
  8368. </div>
  8369. </div>
  8370. </div>
  8371. </div>
  8372. </div>
  8373. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8374. 未提交
  8375. </div>
  8376. <div
  8377. class="noWorksS"
  8378. v-if="noWorksS && noWorksS[toolIndex].length"
  8379. >
  8380. <div
  8381. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8382. :key="sIndex"
  8383. class="noWorksName"
  8384. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8385. >
  8386. <el-tooltip
  8387. effect="dark"
  8388. :content="s.student"
  8389. placement="top"
  8390. >
  8391. <span>{{ s.student }}</span>
  8392. </el-tooltip>
  8393. </div>
  8394. </div>
  8395. </div>
  8396. <div
  8397. v-if="
  8398. tType &&
  8399. ((tType == 2 && sIsOpen == true) ||
  8400. tType == 1 ||
  8401. tType == 4) &&
  8402. tool.tool.indexOf(26) != -1
  8403. "
  8404. class="worksBox"
  8405. >
  8406. <div
  8407. class="zuoyeYulan"
  8408. v-if="
  8409. worksStudent.length &&
  8410. worksStudent[toolIndex].length > 0
  8411. "
  8412. >
  8413. <div class="worksTop">
  8414. <div>作业预览</div>
  8415. <div
  8416. class="corOpen"
  8417. @click="contract(toolIndex)"
  8418. v-if="
  8419. isCloseList[toolIndex].isCloseBoolean &&
  8420. isCloseList[toolIndex].isClose == 0
  8421. "
  8422. >
  8423. 折叠
  8424. </div>
  8425. <div
  8426. class="corOpen"
  8427. @click="contract(toolIndex)"
  8428. v-if="isCloseList[toolIndex].isClose == 1"
  8429. >
  8430. 展开
  8431. </div>
  8432. </div>
  8433. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8434. </div>
  8435. <div
  8436. :id="'tool-' + toolIndex"
  8437. :style="{
  8438. height:
  8439. isCloseList[toolIndex].isClose == 1
  8440. ? retrnToolHeight('tool-' + toolIndex)
  8441. : 'auto',
  8442. overflow:
  8443. isCloseList[toolIndex].isClose == 1
  8444. ? 'hidden'
  8445. : 'unset'
  8446. }"
  8447. class="worksDetailBox"
  8448. v-if="
  8449. worksStudent.length &&
  8450. worksStudent[toolIndex].length > 0
  8451. "
  8452. >
  8453. <div
  8454. class="works"
  8455. style="width: 240px; height: 140px; overflow: hidden"
  8456. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8457. :key="wIndex"
  8458. :class="w.type == 1 ? 'isTypeOne' : ''"
  8459. >
  8460. <div class="workImg" v-if="w.type == 0">
  8461. <img
  8462. :src="w.works"
  8463. @click="previewImg(w.works, w)"
  8464. alt
  8465. />
  8466. <img
  8467. class="deleteImg"
  8468. src="../../assets/deleteworks.png"
  8469. v-if="
  8470. w.userid == userid || tType == 1 || tType == 4
  8471. "
  8472. @click.stop="deleteWorks(w.wid)"
  8473. alt
  8474. />
  8475. </div>
  8476. <div class="workImg" v-if="w.type == 1">
  8477. <img :src="word" @click="openFile(w.works)" alt />
  8478. <img
  8479. class="deleteImg"
  8480. src="../../assets/deleteworks.png"
  8481. v-if="
  8482. w.userid == userid || tType == 1 || tType == 4
  8483. "
  8484. @click.stop="deleteWorks(w.wid)"
  8485. alt
  8486. />
  8487. </div>
  8488. <div class="worksName">
  8489. <div>{{ w.sName }}</div>
  8490. </div>
  8491. </div>
  8492. </div>
  8493. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8494. 未提交
  8495. </div>
  8496. <div
  8497. class="noWorksS"
  8498. v-if="noWorksS && noWorksS[toolIndex].length"
  8499. >
  8500. <div
  8501. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8502. :key="sIndex"
  8503. class="noWorksName"
  8504. >
  8505. <el-tooltip
  8506. effect="dark"
  8507. :content="s.student"
  8508. placement="top"
  8509. >
  8510. <span>{{ s.student }}</span>
  8511. </el-tooltip>
  8512. </div>
  8513. </div>
  8514. </div>
  8515. <div
  8516. v-if="
  8517. tType &&
  8518. ((tType == 2 && sIsOpen == true) ||
  8519. tType == 1 ||
  8520. tType == 4) &&
  8521. tool.tool.indexOf(40) != -1
  8522. "
  8523. class="worksBox"
  8524. >
  8525. <div
  8526. class="zuoyeYulan"
  8527. v-if="
  8528. worksStudent.length &&
  8529. worksStudent[toolIndex].length > 0
  8530. "
  8531. >
  8532. <div class="worksTop">
  8533. <div>作业预览</div>
  8534. <div
  8535. class="corOpen"
  8536. @click="contract(toolIndex)"
  8537. v-if="
  8538. isCloseList[toolIndex].isCloseBoolean &&
  8539. isCloseList[toolIndex].isClose == 0
  8540. "
  8541. >
  8542. 折叠
  8543. </div>
  8544. <div
  8545. class="corOpen"
  8546. @click="contract(toolIndex)"
  8547. v-if="isCloseList[toolIndex].isClose == 1"
  8548. >
  8549. 展开
  8550. </div>
  8551. </div>
  8552. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8553. </div>
  8554. <div
  8555. :id="'tool-' + toolIndex"
  8556. :style="{
  8557. height:
  8558. isCloseList[toolIndex].isClose == 1
  8559. ? retrnToolHeight('tool-' + toolIndex)
  8560. : 'auto',
  8561. overflow:
  8562. isCloseList[toolIndex].isClose == 1
  8563. ? 'hidden'
  8564. : 'unset'
  8565. }"
  8566. class="worksDetailBox"
  8567. v-if="
  8568. worksStudent.length &&
  8569. worksStudent[toolIndex].length > 0
  8570. "
  8571. >
  8572. <div
  8573. class="works"
  8574. style="
  8575. width: 200px;
  8576. height: 140px;
  8577. margin: 10px 10px 10px 0;
  8578. border-radius: 15px;
  8579. box-shadow: 0 0 6px 1px #dfdada;
  8580. "
  8581. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8582. :key="wIndex"
  8583. :class="w.type == 1 ? 'isTypeOne' : ''"
  8584. >
  8585. <div class="workImg">
  8586. <img
  8587. src="../../assets/icon/works/noImg.png"
  8588. @click="openPj(w.works, toolIndex)"
  8589. alt
  8590. />
  8591. <img
  8592. class="deleteImg"
  8593. src="../../assets/deleteworks.png"
  8594. v-if="
  8595. w.userid == userid || tType == 1 || tType == 4
  8596. "
  8597. @click.stop="deleteWorks(w.wid)"
  8598. alt
  8599. />
  8600. </div>
  8601. <div class="comment" style="min-width: 200px">
  8602. <div class="worksName">
  8603. <div>{{ w.sName }}</div>
  8604. </div>
  8605. <div class="commentList">
  8606. <div class="commentList">
  8607. <div
  8608. class="commentImg"
  8609. @click="
  8610. isLikes(
  8611. w.wid,
  8612. userid,
  8613. 1,
  8614. null,
  8615. w.isLikes,
  8616. w.sName
  8617. )
  8618. "
  8619. >
  8620. <img
  8621. :src="w.isLikes == true ? likes : noLikes"
  8622. alt=""
  8623. />
  8624. </div>
  8625. <div>{{ w.likesCount }}</div>
  8626. </div>
  8627. <div class="commentList" style="margin-right: 15px">
  8628. <div
  8629. class="commentImg"
  8630. @click="commentOther(w, toolIndex, wIndex)"
  8631. >
  8632. <img
  8633. src="../../assets/icon/comment/comment.png"
  8634. alt=""
  8635. />
  8636. </div>
  8637. <div>{{ w.commentCount }}</div>
  8638. </div>
  8639. </div>
  8640. </div>
  8641. </div>
  8642. </div>
  8643. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8644. 未提交
  8645. </div>
  8646. <div
  8647. class="noWorksS"
  8648. v-if="noWorksS && noWorksS[toolIndex].length"
  8649. >
  8650. <div
  8651. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8652. :key="sIndex"
  8653. class="noWorksName"
  8654. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8655. >
  8656. <el-tooltip
  8657. effect="dark"
  8658. :content="s.student"
  8659. placement="top"
  8660. >
  8661. <span>{{ s.student }}</span>
  8662. </el-tooltip>
  8663. </div>
  8664. </div>
  8665. </div>
  8666. <div
  8667. v-if="
  8668. tType &&
  8669. tType == 2 &&
  8670. !sIsOpen &&
  8671. tool.tool.indexOf(40) != -1
  8672. "
  8673. class="worksBox"
  8674. >
  8675. <div
  8676. class="zuoyeYulan"
  8677. v-if="workStudent[toolIndex].length > 0"
  8678. >
  8679. <span class="worksTitle">作业预览</span>
  8680. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8681. </div>
  8682. <div
  8683. class="worksDetailBox"
  8684. v-if="workStudent[toolIndex].length > 0"
  8685. >
  8686. <div
  8687. class="works"
  8688. style="
  8689. width: 200px;
  8690. height: 140px;
  8691. margin: 10px 10px 10px 0;
  8692. "
  8693. v-for="(w, wIndex) in workStudent[toolIndex]"
  8694. :key="wIndex"
  8695. >
  8696. <div class="workImg">
  8697. <img
  8698. src="../../assets/icon/works/noImg.png"
  8699. @click="openPj(w.works, toolIndex)"
  8700. alt
  8701. />
  8702. <img
  8703. class="deleteImg"
  8704. src="../../assets/deleteworks.png"
  8705. v-if="
  8706. w.userid == userid || tType == 1 || tType == 4
  8707. "
  8708. @click.stop="deleteWorks(w.wid)"
  8709. alt
  8710. />
  8711. </div>
  8712. <div class="worksName">
  8713. <div>{{ w.sName }}</div>
  8714. </div>
  8715. </div>
  8716. </div>
  8717. </div>
  8718. <div
  8719. v-if="
  8720. tType &&
  8721. ((tType == 2 && sIsOpen == true) ||
  8722. tType == 1 ||
  8723. tType == 4) &&
  8724. tool.tool.indexOf(41) != -1
  8725. "
  8726. >
  8727. <AnswerData2
  8728. v-if="
  8729. worksStudent.length &&
  8730. worksStudent[toolIndex].length > 0
  8731. "
  8732. :problemJson="tool.selectJson.answer"
  8733. :people="worksStudent[toolIndex]"
  8734. ></AnswerData2>
  8735. </div>
  8736. <div
  8737. v-if="
  8738. tType &&
  8739. ((tType == 2 && sIsOpen == true) ||
  8740. tType == 1 ||
  8741. tType == 4) &&
  8742. tool.tool.indexOf(41) != -1
  8743. "
  8744. class="worksBox"
  8745. >
  8746. <div
  8747. class="zuoyeYulan"
  8748. v-if="
  8749. worksStudent.length &&
  8750. worksStudent[toolIndex].length > 0
  8751. "
  8752. >
  8753. <div class="worksTop">
  8754. <div>作业预览</div>
  8755. <div
  8756. class="corOpen"
  8757. @click="contract(toolIndex)"
  8758. v-if="
  8759. isCloseList[toolIndex].isCloseBoolean &&
  8760. isCloseList[toolIndex].isClose == 0
  8761. "
  8762. >
  8763. 折叠
  8764. </div>
  8765. <div
  8766. class="corOpen"
  8767. @click="contract(toolIndex)"
  8768. v-if="isCloseList[toolIndex].isClose == 1"
  8769. >
  8770. 展开
  8771. </div>
  8772. </div>
  8773. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8774. </div>
  8775. <div
  8776. :id="'tool-' + toolIndex"
  8777. :style="{
  8778. height:
  8779. isCloseList[toolIndex].isClose == 1
  8780. ? retrnToolHeight('tool-' + toolIndex)
  8781. : 'auto',
  8782. overflow:
  8783. isCloseList[toolIndex].isClose == 1
  8784. ? 'hidden'
  8785. : 'unset'
  8786. }"
  8787. class="worksDetailBox"
  8788. v-if="
  8789. worksStudent.length &&
  8790. worksStudent[toolIndex].length > 0
  8791. "
  8792. >
  8793. <div
  8794. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8795. :key="wIndex"
  8796. class="isWorksName2"
  8797. @click="openXz(w, toolIndex)"
  8798. >
  8799. {{ w.sName }}
  8800. <img
  8801. class="deleteImg deleteImg2"
  8802. src="../../assets/deleteworks.png"
  8803. v-if="w.userid == userid || tType == 1 || tType == 4"
  8804. @click.stop="deleteWorks(w.wid)"
  8805. alt
  8806. />
  8807. </div>
  8808. <!-- <div
  8809. class="works"
  8810. style="
  8811. width: 200px;
  8812. height: 140px;
  8813. margin: 10px 10px 10px 0;
  8814. border-radius: 15px;
  8815. box-shadow: 0 0 6px 1px #dfdada;
  8816. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  8817. :class="w.type == 5 ? 'isTypeOne' : ''">
  8818. <div class="workImg">
  8819. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  8820. </div>
  8821. <div class="worksName">
  8822. <div>{{ w.sName }}</div>
  8823. </div>
  8824. </div> -->
  8825. </div>
  8826. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8827. 未提交
  8828. </div>
  8829. <div
  8830. class="noWorksS"
  8831. v-if="noWorksS && noWorksS[toolIndex].length"
  8832. >
  8833. <div
  8834. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8835. :key="sIndex"
  8836. class="noWorksName"
  8837. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  8838. >
  8839. <el-tooltip
  8840. effect="dark"
  8841. :content="s.student"
  8842. placement="top"
  8843. >
  8844. <span>{{ s.student }}</span>
  8845. </el-tooltip>
  8846. </div>
  8847. </div>
  8848. </div>
  8849. <div
  8850. v-if="
  8851. tType &&
  8852. tType == 2 &&
  8853. !sIsOpen &&
  8854. tool.tool.indexOf(41) != -1
  8855. "
  8856. class="worksBox"
  8857. >
  8858. <div
  8859. class="zuoyeYulan"
  8860. v-if="workStudent[toolIndex].length > 0"
  8861. >
  8862. <span class="worksTitle">作业预览</span>
  8863. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8864. </div>
  8865. <div
  8866. class="worksDetailBox"
  8867. v-if="workStudent[toolIndex].length > 0"
  8868. >
  8869. <div
  8870. class="works"
  8871. style="
  8872. width: 200px;
  8873. height: 140px;
  8874. margin: 10px 10px 10px 0;
  8875. "
  8876. v-for="(w, wIndex) in workStudent[toolIndex]"
  8877. :key="wIndex"
  8878. >
  8879. <div class="workImg">
  8880. <img
  8881. src="../../assets/icon/works/noImg.png"
  8882. @click="openXz(w, toolIndex)"
  8883. alt
  8884. />
  8885. <img
  8886. class="deleteImg"
  8887. src="../../assets/deleteworks.png"
  8888. v-if="
  8889. w.userid == userid || tType == 1 || tType == 4
  8890. "
  8891. @click.stop="deleteWorks(w.wid)"
  8892. alt
  8893. />
  8894. </div>
  8895. <div class="worksName">
  8896. <div>{{ w.sName }}</div>
  8897. </div>
  8898. </div>
  8899. </div>
  8900. </div>
  8901. <div v-if="false" class="xuan_right_box">
  8902. <div
  8903. class="tool_right_box"
  8904. v-for="(item, index) in tool.sentenceList"
  8905. :key="index"
  8906. >
  8907. <div>
  8908. <span
  8909. style="word-break: break-all; white-space: normal"
  8910. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  8911. >
  8912. </div>
  8913. <div class="right_box_xuan">
  8914. <span>正确率</span>
  8915. <span>{{
  8916. (checkJson[toolIndex][index].right
  8917. ? checkJson[toolIndex][index].right
  8918. : 0) + "%"
  8919. }}</span>
  8920. </div>
  8921. <div class="right_box_xuan">
  8922. <span>答对人数</span>
  8923. <span>{{
  8924. checkJson[toolIndex][index].rightPerson.length
  8925. }}</span>
  8926. </div>
  8927. </div>
  8928. </div>
  8929. <div
  8930. v-if="
  8931. tType &&
  8932. ((tType == 2 && sIsOpen == true) ||
  8933. tType == 1 ||
  8934. tType == 4) &&
  8935. tool.tool.indexOf(47) != -1
  8936. "
  8937. >
  8938. <AnswerData
  8939. v-if="
  8940. checkJson[toolIndex].length &&
  8941. (tool.sentenceList || tool.sentenceList.length > 0)
  8942. "
  8943. :people="checkJson[toolIndex]"
  8944. ></AnswerData>
  8945. </div>
  8946. <div
  8947. v-if="
  8948. tType &&
  8949. tType == 2 &&
  8950. !sIsOpen &&
  8951. tool.tool.indexOf(47) != -1
  8952. "
  8953. class="worksBox"
  8954. >
  8955. <div
  8956. class="zuoyeYulan"
  8957. v-if="workStudent[toolIndex].length > 0"
  8958. >
  8959. <span class="worksTitle">作业预览</span>
  8960. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8961. </div>
  8962. <div
  8963. class="worksDetailBox"
  8964. v-if="workStudent[toolIndex].length > 0"
  8965. >
  8966. <div
  8967. class="works"
  8968. style="
  8969. width: 200px;
  8970. height: 140px;
  8971. margin: 10px 10px 10px 0;
  8972. "
  8973. v-for="(w, wIndex) in workStudent[toolIndex]"
  8974. :key="wIndex"
  8975. >
  8976. <!-- @click="openXz(w, toolIndex)" -->
  8977. <div class="workImg" @click="openSen(w, toolIndex)">
  8978. <img src="../../assets/icon/works/noImg.png" alt />
  8979. <img
  8980. class="deleteImg"
  8981. src="../../assets/deleteworks.png"
  8982. v-if="
  8983. w.userid == userid || tType == 1 || tType == 4
  8984. "
  8985. @click.stop="deleteWorks(w.wid)"
  8986. alt
  8987. />
  8988. </div>
  8989. <div class="worksName">
  8990. <div>
  8991. {{ w.sName }}
  8992. </div>
  8993. </div>
  8994. </div>
  8995. </div>
  8996. </div>
  8997. <div
  8998. v-if="
  8999. tType &&
  9000. ((tType == 2 && sIsOpen == true) ||
  9001. tType == 1 ||
  9002. tType == 4) &&
  9003. tool.tool.indexOf(47) != -1
  9004. "
  9005. class="worksBox"
  9006. >
  9007. <div
  9008. class="zuoyeYulan"
  9009. v-if="
  9010. worksStudent.length &&
  9011. worksStudent[toolIndex].length > 0
  9012. "
  9013. >
  9014. <div class="worksTop">
  9015. <div>作业预览</div>
  9016. <div
  9017. class="corOpen"
  9018. @click="contract(toolIndex)"
  9019. v-if="
  9020. isCloseList[toolIndex].isCloseBoolean &&
  9021. isCloseList[toolIndex].isClose == 0
  9022. "
  9023. >
  9024. 折叠
  9025. </div>
  9026. <div
  9027. class="corOpen"
  9028. @click="contract(toolIndex)"
  9029. v-if="isCloseList[toolIndex].isClose == 1"
  9030. >
  9031. 展开
  9032. </div>
  9033. </div>
  9034. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9035. </div>
  9036. <div
  9037. :id="'tool-' + toolIndex"
  9038. :style="{
  9039. height:
  9040. isCloseList[toolIndex].isClose == 1
  9041. ? retrnToolHeight('tool-' + toolIndex)
  9042. : 'auto',
  9043. overflow:
  9044. isCloseList[toolIndex].isClose == 1
  9045. ? 'hidden'
  9046. : 'unset'
  9047. }"
  9048. class="worksDetailBox"
  9049. v-if="
  9050. worksStudent.length &&
  9051. worksStudent[toolIndex].length > 0
  9052. "
  9053. >
  9054. <!-- @click="openXz(w, toolIndex)" -->
  9055. <div
  9056. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9057. :key="wIndex"
  9058. class="isWorksName2"
  9059. @click="openSen(w, toolIndex)"
  9060. >
  9061. {{ w.sName }}
  9062. <img
  9063. class="deleteImg deleteImg2"
  9064. src="../../assets/deleteworks.png"
  9065. v-if="w.userid == userid || tType == 1 || tType == 4"
  9066. @click.stop="deleteWorks(w.wid)"
  9067. alt
  9068. />
  9069. </div>
  9070. </div>
  9071. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9072. 未提交
  9073. </div>
  9074. <div
  9075. class="noWorksS"
  9076. v-if="noWorksS && noWorksS[toolIndex].length"
  9077. >
  9078. <div
  9079. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9080. :key="sIndex"
  9081. class="noWorksName"
  9082. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9083. >
  9084. <el-tooltip
  9085. effect="dark"
  9086. :content="s.student"
  9087. placement="top"
  9088. >
  9089. <span>{{ s.student }}</span>
  9090. </el-tooltip>
  9091. </div>
  9092. </div>
  9093. </div>
  9094. <div
  9095. v-if="
  9096. tType &&
  9097. ((tType == 2 && sIsOpen == true) ||
  9098. tType == 1 ||
  9099. tType == 4) &&
  9100. tool.tool.indexOf(48) != -1
  9101. "
  9102. class="worksBox"
  9103. >
  9104. <div
  9105. class="zuoyeYulan"
  9106. style="display: flex;justify-content: space-between;align-items: center;"
  9107. v-if="
  9108. worksStudent.length &&
  9109. worksStudent[toolIndex].length > 0
  9110. "
  9111. >
  9112. <div class="worksTop">
  9113. <div>作业预览</div>
  9114. <div
  9115. class="corOpen"
  9116. @click="contract(toolIndex)"
  9117. v-if="
  9118. isCloseList[toolIndex].isCloseBoolean &&
  9119. isCloseList[toolIndex].isClose == 0
  9120. "
  9121. >
  9122. 折叠
  9123. </div>
  9124. <div
  9125. class="corOpen"
  9126. @click="contract(toolIndex)"
  9127. v-if="isCloseList[toolIndex].isClose == 1"
  9128. >
  9129. 展开
  9130. </div>
  9131. </div>
  9132. <div
  9133. style="display: flex;"
  9134. v-if="
  9135. (courseDetail.userid == userid ||
  9136. (courseDetail.course_teacher &&
  9137. courseDetail.course_teacher.indexOf(userid) !=
  9138. -1)) &&
  9139. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9140. taskCount
  9141. ].eList &&
  9142. chapInfoList[courseType].chapterInfo[0].taskJson[
  9143. taskCount
  9144. ].eList.length) ||
  9145. (tool.eList && tool.eList.length)) &&
  9146. courseDetail.state == 6
  9147. "
  9148. >
  9149. <div
  9150. style="margin-right:10px"
  9151. class="ScoreBtn"
  9152. @click="
  9153. resetLoopEva(
  9154. worksStudent[toolIndex],
  9155. chapInfoList[courseType].chapterInfo[0].taskJson[
  9156. taskCount
  9157. ].eList,
  9158. courseType,
  9159. taskCount,
  9160. toolIndex,
  9161. tool.toolDetail,
  9162. worksStudent
  9163. )
  9164. "
  9165. >
  9166. 一键重置
  9167. </div>
  9168. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9169. <img
  9170. src="../../assets/icon/newIcons/rootImg.png"
  9171. alt=""
  9172. />
  9173. AI评分
  9174. </div>
  9175. <div
  9176. class="ScoreBtn"
  9177. v-else-if="!loopLoading[toolIndex].loading"
  9178. @click="
  9179. loopEva(
  9180. worksStudent[toolIndex],
  9181. chapInfoList[courseType].chapterInfo[0].taskJson[
  9182. taskCount
  9183. ].eList,
  9184. courseType,
  9185. taskCount,
  9186. toolIndex,
  9187. tool.toolDetail,
  9188. chapInfoList[courseType].chapterInfo[0].taskJson[
  9189. taskCount
  9190. ].taskDetail,
  9191. tool
  9192. )
  9193. "
  9194. >
  9195. <img
  9196. src="../../assets/icon/newIcons/rootImg.png"
  9197. alt=""
  9198. />
  9199. AI评分
  9200. </div>
  9201. <div class="ScoreBtn" v-else>
  9202. <img
  9203. src="../../assets/icon/newIcons/rootImg.png"
  9204. alt=""
  9205. />
  9206. 正在评分
  9207. </div>
  9208. </div>
  9209. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9210. </div>
  9211. <div
  9212. :id="'tool-' + toolIndex"
  9213. :style="{
  9214. height:
  9215. isCloseList[toolIndex].isClose == 1
  9216. ? retrnToolHeight('tool-' + toolIndex)
  9217. : 'auto',
  9218. overflow:
  9219. isCloseList[toolIndex].isClose == 1
  9220. ? 'hidden'
  9221. : 'unset'
  9222. }"
  9223. class="worksDetailBox"
  9224. v-if="
  9225. worksStudent.length &&
  9226. worksStudent[toolIndex].length > 0
  9227. "
  9228. >
  9229. <div
  9230. class="works"
  9231. style="
  9232. width: 200px;
  9233. height: 140px;
  9234. margin: 10px 10px 10px 0;
  9235. border-radius: 15px;
  9236. box-shadow: 0 0 6px 1px #dfdada;
  9237. "
  9238. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9239. :key="wIndex"
  9240. :class="w.type == 1 ? 'isTypeOne' : ''"
  9241. >
  9242. <div class="workImg">
  9243. <img :src="word" @click="openTable(w)" alt />
  9244. <!-- @click="openFile(w.works)" -->
  9245. <div
  9246. class="answerScore"
  9247. v-if="w.score"
  9248. @click.stop="openScore(w)"
  9249. :class="{
  9250. rightW:
  9251. w.userid == userid ||
  9252. tType == 1 ||
  9253. tType == 4 ||
  9254. w.ateacher == userid
  9255. }"
  9256. >
  9257. {{ JSON.parse(w.score).wScore }}分
  9258. </div>
  9259. <div
  9260. class="answerScore"
  9261. @click.stop="openScore(w)"
  9262. v-else-if="
  9263. courseDetail.userid == userid &&
  9264. courseDetail.state != 6 &&
  9265. chapInfoList[courseType].chapterInfo[0]
  9266. .taskJson[taskCount].eList &&
  9267. chapInfoList[courseType].chapterInfo[0]
  9268. .taskJson[taskCount].eList.length
  9269. "
  9270. :class="{
  9271. rightW:
  9272. w.userid == userid ||
  9273. tType == 1 ||
  9274. tType == 4 ||
  9275. w.ateacher == userid
  9276. }"
  9277. >
  9278. 评分
  9279. </div>
  9280. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9281. <div
  9282. v-else-if="
  9283. (courseDetail.userid == userid ||
  9284. (courseDetail.course_teacher &&
  9285. courseDetail.course_teacher.indexOf(userid) !=
  9286. -1) ||
  9287. (w.userid == userid && sIsOpen)) &&
  9288. courseDetail.state == 6 &&
  9289. ((chapInfoList[courseType].chapterInfo[0]
  9290. .taskJson[taskCount].eList &&
  9291. chapInfoList[courseType].chapterInfo[0]
  9292. .taskJson[taskCount].eList.length) ||
  9293. (tool.eList && tool.eList.length))
  9294. "
  9295. >
  9296. <el-popover
  9297. placement="top"
  9298. width="318"
  9299. :disabled="AIloading[toolIndex][wIndex].loading"
  9300. trigger="hover"
  9301. >
  9302. <markScore
  9303. :loading="AIloading[toolIndex][wIndex].loading"
  9304. :markScoreVisible="markScoreVisible"
  9305. :ref="`markSco${toolIndex}${wIndex}`"
  9306. @updateLoading="updateLoading"
  9307. @updateDocSco="updateDocSco"
  9308. @refreshOther="refreshOther"
  9309. @markScoreDig="markScoreDig"
  9310. :tool="tool"
  9311. :wIndex="wIndex"
  9312. :scoCon="w"
  9313. :toolIndex="toolIndex"
  9314. :key="refreshKey"
  9315. :stage="courseType"
  9316. :task="taskCount"
  9317. :scoTit="
  9318. chapInfoList[courseType].chapterInfo[0]
  9319. .taskJson[taskCount].eList
  9320. "
  9321. >
  9322. </markScore>
  9323. <div
  9324. class="answerScore"
  9325. @click="
  9326. markScoreDig2(
  9327. w.sName,
  9328. worksStudent,
  9329. w.userid,
  9330. toolIndex,
  9331. chapInfoList[courseType].chapterInfo[0]
  9332. .taskJson[taskCount].eList,
  9333. AIloading[toolIndex][wIndex].loading,
  9334. tool
  9335. )
  9336. "
  9337. slot="reference"
  9338. :class="{
  9339. rightW:
  9340. w.userid == userid ||
  9341. tType == 1 ||
  9342. tType == 4 ||
  9343. w.ateacher == userid
  9344. }"
  9345. >
  9346. <span v-if="AIloading[toolIndex][wIndex].sco">
  9347. {{
  9348. AIloading[toolIndex][wIndex].loading
  9349. ? "评分中"
  9350. : AIloading[toolIndex][wIndex].sco + "分"
  9351. }}
  9352. </span>
  9353. <span v-else>
  9354. {{
  9355. AIloading[toolIndex][wIndex].loading
  9356. ? "评分中"
  9357. : "评分"
  9358. }}
  9359. </span>
  9360. </div>
  9361. </el-popover>
  9362. </div>
  9363. <img
  9364. class="deleteImg"
  9365. src="../../assets/deleteworks.png"
  9366. v-if="
  9367. w.userid == userid || tType == 1 || tType == 4
  9368. "
  9369. @click.stop="deleteWorks(w.wid)"
  9370. alt
  9371. />
  9372. </div>
  9373. <div class="comment" style="min-width: 200px">
  9374. <div class="worksName">
  9375. <div>{{ w.sName }}</div>
  9376. </div>
  9377. <div class="commentList">
  9378. <div class="commentList">
  9379. <div
  9380. class="commentImg"
  9381. @click="
  9382. isLikes(
  9383. w.wid,
  9384. userid,
  9385. 1,
  9386. null,
  9387. w.isLikes,
  9388. w.sName
  9389. )
  9390. "
  9391. >
  9392. <img
  9393. :src="w.isLikes == true ? likes : noLikes"
  9394. alt=""
  9395. />
  9396. </div>
  9397. <div>{{ w.likesCount }}</div>
  9398. </div>
  9399. <div class="commentList" style="margin-right: 15px">
  9400. <div
  9401. class="commentImg"
  9402. @click="commentOther(w, toolIndex, wIndex)"
  9403. >
  9404. <img
  9405. src="../../assets/icon/comment/comment.png"
  9406. alt=""
  9407. />
  9408. </div>
  9409. <div>{{ w.commentCount }}</div>
  9410. </div>
  9411. </div>
  9412. </div>
  9413. </div>
  9414. </div>
  9415. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9416. 未提交
  9417. </div>
  9418. <div
  9419. class="noWorksS"
  9420. v-if="noWorksS && noWorksS[toolIndex].length"
  9421. >
  9422. <div
  9423. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9424. :key="sIndex"
  9425. class="noWorksName"
  9426. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9427. >
  9428. <el-tooltip
  9429. effect="dark"
  9430. :content="s.student"
  9431. placement="top"
  9432. >
  9433. <span>{{ s.student }}</span>
  9434. </el-tooltip>
  9435. </div>
  9436. </div>
  9437. </div>
  9438. <div
  9439. v-if="
  9440. tType &&
  9441. tType == 2 &&
  9442. !sIsOpen &&
  9443. tool.tool.indexOf(48) != -1
  9444. "
  9445. class="worksBox"
  9446. >
  9447. <div
  9448. class="zuoyeYulan"
  9449. v-if="workStudent[toolIndex].length > 0"
  9450. >
  9451. <span class="worksTitle">作业预览</span>
  9452. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9453. </div>
  9454. <div
  9455. class="worksDetailBox"
  9456. v-if="workStudent[toolIndex].length > 0"
  9457. >
  9458. <div
  9459. class="works"
  9460. style="
  9461. width: 200px;
  9462. height: 140px;
  9463. margin: 10px 10px 10px 0;
  9464. box-shadow: 0 0 6px 1px #dfdada;
  9465. "
  9466. v-for="(w, wIndex) in workStudent[toolIndex]"
  9467. :key="wIndex"
  9468. >
  9469. <div class="workImg">
  9470. <img :src="word" @click="openTable(w)" alt />
  9471. <div
  9472. class="answerScore"
  9473. v-if="w.score"
  9474. @click.stop="openScore(w)"
  9475. :class="{
  9476. rightW:
  9477. w.userid == userid || tType == 1 || tType == 4
  9478. }"
  9479. >
  9480. {{ JSON.parse(w.score).wScore }}分
  9481. </div>
  9482. <div
  9483. class="answerScore"
  9484. @click.stop="openScore(w)"
  9485. v-else-if="courseDetail.userid == userid"
  9486. :class="{
  9487. rightW:
  9488. w.userid == userid || tType == 1 || tType == 4
  9489. }"
  9490. >
  9491. 评分
  9492. </div>
  9493. <div
  9494. class="stuLookScore"
  9495. v-if="
  9496. w.userid == userid ||
  9497. (tType == 1 &&
  9498. courseDetail.state == 6 &&
  9499. ((chapInfoList[courseType].chapterInfo[0]
  9500. .taskJson[taskCount].eList &&
  9501. chapInfoList[courseType].chapterInfo[0]
  9502. .taskJson[taskCount].eList.length) ||
  9503. (tool.eList && tool.eList.length)))
  9504. "
  9505. >
  9506. <el-popover
  9507. placement="top"
  9508. width="318"
  9509. trigger="hover"
  9510. >
  9511. <markScore
  9512. :loading="AIloading[toolIndex][wIndex].loading"
  9513. :markScoreVisible="markScoreVisible"
  9514. :ref="`markSco${toolIndex}${wIndex}`"
  9515. @updateLoading="updateLoading"
  9516. @updateDocSco="updateDocSco"
  9517. @refreshOther="refreshOther"
  9518. @markScoreDig="markScoreDig"
  9519. :tool="tool"
  9520. :wIndex="wIndex"
  9521. :scoCon="w"
  9522. :toolIndex="toolIndex"
  9523. :key="refreshKey"
  9524. :stage="courseType"
  9525. :task="taskCount"
  9526. :scoTit="
  9527. chapInfoList[courseType].chapterInfo[0]
  9528. .taskJson[taskCount].eList
  9529. "
  9530. >
  9531. </markScore>
  9532. <div
  9533. @click="
  9534. markScoreDig2(
  9535. w.sName,
  9536. worksStudent,
  9537. w.userid,
  9538. toolIndex,
  9539. chapInfoList[courseType].chapterInfo[0]
  9540. .taskJson[taskCount].eList,
  9541. AIloading[toolIndex][wIndex].loading,
  9542. tool
  9543. )
  9544. "
  9545. slot="reference"
  9546. >
  9547. <span v-if="AIloading[toolIndex][wIndex].sco">
  9548. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9549. </span>
  9550. <span v-else>
  9551. 评分
  9552. </span>
  9553. </div>
  9554. </el-popover>
  9555. </div>
  9556. <img
  9557. class="deleteImg"
  9558. src="../../assets/deleteworks.png"
  9559. v-if="
  9560. w.userid == userid || tType == 1 || tType == 4
  9561. "
  9562. @click.stop="deleteWorks(w.wid)"
  9563. alt
  9564. />
  9565. </div>
  9566. <div class="worksName">
  9567. <div>{{ w.sName }}</div>
  9568. </div>
  9569. </div>
  9570. </div>
  9571. </div>
  9572. <div
  9573. v-if="
  9574. tType &&
  9575. ((tType == 2 && sIsOpen == true) ||
  9576. tType == 1 ||
  9577. tType == 4) &&
  9578. tool.tool.indexOf(52) != -1
  9579. "
  9580. class="worksBox"
  9581. >
  9582. <div
  9583. class="zuoyeYulan"
  9584. style="display: flex;justify-content: space-between;align-items: center;"
  9585. v-if="
  9586. worksStudent.length &&
  9587. worksStudent[toolIndex].length > 0
  9588. "
  9589. >
  9590. <div class="worksTop">
  9591. <div>作业预览</div>
  9592. <div
  9593. class="corOpen"
  9594. @click="contract(toolIndex)"
  9595. v-if="
  9596. isCloseList[toolIndex].isCloseBoolean &&
  9597. isCloseList[toolIndex].isClose == 0
  9598. "
  9599. >
  9600. 折叠
  9601. </div>
  9602. <div
  9603. class="corOpen"
  9604. @click="contract(toolIndex)"
  9605. v-if="isCloseList[toolIndex].isClose == 1"
  9606. >
  9607. 展开
  9608. </div>
  9609. </div>
  9610. <div
  9611. style="display: flex;"
  9612. v-if="
  9613. (courseDetail.userid == userid ||
  9614. (courseDetail.course_teacher &&
  9615. courseDetail.course_teacher.indexOf(userid) !=
  9616. -1)) &&
  9617. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9618. taskCount
  9619. ].eList &&
  9620. chapInfoList[courseType].chapterInfo[0].taskJson[
  9621. taskCount
  9622. ].eList.length) ||
  9623. (tool.eList && tool.eList.length)) &&
  9624. courseDetail.state == 6
  9625. "
  9626. >
  9627. <!-- <div style="display: flex;" v-if="courseDetail.userid == userid && ((chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length) || (tool.eList && tool.eList.length)) && courseDetail.state == 6"> -->
  9628. <div
  9629. @click="
  9630. resetLoopEva(
  9631. worksStudent[toolIndex],
  9632. chapInfoList[courseType].chapterInfo[0].taskJson[
  9633. taskCount
  9634. ].eList,
  9635. courseType,
  9636. taskCount,
  9637. toolIndex,
  9638. tool.toolDetail,
  9639. tool
  9640. )
  9641. "
  9642. style="margin-right:10px"
  9643. class="ScoreBtn"
  9644. >
  9645. 一键重置
  9646. </div>
  9647. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9648. <img
  9649. src="../../assets/icon/newIcons/rootImg.png"
  9650. alt=""
  9651. />
  9652. AI评分
  9653. </div>
  9654. <div
  9655. class="ScoreBtn"
  9656. v-else-if="!loopLoading[toolIndex].loading"
  9657. @click="
  9658. loopEva(
  9659. worksStudent[toolIndex],
  9660. chapInfoList[courseType].chapterInfo[0].taskJson[
  9661. taskCount
  9662. ].eList,
  9663. courseType,
  9664. taskCount,
  9665. toolIndex,
  9666. tool.toolDetail,
  9667. chapInfoList[courseType].chapterInfo[0].taskJson[
  9668. taskCount
  9669. ].taskDetail,
  9670. tool
  9671. )
  9672. "
  9673. >
  9674. <img
  9675. src="../../assets/icon/newIcons/rootImg.png"
  9676. alt=""
  9677. />
  9678. AI评分
  9679. </div>
  9680. <div class="ScoreBtn" v-else>
  9681. <img
  9682. src="../../assets/icon/newIcons/rootImg.png"
  9683. alt=""
  9684. />
  9685. 正在评分
  9686. </div>
  9687. </div>
  9688. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9689. </div>
  9690. <div
  9691. :id="'tool-' + toolIndex"
  9692. :style="{
  9693. height:
  9694. isCloseList[toolIndex].isClose == 1
  9695. ? retrnToolHeight('tool-' + toolIndex)
  9696. : 'auto',
  9697. overflow:
  9698. isCloseList[toolIndex].isClose == 1
  9699. ? 'hidden'
  9700. : 'unset'
  9701. }"
  9702. class="worksDetailBox"
  9703. v-if="
  9704. worksStudent.length &&
  9705. worksStudent[toolIndex].length > 0
  9706. "
  9707. >
  9708. <div
  9709. class="works"
  9710. style="
  9711. width: 200px;
  9712. height: 140px;
  9713. margin: 10px 10px 10px 0;
  9714. border-radius: 15px;
  9715. box-shadow: 0 0 6px 1px #dfdada;
  9716. "
  9717. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9718. :key="wIndex"
  9719. :class="w.type == 1 ? 'isTypeOne' : ''"
  9720. >
  9721. <div class="workImg">
  9722. <img :src="word" @click="openWord(w)" alt />
  9723. <!-- @click="openFile(w.works)" -->
  9724. <div
  9725. class="answerScore"
  9726. v-if="w.score"
  9727. @click.stop="openScore(w)"
  9728. :class="{
  9729. rightW:
  9730. w.userid == userid ||
  9731. tType == 1 ||
  9732. tType == 4 ||
  9733. w.ateacher == userid
  9734. }"
  9735. >
  9736. {{ JSON.parse(w.score).wScore }}分
  9737. </div>
  9738. <div
  9739. class="answerScore"
  9740. @click.stop="openScore(w)"
  9741. v-else-if="
  9742. courseDetail.userid == userid &&
  9743. courseDetail.state != 6 &&
  9744. chapInfoList[courseType].chapterInfo[0]
  9745. .taskJson[taskCount].eList &&
  9746. chapInfoList[courseType].chapterInfo[0]
  9747. .taskJson[taskCount].eList.length
  9748. "
  9749. :class="{
  9750. rightW:
  9751. w.userid == userid ||
  9752. tType == 1 ||
  9753. tType == 4 ||
  9754. w.ateacher == userid
  9755. }"
  9756. >
  9757. 评分
  9758. </div>
  9759. <!-- <div v-else-if="courseDetail.userid == userid && courseDetail.state == 6 && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList && chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].eList.length"> -->
  9760. <div
  9761. v-else-if="
  9762. (courseDetail.userid == userid ||
  9763. (courseDetail.course_teacher &&
  9764. courseDetail.course_teacher.indexOf(userid) !=
  9765. -1) ||
  9766. (w.userid == userid && sIsOpen)) &&
  9767. courseDetail.state == 6 &&
  9768. ((chapInfoList[courseType].chapterInfo[0]
  9769. .taskJson[taskCount].eList &&
  9770. chapInfoList[courseType].chapterInfo[0]
  9771. .taskJson[taskCount].eList.length) ||
  9772. (tool.eList && tool.eList.length))
  9773. "
  9774. >
  9775. <!-- <div
  9776. class="answerScore"
  9777. @click="markScoreDig(w.userid,toolIndex)"
  9778. :class="{
  9779. rightW:
  9780. w.userid == userid ||
  9781. tType == 1 ||
  9782. tType == 4 ||
  9783. w.ateacher == userid,
  9784. }"
  9785. >
  9786. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  9787. </div> -->
  9788. <!-- @show="handleShow(toolIndex,wIndex)"
  9789. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  9790. <el-popover
  9791. placement="top"
  9792. width="318"
  9793. :disabled="AIloading[toolIndex][wIndex].loading"
  9794. trigger="hover"
  9795. >
  9796. <markScore
  9797. :loading="AIloading[toolIndex][wIndex].loading"
  9798. :markScoreVisible="markScoreVisible"
  9799. :ref="`markSco${toolIndex}${wIndex}`"
  9800. @updateLoading="updateLoading"
  9801. @updateDocSco="updateDocSco"
  9802. @refreshOther="refreshOther"
  9803. @markScoreDig="markScoreDig"
  9804. :tool="tool"
  9805. :wIndex="wIndex"
  9806. :scoCon="w"
  9807. :toolIndex="toolIndex"
  9808. :key="refreshKey"
  9809. :stage="courseType"
  9810. :task="taskCount"
  9811. :scoTit="
  9812. chapInfoList[courseType].chapterInfo[0]
  9813. .taskJson[taskCount].eList
  9814. "
  9815. >
  9816. </markScore>
  9817. <div
  9818. class="answerScore"
  9819. @click="
  9820. markScoreDig2(
  9821. w.sName,
  9822. worksStudent,
  9823. w.userid,
  9824. toolIndex,
  9825. chapInfoList[courseType].chapterInfo[0]
  9826. .taskJson[taskCount].eList,
  9827. AIloading[toolIndex][wIndex].loading,
  9828. tool
  9829. )
  9830. "
  9831. slot="reference"
  9832. :class="{
  9833. rightW:
  9834. w.userid == userid ||
  9835. tType == 1 ||
  9836. tType == 4 ||
  9837. w.ateacher == userid
  9838. }"
  9839. >
  9840. <span v-if="AIloading[toolIndex][wIndex].sco">
  9841. {{
  9842. AIloading[toolIndex][wIndex].loading
  9843. ? "评分中"
  9844. : AIloading[toolIndex][wIndex].sco + "分"
  9845. }}
  9846. </span>
  9847. <span v-else>
  9848. {{
  9849. AIloading[toolIndex][wIndex].loading
  9850. ? "评分中"
  9851. : "评分"
  9852. }}
  9853. </span>
  9854. </div>
  9855. </el-popover>
  9856. </div>
  9857. <img
  9858. class="deleteImg"
  9859. src="../../assets/deleteworks.png"
  9860. v-if="
  9861. w.userid == userid || tType == 1 || tType == 4
  9862. "
  9863. @click.stop="deleteWorks(w.wid)"
  9864. alt
  9865. />
  9866. </div>
  9867. <div class="comment" style="min-width: 200px">
  9868. <div class="worksName">
  9869. <div>{{ w.sName }}</div>
  9870. </div>
  9871. <div class="commentList">
  9872. <div class="commentList">
  9873. <div
  9874. class="commentImg"
  9875. @click="
  9876. isLikes(
  9877. w.wid,
  9878. userid,
  9879. 1,
  9880. null,
  9881. w.isLikes,
  9882. w.sName
  9883. )
  9884. "
  9885. >
  9886. <img
  9887. :src="w.isLikes == true ? likes : noLikes"
  9888. alt=""
  9889. />
  9890. </div>
  9891. <div>{{ w.likesCount }}</div>
  9892. </div>
  9893. <div class="commentList" style="margin-right: 15px">
  9894. <div
  9895. class="commentImg"
  9896. @click="commentOther(w, toolIndex, wIndex)"
  9897. >
  9898. <img
  9899. src="../../assets/icon/comment/comment.png"
  9900. alt=""
  9901. />
  9902. </div>
  9903. <div>{{ w.commentCount }}</div>
  9904. </div>
  9905. </div>
  9906. </div>
  9907. </div>
  9908. </div>
  9909. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9910. 未提交
  9911. </div>
  9912. <div
  9913. class="noWorksS"
  9914. v-if="noWorksS && noWorksS[toolIndex].length"
  9915. >
  9916. <div
  9917. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9918. :key="sIndex"
  9919. class="noWorksName"
  9920. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  9921. >
  9922. <el-tooltip
  9923. effect="dark"
  9924. :content="s.student"
  9925. placement="top"
  9926. >
  9927. <span>{{ s.student }}</span>
  9928. </el-tooltip>
  9929. </div>
  9930. </div>
  9931. </div>
  9932. <div
  9933. v-if="
  9934. tType &&
  9935. tType == 2 &&
  9936. !sIsOpen &&
  9937. tool.tool.indexOf(52) != -1
  9938. "
  9939. class="worksBox"
  9940. >
  9941. <div
  9942. class="zuoyeYulan"
  9943. v-if="workStudent[toolIndex].length > 0"
  9944. >
  9945. <span class="worksTitle">作业预览</span>
  9946. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9947. </div>
  9948. <div
  9949. class="worksDetailBox"
  9950. v-if="workStudent[toolIndex].length > 0"
  9951. >
  9952. <div
  9953. class="works"
  9954. style="
  9955. width: 200px;
  9956. height: 140px;
  9957. margin: 10px 10px 10px 0;
  9958. box-shadow: 0 0 6px 1px #dfdada;
  9959. "
  9960. v-for="(w, wIndex) in workStudent[toolIndex]"
  9961. :key="wIndex"
  9962. >
  9963. <div class="workImg">
  9964. <img :src="word" @click="openWord(w)" alt />
  9965. <div
  9966. class="answerScore"
  9967. v-if="w.score"
  9968. @click.stop="openScore(w)"
  9969. :class="{
  9970. rightW:
  9971. w.userid == userid || tType == 1 || tType == 4
  9972. }"
  9973. >
  9974. {{ JSON.parse(w.score).wScore }}分
  9975. </div>
  9976. <div
  9977. class="answerScore"
  9978. @click.stop="openScore(w)"
  9979. v-else-if="courseDetail.userid == userid"
  9980. :class="{
  9981. rightW:
  9982. w.userid == userid || tType == 1 || tType == 4
  9983. }"
  9984. >
  9985. 评分
  9986. </div>
  9987. <div
  9988. class="stuLookScore"
  9989. v-if="
  9990. w.userid == userid ||
  9991. (tType == 1 &&
  9992. courseDetail.state == 6 &&
  9993. ((chapInfoList[courseType].chapterInfo[0]
  9994. .taskJson[taskCount].eList &&
  9995. chapInfoList[courseType].chapterInfo[0]
  9996. .taskJson[taskCount].eList.length) ||
  9997. (tool.eList && tool.eList.length)))
  9998. "
  9999. >
  10000. <el-popover
  10001. placement="top"
  10002. width="318"
  10003. trigger="hover"
  10004. >
  10005. <markScore
  10006. :loading="AIloading[toolIndex][wIndex].loading"
  10007. :markScoreVisible="markScoreVisible"
  10008. :ref="`markSco${toolIndex}${wIndex}`"
  10009. @updateLoading="updateLoading"
  10010. @updateDocSco="updateDocSco"
  10011. @refreshOther="refreshOther"
  10012. @markScoreDig="markScoreDig"
  10013. :tool="tool"
  10014. :wIndex="wIndex"
  10015. :scoCon="w"
  10016. :toolIndex="toolIndex"
  10017. :key="refreshKey"
  10018. :stage="courseType"
  10019. :task="taskCount"
  10020. :scoTit="
  10021. chapInfoList[courseType].chapterInfo[0]
  10022. .taskJson[taskCount].eList
  10023. "
  10024. >
  10025. </markScore>
  10026. <div
  10027. @click="
  10028. markScoreDig2(
  10029. w.sName,
  10030. worksStudent,
  10031. w.userid,
  10032. toolIndex,
  10033. chapInfoList[courseType].chapterInfo[0]
  10034. .taskJson[taskCount].eList,
  10035. AIloading[toolIndex][wIndex].loading,
  10036. tool
  10037. )
  10038. "
  10039. slot="reference"
  10040. >
  10041. <span v-if="AIloading[toolIndex][wIndex].sco">
  10042. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10043. </span>
  10044. <span v-else>
  10045. 评分
  10046. </span>
  10047. </div>
  10048. </el-popover>
  10049. </div>
  10050. <img
  10051. class="deleteImg"
  10052. src="../../assets/deleteworks.png"
  10053. v-if="
  10054. w.userid == userid || tType == 1 || tType == 4
  10055. "
  10056. @click.stop="deleteWorks(w.wid)"
  10057. alt
  10058. />
  10059. </div>
  10060. <div class="worksName">
  10061. <div>{{ w.sName }}</div>
  10062. </div>
  10063. </div>
  10064. </div>
  10065. </div>
  10066. <div
  10067. v-if="tool.tool.indexOf(49) != -1"
  10068. class="xuan_right_box"
  10069. style="margin: 0 15px 0 25px; width: 93%"
  10070. >
  10071. <div
  10072. v-if="courseDetail.userid == userid"
  10073. style="
  10074. display: flex;
  10075. justify-content: flex-end;
  10076. margin-right: 10px;
  10077. "
  10078. >
  10079. <el-button
  10080. type="primary"
  10081. size="small"
  10082. @click="addTools(49, toolIndex, taskCount)"
  10083. >分组设置</el-button
  10084. >
  10085. </div>
  10086. <div
  10087. v-if="groupStudentUid[toolIndex]"
  10088. class="group_staic_box"
  10089. >
  10090. <div
  10091. v-for="(gp, gd) in tool.groupJson.group"
  10092. :key="gd"
  10093. class="group_staic"
  10094. >
  10095. <span> {{ gp.name }}</span>
  10096. <span>
  10097. 目前人数{{
  10098. groupStudentUid[toolIndex][gd].length
  10099. }}人</span
  10100. >
  10101. </div>
  10102. </div>
  10103. </div>
  10104. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10105. <div
  10106. class="zuoyeYulan"
  10107. v-if="
  10108. worksStudent.length &&
  10109. worksStudent[toolIndex].length > 0
  10110. "
  10111. >
  10112. <span class="worksTitle">作业预览</span>
  10113. </div>
  10114. <div>
  10115. <div
  10116. class="group_workBox"
  10117. v-for="(g, gindex) in tool.groupJson.group"
  10118. :key="gindex"
  10119. >
  10120. <div
  10121. class="group_box"
  10122. v-if="
  10123. groupStudentUid[toolIndex] &&
  10124. worksStudent[toolIndex] &&
  10125. (worksStudent[toolIndex][gindex].length ||
  10126. groupStudentUid[toolIndex][gindex].indexOf(
  10127. userid
  10128. ) != -1)
  10129. "
  10130. >
  10131. <div class="group_title">
  10132. <el-tooltip
  10133. class="item"
  10134. effect="light"
  10135. :content="g.name"
  10136. placement="top"
  10137. >
  10138. <div class="group_name">{{ g.name }}</div>
  10139. </el-tooltip>
  10140. <el-button
  10141. type="primary"
  10142. v-if="
  10143. groupStudentUid[toolIndex][gindex].indexOf(
  10144. userid
  10145. ) != -1
  10146. "
  10147. @click="groupUpload(toolIndex, taskCount, gindex)"
  10148. >上传作业</el-button
  10149. >
  10150. </div>
  10151. <div class="group_work">
  10152. <div
  10153. class="works"
  10154. style="
  10155. width: 200px;
  10156. height: 140px;
  10157. margin: 10px 10px 10px 0;
  10158. border-radius: 15px;
  10159. box-shadow: 0 0 6px 1px #dfdada;
  10160. "
  10161. v-for="(w, wIndex) in worksStudent[toolIndex][
  10162. gindex
  10163. ]"
  10164. :key="wIndex"
  10165. :class="w.type == 1 ? 'isTypeOne' : ''"
  10166. >
  10167. <div class="workImg" v-if="w.type == 0">
  10168. <img
  10169. :src="w.works"
  10170. @click="previewImg(w.works, w)"
  10171. alt
  10172. />
  10173. <div
  10174. class="answerScore"
  10175. v-if="w.score"
  10176. @click.stop="openScore(w)"
  10177. :class="{
  10178. rightW:
  10179. w.userid == userid ||
  10180. tType == 1 ||
  10181. tType == 4 ||
  10182. w.ateacher == userid
  10183. }"
  10184. >
  10185. {{ JSON.parse(w.score).wScore }}分
  10186. </div>
  10187. <div
  10188. class="answerScore"
  10189. @click.stop="openScore(w)"
  10190. v-else-if="courseDetail.userid == userid"
  10191. :class="{
  10192. rightW:
  10193. w.userid == userid ||
  10194. tType == 1 ||
  10195. tType == 4 ||
  10196. w.ateacher == userid
  10197. }"
  10198. >
  10199. 评分
  10200. </div>
  10201. <img
  10202. class="deleteImg"
  10203. src="../../assets/deleteworks.png"
  10204. v-if="
  10205. w.userid == userid ||
  10206. tType == 1 ||
  10207. tType == 4
  10208. "
  10209. @click.stop="deleteWorks(w.wid)"
  10210. alt
  10211. />
  10212. </div>
  10213. <div class="workImg" v-if="w.type == 1">
  10214. <img
  10215. :src="word"
  10216. @click="openFile(w.works)"
  10217. alt
  10218. />
  10219. <!-- @click="openFile(w.works)" -->
  10220. <div
  10221. class="answerScore"
  10222. v-if="w.score"
  10223. @click.stop="openScore(w)"
  10224. :class="{
  10225. rightW:
  10226. w.userid == userid ||
  10227. tType == 1 ||
  10228. tType == 4 ||
  10229. w.ateacher == userid
  10230. }"
  10231. >
  10232. {{ JSON.parse(w.score).wScore }}分
  10233. </div>
  10234. <div
  10235. class="answerScore"
  10236. @click.stop="openScore(w)"
  10237. v-else-if="courseDetail.userid == userid"
  10238. :class="{
  10239. rightW:
  10240. w.userid == userid ||
  10241. tType == 1 ||
  10242. tType == 4 ||
  10243. w.ateacher == userid
  10244. }"
  10245. >
  10246. 评分
  10247. </div>
  10248. <img
  10249. class="deleteImg"
  10250. src="../../assets/deleteworks.png"
  10251. v-if="
  10252. w.userid == userid ||
  10253. tType == 1 ||
  10254. tType == 4
  10255. "
  10256. @click.stop="deleteWorks(w.wid)"
  10257. alt
  10258. />
  10259. </div>
  10260. <div class="workImg" v-if="w.type == 3">
  10261. <img
  10262. style="cursor: pointer"
  10263. :src="video"
  10264. @click="openVideo(w)"
  10265. alt
  10266. />
  10267. <!-- @click="openVideo(w.works)" -->
  10268. <div
  10269. class="answerScore"
  10270. v-if="w.score"
  10271. @click.stop="openScore(w)"
  10272. :class="{
  10273. rightW:
  10274. w.userid == userid ||
  10275. tType == 1 ||
  10276. tType == 4 ||
  10277. w.ateacher == userid
  10278. }"
  10279. >
  10280. {{ JSON.parse(w.score).wScore }}分
  10281. </div>
  10282. <div
  10283. class="answerScore"
  10284. @click.stop="openScore(w)"
  10285. v-else-if="courseDetail.userid == userid"
  10286. :class="{
  10287. rightW:
  10288. w.userid == userid ||
  10289. tType == 1 ||
  10290. tType == 4 ||
  10291. w.ateacher == userid
  10292. }"
  10293. >
  10294. 评分
  10295. </div>
  10296. <img
  10297. class="deleteImg"
  10298. src="../../assets/deleteworks.png"
  10299. v-if="
  10300. w.userid == userid ||
  10301. tType == 1 ||
  10302. tType == 4
  10303. "
  10304. @click.stop="deleteWorks(w.wid)"
  10305. alt
  10306. />
  10307. </div>
  10308. <div class="workImg" v-if="w.type == 12">
  10309. <img
  10310. style="cursor: pointer"
  10311. :src="word2"
  10312. @click="downloadFile(w.works)"
  10313. alt
  10314. />
  10315. <!-- @click="openVideo(w.works)" -->
  10316. <div
  10317. class="answerScore"
  10318. v-if="w.score"
  10319. @click.stop="openScore(w)"
  10320. :class="{
  10321. rightW:
  10322. w.userid == userid ||
  10323. tType == 1 ||
  10324. tType == 4 ||
  10325. w.ateacher == userid
  10326. }"
  10327. >
  10328. {{ JSON.parse(w.score).wScore }}分
  10329. </div>
  10330. <div
  10331. class="answerScore"
  10332. @click.stop="openScore(w)"
  10333. v-else-if="courseDetail.userid == userid"
  10334. :class="{
  10335. rightW:
  10336. w.userid == userid ||
  10337. tType == 1 ||
  10338. tType == 4 ||
  10339. w.ateacher == userid
  10340. }"
  10341. >
  10342. 评分
  10343. </div>
  10344. <img
  10345. class="deleteImg"
  10346. src="../../assets/deleteworks.png"
  10347. v-if="
  10348. w.userid == userid ||
  10349. tType == 1 ||
  10350. tType == 4
  10351. "
  10352. @click.stop="deleteWorks(w.wid)"
  10353. alt
  10354. />
  10355. </div>
  10356. <div class="comment" style="min-width: 200px">
  10357. <div class="worksName">
  10358. <div>{{ w.sName }}</div>
  10359. </div>
  10360. <div class="commentList">
  10361. <div class="commentList">
  10362. <div
  10363. class="commentImg"
  10364. @click="
  10365. isLikes(
  10366. w.wid,
  10367. userid,
  10368. 1,
  10369. null,
  10370. w.isLikes,
  10371. w.sName
  10372. )
  10373. "
  10374. >
  10375. <img
  10376. :src="
  10377. w.isLikes == true ? likes : noLikes
  10378. "
  10379. alt=""
  10380. />
  10381. </div>
  10382. <div>{{ w.likesCount }}</div>
  10383. </div>
  10384. <div
  10385. class="commentList"
  10386. style="margin-right: 15px"
  10387. >
  10388. <div
  10389. class="commentImg"
  10390. @click="
  10391. commentOther(
  10392. w,
  10393. toolIndex,
  10394. wIndex,
  10395. gindex
  10396. )
  10397. "
  10398. >
  10399. <img
  10400. src="../../assets/icon/comment/comment.png"
  10401. alt=""
  10402. />
  10403. </div>
  10404. <div>{{ w.commentCount }}</div>
  10405. </div>
  10406. </div>
  10407. </div>
  10408. </div>
  10409. </div>
  10410. </div>
  10411. </div>
  10412. </div>
  10413. </div>
  10414. <div
  10415. style="width:92%;margin: 0 0 0 40px;"
  10416. v-if="
  10417. courseDetail.state == 6 && tool.eList && tool.eList.length
  10418. "
  10419. >
  10420. <evaTable :eList="tool.eList"></evaTable>
  10421. </div>
  10422. </div>
  10423. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10424. 上传文件
  10425. <input
  10426. type="file"
  10427. accept="image/png, image/gif, image/jpeg"
  10428. style="display: none"
  10429. @change="beforeUpload1($event, 2, index)"
  10430. />
  10431. </div>-->
  10432. </div>
  10433. </div>
  10434. <!-- <div
  10435. class="vedioBox"
  10436. style="margin-top: 10px"
  10437. v-if="
  10438. courseDetail.userid == userid ||
  10439. (courseDetail.course_teacher &&
  10440. courseDetail.course_teacher.indexOf(userid) != -1)
  10441. "
  10442. :style="{
  10443. borderRadius:
  10444. !(
  10445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10446. .toolChoose[0].tool &&
  10447. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10448. .toolChoose[0].tool.length > 0
  10449. ) &&
  10450. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10451. .taskDetail == '' &&
  10452. vChapterData[taskCount].length == 0 &&
  10453. fileC[taskCount].length == 0
  10454. ? '0 0 20px 20px'
  10455. : '20px',
  10456. }"
  10457. >
  10458. <div
  10459. class="queTop"
  10460. @click="isClose = !isClose"
  10461. style="
  10462. padding: 15px 0 15px 37px;
  10463. justify-content: space-between;
  10464. "
  10465. >
  10466. <div class="queTopTitle">新增工具</div>
  10467. <div class="queTopRight">
  10468. <div class="queTopClose" v-if="isClose == 0">
  10469. 展开
  10470. <div class="closeImg">
  10471. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10472. </div>
  10473. </div>
  10474. <div class="queTopClose" v-if="isClose == 1">
  10475. 折叠
  10476. <div class="openImg">
  10477. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10478. </div>
  10479. </div>
  10480. <el-button
  10481. style="margin: 0 30px 0 auto"
  10482. type="primary"
  10483. size="small"
  10484. v-if="isClose == 1 && checktoolArray.length > 0"
  10485. @click.stop="addToolChoose"
  10486. >确定</el-button
  10487. >
  10488. </div>
  10489. </div>
  10490. <div
  10491. class="tool_work_box"
  10492. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10493. >
  10494. <div class="tool_box">
  10495. <div class="tool_type_box">
  10496. <div class="chooseWho">
  10497. <div
  10498. :class="toolType == 0 ? 'isChooseActive' : ''"
  10499. @click="(toolType = 0), $forceUpdate()"
  10500. >
  10501. 互动类
  10502. </div>
  10503. <div
  10504. :class="toolType == 1 ? 'isChooseActive' : ''"
  10505. @click="(toolType = 1), $forceUpdate()"
  10506. >
  10507. 思维类
  10508. </div>
  10509. <div
  10510. :class="toolType == 2 ? 'isChooseActive' : ''"
  10511. @click="(toolType = 2), $forceUpdate()"
  10512. >
  10513. 测评类
  10514. </div>
  10515. <div
  10516. :class="toolType == 3 ? 'isChooseActive' : ''"
  10517. @click="(toolType = 3), $forceUpdate()"
  10518. >
  10519. 编程类
  10520. </div>
  10521. <div
  10522. :class="toolType == 5 ? 'isChooseActive' : ''"
  10523. @click="(toolType = 5), $forceUpdate()"
  10524. >
  10525. 学科类
  10526. </div>
  10527. </div>
  10528. </div>
  10529. <div>
  10530. <div class="toolSort" v-if="toolType == 0">
  10531. <div class="tool">
  10532. <div class="whiteBIcon" @click="addTools2(10)">
  10533. <img
  10534. src="../../assets/icon/thirdToolList/time.png"
  10535. alt
  10536. />
  10537. <div style="margin: 5px 0">倒计时</div>
  10538. </div>
  10539. <div class="check" @click="addTools2(10)">
  10540. <img
  10541. src="../../assets/icon/checkNo.png"
  10542. alt
  10543. v-if="checktoolArray.indexOf(10) == -1"
  10544. />
  10545. <div class="checkDiv" v-else>
  10546. <img src="../../assets/icon/checkedIs.png" alt /><span
  10547. >已选择</span
  10548. >
  10549. </div>
  10550. </div>
  10551. </div>
  10552. <div class="tool">
  10553. <div class="whiteBIcon" @click="addTools2(65)">
  10554. <img
  10555. src="../../assets/icon/firstToolList/pickPeople.png"
  10556. alt
  10557. />
  10558. <div style="margin: 5px 0">挑人</div>
  10559. </div>
  10560. <div class="check" @click="addTools2(65)">
  10561. <img
  10562. src="../../assets/icon/checkNo.png"
  10563. alt
  10564. v-if="checktoolArray.indexOf(65) == -1"
  10565. />
  10566. <div class="checkDiv" v-else>
  10567. <img src="../../assets/icon/checkedIs.png" alt /><span
  10568. >已选择</span
  10569. >
  10570. </div>
  10571. </div>
  10572. </div>
  10573. </div>
  10574. <div class="toolSort" v-if="toolType == 1">
  10575. <div class="tool">
  10576. <div class="whiteBIcon" @click="addTools2(7)">
  10577. <img
  10578. src="../../assets/icon/secondToolList/mindNetwork.png"
  10579. alt
  10580. />
  10581. <div style="margin: 5px 0">思维网格</div>
  10582. </div>
  10583. <div class="check" @click="addTools2(7)">
  10584. <img
  10585. src="../../assets/icon/checkNo.png"
  10586. alt
  10587. v-if="checktoolArray.indexOf(7) == -1"
  10588. />
  10589. <div class="checkDiv" v-else>
  10590. <img src="../../assets/icon/checkedIs.png" alt /><span
  10591. >已选择</span
  10592. >
  10593. </div>
  10594. </div>
  10595. </div>
  10596. <div class="tool">
  10597. <div class="whiteBIcon" @click="addTools2(1)">
  10598. <img
  10599. src="../../assets/icon/secondToolList/whiteBoard.png"
  10600. alt
  10601. />
  10602. <div style="margin: 5px 0">电子白板</div>
  10603. </div>
  10604. <div class="check" @click="addTools2(1)">
  10605. <img
  10606. src="../../assets/icon/checkNo.png"
  10607. alt
  10608. v-if="checktoolArray.indexOf(1) == -1"
  10609. />
  10610. <div class="checkDiv" v-else>
  10611. <img src="../../assets/icon/checkedIs.png" alt /><span
  10612. >已选择</span
  10613. >
  10614. </div>
  10615. </div>
  10616. </div>
  10617. <div class="tool">
  10618. <div class="whiteBIcon" @click="addTools2(52)">
  10619. <img
  10620. src="../../assets/icon/fourthToolList/text.png"
  10621. alt
  10622. />
  10623. <div style="margin: 5px 0">文档</div>
  10624. </div>
  10625. <div class="check" @click="addTools2(52)">
  10626. <img
  10627. src="../../assets/icon/checkNo.png"
  10628. alt
  10629. v-if="checktoolArray.indexOf(52) == -1"
  10630. />
  10631. <div class="checkDiv" v-else>
  10632. <img src="../../assets/icon/checkedIs.png" alt /><span
  10633. >已选择</span
  10634. >
  10635. </div>
  10636. </div>
  10637. </div>
  10638. <div class="tool">
  10639. <div class="whiteBIcon" @click="addTools2(3)">
  10640. <img
  10641. src="../../assets/icon/secondToolList/mindMapping.png"
  10642. alt
  10643. />
  10644. <div style="margin: 5px 0">思维导图</div>
  10645. </div>
  10646. <div class="check" @click="addTools2(3)">
  10647. <img
  10648. src="../../assets/icon/checkNo.png"
  10649. alt
  10650. v-if="checktoolArray.indexOf(3) == -1"
  10651. />
  10652. <div class="checkDiv" v-else>
  10653. <img src="../../assets/icon/checkedIs.png" alt /><span
  10654. >已选择</span
  10655. >
  10656. </div>
  10657. </div>
  10658. </div>
  10659. <div class="tool">
  10660. <div class="whiteBIcon" @click="addTools2(48)">
  10661. <img
  10662. src="../../assets/icon/fourthToolList/table.png"
  10663. alt
  10664. />
  10665. <div style="margin: 5px 0">表格</div>
  10666. </div>
  10667. <div class="check" @click="addTools2(48)">
  10668. <img
  10669. src="../../assets/icon/checkNo.png"
  10670. alt
  10671. v-if="checktoolArray.indexOf(48) == -1"
  10672. />
  10673. <div class="checkDiv" v-else>
  10674. <img src="../../assets/icon/checkedIs.png" alt /><span
  10675. >已选择</span
  10676. >
  10677. </div>
  10678. </div>
  10679. </div>
  10680. </div>
  10681. <div class="toolSort" v-if="toolType == 6">
  10682. <div v-show="tooC == 49">
  10683. <img
  10684. @click="addTools(tooC, toolIndex, taskCount)"
  10685. src="../../assets/icon/fourthToolList/group.png"
  10686. alt
  10687. />
  10688. <div style="margin: 5px 0">学生分组</div>
  10689. </div>
  10690. </div>
  10691. <div class="toolSort" v-if="toolType == 2">
  10692. <div class="tool">
  10693. <div class="whiteBIcon" @click="addTools2(16)">
  10694. <img
  10695. src="../../assets/icon/thirdToolList/work.png"
  10696. alt
  10697. />
  10698. <div style="margin: 5px 0">作业提交</div>
  10699. </div>
  10700. <div class="check" @click="addTools2(16)">
  10701. <img
  10702. src="../../assets/icon/checkNo.png"
  10703. alt
  10704. v-if="checktoolArray.indexOf(16) == -1"
  10705. />
  10706. <div class="checkDiv" v-else>
  10707. <img src="../../assets/icon/checkedIs.png" alt /><span
  10708. >已选择</span
  10709. >
  10710. </div>
  10711. </div>
  10712. </div>
  10713. <div class="tool">
  10714. <div class="whiteBIcon" @click="addTools2(50)">
  10715. <img
  10716. src="../../assets/icon/thirdToolList/plwork.png"
  10717. alt
  10718. />
  10719. <div style="margin: 5px 0">批量上传</div>
  10720. </div>
  10721. <div class="check" @click="addTools2(50)">
  10722. <img
  10723. src="../../assets/icon/checkNo.png"
  10724. alt
  10725. v-if="checktoolArray.indexOf(50) == -1"
  10726. />
  10727. <div class="checkDiv" v-else>
  10728. <img src="../../assets/icon/checkedIs.png" alt /><span
  10729. >已选择</span
  10730. >
  10731. </div>
  10732. </div>
  10733. </div>
  10734. </div>
  10735. <div class="toolSort" v-if="toolType == 3">
  10736. <div class="tool">
  10737. <div class="whiteBIcon" @click="addTools2(18)">
  10738. <img
  10739. src="../../assets/icon/thirdToolList/trainPlatform.png"
  10740. alt
  10741. />
  10742. <div style="margin: 5px 0">训练平台</div>
  10743. </div>
  10744. <div class="check" @click="addTools2(18)">
  10745. <img
  10746. src="../../assets/icon/checkNo.png"
  10747. alt
  10748. v-if="checktoolArray.indexOf(18) == -1"
  10749. />
  10750. <div class="checkDiv" v-else>
  10751. <img src="../../assets/icon/checkedIs.png" alt /><span
  10752. >已选择</span
  10753. >
  10754. </div>
  10755. </div>
  10756. </div>
  10757. <div class="tool">
  10758. <div class="whiteBIcon" @click="addTools2(21)">
  10759. <img
  10760. src="../../assets/icon/fourthToolList/program.png"
  10761. alt
  10762. />
  10763. <div style="margin: 5px 0">AIoT Blockly</div>
  10764. </div>
  10765. <div class="check" @click="addTools2(21)">
  10766. <img
  10767. src="../../assets/icon/checkNo.png"
  10768. alt
  10769. v-if="checktoolArray.indexOf(21) == -1"
  10770. />
  10771. <div class="checkDiv" v-else>
  10772. <img src="../../assets/icon/checkedIs.png" alt /><span
  10773. >已选择</span
  10774. >
  10775. </div>
  10776. </div>
  10777. </div>
  10778. <div class="tool">
  10779. <div class="whiteBIcon" @click="addTools2(23)">
  10780. <img
  10781. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  10782. alt
  10783. />
  10784. <div style="margin: 5px 0">AI Python</div>
  10785. </div>
  10786. <div class="check" @click="addTools2(23)">
  10787. <img
  10788. src="../../assets/icon/checkNo.png"
  10789. alt
  10790. v-if="checktoolArray.indexOf(23) == -1"
  10791. />
  10792. <div class="checkDiv" v-else>
  10793. <img src="../../assets/icon/checkedIs.png" alt /><span
  10794. >已选择</span
  10795. >
  10796. </div>
  10797. </div>
  10798. </div>
  10799. <div class="tool">
  10800. <div class="whiteBIcon" @click="addTools2(24)">
  10801. <img
  10802. src="../../assets/icon/fourthToolList/AIprogram.png"
  10803. alt
  10804. />
  10805. <div style="margin: 5px 0">AI Blockly</div>
  10806. </div>
  10807. <div class="check" @click="addTools2(24)">
  10808. <img
  10809. src="../../assets/icon/checkNo.png"
  10810. alt
  10811. v-if="checktoolArray.indexOf(24) == -1"
  10812. />
  10813. <div class="checkDiv" v-else>
  10814. <img src="../../assets/icon/checkedIs.png" alt /><span
  10815. >已选择</span
  10816. >
  10817. </div>
  10818. </div>
  10819. </div>
  10820. <div class="tool">
  10821. <div class="whiteBIcon" @click="addTools2(32)">
  10822. <img
  10823. src="../../assets/icon/thirdToolList/code.png"
  10824. alt
  10825. />
  10826. <div style="margin: 5px 0">源码编辑</div>
  10827. </div>
  10828. <div class="check" @click="addTools2(32)">
  10829. <img
  10830. src="../../assets/icon/checkNo.png"
  10831. alt
  10832. v-if="checktoolArray.indexOf(32) == -1"
  10833. />
  10834. <div class="checkDiv" v-else>
  10835. <img src="../../assets/icon/checkedIs.png" alt /><span
  10836. >已选择</span
  10837. >
  10838. </div>
  10839. </div>
  10840. </div>
  10841. <div class="tool">
  10842. <div class="whiteBIcon" @click="addTools2(57)">
  10843. <img
  10844. src="../../assets/icon/fourthToolList/cocopi.png"
  10845. alt
  10846. />
  10847. <div style="margin: 5px 0">CocoPi</div>
  10848. </div>
  10849. <div class="check" @click="addTools2(57)">
  10850. <img
  10851. src="../../assets/icon/checkNo.png"
  10852. alt
  10853. v-if="checktoolArray.indexOf(57) == -1"
  10854. />
  10855. <div class="checkDiv" v-else>
  10856. <img src="../../assets/icon/checkedIs.png" alt /><span
  10857. >已选择</span
  10858. >
  10859. </div>
  10860. </div>
  10861. </div>
  10862. <div class="tool">
  10863. <div class="whiteBIcon" @click="addTools2(63)">
  10864. <img
  10865. src="../../assets/icon/fourthToolList/Wood.png"
  10866. alt
  10867. />
  10868. <div style="margin: 5px 0">海龟编程</div>
  10869. </div>
  10870. <div class="check" @click="addTools2(63)">
  10871. <img
  10872. src="../../assets/icon/checkNo.png"
  10873. alt
  10874. v-if="checktoolArray.indexOf(63) == -1"
  10875. />
  10876. <div class="checkDiv" v-else>
  10877. <img src="../../assets/icon/checkedIs.png" alt /><span
  10878. >已选择</span
  10879. >
  10880. </div>
  10881. </div>
  10882. </div>
  10883. </div>
  10884. <div class="toolSort" v-if="toolType == 5">
  10885. <div class="tool">
  10886. <div class="whiteBIcon" @click="addTools2(28)">
  10887. <img
  10888. src="../../assets/icon/secondToolList/translation.png"
  10889. alt
  10890. />
  10891. <div style="margin: 5px 0">翻译</div>
  10892. </div>
  10893. <div class="check" @click="addTools2(28)">
  10894. <img
  10895. src="../../assets/icon/checkNo.png"
  10896. alt
  10897. v-if="checktoolArray.indexOf(28) == -1"
  10898. />
  10899. <div class="checkDiv" v-else>
  10900. <img src="../../assets/icon/checkedIs.png" alt /><span
  10901. >已选择</span
  10902. >
  10903. </div>
  10904. </div>
  10905. </div>
  10906. <div class="tool">
  10907. <div class="whiteBIcon" @click="addTools2(31)">
  10908. <img
  10909. src="../../assets/icon/secondToolList/networkPanel.png"
  10910. alt
  10911. />
  10912. <div style="margin: 5px 0">数字画板</div>
  10913. </div>
  10914. <div class="check" @click="addTools2(31)">
  10915. <img
  10916. src="../../assets/icon/checkNo.png"
  10917. alt
  10918. v-if="checktoolArray.indexOf(31) == -1"
  10919. />
  10920. <div class="checkDiv" v-else>
  10921. <img src="../../assets/icon/checkedIs.png" alt /><span
  10922. >已选择</span
  10923. >
  10924. </div>
  10925. </div>
  10926. </div>
  10927. <div class="tool">
  10928. <div class="whiteBIcon" @click="addTools2(39)">
  10929. <img
  10930. src="../../assets/icon/secondToolList/GeoGebra.png"
  10931. alt
  10932. />
  10933. <div style="margin: 5px 0">GeoGebra</div>
  10934. </div>
  10935. <div class="check" @click="addTools2(39)">
  10936. <img
  10937. src="../../assets/icon/checkNo.png"
  10938. alt
  10939. v-if="checktoolArray.indexOf(39) == -1"
  10940. />
  10941. <div class="checkDiv" v-else>
  10942. <img src="../../assets/icon/checkedIs.png" alt /><span
  10943. >已选择</span
  10944. >
  10945. </div>
  10946. </div>
  10947. </div>
  10948. <div class="tool">
  10949. <div class="whiteBIcon" @click="addTools2(66)">
  10950. <img
  10951. src="../../assets/icon/secondToolList/formulaEdi.png"
  10952. alt
  10953. />
  10954. <div style="margin: 5px 0">公式编辑</div>
  10955. </div>
  10956. <div class="check" @click="addTools2(66)">
  10957. <img
  10958. src="../../assets/icon/checkNo.png"
  10959. alt
  10960. v-if="checktoolArray.indexOf(66) == -1"
  10961. />
  10962. <div class="checkDiv" v-else>
  10963. <img src="../../assets/icon/checkedIs.png" alt /><span
  10964. >已选择</span
  10965. >
  10966. </div>
  10967. </div>
  10968. </div>
  10969. <div class="tool">
  10970. <div class="whiteBIcon" @click="addTools2(67)">
  10971. <img
  10972. src="../../assets/icon/secondToolList/molStr.png"
  10973. alt
  10974. />
  10975. <div style="margin: 5px 0">分子结构</div>
  10976. </div>
  10977. <div class="check" @click="addTools2(67)">
  10978. <img
  10979. src="../../assets/icon/checkNo.png"
  10980. alt
  10981. v-if="checktoolArray.indexOf(67) == -1"
  10982. />
  10983. <div class="checkDiv" v-else>
  10984. <img src="../../assets/icon/checkedIs.png" alt /><span
  10985. >已选择</span
  10986. >
  10987. </div>
  10988. </div>
  10989. </div>
  10990. <div class="tool">
  10991. <div class="whiteBIcon" @click="addTools2(68)">
  10992. <img
  10993. src="../../assets/icon/secondToolList/timeAxis.png"
  10994. alt
  10995. />
  10996. <div style="margin: 5px 0">时间轴</div>
  10997. </div>
  10998. <div class="check" @click="addTools2(68)">
  10999. <img
  11000. src="../../assets/icon/checkNo.png"
  11001. alt
  11002. v-if="checktoolArray.indexOf(68) == -1"
  11003. />
  11004. <div class="checkDiv" v-else>
  11005. <img src="../../assets/icon/checkedIs.png" alt /><span
  11006. >已选择</span
  11007. >
  11008. </div>
  11009. </div>
  11010. </div>
  11011. </div>
  11012. <div class="toolSort" v-if="toolType == 7">
  11013. <div class="tool">
  11014. <div class="whiteBIcon" @click="addTools2(40)">
  11015. <img
  11016. src="../../assets/icon/secondToolList/eval.png"
  11017. alt
  11018. />
  11019. <div style="margin: 5px 0">个人评价</div>
  11020. </div>
  11021. <div class="check" @click="addTools2(40)">
  11022. <img
  11023. src="../../assets/icon/checkNo.png"
  11024. alt
  11025. v-if="checktoolArray.indexOf(40) == -1"
  11026. />
  11027. <div class="checkDiv" v-else>
  11028. <img src="../../assets/icon/checkedIs.png" alt /><span
  11029. >已选择</span
  11030. >
  11031. </div>
  11032. </div>
  11033. </div>
  11034. </div>
  11035. <div class="toolSort" v-if="toolType == 4">
  11036. <div class="tool">
  11037. <div class="whiteBIcon" @click="addTools2(26)">
  11038. <img
  11039. src="../../assets/icon/thirdToolList/courseDesign.png"
  11040. alt
  11041. />
  11042. <div style="margin: 5px 0">课程设计</div>
  11043. </div>
  11044. <div class="check" @click="addTools2(26)">
  11045. <img
  11046. src="../../assets/icon/checkNo.png"
  11047. alt
  11048. v-if="checktoolArray.indexOf(26) == -1"
  11049. />
  11050. <div class="checkDiv" v-else>
  11051. <img src="../../assets/icon/checkedIs.png" alt /><span
  11052. >已选择</span
  11053. >
  11054. </div>
  11055. </div>
  11056. </div>
  11057. <div class="tool">
  11058. <div class="whiteBIcon" @click="addTools2(25)">
  11059. <img
  11060. src="../../assets/icon/thirdToolList/evalua.png"
  11061. alt
  11062. />
  11063. <div style="margin: 5px 0">目标管理</div>
  11064. </div>
  11065. <div class="check" @click="addTools2(25)">
  11066. <img
  11067. src="../../assets/icon/checkNo.png"
  11068. alt
  11069. v-if="checktoolArray.indexOf(25) == -1"
  11070. />
  11071. <div class="checkDiv" v-else>
  11072. <img src="../../assets/icon/checkedIs.png" alt /><span
  11073. >已选择</span
  11074. >
  11075. </div>
  11076. </div>
  11077. </div>
  11078. </div>
  11079. </div>
  11080. </div>
  11081. </div>
  11082. </div> -->
  11083. <div
  11084. class="vedioBox"
  11085. style="margin-top: 10px; border-radius: 20px"
  11086. v-if="
  11087. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11088. .eList &&
  11089. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11090. .eList.length &&
  11091. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11092. .eList.length > 0 &&
  11093. tType != 2
  11094. "
  11095. >
  11096. <div
  11097. class="queTop"
  11098. style="
  11099. font-size: 20px;
  11100. padding: 15px 0 15px 37px;
  11101. font-weight: bold;
  11102. "
  11103. >
  11104. <!-- <div class="question" style="width: 30px">
  11105. <img src="../assets/icon/toolIcon.png" alt />
  11106. </div>
  11107. <div class="queTitle">
  11108. <div>工具</div>
  11109. </div>-->
  11110. 评一评
  11111. </div>
  11112. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11113. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  11114. <el-table
  11115. :data="
  11116. chapInfoList[courseType].chapterInfo[0].taskJson[
  11117. taskCount
  11118. ].eList
  11119. "
  11120. :header-cell-style="{ background: '#F0F4FA' }"
  11121. :row-class-name="tableRowClassName"
  11122. border
  11123. stripe
  11124. style="width: 100%"
  11125. >
  11126. <el-table-column
  11127. label="评价名称"
  11128. align="center"
  11129. >
  11130. <template slot-scope="scope"
  11131. ><div>{{ scope.row.value }}</div></template
  11132. >
  11133. </el-table-column>
  11134. <el-table-column
  11135. label="评价描述"
  11136. align="center"
  11137. >
  11138. <template slot-scope="scope"
  11139. ><div>
  11140. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11141. </div></template
  11142. >
  11143. </el-table-column>
  11144. <el-table-column label="目标" align="center">
  11145. <template slot-scope="scope"
  11146. ><div>
  11147. {{
  11148. scope.row.target
  11149. ? scope.row.target[scope.row.target.length - 1]
  11150. : "-"
  11151. }}
  11152. </div></template
  11153. ></el-table-column
  11154. >
  11155. </el-table>
  11156. <!-- <div
  11157. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11158. .chapterInfo[0].taskJson[taskCount].eList"
  11159. :key="eIndex"
  11160. class="elist_input_box"
  11161. >
  11162. <div style="width: 95%">
  11163. <div
  11164. style="
  11165. display: flex;
  11166. flex-direction: row;
  11167. flex-wrap: nowrap;
  11168. align-items: center;
  11169. "
  11170. >
  11171. <div style="max-width: calc(100% - 285px)">
  11172. <span>{{ eItem.value }}</span>
  11173. </div>
  11174. <div
  11175. style="
  11176. padding-left: 25px;
  11177. display: flex;
  11178. flex-direction: row;
  11179. align-items: center;
  11180. "
  11181. >
  11182. <el-rate
  11183. v-model="eItem.score"
  11184. :colors="colors"
  11185. disabled
  11186. ></el-rate>
  11187. </div>
  11188. </div>
  11189. <div class="elist_inptu_text" style="padding-left: 10px">
  11190. <span v-if="eItem.detail != ''">{{
  11191. eItem.detail
  11192. }}</span>
  11193. <span v-else style="color: #b2b1b3; font-size: 14px"
  11194. >暂无描述...</span
  11195. >
  11196. </div>
  11197. </div>
  11198. </div> -->
  11199. </div>
  11200. <div
  11201. v-if="evalua"
  11202. style="
  11203. border: 1px solid #e5e5e5;
  11204. max-width: 650px;
  11205. width: 100%;
  11206. margin-top: 20px;
  11207. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11208. "
  11209. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  11210. >
  11211. <div class="e_add_top">
  11212. <div class="e_add_title" style="width: 100%">
  11213. <!-- <span>目标管理名称</span> -->
  11214. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  11215. <img
  11216. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  11217. src="../../assets/line.png"
  11218. class="cru_line"
  11219. style="
  11220. width: 125px;
  11221. height: 20px;
  11222. bottom: -10px;
  11223. left: 5px;
  11224. "
  11225. />
  11226. <!-- <el-input
  11227. v-model="eTitle"
  11228. placeholder="请输入名称"
  11229. @change="setMindData"
  11230. ></el-input>-->
  11231. <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>
  11232. <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>
  11233. </div>
  11234. </div>
  11235. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  11236. <div class="e_add_list_pbox">
  11237. <div class="e_add_list_pbox_title">
  11238. <!-- <span class="type_title">切换模式</span> -->
  11239. <div class="type_content">
  11240. <span
  11241. :class="{ active: typeMode == 1 }"
  11242. @click="typeMode = 1"
  11243. >目标树</span
  11244. >
  11245. <span
  11246. :class="{ active: typeMode == 2 }"
  11247. @click="typeMode = 2"
  11248. >目标罗盘</span
  11249. >
  11250. <!-- <span
  11251. :class="{ active: typeMode == 3 }"
  11252. @click="typeMode = 3"
  11253. >目标看板</span
  11254. > -->
  11255. </div>
  11256. </div>
  11257. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  11258. <Mind
  11259. :showBar="false"
  11260. :mindData="data"
  11261. style="width: 100%"
  11262. v-show="typeMode == 1"
  11263. ></Mind>
  11264. <Sunburst
  11265. :Josn="eJson"
  11266. :num="eJSONNum"
  11267. style="width: 100%"
  11268. v-if="typeMode == 2"
  11269. ></Sunburst>
  11270. <SeeBoard
  11271. :Josn="eJson"
  11272. :num="eJSONNum"
  11273. :ename="eTitle"
  11274. style="width: 100%"
  11275. v-if="typeMode == 3"
  11276. >
  11277. </SeeBoard>
  11278. </div>
  11279. </div>
  11280. </div>
  11281. </div>
  11282. </div>
  11283. </div>
  11284. <!-- <div
  11285. class="project_box"
  11286. style="margin-top: 15px; padding-bottom: 30px"
  11287. >
  11288. <div
  11289. style="
  11290. display: flex;
  11291. flex-wrap: nowrap;
  11292. flex-direction: column;
  11293. position: relative;
  11294. "
  11295. >
  11296. <div class="queTop">
  11297. <div class="question">
  11298. <img src="../../assets/icon/homeWork.png" alt="" />
  11299. </div>
  11300. <div class="queTitle">
  11301. <div>作业提交<span>(提交图文视频等)</span></div>
  11302. <div>:任务:{{ task.task }}</div>
  11303. </div>
  11304. </div>
  11305. <div class="ediBottom">
  11306. <div
  11307. class="addEditor"
  11308. style="margin-top: 23px"
  11309. @click="openAddWork"
  11310. v-if="!isNoHomeWork"
  11311. >
  11312. 选择文件
  11313. </div>
  11314. <div
  11315. class="addEditor"
  11316. style="margin-top: 23px"
  11317. @click="openAddWork"
  11318. v-else
  11319. >
  11320. 已提交
  11321. </div>
  11322. </div>
  11323. </div>
  11324. </div>-->
  11325. </div>
  11326. </div>
  11327. <el-dialog
  11328. title="作业提交"
  11329. :visible.sync="dialogVisible"
  11330. :append-to-body="true"
  11331. width="500px"
  11332. :before-close="handleClose"
  11333. class="dialog_change"
  11334. >
  11335. <div class="marginT">
  11336. <div>上传文件</div>
  11337. <div
  11338. class="chapter_add"
  11339. @click="addImg($event)"
  11340. v-if="studyJuri[0].cover.length == 0"
  11341. >
  11342. <div class="up_photo">
  11343. <img src="../../assets/icon/uploadImg.png" alt />
  11344. </div>
  11345. <!-- <input
  11346. type="file"
  11347. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11348. style="display: none"
  11349. @change="beforeUpload1($event, 1)"
  11350. /> -->
  11351. <input
  11352. type="file"
  11353. accept="*"
  11354. style="display: none"
  11355. @change="beforeUpload1($event, 1)"
  11356. />
  11357. <!-- <input
  11358. type="file"
  11359. accept="image/*"
  11360. capture="camera"
  11361. style="display: none"
  11362. @change="beforeUpload1($event, 1)"
  11363. /> -->
  11364. </div>
  11365. <div
  11366. class="chapter_add"
  11367. style="
  11368. display: flex;
  11369. width: 100%;
  11370. flex-direction: row;
  11371. flex-wrap: wrap;
  11372. justify-content: flex-start;
  11373. padding: 15px 0;
  11374. "
  11375. v-if="studyJuri[0].cover.length > 0"
  11376. >
  11377. <div class="upCover">
  11378. <img
  11379. :src="studyJuri[0].cover[0].url"
  11380. alt
  11381. v-if="fileType == 0"
  11382. />
  11383. <img :src="word" alt v-else-if="fileType == 1" />
  11384. <img :src="video" alt v-else-if="fileType == 2" />
  11385. <img :src="word2" alt v-else-if="fileType == 3" />
  11386. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11387. <div class="deleteWord" @click="clean(1)">
  11388. <img src="../../assets/icon/deleteWorks.png" alt />
  11389. </div>
  11390. </div>
  11391. </div>
  11392. </div>
  11393. <div
  11394. class="upload_send"
  11395. @click="addCourseWorksCopy(taskCount)"
  11396. v-if="!proVisible"
  11397. >
  11398. 提交
  11399. </div>
  11400. </el-dialog>
  11401. </div>
  11402. </div>
  11403. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11404. <classRoomHelper v-if="!['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" ref="classRoomHelperRef" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11405. '/courseDetail?userid=' +
  11406. userid +
  11407. '&oid=' +
  11408. oid +
  11409. '&org=' +
  11410. org +
  11411. '&cid=' +
  11412. classId +
  11413. '&courseId=' +
  11414. id +
  11415. '&tType=' +
  11416. tType +
  11417. '&screenType=' +
  11418. screenType
  11419. )"></classRoomHelper>
  11420. <div
  11421. class="pButton"
  11422. @click="(pzDialog = true), selectPz()"
  11423. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11424. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11425. >
  11426. <!-- 批 -->
  11427. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11428. </div>
  11429. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11430. <div class="pzTop2">
  11431. <!-- <div>评论</div>
  11432. <div @click="pzDialog = false">
  11433. <img src="../../assets/close1.png" alt="" />
  11434. </div> -->
  11435. <div class="checkbox">
  11436. <!-- <div class="check" style="font-size: 25px; position: unset">
  11437. 评论
  11438. </div> -->
  11439. <div class="cb-tabList">
  11440. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11441. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11442. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11443. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11444. </div>
  11445. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11446. <el-option label="时间降序" :value="1"></el-option>
  11447. <el-option label="时间升序" :value="2"></el-option>
  11448. <el-option label="我的评课" :value="3"></el-option>
  11449. </el-select>
  11450. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11451. </div>
  11452. </div>
  11453. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11454. <div class="pzListBox" v-if="pzList && pzList.length">
  11455. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11456. <div class="pzNavTop">
  11457. <div>评</div>
  11458. <div>
  11459. {{
  11460. pz.username && pz.username.length > 5
  11461. ? pz.username.substring(0, 5) + "..."
  11462. : pz.username
  11463. }}的评论
  11464. </div>
  11465. <div
  11466. class="pzDelete"
  11467. v-if="pz.userid == userid"
  11468. @click="deletePz(pz.id)"
  11469. >
  11470. 删除
  11471. </div>
  11472. </div>
  11473. <div
  11474. @click="checkImg(getImgList(pz.content))"
  11475. class="pzContent cont"
  11476. v-html="pz.content"
  11477. v-if="pz.type == '1'"
  11478. ></div>
  11479. <div class="pzContent" v-if="pz.type == '2'">
  11480. <audio :src="pz.content" controls="controls" ref="audio">
  11481. Your browser does not support the audio element.
  11482. </audio>
  11483. </div>
  11484. <div class="pzContent" v-if="pz.type == '3'">
  11485. <img
  11486. :src="pz.content"
  11487. style="width: 90%; margin: 0 auto; display: block"
  11488. @click="previewImg(pz.content)"
  11489. />
  11490. </div>
  11491. <div class="timeAndReply">
  11492. <div class="time">
  11493. {{ pz.time }}
  11494. </div>
  11495. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11496. </div>
  11497. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11498. <div
  11499. v-for="(h, hIndex) in pz.hfList"
  11500. :key="hIndex"
  11501. class="hfItem"
  11502. >
  11503. <div class="whoReplyWho">
  11504. <div class="hfName">{{ h.username }}</div>
  11505. <div class="hfImg">
  11506. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11507. </div>
  11508. <div class="hfName">{{ pz.username }}</div>
  11509. </div>
  11510. <div class="hfContent" v-html="h.content"></div>
  11511. <div class="hfBottom">
  11512. <div class="hfTime">{{ h.time }}</div>
  11513. <div
  11514. class="deleteHfItem"
  11515. @click="deleteReply(h.id)"
  11516. v-if="userid == h.userid"
  11517. >
  11518. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11519. </div>
  11520. </div>
  11521. </div>
  11522. </div>
  11523. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11524. <div class="replyInput">
  11525. <el-input v-model="reply[pzIndex]"></el-input>
  11526. </div>
  11527. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11528. </div> -->
  11529. </div>
  11530. </div>
  11531. <div class="noPz" v-else>
  11532. <img src="../../assets/icon/noPz.png" alt="" />
  11533. </div>
  11534. <div class="addPzButton">
  11535. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11536. 添加评论
  11537. </div>
  11538. <!-- <div class="img1">
  11539. <div @click="(addPzDialog = true), (pzType = 2)">
  11540. <img src="../../assets/audio.png" /><span>音频</span>
  11541. </div>
  11542. </div> -->
  11543. </div>
  11544. </div>
  11545. <div class="scoreList" v-if="commentTagShow==1">
  11546. <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"/>
  11547. </div>
  11548. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11549. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11550. </div>
  11551. </div>
  11552. <div
  11553. v-if="toolDialogVisible == true"
  11554. class="toolMask"
  11555. @click="toolDialogVisible = false"
  11556. ></div>
  11557. <div v-if="toolDialogVisible == true" class="addToolCss">
  11558. <div class="toolTop">
  11559. <div style="font-weight: bold">新增工具</div>
  11560. <div @click="toolDialogVisible = false">
  11561. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11562. </div>
  11563. </div>
  11564. <div class="tool_box">
  11565. <div class="tool_type_box">
  11566. <div class="chooseWho">
  11567. <div
  11568. :class="toolType == 0 ? 'isChooseActive' : ''"
  11569. @click="(toolType = 0), $forceUpdate()"
  11570. >
  11571. 互动类
  11572. </div>
  11573. <div
  11574. :class="toolType == 1 ? 'isChooseActive' : ''"
  11575. @click="(toolType = 1), $forceUpdate()"
  11576. >
  11577. 思维类
  11578. </div>
  11579. <div
  11580. :class="toolType == 2 ? 'isChooseActive' : ''"
  11581. @click="(toolType = 2), $forceUpdate()"
  11582. >
  11583. 测评类
  11584. </div>
  11585. <div
  11586. :class="toolType == 3 ? 'isChooseActive' : ''"
  11587. @click="(toolType = 3), $forceUpdate()"
  11588. >
  11589. 编程类
  11590. </div>
  11591. <div
  11592. :class="toolType == 5 ? 'isChooseActive' : ''"
  11593. @click="(toolType = 5), $forceUpdate()"
  11594. >
  11595. 学科类
  11596. </div>
  11597. </div>
  11598. </div>
  11599. <div>
  11600. <div class="toolSort" v-if="toolType == 0">
  11601. <div
  11602. class="tool"
  11603. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11604. @click="addTools2(10)"
  11605. >
  11606. <div class="whiteBIcon">
  11607. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11608. <div style="margin: 5px 0">倒计时</div>
  11609. </div>
  11610. <div class="check">
  11611. <div
  11612. v-if="checktoolArray.indexOf(10) == -1"
  11613. class="noChoose"
  11614. ></div>
  11615. <div v-else class="isChoose"></div>
  11616. </div>
  11617. </div>
  11618. <div
  11619. class="tool"
  11620. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11621. @click="addTools2(65)"
  11622. >
  11623. <div class="whiteBIcon">
  11624. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11625. <div style="margin: 5px 0">挑人</div>
  11626. </div>
  11627. <div class="check">
  11628. <div
  11629. v-if="checktoolArray.indexOf(65) == -1"
  11630. class="noChoose"
  11631. ></div>
  11632. <div v-else class="isChoose"></div>
  11633. </div>
  11634. </div>
  11635. </div>
  11636. <div class="toolSort" v-if="toolType == 1">
  11637. <div
  11638. class="tool"
  11639. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11640. @click="addTools2(7)"
  11641. >
  11642. <div class="whiteBIcon">
  11643. <img
  11644. src="../../assets/icon/secondToolList/mindNetwork.png"
  11645. alt
  11646. />
  11647. <div style="margin: 5px 0">思维网格</div>
  11648. </div>
  11649. <div class="check">
  11650. <div
  11651. v-if="checktoolArray.indexOf(7) == -1"
  11652. class="noChoose"
  11653. ></div>
  11654. <div v-else class="isChoose"></div>
  11655. </div>
  11656. </div>
  11657. <div
  11658. class="tool"
  11659. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11660. @click="addTools2(1)"
  11661. >
  11662. <div class="whiteBIcon">
  11663. <img
  11664. src="../../assets/icon/secondToolList/whiteBoard.png"
  11665. alt
  11666. />
  11667. <div style="margin: 5px 0">电子白板</div>
  11668. </div>
  11669. <div class="check">
  11670. <div
  11671. v-if="checktoolArray.indexOf(1) == -1"
  11672. class="noChoose"
  11673. ></div>
  11674. <div v-else class="isChoose"></div>
  11675. </div>
  11676. </div>
  11677. <div
  11678. class="tool"
  11679. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  11680. @click="addTools2(52)"
  11681. >
  11682. <div class="whiteBIcon">
  11683. <img src="../../assets/icon/fourthToolList/text.png" alt />
  11684. <div style="margin: 5px 0">文档</div>
  11685. </div>
  11686. <div class="check">
  11687. <div
  11688. v-if="checktoolArray.indexOf(52) == -1"
  11689. class="noChoose"
  11690. ></div>
  11691. <div v-else class="isChoose"></div>
  11692. </div>
  11693. </div>
  11694. <div
  11695. class="tool"
  11696. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  11697. @click="addTools2(3)"
  11698. >
  11699. <div class="whiteBIcon">
  11700. <img
  11701. src="../../assets/icon/secondToolList/mindMapping.png"
  11702. alt
  11703. />
  11704. <div style="margin: 5px 0">思维导图</div>
  11705. </div>
  11706. <div class="check">
  11707. <div
  11708. v-if="checktoolArray.indexOf(3) == -1"
  11709. class="noChoose"
  11710. ></div>
  11711. <div v-else class="isChoose"></div>
  11712. </div>
  11713. </div>
  11714. <div
  11715. class="tool"
  11716. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  11717. @click="addTools2(48)"
  11718. >
  11719. <div class="whiteBIcon">
  11720. <img src="../../assets/icon/fourthToolList/table.png" alt />
  11721. <div style="margin: 5px 0">表格</div>
  11722. </div>
  11723. <div class="check">
  11724. <div
  11725. v-if="checktoolArray.indexOf(48) == -1"
  11726. class="noChoose"
  11727. ></div>
  11728. <div v-else class="isChoose"></div>
  11729. </div>
  11730. </div>
  11731. </div>
  11732. <div class="toolSort" v-if="toolType == 6">
  11733. <div v-show="tooC == 49">
  11734. <img
  11735. @click="addTools(tooC, toolIndex, taskCount)"
  11736. src="../../assets/icon/fourthToolList/group.png"
  11737. alt
  11738. />
  11739. <div style="margin: 5px 0">学生分组</div>
  11740. </div>
  11741. </div>
  11742. <div class="toolSort" v-if="toolType == 2">
  11743. <div
  11744. class="tool"
  11745. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  11746. @click="addTools2(16)"
  11747. >
  11748. <div class="whiteBIcon">
  11749. <img src="../../assets/icon/thirdToolList/work.png" alt />
  11750. <div style="margin: 5px 0">作业提交</div>
  11751. </div>
  11752. <div class="check">
  11753. <div
  11754. v-if="checktoolArray.indexOf(16) == -1"
  11755. class="noChoose"
  11756. ></div>
  11757. <div v-else class="isChoose"></div>
  11758. </div>
  11759. </div>
  11760. <div
  11761. class="tool"
  11762. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  11763. @click="addTools2(50)"
  11764. >
  11765. <div class="whiteBIcon">
  11766. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  11767. <div style="margin: 5px 0">批量上传</div>
  11768. </div>
  11769. <div class="check">
  11770. <div
  11771. v-if="checktoolArray.indexOf(50) == -1"
  11772. class="noChoose"
  11773. ></div>
  11774. <div v-else class="isChoose"></div>
  11775. </div>
  11776. </div>
  11777. </div>
  11778. <div class="toolSort" v-if="toolType == 3">
  11779. <div
  11780. class="tool"
  11781. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  11782. @click="addTools2(18)"
  11783. >
  11784. <div class="whiteBIcon">
  11785. <img
  11786. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11787. alt
  11788. />
  11789. <div style="margin: 5px 0">训练平台</div>
  11790. </div>
  11791. <div class="check">
  11792. <div
  11793. v-if="checktoolArray.indexOf(18) == -1"
  11794. class="noChoose"
  11795. ></div>
  11796. <div v-else class="isChoose"></div>
  11797. </div>
  11798. </div>
  11799. <div
  11800. class="tool"
  11801. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  11802. @click="addTools2(21)"
  11803. >
  11804. <div class="whiteBIcon">
  11805. <img src="../../assets/icon/fourthToolList/program.png" alt />
  11806. <div style="margin: 5px 0">AIoT Blockly</div>
  11807. </div>
  11808. <div class="check">
  11809. <div
  11810. v-if="checktoolArray.indexOf(21) == -1"
  11811. class="noChoose"
  11812. ></div>
  11813. <div v-else class="isChoose"></div>
  11814. </div>
  11815. </div>
  11816. <div
  11817. class="tool"
  11818. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  11819. @click="addTools2(23)"
  11820. >
  11821. <div class="whiteBIcon">
  11822. <img
  11823. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11824. alt
  11825. />
  11826. <div style="margin: 5px 0">AI Python</div>
  11827. <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  11828. style="position: absolute;right: 33px;top: -30px;">
  11829. 投影
  11830. </div>
  11831. </div>
  11832. <div class="check">
  11833. <div
  11834. v-if="checktoolArray.indexOf(23) == -1"
  11835. class="noChoose"
  11836. ></div>
  11837. <div v-else class="isChoose"></div>
  11838. </div>
  11839. </div>
  11840. <div
  11841. class="tool"
  11842. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  11843. @click="addTools2(24)"
  11844. >
  11845. <div class="whiteBIcon">
  11846. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  11847. <div style="margin: 5px 0">AI Blockly</div>
  11848. </div>
  11849. <div class="check">
  11850. <div
  11851. v-if="checktoolArray.indexOf(24) == -1"
  11852. class="noChoose"
  11853. ></div>
  11854. <div v-else class="isChoose"></div>
  11855. </div>
  11856. </div>
  11857. <div
  11858. class="tool"
  11859. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  11860. @click="addTools2(32)"
  11861. >
  11862. <div class="whiteBIcon">
  11863. <img src="../../assets/icon/thirdToolList/code.png" alt />
  11864. <div style="margin: 5px 0">源码编辑</div>
  11865. </div>
  11866. <div class="check">
  11867. <div
  11868. v-if="checktoolArray.indexOf(32) == -1"
  11869. class="noChoose"
  11870. ></div>
  11871. <div v-else class="isChoose"></div>
  11872. </div>
  11873. </div>
  11874. <div
  11875. class="tool"
  11876. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  11877. @click="addTools2(57)"
  11878. >
  11879. <div class="whiteBIcon">
  11880. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  11881. <div style="margin: 5px 0">CocoPi</div>
  11882. </div>
  11883. <div class="check">
  11884. <div
  11885. v-if="checktoolArray.indexOf(57) == -1"
  11886. class="noChoose"
  11887. ></div>
  11888. <div v-else class="isChoose"></div>
  11889. </div>
  11890. </div>
  11891. <div
  11892. class="tool"
  11893. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  11894. @click="addTools2(63)"
  11895. >
  11896. <div class="whiteBIcon">
  11897. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  11898. <div style="margin: 5px 0">海龟编程</div>
  11899. </div>
  11900. <div class="check">
  11901. <div
  11902. v-if="checktoolArray.indexOf(63) == -1"
  11903. class="noChoose"
  11904. ></div>
  11905. <div v-else class="isChoose"></div>
  11906. </div>
  11907. </div>
  11908. <div
  11909. class="tool"
  11910. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  11911. @click="addTools2(71)"
  11912. >
  11913. <div class="whiteBIcon">
  11914. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  11915. <div style="margin: 5px 0">AI智能体</div>
  11916. </div>
  11917. <div class="check">
  11918. <div
  11919. v-if="checktoolArray.indexOf(71) == -1"
  11920. class="noChoose"
  11921. ></div>
  11922. <div v-else class="isChoose"></div>
  11923. </div>
  11924. </div>
  11925. </div>
  11926. <div class="toolSort" v-if="toolType == 7">
  11927. <div
  11928. class="tool"
  11929. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  11930. @click="addTools2(40)"
  11931. >
  11932. <div class="whiteBIcon">
  11933. <img src="../../assets/icon/secondToolList/eval.png" alt />
  11934. <div style="margin: 5px 0">个人评价</div>
  11935. </div>
  11936. <div class="check">
  11937. <div
  11938. v-if="checktoolArray.indexOf(40) == -1"
  11939. class="noChoose"
  11940. ></div>
  11941. <div v-else class="isChoose"></div>
  11942. </div>
  11943. </div>
  11944. </div>
  11945. <div class="toolSort" v-if="toolType == 5">
  11946. <div
  11947. class="tool"
  11948. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  11949. @click="addTools2(28)"
  11950. >
  11951. <div class="whiteBIcon">
  11952. <img
  11953. src="../../assets/icon/secondToolList/translation.png"
  11954. alt
  11955. />
  11956. <div style="margin: 5px 0">翻译</div>
  11957. </div>
  11958. <div class="check">
  11959. <div
  11960. v-if="checktoolArray.indexOf(28) == -1"
  11961. class="noChoose"
  11962. ></div>
  11963. <div v-else class="isChoose"></div>
  11964. </div>
  11965. </div>
  11966. <div
  11967. class="tool"
  11968. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  11969. @click="addTools2(31)"
  11970. >
  11971. <div class="whiteBIcon">
  11972. <img
  11973. src="../../assets/icon/secondToolList/networkPanel.png"
  11974. alt
  11975. />
  11976. <div style="margin: 5px 0">数字画板</div>
  11977. </div>
  11978. <div class="check">
  11979. <div
  11980. v-if="checktoolArray.indexOf(31) == -1"
  11981. class="noChoose"
  11982. ></div>
  11983. <div v-else class="isChoose"></div>
  11984. </div>
  11985. </div>
  11986. <div
  11987. class="tool"
  11988. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  11989. @click="addTools2(39)"
  11990. >
  11991. <div class="whiteBIcon">
  11992. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  11993. <div style="margin: 5px 0">GeoGebra</div>
  11994. </div>
  11995. <div class="check">
  11996. <div
  11997. v-if="checktoolArray.indexOf(39) == -1"
  11998. class="noChoose"
  11999. ></div>
  12000. <div v-else class="isChoose"></div>
  12001. </div>
  12002. </div>
  12003. <div
  12004. class="tool"
  12005. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12006. @click="addTools2(66)"
  12007. >
  12008. <div class="whiteBIcon">
  12009. <img
  12010. src="../../assets/icon/secondToolList/formulaEdi.png"
  12011. alt
  12012. />
  12013. <div style="margin: 5px 0">公式编辑</div>
  12014. </div>
  12015. <div class="check">
  12016. <div
  12017. v-if="checktoolArray.indexOf(66) == -1"
  12018. class="noChoose"
  12019. ></div>
  12020. <div v-else class="isChoose"></div>
  12021. </div>
  12022. </div>
  12023. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12024. <div class="whiteBIcon" @click="addTools2(67)">
  12025. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12026. <div style="margin: 5px 0">分子结构</div>
  12027. </div>
  12028. <div class="check" @click="addTools2(67)">
  12029. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12030. <div v-else class="isChoose"></div>
  12031. </div>
  12032. </div> -->
  12033. <div
  12034. class="tool"
  12035. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12036. @click="addTools2(68)"
  12037. >
  12038. <div class="whiteBIcon">
  12039. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12040. <div style="margin: 5px 0">时间轴</div>
  12041. </div>
  12042. <div class="check">
  12043. <div
  12044. v-if="checktoolArray.indexOf(68) == -1"
  12045. class="noChoose"
  12046. ></div>
  12047. <div v-else class="isChoose"></div>
  12048. </div>
  12049. </div>
  12050. <!-- <div
  12051. class="tool"
  12052. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12053. @click="addTools2(69)"
  12054. >
  12055. <div class="whiteBIcon">
  12056. <img src="../../assets/icon/secondToolList/english.png" alt />
  12057. <div style="margin: 5px 0">英语写作</div>
  12058. </div>
  12059. <div class="check">
  12060. <div
  12061. v-if="checktoolArray.indexOf(69) == -1"
  12062. class="noChoose"
  12063. ></div>
  12064. <div v-else class="isChoose"></div>
  12065. </div>
  12066. </div> -->
  12067. </div>
  12068. <div class="toolSort" v-if="toolType == 4">
  12069. <div
  12070. class="tool"
  12071. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12072. @click="addTools2(26)"
  12073. >
  12074. <div class="whiteBIcon">
  12075. <img
  12076. src="../../assets/icon/thirdToolList/courseDesign.png"
  12077. alt
  12078. />
  12079. <div style="margin: 5px 0">课程设计</div>
  12080. </div>
  12081. <div class="check">
  12082. <div
  12083. v-if="checktoolArray.indexOf(26) == -1"
  12084. class="noChoose"
  12085. ></div>
  12086. <div v-else class="isChoose"></div>
  12087. </div>
  12088. </div>
  12089. <div
  12090. class="tool"
  12091. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12092. @click="addTools2(25)"
  12093. >
  12094. <div class="whiteBIcon">
  12095. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12096. <div style="margin: 5px 0">目标管理</div>
  12097. </div>
  12098. <div class="check">
  12099. <div
  12100. v-if="checktoolArray.indexOf(25) == -1"
  12101. class="noChoose"
  12102. ></div>
  12103. <div v-else class="isChoose"></div>
  12104. </div>
  12105. </div>
  12106. </div>
  12107. </div>
  12108. </div>
  12109. <span
  12110. slot="footer"
  12111. class="dialog-footer"
  12112. style="display: block; text-align: center; padding: 0 0 10px 0"
  12113. >
  12114. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12115. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12116. </span>
  12117. </div>
  12118. <div
  12119. v-if="replyDialogVisible == true"
  12120. class="addDialogCss"
  12121. v-el-drag-dialog
  12122. >
  12123. <div class="pzTop">
  12124. <div class="teacherPz">
  12125. <div class="teacherPzImg">
  12126. <img src="../../assets/icon/teacherPz.png" alt="" />
  12127. </div>
  12128. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12129. </div>
  12130. <div @click="replyDialogVisible = false">
  12131. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12132. </div>
  12133. </div>
  12134. <div class="addPzBox">
  12135. <!-- <div class="addPzCheck">
  12136. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12137. >文本</span
  12138. >
  12139. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12140. >音频</span
  12141. >
  12142. </div> -->
  12143. <div style="height: calc(100% - 50px)">
  12144. <editor-bar
  12145. class="binfo_input pzConText"
  12146. style="width: 100% !important; margin: 0 auto"
  12147. placeholder="请输入回复描述"
  12148. v-model="reply"
  12149. @change="change"
  12150. ></editor-bar>
  12151. </div>
  12152. <div class="addTextCss" @click="addHf">确定</div>
  12153. </div>
  12154. </div>
  12155. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12156. <div class="pzTop">
  12157. <div class="teacherPz">
  12158. <div class="teacherPzImg">
  12159. <img src="../../assets/icon/teacherPz.png" alt="" />
  12160. </div>
  12161. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12162. </div>
  12163. <div @click="addPzDialog = false">
  12164. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12165. </div>
  12166. </div>
  12167. <div class="addPzBox">
  12168. <div class="addPzCheck">
  12169. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12170. >文本</span
  12171. >
  12172. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12173. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12174. >音频</span
  12175. >
  12176. </div>
  12177. <div style="height: calc(100% - 95px)">
  12178. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12179. v-if="pzType == 1"></textarea> -->
  12180. <editor-bar
  12181. class="binfo_input pzConText"
  12182. style="width: 100% !important"
  12183. placeholder="请输入任务描述"
  12184. v-model="pzConText"
  12185. @change="change"
  12186. v-if="pzType == 1"
  12187. ></editor-bar>
  12188. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12189. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12190. <div @click="addImg($event)">
  12191. <el-button type="primary">上传图片</el-button>
  12192. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12193. @change="beforeUpload1($event, 4)" />
  12194. </div>
  12195. </div> -->
  12196. </div>
  12197. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12198. 确定
  12199. </div>
  12200. </div>
  12201. </div>
  12202. <div v-if="proVisible" class="mask">
  12203. <div class="progressBox">
  12204. <!-- <div id="closePro" class="closeCss">
  12205. <img src="../../assets/icon/close.png" alt />
  12206. </div> -->
  12207. <div class="lbox">
  12208. <img src="../../assets/loading.gif" />上传中,请稍后
  12209. </div>
  12210. <div style="margin-bottom: 10px">
  12211. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12212. </div>
  12213. <el-progress
  12214. :text-inside="true"
  12215. :stroke-width="20"
  12216. :percentage="progress"
  12217. style="width: 80%"
  12218. ></el-progress>
  12219. </div>
  12220. </div>
  12221. <div v-if="proVisible2" class="mask">
  12222. <div class="progressBox">
  12223. <div class="lbox">
  12224. <img src="../../assets/loading.gif" />上传中,请稍后
  12225. </div>
  12226. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12227. </div>
  12228. </div>
  12229. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12230. <img width="100%" :src="dialogImageUrl" alt />
  12231. </el-dialog>
  12232. <el-dialog
  12233. :title="noteName != '' ? noteName : '查看问卷'"
  12234. :visible.sync="dialogVisible5"
  12235. :append-to-body="true"
  12236. width="1000px"
  12237. :before-close="handleClose"
  12238. class="dialog_diy dialog_diy3"
  12239. >
  12240. <div>
  12241. <div
  12242. class="a_add_title"
  12243. style="
  12244. display: flex;
  12245. flex-direction: row;
  12246. align-items: center;
  12247. justify-content: center;
  12248. "
  12249. >
  12250. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12251. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12252. </div>
  12253. <div class="a_addBox">
  12254. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12255. 题目内容
  12256. </div>
  12257. <div
  12258. class="a_add_box"
  12259. v-for="(item1, index1) in askJson.askCount"
  12260. :key="index1"
  12261. >
  12262. <div class="a_add_head">
  12263. <div style="display: flex">
  12264. <span class="askIndex"> {{ index1 + 1 }}</span>
  12265. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12266. </div>
  12267. <img
  12268. v-if="askJson.askJson[index1].img"
  12269. :src="askJson.askJson[index1].img"
  12270. style="height: 300px; margin-top: 10px; max-width: 100%"
  12271. />
  12272. </div>
  12273. <div class="a_add_body">
  12274. <div class="a_add_input">
  12275. <el-radio-group
  12276. v-model="radio[index1]"
  12277. v-if="
  12278. askJson.askJson[index1].type == '1' ||
  12279. !askJson.askJson[index1].type
  12280. "
  12281. >
  12282. <el-radio
  12283. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12284. .checkList"
  12285. :key="checkIndex"
  12286. :label="checkIndex"
  12287. :disabled="isAnswer"
  12288. class="redioStyle"
  12289. ><span v-html="item2"></span
  12290. ></el-radio>
  12291. </el-radio-group>
  12292. <el-checkbox-group
  12293. v-model="radio[index1]"
  12294. v-if="askJson.askJson[index1].type == '2'"
  12295. >
  12296. <el-checkbox
  12297. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12298. .checkList"
  12299. :key="checkIndex1"
  12300. :label="checkIndex1"
  12301. :disabled="isAnswer"
  12302. class="redioStyle"
  12303. ><span v-html="item2"></span>
  12304. </el-checkbox>
  12305. </el-checkbox-group>
  12306. </div>
  12307. </div>
  12308. </div>
  12309. </div>
  12310. </div>
  12311. <span slot="footer" class="dialog-footer">
  12312. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12313. >取 消</el-button
  12314. >
  12315. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12316. >确 定</el-button
  12317. >
  12318. </span>
  12319. </el-dialog>
  12320. <el-dialog
  12321. :title="noteName != '' ? noteName : '查看问卷'"
  12322. :visible.sync="dialogVisible5Teacher"
  12323. :append-to-body="true"
  12324. width="1000px"
  12325. :before-close="handleClose"
  12326. class="dialog_diy dialog_diy3"
  12327. >
  12328. <div>
  12329. <div class="w_name">
  12330. 学生姓名:<span>{{ sStudent.student }}</span>
  12331. </div>
  12332. <div
  12333. class="a_add_title"
  12334. style="
  12335. display: flex;
  12336. flex-direction: row;
  12337. align-items: center;
  12338. justify-content: center;
  12339. "
  12340. >
  12341. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12342. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12343. </div>
  12344. <div class="a_addBox">
  12345. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12346. 题目内容
  12347. </div>
  12348. <div
  12349. class="a_add_box"
  12350. v-for="(item1, index1) in askJson.askCount"
  12351. :key="index1"
  12352. >
  12353. <div class="a_add_head">
  12354. <div style="display: flex">
  12355. <span class="askIndex">{{ index1 + 1 }}</span>
  12356. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12357. </div>
  12358. <img
  12359. v-if="askJson.askJson[index1].img"
  12360. :src="askJson.askJson[index1].img"
  12361. style="height: 300px; margin-top: 10px; max-width: 100%"
  12362. />
  12363. </div>
  12364. <div class="a_add_body">
  12365. <div class="a_add_input">
  12366. <el-radio-group
  12367. v-model="radio[index1]"
  12368. v-if="
  12369. askJson.askJson[index1].type == '1' ||
  12370. !askJson.askJson[index1].type
  12371. "
  12372. >
  12373. <el-radio
  12374. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12375. .checkList"
  12376. :key="checkIndex"
  12377. :label="checkIndex"
  12378. :disabled="isAnswer"
  12379. class="redioStyle"
  12380. ><span v-html="item2"></span
  12381. ></el-radio>
  12382. </el-radio-group>
  12383. <el-checkbox-group
  12384. v-model="radio[index1]"
  12385. v-if="askJson.askJson[index1].type == '2'"
  12386. >
  12387. <el-checkbox
  12388. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12389. .checkList"
  12390. :key="checkIndex1"
  12391. :label="checkIndex1"
  12392. :disabled="isAnswer"
  12393. class="redioStyle"
  12394. ><span v-html="item2"></span>
  12395. </el-checkbox>
  12396. </el-checkbox-group>
  12397. </div>
  12398. </div>
  12399. </div>
  12400. </div>
  12401. </div>
  12402. <span slot="footer" class="dialog-footer">
  12403. <el-button
  12404. @click="dialogVisible5Teacher = false"
  12405. v-show="noteName == ''"
  12406. >取 消</el-button
  12407. >
  12408. <el-button
  12409. type="primary"
  12410. @click="addStudentAskTeacher"
  12411. v-show="noteName == ''"
  12412. >确 定</el-button
  12413. >
  12414. </span>
  12415. </el-dialog>
  12416. <el-dialog
  12417. :title="noteName != '' ? noteName : '查看选择题'"
  12418. :visible.sync="dialogVisibleChoice"
  12419. :append-to-body="true"
  12420. width="1000px"
  12421. :before-close="handleClose"
  12422. class="dialog_diy dialog_diy3"
  12423. >
  12424. <div>
  12425. <!-- <div class="a_add_title" style="
  12426. display: flex;
  12427. flex-direction: row;
  12428. align-items: center;
  12429. justify-content: center;
  12430. ">
  12431. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12432. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12433. </div> -->
  12434. <div class="a_addBox">
  12435. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12436. 题目内容
  12437. </div>
  12438. <div
  12439. class="a_add_box"
  12440. v-for="(item1, index1) in testJson.testCount"
  12441. :key="index1"
  12442. >
  12443. <div class="a_add_head">
  12444. <div style="display: flex">
  12445. <span class="askIndex">{{ index1 + 1 }}</span>
  12446. <div
  12447. v-if="testJson.testJson[index1].type == '1'"
  12448. style="margin-right: 5px; min-width: 70px"
  12449. >
  12450. (单选题)
  12451. </div>
  12452. <div
  12453. v-if="testJson.testJson[index1].type == '2'"
  12454. style="margin-right: 5px; min-width: 70px"
  12455. >
  12456. (多选题)
  12457. </div>
  12458. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12459. </div>
  12460. <img
  12461. v-if="testJson.testJson[index1].img"
  12462. :src="testJson.testJson[index1].img"
  12463. style="height: 300px; margin-top: 10px; max-width: 100%"
  12464. />
  12465. </div>
  12466. <div
  12467. class="timuImgBox"
  12468. v-if="
  12469. testJson.testJson[index1].timuList &&
  12470. testJson.testJson[index1].timuList.length
  12471. "
  12472. >
  12473. <div
  12474. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12475. :key="tIndex"
  12476. class="timuImg"
  12477. @click.stop="previewImg(timg.src)"
  12478. >
  12479. <img :src="timg.src" alt="" />
  12480. </div>
  12481. </div>
  12482. <div class="a_add_body">
  12483. <div class="a_add_input">
  12484. <el-radio-group
  12485. v-model="radio[index1]"
  12486. v-if="testJson.testJson[index1].type == '1'"
  12487. >
  12488. <div class="radioBox">
  12489. <el-radio
  12490. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12491. .checkList"
  12492. :key="checkIndex"
  12493. :label="checkIndex"
  12494. :disabled="isAnswer"
  12495. class="redioStyle"
  12496. >
  12497. <div
  12498. style="margin-right: 10px"
  12499. v-if="item2 && item2.imgType && item2.imgType == 1"
  12500. >
  12501. <div class="inImg" @click.stop="previewImg(item2.src)">
  12502. <img :src="item2.src" alt="" />
  12503. </div>
  12504. </div>
  12505. <span v-else v-html="item2"></span>
  12506. </el-radio>
  12507. </div>
  12508. </el-radio-group>
  12509. <el-checkbox-group
  12510. v-model="radio[index1]"
  12511. v-if="testJson.testJson[index1].type == '2'"
  12512. >
  12513. <div class="radioBox">
  12514. <el-checkbox
  12515. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12516. .checkList"
  12517. :key="checkIndex"
  12518. :label="checkIndex"
  12519. :disabled="isAnswer"
  12520. class="redioStyle"
  12521. >
  12522. <div
  12523. style="margin-right: 10px"
  12524. v-if="item2 && item2.imgType && item2.imgType == 1"
  12525. >
  12526. <div class="inImg" @click.stop="previewImg(item2.src)">
  12527. <img :src="item2.src" alt="" />
  12528. </div>
  12529. </div>
  12530. <span v-else v-html="item2"></span>
  12531. </el-checkbox>
  12532. </div>
  12533. </el-checkbox-group>
  12534. </div>
  12535. </div>
  12536. </div>
  12537. </div>
  12538. </div>
  12539. <span slot="footer" class="dialog-footer">
  12540. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12541. >取 消</el-button
  12542. >
  12543. <el-button
  12544. type="primary"
  12545. @click="addStudentTest"
  12546. v-show="noteName == ''"
  12547. >确 定</el-button
  12548. >
  12549. </span>
  12550. </el-dialog>
  12551. <el-dialog
  12552. :title="noteName != '' ? noteName : '查看选择题'"
  12553. :visible.sync="dialogVisibleChoiceTeacher"
  12554. :append-to-body="true"
  12555. width="1000px"
  12556. :before-close="handleClose"
  12557. class="dialog_diy dialog_diy3"
  12558. >
  12559. <div>
  12560. <div class="w_name">
  12561. 学生姓名:<span>{{ sStudent.student }}</span>
  12562. </div>
  12563. <div class="a_addBox">
  12564. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12565. 题目内容
  12566. </div>
  12567. <div
  12568. class="a_add_box"
  12569. v-for="(item1, index1) in testJson.testCount"
  12570. :key="index1"
  12571. >
  12572. <div class="a_add_head">
  12573. <div style="display: flex">
  12574. <span class="askIndex">{{ index1 + 1 }}</span>
  12575. <div
  12576. v-if="testJson.testJson[index1].type == '1'"
  12577. style="margin-right: 5px; min-width: 70px"
  12578. >
  12579. (单选题)
  12580. </div>
  12581. <div
  12582. v-if="testJson.testJson[index1].type == '2'"
  12583. style="margin-right: 5px; min-width: 70px"
  12584. >
  12585. (多选题)
  12586. </div>
  12587. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12588. </div>
  12589. <img
  12590. v-if="testJson.testJson[index1].img"
  12591. :src="testJson.testJson[index1].img"
  12592. style="height: 300px; margin-top: 10px; max-width: 100%"
  12593. />
  12594. </div>
  12595. <div
  12596. class="timuImgBox"
  12597. v-if="
  12598. testJson.testJson[index1].timuList &&
  12599. testJson.testJson[index1].timuList.length
  12600. "
  12601. >
  12602. <div
  12603. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12604. :key="tIndex"
  12605. class="timuImg"
  12606. @click.stop="previewImg(timg.src)"
  12607. >
  12608. <img :src="timg.src" alt="" />
  12609. </div>
  12610. </div>
  12611. <div class="a_add_body">
  12612. <div class="a_add_input">
  12613. <el-radio-group
  12614. v-model="radio[index1]"
  12615. v-if="testJson.testJson[index1].type == '1'"
  12616. >
  12617. <div class="radioBox">
  12618. <el-radio
  12619. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12620. .checkList"
  12621. :key="checkIndex"
  12622. :label="checkIndex"
  12623. :disabled="isAnswer"
  12624. class="redioStyle"
  12625. >
  12626. <div
  12627. style="margin-right: 10px"
  12628. v-if="item2 && item2.imgType && item2.imgType == 1"
  12629. >
  12630. <div class="inImg" @click.stop="previewImg(item2.src)">
  12631. <img :src="item2.src" alt="" />
  12632. </div>
  12633. </div>
  12634. <span v-else v-html="item2"></span>
  12635. </el-radio>
  12636. </div>
  12637. </el-radio-group>
  12638. <el-checkbox-group
  12639. v-model="radio[index1]"
  12640. v-if="testJson.testJson[index1].type == '2'"
  12641. >
  12642. <div class="radioBox">
  12643. <el-checkbox
  12644. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12645. .checkList"
  12646. :key="checkIndex"
  12647. :label="checkIndex"
  12648. :disabled="isAnswer"
  12649. class="redioStyle"
  12650. >
  12651. <div
  12652. style="margin-right: 10px"
  12653. v-if="item2 && item2.imgType && item2.imgType == 1"
  12654. >
  12655. <div class="inImg" @click.stop="previewImg(item2.src)">
  12656. <img :src="item2.src" alt="" />
  12657. </div>
  12658. </div>
  12659. <span v-else v-html="item2"></span>
  12660. </el-checkbox>
  12661. </div>
  12662. </el-checkbox-group>
  12663. </div>
  12664. </div>
  12665. </div>
  12666. </div>
  12667. </div>
  12668. <span slot="footer" class="dialog-footer">
  12669. <el-button
  12670. @click="dialogVisibleChoiceTeacher = false"
  12671. v-show="noteName == ''"
  12672. >取 消</el-button
  12673. >
  12674. <el-button
  12675. type="primary"
  12676. @click="addStudentTestTeacher"
  12677. v-show="noteName == ''"
  12678. >确 定</el-button
  12679. >
  12680. </span>
  12681. </el-dialog>
  12682. <el-dialog
  12683. title="查看富文本"
  12684. :visible.sync="dialogVisible1"
  12685. :append-to-body="true"
  12686. width="500px"
  12687. :before-close="handleClose"
  12688. class="dialog_diy textCss"
  12689. >
  12690. <el-form style="font-size: 20px">
  12691. <el-form-item label="文本标题" class="textTitle">
  12692. <div style="font-size: 20px">{{ text.name }}</div>
  12693. </el-form-item>
  12694. <div>富文本内容</div>
  12695. <div
  12696. v-html="text.url"
  12697. style="font-size: 18px; padding: 40px 0 0 0"
  12698. ></div>
  12699. </el-form>
  12700. <span slot="footer" class="dialog-footer">
  12701. <el-button type="primary" @click="dialogVisible1 = false"
  12702. >确定</el-button
  12703. >
  12704. </span>
  12705. </el-dialog>
  12706. <el-dialog
  12707. title="文件预览"
  12708. :visible.sync="dialogVisible3"
  12709. width="50%"
  12710. :before-close="handleClose"
  12711. class="dialog_diy"
  12712. :class="{ fullStyle: full }"
  12713. >
  12714. <div slot="title" class="header-title">
  12715. <div style="color: #fff">文件预览</div>
  12716. <div style="position: absolute; top: 19px; right: 50px">
  12717. <img
  12718. src="../../assets/full.png"
  12719. style="height: 16px; cursor: pointer"
  12720. alt=""
  12721. @click="fullTools"
  12722. />
  12723. </div>
  12724. </div>
  12725. <pdf
  12726. v-if="showPDF"
  12727. :pdfUrl="pptImgUrl"
  12728. style="width: 100%; height: 520px; overflow: auto"
  12729. :class="{ fullStyle: full }"
  12730. ></pdf>
  12731. <iframe
  12732. v-else
  12733. :src="pptImgUrl"
  12734. frameborder="0"
  12735. width="100%"
  12736. height="600"
  12737. :class="{ fullStyle: full }"
  12738. ></iframe>
  12739. </el-dialog>
  12740. <el-dialog
  12741. title="文件预览"
  12742. :visible.sync="dialogVisible6"
  12743. width="50%"
  12744. :before-close="handleClose"
  12745. class="dialog_diy"
  12746. >
  12747. <iframe
  12748. :src="pptImgUrl1"
  12749. frameborder="0"
  12750. width="100%"
  12751. height="600"
  12752. ></iframe>
  12753. </el-dialog>
  12754. <el-dialog
  12755. title="提示"
  12756. :visible.sync="dialogVisible4"
  12757. :append-to-body="true"
  12758. width="800px"
  12759. :before-close="handleClose"
  12760. class="dialog_diy notice"
  12761. >
  12762. <div>此功能暂未开放!</div>
  12763. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  12764. </el-dialog>
  12765. <el-dialog
  12766. title="问答"
  12767. :visible.sync="answerDialogVisible"
  12768. :append-to-body="true"
  12769. width="800px"
  12770. :before-close="handleClose"
  12771. class="dialog_diy"
  12772. >
  12773. <div>
  12774. <div
  12775. style="
  12776. display: flex;
  12777. flex-wrap: nowrap;
  12778. flex-direction: column;
  12779. position: relative;
  12780. "
  12781. >
  12782. <div class="queTop" style="padding: 20px 0 20px 0">
  12783. <div class="question">
  12784. <img src="../../assets/icon/question.png" alt />
  12785. </div>
  12786. <div class="queTitle">
  12787. <div style="width: 90px; min-width: 90px">提问:</div>
  12788. <div>{{ answerQ }}</div>
  12789. </div>
  12790. </div>
  12791. <div class="ediBottom">
  12792. <textarea
  12793. rows="6"
  12794. class="binfo_input"
  12795. cols
  12796. style="width: 95%; height: 120px"
  12797. v-model="questionAnswer"
  12798. ></textarea>
  12799. </div>
  12800. </div>
  12801. </div>
  12802. <div slot="footer">
  12803. <el-button @click="answerDialogVisible = false">取 消</el-button>
  12804. <el-button type="primary" @click="addQuestion">提 交</el-button>
  12805. </div>
  12806. </el-dialog>
  12807. <el-dialog
  12808. title="问答"
  12809. :visible.sync="answerDialogVisibleTeacher"
  12810. :append-to-body="true"
  12811. width="800px"
  12812. :before-close="handleClose"
  12813. class="dialog_diy"
  12814. >
  12815. <div>
  12816. <div class="w_name">
  12817. 学生姓名:<span>{{ sStudent.student }}</span>
  12818. </div>
  12819. <div
  12820. style="
  12821. display: flex;
  12822. flex-wrap: nowrap;
  12823. flex-direction: column;
  12824. position: relative;
  12825. "
  12826. >
  12827. <div class="queTop" style="padding: 20px 0 20px 0">
  12828. <div class="question">
  12829. <img src="../../assets/icon/question.png" alt />
  12830. </div>
  12831. <div class="queTitle">
  12832. <div style="width: 90px; min-width: 90px">提问:</div>
  12833. <div>{{ answerQ }}</div>
  12834. </div>
  12835. </div>
  12836. <div class="ediBottom">
  12837. <textarea
  12838. rows="6"
  12839. class="binfo_input"
  12840. cols
  12841. style="width: 95%; height: 120px"
  12842. v-model="questionAnswer"
  12843. ></textarea>
  12844. </div>
  12845. </div>
  12846. </div>
  12847. <div slot="footer">
  12848. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  12849. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  12850. </div>
  12851. </el-dialog>
  12852. <el-dialog
  12853. title="倒计时"
  12854. :visible.sync="timeDialogVisible"
  12855. :append-to-body="true"
  12856. width="800px"
  12857. :before-close="handleClose"
  12858. class="dialog_diy"
  12859. >
  12860. <div>
  12861. <div style="margin-bottom: 20px; color: #999">
  12862. 提示:点击“+”或“-”修改倒计时时长。
  12863. </div>
  12864. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  12865. </div>
  12866. <div slot="footer">
  12867. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  12868. </div>
  12869. </el-dialog>
  12870. <el-dialog
  12871. title="权限设置"
  12872. :visible.sync="juriVisible"
  12873. :append-to-body="true"
  12874. width="400px"
  12875. :before-close="handleClose"
  12876. class="dialog_diy"
  12877. >
  12878. <div>
  12879. <div class="open_box">
  12880. <div class="switch_box">
  12881. <span>允许学生查看所有作业</span>
  12882. <el-switch
  12883. v-model="sIsOpen"
  12884. active-text=""
  12885. class="switchCss"
  12886. @change="updateSLook"
  12887. ></el-switch>
  12888. </div>
  12889. <div
  12890. class="switch_box"
  12891. v-if="
  12892. (courseDetail.userid == userid ||
  12893. (courseDetail.course_teacher &&
  12894. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  12895. "
  12896. >
  12897. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  12898. <span>禁止学生查看阶段</span>
  12899. <el-switch
  12900. v-model="IsLookOpen"
  12901. active-text=""
  12902. class="switchCss"
  12903. @change="updateLookOpen"
  12904. ></el-switch>
  12905. </div>
  12906. <div class="switch_box" v-if="courseDetail.userid == userid">
  12907. <span>开启跟随模式</span>
  12908. <el-switch
  12909. v-model="IsFollow"
  12910. active-text=""
  12911. class="switchCss"
  12912. @change="updateFollow"
  12913. ></el-switch>
  12914. </div>
  12915. </div>
  12916. </div>
  12917. <div slot="footer">
  12918. <el-button
  12919. style="background: #409efe; color: #fff"
  12920. @click="juriVisible = false"
  12921. >关 闭</el-button
  12922. >
  12923. </div>
  12924. </el-dialog>
  12925. <el-dialog
  12926. title="查看视频"
  12927. :visible.sync="videoVisible"
  12928. :append-to-body="true"
  12929. width="1000px"
  12930. :before-close="handleClose"
  12931. class="dialog_diy1"
  12932. >
  12933. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  12934. <video-player
  12935. class="video-player vjs-custom-skin"
  12936. :playsinline="true"
  12937. :options="videoDetail"
  12938. @play="onPlayerPlay($event)"
  12939. style="width: 100%; height: 100%"
  12940. ></video-player>
  12941. </div>
  12942. <div slot="footer">
  12943. <el-button
  12944. style="background: #409efe; color: #fff"
  12945. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  12946. >
  12947. 关 闭</el-button
  12948. >
  12949. </div>
  12950. </el-dialog>
  12951. <el-dialog
  12952. title="查看详情"
  12953. :visible.sync="commentDialogVisible"
  12954. :append-to-body="true"
  12955. width="800px"
  12956. :before-close="handleClose"
  12957. class="dialog_diy"
  12958. >
  12959. <div class="commentTop">
  12960. <div class="studentDetail">
  12961. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  12962. <div class="nameAndTime">
  12963. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  12964. <div>{{ commentDetail.time }}</div>
  12965. </div>
  12966. <div
  12967. class="returnBtn"
  12968. style="margin-left: auto; width: 80px"
  12969. v-if="
  12970. commentDetail.works &&
  12971. commentDetail.type == 0 &&
  12972. (tType == 1 || tType == 4)
  12973. "
  12974. @click="
  12975. showPicturePaint(
  12976. commentDetail.img ? commentDetail.img : commentDetail.works
  12977. )
  12978. "
  12979. >
  12980. 教师批注
  12981. </div>
  12982. </div>
  12983. <div
  12984. class="worksAnswer"
  12985. v-if="commentDetail.works && commentDetail.type == 2"
  12986. >
  12987. {{ JSON.parse(commentDetail.works)[0].answer }}
  12988. </div>
  12989. <div
  12990. class="worksAnswer"
  12991. v-if="commentDetail.works && commentDetail.type == 1"
  12992. >
  12993. <img
  12994. src="../../assets/teacherWork.png"
  12995. v-if="commentDetail.ateacher"
  12996. class="w_teachert"
  12997. />
  12998. <pdf
  12999. v-if="showPDF"
  13000. :pdfUrl="pptImgUrl"
  13001. style="width: 100%; height: 520px; overflow: auto"
  13002. :class="{ fullStyle: full }"
  13003. ></pdf>
  13004. <iframe
  13005. v-else
  13006. :src="pptImgUrl"
  13007. frameborder="0"
  13008. width="100%"
  13009. height="600"
  13010. :class="{ fullStyle: full }"
  13011. ></iframe>
  13012. </div>
  13013. <div
  13014. class="worksAnswer"
  13015. v-if="commentDetail.works && commentDetail.type == 0"
  13016. >
  13017. <img
  13018. src="../../assets/teacherWork.png"
  13019. v-if="commentDetail.ateacher"
  13020. class="w_teachert"
  13021. style="right: 105px"
  13022. />
  13023. <img
  13024. :src="commentDetail.works"
  13025. alt=""
  13026. @click="previewImg(commentDetail.works)"
  13027. />
  13028. </div>
  13029. <div
  13030. class="worksAnswer"
  13031. v-if="commentDetail.works && commentDetail.type == 3"
  13032. >
  13033. <img
  13034. src="../../assets/teacherWork.png"
  13035. v-if="commentDetail.ateacher"
  13036. class="w_teachert"
  13037. />
  13038. <video-player
  13039. class="video-player vjs-custom-skin"
  13040. :playsinline="true"
  13041. :options="videoDetail"
  13042. @play="onPlayerPlay($event)"
  13043. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13044. ></video-player>
  13045. </div>
  13046. <div
  13047. class="worksAnswer"
  13048. v-if="commentDetail.works && commentDetail.type == 10"
  13049. >
  13050. <div class="cont" v-html="commentDetail.works.text"></div>
  13051. </div>
  13052. <div
  13053. class="worksAnswer codeFileBox"
  13054. v-if="commentDetail.works && commentDetail.type == 12"
  13055. @click="downloadFile(commentDetail.works)"
  13056. >
  13057. <img src="../../assets/icon/codeFile.png" />
  13058. <div>点击下载文件</div>
  13059. </div>
  13060. <div
  13061. class="worksAnswer codeFileBox"
  13062. v-if="commentDetail.works && commentDetail.type == 15"
  13063. @click="
  13064. openCocoPi(
  13065. 57,
  13066. commentIndexJson.toolIndex,
  13067. commentDetail.userid,
  13068. commentDetail.sName
  13069. )
  13070. "
  13071. >
  13072. <img src="../../assets/icon/codeFile.png" />
  13073. <div>点击打开CocoPi</div>
  13074. </div>
  13075. <div
  13076. class="worksAnswer"
  13077. v-if="commentDetail.works && commentDetail.type == 13"
  13078. >
  13079. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13080. </div>
  13081. <div
  13082. class="worksAnswer"
  13083. v-if="commentDetail.works && commentDetail.type == 4"
  13084. >
  13085. <div class="evalCss">
  13086. <div class="nav">请选择星星进行评分</div>
  13087. <div class="middleBox" v-if="eScore.eStar">
  13088. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13089. <div class="nameAndrate">
  13090. <div>{{ e.value }}</div>
  13091. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13092. </div>
  13093. <div v-if="e.detail">{{ e.detail }}</div>
  13094. </div>
  13095. <div class="bz">
  13096. <textarea
  13097. disabled
  13098. rows="4"
  13099. class="pj"
  13100. style="
  13101. padding: 10px 5px;
  13102. width: 70%;
  13103. background: #f7f6f9;
  13104. font-size: 14px;
  13105. text-indent: 10px;
  13106. color: #000;
  13107. "
  13108. cols
  13109. v-model="eScore.eBzText"
  13110. placeholder="请输入评价内容..."
  13111. ></textarea>
  13112. </div>
  13113. </div>
  13114. </div>
  13115. </div>
  13116. <div class="comment">
  13117. <div class="commentList">
  13118. <div class="commentImg">
  13119. <img
  13120. @click="
  13121. isLikes(
  13122. commentDetail.wid,
  13123. userid,
  13124. 1,
  13125. null,
  13126. commentDetail.isLikes,
  13127. commentDetail.sName
  13128. )
  13129. "
  13130. :src="commentDetail.isLikes == true ? likes : noLikes"
  13131. alt=""
  13132. />
  13133. </div>
  13134. <div>{{ commentDetail.likesCount }}</div>
  13135. </div>
  13136. <div class="commentList">
  13137. <div class="commentImg">
  13138. <img src="../../assets/icon/comment/comment.png" alt="" />
  13139. </div>
  13140. <div>{{ commentDetail.commentCount }}</div>
  13141. </div>
  13142. </div>
  13143. <div class="drawPBox" v-if="commentDetail.img">
  13144. <span>教师批注</span>
  13145. <img
  13146. :src="commentDetail.img"
  13147. alt=""
  13148. @click="previewImg(commentDetail.img)"
  13149. />
  13150. <span
  13151. class="deleteImg"
  13152. v-if="tType == 1 || tType == 4"
  13153. @click.stop="deletePicturePaint(commentDetail.wid)"
  13154. style="
  13155. font-size: 14px;
  13156. width: auto !important;
  13157. color: #b4b4b4;
  13158. top: unset;
  13159. bottom: 0;
  13160. border: none;
  13161. padding: 0;
  13162. height: auto !important;
  13163. margin: 0;
  13164. "
  13165. >删除</span
  13166. >
  13167. </div>
  13168. </div>
  13169. <div class="commentBox">
  13170. <div class="pl">评论:</div>
  13171. <div style="max-height: 200px; overflow: auto">
  13172. <div
  13173. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13174. style="padding: 10px 0 0 0"
  13175. >
  13176. <div
  13177. class="studentDetail"
  13178. style="padding-top: 10px"
  13179. v-for="(co, coIndex) in commentDetail.commentJson"
  13180. :key="coIndex"
  13181. >
  13182. <div class="tx" style="min-width: 50px">
  13183. <img src="../../assets/avatar.png" alt="" />
  13184. </div>
  13185. <div class="plPerson">
  13186. <div class="plName">
  13187. <div>{{ co.commentPeople }}</div>
  13188. <div style="margin-left: 5px">
  13189. {{ co.commentTime }}
  13190. </div>
  13191. <div
  13192. class="deleteComment"
  13193. v-if="userid == co.userid"
  13194. @click="deleteComment(co.wid)"
  13195. >
  13196. 删除
  13197. </div>
  13198. </div>
  13199. <div class="plContent">{{ co.commentText }}</div>
  13200. </div>
  13201. </div>
  13202. </div>
  13203. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13204. </div>
  13205. </div>
  13206. <div style="margin-top: 10px">
  13207. <div class="displayBox">
  13208. <div
  13209. style="
  13210. color: #556db4;
  13211. font-size: 14px;
  13212. font-weight: bold;
  13213. padding-bottom: 10px;
  13214. "
  13215. >
  13216. 评价
  13217. </div>
  13218. <div class="easy_comment" v-if="false">
  13219. <div
  13220. v-for="(p, pIndex) in PlTextList"
  13221. :key="pIndex"
  13222. @click="fastText(p, 1)"
  13223. >
  13224. {{ p }}
  13225. </div>
  13226. </div>
  13227. </div>
  13228. <div>
  13229. <textarea
  13230. rows="3"
  13231. class="pj"
  13232. style="padding: 10px 5px"
  13233. cols
  13234. v-model="commentText"
  13235. placeholder="请输入评论"
  13236. ></textarea>
  13237. </div>
  13238. </div>
  13239. <div slot="footer">
  13240. <el-button
  13241. @click="
  13242. (commentDialogVisible = false),
  13243. (commentIndexJson = {}),
  13244. videoDetail.sources && videoDetail.sources[0]
  13245. ? (videoDetail.sources[0].src = '')
  13246. : ''
  13247. "
  13248. >取 消</el-button
  13249. >
  13250. <el-button
  13251. type="primary"
  13252. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  13253. >确 定</el-button
  13254. >
  13255. </div>
  13256. </el-dialog>
  13257. <el-dialog
  13258. title="查看文档"
  13259. :visible.sync="fullDialogVisible"
  13260. :append-to-body="true"
  13261. width="100%"
  13262. :before-close="handleClose"
  13263. :show-close="false"
  13264. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13265. >
  13266. <div slot="title" class="header-title">
  13267. <div style="color: #fff">查看文档</div>
  13268. <div
  13269. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  13270. style="
  13271. cursor: pointer;
  13272. position: absolute;
  13273. top: 20px;
  13274. right: 20px;
  13275. color: #fff;
  13276. "
  13277. >
  13278. 退出全屏
  13279. </div>
  13280. </div>
  13281. <div style="height: 100%;position: relative;">
  13282. <el-button
  13283. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13284. size="medium"
  13285. type="primary"
  13286. @click="
  13287. () => {
  13288. (fullDialogVisible = false),
  13289. changeSplitScreenBehavior({ code: 99 });
  13290. }
  13291. "
  13292. style="
  13293. cursor: pointer;
  13294. position: absolute;
  13295. top: 10px;
  13296. right: 20px;
  13297. color: #fff;
  13298. "
  13299. >
  13300. 退出全屏
  13301. </el-button>
  13302. <div
  13303. class="wheel"
  13304. v-if="
  13305. fulltype == 2 &&
  13306. fullUrl.indexOf(
  13307. 'https://view.officeapps.live.com/op/view.aspx?src='
  13308. ) != -1
  13309. "
  13310. style="width: 100%;height:100%; margin: 0 auto"
  13311. >
  13312. <iframe
  13313. style="width: 100%; height: 100%; border: none"
  13314. :src="fullUrl"
  13315. ></iframe>
  13316. </div>
  13317. <iframe
  13318. v-else-if="fulltype == 2"
  13319. style="width: 100%; height: 100%; border: none"
  13320. :src="fullUrl"
  13321. security="restricted"
  13322. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13323. ></iframe>
  13324. <pdf
  13325. v-else-if="fulltype == 3"
  13326. :pdfUrl="fullUrl"
  13327. style="width: 100%; height: 100%; overflow: auto"
  13328. ></pdf>
  13329. <div
  13330. class="wheel"
  13331. v-if="fulltype == 1"
  13332. style="
  13333. box-shadow: 0 0 6px 1px #f2f2f2;
  13334. height:100%;
  13335. width: 100%;
  13336. background: #f1f1f1;
  13337. "
  13338. >
  13339. <div class="title" style="width: 100%; box-sizing: border-box">
  13340. 查看文档
  13341. </div>
  13342. <el-form class="textBox" style="height: 90%">
  13343. <el-form-item class="textTitle">
  13344. <div style="font-size: 22px">
  13345. {{ fullUrl.name }}
  13346. </div>
  13347. </el-form-item>
  13348. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13349. <div
  13350. v-html="fullUrl.url"
  13351. class="textContent"
  13352. style="height: auto"
  13353. ></div>
  13354. </el-form>
  13355. </div>
  13356. </div>
  13357. <!-- <div slot="footer">
  13358. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13359. </div> -->
  13360. </el-dialog>
  13361. <el-dialog
  13362. title="个人评价"
  13363. :visible.sync="studentEvalDialogVisible"
  13364. :append-to-body="true"
  13365. width="800px"
  13366. :before-close="handleClose"
  13367. class="dialog_diy"
  13368. >
  13369. <div class="evalCss">
  13370. <div class="nav">请选择星星进行评分</div>
  13371. <div class="middleBox" v-if="eScore.eStar">
  13372. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13373. <div class="nameAndrate">
  13374. <div>{{ e.value }}</div>
  13375. <el-rate
  13376. v-model="eScore.eStar[eIndex]"
  13377. :disabled="isStar"
  13378. ></el-rate>
  13379. </div>
  13380. <div v-if="e.detail">{{ e.detail }}</div>
  13381. </div>
  13382. <div class="easy_comment" v-if="false">
  13383. <div
  13384. v-for="(p, pIndex) in PlTextList"
  13385. :key="pIndex"
  13386. @click="fastText(p, 2)"
  13387. >
  13388. {{ p }}
  13389. </div>
  13390. </div>
  13391. <div class="bz">
  13392. <textarea
  13393. :disabled="isStar"
  13394. rows="4"
  13395. class="pj"
  13396. style="
  13397. padding: 10px 5px;
  13398. width: 70%;
  13399. background: #f7f6f9;
  13400. font-size: 14px;
  13401. text-indent: 10px;
  13402. "
  13403. cols
  13404. v-model="eScore.eBzText"
  13405. placeholder="请输入评价内容..."
  13406. ></textarea>
  13407. </div>
  13408. </div>
  13409. </div>
  13410. <div slot="footer">
  13411. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13412. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13413. >确 定</el-button
  13414. >
  13415. </div>
  13416. </el-dialog>
  13417. <el-dialog
  13418. title="个人评价"
  13419. :visible.sync="studentEvalDialogVisibleTeacher"
  13420. :append-to-body="true"
  13421. width="800px"
  13422. :before-close="handleClose"
  13423. class="dialog_diy"
  13424. >
  13425. <div class="w_name">
  13426. 学生姓名:<span>{{ sStudent.student }}</span>
  13427. </div>
  13428. <div class="evalCss">
  13429. <div class="nav">请选择星星进行评分</div>
  13430. <div class="middleBox" v-if="eScore.eStar">
  13431. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13432. <div class="nameAndrate">
  13433. <div>{{ e.value }}</div>
  13434. <el-rate
  13435. v-model="eScore.eStar[eIndex]"
  13436. :disabled="isStar"
  13437. ></el-rate>
  13438. </div>
  13439. <div v-if="e.detail">{{ e.detail }}</div>
  13440. </div>
  13441. <div class="easy_comment" v-if="false">
  13442. <div
  13443. v-for="(p, pIndex) in PlTextList"
  13444. :key="pIndex"
  13445. @click="fastText(p, 2)"
  13446. >
  13447. {{ p }}
  13448. </div>
  13449. </div>
  13450. <div class="bz">
  13451. <textarea
  13452. :disabled="isStar"
  13453. rows="4"
  13454. class="pj"
  13455. style="
  13456. padding: 10px 5px;
  13457. width: 70%;
  13458. background: #f7f6f9;
  13459. font-size: 14px;
  13460. text-indent: 10px;
  13461. "
  13462. cols
  13463. v-model="eScore.eBzText"
  13464. placeholder="请输入评价内容..."
  13465. ></textarea>
  13466. </div>
  13467. </div>
  13468. </div>
  13469. <div slot="footer">
  13470. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13471. >取 消</el-button
  13472. >
  13473. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13474. >确 定</el-button
  13475. >
  13476. </div>
  13477. </el-dialog>
  13478. <el-dialog
  13479. title="选择匹配"
  13480. :visible.sync="dialogVisibleSelect"
  13481. :append-to-body="true"
  13482. width="90%"
  13483. :before-close="handleClose"
  13484. class="dialog_diy dialog_diy3"
  13485. >
  13486. <div v-if="selectJson">
  13487. <div class="select_box2">
  13488. <div class="select_box2_title">
  13489. <div>选择匹配</div>
  13490. <div>请选择对应的答案进行答题!</div>
  13491. </div>
  13492. <div class="select_box2_box">
  13493. <div class="select_box2_img">
  13494. <img
  13495. :src="selectJson.url"
  13496. @click="previewImg(selectJson.url)"
  13497. alt=""
  13498. />
  13499. </div>
  13500. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13501. <div style="padding-top: 15px">
  13502. <div class="select_answer_title" v-if="isSelect">
  13503. {{ selectAnswer.stu }}
  13504. </div>
  13505. <div class="select_answer_title" v-else>
  13506. 根据题目选择对应答案
  13507. </div>
  13508. <div
  13509. class="select_box2_answer_box"
  13510. v-for="(item2, checkIndex) in selectJson.select"
  13511. :key="checkIndex"
  13512. >
  13513. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13514. <el-select
  13515. :disabled="isSelect"
  13516. v-model="selectAnswer.answer[checkIndex]"
  13517. placeholder="请选择正确答案"
  13518. >
  13519. <el-option
  13520. v-for="(e, eIndex) in selectJson.select"
  13521. :key="eIndex"
  13522. :label="e"
  13523. :value="eIndex"
  13524. >
  13525. </el-option>
  13526. </el-select>
  13527. </div>
  13528. </div>
  13529. <div
  13530. class="rightAnswerCss"
  13531. v-if="isSelect && (tType == 1 || tType == 4)"
  13532. >
  13533. <div
  13534. v-for="(a, aIndex) in selectJson.answer"
  13535. :key="aIndex"
  13536. class="rightAnswer"
  13537. >
  13538. <div
  13539. v-if="selectAnswer.answer[aIndex] === a"
  13540. style="color: #767de1"
  13541. >
  13542. 回答正确
  13543. </div>
  13544. <div v-else>回答错误</div>
  13545. <div
  13546. style="margin-left: 10px"
  13547. v-if="selectAnswer.answer[aIndex] !== a"
  13548. >
  13549. 正确答案:
  13550. </div>
  13551. <div
  13552. :class="
  13553. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13554. "
  13555. >
  13556. {{ selectJson.select[a] }}
  13557. </div>
  13558. </div>
  13559. </div>
  13560. </div>
  13561. <div class="upAnswerCss">
  13562. <el-button
  13563. type="primary"
  13564. @click="addSelectAnswer"
  13565. v-if="!isSelect"
  13566. >提交答案</el-button
  13567. >
  13568. </div>
  13569. </div>
  13570. </div>
  13571. </div>
  13572. </el-dialog>
  13573. <el-dialog
  13574. title="选择匹配"
  13575. :visible.sync="dialogVisibleSelectTeacher"
  13576. :append-to-body="true"
  13577. width="90%"
  13578. :before-close="handleClose"
  13579. class="dialog_diy dialog_diy3"
  13580. >
  13581. <div v-if="selectJson">
  13582. <div class="w_name">
  13583. 学生姓名:<span>{{ sStudent.student }}</span>
  13584. </div>
  13585. <div class="select_box2">
  13586. <div class="select_box2_title">
  13587. <div>选择匹配</div>
  13588. <div>请选择对应的答案进行答题!</div>
  13589. </div>
  13590. <div class="select_box2_box">
  13591. <div class="select_box2_img">
  13592. <img
  13593. :src="selectJson.url"
  13594. @click="previewImg(selectJson.url)"
  13595. alt=""
  13596. />
  13597. </div>
  13598. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13599. <div style="padding-top: 15px">
  13600. <div class="select_answer_title" v-if="isSelect">
  13601. {{ selectAnswer.stu }}
  13602. </div>
  13603. <div class="select_answer_title" v-else>
  13604. 根据题目选择对应答案
  13605. </div>
  13606. <div
  13607. class="select_box2_answer_box"
  13608. v-for="(item2, checkIndex) in selectJson.select"
  13609. :key="checkIndex"
  13610. >
  13611. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13612. <el-select
  13613. :disabled="isSelect"
  13614. v-model="selectAnswer.answer[checkIndex]"
  13615. placeholder="请选择正确答案"
  13616. >
  13617. <el-option
  13618. v-for="(e, eIndex) in selectJson.select"
  13619. :key="eIndex"
  13620. :label="e"
  13621. :value="eIndex"
  13622. >
  13623. </el-option>
  13624. </el-select>
  13625. </div>
  13626. </div>
  13627. <div
  13628. class="rightAnswerCss"
  13629. v-if="isSelect && (tType == 1 || tType == 4)"
  13630. >
  13631. <div
  13632. v-for="(a, aIndex) in selectJson.answer"
  13633. :key="aIndex"
  13634. class="rightAnswer"
  13635. >
  13636. <div
  13637. v-if="selectAnswer.answer[aIndex] === a"
  13638. style="color: #767de1"
  13639. >
  13640. 回答正确
  13641. </div>
  13642. <div v-else>回答错误</div>
  13643. <div
  13644. style="margin-left: 10px"
  13645. v-if="selectAnswer.answer[aIndex] !== a"
  13646. >
  13647. 正确答案:
  13648. </div>
  13649. <div
  13650. :class="
  13651. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13652. "
  13653. >
  13654. {{ selectJson.select[a] }}
  13655. </div>
  13656. </div>
  13657. </div>
  13658. </div>
  13659. <div class="upAnswerCss">
  13660. <el-button
  13661. type="primary"
  13662. @click="addSelectAnswerTeacher"
  13663. v-if="!isSelect"
  13664. >提交答案</el-button
  13665. >
  13666. </div>
  13667. </div>
  13668. </div>
  13669. </div>
  13670. </el-dialog>
  13671. <el-dialog
  13672. title="教师评分"
  13673. :visible.sync="dialogVisibleScore"
  13674. :append-to-body="true"
  13675. width="800px"
  13676. :before-close="handleClose"
  13677. class="dialog_diy"
  13678. >
  13679. <div>
  13680. <div class="studentDetail">
  13681. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13682. <div class="nameAndTime">
  13683. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13684. <div>{{ commentDetail.time }}</div>
  13685. </div>
  13686. </div>
  13687. <div
  13688. class="worksAnswer"
  13689. v-if="commentDetail.works && commentDetail.type == 2"
  13690. >
  13691. {{ JSON.parse(commentDetail.works)[0].answer }}
  13692. </div>
  13693. <div
  13694. class="worksAnswer"
  13695. v-if="commentDetail.works && commentDetail.type == 1"
  13696. >
  13697. <pdf
  13698. v-if="showPDF"
  13699. :pdfUrl="pptImgUrl"
  13700. style="width: 100%; height: 520px; overflow: auto"
  13701. :class="{ fullStyle: full }"
  13702. ></pdf>
  13703. <iframe
  13704. v-else
  13705. :src="pptImgUrl"
  13706. frameborder="0"
  13707. width="100%"
  13708. height="600"
  13709. :class="{ fullStyle: full }"
  13710. ></iframe>
  13711. </div>
  13712. <div
  13713. class="worksAnswer"
  13714. v-if="commentDetail.works && commentDetail.type == 0"
  13715. >
  13716. <img
  13717. :src="commentDetail.works"
  13718. alt=""
  13719. @click="previewImg(commentDetail.works)"
  13720. />
  13721. </div>
  13722. <div
  13723. class="worksAnswer"
  13724. v-if="commentDetail.works && commentDetail.type == 3"
  13725. >
  13726. <video-player
  13727. class="video-player vjs-custom-skin"
  13728. :playsinline="true"
  13729. :options="videoDetail"
  13730. @play="onPlayerPlay($event)"
  13731. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13732. ></video-player>
  13733. </div>
  13734. <div
  13735. class="worksAnswer codeFileBox"
  13736. v-if="commentDetail.works && commentDetail.type == 12"
  13737. @click="downloadFile(commentDetail.works)"
  13738. >
  13739. <img src="../../assets/icon/codeFile.png" />
  13740. <div>点击下载文件</div>
  13741. </div>
  13742. <div
  13743. class="worksAnswer codeFileBox"
  13744. v-if="commentDetail.works && commentDetail.type == 15"
  13745. @click="
  13746. openCocoPi(
  13747. 57,
  13748. commentIndexJson.toolIndex,
  13749. commentDetail.userid,
  13750. commentDetail.sName
  13751. )
  13752. "
  13753. >
  13754. <img src="../../assets/icon/codeFile.png" />
  13755. <div>点击打开CocoPi</div>
  13756. </div>
  13757. <div
  13758. class="worksAnswer"
  13759. v-if="commentDetail.works && commentDetail.type == 13"
  13760. >
  13761. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13762. </div>
  13763. <div class="scoreBox">
  13764. <span class="t">请输入分数</span>
  13765. <el-input-number
  13766. :disabled="courseDetail.userid != userid"
  13767. v-model="wScore"
  13768. :controls="false"
  13769. :min="0"
  13770. :max="100"
  13771. ></el-input-number>
  13772. </div>
  13773. <div class="scoreDetailBox">
  13774. <span class="t">评分评论</span>
  13775. <el-input
  13776. type="textarea"
  13777. :rows="5"
  13778. :disabled="courseDetail.userid != userid"
  13779. resize="none"
  13780. v-model="scoreDetail"
  13781. placeholder="请输入对学生的评价"
  13782. >
  13783. </el-input>
  13784. </div>
  13785. </div>
  13786. <span slot="footer" class="dialog-footer">
  13787. <el-button
  13788. @click="
  13789. (dialogVisibleScore = false),
  13790. (commentIndexJson = {}),
  13791. videoDetail.sources && videoDetail.sources[0]
  13792. ? (videoDetail.sources[0].src = '')
  13793. : ''
  13794. "
  13795. >取 消</el-button
  13796. >
  13797. <el-button
  13798. type="primary"
  13799. v-if="courseDetail.userid == userid"
  13800. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  13801. >确 定
  13802. </el-button>
  13803. </span>
  13804. </el-dialog>
  13805. <el-dialog
  13806. title="排序"
  13807. :visible.sync="dialogVisibleSentence"
  13808. :append-to-body="true"
  13809. width="1000px"
  13810. :before-close="handleClose"
  13811. class="dialog_diy dialog_diy3"
  13812. >
  13813. <div>
  13814. <div class="sentenBox">
  13815. <div
  13816. v-for="(st, stIndex) in sentenceList"
  13817. :key="stIndex"
  13818. style="padding-bottom: 20px"
  13819. >
  13820. <div
  13821. style="padding: 15px 0 10px 20px"
  13822. class="sentenceTitle"
  13823. :index="stIndex + 1"
  13824. >
  13825. 题目{{ stIndex + 1 }}:请选择正确顺序
  13826. </div>
  13827. <div class="cardList" v-if="st.chooseSenList">
  13828. <div class="cardBox">
  13829. <div
  13830. v-for="(r, rIndex) in st.chooseSenList"
  13831. :key="rIndex"
  13832. @click="returnCard(r, stIndex, rIndex)"
  13833. >
  13834. <el-tooltip
  13835. class="item"
  13836. effect="light"
  13837. :content="r"
  13838. placement="top"
  13839. v-if="r != '' && r != undefined"
  13840. >
  13841. <div
  13842. :class="{
  13843. isCard: r,
  13844. isChooseCard: r == '' || r == undefined,
  13845. }"
  13846. >
  13847. <div>{{ r }}</div>
  13848. </div>
  13849. </el-tooltip>
  13850. <div
  13851. :class="{
  13852. isCard: r,
  13853. isChooseCard: r == '' || r == undefined,
  13854. }"
  13855. v-else
  13856. >
  13857. <div>{{ r }}</div>
  13858. </div>
  13859. </div>
  13860. </div>
  13861. </div>
  13862. <div class="cardList" v-if="st.addChangeSen">
  13863. <div class="cardBox">
  13864. <div
  13865. v-for="(s, sIndex) in st.addChangeSen"
  13866. :key="sIndex"
  13867. @click="setRightAnswer(s, stIndex, sIndex)"
  13868. >
  13869. <el-tooltip
  13870. class="item"
  13871. effect="light"
  13872. :content="s"
  13873. placement="top"
  13874. v-if="s != '' && s != undefined"
  13875. >
  13876. <div
  13877. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13878. >
  13879. <div>{{ s }}</div>
  13880. </div>
  13881. </el-tooltip>
  13882. <div
  13883. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13884. v-else
  13885. >
  13886. <div>{{ s }}</div>
  13887. </div>
  13888. </div>
  13889. </div>
  13890. </div>
  13891. </div>
  13892. </div>
  13893. </div>
  13894. <span slot="footer" class="dialog-footer">
  13895. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  13896. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  13897. </span>
  13898. </el-dialog>
  13899. <el-dialog
  13900. title="排序"
  13901. :visible.sync="dialogVisibleSentenceTeacher"
  13902. :append-to-body="true"
  13903. width="1000px"
  13904. :before-close="handleClose"
  13905. class="dialog_diy dialog_diy3"
  13906. >
  13907. <div>
  13908. <div class="w_name">
  13909. 学生姓名:<span>{{ sStudent.student }}</span>
  13910. </div>
  13911. <div class="sentenBox">
  13912. <div
  13913. v-for="(st, stIndex) in sentenceList"
  13914. :key="stIndex"
  13915. style="padding-bottom: 20px"
  13916. >
  13917. <div
  13918. style="padding: 15px 0 10px 20px"
  13919. class="sentenceTitle"
  13920. :index="stIndex + 1"
  13921. >
  13922. 题目{{ stIndex + 1 }}:请选择正确顺序
  13923. </div>
  13924. <div class="cardList" v-if="st.chooseSenList">
  13925. <div class="cardBox">
  13926. <div
  13927. v-for="(r, rIndex) in st.chooseSenList"
  13928. :key="rIndex"
  13929. @click="returnCard(r, stIndex, rIndex)"
  13930. >
  13931. <el-tooltip
  13932. class="item"
  13933. effect="light"
  13934. :content="r"
  13935. placement="top"
  13936. v-if="r != '' && r != undefined"
  13937. >
  13938. <div
  13939. :class="{
  13940. isCard: r,
  13941. isChooseCard: r == '' || r == undefined,
  13942. }"
  13943. >
  13944. <div>{{ r }}</div>
  13945. </div>
  13946. </el-tooltip>
  13947. <div
  13948. :class="{
  13949. isCard: r,
  13950. isChooseCard: r == '' || r == undefined,
  13951. }"
  13952. v-else
  13953. >
  13954. <div>{{ r }}</div>
  13955. </div>
  13956. </div>
  13957. </div>
  13958. </div>
  13959. <div class="cardList" v-if="st.addChangeSen">
  13960. <div class="cardBox">
  13961. <div
  13962. v-for="(s, sIndex) in st.addChangeSen"
  13963. :key="sIndex"
  13964. @click="setRightAnswer(s, stIndex, sIndex)"
  13965. >
  13966. <el-tooltip
  13967. class="item"
  13968. effect="light"
  13969. :content="s"
  13970. placement="top"
  13971. v-if="s != '' && s != undefined"
  13972. >
  13973. <div
  13974. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13975. >
  13976. <div>{{ s }}</div>
  13977. </div>
  13978. </el-tooltip>
  13979. <div
  13980. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  13981. v-else
  13982. >
  13983. <div>{{ s }}</div>
  13984. </div>
  13985. </div>
  13986. </div>
  13987. </div>
  13988. </div>
  13989. </div>
  13990. </div>
  13991. <span slot="footer" class="dialog-footer">
  13992. <el-button @click="dialogVisibleSentenceTeacher = false"
  13993. >取 消</el-button
  13994. >
  13995. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  13996. </span>
  13997. </el-dialog>
  13998. <el-dialog
  13999. title="排序"
  14000. :visible.sync="dialogVisibleSentence1"
  14001. :append-to-body="true"
  14002. width="1000px"
  14003. :before-close="handleClose"
  14004. class="dialog_diy dialog_diy3"
  14005. >
  14006. <div>
  14007. <div class="sentenBox">
  14008. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14009. {{ sentenceList1.stuName }}的作业
  14010. </div>
  14011. <div
  14012. v-for="(st, stIndex) in sentenceList1"
  14013. :key="stIndex"
  14014. style="padding-bottom: 20px"
  14015. >
  14016. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14017. 第{{ stIndex + 1 }}题
  14018. </div>
  14019. <div class="isWrong">
  14020. <div class="cardList1" v-if="st.chooseSenList">
  14021. <div class="cardBox">
  14022. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14023. <el-tooltip
  14024. class="item"
  14025. effect="light"
  14026. :content="s"
  14027. placement="top"
  14028. >
  14029. <div class="isCard">
  14030. <div>{{ s }}</div>
  14031. </div>
  14032. </el-tooltip>
  14033. </div>
  14034. </div>
  14035. <div class="cardAnswerBox">
  14036. 组成句子:{{ st.chooseSenList.join(" ") }}
  14037. </div>
  14038. </div>
  14039. <div v-if="tType == 2" class="isTj">
  14040. <div class="isTjImg">
  14041. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14042. </div>
  14043. <div>已提交</div>
  14044. </div>
  14045. <div
  14046. class="answerRight isTj"
  14047. v-if="
  14048. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14049. (tType == 1 || tType == 4)
  14050. "
  14051. >
  14052. <div class="isTjImg">
  14053. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14054. </div>
  14055. <div>回答正确</div>
  14056. </div>
  14057. <div
  14058. class="answerRight isTj"
  14059. v-if="
  14060. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14061. (tType == 1 || tType == 4)
  14062. "
  14063. >
  14064. <div class="isTjImg">
  14065. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14066. </div>
  14067. <div>回答错误</div>
  14068. </div>
  14069. </div>
  14070. <div
  14071. v-if="
  14072. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14073. (tType == 1 || tType == 4)
  14074. "
  14075. >
  14076. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14077. <div
  14078. class="cardList"
  14079. v-if="st.rightAnswer"
  14080. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14081. >
  14082. <div class="cardBox">
  14083. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14084. <el-tooltip
  14085. class="item"
  14086. effect="light"
  14087. :content="r"
  14088. placement="top"
  14089. >
  14090. <div class="isCard1">
  14091. <div>{{ r }}</div>
  14092. </div>
  14093. </el-tooltip>
  14094. </div>
  14095. </div>
  14096. <div class="cardAnswerBox">
  14097. 组成句子:{{ st.rightAnswer.join(" ") }}
  14098. </div>
  14099. </div>
  14100. </div>
  14101. </div>
  14102. </div>
  14103. </div>
  14104. <span slot="footer" class="dialog-footer">
  14105. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14106. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14107. >确 定</el-button
  14108. >
  14109. </span>
  14110. </el-dialog>
  14111. <el-dialog
  14112. title="教师提交作业"
  14113. :visible.sync="dialogVisibleWorks"
  14114. :append-to-body="true"
  14115. width="500px"
  14116. :before-close="handleClose"
  14117. class="dialog_change"
  14118. >
  14119. <div class="marginT">
  14120. <div class="w_name">
  14121. 学生姓名:<span>{{ sStudent.student }}</span>
  14122. </div>
  14123. <div>上传文件</div>
  14124. <div
  14125. class="chapter_add"
  14126. @click="addImg($event)"
  14127. v-if="studyJuri[0].cover.length == 0"
  14128. >
  14129. <div class="up_photo">
  14130. <img src="../../assets/uploadImg2.png" alt />
  14131. </div>
  14132. <!-- <input
  14133. type="file"
  14134. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14135. style="display: none"
  14136. @change="beforeUpload1($event, 1)"
  14137. /> -->
  14138. <input
  14139. type="file"
  14140. accept="*"
  14141. style="display: none"
  14142. @change="beforeUpload1($event, 1)"
  14143. />
  14144. </div>
  14145. <!-- capture="camera" -->
  14146. <div
  14147. class="chapter_add"
  14148. style="
  14149. display: flex;
  14150. width: 100%;
  14151. flex-direction: row;
  14152. flex-wrap: wrap;
  14153. justify-content: flex-start;
  14154. padding: 15px 0;
  14155. "
  14156. v-if="studyJuri[0].cover.length > 0"
  14157. >
  14158. <div class="upCover">
  14159. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14160. <img :src="word" alt v-else-if="fileType == 1" />
  14161. <img :src="video" alt v-else-if="fileType == 2" />
  14162. <img :src="word2" alt v-else-if="fileType == 3" />
  14163. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14164. <div class="deleteWord" @click="clean(1)">
  14165. <img src="../../assets/icon/deleteWorks.png" alt />
  14166. </div>
  14167. </div>
  14168. </div>
  14169. </div>
  14170. <div
  14171. class="upload_send"
  14172. @click="addCourseWorksTeacher(taskCount)"
  14173. v-if="!proVisible"
  14174. >
  14175. 提交
  14176. </div>
  14177. </el-dialog>
  14178. <ImgDraw
  14179. :drawShow="drawShow"
  14180. @closeDraw="closeDraw"
  14181. @addImgDraw="addImgDraw"
  14182. :bg="bg"
  14183. ></ImgDraw>
  14184. <el-dialog
  14185. title="表格"
  14186. :visible.sync="dialogVisibleTable"
  14187. :append-to-body="true"
  14188. width="95%"
  14189. :before-close="handleClose"
  14190. class="dialog_diy"
  14191. >
  14192. <el-form>
  14193. <div
  14194. style="
  14195. display: flex;
  14196. align-items: center;
  14197. justify-content: space-between;
  14198. "
  14199. >
  14200. <span>表格内容</span>
  14201. <el-button type="primary" size="small" @click="returnTableText"
  14202. >还原模板</el-button
  14203. >
  14204. </div>
  14205. <Table
  14206. v-model="tableJson.text"
  14207. @change="change"
  14208. v-if="dialogVisibleTable"
  14209. ></Table>
  14210. </el-form>
  14211. <span slot="footer" class="dialog-footer">
  14212. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14213. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14214. </span>
  14215. </el-dialog>
  14216. <el-dialog
  14217. title="表格"
  14218. :visible.sync="dialogVisibleTableTeacher"
  14219. :append-to-body="true"
  14220. width="95%"
  14221. :before-close="handleClose"
  14222. class="dialog_diy"
  14223. >
  14224. <el-form>
  14225. <div class="w_name">
  14226. 学生姓名:<span>{{ sStudent.student }}</span>
  14227. </div>
  14228. <div>表格内容</div>
  14229. <Table
  14230. v-model="tableJson.text"
  14231. @change="change"
  14232. v-if="dialogVisibleTableTeacher"
  14233. ></Table>
  14234. </el-form>
  14235. <span slot="footer" class="dialog-footer">
  14236. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14237. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14238. </span>
  14239. </el-dialog>
  14240. <el-dialog
  14241. title="文档"
  14242. :visible.sync="dialogVisibleWord"
  14243. :append-to-body="true"
  14244. width="95%"
  14245. :before-close="handleClose"
  14246. class="dialog_diy"
  14247. >
  14248. <el-form>
  14249. <div
  14250. style="
  14251. display: flex;
  14252. align-items: center;
  14253. justify-content: space-between;
  14254. "
  14255. >
  14256. <span>文档内容</span>
  14257. <el-button type="primary" size="small" @click="returnWordText"
  14258. >还原模板</el-button
  14259. >
  14260. </div>
  14261. <editor-bar
  14262. v-model="wordJson.text"
  14263. v-if="dialogVisibleWord"
  14264. ></editor-bar>
  14265. </el-form>
  14266. <span slot="footer" class="dialog-footer">
  14267. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14268. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14269. </span>
  14270. </el-dialog>
  14271. <el-dialog
  14272. title="文档"
  14273. :visible.sync="dialogVisibleWordTeacher"
  14274. :append-to-body="true"
  14275. width="95%"
  14276. :before-close="handleClose"
  14277. class="dialog_diy"
  14278. >
  14279. <el-form>
  14280. <div class="w_name">
  14281. 学生姓名:<span>{{ sStudent.student }}</span>
  14282. </div>
  14283. <div>文档内容</div>
  14284. <editor-bar
  14285. v-model="wordJson.text"
  14286. v-if="dialogVisibleWordTeacher"
  14287. ></editor-bar>
  14288. </el-form>
  14289. <span slot="footer" class="dialog-footer">
  14290. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14291. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14292. </span>
  14293. </el-dialog>
  14294. <el-dialog
  14295. title="表格"
  14296. :visible.sync="dialogVisibleTable2"
  14297. :append-to-body="true"
  14298. width="95%"
  14299. :before-close="handleClose"
  14300. class="dialog_diy"
  14301. >
  14302. <el-form>
  14303. <div class="cont" v-html="tableJson.text"></div>
  14304. </el-form>
  14305. <span slot="footer" class="dialog-footer">
  14306. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14307. </span>
  14308. </el-dialog>
  14309. <el-dialog
  14310. title="文档"
  14311. :visible.sync="dialogVisibleTable3"
  14312. :append-to-body="true"
  14313. width="95%"
  14314. :before-close="handleClose"
  14315. class="dialog_diy"
  14316. >
  14317. <el-form>
  14318. <div class="cont" v-html="tableJson.text"></div>
  14319. </el-form>
  14320. <span slot="footer" class="dialog-footer">
  14321. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14322. </span>
  14323. </el-dialog>
  14324. <el-dialog
  14325. title="分组设置"
  14326. :visible.sync="dialogVisibleGroup"
  14327. :append-to-body="true"
  14328. width="95%"
  14329. :before-close="handleClose"
  14330. class="dialog_diy"
  14331. >
  14332. <div v-if="dialogVisibleGroup">
  14333. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14334. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14335. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14336. </div>
  14337. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14338. @click="lockChair">
  14339. 锁定位置
  14340. </div>
  14341. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14342. 解锁位置
  14343. </div> -->
  14344. <div class="group_switch">
  14345. <span>开放选座</span>
  14346. <el-switch
  14347. v-model="islock"
  14348. active-text=""
  14349. class="switchCss"
  14350. @change="lockChair"
  14351. ></el-switch>
  14352. </div>
  14353. <div
  14354. type="primary"
  14355. @click="updateGroup"
  14356. class="returnBtn"
  14357. style="background-color: #225bc7"
  14358. >
  14359. 分组设置
  14360. </div>
  14361. </div>
  14362. <div>
  14363. <div
  14364. class="g_d_box"
  14365. v-if="groupJson.group && groupStudent[toolindex]"
  14366. >
  14367. <div
  14368. class="g_d_group"
  14369. v-for="(g, gindex) in groupJson.group"
  14370. :key="gindex"
  14371. >
  14372. <div class="g_d_group_chair">
  14373. <div v-if="groupJson.number > 1">
  14374. <span
  14375. :class="{
  14376. isChair:
  14377. groupStudent[toolindex][gindex] &&
  14378. groupStudent[toolindex][gindex][0],
  14379. updateChair:
  14380. courseDetail.userid == userid &&
  14381. groupStudent[toolindex][gindex] &&
  14382. groupStudent[toolindex][gindex][0] &&
  14383. groupJson.islock == 2,
  14384. }"
  14385. ><span
  14386. class="updateChairBtn"
  14387. @click="
  14388. updateGroupChair(
  14389. groupStudent[toolindex][gindex] &&
  14390. groupStudent[toolindex][gindex][0]
  14391. )
  14392. "
  14393. >修改</span
  14394. ></span
  14395. ><span>{{
  14396. groupStudent[toolindex][gindex] &&
  14397. groupStudent[toolindex][gindex][0]
  14398. ? groupStudent[toolindex][gindex] &&
  14399. groupStudent[toolindex][gindex][0].name
  14400. : "空位置"
  14401. }}</span>
  14402. </div>
  14403. <div v-if="groupJson.number > 4">
  14404. <span
  14405. :class="{
  14406. isChair:
  14407. groupStudent[toolindex][gindex] &&
  14408. groupStudent[toolindex][gindex][4],
  14409. updateChair:
  14410. courseDetail.userid == userid &&
  14411. groupStudent[toolindex][gindex] &&
  14412. groupStudent[toolindex][gindex][4] &&
  14413. groupJson.islock == 2,
  14414. }"
  14415. ><span
  14416. class="updateChairBtn"
  14417. @click="
  14418. updateGroupChair(
  14419. groupStudent[toolindex][gindex] &&
  14420. groupStudent[toolindex][gindex][4]
  14421. )
  14422. "
  14423. >修改</span
  14424. ></span
  14425. ><span>{{
  14426. groupStudent[toolindex][gindex] &&
  14427. groupStudent[toolindex][gindex][4]
  14428. ? groupStudent[toolindex][gindex] &&
  14429. groupStudent[toolindex][gindex][4].name
  14430. : "空位置"
  14431. }}</span>
  14432. </div>
  14433. <div v-if="groupJson.number > 8">
  14434. <span
  14435. :class="{
  14436. isChair:
  14437. groupStudent[toolindex][gindex] &&
  14438. groupStudent[toolindex][gindex][8],
  14439. updateChair:
  14440. courseDetail.userid == userid &&
  14441. groupStudent[toolindex][gindex] &&
  14442. groupStudent[toolindex][gindex][8] &&
  14443. groupJson.islock == 2,
  14444. }"
  14445. ><span
  14446. class="updateChairBtn"
  14447. @click="
  14448. updateGroupChair(
  14449. groupStudent[toolindex][gindex] &&
  14450. groupStudent[toolindex][gindex][8]
  14451. )
  14452. "
  14453. >修改</span
  14454. ></span
  14455. ><span>{{
  14456. groupStudent[toolindex][gindex] &&
  14457. groupStudent[toolindex][gindex][8]
  14458. ? groupStudent[toolindex][gindex] &&
  14459. groupStudent[toolindex][gindex][8].name
  14460. : "空位置"
  14461. }}</span>
  14462. </div>
  14463. </div>
  14464. <div class="g_d_group_tableBox">
  14465. <div class="g_d_group_chair2">
  14466. <div v-if="groupJson.number > 2">
  14467. <span
  14468. :class="{
  14469. isChair:
  14470. groupStudent[toolindex][gindex] &&
  14471. groupStudent[toolindex][gindex][2],
  14472. updateChair:
  14473. courseDetail.userid == userid &&
  14474. groupStudent[toolindex][gindex] &&
  14475. groupStudent[toolindex][gindex][2] &&
  14476. groupJson.islock == 2,
  14477. }"
  14478. ><span
  14479. class="updateChairBtn"
  14480. @click="
  14481. updateGroupChair(
  14482. groupStudent[toolindex][gindex] &&
  14483. groupStudent[toolindex][gindex][2]
  14484. )
  14485. "
  14486. >修改</span
  14487. ></span
  14488. ><span>{{
  14489. groupStudent[toolindex][gindex] &&
  14490. groupStudent[toolindex][gindex][2]
  14491. ? groupStudent[toolindex][gindex] &&
  14492. groupStudent[toolindex][gindex][2].name
  14493. : "空位置"
  14494. }}</span>
  14495. </div>
  14496. <div v-if="groupJson.number > 6">
  14497. <span
  14498. :class="{
  14499. isChair:
  14500. groupStudent[toolindex][gindex] &&
  14501. groupStudent[toolindex][gindex][6],
  14502. updateChair:
  14503. courseDetail.userid == userid &&
  14504. groupStudent[toolindex][gindex] &&
  14505. groupStudent[toolindex][gindex][6] &&
  14506. groupJson.islock == 2,
  14507. }"
  14508. ><span
  14509. class="updateChairBtn"
  14510. @click="
  14511. updateGroupChair(
  14512. groupStudent[toolindex][gindex] &&
  14513. groupStudent[toolindex][gindex][6]
  14514. )
  14515. "
  14516. >修改</span
  14517. ></span
  14518. ><span>{{
  14519. groupStudent[toolindex][gindex] &&
  14520. groupStudent[toolindex][gindex][6]
  14521. ? groupStudent[toolindex][gindex] &&
  14522. groupStudent[toolindex][gindex][6].name
  14523. : "空位置"
  14524. }}</span>
  14525. </div>
  14526. </div>
  14527. <div class="g_d_group_table">
  14528. <div>
  14529. {{ g.name }}
  14530. </div>
  14531. <div>
  14532. <div
  14533. v-if="
  14534. courseDetail.userid == userid && groupJson.islock == 2
  14535. "
  14536. @click="deleteGroupChair(gindex)"
  14537. >
  14538. 移除组员
  14539. </div>
  14540. <div
  14541. @click="selectGroup(gindex)"
  14542. v-else-if="
  14543. groupStudentUid[toolindex] &&
  14544. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14545. "
  14546. >
  14547. 加入分组
  14548. </div>
  14549. <div
  14550. @click="
  14551. exitGroup(
  14552. groupStudent[toolindex][gindex] &&
  14553. groupStudent[toolindex][gindex][
  14554. groupStudentUid[toolindex][gindex].indexOf(userid)
  14555. ].id
  14556. )
  14557. "
  14558. v-else-if="
  14559. groupStudentUid[toolindex] &&
  14560. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14561. "
  14562. >
  14563. 退出分组
  14564. </div>
  14565. </div>
  14566. </div>
  14567. <div class="g_d_group_chair2">
  14568. <div v-if="groupJson.number > 3">
  14569. <span
  14570. :class="{
  14571. isChair:
  14572. groupStudent[toolindex][gindex] &&
  14573. groupStudent[toolindex][gindex][3],
  14574. updateChair:
  14575. courseDetail.userid == userid &&
  14576. groupStudent[toolindex][gindex] &&
  14577. groupStudent[toolindex][gindex][3] &&
  14578. groupJson.islock == 2,
  14579. }"
  14580. ><span
  14581. class="updateChairBtn"
  14582. @click="
  14583. updateGroupChair(
  14584. groupStudent[toolindex][gindex] &&
  14585. groupStudent[toolindex][gindex][3]
  14586. )
  14587. "
  14588. >修改</span
  14589. ></span
  14590. ><span>{{
  14591. groupStudent[toolindex][gindex] &&
  14592. groupStudent[toolindex][gindex][3]
  14593. ? groupStudent[toolindex][gindex] &&
  14594. groupStudent[toolindex][gindex][3].name
  14595. : "空位置"
  14596. }}</span>
  14597. </div>
  14598. <div v-if="groupJson.number > 7">
  14599. <span
  14600. :class="{
  14601. isChair:
  14602. groupStudent[toolindex][gindex] &&
  14603. groupStudent[toolindex][gindex][7],
  14604. updateChair:
  14605. courseDetail.userid == userid &&
  14606. groupStudent[toolindex][gindex] &&
  14607. groupStudent[toolindex][gindex][7] &&
  14608. groupJson.islock == 2,
  14609. }"
  14610. ><span
  14611. class="updateChairBtn"
  14612. @click="
  14613. updateGroupChair(
  14614. groupStudent[toolindex][gindex] &&
  14615. groupStudent[toolindex][gindex][7]
  14616. )
  14617. "
  14618. >修改</span
  14619. ></span
  14620. ><span>{{
  14621. groupStudent[toolindex][gindex] &&
  14622. groupStudent[toolindex][gindex][7]
  14623. ? groupStudent[toolindex][gindex] &&
  14624. groupStudent[toolindex][gindex][7].name
  14625. : "空位置"
  14626. }}</span>
  14627. </div>
  14628. </div>
  14629. </div>
  14630. <div class="g_d_group_chair">
  14631. <div v-if="groupJson.number > 1">
  14632. <span
  14633. :class="{
  14634. isChair:
  14635. groupStudent[toolindex][gindex] &&
  14636. groupStudent[toolindex][gindex][1],
  14637. updateChair:
  14638. courseDetail.userid == userid &&
  14639. groupStudent[toolindex][gindex] &&
  14640. groupStudent[toolindex][gindex][1] &&
  14641. groupJson.islock == 2,
  14642. }"
  14643. ><span
  14644. class="updateChairBtn"
  14645. @click="
  14646. updateGroupChair(
  14647. groupStudent[toolindex][gindex] &&
  14648. groupStudent[toolindex][gindex][1]
  14649. )
  14650. "
  14651. >修改</span
  14652. ></span
  14653. ><span>{{
  14654. groupStudent[toolindex][gindex] &&
  14655. groupStudent[toolindex][gindex][1]
  14656. ? groupStudent[toolindex][gindex] &&
  14657. groupStudent[toolindex][gindex][1].name
  14658. : "空位置"
  14659. }}</span>
  14660. </div>
  14661. <div v-if="groupJson.number > 5">
  14662. <span
  14663. :class="{
  14664. isChair:
  14665. groupStudent[toolindex][gindex] &&
  14666. groupStudent[toolindex][gindex][5],
  14667. updateChair:
  14668. courseDetail.userid == userid &&
  14669. groupStudent[toolindex][gindex] &&
  14670. groupStudent[toolindex][gindex][5] &&
  14671. groupJson.islock == 2,
  14672. }"
  14673. ><span
  14674. class="updateChairBtn"
  14675. @click="
  14676. updateGroupChair(
  14677. groupStudent[toolindex][gindex] &&
  14678. groupStudent[toolindex][gindex][5]
  14679. )
  14680. "
  14681. >修改</span
  14682. ></span
  14683. ><span>{{
  14684. groupStudent[toolindex][gindex] &&
  14685. groupStudent[toolindex][gindex][5]
  14686. ? groupStudent[toolindex][gindex] &&
  14687. groupStudent[toolindex][gindex][5].name
  14688. : "空位置"
  14689. }}</span>
  14690. </div>
  14691. <div v-if="groupJson.number > 9">
  14692. <span
  14693. :class="{
  14694. isChair:
  14695. groupStudent[toolindex][gindex] &&
  14696. groupStudent[toolindex][gindex][9],
  14697. updateChair:
  14698. courseDetail.userid == userid &&
  14699. groupStudent[toolindex][gindex] &&
  14700. groupStudent[toolindex][gindex][9] &&
  14701. groupJson.islock == 2,
  14702. }"
  14703. ><span
  14704. class="updateChairBtn"
  14705. @click="
  14706. updateGroupChair(
  14707. groupStudent[toolindex][gindex] &&
  14708. groupStudent[toolindex][gindex][9]
  14709. )
  14710. "
  14711. >修改</span
  14712. ></span
  14713. ><span>{{
  14714. groupStudent[toolindex][gindex] &&
  14715. groupStudent[toolindex][gindex][9]
  14716. ? groupStudent[toolindex][gindex] &&
  14717. groupStudent[toolindex][gindex][9].name
  14718. : "空位置"
  14719. }}</span>
  14720. </div>
  14721. </div>
  14722. </div>
  14723. </div>
  14724. </div>
  14725. </div>
  14726. <span slot="footer" class="dialog-footer">
  14727. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  14728. </span>
  14729. </el-dialog>
  14730. <el-dialog
  14731. title="分组设置"
  14732. :visible.sync="dialogVisibleGroup2"
  14733. :append-to-body="true"
  14734. width="650px"
  14735. :before-close="handleClose"
  14736. class="dialog_diy"
  14737. >
  14738. <div class="groupBox">
  14739. <div v-if="groupJson2.group" class="groupContent">
  14740. <div class="groupTitle">请设置小组数量及名称</div>
  14741. <div
  14742. v-for="(item, index) in groupJson2.group"
  14743. :key="index"
  14744. class="groupName"
  14745. >
  14746. <span class="groupn">第{{ index + 1 }}组名称:</span>
  14747. <el-input
  14748. v-model="item.name"
  14749. placeholder="请输入名称..."
  14750. style="width: 250px"
  14751. ></el-input>
  14752. <!-- <div class="groupBtn">
  14753. <el-button type="primary" size="small" @click="addGroup(index)">
  14754. 添加</el-button>
  14755. <el-button type="primary" size="small" @click="deleteGroup(index)"
  14756. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  14757. </div> -->
  14758. </div>
  14759. </div>
  14760. <div class="groupContent">
  14761. <div class="groupTitle">请设置每组人数</div>
  14762. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  14763. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  14764. <el-input
  14765. v-model="groupJson2.number"
  14766. style="width: 150px"
  14767. placeholder="请输入2-10的数字"
  14768. @change="numberPan"
  14769. ></el-input>
  14770. </div>
  14771. </div>
  14772. <span slot="footer" class="dialog-footer">
  14773. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  14774. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  14775. </span>
  14776. </el-dialog>
  14777. <el-dialog
  14778. title="作业提交"
  14779. :visible.sync="dialogVisibleGroupWork"
  14780. :append-to-body="true"
  14781. width="500px"
  14782. :before-close="handleClose"
  14783. class="dialog_change"
  14784. >
  14785. <div class="marginT">
  14786. <div>上传文件</div>
  14787. <div
  14788. class="chapter_add"
  14789. @click="addImg($event)"
  14790. v-if="studyJuri[0].cover.length == 0"
  14791. >
  14792. <div class="up_photo">
  14793. <img src="../../assets/icon/uploadImg.png" alt />
  14794. </div>
  14795. <!-- <input
  14796. type="file"
  14797. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14798. style="display: none"
  14799. @change="beforeUpload1($event, 1)"
  14800. /> -->
  14801. <input
  14802. type="file"
  14803. accept="*"
  14804. style="display: none"
  14805. @change="beforeUpload1($event, 1)"
  14806. />
  14807. </div>
  14808. <!-- capture="camera" -->
  14809. <div
  14810. class="chapter_add"
  14811. style="
  14812. display: flex;
  14813. width: 100%;
  14814. flex-direction: row;
  14815. flex-wrap: wrap;
  14816. justify-content: flex-start;
  14817. padding: 15px 0;
  14818. "
  14819. v-if="studyJuri[0].cover.length > 0"
  14820. >
  14821. <div class="upCover">
  14822. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14823. <img :src="word" alt v-else-if="fileType == 1" />
  14824. <img :src="video" alt v-else-if="fileType == 2" />
  14825. <img :src="word2" alt v-else-if="fileType == 3" />
  14826. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14827. <div class="deleteWord" @click="clean(1)">
  14828. <img src="../../assets/icon/deleteWorks.png" alt />
  14829. </div>
  14830. </div>
  14831. </div>
  14832. </div>
  14833. <div
  14834. class="upload_send"
  14835. @click="addCourseWorks2(taskCount)"
  14836. v-if="!proVisible"
  14837. >
  14838. 提交
  14839. </div>
  14840. </el-dialog>
  14841. <el-dialog
  14842. title="修改分组"
  14843. :visible.sync="dialogVisibleUpdateGroup"
  14844. :append-to-body="true"
  14845. width="350px"
  14846. :before-close="handleClose"
  14847. class="dialog_diy"
  14848. >
  14849. <div>
  14850. <h2>
  14851. {{ this.updateGroupUser.name }}
  14852. </h2>
  14853. <div style="color: rgb(171 171 171); margin-top: 10px">
  14854. 请选择要进入的分组
  14855. </div>
  14856. <el-radio-group v-model="checkChair">
  14857. <el-radio
  14858. style="display: block; margin-top: 20px"
  14859. v-for="(item, index) in updateGroupArray"
  14860. :label="item.label"
  14861. :key="index"
  14862. >{{ item.name }}</el-radio
  14863. >
  14864. </el-radio-group>
  14865. </div>
  14866. <span slot="footer" class="dialog-footer">
  14867. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  14868. <el-button type="primary" @click="updateChair">确定</el-button>
  14869. </span>
  14870. </el-dialog>
  14871. <el-dialog
  14872. title="移除组员"
  14873. :visible.sync="dialogVisibleDeleteGroup"
  14874. :append-to-body="true"
  14875. width="350px"
  14876. :before-close="handleClose"
  14877. class="dialog_diy"
  14878. >
  14879. <div>
  14880. <h2>
  14881. {{ this.deleteGroupArray.name }}
  14882. </h2>
  14883. <div style="color: rgb(171 171 171); margin-top: 10px">
  14884. 请选择要删除的组员
  14885. </div>
  14886. <el-checkbox-group v-model="checkDeleteGroup">
  14887. <el-checkbox
  14888. style="display: flex; margin-top: 20px"
  14889. v-for="(item, index) in deleteGroupUser"
  14890. :label="item.userid"
  14891. :key="index"
  14892. >{{ item.name }}</el-checkbox
  14893. >
  14894. </el-checkbox-group>
  14895. </div>
  14896. <span slot="footer" class="dialog-footer">
  14897. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  14898. <el-button type="primary" @click="deleteChair">确定</el-button>
  14899. </span>
  14900. </el-dialog>
  14901. <el-dialog
  14902. title="批量上传"
  14903. :visible.sync="dialogVisiblePl"
  14904. :append-to-body="true"
  14905. width="700px"
  14906. :before-close="handleClose"
  14907. class="dialog_change"
  14908. >
  14909. <div class="marginT">
  14910. <div class="plworkBox">
  14911. <div
  14912. class="chapter_add"
  14913. style="
  14914. display: flex;
  14915. width: 150px;
  14916. flex-direction: row;
  14917. flex-wrap: wrap;
  14918. justify-content: flex-start;
  14919. margin: 0 10px 10px 0;
  14920. "
  14921. v-for="(item, index) in plworkFile"
  14922. :key="index"
  14923. >
  14924. <div class="upCover2">
  14925. <img
  14926. :src="item.url"
  14927. alt
  14928. v-if="item.fileType == 1"
  14929. @click="previewImg(item.url)"
  14930. />
  14931. <img :src="word" alt v-else-if="item.fileType == 4" />
  14932. <img :src="video" alt v-else />
  14933. <!-- <span class="picName">{{ item.name }}</span> -->
  14934. <!-- <el-input
  14935. v-model="item.username"
  14936. placeholder="请输入学生名字"
  14937. style="margin-top: 10px"
  14938. ></el-input> -->
  14939. <div
  14940. class="pl_select_box"
  14941. @click="
  14942. getUpdateMore(true, checkUpload(), item.username, index)
  14943. "
  14944. >
  14945. {{ getSName(item.username) }}
  14946. </div>
  14947. <!-- <el-select
  14948. style="margin-top: 10px"
  14949. v-model="item.username"
  14950. filterable
  14951. allow-create
  14952. placeholder="请选择学生"
  14953. >
  14954. <el-option
  14955. v-for="item1 in checkUpload()"
  14956. :key="item1.userid"
  14957. :label="item1.name ? item1.name : item1.username"
  14958. :value="item1.userid"
  14959. >
  14960. </el-option>
  14961. </el-select> -->
  14962. <div class="deleteWord" @click="clean2(index)">
  14963. <img src="../../assets/icon/deleteWorks.png" alt />
  14964. </div>
  14965. </div>
  14966. </div>
  14967. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  14968. <div class="up_photo2">
  14969. <img src="../../assets/icon/plwork.png" alt />
  14970. <span>点击上传文件</span>
  14971. </div>
  14972. <input
  14973. type="file"
  14974. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14975. multiple="multiple"
  14976. style="display: none"
  14977. @change="beforeUpload3($event, 6)"
  14978. />
  14979. </div>
  14980. </div>
  14981. </div>
  14982. <!-- capture="camera" -->
  14983. <div
  14984. class="upload_send"
  14985. @click="addCourseWorksPl(taskCount)"
  14986. v-if="!proVisible2"
  14987. >
  14988. 提交
  14989. </div>
  14990. </el-dialog>
  14991. <el-dialog
  14992. title="修改名称"
  14993. :visible.sync="dialogVisibleSname"
  14994. width="500px"
  14995. :before-close="handleClose"
  14996. class="dialog_diy"
  14997. center
  14998. >
  14999. <div
  15000. style="
  15001. text-align: center;
  15002. display: flex;
  15003. align-items: center;
  15004. justify-content: center;
  15005. "
  15006. >
  15007. <span class="tian1">名称</span>
  15008. <div
  15009. class="pl_select_box"
  15010. style="margin-left: 10px; width: 200px"
  15011. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15012. >
  15013. {{ getSName(worksSName) }}
  15014. </div>
  15015. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15016. placeholder="请选择学生">
  15017. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15018. :value="item.userid">
  15019. </el-option>
  15020. </el-select> -->
  15021. <!-- <el-input
  15022. v-model="worksSName"
  15023. style="width: 250px; margin: 15px 0px"
  15024. ></el-input> -->
  15025. </div>
  15026. <span slot="footer" class="dialog-footer">
  15027. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15028. <el-button type="primary" @click="updateName">确 定</el-button>
  15029. </span>
  15030. </el-dialog>
  15031. <el-dialog
  15032. title="英语写作"
  15033. :visible.sync="engDialogVisible"
  15034. :append-to-body="true"
  15035. width="800px"
  15036. :before-close="handleClose"
  15037. class="dialog_diy"
  15038. >
  15039. <onlineWrite
  15040. v-if="engDialogVisible"
  15041. :englishList="englishList"
  15042. :myAnswerList1="myAnswerList1"
  15043. ref="engJson"
  15044. ></onlineWrite>
  15045. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15046. <el-button @click="engDialogVisible = false">取 消</el-button>
  15047. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15048. </span>
  15049. </el-dialog>
  15050. <el-dialog
  15051. title="英语写作"
  15052. :visible.sync="engUpdateDialogVisible"
  15053. :append-to-body="true"
  15054. width="800px"
  15055. :before-close="handleClose"
  15056. class="dialog_diy fullStyle"
  15057. >
  15058. <div class="engUpBox">
  15059. <div class="engUpTop">
  15060. <div class="engTitle">
  15061. <div>作文题目:</div>
  15062. <div>{{ englishList1.engTitle }}</div>
  15063. </div>
  15064. <div class="engText">
  15065. <div>作文内容:</div>
  15066. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  15067. </div>
  15068. </div>
  15069. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  15070. <div class="oldBox">
  15071. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15072. <div class="oldText">
  15073. <div class="detailBox">
  15074. <div class="oldDetail">
  15075. <div>标题:</div>
  15076. <div>{{ oldEnglishJson.engTitle }} </div>
  15077. </div>
  15078. <div class="oldDetail1">
  15079. <div>正文:</div>
  15080. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  15081. </div>
  15082. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  15083. <div>图片:</div>
  15084. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  15085. </div>
  15086. </div>
  15087. </div>
  15088. </div>
  15089. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15090. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15091. <div class="oldText">
  15092. <div class="detailBox" style="position: relative;">
  15093. <div class="oldDetail">
  15094. <div>标题:</div>
  15095. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15096. <div v-else v-html="newEnglishList.engTitle"></div>
  15097. </div>
  15098. <div class="oldDetail">
  15099. <div>正文:</div>
  15100. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15101. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15102. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15103. </div>
  15104. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15105. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15106. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15107. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15108. </div>
  15109. </div>
  15110. </div>
  15111. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15112. <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">
  15113. <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>
  15114. <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>
  15115. </div>
  15116. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  15117. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  15118. <div class="detailBox" style="position: relative;">
  15119. <div class="oldDetail">
  15120. <div>标题:</div>
  15121. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  15122. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15123. </div>
  15124. <div class="oldDetail">
  15125. <div>正文:</div>
  15126. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  15127. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  15128. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  15129. </div>
  15130. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15131. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15132. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15133. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15134. </div>
  15135. </div>
  15136. <div class="oldText" v-else-if="newEngIndex == -1">
  15137. <div class="detailBox" style="position: relative;">
  15138. <div class="oldDetail">
  15139. <div>标题:</div>
  15140. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15141. <div v-else v-html="newEnglishList.engTitle"></div>
  15142. </div>
  15143. <div class="oldDetail">
  15144. <div>正文:</div>
  15145. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15146. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15147. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15148. </div>
  15149. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15150. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15151. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15152. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15153. </div>
  15154. </div>
  15155. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  15156. <div class="detailBox" style="position: relative;">
  15157. <div class="oldDetail">
  15158. <div>标题:</div>
  15159. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15160. <div v-else>
  15161. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  15162. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15163. </div>
  15164. </div>
  15165. <div class="oldDetail">
  15166. <div>正文:</div>
  15167. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  15168. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15169. <div v-else>
  15170. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  15171. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15172. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  15173. </div>
  15174. </div>
  15175. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15176. <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>
  15177. <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>
  15178. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15179. </div>
  15180. </div>
  15181. </div>
  15182. </div>
  15183. </div>
  15184. <span slot="footer" class="dialog-footer">
  15185. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15186. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15187. </span>
  15188. </el-dialog>
  15189. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  15190. <interVideo
  15191. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15192. :videoJson="videoJson"
  15193. :userid="userid"
  15194. :id="id"
  15195. :courseType="courseType"
  15196. :taskCount="taskCount"
  15197. :toolindex="toolindex"
  15198. :videoType="videoType"
  15199. ></interVideo>
  15200. <UpdateMore
  15201. :dialogVisibleMember.sync="dialogVisibleMember"
  15202. :cList="uploadStudentJuri"
  15203. :userid="userid"
  15204. :searchTN="worksSName2"
  15205. @setPlname="setPlname"
  15206. ></UpdateMore>
  15207. <!-- <wordCloud
  15208. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15209. :data="wordCloudData"
  15210. ></wordCloud> -->
  15211. <el-dialog
  15212. title="词云"
  15213. :visible.sync="dialogVisibleWordCloud"
  15214. width="30%"
  15215. class="dialog_diy"
  15216. :before-close="handleClose">
  15217. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15218. </el-dialog>
  15219. <el-dialog
  15220. title="挑人"
  15221. :visible.sync="dialogVisiblePickPeople"
  15222. width="650px"
  15223. :before-close="handleClose"
  15224. class="dialog_diy"
  15225. center
  15226. >
  15227. <div class="pick_box">
  15228. <div
  15229. class="noWorksName"
  15230. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15231. v-for="(item, index) in uploadStudentJuri"
  15232. :key="index"
  15233. @click="pickStudent(item)"
  15234. >
  15235. {{ item.name }}
  15236. </div>
  15237. </div>
  15238. </el-dialog>
  15239. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  15240. :englishVoiceJson='englishVoiceJson'
  15241. :userid="userid"
  15242. :id="id"
  15243. :courseType="courseType"
  15244. :taskCount="taskCount"
  15245. :toolindex="toolindex"
  15246. @selectSWorks="selectSWorks"
  15247. @selectStudent="selectStudent"
  15248. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15249. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15250. :userid="userid"
  15251. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15252. :commentDetail="commentDetail"
  15253. :courseDetail="courseDetail"
  15254. :wScore="wScore"
  15255. :scoreDetail="scoreDetail"
  15256. @selectSWorks="selectSWorks"
  15257. @selectStudent="selectStudent"></checkEnglishVoice>
  15258. <el-dialog
  15259. title="教师评分"
  15260. :visible.sync="markScoreVisible"
  15261. :append-to-body="true"
  15262. width="1000px"
  15263. :fullscreen="markfullscreen"
  15264. :before-close="markScorehandleClose"
  15265. class="markScore_diy"
  15266. >
  15267. <div slot="title">
  15268. <div class="markScore_diyTit">
  15269. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15270. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15271. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15272. </div>
  15273. </div>
  15274. </div>
  15275. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15276. <!-- @updateDocSco="updateDocSco" -->
  15277. <markDialog
  15278. :key="markScoreVisible.toString()"
  15279. :uid="markScoreUid"
  15280. :toolIndex="markScoretoolIndex"
  15281. :stage="courseType"
  15282. :task="taskCount"
  15283. :taskDetail="
  15284. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15285. "
  15286. :tool="toolListS"
  15287. :languageSetting="languageSetting"
  15288. :scoTit="markScoreTit"
  15289. :tType="tType"
  15290. :sIsOpen="sIsOpen"
  15291. :markScoreworksStudent="markScoreworksStudent"
  15292. :markScoreVisible="markScoreVisible"
  15293. ></markDialog>
  15294. </el-dialog>
  15295. <!-- 查看Txt,md等文件 -->
  15296. <el-dialog
  15297. title="文件预览"
  15298. :visible.sync="dialogVisibleTxt"
  15299. width="50%"
  15300. :before-close="handleCloseTxt"
  15301. class="dialog_diy"
  15302. :class="{ fullStyle: full }"
  15303. >
  15304. <div slot="title" class="header-title">
  15305. <div style="color: #fff">文件预览</div>
  15306. <div style="position: absolute; top: 19px; right: 50px">
  15307. <img
  15308. src="../../assets/full.png"
  15309. style="height: 16px; cursor: pointer"
  15310. alt=""
  15311. @click="fullTools"
  15312. />
  15313. </div>
  15314. </div>
  15315. <div>{{ TxtMd }}</div>
  15316. </el-dialog>
  15317. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15318. <choseWorksDetailDialog
  15319. ref="choseWorksDetailDialogRef"
  15320. :worksStudentData="worksStudent"
  15321. :noWorksSData="noWorksS"
  15322. :chapInfoListData="chapInfoList"
  15323. :courseType="courseType"
  15324. :taskCount="taskCount"
  15325. :tType="tType"
  15326. :sIsOpen="sIsOpen"
  15327. :courseDetail="courseDetail"
  15328. :groupStudent2="groupStudent"
  15329. :groupStudentUid2="groupStudentUid"
  15330. :oid="oid"
  15331. :org="org"
  15332. @getCourseDetail="getCourseDetail"
  15333. @selectSLook="selectSLook"
  15334. @selectSWorks="selectSWorks"
  15335. @selectStudent="selectStudent"
  15336. @openWord="openWord"
  15337. @openScore="openScore"
  15338. @deleteWorks="deleteWorks"
  15339. @openTools="openTools"
  15340. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15341. />
  15342. <el-dialog
  15343. :visible.sync="confirmOpenDig"
  15344. width="500px"
  15345. :modal="false"
  15346. class="confirmOpenDigCss dialog_diyCopy"
  15347. :before-close="handleClose">
  15348. <div style="display: flex;align-items: center;">
  15349. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15350. <span>“{{ courseDetail.title }}”开课啦</span>
  15351. </div>
  15352. <div style="margin: 20px 0 35px;">
  15353. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15354. <div>要认真听讲哦~</div>
  15355. </div>
  15356. <div style="text-align: center;">
  15357. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15358. </div>
  15359. </el-dialog>
  15360. <appStoreC ref="appStoreC"
  15361. :sStudent="sStudent"
  15362. :courseType="courseType"
  15363. :taskCount="taskCount"
  15364. :toolindex="toolindex"
  15365. @selectSWorks="selectSWorks"
  15366. @selectStudent="selectStudent"
  15367. ></appStoreC>
  15368. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15369. </div>
  15370. </template>
  15371. <script>
  15372. import "../../common/aws-sdk-2.235.1.min.js";
  15373. // import pdf from "../components/pdf3";
  15374. import pdf from "../components/vpdf";
  15375. import AskStatic from "../components/askStatic";
  15376. import AskStatic2 from "../components/askStatic2";
  15377. import AnswerData2 from "../components/answerData2";
  15378. import AnswerData from "../components/answerData";
  15379. import EditorBar from "../tools/wangEnduit.vue";
  15380. import Table from "../tools/table.vue";
  15381. import Time from "../tools/time.vue";
  15382. import Mind from "../tools/jsmind.vue";
  15383. import Sunburst from "../tools/sunburst";
  15384. import SeeBoard from "../tools/seeBoard";
  15385. import * as imageConversion from "image-conversion";
  15386. import Audio from "../components/audio.vue";
  15387. import ImgDraw from "../tools/imgDraw/imgDraw";
  15388. import { Empty } from "element-ui";
  15389. import RecordRTC from "recordrtc";
  15390. import interVideo from "../interVideo/index.vue";
  15391. import UpdateMore from "../updateMore/updateMore.vue";
  15392. import wordCloud from "../wordCloud/index.vue";
  15393. import axios from "axios";
  15394. import JSZip from "jszip";
  15395. import FileSaver from "file-saver";
  15396. import onlineWrite from "./commpont/onlineWrite";
  15397. import englishEva from "../components/englishEva";
  15398. import * as Diff from 'diff'
  15399. import EnglishVoice from '../EnglishVoice2/index.vue'
  15400. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15401. import correctText from '../components/correctText.vue'
  15402. import scoreItem from '../scoreList/scoreItem.vue'
  15403. import scoreZong from '../scoreZong/index.vue'
  15404. import classRoomHelper from '../classRoomHelper/index.vue'
  15405. import MarkdownIt from "markdown-it";
  15406. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15407. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15408. import { v4 as uuidv4 } from "uuid";
  15409. import markScore from "./commpont/markScore";
  15410. import markDialog from "./commpont/markDialog";
  15411. import evaTable from "./commpont/evaTable";
  15412. import choseWordCloud from '../components/choseWordCloud.vue'
  15413. import appStoreC from "../components/appStoreC.vue";
  15414. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15415. var OpenCC = require("opencc-js");
  15416. let converter = OpenCC.Converter({
  15417. from: "hk",
  15418. to: "cn"
  15419. });
  15420. const getFile = (url) => {
  15421. return new Promise((resolve, reject) => {
  15422. var credentials = {
  15423. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15424. secretAccessKey: "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",
  15425. }; //秘钥形式的登录上传
  15426. window.AWS.config.update(credentials);
  15427. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15428. let url2 = url;
  15429. let _url2 = "";
  15430. if (
  15431. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15432. ) {
  15433. _url2 = url2.split(
  15434. "https://view.officeapps.live.com/op/view.aspx?src="
  15435. )[1];
  15436. } else {
  15437. _url2 = url2;
  15438. }
  15439. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15440. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15441. var params = {
  15442. Bucket: "ccrb",
  15443. Key: name
  15444. };
  15445. s3.getObject(params, function (err, data) {
  15446. if (err) {
  15447. console.log(err, err.stack)
  15448. resolve({ data: 1 });
  15449. }else {
  15450. resolve({ data: data.Body });
  15451. console.log(data);
  15452. } // sxuccessful response
  15453. });
  15454. // axios({
  15455. // method: "get",
  15456. // url,
  15457. // responseType: "blob",
  15458. // })
  15459. // .then((data) => {
  15460. // resolve({ data: data.data });
  15461. // })
  15462. // .catch((error) => {
  15463. // resolve({ data: 1 });
  15464. // // reject(error.toString());
  15465. // });
  15466. });
  15467. };
  15468. export default {
  15469. components: {
  15470. choseWordCloud,
  15471. EditorBar,
  15472. Time,
  15473. pdf,
  15474. AskStatic,
  15475. AskStatic2,
  15476. Mind,
  15477. Sunburst,
  15478. SeeBoard,
  15479. AnswerData2,
  15480. AnswerData,
  15481. Audio,
  15482. ImgDraw,
  15483. Table,
  15484. interVideo,
  15485. UpdateMore,
  15486. wordCloud,
  15487. onlineWrite,
  15488. englishEva,
  15489. EnglishVoice,
  15490. checkEnglishVoice,
  15491. correctText,
  15492. scoreItem,
  15493. classRoomHelper,
  15494. scoreZong,
  15495. markScore,
  15496. markDialog,
  15497. evaTable,
  15498. statisticalAnalysis,
  15499. choseWorksDetailDialog,
  15500. appStoreC,
  15501. cocoFlowDia
  15502. },
  15503. data() {
  15504. return {
  15505. wordCloudKey: 0,
  15506. bg: null,
  15507. drawShow: false,
  15508. dialogVisible: false,
  15509. dialogVisiblePl: false,
  15510. commentDialogVisible: false,
  15511. dialogVisibleMember: false,
  15512. dialogVisibleWordCloud: false,
  15513. videoVisible: false,
  15514. isStar: false,
  15515. studentEvalDialogVisible: false,
  15516. studentEvalDialogVisibleTeacher: false,
  15517. dialogVisibleSelect: false,
  15518. dialogVisibleSelectTeacher: false,
  15519. dialogVisibleScore: false,
  15520. dialogVisibleENScore: false,
  15521. dialogVisibleSentence: false,
  15522. dialogVisibleSentenceTeacher: false,
  15523. dialogVisibleSentence1: false,
  15524. dialogVisibleWorks: false,
  15525. dialogVisibleTable: false,
  15526. dialogVisibleTableTeacher: false,
  15527. dialogVisibleWord: false,
  15528. dialogVisibleWordTeacher: false,
  15529. dialogVisibleTable2: false,
  15530. dialogVisibleTable3: false,
  15531. dialogVisibleGroupWork: false,
  15532. dialogVisibleUpdateGroup: false,
  15533. dialogVisibleDeleteGroup: false,
  15534. dialogVisibleSname: false,
  15535. dialogVisibleVideo: false,
  15536. dialogVisiblePickPeople: false,
  15537. worksSName: "",
  15538. classJuri: [],
  15539. uploadStudentJuri: [],
  15540. uploadCid: "",
  15541. snameWid: "",
  15542. sStudent: {},
  15543. sTool: "",
  15544. bzText: "",
  15545. commentDetail: [],
  15546. selectAnswer: [],
  15547. videoDetail: {},
  15548. selectJson: {},
  15549. eScore: { eBzText: "", eStar: [] },
  15550. id: this.$route.query.courseId,
  15551. userid: this.$route.query.userid,
  15552. classId: this.$route.query.cid,
  15553. // courseTypeLine: this.$route.query.type,
  15554. oid: this.$route.query.oid,
  15555. org: this.$route.query.org,
  15556. tType: this.$route.query.tType,
  15557. courseType: this.$route.query.type,
  15558. screenType: this.$route.query.screenType,
  15559. tcid2: this.$route.query.tcid,
  15560. tcid: "",
  15561. pptImgUrl: "",
  15562. pptImgUrl1: "",
  15563. commentText: "",
  15564. full: false,
  15565. sIsOpen: false,
  15566. IsLookOpen: false,
  15567. IsFollow: false,
  15568. pzDialog: false,
  15569. contentDialog: false,
  15570. mlDialog: false,
  15571. type: 1,
  15572. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15573. sentenceList1: [],
  15574. tableJson: [],
  15575. tableJsonO: [],
  15576. wordJson: [],
  15577. wordJsonO: [],
  15578. vedio: [],
  15579. text: [],
  15580. textList: [],
  15581. line: [],
  15582. lineList: [],
  15583. chapTools: [],
  15584. chapToolList: [],
  15585. file: [],
  15586. fileC: [],
  15587. vedioTime: [],
  15588. upToolImg: "",
  15589. preTime: 0,
  15590. rateList: {
  15591. ca: 0,
  15592. },
  15593. rateParams: [],
  15594. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15595. studyJuri: [
  15596. {
  15597. content: "",
  15598. cover: [],
  15599. upVedio: [],
  15600. upFile: [],
  15601. },
  15602. ],
  15603. isClose: 0,
  15604. plworkFile: [],
  15605. mr: require("../../assets/vedioPic.png"),
  15606. word: require("../../assets/icon/isWord.png"),
  15607. word2: require("../../assets/icon/word2.png"),
  15608. video: require("../../assets/icon/isVideo.png"),
  15609. noLikes: require("../../assets/icon/comment/noLikes.png"),
  15610. likes: require("../../assets/icon/comment/likes.png"),
  15611. scoreImg: require("../../assets/score.png"),
  15612. courseDetail: {},
  15613. reply: "",
  15614. isSelect: false,
  15615. chapInfo: [],
  15616. chapInfoList: [],
  15617. taskCount: 0,
  15618. imgList: [],
  15619. noImgList: [],
  15620. pzList: [],
  15621. timeWorkList: [],
  15622. PlTextList: [
  15623. "Excellent!",
  15624. "nice!",
  15625. "很有创意!",
  15626. "还不错哦~",
  15627. "继续努力哦~",
  15628. ],
  15629. isClickNav: "",
  15630. navId: "",
  15631. playerOptions: {
  15632. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15633. autoplay: false, //如果true,浏览器准备好时开始回放。
  15634. muted: false, // 默认情况下将会消除任何音频。
  15635. loop: false, // 导致视频一结束就重新开始。
  15636. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15637. language: "zh-CN",
  15638. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15639. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15640. sources: [
  15641. {
  15642. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15643. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15644. },
  15645. ],
  15646. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15647. // poster: dataRes.imgUrl, //你的封面地址
  15648. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15649. controlBar: {
  15650. timeDivider: true, //当前时间和持续时间的分隔符
  15651. durationDisplay: true, //显示持续时间
  15652. remainingTimeDisplay: false, //是否显示剩余时间功能
  15653. fullscreenToggle: true, //全屏按钮
  15654. },
  15655. },
  15656. playerOptions1: {
  15657. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  15658. autoplay: false, //如果true,浏览器准备好时开始回放。
  15659. muted: false, // 默认情况下将会消除任何音频。
  15660. loop: false, // 导致视频一结束就重新开始。
  15661. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  15662. language: "zh-CN",
  15663. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  15664. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  15665. sources: [
  15666. {
  15667. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  15668. src: "", //url地址require("../../../assets/media/aaa.mp4")
  15669. },
  15670. ],
  15671. // poster: require("../../../assets/tu31.png"), //你的封面地址
  15672. // poster: dataRes.imgUrl, //你的封面地址
  15673. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  15674. controlBar: {
  15675. timeDivider: true, //当前时间和持续时间的分隔符
  15676. durationDisplay: true, //显示持续时间
  15677. remainingTimeDisplay: false, //是否显示剩余时间功能
  15678. fullscreenToggle: true, //全屏按钮
  15679. },
  15680. },
  15681. playerO: {},
  15682. noneBtnImg: false,
  15683. proVisible: false,
  15684. proVisible2: false,
  15685. progress: 0,
  15686. isFinishSize: 0,
  15687. isAllSize: 0,
  15688. questionAnswer: "",
  15689. answerQ: "", //问答标题
  15690. rateJson: [],
  15691. wbCount: 0,
  15692. wordCount: 0,
  15693. mindCount: 0,
  15694. askCount: 0,
  15695. noteCount: 0,
  15696. mindNetWorkCount: 0,
  15697. libraryCount: 0,
  15698. workCount: 0,
  15699. timeCount: 0,
  15700. answerCount: 0,
  15701. trainCount: 0,
  15702. evalCount: 0,
  15703. dialogImageUrl: "",
  15704. pictureDialog: false,
  15705. toolTypeList: [],
  15706. dialogVisible1: false,
  15707. dialogVisible2: false,
  15708. dialogVisible3: false,
  15709. dialogVisible6: false,
  15710. dialogVisible4: false,
  15711. isNoHomeWork: false,
  15712. dialogVisible5: false,
  15713. dialogVisible5Teacher: false,
  15714. dialogVisibleChoice: false,
  15715. dialogVisibleChoiceTeacher: false,
  15716. answerDialogVisible: false,
  15717. answerDialogVisibleTeacher: false,
  15718. juriVisible: false,
  15719. timeDialogVisible: false,
  15720. replyDialogVisible: false,
  15721. toolDialogVisible: false,
  15722. engDialogVisible: false,
  15723. engUpdateDialogVisible:false,
  15724. engEvaDialogVisible: false,
  15725. evaEngJson: {
  15726. teacherJson: {},
  15727. studentJson: {},
  15728. message: {},
  15729. },
  15730. isNoUserid:false,
  15731. engListLength:0,
  15732. engWid:"",
  15733. newEnglishList:{
  15734. engTitle:"",
  15735. engText:"",
  15736. },
  15737. newEnglishList1:[],
  15738. oldEnglishJson:{},
  15739. oldEnglishJson1:{},
  15740. englishList1:{},
  15741. englishList:{},
  15742. myAnswerList1:{},
  15743. topHeight:0,
  15744. newEngIndex:-1,
  15745. englishToolIndex:0,
  15746. userMes:{},
  15747. englishToolIndex:0,
  15748. replyIndex: 0,
  15749. replyPid: "",
  15750. radio: [],
  15751. isAsk: false,
  15752. askJson: {
  15753. askCount: 1,
  15754. askTitle: "",
  15755. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  15756. },
  15757. testJson: {},
  15758. englishList: {},
  15759. topHeight:0,
  15760. checkJson: [],
  15761. askList: [],
  15762. answerList: [],
  15763. navList: [],
  15764. addPzDialog: false,
  15765. pzConText: "",
  15766. worksStudent: [],
  15767. isCloseList: [],
  15768. workStudent: [],
  15769. groupStudent: [],
  15770. groupStudentUid: [],
  15771. noWorksS: [],
  15772. isWorksS: [],
  15773. noWorksStudent: [],
  15774. toolindex: 0,
  15775. toolDetailIndex: null,
  15776. groupIndex: 0,
  15777. workTypeB: false,
  15778. workTypeC: false,
  15779. isAnswer: false,
  15780. isHovered: false,
  15781. isHovered1: false,
  15782. isHovered2: false,
  15783. commentTagShow:0,
  15784. timer: null,
  15785. timer2: null,
  15786. opertimer: null,
  15787. showType: '',
  15788. fileType: 0,
  15789. showPDF: false,
  15790. noteName: "",
  15791. evaJuri: [],
  15792. evalua: "",
  15793. eTitle: "",
  15794. eName: "",
  15795. eJson: {},
  15796. fid: "", //一级
  15797. sid: "", //二级
  15798. tid: "", //二级
  15799. typeMode: 1,
  15800. eJSONNum: 0,
  15801. Etype: 1,
  15802. data: {
  15803. meta: {
  15804. name: "example",
  15805. author: "dd@163.com",
  15806. version: "0.2",
  15807. },
  15808. format: "node_array",
  15809. data: [{ id: "root", isroot: true, topic: "" }],
  15810. },
  15811. fullDialogVisible: false,
  15812. fulltype: "",
  15813. fullUrl: "",
  15814. commentIndexJson: {},
  15815. Stbodywidth: 0,
  15816. ispzType: 0,
  15817. pzType: 1,
  15818. wScore: 0,
  15819. scoreDetail: "",
  15820. videoStart: false,
  15821. recorder: null,
  15822. groupJson: {},
  15823. islock: false,
  15824. groupJson2: {},
  15825. dialogVisibleGroup: false,
  15826. dialogVisibleGroup2: false,
  15827. updateGroupArray: [],
  15828. updateGroupUser: {},
  15829. deleteGroupUser: [],
  15830. deleteGroupArray: {},
  15831. checkChair: "",
  15832. checkDeleteGroup: [],
  15833. inviteCode: "",
  15834. courseGroupStudent: [],
  15835. courseGroupStudentUid: [],
  15836. courseGroup: {},
  15837. isGroup: false,
  15838. toolIndex: null,
  15839. tool: {},
  15840. isWorkTool: [
  15841. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  15842. ], //, 40
  15843. videoJson: {},
  15844. videoType:0,
  15845. toolType: 0,
  15846. checktoolArray: [],
  15847. vChapterData: [],
  15848. isUpdateToolDetail: false,
  15849. isUpdateToolDetail1: false,
  15850. updateToolDetailInner: "",
  15851. checkboxList: [],
  15852. plIndex: "",
  15853. worksSName2: "",
  15854. worksSid: "",
  15855. wordCloudData: [],
  15856. isPickStudent: [],
  15857. pzStype: 1,
  15858. myAnList: {},
  15859. downLoading: false,
  15860. greyType: false,
  15861. correctWord: [],
  15862. EnglishVoiceDialog: false,
  15863. englishVoiceJson: {},
  15864. englishVoiceJsonWork:[],
  15865. scoreList:{
  15866. listdata:[],
  15867. isScoreList:[],
  15868. },
  15869. classRoomHelperWidth: '85px',
  15870. orgArray:[],
  15871. oidArray:[],
  15872. splitScreenData:{
  15873. isOpen:false,
  15874. userId:"",
  15875. uid:"",
  15876. myUid:"",
  15877. loading:false,
  15878. behavior:null,
  15879. },
  15880. confirmOpenDig:false,
  15881. confirmOpenDigData:'',
  15882. refreshKey: 0,
  15883. AIloading: [],
  15884. worksStudentCopy: [],
  15885. loopLoading: [],
  15886. markScoreVisible: false,
  15887. markScoretoolIndex: 0,
  15888. markScoreUid: "",
  15889. markScoreTit: {},
  15890. markfullscreen: false,
  15891. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  15892. markScoreworksStudent: [],
  15893. finalMarkList: -1,
  15894. isaiNum: 0,
  15895. dialogVisibleTxt: false,
  15896. TxtMd: "",
  15897. languageSetting: 0, //0中文 1繁体 2英文
  15898. toolListS: [],
  15899. commentDetailCopy: "",
  15900. };
  15901. },
  15902. methods: {
  15903. //查看应用中心作业
  15904. openCocoFlow(w){
  15905. this.$refs.cocoFlowDiaRef.openAppWork(w)
  15906. },
  15907. getAIJ() {
  15908. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  15909. let oid = res.data[0];
  15910. let org = res.data[1];
  15911. let oidArray = [];
  15912. let orgArray = [];
  15913. oid.forEach(i => oidArray.push(i.oid));
  15914. org.forEach(i => orgArray.push(i.oid));
  15915. this.orgArray = orgArray;
  15916. this.oidArray = oidArray;
  15917. });
  15918. },
  15919. // 评分弹框全屏
  15920. markFullScreenBtn() {
  15921. this.markfullscreen = !this.markfullscreen;
  15922. },
  15923. insertMemorandum(_html) {
  15924. //保存行为操作
  15925. //variable
  15926. //btn
  15927. let params = [
  15928. {
  15929. uid: this.userid,
  15930. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  15931. content: _html
  15932. }
  15933. ];
  15934. console.log(params);
  15935. this.ajax
  15936. .post(
  15937. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  15938. params
  15939. )
  15940. .then(res => {
  15941. if (res.data == 1) {
  15942. console.log("保存操作成功");
  15943. } else {
  15944. console.log("保存操作失败");
  15945. }
  15946. })
  15947. .catch(e => {
  15948. console.log("保存操作失败");
  15949. console.log(e);
  15950. });
  15951. },
  15952. // 获取文档id
  15953. createFileid(url) {
  15954. let _this = this;
  15955. return new Promise((resolve, reject) => {
  15956. try {
  15957. _this.ajax
  15958. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  15959. url: url
  15960. })
  15961. .then(res => {
  15962. let _data = res.data.FunctionResponse;
  15963. if (_data.result && _data.result.id) {
  15964. resolve(_data.result.id);
  15965. } else {
  15966. resolve(1);
  15967. }
  15968. })
  15969. .catch(function(error) {
  15970. resolve(1);
  15971. });
  15972. } catch (e) {
  15973. resolve(1);
  15974. }
  15975. });
  15976. },
  15977. // 一键重置
  15978. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  15979. let jude = false;
  15980. this.AIloading.forEach((e, index) => {
  15981. if (index == toolIndex) {
  15982. e.forEach(k => {
  15983. if (k.loading == true) jude = true;
  15984. });
  15985. }
  15986. });
  15987. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  15988. this.$confirm("确认一键重置?")
  15989. .then(_ => {
  15990. this.allEmptyScoBtn(con, stage, task, toolIndex);
  15991. })
  15992. .catch(_ => {});
  15993. },
  15994. // 一键重置
  15995. async allEmptyScoBtn(con, stage, task, toolIndex) {
  15996. for (let index = 0; index < con.length; index++) {
  15997. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  15998. }
  15999. this.$message.success("重置完成");
  16000. // this.refreshAssembly();
  16001. this.worksStudent.forEach((e, index) => {
  16002. if (toolIndex == index) {
  16003. console.log("6666");
  16004. e.forEach((i, inx) => {
  16005. let mk = `markSco${index}${inx}`;
  16006. this.$refs[mk][0].getData();
  16007. });
  16008. }
  16009. });
  16010. },
  16011. // 一键重置
  16012. allEmptySco(uid, stage, task, toolIndex) {
  16013. let params = [
  16014. {
  16015. cid: this.id,
  16016. uid: uid,
  16017. s: stage,
  16018. t: task,
  16019. tool: toolIndex ? toolIndex : ""
  16020. }
  16021. ];
  16022. return new Promise(resolve => {
  16023. this.ajax
  16024. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16025. .then(res => {
  16026. resolve(1);
  16027. })
  16028. .catch(err => {
  16029. console.error(err);
  16030. });
  16031. }).catch(error => {
  16032. console.log(error);
  16033. });
  16034. },
  16035. // AI评分循环打分
  16036. async loopEva(
  16037. con,
  16038. tit,
  16039. stage,
  16040. task,
  16041. toolIndex,
  16042. toolDetail,
  16043. taskDetail,
  16044. toolList
  16045. ) {
  16046. let jude = false;
  16047. this.AIloading.forEach((e, index) => {
  16048. if (index == toolIndex) {
  16049. e.forEach(k => {
  16050. if (k.loading == true) jude = true;
  16051. });
  16052. }
  16053. });
  16054. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16055. this.AIloading.forEach((e, index) => {
  16056. if (index == toolIndex) {
  16057. e.forEach(k => {
  16058. k.loading = true;
  16059. });
  16060. }
  16061. });
  16062. this.loopLoading[toolIndex].loading = true;
  16063. let laws = "";
  16064. let std = "";
  16065. let text = "";
  16066. if (toolList && toolList.eList && toolList.eList.length) {
  16067. for (let i = 0; i < toolList.eList.length; i++) {
  16068. if (toolList.eList[i].isai == 1) {
  16069. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16070. }
  16071. }
  16072. for (let i = 0; i < toolList.eList.length; i++) {
  16073. if (toolList.eList[i].isai == 1) {
  16074. let a = toolList.eList[i].detail;
  16075. if (isNaN(parseFloat(a)) && a) {
  16076. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16077. } else {
  16078. var result = a;
  16079. }
  16080. std += `纬度${i}:“${result}”, \n`;
  16081. }
  16082. }
  16083. for (let i = 0; i < toolList.eList.length; i++) {
  16084. if (toolList.eList[i].isai == 1) {
  16085. let a = toolList.eList[i].detail;
  16086. if (isNaN(parseFloat(a)) && a) {
  16087. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16088. } else {
  16089. var result = a;
  16090. }
  16091. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16092. }
  16093. }
  16094. } else {
  16095. let titRule = 0;
  16096. let titRule2 = 0;
  16097. tit.forEach((e, index) => {
  16098. if (!e.isai) {
  16099. e.isai = 1;
  16100. }
  16101. });
  16102. tit.forEach((e, index) => {
  16103. if (e.isai == 1) {
  16104. titRule2++;
  16105. if (e.rule) {
  16106. titRule++;
  16107. }
  16108. }
  16109. });
  16110. if (titRule != titRule2) {
  16111. this.AIloading.forEach((e, index) => {
  16112. if (index == toolIndex) {
  16113. e.forEach(k => {
  16114. k.loading = false;
  16115. });
  16116. }
  16117. });
  16118. this.loopLoading[toolIndex].loading = false;
  16119. this.$message.info("细则努力生成中,请稍候……");
  16120. return;
  16121. }
  16122. for (let i = 0; i < tit.length; i++) {
  16123. if (tit[i].isai == 1) {
  16124. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16125. }
  16126. }
  16127. for (let i = 0; i < tit.length; i++) {
  16128. if (tit[i].isai == 1) {
  16129. let a = tit[i].detail;
  16130. if (isNaN(parseFloat(a)) && a) {
  16131. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16132. } else {
  16133. var result = a;
  16134. }
  16135. std += `纬度${i}:“${result}”, \n`;
  16136. }
  16137. }
  16138. for (let i = 0; i < tit.length; i++) {
  16139. if (tit[i].isai == 1) {
  16140. let a = tit[i].detail;
  16141. if (isNaN(parseFloat(a)) && a) {
  16142. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16143. } else {
  16144. var result = a;
  16145. }
  16146. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16147. }
  16148. }
  16149. }
  16150. let forAllList = [];
  16151. // console.log('con',con)
  16152. for (let i = 0; i < con.length; i++) {
  16153. let _fileid = "";
  16154. let wok = con[i].works;
  16155. // console.log('con',con);
  16156. // console.log('con[i].type',con[i].type);
  16157. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16158. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16159. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16160. _fileid = await this.createFileid(con[i].works);
  16161. } else {
  16162. this.AIloading[toolIndex][i].loading = false;
  16163. continue;
  16164. }
  16165. }
  16166. // console.log('con[i].type',con[i])
  16167. // console.log('con[i].type',con[i].type)
  16168. if (_fileid == 1 || con[i].type == 3) {
  16169. this.AIloading[toolIndex][i].loading = false;
  16170. continue;
  16171. }
  16172. let msg = `NOTICE
  16173. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16174. Language: ${this.getLang()}
  16175. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16176. Instruction: Based on the context, follow "Format example", write content.
  16177. #目标#
  16178. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16179. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16180. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16181. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16182. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16183. #评分资料#
  16184. 评价标准:${std}
  16185. 评价细则:${laws}
  16186. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16187. 任务描述:${taskDetail}
  16188. 工具描述:${toolDetail}
  16189. #输出要求#
  16190. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16191. “评语”控制在150字左右。
  16192. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16193. #输出格式#
  16194. [${text}{'comment':'评语(150个汉字左右)'}]
  16195. `;
  16196. let mk = `markSco${toolIndex}${i}`;
  16197. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16198. msg,
  16199. con[i].userid,
  16200. stage,
  16201. task,
  16202. _fileid,
  16203. con[i].type
  16204. );
  16205. forAllList.push(mkAwit);
  16206. }
  16207. Promise.all(forAllList)
  16208. .then(values => {
  16209. console.log("values", values);
  16210. this.$message({
  16211. message: "评价成功",
  16212. type: "success"
  16213. });
  16214. // this.refreshKey++
  16215. // this.worksStudent.forEach((e,index)=>{
  16216. // if(toolIndex == index){
  16217. // e.forEach((i,inx)=>{
  16218. // let mk = `markSco${index}${inx}`
  16219. // this.$refs[mk][0].getData()
  16220. // })
  16221. // }
  16222. // })
  16223. this.AIloading[toolIndex].forEach(e => {
  16224. e.loading = false;
  16225. });
  16226. this.loopLoading[toolIndex].loading = false;
  16227. })
  16228. .catch(reason => {
  16229. console.error("reasonreasonreasonreasonreason", reason);
  16230. // 输出“失败原因”
  16231. });
  16232. },
  16233. // 获取评价细则
  16234. againEva(i, k) {
  16235. let msg = `NOTICE
  16236. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16237. Language: ${this.getLang()}
  16238. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16239. Instruction: Based on the context, follow "Format example", write content.
  16240. #Context
  16241. ##要求
  16242. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16243. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16244. ##制定标准资料
  16245. 评价维度:${
  16246. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16247. }
  16248. 维度描述:${
  16249. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16250. }
  16251. # Format example
  16252. ==
  16253. 0 星,作业内容与作业要求无关;
  16254. 1 星,没有识别问题和需求;
  16255. 2 星,问题或需求没有被清晰理解或准确识别;
  16256. 3 星,问题或需求的一部分被识别;
  16257. 4 星,问题或需求的大部分被识别;
  16258. 5 星,问题或需求都被识别。
  16259. ==
  16260. `;
  16261. let params = {
  16262. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16263. message: [
  16264. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16265. ],
  16266. session_name: uuidv4(),
  16267. userId: this.userid,
  16268. file_ids: [],
  16269. model: "gpt-4o-2024-11-20"
  16270. };
  16271. // console.log('params',params);
  16272. this.ajax
  16273. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16274. .then(response => {
  16275. let data = response.data.FunctionResponse;
  16276. // console.log("data", data);
  16277. if (data.message) {
  16278. let content = data.message;
  16279. var regex = new RegExp("==([^=]+)==");
  16280. let match = content.match(regex);
  16281. if (match) {
  16282. content = match[1].trim().replaceAll(" ", "");
  16283. // 获取匹配到的内容并去除两端空格
  16284. // console.log('contentInsideDoubleEquals', content);
  16285. if (
  16286. content.indexOf("0星") == -1 ||
  16287. content.indexOf("2星") == -1 ||
  16288. content.indexOf("3星") == -1 ||
  16289. content.indexOf("4星") == -1 ||
  16290. content.indexOf("5星") == -1
  16291. ) {
  16292. console.log("未有星级。");
  16293. this.againEva(i, k);
  16294. return;
  16295. }
  16296. // return
  16297. } else {
  16298. console.log("未找到匹配的内容。");
  16299. this.againEva(i, k);
  16300. return;
  16301. }
  16302. let elist = JSON.parse(
  16303. JSON.stringify(
  16304. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16305. )
  16306. );
  16307. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16308. elist.rule = JSON.parse(
  16309. JSON.stringify(content.replaceAll("#", ""))
  16310. );
  16311. this.$set(
  16312. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16313. k,
  16314. elist
  16315. );
  16316. this.$forceUpdate();
  16317. let params2 = [
  16318. {
  16319. cid: this.id,
  16320. chapters: JSON.stringify(this.chapInfoList),
  16321. uid: this.userid,
  16322. unitIndex: this.courseType
  16323. }
  16324. ];
  16325. this.ajax
  16326. .post(this.$store.state.api + "updateWorkNew4", params2)
  16327. .then(res => {
  16328. this.getCourseDetail(2);
  16329. this.$forceUpdate();
  16330. })
  16331. .catch(err => {
  16332. this.$message.error("网络不佳");
  16333. console.error(err);
  16334. });
  16335. // 进行进一步处理或解析outputContent
  16336. // } else {
  16337. // console.log("No match found for # Output section.");
  16338. // }
  16339. }
  16340. })
  16341. .catch(error => {
  16342. console.log(error);
  16343. });
  16344. },
  16345. // 关闭评分弹框
  16346. markScorehandleClose(done) {
  16347. // this.refreshKey++
  16348. this.worksStudent.forEach((e, index) => {
  16349. if (this.markScoretoolIndex == index) {
  16350. e.forEach((i, inx) => {
  16351. let mk = `markSco${index}${inx}`;
  16352. if (this.$refs[mk] && this.$refs[mk][0]) {
  16353. this.$refs[mk][0].getData();
  16354. }
  16355. });
  16356. }
  16357. });
  16358. done();
  16359. },
  16360. // 关闭txtMd预览弹框
  16361. handleCloseTxt(done) {
  16362. this.TxtMd = "";
  16363. done();
  16364. },
  16365. // Txt,Md作业查看
  16366. lookTxt(val) {
  16367. this.dialogVisibleTxt = true;
  16368. this.TxtMd = "";
  16369. getFile(val).then(res => {
  16370. this.TxtMd = res.data;
  16371. });
  16372. },
  16373. // 组件刷新
  16374. refreshAssembly(val) {
  16375. this.refreshKey++;
  16376. // console.log(this.refreshKey)
  16377. },
  16378. updateLoading(payload) {
  16379. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16380. },
  16381. handleShow(toolIndex, val) {
  16382. let mk = `markSco${toolIndex}${val}`;
  16383. // console.log(mk);
  16384. this.$refs[mk][0].getData();
  16385. },
  16386. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16387. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16388. // console.log('this.AIloading',this.AIloading)
  16389. let jude = false;
  16390. this.AIloading.forEach((e, index) => {
  16391. if (index == tidx) {
  16392. e.forEach(k => {
  16393. if (k.loading == true) jude = true;
  16394. });
  16395. }
  16396. });
  16397. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16398. if (val) return;
  16399. // console.log(uname,worksStudent,uid,tidx,titlist)
  16400. this.markScoreTit = titlist;
  16401. this.markScoreUid = uid;
  16402. this.toolListS = toolList;
  16403. this.markScoretoolIndex = tidx;
  16404. this.markScoreworksStudent = worksStudent;
  16405. this.markfullscreen = false;
  16406. this.markScoreVisible = true;
  16407. if (this.tType == 1) {
  16408. this.insertMemorandum(
  16409. `查看<span class="variable">${uname}</span>的作业`
  16410. );
  16411. }
  16412. },
  16413. // 点击markScore显示评分框
  16414. markScoreDig(data) {
  16415. // console.log('data',data)
  16416. let jude = false;
  16417. this.AIloading.forEach((e, index) => {
  16418. if (index == data.val2) {
  16419. e.forEach(k => {
  16420. if (k.loading == true) jude = true;
  16421. });
  16422. }
  16423. });
  16424. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16425. this.markScoreTit = data.tit;
  16426. this.markScoreUid = data.val;
  16427. this.markScoretoolIndex = data.val2;
  16428. this.markfullscreen = false;
  16429. this.markScoreVisible = true;
  16430. this.insertMemorandum(
  16431. `查看<span class="variable">${data.uname}</span>的作业`
  16432. );
  16433. },
  16434. // 刷新其他组件分数
  16435. refreshOther(v) {
  16436. // console.log('v',v)
  16437. this.AIloading[v.tid].forEach((e, i) => {
  16438. if (i == v.wid) {
  16439. e.loading = false;
  16440. }
  16441. });
  16442. // this.worksStudent.forEach((e,index)=>{
  16443. // if(toolIndex != index){
  16444. // e.forEach((i,inx)=>{
  16445. // let mk = `markSco${index}${inx}`
  16446. // this.$refs[mk][0].getData()
  16447. // })
  16448. // }
  16449. // })
  16450. },
  16451. updateDocSco(payload) {
  16452. // console.log('payload',payload)
  16453. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16454. },
  16455. gx(){
  16456. this.$forceUpdate();
  16457. },
  16458. isUpdateCorrect(t,p){
  16459. if(this.greyType == false){
  16460. this.isUpdateText = t;
  16461. this.greyType = true;
  16462. }else{
  16463. if(p == 1){
  16464. this.newEnglishList.engText = this.isUpdateText;
  16465. }else if(p == 2){
  16466. this.oldEnglishJson1.engText = this.isUpdateText;
  16467. }else if(p == 3){
  16468. this.newEnglishList.engText = this.isUpdateText;
  16469. }else{
  16470. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16471. }
  16472. this.greyType = false
  16473. }
  16474. },
  16475. aiCorrect(t,p){
  16476. let aiText = "";
  16477. const loading = this.$loading.service({
  16478. background: "rgba(255, 255, 255)",
  16479. target: document.querySelectorAll(".loadingText")[0],
  16480. });
  16481. let param = {
  16482. model: "gpt-3.5-turbo",
  16483. temperature: 0,
  16484. max_tokens: 2048,
  16485. top_p: 1,
  16486. frequency_penalty: 0,
  16487. presence_penalty: 0,
  16488. messages: [
  16489. {
  16490. role: "user",
  16491. content:
  16492.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16493. },
  16494. ],
  16495. uid: this.userid,
  16496. stream: false,
  16497. };
  16498. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  16499. (res) => {
  16500. if (
  16501. res.data.FunctionResponse &&
  16502. res.data.FunctionResponse.result &&
  16503. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  16504. ) {
  16505. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  16506. return;
  16507. }
  16508. aiText =
  16509. res.data.FunctionResponse.choices[0].message.content;
  16510. aiText = aiText.replace(/%/g,"%25");
  16511. // let w = "";
  16512. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  16513. // for(var k = 0;k<a.length;k++){
  16514. // //diffWordsWithSpace
  16515. // if(a.length > 1){
  16516. // if(a[k].added == true){
  16517. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  16518. // }else if(a[k].removed == true){
  16519. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  16520. // }else{
  16521. // w += '<span>' + a[k].value + '</span>';
  16522. // }
  16523. // }else{
  16524. // if(p == 1){
  16525. // w = this.newEnglishList.engText;
  16526. // }else if(p == 2){
  16527. // w = this.oldEnglishJson1.engText;
  16528. // }else if(p == 3){
  16529. // w = this.newEnglishList.engText;
  16530. // }else{
  16531. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  16532. // }
  16533. // }
  16534. // }
  16535. if(p == 1){
  16536. this.newEnglishList.engText = aiText;
  16537. }else if(p == 2){
  16538. this.oldEnglishJson1.engText = aiText;
  16539. }else if(p == 3){
  16540. this.newEnglishList.engText = aiText;
  16541. }else{
  16542. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  16543. }
  16544. loading.close();
  16545. },
  16546. (err) => {
  16547. console.log(err);
  16548. loading.close();
  16549. }
  16550. );
  16551. },
  16552. addToolChoose() {
  16553. if (!this.checktoolArray.length) {
  16554. this.$message.error("请选择要添加的任务");
  16555. return;
  16556. }
  16557. if (
  16558. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16559. this.taskCount
  16560. ].toolChoose[0].tool.length
  16561. ) {
  16562. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16563. this.taskCount
  16564. ].toolChoose[0].tool = this.checktoolArray;
  16565. } else {
  16566. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16567. this.taskCount
  16568. ].toolChoose.push({
  16569. tool: this.checktoolArray,
  16570. toolDetail: "",
  16571. toolType: 0,
  16572. askCount: 1,
  16573. askTitle: "",
  16574. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16575. });
  16576. }
  16577. let params = [
  16578. {
  16579. cid: this.id,
  16580. chapters: JSON.stringify(this.chapInfoList),
  16581. uid: this.userid,
  16582. unitIndex: this.courseType,
  16583. },
  16584. ];
  16585. this.ajax
  16586. .post(this.$store.state.api + "updateWorkNew4", params)
  16587. .then((res) => {
  16588. this.$message({
  16589. message: "添加成功",
  16590. type: "success",
  16591. });
  16592. this.checktoolArray = [];
  16593. this.getCourseDetail(2);
  16594. this.checkBz(
  16595. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16596. this.taskCount
  16597. ].toolChoose.length - 1
  16598. );
  16599. this.toolDialogVisible = false;
  16600. this.refreshCourse();
  16601. this.$forceUpdate();
  16602. })
  16603. .catch((err) => {
  16604. console.error(err);
  16605. });
  16606. },
  16607. checkBz(index) {
  16608. this.isUpdateToolDetail = false;
  16609. this.$forceUpdate();
  16610. setTimeout(() => {
  16611. document.scrollingElement.scrollTop =
  16612. document.querySelectorAll(".filebox")[index].offsetTop +
  16613. document.querySelector(".student_body").offsetTop;
  16614. }, 500);
  16615. },
  16616. updateToolDetail(i, type) {
  16617. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  16618. this.toolDetailIndex = i
  16619. this.isUpdateToolDetail1 = true;
  16620. setTimeout(() => {
  16621. this.updateToolDetailInner = JSON.parse(
  16622. JSON.stringify(
  16623. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16624. this.taskCount
  16625. ].toolChoose[i].toolDetail
  16626. )
  16627. );
  16628. document.querySelector(".checkTextArea").focus();
  16629. }, 0);
  16630. } else if((this.isUpdateToolDetail1 && type != 2)){
  16631. // this.toolDetailIndex = i;
  16632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16633. this.taskCount
  16634. ].toolChoose[i].toolDetail = JSON.parse(
  16635. JSON.stringify(this.updateToolDetailInner)
  16636. );
  16637. let params = [
  16638. {
  16639. cid: this.id,
  16640. chapters: JSON.stringify(this.chapInfoList),
  16641. uid: this.userid,
  16642. unitIndex: this.courseType,
  16643. },
  16644. ];
  16645. this.ajax
  16646. .post(this.$store.state.api + "updateWorkNew4", params)
  16647. .then((res) => {
  16648. this.isUpdateToolDetail1 = false;
  16649. this.$message({
  16650. message: "修改成功",
  16651. type: "success",
  16652. });
  16653. this.toolDetailIndex = null;
  16654. this.updateToolDetailInner = "";
  16655. this.getCourseDetail(2);
  16656. this.$forceUpdate();
  16657. })
  16658. .catch((err) => {
  16659. console.error(err);
  16660. });
  16661. } else if((this.isUpdateToolDetail1 && type == 2)){
  16662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16663. this.taskCount
  16664. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  16665. JSON.stringify(this.updateToolDetailInner)
  16666. );
  16667. let params = [
  16668. {
  16669. cid: this.id,
  16670. chapters: JSON.stringify(this.chapInfoList),
  16671. uid: this.userid,
  16672. unitIndex: this.courseType,
  16673. },
  16674. ];
  16675. this.ajax
  16676. .post(this.$store.state.api + "updateWorkNew4", params)
  16677. .then((res) => {
  16678. this.$message({
  16679. message: "修改成功",
  16680. type: "success",
  16681. });
  16682. this.toolDetailIndex = i;
  16683. this.isUpdateToolDetail1 = true;
  16684. setTimeout(() => {
  16685. this.updateToolDetailInner = JSON.parse(
  16686. JSON.stringify(
  16687. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  16688. this.taskCount
  16689. ].toolChoose[i].toolDetail
  16690. )
  16691. );
  16692. document.querySelector(".checkTextArea").focus();
  16693. }, 0);
  16694. this.getCourseDetail(2);
  16695. this.$forceUpdate();
  16696. })
  16697. .catch((err) => {
  16698. console.error(err);
  16699. });
  16700. }
  16701. },
  16702. jumpGj(i, j, k, l) {
  16703. this.refreshAssembly();
  16704. for (var z = 0; z < this.navList.length; z++) {
  16705. for (var q = 0; q < this.navList[z].task.length; q++) {
  16706. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  16707. this.navList[z].task[q].tool[w].isTool = false;
  16708. }
  16709. }
  16710. }
  16711. console.log(this.navList);
  16712. this.navList[i].task[j].tool[k].isTool =
  16713. !this.navList[i].task[j].tool[k].isTool;
  16714. var a = document.scrollingElement;
  16715. let target = document.querySelector(`#gj${k}`);
  16716. if (target) {
  16717. // target.scrollIntoView(true);
  16718. // setTimeout(() => {
  16719. // a.scrollTop = a.scrollTop - 150;
  16720. // }, 0);
  16721. target.scrollIntoView();
  16722. setTimeout(()=>{
  16723. let scrollBody = document.querySelector('.body_student').parentElement
  16724. scrollBody.scrollTop = scrollBody.scrollTop - 100
  16725. }, 0);
  16726. }
  16727. this.navId = ""
  16728. let flag = this.courseType == i;
  16729. let flag2 = this.taskCount == j
  16730. if (l) {
  16731. this.courseType = i;
  16732. // this.navId = l;
  16733. this.taskCount = j;
  16734. this.selectPz();
  16735. this.getHomeWork();
  16736. this.getCourseDetail(2);
  16737. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  16738. if(flag){
  16739. if(flag2){
  16740. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  16741. }else{
  16742. 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>`)
  16743. }
  16744. }else{
  16745. 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>`)
  16746. }
  16747. }
  16748. // var b = this.$refs["bz" + k][0];
  16749. // a.scrollTop = b.offsetTop;
  16750. },
  16751. addTools2(i) {
  16752. if (i == 4) {
  16753. // this.openTools2(4);
  16754. this.$message.error("暂未开放");
  16755. return;
  16756. }
  16757. if (i == 45) {
  16758. // this.openTools2(45);
  16759. this.$message.error("暂未开放");
  16760. return;
  16761. }
  16762. if (i == 47) {
  16763. // this.openTools2(47);
  16764. this.$message.error("暂未开放");
  16765. return;
  16766. }
  16767. if (i == 49) {
  16768. // this.openTools2(49);
  16769. this.$message.error("暂未开放");
  16770. return;
  16771. }
  16772. if (i == 62) {
  16773. // this.openTools(itemTaskIndex, 62, toolIndex);
  16774. this.$message.error("暂未开放");
  16775. return;
  16776. }
  16777. if (i == 15) {
  16778. // this.openTools(itemTaskIndex, 15, toolIndex);
  16779. this.$message.error("暂未开放");
  16780. return;
  16781. }
  16782. if (i == 40) {
  16783. // this.openTools(itemTaskIndex, 40, toolIndex);
  16784. this.$message.error("暂未开放");
  16785. return;
  16786. }
  16787. if (i == 41) {
  16788. // this.openTools(itemTaskIndex, 41, toolIndex);
  16789. this.$message.error("暂未开放");
  16790. return;
  16791. }
  16792. if (i == 42) {
  16793. // this.openTools(itemTaskIndex, 42, toolIndex);
  16794. this.$message.error("暂未开放");
  16795. return;
  16796. }
  16797. if (this.checktoolArray.length > 0) {
  16798. if (this.checktoolArray.indexOf(i) != -1) {
  16799. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  16800. } else {
  16801. this.checktoolArray = [];
  16802. this.checktoolArray.push(i);
  16803. }
  16804. } else {
  16805. this.checktoolArray.push(i);
  16806. }
  16807. this.$forceUpdate();
  16808. },
  16809. jump() {
  16810. window.parent.postMessage({ tools: "43" }, "*");
  16811. },
  16812. getUpdateMore(f, checkboxList, searchTN, index) {
  16813. this.dialogVisibleMember = f;
  16814. this.checkboxList = checkboxList;
  16815. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  16816. this.plIndex = index;
  16817. },
  16818. setPlname(a) {
  16819. if (this.plworkFile.length) {
  16820. this.plworkFile[this.plIndex].username = a;
  16821. } else {
  16822. this.worksSName = a;
  16823. }
  16824. this.dialogVisibleMember = false;
  16825. },
  16826. previewImg(url,w) {
  16827. this.$hevueImgPreview(url);
  16828. if(w){
  16829. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  16830. }
  16831. },
  16832. checkImg(list) {
  16833. if (!list.length) {
  16834. return;
  16835. }
  16836. this.$hevueImgPreview({
  16837. multiple: true, // 开启多图预览模式
  16838. imgList: list, // 需要预览的多图数组
  16839. });
  16840. },
  16841. change(val) {
  16842. console.log(val);
  16843. },
  16844. goTo(path) {
  16845. this.$router.push(path);
  16846. },
  16847. handlePictureCardPreview(url) {
  16848. this.dialogImageUrl = url;
  16849. this.pictureDialog = true;
  16850. },
  16851. clean(type) {
  16852. if (type == 1) {
  16853. this.studyJuri[0].cover.splice(0, 1);
  16854. } else if (type == 2) {
  16855. this.studyJuri[0].upVedio.splice(0, 1);
  16856. } else {
  16857. this.studyJuri[0].upFile.splice(0, 1);
  16858. }
  16859. },
  16860. clean2(index) {
  16861. this.plworkFile.splice(index, 1);
  16862. },
  16863. handleClose(done) {
  16864. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  16865. this.videoDetail.sources[0].src = "";
  16866. }
  16867. this.commentIndexJson = {};
  16868. this.changeSplitScreenBehavior({code:99})
  16869. done();
  16870. },
  16871. fullTools() {
  16872. this.full = !this.full;
  16873. },
  16874. imgChange(file, fileList, type) {
  16875. if (type == 1) {
  16876. var _tmp = this.studyJuri[0].cover;
  16877. } else if (type == 2) {
  16878. var _tmp = this.studyJuri[0].upVedio;
  16879. } else {
  16880. var _tmp = this.studyJuri[0].upFile;
  16881. }
  16882. this.noneBtnImg = _tmp.length >= 1;
  16883. },
  16884. setContent(bool) {
  16885. this.contentDialog = bool;
  16886. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  16887. document.querySelector(".workd_media").style.height = "650px";
  16888. } else if (document.querySelector(".workd_media")) {
  16889. document.querySelector(".workd_media").style.height = "auto";
  16890. }
  16891. },
  16892. setContent2(bool) {
  16893. this.mlDialog = bool;
  16894. if (
  16895. bool &&
  16896. this.contentDialog &&
  16897. document.querySelector(".workd_media")
  16898. ) {
  16899. document.querySelector(".workd_media").style.height = "650px";
  16900. } else if (document.querySelector(".workd_media")) {
  16901. document.querySelector(".workd_media").style.height = "auto";
  16902. }
  16903. },
  16904. openToolAll() {
  16905. this.toolDialogVisible = true;
  16906. },
  16907. addImg(e) {
  16908. var el = e.currentTarget;
  16909. // this.$message.success('触发上传')
  16910. el.getElementsByTagName("input")[0].click();
  16911. e.target.value = "";
  16912. },
  16913. addSelectAnswer() {
  16914. let params = [
  16915. {
  16916. uid: this.userid,
  16917. cid: this.id,
  16918. stage: this.courseType,
  16919. task: this.taskCount,
  16920. tool: this.toolindex,
  16921. content: this.selectAnswer.answer,
  16922. type: 7,
  16923. },
  16924. ];
  16925. this.ajax
  16926. .post(this.$store.state.api + "addCourseWorks", params)
  16927. .then((res) => {
  16928. this.$message({
  16929. message: "提交成功",
  16930. type: "success",
  16931. });
  16932. this.dialogVisibleSelect = false;
  16933. // this.selectAnswer = {};
  16934. this.selectSWorks();
  16935. this.selectStudent();
  16936. })
  16937. .catch((err) => {
  16938. this.$message.error("提交失败");
  16939. console.error(err);
  16940. });
  16941. },
  16942. addSelectAnswerTeacher() {
  16943. let params = [
  16944. {
  16945. uid: this.sStudent.userid,
  16946. cid: this.id,
  16947. stage: this.courseType,
  16948. task: this.taskCount,
  16949. tool: this.toolindex,
  16950. content: this.selectAnswer.answer,
  16951. type: 7,
  16952. },
  16953. ];
  16954. this.ajax
  16955. .post(this.$store.state.api + "addCourseWorks", params)
  16956. .then((res) => {
  16957. this.$message({
  16958. message: "提交成功",
  16959. type: "success",
  16960. });
  16961. this.dialogVisibleSelectTeacher = false;
  16962. // this.selectAnswer = {};
  16963. this.selectSWorks();
  16964. this.selectStudent();
  16965. })
  16966. .catch((err) => {
  16967. this.$message.error("提交失败");
  16968. console.error(err);
  16969. });
  16970. },
  16971. addSenWorks() {
  16972. for (var i = 0; i < this.sentenceList.length; i++) {
  16973. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  16974. if (
  16975. this.sentenceList[i].chooseSenList[j] == undefined ||
  16976. this.sentenceList[i].chooseSenList[j] == ""
  16977. ) {
  16978. this.$message.error("请将答案填写完整!");
  16979. return;
  16980. }
  16981. }
  16982. }
  16983. let params = [
  16984. {
  16985. uid: this.userid,
  16986. cid: this.id,
  16987. stage: this.courseType,
  16988. task: this.taskCount,
  16989. tool: this.toolindex,
  16990. content: JSON.stringify(this.sentenceList),
  16991. type: 9,
  16992. },
  16993. ];
  16994. this.ajax
  16995. .post(this.$store.state.api + "addCourseWorks", params)
  16996. .then((res) => {
  16997. this.$message({
  16998. message: "提交成功",
  16999. type: "success",
  17000. });
  17001. this.dialogVisibleSentence = false;
  17002. // this.selectAnswer = {};
  17003. this.selectSWorks();
  17004. this.selectStudent();
  17005. })
  17006. .catch((err) => {
  17007. this.$message.error("提交失败");
  17008. console.error(err);
  17009. });
  17010. },
  17011. addSenWorksTeacher() {
  17012. for (var i = 0; i < this.sentenceList.length; i++) {
  17013. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17014. if (
  17015. this.sentenceList[i].chooseSenList[j] == undefined ||
  17016. this.sentenceList[i].chooseSenList[j] == ""
  17017. ) {
  17018. this.$message.error("请将答案填写完整!");
  17019. return;
  17020. }
  17021. }
  17022. }
  17023. let params = [
  17024. {
  17025. uid: this.sStudent.userid,
  17026. cid: this.id,
  17027. stage: this.courseType,
  17028. task: this.taskCount,
  17029. tool: this.toolindex,
  17030. content: JSON.stringify(this.sentenceList),
  17031. type: 9,
  17032. },
  17033. ];
  17034. this.ajax
  17035. .post(this.$store.state.api + "addCourseWorks", params)
  17036. .then((res) => {
  17037. this.$message({
  17038. message: "提交成功",
  17039. type: "success",
  17040. });
  17041. this.dialogVisibleSentenceTeacher = false;
  17042. // this.selectAnswer = {};
  17043. this.selectSWorks();
  17044. this.selectStudent();
  17045. })
  17046. .catch((err) => {
  17047. this.$message.error("提交失败");
  17048. console.error(err);
  17049. });
  17050. },
  17051. returnTableText() {
  17052. this.$confirm("确定还原此模板吗?", "提示", {
  17053. confirmButtonText: "确定",
  17054. cancelButtonText: "取消",
  17055. type: "warning",
  17056. })
  17057. .then(() => {
  17058. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17059. })
  17060. .catch(() => {});
  17061. },
  17062. addTableWorks() {
  17063. let params = [
  17064. {
  17065. uid: this.userid,
  17066. cid: this.id,
  17067. stage: this.courseType,
  17068. task: this.taskCount,
  17069. tool: this.toolindex,
  17070. content: JSON.stringify(this.tableJson),
  17071. type: 10,
  17072. },
  17073. ];
  17074. this.ajax
  17075. .post(this.$store.state.api + "addCourseWorks", params)
  17076. .then((res) => {
  17077. this.$message({
  17078. message: "提交成功",
  17079. type: "success",
  17080. });
  17081. this.dialogVisibleTable = false;
  17082. // this.selectAnswer = {};
  17083. this.selectSWorks();
  17084. this.selectStudent();
  17085. })
  17086. .catch((err) => {
  17087. this.$message.error("提交失败");
  17088. console.error(err);
  17089. });
  17090. },
  17091. tableRowClassName({ row, rowIndex }) {
  17092. if ((rowIndex + 1) % 2 === 0) {
  17093. return "even_row";
  17094. } else {
  17095. return "";
  17096. }
  17097. },
  17098. addTableWorksTeacher() {
  17099. let params = [
  17100. {
  17101. uid: this.sStudent.userid,
  17102. cid: this.id,
  17103. stage: this.courseType,
  17104. task: this.taskCount,
  17105. tool: this.toolindex,
  17106. content: JSON.stringify(this.tableJson),
  17107. type: 10,
  17108. },
  17109. ];
  17110. this.ajax
  17111. .post(this.$store.state.api + "addCourseWorks", params)
  17112. .then((res) => {
  17113. this.$message({
  17114. message: "提交成功",
  17115. type: "success",
  17116. });
  17117. this.dialogVisibleTableTeacher = false;
  17118. // this.selectAnswer = {};
  17119. this.selectSWorks();
  17120. this.selectStudent();
  17121. })
  17122. .catch((err) => {
  17123. this.$message.error("提交失败");
  17124. console.error(err);
  17125. });
  17126. },
  17127. returnWordText() {
  17128. this.$confirm("确定还原此模板吗?", "提示", {
  17129. confirmButtonText: "确定",
  17130. cancelButtonText: "取消",
  17131. type: "warning",
  17132. })
  17133. .then(() => {
  17134. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17135. })
  17136. .catch(() => {});
  17137. },
  17138. addWordWorks() {
  17139. let params = [
  17140. {
  17141. uid: this.userid,
  17142. cid: this.id,
  17143. stage: this.courseType,
  17144. task: this.taskCount,
  17145. tool: this.toolindex,
  17146. content: JSON.stringify(this.wordJson),
  17147. type: 13,
  17148. atool: 52,
  17149. },
  17150. ];
  17151. this.ajax
  17152. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17153. .then((res) => {
  17154. this.$message({
  17155. message: "提交成功",
  17156. type: "success",
  17157. });
  17158. this.dialogVisibleWord = false;
  17159. // this.selectAnswer = {};
  17160. this.selectSWorks();
  17161. this.selectStudent();
  17162. })
  17163. .catch((err) => {
  17164. this.$message.error("提交失败");
  17165. console.error(err);
  17166. });
  17167. },
  17168. addWordWorksTeacher() {
  17169. let params = [
  17170. {
  17171. uid: this.sStudent.userid,
  17172. cid: this.id,
  17173. stage: this.courseType,
  17174. task: this.taskCount,
  17175. tool: this.toolindex,
  17176. content: JSON.stringify(this.wordJson),
  17177. type: 13,
  17178. atool: 52,
  17179. },
  17180. ];
  17181. this.ajax
  17182. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17183. .then((res) => {
  17184. this.$message({
  17185. message: "提交成功",
  17186. type: "success",
  17187. });
  17188. this.dialogVisibleWordTeacher = false;
  17189. // this.selectAnswer = {};
  17190. this.selectSWorks();
  17191. this.selectStudent();
  17192. })
  17193. .catch((err) => {
  17194. this.$message.error("提交失败");
  17195. console.error(err);
  17196. });
  17197. },
  17198. addCourseWorksCopy(i) {
  17199. let arr = this.workStudent[this.toolindex].filter(e => {
  17200. return (e.userid = this.userid);
  17201. });
  17202. if (arr.length > 0) {
  17203. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17204. confirmButtonText: "确定",
  17205. cancelButtonText: "取消",
  17206. type: "warning"
  17207. })
  17208. .then(() => {
  17209. this.addCourseWorks(i);
  17210. })
  17211. .catch(() => {});
  17212. } else {
  17213. this.addCourseWorks(i);
  17214. }
  17215. },
  17216. addCourseWorks(i) {
  17217. var typesql;
  17218. if (this.fileType === 0) {
  17219. typesql = 1;
  17220. } else if (this.fileType === 1) {
  17221. typesql = 4;
  17222. } else if (this.fileType === 2) {
  17223. typesql = 5;
  17224. } else if (this.fileType === 3) {
  17225. typesql = 12;
  17226. }
  17227. if (!this.studyJuri[0].cover[0].url) {
  17228. this.$message.error("请上传文件");
  17229. return;
  17230. }
  17231. let params = [
  17232. {
  17233. uid: this.userid,
  17234. cid: this.id,
  17235. stage: this.courseType,
  17236. task: i,
  17237. tool: this.toolindex,
  17238. content: this.studyJuri[0].cover[0].url,
  17239. type: typesql,
  17240. },
  17241. ];
  17242. this.ajax
  17243. .post(this.$store.state.api + "addCourseWorksR", params)
  17244. .then((res) => {
  17245. this.$message({
  17246. message: "提交成功",
  17247. type: "success",
  17248. });
  17249. this.studyJuri[0].cover = [];
  17250. this.dialogVisible = false;
  17251. this.getCourseDetail(2);
  17252. })
  17253. .catch((err) => {
  17254. this.$message.error("提交失败");
  17255. console.error(err);
  17256. });
  17257. },
  17258. addCourseWorksPl(i) {
  17259. let _files = this.plworkFile;
  17260. var c = 1;
  17261. for (var k = 0; k < _files.length; k++) {
  17262. if (!_files[k].username) {
  17263. c = 2;
  17264. }
  17265. }
  17266. if (c == 2) {
  17267. this.$message.error("请填写学生姓名");
  17268. return;
  17269. }
  17270. let params = [
  17271. {
  17272. ateacher: this.userid,
  17273. cid: this.id,
  17274. stage: this.courseType,
  17275. task: i,
  17276. tool: this.toolindex,
  17277. content: JSON.stringify(_files),
  17278. },
  17279. ];
  17280. this.ajax
  17281. .post(this.$store.state.api + "addCourseWorksPl", params)
  17282. .then((res) => {
  17283. this.$message({
  17284. message: "提交成功",
  17285. type: "success",
  17286. });
  17287. this.plworkFile = [];
  17288. this.dialogVisiblePl = false;
  17289. this.getCourseDetail(2);
  17290. })
  17291. .catch((err) => {
  17292. this.$message.error("提交失败");
  17293. console.error(err);
  17294. });
  17295. },
  17296. addCourseWorks2(i) {
  17297. var typesql;
  17298. if (this.fileType === 0) {
  17299. typesql = 0;
  17300. } else if (this.fileType === 1) {
  17301. typesql = 1;
  17302. } else if (this.fileType === 2) {
  17303. typesql = 3;
  17304. } else if (this.fileType === 3) {
  17305. typesql = 12;
  17306. }
  17307. if (!this.studyJuri[0].cover[0].url) {
  17308. this.$message.error("请上传文件");
  17309. return;
  17310. }
  17311. let params = [
  17312. {
  17313. uid: this.userid,
  17314. cid: this.id,
  17315. stage: this.courseType,
  17316. task: i,
  17317. tool: this.toolindex,
  17318. content: JSON.stringify({
  17319. type: typesql,
  17320. groupIndex: this.groupIndex,
  17321. url: this.studyJuri[0].cover[0].url,
  17322. }),
  17323. type: 11,
  17324. atool: 49,
  17325. text: "",
  17326. },
  17327. ];
  17328. this.ajax
  17329. .post(this.$store.state.api + "addCourseWorks5", params)
  17330. .then((res) => {
  17331. this.$message({
  17332. message: "提交成功",
  17333. type: "success",
  17334. });
  17335. this.studyJuri[0].cover = [];
  17336. this.dialogVisibleGroupWork = false;
  17337. this.getCourseDetail(2);
  17338. })
  17339. .catch((err) => {
  17340. this.$message.error("提交失败");
  17341. console.error(err);
  17342. });
  17343. },
  17344. addEnglishWork() {
  17345. this.myAnList = this.$refs['engJson'].myAnswerList;
  17346. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17347. this.$message.error("请输入作文标题和正文!");
  17348. return;
  17349. }
  17350. let params = [
  17351. {
  17352. uid: this.userid,
  17353. cid: this.id,
  17354. stage: this.courseType,
  17355. task: this.taskCount,
  17356. tool: this.englishToolIndex,
  17357. content: JSON.stringify(this.myAnList),
  17358. type: 16,
  17359. atool: 69,
  17360. text: "",
  17361. },
  17362. ];
  17363. this.ajax
  17364. .post(this.$store.state.api + "addCourseWorks5", params)
  17365. .then((res) => {
  17366. this.$message({
  17367. message: "提交成功",
  17368. type: "success",
  17369. });
  17370. this.myAnList = {};
  17371. this.englishList = {};
  17372. this.englishToolIndex = 0;
  17373. this.engDialogVisible = false;
  17374. this.selectSWorks();
  17375. this.selectStudent();
  17376. })
  17377. .catch((err) => {
  17378. this.$message.error("提交失败");
  17379. console.error(err);
  17380. });
  17381. },
  17382. addCourseWorksGong(i, data, tool) {
  17383. let params = [
  17384. {
  17385. uid: this.userid,
  17386. cid: this.id,
  17387. stage: this.courseType,
  17388. task: this.taskCount,
  17389. tool: i,
  17390. content: data,
  17391. type: 12,
  17392. atool: tool,
  17393. text: "",
  17394. },
  17395. ];
  17396. this.ajax
  17397. .post(this.$store.state.api + "addCourseWorks5", params)
  17398. .then((res) => {
  17399. this.$message({
  17400. message: "提交成功",
  17401. type: "success",
  17402. });
  17403. this.studyJuri[0].cover = [];
  17404. this.selectSWorks();
  17405. this.selectStudent();
  17406. })
  17407. .catch((err) => {
  17408. this.$message.error("提交失败");
  17409. console.error(err);
  17410. });
  17411. },
  17412. addCourseWorksGongTeacher(i, data, tool) {
  17413. let params = [
  17414. {
  17415. uid: this.sStudent.userid,
  17416. cid: this.id,
  17417. stage: this.courseType,
  17418. task: this.taskCount,
  17419. tool: i,
  17420. content: data,
  17421. type: 12,
  17422. atool: tool,
  17423. text: "",
  17424. },
  17425. ];
  17426. this.ajax
  17427. .post(this.$store.state.api + "addCourseWorks5", params)
  17428. .then((res) => {
  17429. this.$message({
  17430. message: "提交成功",
  17431. type: "success",
  17432. });
  17433. this.studyJuri[0].cover = [];
  17434. this.dialogVisibleWorks = false;
  17435. this.selectSWorks();
  17436. this.selectStudent();
  17437. })
  17438. .catch((err) => {
  17439. this.$message.error("提交失败");
  17440. console.error(err);
  17441. });
  17442. },
  17443. addCourseWorksGongPl(i, data, tool, type) {
  17444. let params = [
  17445. {
  17446. uid: this.sStudent.userid,
  17447. cid: this.id,
  17448. stage: this.courseType,
  17449. task: this.taskCount,
  17450. tool: i,
  17451. content: data,
  17452. type: type,
  17453. atool: tool,
  17454. text: "",
  17455. },
  17456. ];
  17457. this.ajax
  17458. .post(this.$store.state.api + "addCourseWorks5", params)
  17459. .then((res) => {
  17460. this.$message({
  17461. message: "提交成功",
  17462. type: "success",
  17463. });
  17464. this.studyJuri[0].cover = [];
  17465. this.dialogVisibleWorks = false;
  17466. this.selectSWorks();
  17467. this.selectStudent();
  17468. })
  17469. .catch((err) => {
  17470. this.$message.error("提交失败");
  17471. console.error(err);
  17472. });
  17473. },
  17474. addCourseWorksTeacher(i) {
  17475. var typesql;
  17476. if (this.sTool == 32) {
  17477. this.addCourseWorksGongTeacher(
  17478. this.toolindex,
  17479. this.studyJuri[0].cover[0].url,
  17480. this.sTool
  17481. );
  17482. return;
  17483. }
  17484. if (this.fileType === 0) {
  17485. typesql = 1;
  17486. } else if (this.fileType === 1) {
  17487. typesql = 4;
  17488. } else if (this.fileType === 2) {
  17489. typesql = 5;
  17490. } else if (this.fileType === 3) {
  17491. typesql = 12;
  17492. }
  17493. if (this.sTool == 50) {
  17494. this.addCourseWorksGongPl(
  17495. this.toolindex,
  17496. this.studyJuri[0].cover[0].url,
  17497. this.sTool,
  17498. typesql
  17499. );
  17500. return;
  17501. }
  17502. if (!this.studyJuri[0].cover[0].url) {
  17503. this.$message.error("请上传文件");
  17504. return;
  17505. }
  17506. let params = [
  17507. {
  17508. uid: this.sStudent.userid,
  17509. cid: this.id,
  17510. stage: this.courseType,
  17511. task: i,
  17512. tool: this.toolindex,
  17513. content: this.studyJuri[0].cover[0].url,
  17514. type: typesql,
  17515. ateacher: this.userid,
  17516. },
  17517. ];
  17518. this.ajax
  17519. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  17520. .then((res) => {
  17521. this.$message({
  17522. message: "提交成功",
  17523. type: "success",
  17524. });
  17525. this.studyJuri[0].cover = [];
  17526. this.dialogVisibleWorks = false;
  17527. this.getCourseDetail(2);
  17528. })
  17529. .catch((err) => {
  17530. this.$message.error("提交失败");
  17531. console.error(err);
  17532. });
  17533. },
  17534. selectUploadStudent(type) {
  17535. const loading = this.$loading.service({
  17536. background: "rgba(255, 255, 255, 0.7)",
  17537. target: document.body,
  17538. });
  17539. let params = {
  17540. cid: this.uploadCid,
  17541. oid: this.oid,
  17542. cn: "",
  17543. };
  17544. this.ajax
  17545. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17546. .then((res) => {
  17547. loading.close();
  17548. var studentK = [];
  17549. if (this.isWorksS[this.toolindex].length > 0) {
  17550. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  17551. studentK.push(this.isWorksS[this.toolindex][z].uid);
  17552. }
  17553. studentK = studentK.join(",");
  17554. }
  17555. this.uploadStudentJuri = res.data[0].filter((el) => {
  17556. return studentK.indexOf(el.userid) == -1;
  17557. });
  17558. if (this.worksSName && this.worksSid) {
  17559. this.uploadStudentJuri.push({
  17560. userid: this.worksSid,
  17561. name: this.worksSName,
  17562. });
  17563. }
  17564. if (type == 1) {
  17565. this.plworkFile = [];
  17566. this.dialogVisibleSname = true;
  17567. } else if (type == 2) {
  17568. this.dialogVisiblePl = true;
  17569. }
  17570. })
  17571. .catch((err) => {
  17572. loading.close();
  17573. console.error(err);
  17574. });
  17575. },
  17576. selectPickStudent() {
  17577. const loading = this.$loading.service({
  17578. background: "rgba(255, 255, 255, 0.7)",
  17579. target: document.body,
  17580. });
  17581. let params = {
  17582. cid: this.uploadCid,
  17583. oid: this.oid,
  17584. cn: "",
  17585. };
  17586. this.ajax
  17587. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  17588. .then((res) => {
  17589. loading.close();
  17590. this.uploadStudentJuri = res.data[0];
  17591. this.dialogVisiblePickPeople = true;
  17592. })
  17593. .catch((err) => {
  17594. loading.close();
  17595. console.error(err);
  17596. });
  17597. },
  17598. arrayToArray(arrayo, arrayt) {
  17599. let array1 = arrayo;
  17600. let array2 = arrayt;
  17601. let commonElements = [];
  17602. for (let i = 0; i < array1.length; i++) {
  17603. for (let j = 0; j < array2.length; j++) {
  17604. if (array1[i] === array2[j]) {
  17605. commonElements.push(array1[i]);
  17606. }
  17607. }
  17608. }
  17609. return commonElements;
  17610. },
  17611. selectWorksStudent() {
  17612. let params = {
  17613. oid: this.oid,
  17614. cid: this.courseDetail.juri,
  17615. };
  17616. this.ajax
  17617. .get(this.$store.state.api + "selectWorksStudent", params)
  17618. .then((res) => {
  17619. var a = res.data[0];
  17620. for (var i = 0; i < this.isWorksS.length; i++) {
  17621. this.noWorksS[i] = [];
  17622. var studentK = [];
  17623. if (this.isWorksS[i].length > 0) {
  17624. for (var z = 0; z < this.isWorksS[i].length; z++) {
  17625. studentK.push(this.isWorksS[i][z].uid);
  17626. }
  17627. studentK = studentK.join(",");
  17628. for (var j = 0; j < a.length; j++) {
  17629. if (studentK.indexOf(a[j].userid) == -1) {
  17630. if (this.tcid) {
  17631. // a[j].classid.indexOf(this.tcid) != -1
  17632. if (
  17633. this.arrayToArray(
  17634. a[j].classid.split(","),
  17635. this.tcid.split(",")
  17636. ).length
  17637. ) {
  17638. this.noWorksS[i].push({
  17639. student: a[j].name,
  17640. userid: a[j].userid,
  17641. });
  17642. }
  17643. } else {
  17644. this.noWorksS[i].push({
  17645. student: a[j].name,
  17646. userid: a[j].userid,
  17647. });
  17648. }
  17649. }
  17650. }
  17651. } else {
  17652. for (var k = 0; k < a.length; k++) {
  17653. if (this.tcid) {
  17654. if (
  17655. this.arrayToArray(
  17656. a[k].classid.split(","),
  17657. this.tcid.split(",")
  17658. ).length
  17659. ) {
  17660. this.noWorksS[i].push({
  17661. student: a[k].name,
  17662. userid: a[k].userid,
  17663. });
  17664. }
  17665. } else {
  17666. this.noWorksS[i].push({
  17667. student: a[k].name,
  17668. userid: a[k].userid,
  17669. });
  17670. }
  17671. }
  17672. }
  17673. }
  17674. this.$forceUpdate();
  17675. if (
  17676. Object.keys(this.commentDetail).length &&
  17677. Object.keys(this.commentIndexJson).length &&
  17678. !this.dialogVisibleScore && !this.dialogVisibleENScore
  17679. ) {
  17680. let a = 1;
  17681. let c = this.commentIndexJson;
  17682. if (
  17683. this.commentIndexJson.gindex ||
  17684. this.commentIndexJson.gindex === 0
  17685. ) {
  17686. for (
  17687. var i = 0;
  17688. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17689. i++
  17690. ) {
  17691. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  17692. groupA: for (var k = 0; k < _el.length; k++) {
  17693. let el = _el[k];
  17694. if (el.wid == this.commentDetail.wid) {
  17695. a = 2;
  17696. this.commentOther(
  17697. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  17698. this.commentIndexJson.toolIndex,
  17699. k,
  17700. this.commentIndexJson.gindex
  17701. );
  17702. break groupA;
  17703. }
  17704. }
  17705. }
  17706. if (a === 1) {
  17707. this.commentDetail = [];
  17708. this.commentIndexJson = {};
  17709. this.commentDialogVisible = false;
  17710. this.$message("此作业已被删除");
  17711. }
  17712. } else {
  17713. if (this.isGroup && this.commentIndexJson.gid) {
  17714. groupA: for (
  17715. var i = 0;
  17716. i < this.courseGroup.group.length;
  17717. i++
  17718. ) {
  17719. let _group = this.courseGroup.group[i];
  17720. if (_group.id == this.commentIndexJson.gid) {
  17721. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  17722. for (var k = 0; k < _el2.length; k++) {
  17723. let el2 = _el2[k];
  17724. if (el2.wid == this.commentDetail.wid) {
  17725. a = 2;
  17726. this.commentOther(
  17727. _el2[k],
  17728. this.commentIndexJson.toolIndex,
  17729. k,
  17730. null,
  17731. this.commentIndexJson.gid
  17732. );
  17733. break groupA;
  17734. }
  17735. }
  17736. }
  17737. }
  17738. }
  17739. if (a == 1) {
  17740. for (
  17741. var i = 0;
  17742. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  17743. i++
  17744. ) {
  17745. let el =
  17746. this.worksStudent[this.commentIndexJson.toolIndex][i];
  17747. if (el.wid == this.commentDetail.wid) {
  17748. a = 2;
  17749. this.commentOther(
  17750. this.worksStudent[this.commentIndexJson.toolIndex][i],
  17751. this.commentIndexJson.toolIndex,
  17752. i
  17753. );
  17754. break;
  17755. }
  17756. }
  17757. }
  17758. if (a === 1) {
  17759. this.commentDetail = [];
  17760. this.commentIndexJson = {};
  17761. this.commentDialogVisible = false;
  17762. this.$message("此作业已被删除");
  17763. }
  17764. }
  17765. }
  17766. })
  17767. .catch((err) => {
  17768. console.error(err);
  17769. });
  17770. },
  17771. selectStudent() {
  17772. //学生查看自己作业
  17773. let params = {
  17774. uid: this.userid,
  17775. cid: this.id,
  17776. s: this.courseType,
  17777. t: this.taskCount,
  17778. };
  17779. this.ajax
  17780. .get(this.$store.state.api + "selectStudentWorks", params)
  17781. .then((res) => {
  17782. var a =
  17783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17784. this.taskCount
  17785. ].toolChoose;
  17786. var b = res.data[0];
  17787. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  17788. var y = [
  17789. "AVI",
  17790. "NAVI",
  17791. "MPEG",
  17792. "ASF",
  17793. "MOV",
  17794. "WMV",
  17795. "3GP",
  17796. "RM",
  17797. "RMVB",
  17798. "FLV",
  17799. "F4V",
  17800. "H.264",
  17801. "H.265",
  17802. "REAL VIDEO",
  17803. "MKV",
  17804. "WebM",
  17805. "HDDVD",
  17806. "MP4",
  17807. "MPG",
  17808. "M4V",
  17809. "MGV",
  17810. "OGV",
  17811. "QTM",
  17812. "STR",
  17813. "AMC",
  17814. "DVX",
  17815. "EVO",
  17816. "DAT",
  17817. "OGG",
  17818. "OGM",
  17819. ];
  17820. for (var i = 0; i < a.length; i++) {
  17821. this.workStudent[i] = [];
  17822. for (var j = 0; j < b.length; j++) {
  17823. if (i == b[j].tool) {
  17824. if (
  17825. (b[j].type == 1 ||
  17826. b[j].type == 4 ||
  17827. b[j].type == 5 ||
  17828. b[j].type == 6 ||
  17829. b[j].type == 12 ||
  17830. b[j].type == 7) &&
  17831. a[i].tool[0] != 15 &&
  17832. a[i].tool[0] != 4 &&
  17833. a[i].tool[0] != 45 &&
  17834. a[i].tool[0] != 50 &&
  17835. a[i].tool[0] != 32 &&
  17836. a[i].tool[0] != 57 &&
  17837. a[i].tool[0] != 52 &&
  17838. a[i].tool[0] != 69
  17839. ) {
  17840. if (
  17841. c.indexOf(
  17842. b[j].content
  17843. .split(".")
  17844. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17845. ) != -1 &&
  17846. a[i].tool[0] == 16 &&
  17847. b[j].atool != 50
  17848. ) {
  17849. this.workStudent[i].push({
  17850. works: b[j].content,
  17851. sName: b[j].name,
  17852. score: b[j].score,
  17853. img: b[j].img,
  17854. type: 1,
  17855. time: b[j].time,
  17856. userid: b[j].userid,
  17857. wid: b[j].id,
  17858. });
  17859. } else if (
  17860. y.indexOf(
  17861. b[j].content
  17862. .split(".")
  17863. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  17864. ) != -1 &&
  17865. a[i].tool[0] == 16 &&
  17866. b[j].atool != 50
  17867. ) {
  17868. this.workStudent[i].push({
  17869. userid: b[j].userid,
  17870. wid: b[j].id,
  17871. works: b[j].content,
  17872. sName: b[j].name,
  17873. score: b[j].score,
  17874. img: b[j].img,
  17875. type: 3,
  17876. time: b[j].time,
  17877. });
  17878. } else if (b[j].type == 6 && b[j].atool != 50) {
  17879. this.workStudent[i].push({
  17880. userid: b[j].userid,
  17881. wid: b[j].id,
  17882. works: b[j].content,
  17883. sName: b[j].name,
  17884. score: b[j].score,
  17885. img: b[j].img,
  17886. type: 4,
  17887. time: b[j].time,
  17888. });
  17889. } else if (b[j].type == 7 && b[j].atool != 50) {
  17890. this.workStudent[i].push({
  17891. userid: b[j].userid,
  17892. wid: b[j].id,
  17893. works: b[j].content,
  17894. sName: b[j].name,
  17895. score: b[j].score,
  17896. img: b[j].img,
  17897. type: 5,
  17898. time: b[j].time,
  17899. });
  17900. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  17901. this.workStudent[i].push({
  17902. works: b[j].content,
  17903. sName: b[j].name,
  17904. score: b[j].score,
  17905. img: b[j].img,
  17906. type: 12,
  17907. time: b[j].time,
  17908. userid: b[j].userid,
  17909. wid: b[j].id,
  17910. });
  17911. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  17912. this.workStudent[i].push({
  17913. works: b[j].content,
  17914. sName: b[j].name,
  17915. score: b[j].score,
  17916. img: b[j].img,
  17917. type: 0,
  17918. time: b[j].time,
  17919. userid: b[j].userid,
  17920. wid: b[j].id,
  17921. });
  17922. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  17923. this.workStudent[i].push({
  17924. works: b[j].content,
  17925. sName: b[j].name,
  17926. score: b[j].score,
  17927. img: b[j].img,
  17928. type: 0,
  17929. time: b[j].time,
  17930. userid: b[j].userid,
  17931. wid: b[j].id,
  17932. });
  17933. }
  17934. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  17935. this.workStudent[i].push({
  17936. works: b[j].content,
  17937. sName: b[j].name,
  17938. score: b[j].score,
  17939. img: b[j].img,
  17940. type: 2,
  17941. time: b[j].time,
  17942. userid: b[j].userid,
  17943. wid: b[j].id,
  17944. });
  17945. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  17946. this.workStudent[i].push({
  17947. works: b[j].content,
  17948. sName: b[j].name,
  17949. score: b[j].score,
  17950. img: b[j].img,
  17951. type: 20,
  17952. time: b[j].time,
  17953. userid: b[j].userid,
  17954. wid: b[j].id,
  17955. });
  17956. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  17957. //问卷
  17958. this.workStudent[i].push({
  17959. works: b[j].content,
  17960. sName: b[j].name,
  17961. score: b[j].score,
  17962. img: b[j].img,
  17963. type: 2,
  17964. time: b[j].time,
  17965. userid: b[j].userid,
  17966. wid: b[j].id,
  17967. });
  17968. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  17969. //选择题
  17970. this.workStudent[i].push({
  17971. works: b[j].content,
  17972. sName: b[j].name,
  17973. score: b[j].score,
  17974. img: b[j].img,
  17975. type: 8,
  17976. time: b[j].time,
  17977. userid: b[j].userid,
  17978. wid: b[j].id,
  17979. });
  17980. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  17981. //选择题
  17982. this.workStudent[i].push({
  17983. works: b[j].content,
  17984. sName: b[j].name,
  17985. score: b[j].score,
  17986. img: b[j].img,
  17987. type: 9,
  17988. time: b[j].time,
  17989. userid: b[j].userid,
  17990. wid: b[j].id,
  17991. });
  17992. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  17993. //选择题
  17994. this.workStudent[i].push({
  17995. works: b[j].content,
  17996. sName: b[j].name,
  17997. score: b[j].score,
  17998. img: b[j].img,
  17999. type: 10,
  18000. time: b[j].time,
  18001. userid: b[j].userid,
  18002. wid: b[j].id,
  18003. });
  18004. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18005. //选择题
  18006. this.workStudent[i].push({
  18007. works: b[j].content,
  18008. sName: b[j].name,
  18009. score: b[j].score,
  18010. img: b[j].img,
  18011. type: 13,
  18012. time: b[j].time,
  18013. userid: b[j].userid,
  18014. wid: b[j].id,
  18015. });
  18016. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18017. //选择题
  18018. this.workStudent[i].push({
  18019. works: b[j].content,
  18020. sName: b[j].name,
  18021. score: b[j].score,
  18022. img: b[j].img,
  18023. type: 12,
  18024. time: b[j].time,
  18025. userid: b[j].userid,
  18026. wid: b[j].id,
  18027. });
  18028. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18029. //选择题
  18030. this.workStudent[i].push({
  18031. works: b[j].content,
  18032. sName: b[j].name,
  18033. score: b[j].score,
  18034. img: b[j].img,
  18035. type: 12,
  18036. time: b[j].time,
  18037. userid: b[j].userid,
  18038. wid: b[j].id,
  18039. });
  18040. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18041. //选择题
  18042. this.workStudent[i].push({
  18043. works: b[j].content,
  18044. sName: b[j].name,
  18045. score: b[j].score,
  18046. img: b[j].img,
  18047. type: 15,
  18048. time: b[j].time,
  18049. userid: b[j].userid,
  18050. wid: b[j].id,
  18051. });
  18052. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18053. //英语写作
  18054. this.workStudent[i].push({
  18055. works: b[j].content,
  18056. sName: b[j].name,
  18057. score: b[j].score,
  18058. img: b[j].img,
  18059. type: 16,
  18060. time: b[j].time,
  18061. userid: b[j].userid,
  18062. wid: b[j].id,
  18063. aiCode: b[j].aiCode,
  18064. teacherCode: b[j].teacherCode
  18065. });
  18066. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18067. //英语口语
  18068. this.workStudent[i].push({
  18069. works: b[j].content,
  18070. sName: b[j].name,
  18071. score: b[j].score,
  18072. img: b[j].img,
  18073. type: 17,
  18074. time: b[j].time,
  18075. userid: b[j].userid,
  18076. wid: b[j].id,
  18077. });
  18078. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18079. //交互视频
  18080. this.workStudent[i].push({
  18081. works: b[j].content,
  18082. sName: b[j].name,
  18083. score: b[j].score,
  18084. img: b[j].img,
  18085. type: 14,
  18086. time: b[j].time,
  18087. userid: b[j].userid,
  18088. wid: b[j].id,
  18089. });
  18090. }
  18091. }
  18092. }
  18093. }
  18094. })
  18095. .catch((err) => {
  18096. console.error(err);
  18097. });
  18098. },
  18099. openVideo(w) {
  18100. this.videoDetail = {};
  18101. this.playerOptions1.sources[0].src = w.works;
  18102. this.videoDetail = this.playerOptions1;
  18103. this.videoVisible = true;
  18104. },
  18105. isLikes(wid, uid, t, c, isLikes,sName) {
  18106. if (isLikes == false) {
  18107. let params = [
  18108. {
  18109. wid: wid,
  18110. lid: uid,
  18111. t: t,
  18112. c: c,
  18113. },
  18114. ];
  18115. this.ajax
  18116. .post(this.$store.state.api + "insertComment", params)
  18117. .then((res) => {
  18118. this.$message({
  18119. message: "点赞成功",
  18120. type: "success",
  18121. });
  18122. this.selectSWorks();
  18123. this.selectStudent();
  18124. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18125. })
  18126. .catch((err) => {
  18127. this.$message.error("点赞失败");
  18128. console.error(err);
  18129. });
  18130. } else {
  18131. let params = {
  18132. wid: wid,
  18133. lid: uid,
  18134. type: t,
  18135. };
  18136. this.ajax
  18137. .get(this.$store.state.api + "deleteComment", params)
  18138. .then((res) => {
  18139. this.$message({
  18140. message: "取消点赞成功",
  18141. type: "success",
  18142. });
  18143. this.selectSWorks();
  18144. this.selectStudent();
  18145. })
  18146. .catch((err) => {
  18147. console.error(err);
  18148. });
  18149. }
  18150. },
  18151. deleteComment(wid) {
  18152. this.$confirm("确定删除此评论吗?", "提示", {
  18153. confirmButtonText: "确定",
  18154. cancelButtonText: "取消",
  18155. type: "warning",
  18156. })
  18157. .then(() => {
  18158. let params = {
  18159. id: wid,
  18160. };
  18161. this.ajax
  18162. .get(this.$store.state.api + "deleteComment2", params)
  18163. .then((res) => {
  18164. this.$message({
  18165. message: "删除评论成功",
  18166. type: "success",
  18167. });
  18168. this.selectSWorks();
  18169. this.selectStudent();
  18170. })
  18171. .catch((err) => {
  18172. console.error(err);
  18173. });
  18174. })
  18175. .catch(() => {});
  18176. },
  18177. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18178. this.commentIndexJson = {
  18179. toolIndex: toolIndex,
  18180. wIndex: wIndex,
  18181. gindex: gindex,
  18182. gid: gid,
  18183. };
  18184. this.commentDetail = [];
  18185. this.commentDialogVisible = true;
  18186. this.commentDetail = w;
  18187. if (w.works && w.type == 1) {
  18188. // this.pptImgUrl = "";
  18189. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18190. if (
  18191. a.indexOf(
  18192. w.works
  18193. .split(".")
  18194. [w.works.split(".").length - 1].toLocaleUpperCase()
  18195. ) != -1
  18196. ) {
  18197. let _uuurl = await this.checkLink(w.works);
  18198. console.log(_uuurl)
  18199. this.pptImgUrl =
  18200. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18201. this.showPDF = false;
  18202. } else if (
  18203. w.works
  18204. .split(".")
  18205. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18206. ) {
  18207. this.pptImgUrl = w.works;
  18208. this.showPDF = true;
  18209. }
  18210. } else if (w.works && w.type == 3) {
  18211. this.videoDetail = {};
  18212. this.playerOptions1.sources[0].src = w.works;
  18213. this.videoDetail = this.playerOptions1;
  18214. // this.videoVisible = true;
  18215. } else if (w.works && w.type == 4) {
  18216. this.eScore = JSON.parse(w.works);
  18217. this.rateJson =
  18218. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18219. this.taskCount
  18220. ].toolChoose[toolIndex].rateJson;
  18221. } else if (w.works && w.type == 10) {
  18222. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18223. } else if (w.works && w.type == 13) {
  18224. this.wordJson =
  18225. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18226. this.taskCount
  18227. ].toolChoose[toolIndex].wordJson;
  18228. }
  18229. },
  18230. async openScore(w, index) {
  18231. this.wScore = 0;
  18232. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18233. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18234. this.commentDetail = [];
  18235. if(w.type == 17){
  18236. this.dialogVisibleENScore = true;
  18237. }else{
  18238. this.dialogVisibleScore = true;
  18239. }
  18240. this.commentDetail = w;
  18241. if (w.works && w.type == 1) {
  18242. this.pptImgUrl = "";
  18243. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18244. if (
  18245. a.indexOf(
  18246. w.works
  18247. .split(".")
  18248. [w.works.split(".").length - 1].toLocaleUpperCase()
  18249. ) != -1
  18250. ) {
  18251. let _uuurl = await this.checkLink(w.works);
  18252. console.log(_uuurl)
  18253. this.pptImgUrl =
  18254. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18255. this.showPDF = false;
  18256. } else if (
  18257. w.works
  18258. .split(".")
  18259. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18260. ) {
  18261. this.pptImgUrl = w.works;
  18262. this.showPDF = true;
  18263. }
  18264. } else if (w.works && w.type == 3) {
  18265. this.videoDetail = {};
  18266. this.playerOptions1.sources[0].src = w.works;
  18267. this.videoDetail = this.playerOptions1;
  18268. }else if(w.type == 17){
  18269. let englishVoiceJson = {}
  18270. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18271. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18272. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18273. .toolChoose[index].englishVoiceJson
  18274. : {};
  18275. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18276. }
  18277. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18278. },
  18279. addComment(wid, uid, t,detail) {
  18280. if (this.commentText == "") {
  18281. this.$message.error("请输入评论");
  18282. return;
  18283. }
  18284. let params2 = [
  18285. {
  18286. wid: wid,
  18287. lid: uid,
  18288. t: t,
  18289. },
  18290. ];
  18291. this.ajax
  18292. .post(this.$store.state.api + "getComment", params2)
  18293. .then((res) => {
  18294. if (res.data[0].length > 0) {
  18295. this.$message.error("一个作业只能评论一条");
  18296. } else {
  18297. let params = [
  18298. {
  18299. wid: wid,
  18300. lid: uid,
  18301. t: t,
  18302. c: this.commentText,
  18303. },
  18304. ];
  18305. this.ajax
  18306. .post(this.$store.state.api + "insertComment", params)
  18307. .then((res) => {
  18308. this.$message({
  18309. message: "评论成功",
  18310. type: "success",
  18311. });
  18312. this.commentText = "";
  18313. this.selectSWorks();
  18314. this.selectStudent();
  18315. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18316. })
  18317. .catch((err) => {
  18318. this.$message.error("评论失败");
  18319. console.error(err);
  18320. });
  18321. }
  18322. })
  18323. .catch((err) => {
  18324. // this.$message.error("评论失败");
  18325. console.error(err);
  18326. });
  18327. },
  18328. scoreWork(wid,sName) {
  18329. if (this.wScore == 0) {
  18330. this.$message.error("请评分");
  18331. return;
  18332. }
  18333. let params = [
  18334. {
  18335. wid: wid,
  18336. score: JSON.stringify({
  18337. wScore: this.wScore,
  18338. detail: this.scoreDetail,
  18339. }),
  18340. },
  18341. ];
  18342. this.ajax
  18343. .post(this.$store.state.api + "scoreWork", params)
  18344. .then((res) => {
  18345. this.$message({
  18346. message: "评分成功",
  18347. type: "success",
  18348. });
  18349. this.wScore = 0;
  18350. this.scoreDetail = "";
  18351. this.dialogVisibleScore = false;
  18352. this.selectSWorks();
  18353. this.selectStudent();
  18354. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18355. })
  18356. .catch((err) => {
  18357. this.$message.error("评分失败");
  18358. console.error(err);
  18359. });
  18360. },
  18361. openXz(w, i) {
  18362. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18363. .taskJson[this.taskCount].toolChoose[i].selectJson
  18364. ? JSON.parse(
  18365. JSON.stringify(
  18366. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18367. this.taskCount
  18368. ].toolChoose[i].selectJson
  18369. )
  18370. )
  18371. : { url: "", select: [], answer: [] };
  18372. var a = w.works.split(",");
  18373. for (var k = 0; k < a.length; k++) {
  18374. a[k] = parseInt(a[k]);
  18375. }
  18376. this.selectAnswer = { answer: a, stu: w.sName };
  18377. this.isSelect = true;
  18378. this.dialogVisibleSelect = true;
  18379. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18380. },
  18381. openSen(w, i) {
  18382. this.sentenceList1 = JSON.parse(w.works);
  18383. this.sentenceList1.stuName = w.sName;
  18384. this.dialogVisibleSentence1 = true;
  18385. },
  18386. openPj(w, toolindex) {
  18387. this.isStar = true;
  18388. this.eScore = JSON.parse(w);
  18389. this.rateJson =
  18390. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18391. this.taskCount
  18392. ].toolChoose[toolindex].rateJson;
  18393. this.studentEvalDialogVisible = true;
  18394. },
  18395. openEnglishEva(id,i){
  18396. let params = {
  18397. wid: id
  18398. };
  18399. this.ajax
  18400. .get(this.$store.state.api + "selectEngWork", params)
  18401. .then((res) => {
  18402. this.evaEngJson.message = res.data[0][0];
  18403. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  18404. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18405. .toolChoose[i].englishList;
  18406. this.engEvaDialogVisible = true;
  18407. })
  18408. .catch((err) => {
  18409. console.error(err);
  18410. });
  18411. },
  18412. deleteWorks(id) {
  18413. this.$confirm("确定删除此作业吗?", "提示", {
  18414. confirmButtonText: "确定",
  18415. cancelButtonText: "取消",
  18416. type: "warning",
  18417. })
  18418. .then(() => {
  18419. let params = [
  18420. {
  18421. id: id,
  18422. },
  18423. ];
  18424. this.ajax
  18425. .post(this.$store.state.api + "deleteCourseWork", params)
  18426. .then((res) => {
  18427. this.$message({
  18428. message: "删除成功",
  18429. type: "success",
  18430. });
  18431. this.selectStudent();
  18432. this.selectSWorks();
  18433. this.selectSLook();
  18434. })
  18435. .catch((err) => {
  18436. this.$message.error("网络异常");
  18437. console.error(err);
  18438. });
  18439. })
  18440. .catch(() => {});
  18441. },
  18442. noIsAi() {
  18443. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  18444. },
  18445. getLang() {
  18446. let lang = "";
  18447. if (this.languageSetting == 0) {
  18448. lang = "Chinese.";
  18449. } else if (this.languageSetting == 1) {
  18450. lang = "Traditional Chinese.";
  18451. } else if (this.languageSetting == 2) {
  18452. lang = "English.";
  18453. }
  18454. return lang;
  18455. },
  18456. selectSWorks(gindex) {
  18457. //教师查看全部作业
  18458. let params = {
  18459. cid: this.id,
  18460. s: this.courseType,
  18461. t: this.taskCount
  18462. };
  18463. this.ajax
  18464. .get(this.$store.state.api + "selectSWorks", params)
  18465. .then(res => {
  18466. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18467. this.taskCount
  18468. ].toolChoose;
  18469. var b = res.data[0];
  18470. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18471. var y = [
  18472. "AVI",
  18473. "NAVI",
  18474. "MPEG",
  18475. "ASF",
  18476. "MOV",
  18477. "WMV",
  18478. "3GP",
  18479. "RM",
  18480. "RMVB",
  18481. "FLV",
  18482. "F4V",
  18483. "H.264",
  18484. "H.265",
  18485. "REAL VIDEO",
  18486. "MKV",
  18487. "WebM",
  18488. "HDDVD",
  18489. "MP4",
  18490. "MPG",
  18491. "M4V",
  18492. "MGV",
  18493. "OGV",
  18494. "QTM",
  18495. "STR",
  18496. "AMC",
  18497. "DVX",
  18498. "EVO",
  18499. "DAT",
  18500. "OGG",
  18501. "OGM"
  18502. ];
  18503. var d = res.data[1];
  18504. var e = res.data[2];
  18505. var f = res.data[3];
  18506. let _worksStudent = [];
  18507. var _worksStudent2 = [];
  18508. for (var i = 0; i < a.length; i++) {
  18509. _worksStudent[i] = [];
  18510. _worksStudent2[i] = [];
  18511. if (
  18512. !this.isCloseList[i] ||
  18513. this.isCloseList[i].isClose == undefined
  18514. ) {
  18515. this.isCloseList[i] = { isClose: 0 };
  18516. }
  18517. this.groupStudent[i] = [];
  18518. this.groupStudentUid[i] = [];
  18519. if (this.isGroup) {
  18520. for (
  18521. var groupI = 0;
  18522. groupI < this.courseGroup.group.length;
  18523. groupI++
  18524. ) {
  18525. this.courseGroup.group[groupI].works[i] = [];
  18526. }
  18527. }
  18528. this.isWorksS[i] = [];
  18529. this.checkJson[i] = [];
  18530. if (a[i].tool[0] == 49) {
  18531. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  18532. this.groupStudent[i][gA] = [];
  18533. this.groupStudentUid[i][gA] = [];
  18534. _worksStudent[i][gA] = [];
  18535. _worksStudent2[i][gA] = [];
  18536. this.isCloseList[i][gA] = [];
  18537. for (var g = 0; g < f.length; g++) {
  18538. if (
  18539. f[g].ttype == 2 &&
  18540. this.tcid &&
  18541. this.arrayToArray(
  18542. f[g].classid ? f[g].classid.split(",") : [],
  18543. this.tcid.split(",")
  18544. ).length == 0
  18545. ) {
  18546. continue;
  18547. }
  18548. let _classId = this.arrayToArray(
  18549. this.courseDetail.juri
  18550. ? this.courseDetail.juri.split(",")
  18551. : [],
  18552. this.classId ? this.classId.split(",") : []
  18553. );
  18554. if (
  18555. gA == f[g].group &&
  18556. f[g].tool == i &&
  18557. (this.arrayToArray(
  18558. f[g].classid ? f[g].classid.split(",") : [],
  18559. this.tcid.split(",")
  18560. ).length !== 0 ||
  18561. this.arrayToArray(
  18562. f[g].classid ? f[g].classid.split(",") : [],
  18563. _classId
  18564. ).length !== 0 ||
  18565. (!this.tcid && this.tType == "1") ||
  18566. this.courseDetail.juri === "" ||
  18567. f[g].ttype == 1)
  18568. ) {
  18569. this.groupStudent[i][gA].push(f[g]);
  18570. this.groupStudentUid[i][gA].push(f[g].userid);
  18571. }
  18572. }
  18573. }
  18574. this.$forceUpdate();
  18575. }
  18576. for (var j = 0; j < b.length; j++) {
  18577. if (
  18578. b[j].ttype == 2 &&
  18579. this.tcid &&
  18580. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  18581. .length == 0
  18582. ) {
  18583. continue;
  18584. }
  18585. var likesCount = 0;
  18586. var commentCount = 0;
  18587. var isLikes = false;
  18588. var commentJson = [];
  18589. var likeJson = [];
  18590. var data = b[j];
  18591. if (i == b[j].tool) {
  18592. if (data.type == 2 && a[i].tool[0] == 4) {
  18593. // if(JSON.parse(data.content)[0].anwer){
  18594. var checkL =
  18595. JSON.parse(data.content)[0].anwer instanceof Array
  18596. ? JSON.parse(data.content)[0].anwer
  18597. : JSON.parse(data.content)[0].anwer.split(",");
  18598. for (var z = 0; z < checkL.length; z++) {
  18599. if (!this.checkJson[i][z]) {
  18600. this.checkJson[i].push({
  18601. checkCount: [],
  18602. checkPerson: [],
  18603. rightPerson: []
  18604. });
  18605. }
  18606. if (!this.checkJson[i][z].checkCount.length) {
  18607. this.checkJson[i][z].checkCount = [];
  18608. let _askItemCount = JSON.parse(data.content)[0].askJson
  18609. .askJson[z].askItem;
  18610. for (var aic = 0; aic < _askItemCount; aic++) {
  18611. this.checkJson[i][z].checkCount.push(0);
  18612. }
  18613. }
  18614. if (checkL[z] instanceof Array) {
  18615. if (
  18616. JSON.parse(data.content)[0]
  18617. .anwer.sort()
  18618. .join(",") == checkL[z].sort().join(",")
  18619. ) {
  18620. this.checkJson[i][z].rightPerson.push(data.name);
  18621. }
  18622. for (var q = 0; q < checkL[z].length; q++) {
  18623. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18624. ? this.checkJson[i][z].checkPerson[
  18625. parseInt(checkL[z][q])
  18626. ].push(data.name)
  18627. : (this.checkJson[i][z].checkPerson[
  18628. parseInt(checkL[z][q])
  18629. ] = [data.name]);
  18630. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18631. ? this.checkJson[i][z].checkCount[
  18632. parseInt(checkL[z][q])
  18633. ]++
  18634. : (this.checkJson[i][z].checkCount[
  18635. parseInt(checkL[z][q])
  18636. ] = 1);
  18637. }
  18638. } else {
  18639. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  18640. this.checkJson[i][z].rightPerson.push(data.name);
  18641. }
  18642. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18643. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18644. ? this.checkJson[i][z].checkPerson[
  18645. parseInt(checkL[z])
  18646. ].push(data.name)
  18647. : (this.checkJson[i][z].checkPerson[
  18648. parseInt(checkL[z])
  18649. ] = [data.name]);
  18650. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18651. ? this.checkJson[i][z].checkCount[
  18652. parseInt(checkL[z])
  18653. ]++
  18654. : (this.checkJson[i][z].checkCount[
  18655. parseInt(checkL[z])
  18656. ] = 1);
  18657. }
  18658. }
  18659. }
  18660. } else if (data.type == 8 && a[i].tool[0] == 45) {
  18661. var checkL = JSON.parse(data.content)[0].anwer;
  18662. for (var z = 0; z < checkL.length; z++) {
  18663. if (!this.checkJson[i][z]) {
  18664. this.checkJson[i].push({
  18665. checkCount: [],
  18666. checkPerson: [],
  18667. rightPerson: []
  18668. });
  18669. }
  18670. if (!this.checkJson[i][z].checkCount.length) {
  18671. this.checkJson[i][z].checkCount = [];
  18672. let _askItemCount = JSON.parse(data.content)[0].testJson
  18673. .testJson[z].testItem;
  18674. for (var aic = 0; aic < _askItemCount; aic++) {
  18675. this.checkJson[i][z].checkCount.push(0);
  18676. }
  18677. }
  18678. if (checkL[z] instanceof Array) {
  18679. if (
  18680. JSON.parse(data.content)[0]
  18681. .testJson.testJson[z].answer.sort()
  18682. .join(",") == checkL[z].sort().join(",")
  18683. ) {
  18684. this.checkJson[i][z].rightPerson.push(data.name);
  18685. }
  18686. for (var q = 0; q < checkL[z].length; q++) {
  18687. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  18688. ? this.checkJson[i][z].checkPerson[
  18689. parseInt(checkL[z][q])
  18690. ].push(data.name)
  18691. : (this.checkJson[i][z].checkPerson[
  18692. parseInt(checkL[z][q])
  18693. ] = [data.name]);
  18694. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  18695. ? this.checkJson[i][z].checkCount[
  18696. parseInt(checkL[z][q])
  18697. ]++
  18698. : (this.checkJson[i][z].checkCount[
  18699. parseInt(checkL[z][q])
  18700. ] = 1);
  18701. }
  18702. } else {
  18703. if (
  18704. JSON.parse(data.content)[0].testJson.testJson[z]
  18705. .answer == checkL[z]
  18706. ) {
  18707. this.checkJson[i][z].rightPerson.push(data.name);
  18708. }
  18709. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  18710. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  18711. ? this.checkJson[i][z].checkPerson[
  18712. parseInt(checkL[z])
  18713. ].push(data.name)
  18714. : (this.checkJson[i][z].checkPerson[
  18715. parseInt(checkL[z])
  18716. ] = [data.name]);
  18717. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  18718. ? this.checkJson[i][z].checkCount[
  18719. parseInt(checkL[z])
  18720. ]++
  18721. : (this.checkJson[i][z].checkCount[
  18722. parseInt(checkL[z])
  18723. ] = 1);
  18724. }
  18725. }
  18726. }
  18727. } else if (data.type == 9 && a[i].tool[0] == 47) {
  18728. var checkL = JSON.parse(data.content);
  18729. for (var z = 0; z < checkL.length; z++) {
  18730. if (!this.checkJson[i][z]) {
  18731. this.checkJson[i].push({
  18732. checkCount: [],
  18733. checkPerson: [],
  18734. rightPerson: []
  18735. });
  18736. }
  18737. this.checkJson[i][z].checkPerson.push(data.name);
  18738. if (
  18739. checkL[z].chooseSenList.toString() ==
  18740. checkL[z].rightAnswer.toString()
  18741. ) {
  18742. this.checkJson[i][z].rightPerson.push(data.name);
  18743. }
  18744. }
  18745. }
  18746. for (var k = 0; k < d.length; k++) {
  18747. //点赞
  18748. if (d[k].workId == b[j].id) {
  18749. likesCount++;
  18750. likeJson.push(d[k]);
  18751. if (d[k].likesId == this.userid) {
  18752. isLikes = true;
  18753. }
  18754. }
  18755. }
  18756. for (var l = 0; l < e.length; l++) {
  18757. //评论
  18758. if (e[l].workId == b[j].id) {
  18759. if (e[l].comment != "") {
  18760. commentCount++;
  18761. commentJson.push({
  18762. commentText: e[l].comment,
  18763. commentTime: e[l].commentTime,
  18764. commentPeople: e[l].commentPeople,
  18765. userid: e[l].userid,
  18766. wid: e[l].id
  18767. });
  18768. }
  18769. }
  18770. }
  18771. if (
  18772. (b[j].type == 1 ||
  18773. b[j].type == 4 ||
  18774. b[j].type == 5 ||
  18775. b[j].type == 6 ||
  18776. b[j].type == 12 ||
  18777. b[j].type == 7) &&
  18778. a[i].tool[0] != 15 &&
  18779. a[i].tool[0] != 4 &&
  18780. a[i].tool[0] != 45 &&
  18781. a[i].tool[0] != 50 &&
  18782. a[i].tool[0] != 32 &&
  18783. a[i].tool[0] != 57 &&
  18784. a[i].tool[0] != 52
  18785. ) {
  18786. if (
  18787. c.indexOf(
  18788. b[j].content
  18789. .split(".")
  18790. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18791. ) != -1 &&
  18792. a[i].tool[0] == 16 &&
  18793. b[j].atool != 50
  18794. ) {
  18795. let _works = {
  18796. userid: b[j].userid,
  18797. ateacher: b[j].ateacher,
  18798. wid: b[j].id,
  18799. works: b[j].content,
  18800. sName: b[j].name,
  18801. type: 1,
  18802. ttype: b[j].ttype,
  18803. time: b[j].time,
  18804. score: b[j].score,
  18805. img: b[j].img,
  18806. likesCount: likesCount,
  18807. commentCount: commentCount,
  18808. isLikes: isLikes,
  18809. commentJson: commentJson,
  18810. likeJson: likeJson
  18811. };
  18812. if (this.isGroup) {
  18813. let isGw = 1;
  18814. for (
  18815. var groupI = 0;
  18816. groupI < this.courseGroup.group.length;
  18817. groupI++
  18818. ) {
  18819. let gid = this.courseGroup.group[groupI].id;
  18820. if (
  18821. this.courseGroupStudentUid[gid].indexOf(
  18822. b[j].userid
  18823. ) != -1
  18824. ) {
  18825. isGw = 2;
  18826. this.courseGroup.group[groupI].works[i].push(_works);
  18827. break;
  18828. }
  18829. }
  18830. if (isGw == 1) {
  18831. _worksStudent[i].push(_works);
  18832. }
  18833. } else {
  18834. _worksStudent[i].push(_works);
  18835. }
  18836. _worksStudent2[i].push(_works);
  18837. this.isWorksS[i].push({
  18838. uid: b[j].userid,
  18839. sName: b[j].name
  18840. });
  18841. } else if (
  18842. y.indexOf(
  18843. b[j].content
  18844. .split(".")
  18845. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18846. ) != -1 &&
  18847. a[i].tool[0] == 16 &&
  18848. b[j].atool != 50
  18849. ) {
  18850. let _works = {
  18851. userid: b[j].userid,
  18852. ateacher: b[j].ateacher,
  18853. wid: b[j].id,
  18854. works: b[j].content,
  18855. sName: b[j].name,
  18856. type: 3,
  18857. ttype: b[j].ttype,
  18858. time: b[j].time,
  18859. score: b[j].score,
  18860. img: b[j].img,
  18861. likesCount: likesCount,
  18862. commentCount: commentCount,
  18863. isLikes: isLikes,
  18864. commentJson: commentJson,
  18865. likeJson: likeJson
  18866. };
  18867. if (this.isGroup) {
  18868. let isGw = 1;
  18869. for (
  18870. var groupI = 0;
  18871. groupI < this.courseGroup.group.length;
  18872. groupI++
  18873. ) {
  18874. let gid = this.courseGroup.group[groupI].id;
  18875. if (
  18876. this.courseGroupStudentUid[gid].indexOf(
  18877. b[j].userid
  18878. ) != -1
  18879. ) {
  18880. isGw = 2;
  18881. this.courseGroup.group[groupI].works[i].push(_works);
  18882. break;
  18883. }
  18884. }
  18885. if (isGw == 1) {
  18886. _worksStudent[i].push(_works);
  18887. }
  18888. } else {
  18889. _worksStudent[i].push(_works);
  18890. }
  18891. _worksStudent2[i].push(_works);
  18892. this.isWorksS[i].push({
  18893. uid: b[j].userid,
  18894. sName: b[j].name
  18895. });
  18896. } else if (b[j].type == 6 && b[j].atool != 50) {
  18897. let _works = {
  18898. userid: b[j].userid,
  18899. ateacher: b[j].ateacher,
  18900. wid: b[j].id,
  18901. works: b[j].content,
  18902. sName: b[j].name,
  18903. type: 4,
  18904. ttype: b[j].ttype,
  18905. time: b[j].time,
  18906. score: b[j].score,
  18907. img: b[j].img,
  18908. likesCount: likesCount,
  18909. commentCount: commentCount,
  18910. isLikes: isLikes,
  18911. commentJson: commentJson,
  18912. likeJson: likeJson
  18913. };
  18914. _worksStudent[i].push(_works);
  18915. _worksStudent2[i].push(_works);
  18916. this.isWorksS[i].push({
  18917. uid: b[j].userid,
  18918. sName: b[j].name
  18919. });
  18920. } else if (b[j].type == 7 && b[j].atool != 50) {
  18921. let _work = {
  18922. userid: b[j].userid,
  18923. ateacher: b[j].ateacher,
  18924. wid: b[j].id,
  18925. works: b[j].content,
  18926. sName: b[j].name,
  18927. type: 5,
  18928. ttype: b[j].ttype,
  18929. time: b[j].time,
  18930. score: b[j].score,
  18931. img: b[j].img,
  18932. likesCount: likesCount,
  18933. commentCount: commentCount,
  18934. isLikes: isLikes,
  18935. commentJson: commentJson,
  18936. likeJson: likeJson
  18937. };
  18938. _worksStudent[i].push(_work);
  18939. _worksStudent2[i].push(_work);
  18940. this.isWorksS[i].push({
  18941. uid: b[j].userid,
  18942. sName: b[j].name
  18943. });
  18944. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18945. let _works = {
  18946. userid: b[j].userid,
  18947. ateacher: b[j].ateacher,
  18948. wid: b[j].id,
  18949. works: b[j].content,
  18950. sName: b[j].name,
  18951. type: 12,
  18952. ttype: b[j].ttype,
  18953. time: b[j].time,
  18954. score: b[j].score,
  18955. img: b[j].img,
  18956. likesCount: likesCount,
  18957. commentCount: commentCount,
  18958. isLikes: isLikes,
  18959. commentJson: commentJson,
  18960. likeJson: likeJson
  18961. };
  18962. if (this.isGroup) {
  18963. let isGw = 1;
  18964. for (
  18965. var groupI = 0;
  18966. groupI < this.courseGroup.group.length;
  18967. groupI++
  18968. ) {
  18969. let gid = this.courseGroup.group[groupI].id;
  18970. if (
  18971. this.courseGroupStudentUid[gid].indexOf(
  18972. b[j].userid
  18973. ) != -1
  18974. ) {
  18975. isGw = 2;
  18976. this.courseGroup.group[groupI].works[i].push(_works);
  18977. break;
  18978. }
  18979. }
  18980. if (isGw == 1) {
  18981. _worksStudent[i].push(_works);
  18982. }
  18983. } else {
  18984. _worksStudent[i].push(_works);
  18985. }
  18986. _worksStudent2[i].push(_works);
  18987. this.isWorksS[i].push({
  18988. uid: b[j].userid,
  18989. sName: b[j].name
  18990. });
  18991. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18992. let _works = {
  18993. userid: b[j].userid,
  18994. ateacher: b[j].ateacher,
  18995. wid: b[j].id,
  18996. works: b[j].content,
  18997. sName: b[j].name,
  18998. type: 0,
  18999. ttype: b[j].ttype,
  19000. time: b[j].time,
  19001. score: b[j].score,
  19002. img: b[j].img,
  19003. likesCount: likesCount,
  19004. commentCount: commentCount,
  19005. isLikes: isLikes,
  19006. commentJson: commentJson,
  19007. likeJson: likeJson
  19008. };
  19009. if (this.isGroup) {
  19010. let isGw = 1;
  19011. for (
  19012. var groupI = 0;
  19013. groupI < this.courseGroup.group.length;
  19014. groupI++
  19015. ) {
  19016. let gid = this.courseGroup.group[groupI].id;
  19017. if (
  19018. this.courseGroupStudentUid[gid].indexOf(
  19019. b[j].userid
  19020. ) != -1
  19021. ) {
  19022. isGw = 2;
  19023. this.courseGroup.group[groupI].works[i].push(_works);
  19024. break;
  19025. }
  19026. }
  19027. if (isGw == 1) {
  19028. _worksStudent[i].push(_works);
  19029. }
  19030. } else {
  19031. _worksStudent[i].push(_works);
  19032. }
  19033. _worksStudent2[i].push(_works);
  19034. this.isWorksS[i].push({
  19035. uid: b[j].userid,
  19036. sName: b[j].name
  19037. });
  19038. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19039. let _works = {
  19040. userid: b[j].userid,
  19041. ateacher: b[j].ateacher,
  19042. wid: b[j].id,
  19043. works: b[j].content,
  19044. sName: b[j].name,
  19045. type: 0,
  19046. ttype: b[j].ttype,
  19047. time: b[j].time,
  19048. score: b[j].score,
  19049. img: b[j].img,
  19050. likesCount: likesCount,
  19051. commentCount: commentCount,
  19052. isLikes: isLikes,
  19053. commentJson: commentJson,
  19054. likeJson: likeJson
  19055. };
  19056. if (this.isGroup) {
  19057. let isGw = 1;
  19058. for (
  19059. var groupI = 0;
  19060. groupI < this.courseGroup.group.length;
  19061. groupI++
  19062. ) {
  19063. let gid = this.courseGroup.group[groupI].id;
  19064. if (
  19065. this.courseGroupStudentUid[gid].indexOf(
  19066. b[j].userid
  19067. ) != -1
  19068. ) {
  19069. isGw = 2;
  19070. this.courseGroup.group[groupI].works[i].push(_works);
  19071. break;
  19072. }
  19073. }
  19074. if (isGw == 1) {
  19075. _worksStudent[i].push(_works);
  19076. }
  19077. } else {
  19078. _worksStudent[i].push(_works);
  19079. }
  19080. _worksStudent2[i].push(_works);
  19081. this.isWorksS[i].push({
  19082. uid: b[j].userid,
  19083. sName: b[j].name
  19084. });
  19085. }
  19086. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19087. let _works = {
  19088. userid: b[j].userid,
  19089. ateacher: b[j].ateacher,
  19090. wid: b[j].id,
  19091. works: b[j].content,
  19092. sName: b[j].name,
  19093. type: 2,
  19094. ttype: b[j].ttype,
  19095. time: b[j].time,
  19096. score: b[j].score,
  19097. img: b[j].img,
  19098. likesCount: likesCount,
  19099. commentCount: commentCount,
  19100. isLikes: isLikes,
  19101. commentJson: commentJson,
  19102. likeJson: likeJson
  19103. };
  19104. if (this.isGroup) {
  19105. let isGw = 1;
  19106. for (
  19107. var groupI = 0;
  19108. groupI < this.courseGroup.group.length;
  19109. groupI++
  19110. ) {
  19111. let gid = this.courseGroup.group[groupI].id;
  19112. if (
  19113. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19114. -1
  19115. ) {
  19116. isGw = 2;
  19117. this.courseGroup.group[groupI].works[i].push(_works);
  19118. break;
  19119. }
  19120. }
  19121. if (isGw == 1) {
  19122. _worksStudent[i].push(_works);
  19123. }
  19124. } else {
  19125. _worksStudent[i].push(_works);
  19126. }
  19127. _worksStudent2[i].push(_works);
  19128. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19129. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19130. let _works = {
  19131. userid: b[j].userid,
  19132. ateacher: b[j].ateacher,
  19133. wid: b[j].id,
  19134. works: b[j].content,
  19135. sName: b[j].name,
  19136. type: 20,
  19137. ttype: b[j].ttype,
  19138. time: b[j].time,
  19139. score: b[j].score,
  19140. img: b[j].img,
  19141. likesCount: likesCount,
  19142. commentCount: commentCount,
  19143. isLikes: isLikes,
  19144. commentJson: commentJson,
  19145. likeJson: likeJson
  19146. };
  19147. if (this.isGroup) {
  19148. let isGw = 1;
  19149. for (
  19150. var groupI = 0;
  19151. groupI < this.courseGroup.group.length;
  19152. groupI++
  19153. ) {
  19154. let gid = this.courseGroup.group[groupI].id;
  19155. if (
  19156. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19157. -1
  19158. ) {
  19159. isGw = 2;
  19160. this.courseGroup.group[groupI].works[i].push(_works);
  19161. break;
  19162. }
  19163. }
  19164. if (isGw == 1) {
  19165. _worksStudent[i].push(_works);
  19166. }
  19167. } else {
  19168. _worksStudent[i].push(_works);
  19169. }
  19170. _worksStudent2[i].push(_works);
  19171. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19172. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19173. //问卷
  19174. let _work = {
  19175. userid: b[j].userid,
  19176. ateacher: b[j].ateacher,
  19177. wid: b[j].id,
  19178. works: b[j].content,
  19179. sName: b[j].name,
  19180. type: 2,
  19181. ttype: b[j].ttype,
  19182. time: b[j].time,
  19183. score: b[j].score,
  19184. img: b[j].img,
  19185. likesCount: likesCount,
  19186. commentCount: commentCount,
  19187. isLikes: isLikes,
  19188. commentJson: commentJson,
  19189. likeJson: likeJson
  19190. };
  19191. _worksStudent[i].push(_work);
  19192. _worksStudent2[i].push(_work);
  19193. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19194. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19195. //选择题
  19196. let _work = {
  19197. userid: b[j].userid,
  19198. ateacher: b[j].ateacher,
  19199. wid: b[j].id,
  19200. works: b[j].content,
  19201. sName: b[j].name,
  19202. type: 8,
  19203. ttype: b[j].ttype,
  19204. time: b[j].time,
  19205. score: b[j].score,
  19206. img: b[j].img,
  19207. likesCount: likesCount,
  19208. commentCount: commentCount,
  19209. isLikes: isLikes,
  19210. commentJson: commentJson,
  19211. likeJson: likeJson
  19212. };
  19213. _worksStudent[i].push(_work);
  19214. _worksStudent2[i].push(_work);
  19215. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19216. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19217. //选择题
  19218. let _work = {
  19219. userid: b[j].userid,
  19220. ateacher: b[j].ateacher,
  19221. wid: b[j].id,
  19222. works: b[j].content,
  19223. sName: b[j].name,
  19224. type: 9,
  19225. ttype: b[j].ttype,
  19226. time: b[j].time,
  19227. score: b[j].score,
  19228. img: b[j].img,
  19229. likesCount: likesCount,
  19230. commentCount: commentCount,
  19231. isLikes: isLikes,
  19232. commentJson: commentJson,
  19233. likeJson: likeJson
  19234. };
  19235. _worksStudent[i].push(_work);
  19236. _worksStudent2[i].push(_work);
  19237. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19238. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19239. //选择题
  19240. let _work = {
  19241. userid: b[j].userid,
  19242. ateacher: b[j].ateacher,
  19243. wid: b[j].id,
  19244. works: b[j].content,
  19245. sName: b[j].name,
  19246. type: 10,
  19247. ttype: b[j].ttype,
  19248. time: b[j].time,
  19249. score: b[j].score,
  19250. img: b[j].img,
  19251. likesCount: likesCount,
  19252. commentCount: commentCount,
  19253. isLikes: isLikes,
  19254. commentJson: commentJson,
  19255. likeJson: likeJson
  19256. };
  19257. _worksStudent[i].push(_work);
  19258. _worksStudent2[i].push(_work);
  19259. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19260. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19261. //选择题
  19262. let _work = {
  19263. userid: b[j].userid,
  19264. ateacher: b[j].ateacher,
  19265. wid: b[j].id,
  19266. works: b[j].content,
  19267. sName: b[j].name,
  19268. type: 13,
  19269. ttype: b[j].ttype,
  19270. time: b[j].time,
  19271. score: b[j].score,
  19272. img: b[j].img,
  19273. likesCount: likesCount,
  19274. commentCount: commentCount,
  19275. isLikes: isLikes,
  19276. commentJson: commentJson,
  19277. likeJson: likeJson
  19278. };
  19279. _worksStudent[i].push(_work);
  19280. _worksStudent2[i].push(_work);
  19281. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19282. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19283. //选择题
  19284. let _work = {
  19285. userid: b[j].userid,
  19286. ateacher: b[j].ateacher,
  19287. wid: b[j].id,
  19288. works: b[j].content,
  19289. sName: b[j].name,
  19290. type: 16,
  19291. ttype: b[j].ttype,
  19292. time: b[j].time,
  19293. score: b[j].score,
  19294. img: b[j].img,
  19295. likesCount: likesCount,
  19296. commentCount: commentCount,
  19297. isLikes: isLikes,
  19298. commentJson: commentJson,
  19299. aiCode: b[j].aiCode,
  19300. teacherCode: b[j].teacherCode,
  19301. likeJson: likeJson
  19302. };
  19303. _worksStudent[i].push(_work);
  19304. _worksStudent2[i].push(_work);
  19305. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19306. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19307. //选择题
  19308. let _work = {
  19309. userid: b[j].userid,
  19310. ateacher: b[j].ateacher,
  19311. wid: b[j].id,
  19312. works: b[j].content,
  19313. sName: b[j].name,
  19314. type: 17,
  19315. ttype: b[j].ttype,
  19316. time: b[j].time,
  19317. score: b[j].score,
  19318. img: b[j].img,
  19319. likesCount: likesCount,
  19320. commentCount: commentCount,
  19321. isLikes: isLikes,
  19322. commentJson: commentJson,
  19323. likeJson: likeJson
  19324. };
  19325. _worksStudent[i].push(_work);
  19326. _worksStudent2[i].push(_work);
  19327. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19328. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19329. //交互视频
  19330. let _work = {
  19331. userid: b[j].userid,
  19332. ateacher: b[j].ateacher,
  19333. wid: b[j].id,
  19334. works: b[j].content,
  19335. sName: b[j].name,
  19336. type: 14,
  19337. ttype: b[j].ttype,
  19338. time: b[j].time,
  19339. score: b[j].score,
  19340. img: b[j].img,
  19341. likesCount: likesCount,
  19342. commentCount: commentCount,
  19343. isLikes: isLikes,
  19344. commentJson: commentJson,
  19345. likeJson: likeJson
  19346. };
  19347. _worksStudent[i].push(_work);
  19348. _worksStudent2[i].push(_work);
  19349. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19350. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19351. let _gindex = JSON.parse(b[j].content);
  19352. if (
  19353. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19354. b[j].userid
  19355. ) != -1
  19356. ) {
  19357. let _work = {
  19358. userid: b[j].userid,
  19359. ateacher: b[j].ateacher,
  19360. wid: b[j].id,
  19361. works: _gindex.url,
  19362. sName: b[j].name,
  19363. type: _gindex.type,
  19364. ttype: b[j].ttype,
  19365. time: b[j].time,
  19366. score: b[j].score,
  19367. img: b[j].img,
  19368. likesCount: likesCount,
  19369. commentCount: commentCount,
  19370. isLikes: isLikes,
  19371. commentJson: commentJson,
  19372. likeJson: likeJson
  19373. };
  19374. _worksStudent[i][_gindex.groupIndex].push(_work);
  19375. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19376. }
  19377. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19378. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19379. let _work = {
  19380. userid: b[j].userid,
  19381. ateacher: b[j].ateacher,
  19382. wid: b[j].id,
  19383. works: b[j].content,
  19384. sName: b[j].name ? b[j].name : b[j].userid,
  19385. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19386. ttype: b[j].ttype,
  19387. time: b[j].time,
  19388. score: b[j].score,
  19389. img: b[j].img,
  19390. likesCount: likesCount,
  19391. commentCount: commentCount,
  19392. isLikes: isLikes,
  19393. commentJson: commentJson,
  19394. likeJson: likeJson
  19395. };
  19396. _worksStudent[i].push(_work);
  19397. _worksStudent2[i].push(_work);
  19398. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19399. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  19400. let _work = {
  19401. userid: b[j].userid,
  19402. ateacher: b[j].ateacher,
  19403. wid: b[j].id,
  19404. works: b[j].content,
  19405. sName: b[j].name ? b[j].name : b[j].userid,
  19406. type: 12,
  19407. ttype: b[j].ttype,
  19408. time: b[j].time,
  19409. score: b[j].score,
  19410. img: b[j].img,
  19411. likesCount: likesCount,
  19412. commentCount: commentCount,
  19413. isLikes: isLikes,
  19414. commentJson: commentJson,
  19415. likeJson: likeJson
  19416. };
  19417. _worksStudent[i].push(_work);
  19418. _worksStudent2[i].push(_work);
  19419. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19420. } else if (
  19421. a[i].tool[0] == 57 &&
  19422. b[j].atool == 57 &&
  19423. b[j].type == 12
  19424. ) {
  19425. let _work = {
  19426. userid: b[j].userid,
  19427. ateacher: b[j].ateacher,
  19428. wid: b[j].id,
  19429. works: b[j].content,
  19430. sName: b[j].name ? b[j].name : b[j].userid,
  19431. type: 12,
  19432. ttype: b[j].ttype,
  19433. time: b[j].time,
  19434. score: b[j].score,
  19435. img: b[j].img,
  19436. likesCount: likesCount,
  19437. commentCount: commentCount,
  19438. isLikes: isLikes,
  19439. commentJson: commentJson,
  19440. likeJson: likeJson
  19441. };
  19442. _worksStudent[i].push(_work);
  19443. _worksStudent2[i].push(_work);
  19444. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19445. } else if (
  19446. a[i].tool[0] == 57 &&
  19447. b[j].atool == 57 &&
  19448. b[j].type == 15
  19449. ) {
  19450. let _work = {
  19451. userid: b[j].userid,
  19452. ateacher: b[j].ateacher,
  19453. wid: b[j].id,
  19454. works: b[j].content,
  19455. sName: b[j].name ? b[j].name : b[j].userid,
  19456. type: 15,
  19457. ttype: b[j].ttype,
  19458. time: b[j].time,
  19459. score: b[j].score,
  19460. img: b[j].img,
  19461. likesCount: likesCount,
  19462. commentCount: commentCount,
  19463. isLikes: isLikes,
  19464. commentJson: commentJson,
  19465. likeJson: likeJson
  19466. };
  19467. _worksStudent[i].push(_work);
  19468. _worksStudent2[i].push(_work);
  19469. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19470. }
  19471. }
  19472. }
  19473. if (_worksStudent[i] && _worksStudent[i].length) {
  19474. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  19475. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19476. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19477. var scoreA = parseFloat(jscoreA);
  19478. var scoreB = parseFloat(jscoreB);
  19479. if (scoreA == scoreB) {
  19480. return b.likesCount - a.likesCount;
  19481. }
  19482. return scoreB - scoreA;
  19483. });
  19484. if (this.isGroup) {
  19485. for (
  19486. var groupI = 0;
  19487. groupI < this.courseGroup.group.length;
  19488. groupI++
  19489. ) {
  19490. this.courseGroup.group[groupI].works[
  19491. i
  19492. ] = this.courseGroup.group[groupI].works[i].sort(function(
  19493. a,
  19494. b
  19495. ) {
  19496. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  19497. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  19498. var scoreA = parseFloat(jscoreA);
  19499. var scoreB = parseFloat(jscoreB);
  19500. if (scoreA == scoreB) {
  19501. return b.likesCount - a.likesCount;
  19502. }
  19503. return scoreB - scoreA;
  19504. });
  19505. }
  19506. }
  19507. }
  19508. }
  19509. this.timeWorkList = _worksStudent2;
  19510. for (var i = 0; i < a.length; i++) {
  19511. for (var j = 0; j < b.length; j++) {
  19512. var data = b[j];
  19513. if (i == b[j].tool) {
  19514. if (data.type == 2 || data.type == 8) {
  19515. for (var z = 0; z < this.checkJson[i].length; z++) {
  19516. this.checkJson[i][z].checkPerent = [];
  19517. this.checkJson[i][z].right = Math.round(
  19518. (this.checkJson[i][z].rightPerson.length /
  19519. parseInt(_worksStudent[i].length)) *
  19520. 100
  19521. );
  19522. let aaaa = this.checkJson[i][z];
  19523. for (
  19524. var k = 0;
  19525. k < this.checkJson[i][z].checkCount.length;
  19526. k++
  19527. ) {
  19528. this.checkJson[i][z].checkPerent.push(
  19529. Math.round(
  19530. (this.checkJson[i][z].checkCount[k] /
  19531. parseInt(_worksStudent[i].length)) *
  19532. 100
  19533. )
  19534. );
  19535. }
  19536. }
  19537. } else if (data.type == 9) {
  19538. for (var z = 0; z < this.checkJson[i].length; z++) {
  19539. this.checkJson[i][z].checkPerent = [];
  19540. this.checkJson[i][z].right = Math.round(
  19541. (this.checkJson[i][z].rightPerson.length /
  19542. this.checkJson[i][z].checkPerson.length) *
  19543. 100
  19544. );
  19545. }
  19546. }
  19547. }
  19548. }
  19549. }
  19550. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  19551. this.joinGroup(gindex);
  19552. }
  19553. this.worksStudent = _worksStudent;
  19554. if (
  19555. JSON.stringify(this.worksStudentCopy) !=
  19556. JSON.stringify(this.worksStudent)
  19557. ) {
  19558. console.log("88888999999");
  19559. this.worksStudentCopy = this.worksStudent;
  19560. this.AIloading = [];
  19561. this.loopLoading = [];
  19562. this.worksStudent.forEach((e, index) => {
  19563. this.loopLoading.push({ loading: false });
  19564. this.AIloading.push([]);
  19565. e.forEach(k => {
  19566. this.AIloading[index].push({ loading: false, sco: 0 });
  19567. });
  19568. });
  19569. this.refreshAssembly();
  19570. }
  19571. this.selectWorksStudent();
  19572. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  19573. this.$nextTick(() => {
  19574. setTimeout(() => {
  19575. setTimeout(() => {
  19576. this.panToolHeight("tool-" + ci);
  19577. }, 500);
  19578. }, 0);
  19579. });
  19580. }
  19581. })
  19582. .catch(err => {
  19583. console.error(err);
  19584. });
  19585. },
  19586. pngToWhiteBg(file) {
  19587. const _file = file;
  19588. let read = new FileReader();
  19589. read.readAsDataURL(file); // 文件转base64
  19590. return new Promise((resolve, reject) => {
  19591. read.onload = (e) => {
  19592. let img = new Image();
  19593. img.src = e.target.result;
  19594. img.onload = async () => {
  19595. // 生成canvas
  19596. let canvas = document.createElement("canvas");
  19597. let context = canvas.getContext("2d");
  19598. // 绘制图片到canvas上
  19599. canvas.width = img.width;
  19600. canvas.height = img.height;
  19601. // 在canvas绘制前填充白色背景
  19602. context.fillStyle = "#fff";
  19603. context.fillRect(0, 0, canvas.width, canvas.height);
  19604. context.drawImage(img, 0, 0);
  19605. let base64 = canvas.toDataURL(file["type"], 1);
  19606. let newFile = this.dataUrlToFile(base64, _file);
  19607. resolve(newFile);
  19608. };
  19609. };
  19610. });
  19611. },
  19612. dataUrlToFile(dataurl, file) {
  19613. let arr = dataurl.split(","),
  19614. mime = arr[0].match(/:(.*?);/)[1],
  19615. bstr = atob(arr[1]),
  19616. n = bstr.length,
  19617. u8arr = new Uint8Array(n);
  19618. while (n--) {
  19619. u8arr[n] = bstr.charCodeAt(n);
  19620. }
  19621. // return new Blob([u8arr], { type: mime });
  19622. return new File([new Blob([u8arr], { type: mime })], file.name, {
  19623. type: mime,
  19624. });
  19625. },
  19626. async beforeUpload1(event, type, i) {
  19627. // this.$message.success('进入上传')
  19628. var file = "";
  19629. if (type == 5) {
  19630. file = event;
  19631. } else {
  19632. file = event.target.files[0];
  19633. }
  19634. var credentials = {
  19635. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19636. secretAccessKey: "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",
  19637. }; //秘钥形式的登录上传
  19638. window.AWS.config.update(credentials);
  19639. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19640. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19641. var _this = this;
  19642. _this.progress = 0;
  19643. _this.proVisible = true;
  19644. _this.isFinishSize = 0;
  19645. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  19646. var b = [
  19647. "DOC",
  19648. "DOCX",
  19649. "DOCM",
  19650. "DOTM",
  19651. "DOTX",
  19652. "PPTX",
  19653. "PPSX",
  19654. "PPT",
  19655. "PPS",
  19656. "PPTM",
  19657. "POTM",
  19658. "PPAM",
  19659. "POTX",
  19660. "PPSM",
  19661. ];
  19662. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19663. var photoA = [
  19664. "BMP",
  19665. "GIF",
  19666. "PNG",
  19667. "JPEG",
  19668. "JPEG",
  19669. "JPG",
  19670. "TIF",
  19671. "PCX",
  19672. "TGA",
  19673. "EXIF",
  19674. "FPX",
  19675. "SVG",
  19676. "APNG",
  19677. ];
  19678. // if (
  19679. // b.indexOf(
  19680. // file.name
  19681. // .split(".")
  19682. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19683. // ) != -1
  19684. // ) {
  19685. // if (file.size / 1024 / 1024 > 10) {
  19686. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  19687. // return;
  19688. // }
  19689. // } else if (
  19690. // excelA.indexOf(
  19691. // file.name
  19692. // .split(".")
  19693. // [file.name.split(".").length - 1].toLocaleUpperCase()
  19694. // ) != "-1"
  19695. // ) {
  19696. // if (file.size / 1024 / 1024 > 5) {
  19697. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  19698. // return;
  19699. // }
  19700. // }
  19701. if (
  19702. photoA.indexOf(
  19703. file.name
  19704. .split(".")
  19705. [file.name.split(".").length - 1].toLocaleUpperCase()
  19706. ) != -1 &&
  19707. type != 4
  19708. ) {
  19709. // const blob = await imageConversion.compress(file, 0.8)
  19710. file = await this.pngToWhiteBg(file);
  19711. const blob = await imageConversion.compressAccurately(file, 256);
  19712. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19713. file = new File([blob], file.name, { type: file.type });
  19714. }
  19715. if (file) {
  19716. var params = {
  19717. Key:
  19718. file.name.split(".")[0] +
  19719. new Date().getTime() +
  19720. "." +
  19721. file.name.split(".")[file.name.split(".").length - 1],
  19722. ContentType: file.type,
  19723. Body: file,
  19724. "Access-Control-Allow-Credentials": "*",
  19725. ACL: "public-read",
  19726. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19727. var options = {
  19728. // partSize: 2048 * 1024 * 1024,
  19729. partSize: 1024 * 1024 * 1024,
  19730. queueSize: 2,
  19731. leavePartsOnError: true,
  19732. };
  19733. bucket
  19734. .upload(params, options)
  19735. .on("httpUploadProgress", function (evt) {
  19736. //这里可以写进度条
  19737. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19738. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  19739. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  19740. })
  19741. .send(function (err, data) {
  19742. _this.progress = 100;
  19743. _this.isFinishSize = _this.isAllSize;
  19744. setTimeout(() => {
  19745. _this.proVisible = false;
  19746. }, 1000);
  19747. if (err) {
  19748. var a = _this.$refs.upload1.uploadFiles;
  19749. a.splice(a.length - 1, a.length);
  19750. _this.$message.error("上传失败");
  19751. } else {
  19752. // _this.$message.success('上传成功')
  19753. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19754. var c = [
  19755. "AVI",
  19756. "NAVI",
  19757. "MPEG",
  19758. "ASF",
  19759. "MOV",
  19760. "WMV",
  19761. "3GP",
  19762. "RM",
  19763. "RMVB",
  19764. "FLV",
  19765. "F4V",
  19766. "H.264",
  19767. "H.265",
  19768. "REAL VIDEO",
  19769. "MKV",
  19770. "WebM",
  19771. "HDDVD",
  19772. "MP4",
  19773. "MPG",
  19774. "M4V",
  19775. "MGV",
  19776. "OGV",
  19777. "QTM",
  19778. "STR",
  19779. "AMC",
  19780. "DVX",
  19781. "EVO",
  19782. "DAT",
  19783. "OGG",
  19784. "OGM",
  19785. ];
  19786. if (type == 1) {
  19787. _this.studyJuri[0].cover.push({
  19788. name: file.name,
  19789. url: data.Location,
  19790. uid: file.uid,
  19791. });
  19792. if (
  19793. c.indexOf(
  19794. _this.studyJuri[0].cover[0].url
  19795. .split(".")
  19796. [
  19797. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19798. ].toLocaleUpperCase()
  19799. ) != -1
  19800. ) {
  19801. _this.fileType = 2;
  19802. } else if (
  19803. b.indexOf(
  19804. _this.studyJuri[0].cover[0].url
  19805. .split(".")
  19806. [
  19807. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19808. ].toLocaleUpperCase()
  19809. ) != -1
  19810. ) {
  19811. _this.fileType = 1;
  19812. } else if (
  19813. photoA.indexOf(
  19814. _this.studyJuri[0].cover[0].url
  19815. .split(".")
  19816. [
  19817. _this.studyJuri[0].cover[0].url.split(".").length - 1
  19818. ].toLocaleUpperCase()
  19819. ) != -1
  19820. ) {
  19821. _this.fileType = 0;
  19822. } else {
  19823. _this.fileType = 3;
  19824. }
  19825. _this.imgChange(null, null, type);
  19826. } else if (type == 2) {
  19827. _this.upToolImg = data.Location;
  19828. _this.imgChange(null, null, type);
  19829. _this.addCourseWorks(i);
  19830. } else if (type == 4) {
  19831. _this.addPz("3", data.Location);
  19832. } else if (type == 5) {
  19833. _this.addImgDrawImG(data.Location);
  19834. } else if (type == 6) {
  19835. var _ftype = 1;
  19836. if (
  19837. c.indexOf(
  19838. data.Location.split(".")[
  19839. data.Location.split(".").length - 1
  19840. ].toLocaleUpperCase()
  19841. ) != -1
  19842. ) {
  19843. _ftype = 5;
  19844. } else if (
  19845. b.indexOf(
  19846. data.Location.split(".")[
  19847. data.Location.split(".").length - 1
  19848. ].toLocaleUpperCase()
  19849. ) != -1
  19850. ) {
  19851. _ftype = 4;
  19852. } else {
  19853. _ftype = 1;
  19854. }
  19855. _this.plworkFile.push({
  19856. name: file.name,
  19857. url: data.Location,
  19858. uid: file.uid,
  19859. fileType: _ftype,
  19860. username:
  19861. _this.plworkFile.length > 10
  19862. ? _this.plworkFile.length + 1
  19863. : "0" + (_this.plworkFile.length + 1),
  19864. });
  19865. } else if (type == 7) {
  19866. _this.addCourseWorksGong(i, data.Location, 32);
  19867. } else if (type == 8) {
  19868. _this.addCourseWorksGong(i, data.Location, 57);
  19869. }
  19870. _this.imgChange(null, null, type);
  19871. console.log(data.Location);
  19872. // _this.$message.success('上传成功'+data.Location)
  19873. }
  19874. });
  19875. }
  19876. },
  19877. async beforeUpload3(event, type, i) {
  19878. // this.$message.success('进入上传')
  19879. let file = "";
  19880. let cfindex2 = 0;
  19881. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  19882. file = event.target.files[cfindex];
  19883. var credentials = {
  19884. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  19885. secretAccessKey: "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",
  19886. }; //秘钥形式的登录上传
  19887. window.AWS.config.update(credentials);
  19888. window.AWS.config.region = "cn-northwest-1"; //设置区域
  19889. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  19890. var _this = this;
  19891. // _this.progress = 0;
  19892. _this.proVisible2 = true;
  19893. var b = [
  19894. "DOC",
  19895. "DOCX",
  19896. "DOCM",
  19897. "DOTM",
  19898. "DOTX",
  19899. "PPTX",
  19900. "PPSX",
  19901. "PPT",
  19902. "PPS",
  19903. "PPTM",
  19904. "POTM",
  19905. "PPAM",
  19906. "POTX",
  19907. "PPSM",
  19908. ];
  19909. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  19910. var photoA = [
  19911. "BMP",
  19912. "GIF",
  19913. "PNG",
  19914. "JPEG",
  19915. "JPG",
  19916. "TIF",
  19917. "PCX",
  19918. "TGA",
  19919. "EXIF",
  19920. "FPX",
  19921. "SVG",
  19922. "APNG",
  19923. ];
  19924. if (
  19925. photoA.indexOf(
  19926. file.name
  19927. .split(".")
  19928. [file.name.split(".").length - 1].toLocaleUpperCase()
  19929. ) != -1 &&
  19930. type != 4
  19931. ) {
  19932. // const blob = await imageConversion.compress(file, 0.8)
  19933. file = await this.pngToWhiteBg(file);
  19934. const blob = await imageConversion.compressAccurately(file, 256);
  19935. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  19936. file = new File([blob], file.name, { type: file.type });
  19937. }
  19938. if (file) {
  19939. var params = {
  19940. Key:
  19941. file.name.split(".")[0] +
  19942. new Date().getTime() +
  19943. "." +
  19944. file.name.split(".")[file.name.split(".").length - 1],
  19945. ContentType: file.type,
  19946. Body: file,
  19947. "Access-Control-Allow-Credentials": "*",
  19948. ACL: "public-read",
  19949. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  19950. var options = {
  19951. // partSize: 2048 * 1024 * 1024,
  19952. partSize: 1024 * 1024 * 1024,
  19953. queueSize: 2,
  19954. leavePartsOnError: true,
  19955. };
  19956. bucket
  19957. .upload(params, options)
  19958. .on("httpUploadProgress", function (evt) {
  19959. //这里可以写进度条
  19960. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  19961. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  19962. })
  19963. .send(function (err, data) {
  19964. // _this.progress = 100;
  19965. cfindex2++;
  19966. setTimeout(() => {
  19967. if (
  19968. cfindex2 == event.target.files.length - 1 ||
  19969. cfindex2 > event.target.files.length - 1
  19970. ) {
  19971. _this.proVisible2 = false;
  19972. }
  19973. }, 1000);
  19974. if (err) {
  19975. var a = _this.$refs.upload1.uploadFiles;
  19976. a.splice(a.length - 1, a.length);
  19977. _this.$message.error("上传失败");
  19978. } else {
  19979. // _this.$message.success('上传成功')
  19980. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19981. var c = [
  19982. "AVI",
  19983. "NAVI",
  19984. "MPEG",
  19985. "ASF",
  19986. "MOV",
  19987. "WMV",
  19988. "3GP",
  19989. "RM",
  19990. "RMVB",
  19991. "FLV",
  19992. "F4V",
  19993. "H.264",
  19994. "H.265",
  19995. "REAL VIDEO",
  19996. "MKV",
  19997. "WebM",
  19998. "HDDVD",
  19999. "MP4",
  20000. "MPG",
  20001. "M4V",
  20002. "MGV",
  20003. "OGV",
  20004. "QTM",
  20005. "STR",
  20006. "AMC",
  20007. "DVX",
  20008. "EVO",
  20009. "DAT",
  20010. "OGG",
  20011. "OGM",
  20012. ];
  20013. if (type == 1) {
  20014. _this.studyJuri[0].cover.push({
  20015. name: file.name,
  20016. url: data.Location,
  20017. uid: file.uid,
  20018. });
  20019. if (
  20020. c.indexOf(
  20021. _this.studyJuri[0].cover[0].url
  20022. .split(".")
  20023. [
  20024. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20025. ].toLocaleUpperCase()
  20026. ) != -1
  20027. ) {
  20028. _this.fileType = 2;
  20029. } else if (
  20030. b.indexOf(
  20031. _this.studyJuri[0].cover[0].url
  20032. .split(".")
  20033. [
  20034. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20035. ].toLocaleUpperCase()
  20036. ) != -1
  20037. ) {
  20038. _this.fileType = 1;
  20039. } else {
  20040. _this.fileType = 0;
  20041. }
  20042. _this.imgChange(null, null, type);
  20043. } else if (type == 2) {
  20044. _this.upToolImg = data.Location;
  20045. _this.imgChange(null, null, type);
  20046. _this.addCourseWorks(i);
  20047. } else if (type == 4) {
  20048. _this.addPz("3", data.Location);
  20049. } else if (type == 5) {
  20050. _this.addImgDrawImG(data.Location);
  20051. } else if (type == 6) {
  20052. var _ftype = 1;
  20053. if (
  20054. c.indexOf(
  20055. data.Location.split(".")[
  20056. data.Location.split(".").length - 1
  20057. ].toLocaleUpperCase()
  20058. ) != -1
  20059. ) {
  20060. _ftype = 5;
  20061. } else if (
  20062. b.indexOf(
  20063. data.Location.split(".")[
  20064. data.Location.split(".").length - 1
  20065. ].toLocaleUpperCase()
  20066. ) != -1
  20067. ) {
  20068. _ftype = 4;
  20069. } else {
  20070. _ftype = 1;
  20071. }
  20072. _this.plworkFile.push({
  20073. name: file.name,
  20074. url: data.Location,
  20075. uid: file.uid,
  20076. fileType: _ftype,
  20077. username:
  20078. _this.plworkFile.length + 1 > 9
  20079. ? _this.plworkFile.length + 1
  20080. : "0" + (_this.plworkFile.length + 1),
  20081. });
  20082. }
  20083. _this.imgChange(null, null, type);
  20084. console.log(data.Location);
  20085. // _this.$message.success('上传成功'+data.Location)
  20086. }
  20087. });
  20088. }
  20089. }
  20090. },
  20091. beforeUpload2(event, type) {
  20092. var file = event.target.files[0];
  20093. var credentials = {
  20094. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20095. secretAccessKey: "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",
  20096. }; //秘钥形式的登录上传
  20097. window.AWS.config.update(credentials);
  20098. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20099. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20100. var _this = this;
  20101. _this.progress = 0;
  20102. _this.proVisible = true;
  20103. if (file) {
  20104. var params = {
  20105. Key:
  20106. file.name.split(".")[0] +
  20107. new Date().getTime() +
  20108. "." +
  20109. file.name.split(".")[file.name.split(".").length - 1],
  20110. ContentType: file.type,
  20111. Body: file,
  20112. "Access-Control-Allow-Credentials": "*",
  20113. ACL: "public-read",
  20114. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20115. var options = {
  20116. partSize: 2048 * 1024 * 1024,
  20117. queueSize: 2,
  20118. leavePartsOnError: true,
  20119. };
  20120. bucket
  20121. .upload(params, options)
  20122. .on("httpUploadProgress", function (evt) {
  20123. //这里可以写进度条
  20124. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20125. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20126. })
  20127. .send(function (err, data) {
  20128. _this.progress = 100;
  20129. setTimeout(() => {
  20130. _this.proVisible = false;
  20131. }, 1000);
  20132. if (err) {
  20133. var a = _this.$refs.upload1.uploadFiles;
  20134. a.splice(a.length - 1, a.length);
  20135. _this.$message.error("上传失败");
  20136. } else {
  20137. if (type == 2) {
  20138. _this.studyJuri[0].upVedio.push({
  20139. name: file.name,
  20140. url: data.Location,
  20141. uid: file.uid,
  20142. });
  20143. _this.imgChange(null, null, type);
  20144. } else if (type == 3) {
  20145. _this.studyJuri[0].upFile.push({
  20146. name: file.name,
  20147. url: data.Location,
  20148. uid: file.uid,
  20149. });
  20150. _this.imgChange(null, null, type);
  20151. }
  20152. console.log(data.Location);
  20153. }
  20154. });
  20155. }
  20156. },
  20157. allScrell() {
  20158. window.parent.postMessage({ allScreen: this.screenType }, "*");
  20159. },
  20160. nextOrpreSteps(t) {
  20161. if (this.IsFollow && this.tType == 2) {
  20162. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20163. return;
  20164. }
  20165. var b = this.chapInfoList.length - 1;
  20166. if (t == 0) {
  20167. if (this.courseType == 0) {
  20168. if (this.taskCount == 0) {
  20169. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20170. if (this.IsLookOpen) {
  20171. if (
  20172. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20173. ) {
  20174. if (
  20175. this.courseDetail.userid != this.userid &&
  20176. (!this.courseDetail.course_teacher ||
  20177. (this.courseDetail.course_teacher &&
  20178. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20179. ) {
  20180. this.$message.error("任务未解锁");
  20181. } else {
  20182. this.$message.error("上一任务未解锁");
  20183. }
  20184. return;
  20185. }
  20186. }
  20187. this.navList[this.courseType].isOpen = false;
  20188. this.courseType = b;
  20189. this.taskCount =
  20190. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20191. .length - 1;
  20192. this.navList[this.courseType].isOpen = true;
  20193. } else {
  20194. this.taskCount--;
  20195. }
  20196. } else {
  20197. if (this.taskCount == 0) {
  20198. this.navList[this.courseType].isOpen = false;
  20199. this.courseType--;
  20200. this.taskCount =
  20201. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20202. .length - 1;
  20203. this.navList[this.courseType].isOpen = true;
  20204. } else {
  20205. this.taskCount--;
  20206. }
  20207. }
  20208. } else {
  20209. if (this.courseType == b) {
  20210. if (
  20211. this.taskCount ==
  20212. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20213. 1
  20214. ) {
  20215. this.navList[this.courseType].isOpen = false;
  20216. this.courseType = 0;
  20217. this.taskCount = 0;
  20218. this.navList[this.courseType].isOpen = true;
  20219. } else {
  20220. var bbb = parseInt(this.taskCount) + 1;
  20221. if (
  20222. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20223. .isLook &&
  20224. this.courseDetail.userid != this.userid &&
  20225. (!this.courseDetail.course_teacher ||
  20226. (this.courseDetail.course_teacher &&
  20227. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20228. this.IsLookOpen
  20229. ) {
  20230. this.$message.error("任务未解锁");
  20231. return;
  20232. }
  20233. this.taskCount++;
  20234. if (this.IsLookOpen) {
  20235. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20236. this.taskCount
  20237. ].isLook = true;
  20238. this.addCourseState(3);
  20239. }
  20240. }
  20241. } else {
  20242. if (
  20243. this.taskCount ==
  20244. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20245. 1
  20246. ) {
  20247. var bbb = parseInt(this.courseType) + 1;
  20248. if (
  20249. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20250. this.courseDetail.userid != this.userid &&
  20251. (!this.courseDetail.course_teacher ||
  20252. (this.courseDetail.course_teacher &&
  20253. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20254. this.IsLookOpen
  20255. ) {
  20256. this.$message.error("任务未解锁");
  20257. return;
  20258. }
  20259. this.navList[this.courseType].isOpen = false;
  20260. this.courseType++;
  20261. this.taskCount = 0;
  20262. this.navList[this.courseType].isOpen = true;
  20263. } else {
  20264. var bbb = parseInt(this.taskCount) + 1;
  20265. if (
  20266. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20267. .isLook &&
  20268. this.courseDetail.userid != this.userid &&
  20269. (!this.courseDetail.course_teacher ||
  20270. (this.courseDetail.course_teacher &&
  20271. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20272. this.IsLookOpen
  20273. ) {
  20274. this.$message.error("任务未解锁");
  20275. return;
  20276. }
  20277. this.taskCount++;
  20278. }
  20279. if (this.IsLookOpen) {
  20280. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20281. this.taskCount
  20282. ].isLook = true;
  20283. this.addCourseState(3);
  20284. }
  20285. }
  20286. // if (
  20287. // this.taskCount ==
  20288. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20289. // ) {
  20290. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20291. // } else {
  20292. // this.taskCount++;
  20293. // }
  20294. }
  20295. document.scrollingElement.scrollTop = 0;
  20296. // this.showType = 7;
  20297. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20298. // if (this.vedio[this.taskCount].length > 0) {
  20299. // var a =
  20300. // document.getElementsByClassName("box_course")[this.taskCount]
  20301. // .offsetHeight;
  20302. // document.getElementsByClassName("vedioList")[
  20303. // this.taskCount
  20304. // ].style.height = a + "px";
  20305. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20306. // a - 40 + "px";
  20307. // }
  20308. this.isNoHomeWork = false;
  20309. (this.studyJuri = [
  20310. {
  20311. content: "",
  20312. cover: [],
  20313. upVedio: [],
  20314. upFile: [],
  20315. },
  20316. ]),
  20317. (this.radio = []);
  20318. this.isClickNav = "";
  20319. this.selectPz();
  20320. this.getHomeWork();
  20321. this.getCourseDetail(2);
  20322. this.$forceUpdate();
  20323. },
  20324. openTask(s, n, i) {
  20325. if (this.IsFollow && this.tType == 2) {
  20326. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20327. return;
  20328. }
  20329. if (this.IsLookOpen &&
  20330. this.courseDetail.userid != this.userid &&
  20331. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20332. if (
  20333. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20334. this.courseDetail.userid != this.userid &&
  20335. (!this.courseDetail.course_teacher ||
  20336. (this.courseDetail.course_teacher &&
  20337. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20338. ) {
  20339. this.$message.error("任务未解锁");
  20340. return;
  20341. }
  20342. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20343. if (
  20344. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20345. .isLook
  20346. ) {
  20347. this.$message.error("上一任务未解锁");
  20348. return;
  20349. }
  20350. } else if (s > this.courseType) {
  20351. if (n > 0) {
  20352. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20353. this.$message.error("上一任务未解锁");
  20354. return;
  20355. }
  20356. } else {
  20357. if (
  20358. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20359. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20360. ].isLook
  20361. ) {
  20362. this.$message.error("上一任务未解锁");
  20363. return;
  20364. }
  20365. }
  20366. }
  20367. }
  20368. if (this.navList[s].task[n].isOpen == true) {
  20369. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20370. return;
  20371. }
  20372. let flag = this.courseType==s;
  20373. this.courseType = s;
  20374. this.navId = i;
  20375. this.taskCount = n;
  20376. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20377. this.navList[this.courseType].task[this.taskCount].isOpen =
  20378. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20379. if (this.IsLookOpen) {
  20380. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20381. this.taskCount
  20382. ].isLook = true;
  20383. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20384. this.addCourseState(3,yym);
  20385. }
  20386. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20387. this.isCloseList[ci].isClose = 0;
  20388. this.isCloseList[ci].isCloseBoolean = false;
  20389. this.$nextTick(()=>{
  20390. setTimeout(()=>{
  20391. setTimeout(()=>{
  20392. this.panToolHeight('tool-'+ci);
  20393. }, 0)
  20394. }, 0)
  20395. })
  20396. }
  20397. // this.showType = 7;
  20398. this.isNoHomeWork = false;
  20399. (this.studyJuri = [
  20400. {
  20401. content: "",
  20402. cover: [],
  20403. upVedio: [],
  20404. upFile: [],
  20405. },
  20406. ]),
  20407. (this.radio = []);
  20408. document.scrollingElement.scrollTop = 0;
  20409. // setTimeout(() => {
  20410. // let a = document.getElementById(i);
  20411. // if (a.offsetTop - 110 == 0) {
  20412. // window.scrollTo(0, 0);
  20413. // } else {
  20414. // window.scrollTo(0, a.offsetTop);
  20415. // }
  20416. // }, 0);
  20417. for (var z = 0; z < this.navList.length; z++) {
  20418. for (var q = 0; q < this.navList[z].task.length; q++) {
  20419. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  20420. this.navList[z].task[q].tool[w].isTool = false;
  20421. }
  20422. }
  20423. }
  20424. this.selectPz();
  20425. this.getHomeWork();
  20426. this.getCourseDetail(2);
  20427. if(flag){
  20428. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  20429. }else{
  20430. 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>`)
  20431. }
  20432. },
  20433. get(i) {
  20434. if (this.IsFollow && this.tType == 2) {
  20435. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20436. return;
  20437. }
  20438. // for(var k=0;k<this.navList.length;k++){
  20439. // this.navList[k].isOpen = false;
  20440. // }
  20441. // this.navList[i].isOpen = true;
  20442. this.navList[i].isOpen = !this.navList[i].isOpen;
  20443. if (this.navList[i].isOpen) {
  20444. this.openTask(i, 0, i + "-0");
  20445. }
  20446. },
  20447. addQuestion() {
  20448. this.answerList.push({
  20449. answerTitle: this.answerQ,
  20450. answer: this.questionAnswer,
  20451. });
  20452. let params = [
  20453. {
  20454. uid: this.userid,
  20455. cid: this.id,
  20456. stage: this.courseType,
  20457. task: this.taskCount,
  20458. tool: this.toolindex,
  20459. content: JSON.stringify(this.answerList),
  20460. type: 3,
  20461. },
  20462. ];
  20463. this.ajax
  20464. .post(this.$store.state.api + "addCourseWorks", params)
  20465. .then((res) => {
  20466. this.$message({
  20467. message: "提交成功",
  20468. type: "success",
  20469. });
  20470. this.answerList = [];
  20471. this.answerDialogVisible = false;
  20472. this.selectStudent();
  20473. this.selectSWorks();
  20474. this.selectSLook();
  20475. })
  20476. .catch((err) => {
  20477. this.$message.error("提交失败");
  20478. console.error(err);
  20479. });
  20480. },
  20481. addQuestionTeacher() {
  20482. this.answerList.push({
  20483. answerTitle: this.answerQ,
  20484. answer: this.questionAnswer,
  20485. });
  20486. let params = [
  20487. {
  20488. uid: this.sStudent.userid,
  20489. cid: this.id,
  20490. stage: this.courseType,
  20491. task: this.taskCount,
  20492. tool: this.toolindex,
  20493. content: JSON.stringify(this.answerList),
  20494. type: 3,
  20495. ateacher: this.userid,
  20496. },
  20497. ];
  20498. this.ajax
  20499. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  20500. .then((res) => {
  20501. this.$message({
  20502. message: "提交成功",
  20503. type: "success",
  20504. });
  20505. this.answerList = [];
  20506. this.questionAnswer = "";
  20507. this.answerDialogVisibleTeacher = false;
  20508. this.selectStudent();
  20509. this.selectSWorks();
  20510. this.selectSLook();
  20511. })
  20512. .catch((err) => {
  20513. this.$message.error("提交失败");
  20514. console.error(err);
  20515. });
  20516. },
  20517. refreshCourse() {
  20518. // window.location.reload();
  20519. this.navList = [];
  20520. this.getCourseDetail(1);
  20521. },
  20522. getCourseDetail(type, gindex) {
  20523. let loading;
  20524. if (type != 2) {
  20525. loading = this.$loading.service({
  20526. background: "rgba(255, 255, 255, 0.7)",
  20527. target: document.querySelector(".student_table"),
  20528. });
  20529. }
  20530. this.downLoading = false
  20531. // this.navList[0].isOpen = false;
  20532. // this.navList[this.courseType].isOpen = true;
  20533. // this.courseType = this.courseTypeLine;
  20534. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20535. let params = {
  20536. courseId: this.id,
  20537. };
  20538. this.ajax
  20539. .get(this.$store.state.api + "selectCourseDetail3", params)
  20540. .then((res) => {
  20541. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  20542. if (type != 2) {
  20543. loading.close();
  20544. if (
  20545. this.courseType >
  20546. JSON.parse(res.data[0][0].chapters).length - 1
  20547. ) {
  20548. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  20549. }
  20550. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20551. .chapterInfo[0].taskJson;
  20552. var b = [
  20553. "AVI",
  20554. "NAVI",
  20555. "MPEG",
  20556. "ASF",
  20557. "MOV",
  20558. "WMV",
  20559. "3GP",
  20560. "RM",
  20561. "RMVB",
  20562. "FLV",
  20563. "F4V",
  20564. "H.264",
  20565. "H.265",
  20566. "REAL VIDEO",
  20567. "MKV",
  20568. "WebM",
  20569. "HDDVD",
  20570. "MP4",
  20571. "MPG",
  20572. "M4V",
  20573. "MGV",
  20574. "OGV",
  20575. "QTM",
  20576. "STR",
  20577. "AMC",
  20578. "DVX",
  20579. "EVO",
  20580. "DAT",
  20581. "OGG",
  20582. "OGM",
  20583. "MP3",
  20584. ];
  20585. let _chapterData = [];
  20586. for (var i = 0; i < a.length; i++) {
  20587. var c = a[i].chapterData;
  20588. this.vedio[i] = [];
  20589. this.textList[i] = [];
  20590. this.lineList[i] = [];
  20591. this.chapToolList[i] = [];
  20592. this.file[i] = [];
  20593. this.fileC[i] = [];
  20594. _chapterData[i] = c.filter((el) => {
  20595. return el.type != 12;
  20596. });
  20597. this.fileC[i] = c.filter((el) => {
  20598. return el.type == 12;
  20599. });
  20600. if (this.tType == 2) {
  20601. if (this.fileC[i].length) {
  20602. let yym1 = this.fileC[i].filter(e=>{
  20603. if(!converter(e.name).includes(converter("教案"))){
  20604. return e
  20605. }
  20606. })
  20607. this.fileC[i] = yym1
  20608. }
  20609. }
  20610. // else if (c[j].type == 12) {
  20611. // this.fileC[i].push(c[j]);
  20612. // }
  20613. for (var j = 0; j < c.length; j++) {
  20614. if (c[j].type == 7) {
  20615. this.chapToolList[i].push(c[j]);
  20616. } else if (c[j].type == 8 || c[j].type == 14) {
  20617. this.lineList[i].push(c[j]);
  20618. } else if (c[j].type == 6) {
  20619. this.textList[i].push(c[j]);
  20620. } else {
  20621. if (
  20622. b.indexOf(
  20623. c[j].url
  20624. .split(".")
  20625. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20626. ) != -1
  20627. ) {
  20628. this.vedio[i].push(c[j]);
  20629. } else {
  20630. this.file[i].push(c[j]);
  20631. }
  20632. }
  20633. }
  20634. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20635. d.sources[0].src =
  20636. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20637. this.playerO[i] = d;
  20638. }
  20639. this.courseDetail = res.data[0][0];
  20640. if(this.tType == 2){
  20641. this.tcid = this.arrayToArray(
  20642. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20643. this.classId ? this.classId.split(",") : []
  20644. ).join(",");
  20645. }else{
  20646. this.tcid = this.arrayToArray(
  20647. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  20648. this.tcid2 ? this.tcid2.split(",") : []
  20649. ).join(",");
  20650. }
  20651. this.evalua = res.data[0][0].evaId;
  20652. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  20653. this.courseType
  20654. ];
  20655. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20656. if (this.tcid && res.data[1].length) {
  20657. let _inviteA = [];
  20658. for (var ik = 0; ik < res.data[1].length; ik++) {
  20659. _inviteA.push({
  20660. cid: res.data[1][ik].classid,
  20661. ic: res.data[1][ik].code,
  20662. });
  20663. }
  20664. for (var ik = 0; ik < _inviteA.length; ik++) {
  20665. if (
  20666. this.arrayToArray(
  20667. _inviteA[ik].cid.split(","),
  20668. this.tcid.split(",")
  20669. ).length
  20670. ) {
  20671. this.inviteCode = _inviteA[ik].ic;
  20672. break;
  20673. }
  20674. }
  20675. }
  20676. for (var l = 0; l < this.chapInfoList.length; l++) {
  20677. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  20678. for (var m = 0; m < w.length; m++) {
  20679. w[m].id = l + "-" + m;
  20680. }
  20681. }
  20682. let taskCount = 0;
  20683. if (
  20684. _chapterData[taskCount].length &&
  20685. _chapterData[taskCount][0].type == 2
  20686. ) {
  20687. this.showType = 0;
  20688. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20689. } else {
  20690. if (_chapterData[taskCount].length > 0) {
  20691. let _url = _chapterData[taskCount][0].url;
  20692. if (
  20693. _chapterData[taskCount][0].type == 8 ||
  20694. _chapterData[taskCount][0].type == 14
  20695. ) {
  20696. this.showType = 2;
  20697. if (
  20698. _url.indexOf("https://") == -1 &&
  20699. _url.indexOf("http://") == -1
  20700. ) {
  20701. _url = "https://" + _url;
  20702. }
  20703. this.pptImgUrl1 = _url;
  20704. } else if (_chapterData[taskCount][0].type == 3) {
  20705. if (
  20706. _url
  20707. .split(".")
  20708. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20709. ) {
  20710. this.showType = 3;
  20711. this.pptImgUrl1 = _url;
  20712. } else if (
  20713. this.isAssetTypeAnImage(
  20714. _url
  20715. .split(".")
  20716. [_url.split(".").length - 1].toLocaleLowerCase()
  20717. )
  20718. ) {
  20719. this.showType = 4;
  20720. this.pptImgUrl1 = _url;
  20721. } else {
  20722. this.showType = 2;
  20723. this.pptImgUrl1 =
  20724. "https://view.officeapps.live.com/op/view.aspx?src=" +
  20725. encodeURIComponent(_url);
  20726. }
  20727. } else if (_chapterData[taskCount][0].type == 13) {
  20728. this.showType = 4;
  20729. this.pptImgUrl1 = _url;
  20730. } else if (_chapterData[taskCount][0].type == 6) {
  20731. this.showType = 1;
  20732. this.text = this.textList[taskCount][0];
  20733. }
  20734. }
  20735. }
  20736. this.isClickNav = 0;
  20737. if (
  20738. !_chapterData[taskCount].length ||
  20739. _chapterData[taskCount][0].type == 12
  20740. ) {
  20741. this.isClickNav = "";
  20742. this.showType = "";
  20743. }
  20744. if (this.tType == 2) {
  20745. _chapterData.forEach((e,i)=>{
  20746. if (e.length) {
  20747. let yym = e.filter(k=>{
  20748. if(!converter(k.name).includes(converter("教案"))){
  20749. return k
  20750. }
  20751. })
  20752. _chapterData[i] = yym
  20753. }
  20754. })
  20755. }
  20756. this.vChapterData = _chapterData;
  20757. } else {
  20758. // this.showType = 0;
  20759. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  20760. .chapterInfo[0].taskJson;
  20761. var b = [
  20762. "AVI",
  20763. "NAVI",
  20764. "MPEG",
  20765. "ASF",
  20766. "MOV",
  20767. "WMV",
  20768. "3GP",
  20769. "RM",
  20770. "RMVB",
  20771. "FLV",
  20772. "F4V",
  20773. "H.264",
  20774. "H.265",
  20775. "REAL VIDEO",
  20776. "MKV",
  20777. "WebM",
  20778. "HDDVD",
  20779. "MP4",
  20780. "MPG",
  20781. "M4V",
  20782. "MGV",
  20783. "OGV",
  20784. "QTM",
  20785. "STR",
  20786. "AMC",
  20787. "DVX",
  20788. "EVO",
  20789. "DAT",
  20790. "OGG",
  20791. "OGM",
  20792. "MP3",
  20793. ];
  20794. let _chapterData = [];
  20795. for (var i = 0; i < a.length; i++) {
  20796. var c = a[i].chapterData;
  20797. this.vedio[i] = [];
  20798. this.textList[i] = [];
  20799. this.lineList[i] = [];
  20800. this.chapToolList[i] = [];
  20801. this.file[i] = [];
  20802. this.fileC[i] = [];
  20803. _chapterData[i] = c.filter((el) => {
  20804. return el.type != 12;
  20805. });
  20806. this.fileC[i] = c.filter((el) => {
  20807. return el.type == 12;
  20808. });
  20809. if (this.tType == 2) {
  20810. if (this.fileC[i].length) {
  20811. let yym1 = this.fileC[i].filter(e=>{
  20812. if(!converter(e.name).includes(converter("教案"))){
  20813. return e
  20814. }
  20815. })
  20816. this.fileC[i] = yym1
  20817. }
  20818. }
  20819. for (var j = 0; j < c.length; j++) {
  20820. if (c[j].type == 7) {
  20821. this.chapToolList[i].push(c[j]);
  20822. } else if (c[j].type == 8 || c[j].type == 14) {
  20823. this.lineList[i].push(c[j]);
  20824. } else if (c[j].type == 6) {
  20825. this.textList[i].push(c[j]);
  20826. } else {
  20827. if (
  20828. b.indexOf(
  20829. c[j].url
  20830. .split(".")
  20831. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  20832. ) != -1
  20833. ) {
  20834. this.vedio[i].push(c[j]);
  20835. } else {
  20836. this.file[i].push(c[j]);
  20837. }
  20838. }
  20839. }
  20840. var d = JSON.parse(JSON.stringify(this.playerOptions));
  20841. d.sources[0].src =
  20842. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  20843. this.playerO[i] = d;
  20844. }
  20845. let taskCount = 0;
  20846. if (
  20847. _chapterData[taskCount].length &&
  20848. _chapterData[taskCount][0].type == 2
  20849. ) {
  20850. // this.showType = 0;
  20851. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  20852. } else {
  20853. if (_chapterData[taskCount].length > 0) {
  20854. let _url = _chapterData[taskCount][0].url;
  20855. if (
  20856. _chapterData[taskCount][0].type == 8 ||
  20857. _chapterData[taskCount][0].type == 14
  20858. ) {
  20859. // this.showType = 2;
  20860. if (
  20861. _url.indexOf("https://") == -1 &&
  20862. _url.indexOf("http://") == -1
  20863. ) {
  20864. _url = "https://" + _url;
  20865. }
  20866. // this.pptImgUrl1 = _url;
  20867. } else if (_chapterData[taskCount][0].type == 3) {
  20868. if (
  20869. _url
  20870. .split(".")
  20871. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  20872. ) {
  20873. // this.showType = 3;
  20874. // this.pptImgUrl1 = _url;
  20875. } else if (
  20876. this.isAssetTypeAnImage(
  20877. _url
  20878. .split(".")
  20879. [_url.split(".").length - 1].toLocaleLowerCase()
  20880. )
  20881. ) {
  20882. // this.showType = 4;
  20883. // this.pptImgUrl1 = _url;
  20884. } else {
  20885. // this.showType = 2;
  20886. // this.pptImgUrl1 =
  20887. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  20888. // encodeURIComponent(_url);
  20889. }
  20890. } else if (_chapterData[taskCount][0].type == 13) {
  20891. // this.showType = 4;
  20892. // this.pptImgUrl1 = _url;
  20893. } else if (_chapterData[taskCount][0].type == 6) {
  20894. this.showType = 1;
  20895. this.text = this.textList[taskCount][0];
  20896. }
  20897. }
  20898. }
  20899. this.isClickNav = 0;
  20900. if (
  20901. !_chapterData[taskCount].length ||
  20902. _chapterData[taskCount][0].type == 12
  20903. ) {
  20904. this.isClickNav = "";
  20905. // this.showType = "";
  20906. }
  20907. if (this.tType == 2) {
  20908. _chapterData.forEach((e,i)=>{
  20909. if (e.length) {
  20910. let yym = e.filter(k=>{
  20911. if(!converter(k.name).includes(converter("教案"))){
  20912. return k
  20913. }
  20914. })
  20915. _chapterData[i] = yym
  20916. }
  20917. })
  20918. }
  20919. this.vChapterData = _chapterData;
  20920. this.$forceUpdate();
  20921. }
  20922. if (res.data[0][0].setting) {
  20923. try {
  20924. this.languageSetting =
  20925. JSON.parse(res.data[0][0].setting).languageSetting ||
  20926. JSON.parse(res.data[0][0].setting).languageSetting == 0
  20927. ? JSON.parse(res.data[0][0].setting).languageSetting
  20928. : 0;
  20929. } catch (error) {
  20930. console.error(error);
  20931. }
  20932. }
  20933. // finalMarkList用来判断哪个工具为评分工具
  20934. if (this.courseDetail.state == 6) {
  20935. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  20936. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  20937. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  20938. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  20939. // // 没有的话在选其他工具为评分工具
  20940. // if(adc.length > 0){
  20941. // for (let k = chap.length - 1; k >= 0; k--) {
  20942. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  20943. // this.finalMarkList = k;
  20944. // break;
  20945. // }
  20946. // }
  20947. // }else{
  20948. // for (let k = chap.length - 1; k >= 0; k--) {
  20949. // 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) {
  20950. // this.finalMarkList = k;
  20951. // break;
  20952. // }
  20953. // }
  20954. // }
  20955. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  20956. // 不然会无限循环报错,会很难受
  20957. let aiSNum = 0;
  20958. if (
  20959. chapInfoListCopy[this.taskCount].eList &&
  20960. chapInfoListCopy[this.taskCount].eList.length
  20961. ) {
  20962. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  20963. if (e.isai == 2) {
  20964. aiSNum++;
  20965. }
  20966. });
  20967. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  20968. this.isaiNum = aiSNum;
  20969. } else {
  20970. this.isaiNum = 0;
  20971. }
  20972. // for (
  20973. // let k = 0;
  20974. // k < chapInfoListCopy[this.taskCount].eList.length;
  20975. // k++
  20976. // ) {
  20977. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  20978. // this.againEva(this.taskCount, k);
  20979. // }
  20980. // }
  20981. }
  20982. }
  20983. // else {
  20984. // this.courseDetail = res.data[0][0];
  20985. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  20986. // }
  20987. let _this = this;
  20988. if (_this.timer) {
  20989. clearInterval(_this.timer);
  20990. _this.timer = null;
  20991. }
  20992. // if (_this.timer2) {
  20993. // clearInterval(_this.timer2);
  20994. // _this.timer2 = null;
  20995. // }
  20996. if (_this.tcid) {
  20997. _this.getCourseGroup(gindex);
  20998. } else {
  20999. _this.selectSWorks(gindex);
  21000. }
  21001. _this.selectStudent();
  21002. _this.selectSLook();
  21003. _this.getPick();
  21004. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21005. _this.setCTask();
  21006. }
  21007. if (_this.dialogVisibleGroup) {
  21008. _this.groupJson =
  21009. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21010. _this.taskCount
  21011. ].toolChoose[_this.toolindex].groupJson;
  21012. }
  21013. _this.$nextTick(() => {
  21014. setTimeout(() => {
  21015. _this.checkEva();
  21016. }, 1000);
  21017. });
  21018. _this.timer = setInterval(function () {
  21019. // _this.getCourseDetail(2);
  21020. if (_this.tcid) {
  21021. _this.getCourseGroup();
  21022. } else {
  21023. _this.selectSWorks();
  21024. }
  21025. _this.selectStudent();
  21026. _this.selectSLook();
  21027. _this.getPick();
  21028. if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21029. _this.setCTask();
  21030. }
  21031. if (_this.dialogVisibleGroup) {
  21032. _this.groupJson =
  21033. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21034. _this.taskCount
  21035. ].toolChoose[_this.toolindex].groupJson;
  21036. }
  21037. if (_this.tType == 4 || _this.ispzType == 4) {
  21038. _this.selectPz();
  21039. }
  21040. }, 5000);
  21041. if (_this.timer2 == null) {
  21042. _this.timer2 = setInterval(()=> {
  21043. _this.getSplitScreenData();//获取分屏数据
  21044. }, 5000);
  21045. }
  21046. _this.$nextTick(function () {
  21047. setTimeout(() => {
  21048. // var a =
  21049. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21050. // document.getElementsByClassName("vedioList")[0].style.height =
  21051. // a + "px";
  21052. // document.getElementsByClassName("navBox")[0].style.height =
  21053. // a - 40 + "px";
  21054. // if (_this.vedio[_this.taskCount].length > 0) {
  21055. // _this.vedioTime = [];
  21056. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21057. // _this.vedioTime[i] = document.getElementsByClassName(
  21058. // "vjs-duration-display"
  21059. // )[i].textContent;
  21060. // }
  21061. // }
  21062. }, 1000);
  21063. });
  21064. })
  21065. .catch((err) => {
  21066. loading.close();
  21067. console.error(err);
  21068. });
  21069. },
  21070. getCourseGroup(gindex) {
  21071. let params = {
  21072. cid: this.id,
  21073. classid: this.tcid ? this.tcid : "1",
  21074. };
  21075. this.ajax
  21076. .get(this.$store.state.api + "getCourseGroup", params)
  21077. .then((res) => {
  21078. if (res.data && res.data[0].length) {
  21079. if (!this.isGroup) {
  21080. let courseGroup = JSON.parse(res.data[0][0].group);
  21081. courseGroup.group = courseGroup.group.filter((el) => {
  21082. el.works = [];
  21083. return el;
  21084. });
  21085. if (courseGroup.isopen == 2) {
  21086. this.isGroup = false;
  21087. this.selectSWorks(gindex);
  21088. return;
  21089. }
  21090. this.courseGroup = courseGroup;
  21091. let groupPerson = res.data[1];
  21092. let group = JSON.parse(res.data[0][0].group).group;
  21093. let courseGroupStudent = {};
  21094. let courseGroupStudentUid = {};
  21095. for (var i = 0; i < group.length; i++) {
  21096. courseGroupStudent[group[i].id] = [];
  21097. courseGroupStudentUid[group[i].id] = [];
  21098. for (var j = 0; j < groupPerson.length; j++) {
  21099. if (groupPerson[j].groupCid == group[i].id) {
  21100. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21101. courseGroupStudentUid[group[i].id].push(
  21102. groupPerson[j].userid
  21103. );
  21104. }
  21105. }
  21106. }
  21107. this.courseGroupStudent = courseGroupStudent;
  21108. this.courseGroupStudentUid = courseGroupStudentUid;
  21109. }
  21110. if (this.courseGroup.isopen == 2) {
  21111. this.isGroup = false;
  21112. } else {
  21113. this.isGroup = true;
  21114. }
  21115. this.selectSWorks(gindex);
  21116. } else {
  21117. this.selectSWorks(gindex);
  21118. this.isGroup = false;
  21119. }
  21120. })
  21121. .catch((err) => {
  21122. // this.$message.error("网络不佳");
  21123. console.error(err);
  21124. });
  21125. },
  21126. setOperationTime() {
  21127. let _this = this;
  21128. if (_this.opertimer) {
  21129. clearInterval(_this.opertimer);
  21130. _this.opertimer = null;
  21131. }
  21132. _this.opertimer = setInterval(() => {
  21133. _this.setoTime("600");
  21134. }, 600000);
  21135. },
  21136. setoTime(time) {
  21137. let params = [
  21138. {
  21139. uid: this.userid,
  21140. cid: this.id,
  21141. type: "2",
  21142. time: time,
  21143. },
  21144. ];
  21145. this.ajax
  21146. .post(this.$store.state.api + "addOperationTimeT2", params)
  21147. .then((res) => {})
  21148. .catch((err) => {
  21149. console.error(err);
  21150. });
  21151. },
  21152. addPz(type, content) {
  21153. if (type == "1" && this.pzConText == "") {
  21154. this.$message.error("评论不能为空!");
  21155. return;
  21156. }
  21157. let params = [
  21158. {
  21159. cid: this.id,
  21160. uid: this.userid,
  21161. s: this.courseType,
  21162. t: this.taskCount,
  21163. c: type == "1" ? this.pzConText : content,
  21164. type: type,
  21165. },
  21166. ];
  21167. this.ajax
  21168. .post(this.$store.state.api + "addPz2", params)
  21169. .then((res) => {
  21170. this.$message({
  21171. message: "添加成功",
  21172. type: "success",
  21173. });
  21174. this.pzConText = "";
  21175. this.addPzDialog = false;
  21176. this.selectPz();
  21177. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21178. })
  21179. .catch((err) => {
  21180. this.$message.error("添加失败");
  21181. console.error(err);
  21182. });
  21183. },
  21184. setReplyIndex(id, i) {
  21185. this.replyIndex = i;
  21186. this.replyPid = id;
  21187. this.replyDialogVisible = true;
  21188. },
  21189. addHf() {
  21190. if (this.reply == "") {
  21191. this.$message.error("回复不能为空!");
  21192. return;
  21193. }
  21194. let params = [
  21195. {
  21196. cid: this.id,
  21197. uid: this.userid,
  21198. s: this.courseType,
  21199. t: this.taskCount,
  21200. type: "1",
  21201. ct: 2,
  21202. pid: this.replyPid,
  21203. c: this.reply,
  21204. },
  21205. ];
  21206. this.ajax
  21207. .post(this.$store.state.api + "addHf", params)
  21208. .then((res) => {
  21209. this.reply = "";
  21210. this.$message({
  21211. message: "回复成功",
  21212. type: "success",
  21213. });
  21214. this.replyDialogVisible = false;
  21215. this.selectPz();
  21216. })
  21217. .catch((err) => {
  21218. this.$message.error("回复失败");
  21219. console.error(err);
  21220. });
  21221. },
  21222. deletePz(id) {
  21223. this.$confirm("确定删除此评论吗?", "提示", {
  21224. confirmButtonText: "确定",
  21225. cancelButtonText: "取消",
  21226. type: "warning",
  21227. })
  21228. .then(() => {
  21229. let params = [
  21230. {
  21231. id: id,
  21232. },
  21233. ];
  21234. this.ajax
  21235. .post(this.$store.state.api + "deletePz", params)
  21236. .then((res) => {
  21237. this.$message({
  21238. message: "删除成功",
  21239. type: "success",
  21240. });
  21241. this.selectPz();
  21242. })
  21243. .catch((err) => {
  21244. this.$message.error("网络异常");
  21245. console.error(err);
  21246. });
  21247. })
  21248. .catch(() => {});
  21249. },
  21250. deleteReply(id) {
  21251. this.$confirm("确定删除此回复吗?", "提示", {
  21252. confirmButtonText: "确定",
  21253. cancelButtonText: "取消",
  21254. type: "warning",
  21255. })
  21256. .then(() => {
  21257. let params = [
  21258. {
  21259. id: id,
  21260. },
  21261. ];
  21262. this.ajax
  21263. .post(this.$store.state.api + "deleteReply", params)
  21264. .then((res) => {
  21265. this.$message({
  21266. message: "删除成功",
  21267. type: "success",
  21268. });
  21269. this.selectPz();
  21270. })
  21271. .catch((err) => {
  21272. this.$message.error("网络异常");
  21273. console.error(err);
  21274. });
  21275. })
  21276. .catch(() => {});
  21277. },
  21278. setPz() {
  21279. if (this.ispzType == 4) {
  21280. this.ispzType = 0;
  21281. this.pzDialog = false;
  21282. return;
  21283. }
  21284. this.ispzType = 4;
  21285. this.pzDialog = true;
  21286. this.selectPz();
  21287. },
  21288. selectPz() {
  21289. let params = {
  21290. cid: this.id,
  21291. s: this.courseType,
  21292. t: this.taskCount,
  21293. type: this.pzStype,
  21294. uid: this.userid,
  21295. };
  21296. this.ajax
  21297. .get(this.$store.state.api + "selectPzListType", params)
  21298. .then((res) => {
  21299. this.pzList = res.data[0];
  21300. var a = res.data[1];
  21301. for (var i = 0; i < a.length; i++) {
  21302. for (var j = 0; j < this.pzList.length; j++) {
  21303. if (!this.pzList[j].hfList) {
  21304. this.pzList[j].hfList = [];
  21305. }
  21306. if (a[i].pid == this.pzList[j].id) {
  21307. this.pzList[j].hfList.push(a[i]);
  21308. }
  21309. }
  21310. }
  21311. })
  21312. .catch((err) => {
  21313. console.error(err);
  21314. });
  21315. },
  21316. // selectHf() {
  21317. // let params = {
  21318. // cid: this.id,
  21319. // s: this.courseType,
  21320. // t: this.taskCount,
  21321. // };
  21322. // this.ajax
  21323. // .get(this.$store.state.api + "selectHfList", params)
  21324. // .then((res) => {
  21325. // var a = res.data[0];
  21326. // for (var i = 0; i < a.length; i++) {
  21327. // for (var j = 0; j < this.pzList.length; j++) {
  21328. // if (!this.pzList[i].hfList) {
  21329. // this.pzList[i].hfList = [];
  21330. // }
  21331. // if (a[i].pid == this.pzList[j].id) {
  21332. // this.pzList[i].hfList.push(a[i]);
  21333. // }
  21334. // }
  21335. // }
  21336. // })
  21337. // .catch((err) => {
  21338. // console.error(err);
  21339. // });
  21340. // },
  21341. updateSLook() {
  21342. let params = {
  21343. sopen: this.sIsOpen == false ? 1 : 2,
  21344. cid: this.id,
  21345. };
  21346. this.ajax
  21347. .get(this.$store.state.api + "updateCourseSLook", params)
  21348. .then((res) => {
  21349. if (this.sIsOpen == true) {
  21350. this.$message({
  21351. message: "权限设置成功",
  21352. type: "success",
  21353. });
  21354. } else {
  21355. this.$message({
  21356. message: "权限关闭成功",
  21357. type: "success",
  21358. });
  21359. }
  21360. })
  21361. .catch((err) => {
  21362. console.error(err);
  21363. });
  21364. },
  21365. updateFollow() {
  21366. let params = [
  21367. {
  21368. sopen: this.IsFollow == false ? 1 : 2,
  21369. cid: this.id,
  21370. },
  21371. ];
  21372. this.ajax
  21373. .post(this.$store.state.api + "updateCourseFollow", params)
  21374. .then((res) => {
  21375. if (this.IsFollow == true) {
  21376. this.$message({
  21377. message: "开启成功",
  21378. type: "success",
  21379. });
  21380. } else {
  21381. this.$message({
  21382. message: "关闭成功",
  21383. type: "success",
  21384. });
  21385. }
  21386. this.setCTask();
  21387. })
  21388. .catch((err) => {
  21389. console.error(err);
  21390. });
  21391. },
  21392. setCTask() {
  21393. let params = [
  21394. {
  21395. sopen: this.courseType + "-" + this.taskCount,
  21396. cid: this.id,
  21397. },
  21398. ];
  21399. this.ajax
  21400. .post(this.$store.state.api + "updateCourseFollowC", params)
  21401. .then((res) => {})
  21402. .catch((err) => {
  21403. console.error(err);
  21404. });
  21405. },
  21406. updateLookOpen() {
  21407. let params = [
  21408. {
  21409. sopen: this.IsLookOpen == false ? 1 : 2,
  21410. cid: this.id,
  21411. },
  21412. ];
  21413. this.ajax
  21414. .post(this.$store.state.api + "updateCourseLookOpen", params)
  21415. .then((res) => {
  21416. if (this.IsLookOpen == true) {
  21417. // if (this.courseType != 0 && this.taskCount != 0) {
  21418. // this.openTask(0, 0, "0-0");
  21419. // }
  21420. this.$message({
  21421. message: "权限设置成功",
  21422. type: "success",
  21423. });
  21424. } else {
  21425. this.$message({
  21426. message: "权限关闭成功",
  21427. type: "success",
  21428. });
  21429. }
  21430. this.getCourseState(2);
  21431. })
  21432. .catch((err) => {
  21433. console.error(err);
  21434. });
  21435. },
  21436. selectSLook() {
  21437. let params = {
  21438. cid: this.id,
  21439. };
  21440. this.ajax
  21441. .get(this.$store.state.api + "selectCourseSLook", params)
  21442. .then((res) => {
  21443. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  21444. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  21445. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  21446. if (!this.IsLookOpen) {
  21447. this.setNavList();
  21448. }
  21449. // else {
  21450. this.getCourseState(1);
  21451. // }
  21452. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  21453. this.setContent2(false);
  21454. let _followC = res.data[0][0].followC.split("-");
  21455. if (
  21456. this.courseType != _followC[0] ||
  21457. this.taskCount != _followC[1]
  21458. ) {
  21459. this.navList[this.courseType].isOpen = false;
  21460. this.courseType = _followC[0];
  21461. this.navList[this.courseType].isOpen = true;
  21462. this.taskCount = parseInt(_followC[1]);
  21463. this.navId = res.data[0][0].followC;
  21464. document.scrollingElement.scrollTop = 0;
  21465. this.getCourseDetail(2);
  21466. }
  21467. }
  21468. })
  21469. .catch((err) => {
  21470. console.error(err);
  21471. });
  21472. },
  21473. setNavList() {
  21474. if (this.navList.length == 0) {
  21475. this.navList = [];
  21476. var copyList = [];
  21477. for (var l = 0; l < this.chapInfoList.length; l++) {
  21478. var q = this.chapInfoList[l].dyName;
  21479. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21480. var e;
  21481. copyList.push({
  21482. dyName: q,
  21483. isOpen: l === 0 ? true : false,
  21484. task: [],
  21485. });
  21486. for (var r = 0; r < w.length; r++) {
  21487. e = w[r].task;
  21488. if (this.chapInfoList[l].easy == 1) {
  21489. copyList[l].task.push({
  21490. taskName: q,
  21491. id: l + "-" + r,
  21492. isLook: w[r].isLook,
  21493. isOpen: r === 0 ? true : false,
  21494. tool: [],
  21495. });
  21496. } else {
  21497. copyList[l].task.push({
  21498. taskName: e,
  21499. id: l + "-" + r,
  21500. isLook: w[r].isLook,
  21501. isOpen: r === 0 ? true : false,
  21502. tool: [],
  21503. });
  21504. }
  21505. var t = w[r].toolChoose;
  21506. for (var k = 0; k < t.length; k++) {
  21507. var tool = t[k].tool[0];
  21508. copyList[l].task[r].tool.push({
  21509. tool: tool,
  21510. isTool: false,
  21511. });
  21512. }
  21513. // this.navId = this.navId ? this.navId : l + "-" + r;
  21514. // this.navId = l + "-" + r;
  21515. }
  21516. }
  21517. this.navList = copyList;
  21518. this.navList[0].isOpen = false;
  21519. this.navList[this.courseType].isOpen = true;
  21520. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21521. } else {
  21522. this.setNavList2();
  21523. }
  21524. },
  21525. setNavList2() {
  21526. for (var l = 0; l < this.chapInfoList.length; l++) {
  21527. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21528. for (var r = 0; r < w.length; r++) {
  21529. this.navList[l].task[r].isLook = w[r].isLook;
  21530. }
  21531. }
  21532. if (
  21533. this.IsLookOpen &&
  21534. !this.navList[this.courseType].task[this.taskCount].isLook
  21535. ) {
  21536. this.openTask(0, 0, "0-0");
  21537. }
  21538. this.$forceUpdate();
  21539. },
  21540. getCourseState(type) {
  21541. let params = {
  21542. cid: this.id,
  21543. };
  21544. this.ajax
  21545. .get(this.$store.state.api + "getCourseState", params)
  21546. .then((res) => {
  21547. // if (res.data[0].length > 0) {
  21548. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  21549. // }
  21550. if (res.data[0].length > 0 && type == 1) {
  21551. this.chapInfoList = JSON.parse(res.data[0][0].state);
  21552. this.setNavList();
  21553. this.$forceUpdate();
  21554. } else if (res.data[0].length > 0 && type == 2) {
  21555. this.addCourseState(2);
  21556. } else {
  21557. // this.addCourseState(1);
  21558. }
  21559. })
  21560. .catch((err) => {
  21561. console.error(err);
  21562. });
  21563. },
  21564. addCourseState(type,val = '') {
  21565. let _state = val ? val : this.chapInfoList;
  21566. // this.courseType this.taskCount
  21567. if (type == 1 || type == 2) {
  21568. for (var i = 0; i < _state.length; i++) {
  21569. let el = _state[i].chapterInfo[0].taskJson;
  21570. for (var j = 0; j < el.length; j++) {
  21571. // if (i == 0 && j == 0) {
  21572. // el[j].isLook = true;
  21573. // } else {
  21574. // el[j].isLook = false;
  21575. // }
  21576. if (
  21577. this.courseType > i ||
  21578. (this.courseType == i && this.taskCount + 1 > j)
  21579. ) {
  21580. el[j].isLook = true;
  21581. } else {
  21582. el[j].isLook = false;
  21583. }
  21584. }
  21585. }
  21586. }
  21587. let params = [
  21588. {
  21589. cid: this.id,
  21590. state: JSON.stringify(_state),
  21591. },
  21592. ];
  21593. this.ajax
  21594. .post(
  21595. this.$store.state.api +
  21596. (type == 1 ? "addCourseState" : "updateCourseSate"),
  21597. params
  21598. )
  21599. .then((res) => {
  21600. if (this.IsLookOpen) {
  21601. this.setNavList();
  21602. }
  21603. if (type == 3 && type == 2) {
  21604. this.getCourseState(1);
  21605. }
  21606. })
  21607. .catch((err) => {
  21608. console.error(err);
  21609. });
  21610. },
  21611. getHomeWork() {
  21612. let params = {
  21613. cid: this.id,
  21614. stage: this.courseType,
  21615. task: this.taskCount,
  21616. uid: this.userid,
  21617. };
  21618. this.ajax
  21619. .get(this.$store.state.api + "selectWork", params)
  21620. .then((res) => {
  21621. if (res.data[0].length > 0) {
  21622. this.studyJuri = JSON.parse(res.data[0][0].content);
  21623. this.isNoHomeWork = true;
  21624. }
  21625. })
  21626. .catch((err) => {
  21627. console.error(err);
  21628. });
  21629. },
  21630. isAssetTypeAnImage(ext) {
  21631. return (
  21632. [
  21633. "png",
  21634. "jpg",
  21635. "jpeg",
  21636. "bmp",
  21637. "gif",
  21638. "webp",
  21639. "psd",
  21640. "svg",
  21641. "tiff",
  21642. ].indexOf(ext) !== -1
  21643. );
  21644. },
  21645. switchVideo(media) {
  21646. this.playerO = {};
  21647. this.playerOptions.poster = "";
  21648. this.playerOptions.sources[0].src = media;
  21649. this.playerO = this.playerOptions;
  21650. },
  21651. onPlayerPlay() {},
  21652. onPlayerTimeupdate(player) {
  21653. let gklog = player.cache_.currentTime; //当前播放的秒数
  21654. let a = player.cache_.duration; //视频的总时长
  21655. let gklog2 = parseInt(gklog);
  21656. // if(gklog2 == '3'){
  21657. // player.pause()
  21658. // setTimeout(()=>{
  21659. // player.currentTime(gklog2+1)
  21660. // player.play()
  21661. // },1000)
  21662. // }
  21663. console.log(" onPlayerTimeupdate!", gklog);
  21664. console.log(" onPlayerTimeupdate!", gklog2);
  21665. },
  21666. lookVedio(u, i) {
  21667. this.isClickNav = "";
  21668. // this.playerOptions.sources[0].src = u;
  21669. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21670. d.sources[0].src = u;
  21671. this.playerO[0] = d;
  21672. this.showType = 0;
  21673. // this.isClickNav = "video" + i;
  21674. this.isClickNav = i;
  21675. this.$forceUpdate();
  21676. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  21677. },
  21678. lookText(i, t) {
  21679. this.isClickNav = "";
  21680. // this.text = this.textList[i][t];
  21681. this.text = this.vChapterData[i][t];
  21682. // this.dialogVisible1 = true;
  21683. this.showType = 1;
  21684. // this.isClickNav = "text" + t;
  21685. this.isClickNav = t;
  21686. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  21687. },
  21688. lookTools(i, t) {
  21689. this.chapTools = this.chapToolList[i][t];
  21690. this.dialogVisible2 = true;
  21691. },
  21692. async openFile(f) {
  21693. this.pptImgUrl = "";
  21694. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  21695. if (
  21696. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  21697. -1
  21698. ) {
  21699. let _uuurl = await this.checkLink(f);
  21700. console.log(_uuurl)
  21701. this.pptImgUrl =
  21702. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21703. this.showPDF = false;
  21704. this.dialogVisible3 = true;
  21705. } else if (
  21706. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21707. ) {
  21708. this.pptImgUrl = f;
  21709. this.showPDF = true;
  21710. this.dialogVisible3 = true;
  21711. }
  21712. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  21713. },
  21714. openTable(f) {
  21715. this.tableJson = JSON.parse(f.works);
  21716. this.dialogVisibleTable2 = true;
  21717. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21718. },
  21719. openWord(f) {
  21720. this.tableJson = JSON.parse(f.works);
  21721. this.dialogVisibleTable3 = true;
  21722. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  21723. },
  21724. doUrl(url, i) {
  21725. this.isClickNav = "";
  21726. this.pptImgUrl1 = "";
  21727. this.showType = 2;
  21728. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  21729. url = "https://" + url;
  21730. }
  21731. this.pptImgUrl1 = "";
  21732. setTimeout(() => {
  21733. this.pptImgUrl1 = url;
  21734. }, 500);
  21735. // this.isClickNav = "line" + i;
  21736. this.isClickNav = i;
  21737. this.$forceUpdate();
  21738. },
  21739. checkPhoto(f, i) {
  21740. this.showType = 4;
  21741. this.pptImgUrl1 = f.url;
  21742. this.isClickNav = i;
  21743. this.$forceUpdate();
  21744. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21745. },
  21746. async downFile(f, i) {
  21747. this.isClickNav = "";
  21748. this.pptImgUrl1 = "";
  21749. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  21750. if (
  21751. a.indexOf(
  21752. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  21753. ) != -1
  21754. ) {
  21755. let _uuurl = await this.checkLink(f.url);
  21756. console.log(_uuurl)
  21757. this.pptImgUrl1 =
  21758. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  21759. // this.dialogVisible3 = true;
  21760. this.showType = 2;
  21761. } else if (
  21762. this.isAssetTypeAnImage(
  21763. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  21764. )
  21765. ) {
  21766. this.showType = 4;
  21767. this.pptImgUrl1 = f.url;
  21768. } else if (
  21769. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  21770. "PDF"
  21771. ) {
  21772. this.pptImgUrl1 = f.url;
  21773. // this.dialogVisible3 = true;
  21774. this.showType = 3;
  21775. } else {
  21776. window.open(this.file[i].url);
  21777. }
  21778. // this.isClickNav = "word" + i;
  21779. this.isClickNav = i;
  21780. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  21781. },
  21782. downFileList(i) {
  21783. window.open(this.noImgList[i].url);
  21784. },
  21785. openAddWork() {
  21786. this.dialogVisible = true;
  21787. },
  21788. addBzWorks() {
  21789. let params = [
  21790. {
  21791. uid: this.userid,
  21792. cid: this.id,
  21793. stage: this.courseType,
  21794. task: this.taskCount,
  21795. tool: this.toolindex,
  21796. content: JSON.stringify(this.eScore),
  21797. type: 6,
  21798. },
  21799. ];
  21800. this.ajax
  21801. .post(this.$store.state.api + "addCourseWorks", params)
  21802. .then((res) => {
  21803. this.$message({
  21804. message: "提交成功",
  21805. type: "success",
  21806. });
  21807. this.eScore = { eBzText: "", eStar: [] };
  21808. this.studentEvalDialogVisible = false;
  21809. this.selectSWorks();
  21810. })
  21811. .catch((err) => {
  21812. this.$message.error("提交失败");
  21813. console.error(err);
  21814. });
  21815. },
  21816. addBzWorksTeacher() {
  21817. let params = [
  21818. {
  21819. uid: this.sStudent.userid,
  21820. cid: this.id,
  21821. stage: this.courseType,
  21822. task: this.taskCount,
  21823. tool: this.toolindex,
  21824. content: JSON.stringify(this.eScore),
  21825. type: 6,
  21826. },
  21827. ];
  21828. this.ajax
  21829. .post(this.$store.state.api + "addCourseWorks", params)
  21830. .then((res) => {
  21831. this.$message({
  21832. message: "提交成功",
  21833. type: "success",
  21834. });
  21835. this.eScore = { eBzText: "", eStar: [] };
  21836. this.studentEvalDialogVisibleTeacher = false;
  21837. this.selectSWorks();
  21838. })
  21839. .catch((err) => {
  21840. this.$message.error("提交失败");
  21841. console.error(err);
  21842. });
  21843. },
  21844. addStudentAsk() {
  21845. if (!this.radio.length) {
  21846. this.$message.error("请选择选项");
  21847. return;
  21848. }
  21849. for (var i = 0; i < this.askJson.askCount; i++) {
  21850. if (
  21851. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21852. (this.radio[i] !== 0 && !this.radio[i])
  21853. ) {
  21854. this.$message.error("请选择选项");
  21855. return;
  21856. }
  21857. }
  21858. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21859. let params = [
  21860. {
  21861. uid: this.userid,
  21862. cid: this.id,
  21863. stage: this.courseType,
  21864. task: this.taskCount,
  21865. tool: this.toolindex,
  21866. content: JSON.stringify(this.askList),
  21867. type: 2,
  21868. },
  21869. ];
  21870. this.ajax
  21871. .post(this.$store.state.api + "addCourseWorks", params)
  21872. .then((res) => {
  21873. this.$message({
  21874. message: "提交成功",
  21875. type: "success",
  21876. });
  21877. this.askList = [];
  21878. this.dialogVisible5 = false;
  21879. this.selectStudent();
  21880. this.selectSWorks();
  21881. this.selectSLook();
  21882. })
  21883. .catch((err) => {
  21884. this.$message.error("提交失败");
  21885. console.error(err);
  21886. });
  21887. },
  21888. addStudentAskTeacher() {
  21889. if (!this.radio.length) {
  21890. this.$message.error("请选择选项");
  21891. return;
  21892. }
  21893. for (var i = 0; i < this.askJson.askCount; i++) {
  21894. if (
  21895. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21896. (this.radio[i] !== 0 && !this.radio[i])
  21897. ) {
  21898. this.$message.error("请选择选项");
  21899. return;
  21900. }
  21901. }
  21902. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  21903. let params = [
  21904. {
  21905. uid: this.sStudent.userid,
  21906. cid: this.id,
  21907. stage: this.courseType,
  21908. task: this.taskCount,
  21909. tool: this.toolindex,
  21910. content: JSON.stringify(this.askList),
  21911. type: 2,
  21912. },
  21913. ];
  21914. this.ajax
  21915. .post(this.$store.state.api + "addCourseWorks", params)
  21916. .then((res) => {
  21917. this.$message({
  21918. message: "提交成功",
  21919. type: "success",
  21920. });
  21921. this.askList = [];
  21922. this.dialogVisible5Teacher = false;
  21923. this.selectStudent();
  21924. this.selectSWorks();
  21925. this.selectSLook();
  21926. })
  21927. .catch((err) => {
  21928. this.$message.error("提交失败");
  21929. console.error(err);
  21930. });
  21931. },
  21932. addStudentTest() {
  21933. if (!this.radio.length) {
  21934. this.$message.error("请选择选项");
  21935. return;
  21936. }
  21937. for (var i = 0; i < this.testJson.testCount; i++) {
  21938. if (
  21939. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21940. (this.radio[i] !== 0 && !this.radio[i])
  21941. ) {
  21942. this.$message.error("请选择选项");
  21943. return;
  21944. }
  21945. }
  21946. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21947. let params = [
  21948. {
  21949. uid: this.userid,
  21950. cid: this.id,
  21951. stage: this.courseType,
  21952. task: this.taskCount,
  21953. tool: this.toolindex,
  21954. content: JSON.stringify(this.askList),
  21955. type: 8,
  21956. },
  21957. ];
  21958. this.ajax
  21959. .post(this.$store.state.api + "addCourseWorks", params)
  21960. .then((res) => {
  21961. this.$message({
  21962. message: "提交成功",
  21963. type: "success",
  21964. });
  21965. this.askList = [];
  21966. this.dialogVisibleChoice = false;
  21967. this.selectStudent();
  21968. this.selectSWorks();
  21969. this.selectSLook();
  21970. })
  21971. .catch((err) => {
  21972. this.$message.error("提交失败");
  21973. console.error(err);
  21974. });
  21975. },
  21976. addStudentTestTeacher() {
  21977. if (!this.radio.length) {
  21978. this.$message.error("请选择选项");
  21979. return;
  21980. }
  21981. for (var i = 0; i < this.testJson.testCount; i++) {
  21982. if (
  21983. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  21984. (this.radio[i] !== 0 && !this.radio[i])
  21985. ) {
  21986. this.$message.error("请选择选项");
  21987. return;
  21988. }
  21989. }
  21990. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  21991. let params = [
  21992. {
  21993. uid: this.sStudent.userid,
  21994. cid: this.id,
  21995. stage: this.courseType,
  21996. task: this.taskCount,
  21997. tool: this.toolindex,
  21998. content: JSON.stringify(this.askList),
  21999. type: 8,
  22000. },
  22001. ];
  22002. this.ajax
  22003. .post(this.$store.state.api + "addCourseWorks", params)
  22004. .then((res) => {
  22005. this.$message({
  22006. message: "提交成功",
  22007. type: "success",
  22008. });
  22009. this.askList = [];
  22010. this.dialogVisibleChoiceTeacher = false;
  22011. this.selectStudent();
  22012. this.selectSWorks();
  22013. this.selectSLook();
  22014. })
  22015. .catch((err) => {
  22016. this.$message.error("提交失败");
  22017. console.error(err);
  22018. });
  22019. },
  22020. addWork() {
  22021. if (this.studyJuri[0].content == "") {
  22022. this.$message.error("请将信息填写完整");
  22023. return;
  22024. } else if (this.studyJuri[0].cover.length == 0) {
  22025. this.$message.error("请将信息填写完整");
  22026. return;
  22027. } else if (this.studyJuri[0].upVedio.length == 0) {
  22028. this.$message.error("请将信息填写完整");
  22029. return;
  22030. }
  22031. if (this.isNoHomeWork) {
  22032. this.$confirm(
  22033. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22034. "提示",
  22035. {
  22036. confirmButtonText: "确定",
  22037. cancelButtonText: "取消",
  22038. type: "warning",
  22039. }
  22040. )
  22041. .then(() => {
  22042. let params = [
  22043. {
  22044. uid: this.userid,
  22045. cid: this.id,
  22046. stage: this.courseType,
  22047. task: this.taskCount,
  22048. content: JSON.stringify(this.studyJuri),
  22049. },
  22050. ];
  22051. this.ajax
  22052. .post(this.$store.state.api + "addWorks", params)
  22053. .then((res) => {
  22054. this.$message({
  22055. message: "提交成功",
  22056. type: "success",
  22057. });
  22058. this.isNoHomeWork = true;
  22059. this.dialogVisible = false;
  22060. })
  22061. .catch((err) => {
  22062. this.$message.error("提交失败");
  22063. console.error(err);
  22064. });
  22065. })
  22066. .catch(() => {});
  22067. } else {
  22068. let params = [
  22069. {
  22070. uid: this.userid,
  22071. cid: this.id,
  22072. stage: this.courseType,
  22073. task: this.taskCount,
  22074. content: JSON.stringify(this.studyJuri),
  22075. },
  22076. ];
  22077. this.ajax
  22078. .post(this.$store.state.api + "addWorks", params)
  22079. .then((res) => {
  22080. this.$message({
  22081. message: "提交成功",
  22082. type: "success",
  22083. });
  22084. this.isNoHomeWork = true;
  22085. this.dialogVisible = false;
  22086. })
  22087. .catch((err) => {
  22088. this.$message.error("提交失败");
  22089. console.error(err);
  22090. });
  22091. }
  22092. },
  22093. selectCount() {
  22094. let params = {
  22095. cid: this.id,
  22096. chid: this.courseType,
  22097. uid: this.userid,
  22098. };
  22099. this.ajax
  22100. .get(this.$store.state.api + "selectToolsCount", params)
  22101. .then((res) => {
  22102. for (var i = 0; i < res.data[0].length; i++) {
  22103. if (res.data[0][i].tools == 1) {
  22104. this.wbCount = res.data[0][i].count;
  22105. } else if (res.data[0][i].tools == 2) {
  22106. this.wordCount = res.data[0][i].count;
  22107. } else if (res.data[0][i].tools == 3) {
  22108. this.mindCount = res.data[0][i].count;
  22109. } else if (res.data[0][i].tools == 4) {
  22110. this.askCount = res.data[0][i].count;
  22111. } else if (res.data[0][i].tools == 6) {
  22112. this.noteCount = res.data[0][i].count;
  22113. } else if (res.data[0][i].tools == 7) {
  22114. this.mindNetWorkCount = res.data[0][i].count;
  22115. } else if (res.data[0][i].tools == 8) {
  22116. this.libraryCount = res.data[0][i].count;
  22117. } else if (res.data[0][i].tools == 16) {
  22118. this.workCount = res.data[0][i].count;
  22119. } else if (res.data[0][i].tools == 10) {
  22120. this.timeCount = res.data[0][i].count;
  22121. } else if (res.data[0][i].tools == 15) {
  22122. this.answerCount = res.data[0][i].count;
  22123. } else if (res.data[0][i].tools == 18) {
  22124. this.trainCount = res.data[0][i].count;
  22125. }
  22126. }
  22127. })
  22128. .catch((err) => {
  22129. console.error(err);
  22130. });
  22131. },
  22132. openTools(t, i, index, c, sName,id) {
  22133. var z = JSON.parse(c);
  22134. this.noteName = sName;
  22135. if (t == 4) {
  22136. this.radio = [];
  22137. this.isAnswer = false;
  22138. let b = z[0].anwer;
  22139. this.radio = b;
  22140. this.askJson = z[0].askJson;
  22141. this.isAnswer = true;
  22142. this.dialogVisible5 = true;
  22143. } else if (t == 45) {
  22144. this.radio = [];
  22145. this.isAnswer = false;
  22146. let b = z[0].anwer;
  22147. this.radio = b;
  22148. this.testJson = z[0].testJson;
  22149. this.isAnswer = true;
  22150. this.dialogVisibleChoice = true;
  22151. }else if(t == 69){
  22152. this.oldEnglishJson1 = {}
  22153. this.oldEnglishJson = {}
  22154. this.englishList1 = {}
  22155. this.newEngIndex = -1;
  22156. this.isNoUserid = false;
  22157. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22158. .toolChoose[i].englishList;
  22159. this.oldEnglishJson = z;
  22160. this.engWid = id;
  22161. this.newEnglishList = { engTitle:"",engText:"" }
  22162. this.newEnglishList1 = []
  22163. this.selectEngC(id,z);
  22164. }else if(t == 62){
  22165. this.videoType = 1;
  22166. this.videoJson = {};
  22167. this.videoJson = JSON.parse(c);
  22168. // this.videoJson =
  22169. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22170. // index
  22171. // ].toolChoose[i].videoJson;
  22172. this.dialogVisibleVideo = true;
  22173. }
  22174. // else if (t == 15) {
  22175. // this.answerQ = "";
  22176. // this.questionAnswer = "";
  22177. // this.answerQ = z[0].answerTitle;
  22178. // this.questionAnswer = z[0].answer;
  22179. // this.answerDialogVisible = true;
  22180. // }
  22181. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22182. },
  22183. fastText(p, t) {
  22184. if (t == 1) {
  22185. this.commentText += p;
  22186. } else {
  22187. this.eScore.eBzText += p;
  22188. }
  22189. },
  22190. addTools(t, i, index) {
  22191. var a = 0;
  22192. // this.taskCount = index;
  22193. this.toolindex = i;
  22194. if (t == 1) {
  22195. if (this.wbCount > 0) {
  22196. this.updateCount(this.wbCount, t);
  22197. } else {
  22198. this.wbCount++;
  22199. a = this.wbCount;
  22200. this.toolsCount(a, t);
  22201. }
  22202. window.parent.postMessage(
  22203. {
  22204. tools: "1",
  22205. cid: this.id,
  22206. stage: this.courseType,
  22207. task: this.taskCount,
  22208. tool: i,
  22209. },
  22210. "*"
  22211. );
  22212. } else if (t == 2) {
  22213. if (this.wordCount > 0) {
  22214. this.updateCount(this.wordCount, t);
  22215. } else {
  22216. this.wordCount++;
  22217. a = this.wordCount;
  22218. this.toolsCount(a, t);
  22219. }
  22220. window.parent.postMessage({ tools: "2" }, "*");
  22221. } else if (t == 3) {
  22222. if (this.mindCount > 0) {
  22223. this.updateCount(this.mindCount, t);
  22224. } else {
  22225. this.mindCount++;
  22226. a = this.mindCount;
  22227. this.toolsCount(a, t);
  22228. }
  22229. window.parent.postMessage(
  22230. {
  22231. tools: "3",
  22232. cid: this.id,
  22233. stage: this.courseType,
  22234. task: this.taskCount,
  22235. tool: i,
  22236. },
  22237. "*"
  22238. );
  22239. } else if (t == 4) {
  22240. this.radio = [];
  22241. this.noteName = "";
  22242. this.isAnswer = false;
  22243. if (this.askCount > 0) {
  22244. this.updateCount(this.askCount, t);
  22245. } else {
  22246. this.askCount++;
  22247. a = this.askCount;
  22248. this.toolsCount(a, t);
  22249. }
  22250. if (!this.dialogVisible2) {
  22251. this.askJson.askJson =
  22252. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22253. index
  22254. ].toolChoose[i].askJson;
  22255. this.askJson.askTitle =
  22256. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22257. index
  22258. ].toolChoose[i].askTitle;
  22259. this.askJson.askCount =
  22260. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22261. index
  22262. ].toolChoose[i].askCount;
  22263. } else {
  22264. this.askJson.askJson = this.chapTools.askJson.askJson;
  22265. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22266. this.askJson.askCount = this.chapTools.askJson.askCount;
  22267. }
  22268. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22269. if (this.askJson.askJson[k].type == "2") {
  22270. this.radio.push([]);
  22271. } else {
  22272. this.radio.push("");
  22273. }
  22274. }
  22275. this.dialogVisible5 = true;
  22276. // window.parent.postMessage({ tools: "4" }, "*");
  22277. } else if (t == 45) {
  22278. this.noteName = "";
  22279. this.radio = [];
  22280. this.isAnswer = false;
  22281. if (this.askCount > 0) {
  22282. this.updateCount(this.askCount, t);
  22283. } else {
  22284. this.askCount++;
  22285. a = this.askCount;
  22286. this.toolsCount(a, t);
  22287. }
  22288. this.testJson =
  22289. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22290. index
  22291. ].toolChoose[i].testJson;
  22292. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22293. if (this.testJson.testJson[k].type == "2") {
  22294. this.radio.push([]);
  22295. } else {
  22296. this.radio.push("");
  22297. }
  22298. }
  22299. this.dialogVisibleChoice = true;
  22300. // window.parent.postMessage({ tools: "4" }, "*");
  22301. } else if (t == 5) {
  22302. if (this.scoreCount > 0) {
  22303. this.updateCount(this.scoreCount, t);
  22304. } else {
  22305. this.scoreCount++;
  22306. a = this.scoreCount;
  22307. this.toolsCount(a, t);
  22308. }
  22309. this.dialogVisible4 = true;
  22310. // window.parent.postMessage({ tools: "5" }, "*");
  22311. } else if (t == 6) {
  22312. if (this.noteCount > 0) {
  22313. this.updateCount(this.noteCount, t);
  22314. } else {
  22315. this.noteCount++;
  22316. a = this.noteCount;
  22317. this.toolsCount(a, t);
  22318. }
  22319. window.parent.postMessage(
  22320. {
  22321. tools: "6",
  22322. cid: this.id,
  22323. stage: this.courseType,
  22324. task: this.taskCount,
  22325. tool: i,
  22326. },
  22327. "*"
  22328. );
  22329. } else if (t == 7) {
  22330. if (this.mindNetWorkCount > 0) {
  22331. this.updateCount(this.mindNetWorkCount, t);
  22332. } else {
  22333. this.mindNetWorkCount++;
  22334. a = this.mindNetWorkCount;
  22335. this.toolsCount(a, t);
  22336. }
  22337. window.parent.postMessage(
  22338. {
  22339. tools: "7",
  22340. cid: this.id,
  22341. stage: this.courseType,
  22342. task: this.taskCount,
  22343. tool: i,
  22344. },
  22345. "*"
  22346. );
  22347. } else if (t == 16) {
  22348. if (this.workCount > 0) {
  22349. this.updateCount(this.workCount, t);
  22350. } else {
  22351. this.workCount++;
  22352. a = this.workCount;
  22353. this.toolsCount(a, t);
  22354. }
  22355. this.dialogVisible = true;
  22356. } else if (t == 50) {
  22357. if (this.tType == 2) {
  22358. this.$message.error("不支持学生使用");
  22359. return;
  22360. }
  22361. this.plworkFile = [];
  22362. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  22363. if (!this.uploadCid) {
  22364. this.$message.error(
  22365. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  22366. );
  22367. return;
  22368. }
  22369. // this.uploadCid =
  22370. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22371. // index
  22372. // ].toolChoose[i].uploadJson[0];
  22373. this.selectUploadStudent(2);
  22374. } else if (t == 8) {
  22375. if (this.libraryCount > 0) {
  22376. this.updateCount(this.libraryCount, t);
  22377. } else {
  22378. this.libraryCount++;
  22379. a = this.libraryCount;
  22380. this.toolsCount(a, t);
  22381. }
  22382. window.parent.postMessage({ tools: "8" }, "*");
  22383. } else if (t == 17) {
  22384. if (this.libraryCount > 0) {
  22385. this.updateCount(this.libraryCount, t);
  22386. } else {
  22387. this.libraryCount++;
  22388. a = this.libraryCount;
  22389. this.toolsCount(a, t);
  22390. }
  22391. window.parent.postMessage({ tools: "17" }, "*");
  22392. } else if (t == 18) {
  22393. if (this.trainCount > 0) {
  22394. this.updateCount(this.trainCount, t);
  22395. } else {
  22396. this.trainCount++;
  22397. a = this.trainCount;
  22398. this.toolsCount(a, t);
  22399. }
  22400. window.parent.postMessage({ tools: "18" }, "*");
  22401. } else if (t == 10) {
  22402. if (this.timeCount > 0) {
  22403. this.updateCount(this.timeCount, t);
  22404. } else {
  22405. this.timeCount++;
  22406. a = this.timeCount;
  22407. this.toolsCount(a, t);
  22408. }
  22409. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  22410. .taskJson[index].toolChoose[i].preTime
  22411. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22412. .toolChoose[i].preTime
  22413. : "";
  22414. this.timeDialogVisible = true;
  22415. } else if (t == 15) {
  22416. this.answerQ = "";
  22417. this.questionAnswer = "";
  22418. if (this.answerCount > 0) {
  22419. this.updateCount(this.answerCount, t);
  22420. } else {
  22421. this.answerCount++;
  22422. a = this.answerCount;
  22423. this.toolsCount(a, t);
  22424. }
  22425. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22426. .taskJson[index].toolChoose[i].answerQ
  22427. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22428. .toolChoose[i].answerQ
  22429. : "";
  22430. this.answerDialogVisible = true;
  22431. } else if (t == 21) {
  22432. window.parent.postMessage({ tools: "21" }, "*");
  22433. } else if (t == 22) {
  22434. window.parent.postMessage({ tools: "22" }, "*");
  22435. } else if (t == 23) {
  22436. window.parent.postMessage({ tools: "23" }, "*");
  22437. } else if (t == 24) {
  22438. window.parent.postMessage({ tools: "24" }, "*");
  22439. } else if (t == 25) {
  22440. window.parent.postMessage({ tools: "25" }, "*");
  22441. } else if (t == 31) {
  22442. window.parent.postMessage({ tools: "31" }, "*");
  22443. } else if (t == 28) {
  22444. window.parent.postMessage({ tools: "28" }, "*");
  22445. } else if (t == 37) {
  22446. window.parent.postMessage({ tools: "37" }, "*");
  22447. } else if (t == 38) {
  22448. window.parent.postMessage({ tools: "38" }, "*");
  22449. } else if (t == 39) {
  22450. window.parent.postMessage({ tools: "39" }, "*");
  22451. } else if (t == 32) {
  22452. window.parent.postMessage({ tools: "32" }, "*");
  22453. } else if (t == 66) {
  22454. window.parent.postMessage({ tools: "66" }, "*");
  22455. } else if (t == 67) {
  22456. window.parent.postMessage({ tools: "67" }, "*");
  22457. } else if (t == 68) {
  22458. window.parent.postMessage({ tools: "68" }, "*");
  22459. } else if (t == 57) {
  22460. // window.parent.postMessage({ tools: "57" }, "*");
  22461. window.parent.postMessage(
  22462. {
  22463. tools: "57u",
  22464. cid: this.id,
  22465. stage: this.courseType,
  22466. task: this.taskCount,
  22467. tool: i,
  22468. },
  22469. "*"
  22470. );
  22471. } else if (t == 58) {
  22472. window.parent.postMessage({ tools: "58" }, "*");
  22473. } else if (t == 59) {
  22474. window.parent.postMessage({ tools: "59" }, "*");
  22475. } else if (t == 60) {
  22476. window.parent.postMessage({ tools: "60" }, "*");
  22477. } else if (t == 61) {
  22478. window.parent.postMessage({ tools: "61" }, "*");
  22479. } else if (t == 63) {
  22480. window.parent.postMessage({ tools: "63" }, "*");
  22481. } else if (t == 71) {
  22482. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  22483. // this.$message.error("该工具不可使用");
  22484. // return
  22485. // }
  22486. window.parent.postMessage({ tools: "71" }, "*");
  22487. } else if (t == 72) {
  22488. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  22489. .taskJson[index].toolChoose[i].appJson
  22490. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22491. .toolChoose[i].appJson
  22492. : "";
  22493. if(!item || !item.url){
  22494. this.$message.error("应用连接为空, 请到课程管理中添加");
  22495. return;
  22496. }
  22497. if (!document.fullscreenElement) {
  22498. this.enterFullScreen();
  22499. }
  22500. this.$refs.appStoreC.getData(item.url,this.userid)
  22501. // window.parent.postMessage({ tools: "72", data: item }, "*");
  22502. // window.open(item.url, "_blank");
  22503. } else if (t == 69) {
  22504. if (this.worksStudent[i].length) {
  22505. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22506. if (this.userid == this.worksStudent[i][k].userid) {
  22507. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  22508. break;
  22509. } else {
  22510. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22511. }
  22512. }
  22513. } else {
  22514. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  22515. }
  22516. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  22517. .taskJson[index].toolChoose[i].englishList
  22518. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22519. .toolChoose[i].englishList
  22520. : {};
  22521. this.englishToolIndex = i;
  22522. this.myAnList = this.myAnswerList1;
  22523. this.engDialogVisible = true;
  22524. } else if (t == 70) {
  22525. if (this.worksStudent[i].length) {
  22526. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22527. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  22528. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  22529. break;
  22530. } else {
  22531. this.englishVoiceJsonWork = [];
  22532. }
  22533. }
  22534. } else {
  22535. this.englishVoiceJsonWork = [];
  22536. }
  22537. let englishVoiceJson = {}
  22538. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22539. .taskJson[index].toolChoose[i].englishVoiceJson
  22540. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22541. .toolChoose[i].englishVoiceJson
  22542. : {};
  22543. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  22544. this.EnglishVoiceDialog = true;
  22545. } else if (t == 65) {
  22546. if (this.tType == 2) {
  22547. this.$message.error("不支持学生使用");
  22548. return;
  22549. }
  22550. this.uploadCid = this.tcid;
  22551. if (!this.uploadCid) {
  22552. this.$message.error(
  22553. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  22554. );
  22555. return;
  22556. }
  22557. this.selectPickStudent();
  22558. } else if (t == 26) {
  22559. window.parent.postMessage(
  22560. {
  22561. tools: "26",
  22562. cid: this.id,
  22563. stage: this.courseType,
  22564. task: this.taskCount,
  22565. tool: i,
  22566. },
  22567. "*"
  22568. );
  22569. } else if (t == 40) {
  22570. if (this.evalCount > 0) {
  22571. this.updateCount(this.evalCount, t);
  22572. } else {
  22573. this.evalCount++;
  22574. a = this.evalCount;
  22575. this.toolsCount(a, t);
  22576. }
  22577. this.eScore = { eBzText: "", eStar: [] };
  22578. if (this.worksStudent[i].length) {
  22579. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22580. if (this.userid == this.worksStudent[i][k].userid) {
  22581. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22582. this.rateJson =
  22583. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22584. index
  22585. ].toolChoose[i].rateJson;
  22586. break;
  22587. } else {
  22588. this.rateJson =
  22589. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22590. index
  22591. ].toolChoose[i].rateJson;
  22592. }
  22593. }
  22594. } else {
  22595. this.rateJson =
  22596. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22597. index
  22598. ].toolChoose[i].rateJson;
  22599. }
  22600. this.isStar = false;
  22601. this.studentEvalDialogVisible = true;
  22602. } else if (t == 41) {
  22603. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22604. .taskJson[index].toolChoose[i].selectJson
  22605. ? JSON.parse(
  22606. JSON.stringify(
  22607. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22608. index
  22609. ].toolChoose[i].selectJson
  22610. )
  22611. )
  22612. : { url: "", select: [], answer: [] };
  22613. if (this.worksStudent[i].length) {
  22614. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22615. if (this.userid == this.worksStudent[i][k].userid) {
  22616. var a = this.worksStudent[i][k].works.split(",");
  22617. for (var ki = 0; ki < a.length; ki++) {
  22618. a[ki] = parseInt(a[ki]);
  22619. }
  22620. this.selectAnswer = {
  22621. answer: a,
  22622. stu: this.worksStudent[i][k].sName,
  22623. };
  22624. break;
  22625. } else {
  22626. this.selectAnswer = { answer: [], stu: "" };
  22627. }
  22628. }
  22629. } else {
  22630. this.selectAnswer = { answer: [], stu: "" };
  22631. }
  22632. this.isSelect = false;
  22633. this.dialogVisibleSelect = true;
  22634. } else if (t == 44) {
  22635. window.parent.postMessage({ tools: "44" }, "*");
  22636. } else if (t == 47) {
  22637. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22638. .taskJson[index].toolChoose[i].sentenceList
  22639. ? JSON.parse(
  22640. JSON.stringify(
  22641. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22642. index
  22643. ].toolChoose[i].sentenceList
  22644. )
  22645. )
  22646. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22647. for (var q = 0; q < this.sentenceList.length; q++) {
  22648. this.sentenceList[q].chooseSenList = [];
  22649. this.sentenceList[q].addChangeSen = [];
  22650. this.sentenceList[q].addChangeSen = JSON.parse(
  22651. JSON.stringify(this.sentenceList[q].addSentence)
  22652. );
  22653. this.sentenceList[q].chooseSenList.length =
  22654. this.sentenceList[q].rightAnswer.length;
  22655. }
  22656. this.dialogVisibleSentence = true;
  22657. } else if (t == 48) {
  22658. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22659. .taskJson[index].toolChoose[i].tableJson
  22660. ? JSON.parse(
  22661. JSON.stringify(
  22662. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22663. index
  22664. ].toolChoose[i].tableJson
  22665. )
  22666. )
  22667. : { text: "" };
  22668. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  22669. if (this.worksStudent[i].length) {
  22670. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22671. if (this.userid == this.worksStudent[i][k].userid) {
  22672. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22673. break;
  22674. }
  22675. }
  22676. }
  22677. this.dialogVisibleTable = true;
  22678. } else if (t == 52) {
  22679. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22680. .taskJson[index].toolChoose[i].wordJson
  22681. ? JSON.parse(
  22682. JSON.stringify(
  22683. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22684. index
  22685. ].toolChoose[i].wordJson
  22686. )
  22687. )
  22688. : { text: "" };
  22689. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  22690. if (this.worksStudent[i].length) {
  22691. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22692. if (this.userid == this.worksStudent[i][k].userid) {
  22693. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22694. break;
  22695. }
  22696. }
  22697. }
  22698. this.dialogVisibleWord = true;
  22699. } else if (t == 49) {
  22700. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  22701. return
  22702. }
  22703. this.groupJson =
  22704. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22705. index
  22706. ].toolChoose[i].groupJson;
  22707. this.islock = this.groupJson.islock == 1 ? true : false;
  22708. this.dialogVisibleGroup = true;
  22709. } else if (t == 62) {
  22710. this.videoType = 0;
  22711. this.videoJson = {};
  22712. this.videoJson =
  22713. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22714. index
  22715. ].toolChoose[i].videoJson;
  22716. this.dialogVisibleVideo = true;
  22717. }
  22718. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  22719. },
  22720. teacherWorkSubmit(t, i, index, s) {
  22721. this.sStudent = s;
  22722. this.toolindex = i;
  22723. this.sTool = t;
  22724. if (this.tType !== "1" && this.tType !== "4") {
  22725. return;
  22726. }
  22727. if (t == 16 || t == 32 || t == 50) {
  22728. this.dialogVisibleWorks = true;
  22729. } else if (t == 15) {
  22730. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  22731. .taskJson[index].toolChoose[i].answerQ
  22732. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22733. .toolChoose[i].answerQ
  22734. : "";
  22735. this.questionAnswer = "";
  22736. this.answerDialogVisibleTeacher = true; //问答
  22737. } else if (t == 52) {
  22738. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22739. .taskJson[index].toolChoose[i].wordJson
  22740. ? JSON.parse(
  22741. JSON.stringify(
  22742. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22743. index
  22744. ].toolChoose[i].wordJson
  22745. )
  22746. )
  22747. : { text: "" };
  22748. if (this.worksStudent[i].length) {
  22749. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22750. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22751. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  22752. break;
  22753. }
  22754. }
  22755. }
  22756. this.dialogVisibleWordTeacher = true; //文档
  22757. } else if (t == 4) {
  22758. this.radio = [];
  22759. this.noteName = "";
  22760. this.isAnswer = false;
  22761. if (this.askCount > 0) {
  22762. this.updateCount(this.askCount, t);
  22763. } else {
  22764. this.askCount++;
  22765. a = this.askCount;
  22766. this.toolsCount(a, t);
  22767. }
  22768. if (!this.dialogVisible2) {
  22769. this.askJson.askJson =
  22770. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22771. index
  22772. ].toolChoose[i].askJson;
  22773. this.askJson.askTitle =
  22774. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22775. index
  22776. ].toolChoose[i].askTitle;
  22777. this.askJson.askCount =
  22778. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22779. index
  22780. ].toolChoose[i].askCount;
  22781. } else {
  22782. this.askJson.askJson = this.chapTools.askJson.askJson;
  22783. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22784. this.askJson.askCount = this.chapTools.askJson.askCount;
  22785. }
  22786. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22787. if (this.askJson.askJson[k].type == "2") {
  22788. this.radio.push([]);
  22789. } else {
  22790. this.radio.push("");
  22791. }
  22792. }
  22793. this.dialogVisible5Teacher = true;
  22794. } else if (t == 45) {
  22795. this.noteName = "";
  22796. this.radio = [];
  22797. this.isAnswer = false;
  22798. if (this.askCount > 0) {
  22799. this.updateCount(this.askCount, t);
  22800. } else {
  22801. this.askCount++;
  22802. a = this.askCount;
  22803. this.toolsCount(a, t);
  22804. }
  22805. this.testJson =
  22806. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22807. index
  22808. ].toolChoose[i].testJson;
  22809. for (var k = 0; k < this.testJson.testJson.length; k++) {
  22810. if (this.testJson.testJson[k].type == "2") {
  22811. this.radio.push([]);
  22812. } else {
  22813. this.radio.push("");
  22814. }
  22815. }
  22816. this.dialogVisibleChoiceTeacher = true;
  22817. } else if (t == 41) {
  22818. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22819. .taskJson[index].toolChoose[i].selectJson
  22820. ? JSON.parse(
  22821. JSON.stringify(
  22822. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22823. index
  22824. ].toolChoose[i].selectJson
  22825. )
  22826. )
  22827. : { url: "", select: [], answer: [] };
  22828. if (this.worksStudent[i].length) {
  22829. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22830. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22831. var a = this.worksStudent[i][k].works.split(",");
  22832. for (var ki = 0; ki < a.length; ki++) {
  22833. a[ki] = parseInt(a[ki]);
  22834. }
  22835. this.selectAnswer = {
  22836. answer: a,
  22837. stu: this.worksStudent[i][k].sName,
  22838. };
  22839. break;
  22840. } else {
  22841. this.selectAnswer = { answer: [], stu: "" };
  22842. }
  22843. }
  22844. } else {
  22845. this.selectAnswer = { answer: [], stu: "" };
  22846. }
  22847. this.isSelect = false;
  22848. this.dialogVisibleSelectTeacher = true;
  22849. } else if (t == 47) {
  22850. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  22851. .taskJson[index].toolChoose[i].sentenceList
  22852. ? JSON.parse(
  22853. JSON.stringify(
  22854. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22855. index
  22856. ].toolChoose[i].sentenceList
  22857. )
  22858. )
  22859. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  22860. for (var q = 0; q < this.sentenceList.length; q++) {
  22861. this.sentenceList[q].chooseSenList = [];
  22862. this.sentenceList[q].addChangeSen = [];
  22863. this.sentenceList[q].addChangeSen = JSON.parse(
  22864. JSON.stringify(this.sentenceList[q].addSentence)
  22865. );
  22866. this.sentenceList[q].chooseSenList.length =
  22867. this.sentenceList[q].rightAnswer.length;
  22868. }
  22869. this.dialogVisibleSentenceTeacher = true;
  22870. } else if (t == 48) {
  22871. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  22872. .taskJson[index].toolChoose[i].tableJson
  22873. ? JSON.parse(
  22874. JSON.stringify(
  22875. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22876. index
  22877. ].toolChoose[i].tableJson
  22878. )
  22879. )
  22880. : { text: "" };
  22881. if (this.worksStudent[i].length) {
  22882. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22883. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22884. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  22885. break;
  22886. }
  22887. }
  22888. }
  22889. this.dialogVisibleTableTeacher = true;
  22890. } else if (t == 40) {
  22891. if (this.evalCount > 0) {
  22892. this.updateCount(this.evalCount, t);
  22893. } else {
  22894. this.evalCount++;
  22895. a = this.evalCount;
  22896. this.toolsCount(a, t);
  22897. }
  22898. this.eScore = { eBzText: "", eStar: [] };
  22899. if (this.worksStudent[i].length) {
  22900. for (var k = 0; k < this.worksStudent[i].length; k++) {
  22901. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  22902. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  22903. this.rateJson =
  22904. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22905. index
  22906. ].toolChoose[i].rateJson;
  22907. break;
  22908. } else {
  22909. this.rateJson =
  22910. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22911. index
  22912. ].toolChoose[i].rateJson;
  22913. }
  22914. }
  22915. } else {
  22916. this.rateJson =
  22917. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22918. index
  22919. ].toolChoose[i].rateJson;
  22920. }
  22921. this.isStar = false;
  22922. this.studentEvalDialogVisibleTeacher = true;
  22923. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  22924. window.parent.postMessage(
  22925. {
  22926. tools: t + "teacher",
  22927. cid: this.id,
  22928. stage: this.courseType,
  22929. task: this.taskCount,
  22930. tool: i,
  22931. student: this.sStudent,
  22932. },
  22933. "*"
  22934. );
  22935. }else if (t == 72) {
  22936. if (!document.fullscreenElement) {
  22937. this.enterFullScreen();
  22938. }
  22939. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  22940. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  22941. }
  22942. },
  22943. openCocoPi(tool, i, uid, uname) {
  22944. let student = {
  22945. userid: uid,
  22946. student: uname,
  22947. };
  22948. if (tool == 57) {
  22949. window.parent.postMessage(
  22950. {
  22951. tools: tool + "teacher",
  22952. cid: this.id,
  22953. stage: this.courseType,
  22954. task: this.taskCount,
  22955. tool: i,
  22956. student: student,
  22957. },
  22958. "*"
  22959. );
  22960. }
  22961. },
  22962. setRightAnswer(s, i, j) {
  22963. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  22964. if (
  22965. this.sentenceList[i].chooseSenList[q] == undefined ||
  22966. this.sentenceList[i].chooseSenList[q] == ""
  22967. ) {
  22968. this.sentenceList[i].chooseSenList[q] = s;
  22969. this.sentenceList[i].addChangeSen[j] = "";
  22970. break;
  22971. }
  22972. }
  22973. this.$forceUpdate();
  22974. },
  22975. returnCard(r, i, j) {
  22976. var a = this.sentenceList[i].addSentence.indexOf(r);
  22977. this.sentenceList[i].chooseSenList[j] = "";
  22978. this.sentenceList[i].addChangeSen[a] = r;
  22979. this.$forceUpdate();
  22980. },
  22981. // addSentenceTool() {
  22982. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22983. // this.taskCount
  22984. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  22985. // this.sentenceList = [
  22986. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  22987. // ];
  22988. // this.dialogVisibleSentence = false;
  22989. // },
  22990. toolsCount(a, t) {
  22991. let params = {
  22992. cid: this.id,
  22993. chid: this.courseType,
  22994. uid: this.userid,
  22995. tid: t,
  22996. count: a,
  22997. };
  22998. this.ajax
  22999. .get(this.$store.state.api + "insertToolsCount", params)
  23000. .then((res) => {
  23001. this.selectCount();
  23002. })
  23003. .catch((err) => {
  23004. console.error(err);
  23005. });
  23006. },
  23007. updateCount(c, t) {
  23008. c++;
  23009. let params = {
  23010. cid: this.id,
  23011. chid: this.courseType,
  23012. uid: this.userid,
  23013. tid: t,
  23014. count: c,
  23015. };
  23016. this.ajax
  23017. .get(this.$store.state.api + "updateToolsCount", params)
  23018. .then((res) => {
  23019. this.selectCount();
  23020. })
  23021. .catch((err) => {
  23022. console.error(err);
  23023. });
  23024. },
  23025. checkEva() {
  23026. if (this.evalua != "") {
  23027. for (var i = 0; i < this.evaJuri.length; i++) {
  23028. if (this.evalua == this.evaJuri[i].id) {
  23029. this.eTitle = this.evaJuri[i].title;
  23030. this.eJson = JSON.parse(this.evaJuri[i].content);
  23031. }
  23032. }
  23033. this.$forceUpdate();
  23034. setTimeout(() => {
  23035. this.setMindData();
  23036. }, 0);
  23037. }
  23038. },
  23039. selectEva() {
  23040. let params = {
  23041. oid: this.oid,
  23042. };
  23043. this.ajax
  23044. .get(this.$store.state.api + "selectAllEvaluation", params)
  23045. .then((res) => {
  23046. this.evaJuri = res.data[0];
  23047. })
  23048. .catch((err) => {
  23049. console.error(err);
  23050. });
  23051. },
  23052. setMindData() {
  23053. this.data.data = [];
  23054. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23055. let _eJson = Object.keys(this.eJson);
  23056. let _e = this.eJson;
  23057. for (let i = 0; i < _eJson.length; i++) {
  23058. let element = _e[_eJson[i]];
  23059. this.data.data.push({
  23060. id: element.id,
  23061. parentid: "root",
  23062. topic: element.name,
  23063. });
  23064. let _eJsonc = Object.keys(element.child);
  23065. let _e2 = element.child;
  23066. for (let j = 0; j < _eJsonc.length; j++) {
  23067. let _ec = _e2[_eJsonc[j]];
  23068. this.data.data.push({
  23069. id: _ec.id,
  23070. parentid: element.id,
  23071. topic: _ec.name,
  23072. });
  23073. let _eJsonz = Object.keys(_ec.child);
  23074. let _e3 = _ec.child;
  23075. for (let z = 0; z < _eJsonz.length; z++) {
  23076. let _ez = _e3[_eJsonz[z]];
  23077. this.data.data.push({
  23078. id: _ez.id,
  23079. parentid: _ec.id,
  23080. topic: _ez.name,
  23081. });
  23082. }
  23083. }
  23084. }
  23085. this.$forceUpdate();
  23086. },
  23087. checkFileFull(type, url) {
  23088. this.fullDialogVisible = true;
  23089. this.fulltype = type;
  23090. this.fullUrl = url;
  23091. },
  23092. async checkFileFull1(t, f) {
  23093. this.fullDialogVisible = true;
  23094. if (t == 6) {
  23095. this.fulltype = 1;
  23096. this.fullUrl = JSON.parse(JSON.stringify(f));
  23097. } else if (t == 8) {
  23098. this.fulltype = 2;
  23099. this.fullUrl = f.url;
  23100. } else if (
  23101. t == 3 &&
  23102. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23103. "PDF"
  23104. ) {
  23105. this.fulltype = 3;
  23106. this.fullUrl = f.url;
  23107. } else if (t == 3) {
  23108. this.fulltype = 2;
  23109. let _uuurl = await this.checkLink(f.url);
  23110. console.log(_uuurl)
  23111. this.fullUrl =
  23112. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23113. }
  23114. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23115. },
  23116. openSname(n, id, i, uid) {
  23117. this.snameWid = id;
  23118. this.worksSName = n;
  23119. this.worksSid = uid == n ? "" : uid;
  23120. this.toolindex = i;
  23121. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23122. if (!this.uploadCid) {
  23123. this.$message.error(
  23124. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23125. );
  23126. return;
  23127. }
  23128. this.selectUploadStudent(1);
  23129. },
  23130. updateName() {
  23131. let params = {
  23132. n: this.worksSName,
  23133. cid: this.snameWid,
  23134. };
  23135. this.ajax
  23136. .get(this.$store.state.api + "updateCourseWorksName", params)
  23137. .then((res) => {
  23138. this.$message({
  23139. message: "修改成功",
  23140. type: "success",
  23141. });
  23142. this.dialogVisibleSname = false;
  23143. this.getCourseDetail(2);
  23144. this.snameWid = "";
  23145. this.worksSName = "";
  23146. })
  23147. .catch((err) => {
  23148. console.error(err);
  23149. });
  23150. },
  23151. downloadFile2(f) {
  23152. // const loading = this.$loading.service({
  23153. // background: "rgba(255, 255, 255, 0.7)",
  23154. // target: document.body,
  23155. // text: "文件加载中...",
  23156. // });
  23157. // let url2 = f.url;
  23158. // let _url2 = "";
  23159. // if (
  23160. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23161. // ) {
  23162. // _url2 = url2.split(
  23163. // "https://view.officeapps.live.com/op/view.aspx?src="
  23164. // )[1];
  23165. // } else {
  23166. // _url2 = url2;
  23167. // }
  23168. // let params = {
  23169. // url: _url2,
  23170. // name: f.name,
  23171. // };
  23172. // this.ajax
  23173. // .get(this.$store.state.api + "download", params)
  23174. // .then((res) => {
  23175. // loading.close();
  23176. // let content = res.data.data.data;
  23177. // let ab = new ArrayBuffer(content.length);
  23178. // let view = new Uint8Array(ab);
  23179. // for (var i = 0; i < content.length; ++i) {
  23180. // view[i] = content[i];
  23181. // }
  23182. // let elink = document.createElement("a");
  23183. // elink.download = f.name;
  23184. // elink.style.display = "none";
  23185. // let blob = new Blob([ab], {
  23186. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23187. // });
  23188. // elink.href = URL.createObjectURL(blob);
  23189. // document.body.appendChild(elink);
  23190. // elink.click();
  23191. // document.body.removeChild(elink);
  23192. // })
  23193. // .catch((err) => {
  23194. // loading.close();
  23195. // console.error(err);
  23196. // });
  23197. var credentials = {
  23198. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23199. secretAccessKey: "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",
  23200. }; //秘钥形式的登录上传
  23201. window.AWS.config.update(credentials);
  23202. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23203. let url2 = f.url;
  23204. let _url2 = "";
  23205. if (
  23206. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23207. ) {
  23208. _url2 = url2.split(
  23209. "https://view.officeapps.live.com/op/view.aspx?src="
  23210. )[1];
  23211. } else {
  23212. _url2 = url2;
  23213. }
  23214. let _this = this;
  23215. _this.downLoading = true
  23216. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23217. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23218. var params = {
  23219. Bucket: "ccrb",
  23220. Key: name
  23221. };
  23222. s3.getObject(params, function (err, data) {
  23223. _this.downLoading = false
  23224. if (err) console.log(err, err.stack); // an error occurred
  23225. else {
  23226. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23227. let a = document.createElement("a");
  23228. a.name = f.name;
  23229. a.href = url;
  23230. a.download = f.name;
  23231. a.click();
  23232. console.log(data);
  23233. } // sxuccessful response
  23234. });
  23235. return;
  23236. let url = f.url;
  23237. let _url = "";
  23238. if (
  23239. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23240. ) {
  23241. _url = url.split(
  23242. "https://view.officeapps.live.com/op/view.aspx?src="
  23243. )[1];
  23244. } else {
  23245. _url = url;
  23246. }
  23247. _this.downLoading = true
  23248. // const loading = _this.$loading.service({
  23249. // background: "rgba(255, 255, 255, 0.7)",
  23250. // target: document.body,
  23251. // text: "文件加载中...",
  23252. // });
  23253. let x = new XMLHttpRequest();
  23254. x.open("GET", _url, true);
  23255. x.responseType = "blob";
  23256. x.onload = function () {
  23257. _this.downLoading = false
  23258. // loading.close();
  23259. let url = window.URL.createObjectURL(new Blob([x.response]));
  23260. let a = document.createElement("a");
  23261. a.name = f.name;
  23262. a.href = url;
  23263. a.download = f.name;
  23264. a.click();
  23265. };
  23266. x.send();
  23267. },
  23268. downloadFile(url) {
  23269. let hz = url.substring(url.lastIndexOf(".") + 1);
  23270. if (hz == "txt" || hz == "md") {
  23271. this.lookTxt(url);
  23272. return;
  23273. }
  23274. var credentials = {
  23275. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23276. secretAccessKey: "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",
  23277. }; //秘钥形式的登录上传
  23278. window.AWS.config.update(credentials);
  23279. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23280. let url2 = url;
  23281. let _url2 = "";
  23282. if (
  23283. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23284. ) {
  23285. _url2 = url2.split(
  23286. "https://view.officeapps.live.com/op/view.aspx?src="
  23287. )[1];
  23288. } else {
  23289. _url2 = url2;
  23290. }
  23291. const loading2 = this.$loading.service({
  23292. background: "rgba(255, 255, 255, 0.7)",
  23293. target: document.body,
  23294. text: "文件加载中...",
  23295. });
  23296. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23297. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23298. var params = {
  23299. Bucket: "ccrb",
  23300. Key: name
  23301. };
  23302. s3.getObject(params, function (err, data) {
  23303. loading2.close();
  23304. if (err) console.log(err, err.stack); // an error occurred
  23305. else {
  23306. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23307. let a = document.createElement("a");
  23308. a.name = name;
  23309. a.href = url;
  23310. a.download = name;
  23311. a.click();
  23312. console.log(data);
  23313. } // sxuccessful response
  23314. });
  23315. return;
  23316. let _this = this;
  23317. let _url = "";
  23318. if (
  23319. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23320. ) {
  23321. _url = url.split(
  23322. "https://view.officeapps.live.com/op/view.aspx?src="
  23323. )[1];
  23324. } else {
  23325. _url = url;
  23326. }
  23327. const x = new XMLHttpRequest();
  23328. x.open("GET", _url, true);
  23329. x.responseType = "blob";
  23330. // this.downLoading = true
  23331. const loading = _this.$loading.service({
  23332. background: "rgba(255, 255, 255, 0.7)",
  23333. target: document.body,
  23334. text: "文件加载中...",
  23335. });
  23336. // _this.$message.success("文件下载中...");
  23337. x.onload = function (e) {
  23338. this.downLoading = false
  23339. loading.close();
  23340. let content = x.response;
  23341. let elink = document.createElement("a");
  23342. elink.download = decodeURI(
  23343. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  23344. );
  23345. elink.style.display = "none";
  23346. let blob = new Blob([content]);
  23347. elink.href = URL.createObjectURL(blob);
  23348. document.body.appendChild(elink);
  23349. elink.click();
  23350. document.body.removeChild(elink);
  23351. };
  23352. x.send();
  23353. },
  23354. openLine(url) {
  23355. window.open(url);
  23356. },
  23357. resize() {
  23358. if (document.getElementsByClassName("box_course").length) {
  23359. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  23360. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  23361. if (this.showType == 2 || this.showType == 3) {
  23362. document.getElementsByClassName("navBox")[0].style.height =
  23363. a - 40 + 0+ "px";
  23364. } else {
  23365. document.getElementsByClassName("navBox")[0].style.height =
  23366. a - 40 + "px";
  23367. }
  23368. }
  23369. this.Stbodywidth =
  23370. document.getElementsByClassName("student_body").length &&
  23371. document.getElementsByClassName("student_body")[0].offsetWidth;
  23372. },
  23373. closeDraw() {
  23374. this.bg = null;
  23375. this.drawShow = false;
  23376. },
  23377. showPicturePaint(url) {
  23378. let params = {
  23379. img: url,
  23380. };
  23381. this.ajax
  23382. .get(this.$store.state.api + "imgToBase64", params)
  23383. .then((res) => {
  23384. this.drawShow = true;
  23385. this.bg = res.data[0].img;
  23386. })
  23387. .catch((err) => {
  23388. console.error(err);
  23389. });
  23390. },
  23391. addImgDraw(base64) {
  23392. let file = { name: "批注图.png" };
  23393. let img = this.dataUrlToFile(base64, file);
  23394. this.beforeUpload1(img, 5);
  23395. },
  23396. addImgDrawImG(url) {
  23397. // console.log(url);
  23398. let params = [
  23399. {
  23400. wid: this.commentDetail.wid,
  23401. img: url,
  23402. },
  23403. ];
  23404. this.ajax
  23405. .post(this.$store.state.api + "updateCourseWorks", params)
  23406. .then((res) => {
  23407. this.$message({
  23408. message: "提交成功",
  23409. type: "success",
  23410. });
  23411. this.drawShow = false;
  23412. this.bg = "";
  23413. this.selectSWorks();
  23414. this.selectStudent();
  23415. })
  23416. .catch((err) => {
  23417. this.$message.error("提交失败");
  23418. console.error(err);
  23419. });
  23420. },
  23421. deletePicturePaint() {
  23422. this.$confirm("确定删除此批注吗?", "提示", {
  23423. confirmButtonText: "确定",
  23424. cancelButtonText: "取消",
  23425. type: "warning",
  23426. })
  23427. .then(() => {
  23428. let params = [
  23429. {
  23430. wid: this.commentDetail.wid,
  23431. img: "",
  23432. },
  23433. ];
  23434. this.ajax
  23435. .post(this.$store.state.api + "updateCourseWorks", params)
  23436. .then((res) => {
  23437. this.$message({
  23438. message: "删除成功",
  23439. type: "success",
  23440. });
  23441. this.selectSWorks();
  23442. this.selectStudent();
  23443. })
  23444. .catch((err) => {
  23445. this.$message.error("删除失败");
  23446. console.error(err);
  23447. });
  23448. })
  23449. .catch(() => {});
  23450. },
  23451. getAudioVideo(constraintsData) {
  23452. if (navigator.mediaDevices === undefined) {
  23453. navigator.mediaDevices = {};
  23454. }
  23455. if (navigator.mediaDevices.getUserMedia === undefined) {
  23456. navigator.mediaDevices.getUserMedia = function (constraints) {
  23457. // 首先,如果有getUserMedia的话,就获得它
  23458. var getUserMedia =
  23459. navigator.getUserMedia ||
  23460. navigator.webkitGetUserMedia ||
  23461. navigator.mozGetUserMedia ||
  23462. navigator.msGetUserMedia;
  23463. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  23464. if (!getUserMedia) {
  23465. return Promise.reject({ code: 404 });
  23466. }
  23467. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  23468. return new Promise(function (resolve, reject) {
  23469. getUserMedia.call(navigator, constraints, resolve, reject);
  23470. });
  23471. };
  23472. }
  23473. return navigator.mediaDevices.getUserMedia(constraintsData);
  23474. },
  23475. /**
  23476. * 开始录制
  23477. */
  23478. startRecording(callback) {
  23479. let _function = (screenStream) => {
  23480. this.addStreamStopListener(screenStream, () => {
  23481. console.log("流停止监听");
  23482. this.stopRecording();
  23483. this.$emit("streamStop", {});
  23484. // this.stopRecording();
  23485. });
  23486. var options = {
  23487. type: "video",
  23488. mimeType: "video/webm",
  23489. disableLogs: false,
  23490. getNativeBlob: false, // enable it for longer recordings
  23491. ignoreMutedMedia: false,
  23492. };
  23493. // this.video.srcObject = screenStream;
  23494. this.recorder = RecordRTC(screenStream, options);
  23495. this.recorder.startRecording();
  23496. this.recorder.screen = screenStream;
  23497. this.videoStart = true;
  23498. // callback(true);
  23499. };
  23500. this.getAudioVideo({ audio: true })
  23501. .then((res) => {
  23502. this.captureScreen(_function, true);
  23503. console.log("已点击允许,开启成功");
  23504. })
  23505. .catch((err) => {
  23506. // console.log('浏览器不支持,请更换浏览器')
  23507. // } else {
  23508. this.captureScreen(_function, false);
  23509. console.log("请检查是否存在麦克风");
  23510. });
  23511. },
  23512. /**
  23513. * 停止录制
  23514. */
  23515. stopRecording(callback) {
  23516. this.recorder.stopRecording(() => {
  23517. // this.video.src = this.video.srcObject = null;
  23518. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  23519. const url = URL.createObjectURL(this.recorder.getBlob());
  23520. const a = document.createElement("a"); //this.fileName+
  23521. let videoFile = new File(
  23522. [this.recorder.getBlob()],
  23523. this.courseDetail.title + "录屏.mp4",
  23524. {
  23525. type: "video/mp4",
  23526. }
  23527. );
  23528. let downloadUrl = URL.createObjectURL(videoFile);
  23529. if(this.$refs.classRoomHelperRef){
  23530. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  23531. }
  23532. document.body.appendChild(a);
  23533. a.style.display = "none";
  23534. a.href = url;
  23535. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  23536. a.click();
  23537. this.recorder.screen.stop();
  23538. this.recorder.destroy();
  23539. this.recorder = null;
  23540. this.videoStart = false;
  23541. // callback(false);
  23542. });
  23543. },
  23544. //初始化
  23545. captureScreen(callback, type) {
  23546. if (navigator.getDisplayMedia) {
  23547. //录制结束,文件下载
  23548. navigator
  23549. .getDisplayMedia({
  23550. video: true,
  23551. })
  23552. .then((screenStream) => {
  23553. if (type) {
  23554. navigator.mediaDevices
  23555. .getUserMedia({ audio: true })
  23556. .then((mic) => {
  23557. screenStream.addTrack(mic.getTracks()[0]);
  23558. callback(screenStream);
  23559. });
  23560. } else {
  23561. callback(screenStream);
  23562. }
  23563. })
  23564. .catch(function (error) {
  23565. console.log("error", error);
  23566. });
  23567. } else if (navigator.mediaDevices.getDisplayMedia) {
  23568. navigator.mediaDevices
  23569. .getDisplayMedia({
  23570. video: true,
  23571. })
  23572. .then((screenStream) => {
  23573. if (type) {
  23574. navigator.mediaDevices
  23575. .getUserMedia({ audio: true })
  23576. .then((mic) => {
  23577. screenStream.addTrack(mic.getTracks()[0]);
  23578. callback(screenStream);
  23579. });
  23580. } else {
  23581. callback(screenStream);
  23582. }
  23583. })
  23584. .catch(function (error) {
  23585. console.log("error", error);
  23586. });
  23587. } else {
  23588. var error = "getDisplayMedia API are not supported in this browser.";
  23589. console.log("error", error);
  23590. alert(error);
  23591. }
  23592. },
  23593. //流监听
  23594. addStreamStopListener(stream, callback) {
  23595. stream.addEventListener(
  23596. "ended",
  23597. function () {
  23598. callback();
  23599. callback = function () {};
  23600. },
  23601. false
  23602. );
  23603. stream.addEventListener(
  23604. "inactive",
  23605. function () {
  23606. callback();
  23607. callback = function () {};
  23608. },
  23609. false
  23610. );
  23611. stream.getTracks().forEach(function (track) {
  23612. track.addEventListener(
  23613. "ended",
  23614. function () {
  23615. callback();
  23616. callback = function () {};
  23617. },
  23618. false
  23619. );
  23620. track.addEventListener(
  23621. "inactive",
  23622. function () {
  23623. callback();
  23624. callback = function () {};
  23625. },
  23626. false
  23627. );
  23628. });
  23629. },
  23630. updateGroup() {
  23631. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23632. this.dialogVisibleGroup2 = true;
  23633. },
  23634. numberPan() {
  23635. if (
  23636. /[^\d]/.test(this.groupJson.number) ||
  23637. this.groupJson.number < 2 ||
  23638. this.groupJson.number > 10
  23639. ) {
  23640. this.$message.error("请输入2-10的数字");
  23641. this.groupJson.number = "";
  23642. }
  23643. },
  23644. updateGroupJson() {
  23645. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  23646. if (
  23647. this.groupStudentUid[this.toolindex][i].length >
  23648. this.groupJson2.number
  23649. ) {
  23650. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  23651. return;
  23652. }
  23653. }
  23654. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  23655. this.islock = this.groupJson.islock == 1 ? true : false;
  23656. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23657. this.taskCount
  23658. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  23659. let params = [
  23660. {
  23661. cid: this.id,
  23662. chapters: JSON.stringify(this.chapInfoList),
  23663. uid: this.userid,
  23664. unitIndex: this.courseType,
  23665. },
  23666. ];
  23667. this.ajax
  23668. .post(this.$store.state.api + "updateWorkNew4", params)
  23669. .then((res) => {
  23670. this.$message.success("设置成功");
  23671. this.getCourseDetail(2);
  23672. this.dialogVisibleGroup2 = false;
  23673. this.groupJson2 = {};
  23674. this.$forceUpdate();
  23675. })
  23676. .catch((err) => {
  23677. this.$message.error("网络不佳");
  23678. console.error(err);
  23679. });
  23680. },
  23681. lockChair() {
  23682. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  23683. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  23684. this.updateGroupJson();
  23685. },
  23686. selectGroup(index) {
  23687. this.getCourseDetail(2, index);
  23688. },
  23689. joinGroup(index) {
  23690. if (this.groupJson.islock == 2) {
  23691. this.$message.error("位置已被锁定,无法加入");
  23692. return;
  23693. }
  23694. if (
  23695. this.groupStudent[this.toolindex][index].length >
  23696. this.groupJson.number ||
  23697. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  23698. ) {
  23699. this.$message.error("位置已满,无法加入");
  23700. return;
  23701. }
  23702. let params = [
  23703. {
  23704. cid: this.id,
  23705. stage: this.courseType,
  23706. task: this.taskCount,
  23707. tool: this.toolindex,
  23708. g: index,
  23709. uid: this.userid,
  23710. },
  23711. ];
  23712. this.ajax
  23713. .post(this.$store.state.api + "joinGroup", params)
  23714. .then((res) => {
  23715. this.$message.success("加入成功");
  23716. this.getCourseDetail(2);
  23717. })
  23718. .catch((err) => {
  23719. this.$message.error("网络不佳");
  23720. console.error(err);
  23721. });
  23722. },
  23723. exitGroup(id) {
  23724. if (this.groupJson.islock == 2) {
  23725. this.$message.error("位置已被锁定,无法退出");
  23726. return;
  23727. }
  23728. let params = [
  23729. {
  23730. gid: id,
  23731. },
  23732. ];
  23733. this.ajax
  23734. .post(this.$store.state.api + "exitGroup", params)
  23735. .then((res) => {
  23736. this.$message.success("退出成功");
  23737. this.getCourseDetail(2);
  23738. })
  23739. .catch((err) => {
  23740. this.$message.error("网络不佳");
  23741. console.error(err);
  23742. });
  23743. },
  23744. groupUpload(index, task, gindex) {
  23745. this.taskCount = task;
  23746. this.toolindex = index;
  23747. this.groupIndex = gindex;
  23748. this.dialogVisibleGroupWork = true;
  23749. },
  23750. updateGroupChair(user) {
  23751. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  23752. el.label = index;
  23753. return index != user.group;
  23754. });
  23755. this.updateGroupUser = user;
  23756. this.dialogVisibleUpdateGroup = true;
  23757. },
  23758. updateChair() {
  23759. if (
  23760. this.groupStudent[this.toolindex][this.checkChair].length >
  23761. this.groupJson.number ||
  23762. this.groupStudent[this.toolindex][this.checkChair].length ==
  23763. this.groupJson.number
  23764. ) {
  23765. this.$message.error("位置已满,无法加入");
  23766. return;
  23767. }
  23768. let params = [
  23769. {
  23770. cid: this.id,
  23771. stage: this.courseType,
  23772. task: this.taskCount,
  23773. tool: this.toolindex,
  23774. g: this.checkChair,
  23775. uid: this.updateGroupUser.userid,
  23776. },
  23777. ];
  23778. this.ajax
  23779. .post(this.$store.state.api + "joinGroup", params)
  23780. .then((res) => {
  23781. this.$message.success("修改成功");
  23782. this.updateGroupUser = {};
  23783. this.checkChair = "";
  23784. this.updateGroupArray = {};
  23785. this.dialogVisibleUpdateGroup = false;
  23786. this.getCourseDetail(2);
  23787. })
  23788. .catch((err) => {
  23789. this.$message.error("网络不佳");
  23790. console.error(err);
  23791. });
  23792. },
  23793. deleteGroupChair(gindex) {
  23794. this.checkDeleteGroup = [];
  23795. this.deleteGroupUser = JSON.parse(
  23796. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  23797. );
  23798. this.deleteGroupArray = this.groupJson.group[gindex];
  23799. this.groupIndex = gindex;
  23800. this.dialogVisibleDeleteGroup = true;
  23801. },
  23802. async deleteChair() {
  23803. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  23804. const gid =
  23805. this.groupStudent[this.toolindex][this.groupIndex][
  23806. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  23807. this.checkDeleteGroup[i]
  23808. )
  23809. ];
  23810. let params = [
  23811. {
  23812. gid: gid.id,
  23813. },
  23814. ];
  23815. var a = await this.deleteChairA(params);
  23816. if (i == this.checkDeleteGroup.length - 1) {
  23817. this.$message.success("退出成功");
  23818. this.dialogVisibleDeleteGroup = false;
  23819. this.deleteGroupUser = [];
  23820. this.deleteGroupArray = {};
  23821. this.groupIndex = "";
  23822. this.checkDeleteGroup = [];
  23823. this.getCourseDetail(2);
  23824. }
  23825. }
  23826. },
  23827. deleteChairA(params) {
  23828. return new Promise((resolve, reject) => {
  23829. this.ajax
  23830. .post(this.$store.state.api + "exitGroup", params)
  23831. .then((res) => {
  23832. resolve(1);
  23833. })
  23834. .catch((err) => {
  23835. this.$message.error("网络不佳");
  23836. console.error(err);
  23837. });
  23838. });
  23839. },
  23840. contract(i) {
  23841. if (this.isCloseList[i].isClose == 0) {
  23842. this.isCloseList[i].isClose = 1;
  23843. } else {
  23844. this.isCloseList[i].isClose = 0;
  23845. }
  23846. this.$forceUpdate();
  23847. },
  23848. openWordCloud(toolindex) {
  23849. this.wordCloudData = '';
  23850. let array = [];
  23851. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  23852. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  23853. array.push({ name: works });
  23854. }
  23855. if (this.isGroup) {
  23856. for (var i = 0; i < this.courseGroup.group.length; i++) {
  23857. let works = this.courseGroup.group[i].works[toolindex];
  23858. for (var j = 0; j < works.length; j++) {
  23859. let answer = JSON.parse(works[j].works)[0].answer;
  23860. array.push({ name: answer });
  23861. }
  23862. }
  23863. }
  23864. let _result = ''
  23865. array.forEach(e=>{
  23866. _result +=e.name+','
  23867. })
  23868. this.wordCloudData = _result;
  23869. this.dialogVisibleWordCloud = true;
  23870. this.wordCloudKey += 1;
  23871. },
  23872. uploadWorks(i) {
  23873. this.$confirm("确定导出作业吗?", "提示", {
  23874. confirmButtonText: "确定",
  23875. cancelButtonText: "取消",
  23876. type: "warning",
  23877. })
  23878. .then(() => {
  23879. const loading = this.$loading.service({
  23880. background: "rgba(255, 255, 255, 0.7)",
  23881. target: document.body,
  23882. text: "文件加载中...",
  23883. });
  23884. const _worksStudent = this.worksStudent;
  23885. let url = [];
  23886. var counts = {};
  23887. for (var l = 0; l < _worksStudent[i].length; l++) {
  23888. var item = _worksStudent[i][l];
  23889. var name = item.sName;
  23890. if (!counts.hasOwnProperty(name)) {
  23891. counts[name] = 0;
  23892. } else {
  23893. counts[name]++;
  23894. }
  23895. if (counts[name] > 0) {
  23896. item.sName += " (" + counts[name] + ")";
  23897. }
  23898. }
  23899. for (var l = 0; l < _worksStudent[i].length; l++) {
  23900. var item = _worksStudent[i][l];
  23901. if (
  23902. item.works.indexOf(
  23903. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  23904. ) !== -1 &&
  23905. item.works.indexOf("img") === -1
  23906. ) {
  23907. url.push({ name: item.sName, url: item.works });
  23908. }
  23909. }
  23910. // var toolList = [
  23911. // { name: "电子白板", tool: 1 },
  23912. // { name: "思维导图", tool: 3 },
  23913. // { name: "协同文档", tool: 6 },
  23914. // { name: "思维网格", tool: 7 },
  23915. // { name: "素材库", tool: 8 },
  23916. // { name: "学习资料", tool: 17 },
  23917. // { name: "便签", tool: 2 },
  23918. // { name: "问卷调查", tool: 4 },
  23919. // { name: "选择题", tool: 45 },
  23920. // { name: "倒计时", tool: 10 },
  23921. // { name: "问答", tool: 15 },
  23922. // { name: "课程设计", tool: 26 },
  23923. // { name: "训练服务器", tool: 18 },
  23924. // { name: "作业提交", tool: 16 },
  23925. // { name: "批量上传", tool: 50 },
  23926. // { name: "AIoT Blockly", tool: 21 },
  23927. // { name: "AI Python", tool: 23 },
  23928. // { name: "AI Blockly", tool: 24 },
  23929. // { name: "目标管理", tool: 25 },
  23930. // { name: "数学画板", tool: 31 },
  23931. // { name: "翻译", tool: 28 },
  23932. // { name: "魔盒识字", tool: 37 },
  23933. // { name: "数学画板", tool: 31 },
  23934. // { name: "24点", tool: 38 },
  23935. // { name: "GeoGebra", tool: 39 },
  23936. // { name: "源码编辑", tool: 32 },
  23937. // { name: "个人评价", tool: 40 },
  23938. // { name: "选择匹配", tool: 41 },
  23939. // { name: "汉字宫", tool: 44 },
  23940. // { name: "排序", tool: 47 },
  23941. // { name: "表格", tool: 48 },
  23942. // { name: "文档", tool: 52 },
  23943. // { name: "学生分组", tool: 49 },
  23944. // { name: "CocoPi", tool: 57 },
  23945. // { name: "模拟驾驶", tool: 58 },
  23946. // { name: "路径搜索", tool: 59 },
  23947. // { name: "深度学习", tool: 60 },
  23948. // { name: "全历史", tool: 61 },
  23949. // { name: "交互视频", tool: 62 },
  23950. // { name: "海龟编程", tool: 63 },
  23951. // { name: "挑人", tool: 65 },
  23952. // { name: "公式编辑", tool: 66 },
  23953. // { name: "分子结构", tool: 67 },
  23954. // { name: "时间轴", tool: 68 },
  23955. // ];
  23956. // var toolName = "";
  23957. // for(var w = 0;w<toolList.length;w++){
  23958. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  23959. // toolName = toolList[w].name;
  23960. // }
  23961. // }
  23962. console.log(url);
  23963. this.downLoadAll(url, loading);
  23964. })
  23965. .catch(() => {});
  23966. },
  23967. downLoadAll(url, loading) {
  23968. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  23969. const zip = new JSZip();
  23970. const cache = {};
  23971. const promises = [];
  23972. data.forEach((item) => {
  23973. const promise = getFile(item.url).then((data) => {
  23974. if (data.data != 1) {
  23975. // 下载文件, 并存成ArrayBuffer对象
  23976. const file_name =
  23977. item.name +
  23978. "." +
  23979. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  23980. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  23981. cache[file_name] = data.data;
  23982. }
  23983. });
  23984. promises.push(promise);
  23985. });
  23986. Promise.all(promises).then(() => {
  23987. zip.generateAsync({ type: "blob" }).then((content) => {
  23988. // 生成二进制流
  23989. FileSaver.saveAs(
  23990. content,
  23991. this.courseDetail.title + "-" + "作业提交工具.zip"
  23992. ); // 利用file-saver保存文件 自定义文件名
  23993. setTimeout(() => {
  23994. loading.close();
  23995. }, 2000);
  23996. });
  23997. });
  23998. },
  23999. pickStudent(stu) {
  24000. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24001. return;
  24002. }
  24003. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24004. confirmButtonText: "确定",
  24005. cancelButtonText: "取消",
  24006. type: "warning",
  24007. })
  24008. .then(() => {
  24009. let params = [
  24010. {
  24011. uid: stu.userid,
  24012. cid: this.id,
  24013. stage: this.courseType,
  24014. task: this.taskCount,
  24015. tool: this.toolindex,
  24016. },
  24017. ];
  24018. this.ajax
  24019. .post(this.$store.state.api + "updateCoursePick", params)
  24020. .then((res) => {
  24021. this.$message.success("操作成功");
  24022. this.getPick();
  24023. })
  24024. .catch((err) => {
  24025. this.$message.error("网络不佳");
  24026. console.error(err);
  24027. });
  24028. })
  24029. .catch(() => {});
  24030. },
  24031. selectUser(){
  24032. let params = {
  24033. userid: this.userid,
  24034. };
  24035. this.ajax
  24036. .get(this.$store.state.api + "selectUser", params)
  24037. .then((res) => {
  24038. this.userMes = res.data[0];
  24039. })
  24040. .catch((err) => {
  24041. console.error(err);
  24042. });
  24043. },
  24044. setEngText(i){
  24045. this.newEngIndex = i;
  24046. this.$forceUpdate();
  24047. },
  24048. addCorrect(){
  24049. this.$confirm("你确定提交批改嘛?", "提示", {
  24050. confirmButtonText: "确定",
  24051. showCancelButton: false,
  24052. closeOnClickModal: false,
  24053. type: "warning",
  24054. })
  24055. .then(() => {
  24056. let params = {
  24057. cid: this.id,
  24058. s: parseInt(this.courseType),
  24059. t: this.taskCount,
  24060. tool: this.toolindex,
  24061. wid: this.engWid,
  24062. c: this.userid,
  24063. 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) : "",
  24064. };
  24065. this.ajax
  24066. .get(this.$store.state.api + "addEngC", params)
  24067. .then((res) => {
  24068. this.$message.success("提交成功");
  24069. this.engUpdateDialogVisible = false;
  24070. })
  24071. .catch((err) => {
  24072. console.error(err);
  24073. });
  24074. })
  24075. .catch(() => {});
  24076. },
  24077. selectEngC(id,z){
  24078. let params = {
  24079. workid: id,
  24080. };
  24081. this.ajax
  24082. .get(this.$store.state.api + "selectEngC", params)
  24083. .then((res) => {
  24084. if(res.data[0].length == 0){
  24085. this.newEnglishList.engTitle = z.engTitle;
  24086. this.newEnglishList.engText = z.engText;
  24087. }else{
  24088. var a = res.data[0];
  24089. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24090. if(this.userMes[0].type == 2){
  24091. var snum = 0;
  24092. for(var i = 0;i<a.length;i++){
  24093. if(this.userMes[0].userid == a[i].correct){
  24094. this.newEnglishList = JSON.parse(a[i].cWork);
  24095. snum = 1;
  24096. }
  24097. }
  24098. if(snum == 0){
  24099. this.newEnglishList = { engTitle:"",engText:"" };
  24100. this.newEnglishList.engTitle = z.engTitle;
  24101. this.newEnglishList.engText = z.engText;
  24102. }
  24103. }else if(this.userMes[0].type == 1){
  24104. var num = 0;
  24105. for(var w= 0;w<a.length;w++){
  24106. if(this.userMes[0].userid == a[w].correct){
  24107. num = 1;
  24108. }
  24109. }
  24110. if(num == 0){
  24111. this.isNoUserid = true;
  24112. var c = JSON.parse(JSON.stringify(z));
  24113. this.oldEnglishJson1 = c;
  24114. }else{
  24115. this.isNoUserid = false;
  24116. }
  24117. var b = a.sort((item, index) => {
  24118. console.log(item)
  24119. if (item.correct === this.userMes[0].userid) {
  24120. return -1; // 将a移到前面
  24121. } else if (index.correct === this.userMes[0].userid) {
  24122. return 1; // 将b移到前面
  24123. } else {
  24124. return 0; // 保持默认顺序
  24125. }
  24126. });
  24127. for(var p = 0;p<b.length;p++){
  24128. for(var y = 0;y<ppp.length;y++){
  24129. if(b[p].id == ppp[y].id){
  24130. b[p].cWork = JSON.parse(ppp[y].cWork);
  24131. break
  24132. }
  24133. }
  24134. }
  24135. this.newEnglishList1 = b;
  24136. }
  24137. }
  24138. this.greyType = false;
  24139. setTimeout(() => {
  24140. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24141. if(this.newEnglishList1.length > 0){
  24142. if(this.isNoUserid == true){
  24143. this.engListLength = this.newEnglishList1.length + 1;
  24144. this.newEngIndex = -1;
  24145. }else{
  24146. this.engListLength = this.newEnglishList1.length;
  24147. this.newEngIndex = 0;
  24148. }
  24149. }
  24150. if(this.userMes[0].type == 2){
  24151. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24152. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24153. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24154. }else if(this.newEngIndex == -1){
  24155. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24156. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24157. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24158. }
  24159. }, 500);
  24160. this.engUpdateDialogVisible = true;
  24161. this.$forceUpdate();
  24162. })
  24163. .catch((err) => {
  24164. console.error(err);
  24165. });
  24166. },
  24167. getPick() {
  24168. let params = {
  24169. cid: this.id,
  24170. };
  24171. this.ajax
  24172. .get(this.$store.state.api + "getPick", params)
  24173. .then((res) => {
  24174. let array = [];
  24175. for (var i = 0; i < res.data[0].length; i++) {
  24176. array.push(res.data[0][i].userid);
  24177. }
  24178. this.isPickStudent = array;
  24179. if (array.indexOf(this.userid) !== -1) {
  24180. this.$confirm("你被老师选到啦!", "提示", {
  24181. confirmButtonText: "确定",
  24182. showCancelButton: false,
  24183. closeOnClickModal: false,
  24184. type: "warning",
  24185. })
  24186. .then(() => {
  24187. let pa = [
  24188. {
  24189. uid: this.userid,
  24190. cid: this.id,
  24191. },
  24192. ];
  24193. this.ajax
  24194. .post(this.$store.state.api + "deletePick", pa)
  24195. .then((res) => {
  24196. this.getPick();
  24197. })
  24198. .catch((err) => {
  24199. this.$message.error("网络不佳");
  24200. console.error(err);
  24201. });
  24202. })
  24203. .catch(() => {});
  24204. }
  24205. })
  24206. .catch((err) => {
  24207. this.$message.error("网络不佳");
  24208. console.error(err);
  24209. });
  24210. },
  24211. foldEva() {
  24212. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24213. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24214. } else {
  24215. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24216. setTimeout(() => {
  24217. this.checkEva();
  24218. setTimeout(() => {
  24219. this.checkEva();
  24220. }, 500);
  24221. }, 0);
  24222. }
  24223. this.$forceUpdate();
  24224. },
  24225. panToolHeight(tool) {
  24226. var _tool = document.querySelectorAll('#'+tool)[0]
  24227. var _toolA = _tool ? _tool.offsetHeight : 0
  24228. var _toolC = 0
  24229. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24230. let boolean2 = (_toolA > _toolC) ? true : false
  24231. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24232. this.$forceUpdate();
  24233. },
  24234. async checkLink(url) {
  24235. // console.log(url)
  24236. let _url = url
  24237. try {
  24238. const response = await fetch(url);
  24239. if(!response.ok){
  24240. _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]))
  24241. }
  24242. // console.log(response.ok)
  24243. } catch (error) {
  24244. console.error('Error checking link:', error);
  24245. // console.log(false)
  24246. _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]))
  24247. }
  24248. // console.log(_url)
  24249. return _url
  24250. },
  24251. getScoreList(){
  24252. let params = {
  24253. cid: this.id,
  24254. };
  24255. this.ajax
  24256. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24257. .then((res) => {
  24258. let result = res.data;
  24259. this.scoreList.datalist = result[0];
  24260. this.scoreList.isScoreList = result[1];
  24261. })
  24262. .catch((err) => {
  24263. console.error(err);
  24264. });
  24265. },
  24266. setClassRoomHelperWidth(width){
  24267. this.classRoomHelperWidth = width
  24268. },
  24269. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  24270. this.$refs.choseWorksDetailDialogRef.open({
  24271. toolType:tooc,
  24272. tType: this.tType,
  24273. toolIndex: toolIndex
  24274. });
  24275. this.changeSplitScreenBehavior({
  24276. code: 1,
  24277. form: {
  24278. toolType:tooc,
  24279. toolIndex: toolIndex,
  24280. courseType: this.courseType,
  24281. taskCount: this.taskCount,
  24282. type: 0
  24283. }
  24284. });
  24285. },
  24286. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  24287. this.$refs.statisticalAnalysisRef.open({
  24288. worksStudent: this.worksStudent[toolIndex],
  24289. tType: this.tType,
  24290. toolIndex: toolIndex
  24291. });
  24292. this.changeSplitScreenBehavior({
  24293. code: 2,
  24294. form: {
  24295. toolType:4,
  24296. courseType: this.courseType,
  24297. taskCount: this.taskCount,
  24298. toolIndex: toolIndex,
  24299. type: 0
  24300. }
  24301. });
  24302. },
  24303. statisticalAnalysisRefresh(toolIndex) {
  24304. this.$refs.statisticalAnalysisRef.refreshData({
  24305. worksStudent: this.worksStudent[toolIndex],
  24306. tType: this.tType,
  24307. toolIndex: toolIndex
  24308. });
  24309. },
  24310. async splitScreenBehavior(type = 0) {
  24311. // return;
  24312. if (this.splitScreenData.loading)
  24313. return this.$message.info("操作过快,请稍等");
  24314. if (type == 0) {
  24315. //关闭分屏
  24316. this.splitScreenData.isOpen = false;
  24317. // this.splitScreenData.userId = "";
  24318. // this.splitScreenData.uid = "";
  24319. this.splitScreenData.behavior = null;
  24320. await this.updateSplitScreenData(1);
  24321. this.$message.success("已关闭分屏模式");
  24322. this.studentFreePreview(false);
  24323. this.OpenJobPreview(false);
  24324. // this.followingMode(false);
  24325. } else if (type == 1) {
  24326. //开启分屏
  24327. this.splitScreenData.isOpen = true;
  24328. this.splitScreenData.userId = this.userid;
  24329. this.splitScreenData.uid = this.splitScreenData.myUid;
  24330. this.splitScreenData.behavior = null;
  24331. let status = await this.updateSplitScreenData(0);
  24332. this.changeSplitScreenBehavior({form:{}})
  24333. if (status == 1) {
  24334. this.$message.success("已开启分屏");
  24335. this.studentFreePreview(false);
  24336. this.OpenJobPreview(true);
  24337. // this.followingMode(true);
  24338. } else {
  24339. this.splitScreenData.isOpen = false;
  24340. this.splitScreenData.userId = "";
  24341. this.splitScreenData.uid = "";
  24342. this.splitScreenData.behavior = null;
  24343. this.$message.success("分屏开启失败");
  24344. }
  24345. }
  24346. },
  24347. enterFullScreen() {
  24348. let element = document.documentElement;
  24349. if (element.requestFullscreen) {
  24350. element.requestFullscreen();
  24351. } else if (element.mozRequestFullScreen) { /* Firefox */
  24352. element.mozRequestFullScreen();
  24353. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  24354. element.webkitRequestFullscreen();
  24355. } else if (element.msRequestFullscreen) { /* IE/Edge */
  24356. element.msRequestFullscreen();
  24357. }
  24358. },
  24359. exitFullScreen() {
  24360. if (document.exitFullscreen) {
  24361. document.exitFullscreen();
  24362. } else if (document.mozCancelFullScreen) { /* Firefox */
  24363. document.mozCancelFullScreen();
  24364. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  24365. document.webkitExitFullscreen();
  24366. } else if (document.msExitFullscreen) { /* IE/Edge */
  24367. document.msExitFullscreen();
  24368. }
  24369. },
  24370. confirmOpen(){
  24371. this.splitScreenData.isOpen = true;
  24372. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  24373. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  24374. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  24375. this.confirmOpenDig = false
  24376. if (!document.fullscreenElement) {
  24377. this.enterFullScreen();
  24378. }
  24379. if (this.timer2) {
  24380. clearInterval(this.timer2);
  24381. this.timer2 = null;
  24382. }
  24383. this.timer2 = setInterval(()=> {
  24384. this.getSplitScreenData();//获取分屏数据
  24385. }, 1000);
  24386. this.$message.success("分屏模式已开启");
  24387. },
  24388. getSplitScreenData() {
  24389. // return;
  24390. // if (this.tType != 1) return;
  24391. let params = {
  24392. cid: this.id
  24393. };
  24394. this.ajax
  24395. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  24396. .then(async res => {
  24397. let data = res.data[0][0]["splitScreenData"];
  24398. console.log("获取了分屏数:", data);
  24399. if (data) {
  24400. data = JSON.parse(data);
  24401. if (
  24402. !this.splitScreenData.isOpen &&
  24403. data.isOpen &&
  24404. this.splitScreenData.myUid == data.uid
  24405. ) {
  24406. this.splitScreenData.isOpen = false;
  24407. this.splitScreenData.userId = "";
  24408. this.splitScreenData.uid = "";
  24409. this.splitScreenData.behavior = null;
  24410. await this.updateSplitScreenData(1);
  24411. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  24412. this.confirmOpenDig = true
  24413. this.confirmOpenDigData = data
  24414. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  24415. this.splitScreenData.isOpen = false;
  24416. this.splitScreenData.userId = "";
  24417. this.splitScreenData.uid = "";
  24418. this.splitScreenData.behavior = null;
  24419. this.$message.error("已结束分屏模式");
  24420. } else if (this.splitScreenData.isOpen && data.isOpen) {
  24421. this.splitScreenData.isOpen = true;
  24422. this.splitScreenData.uid = data.uid;
  24423. this.splitScreenData.userId = data.userId;
  24424. this.splitScreenData.behavior = data.behavior;
  24425. }
  24426. this.doSplitScreenBehavior();
  24427. } else {
  24428. if (this.splitScreenData.isOpen) {
  24429. this.splitScreenData.isOpen = false;
  24430. this.splitScreenData.userId = "";
  24431. this.splitScreenData.uid = "";
  24432. this.splitScreenData.behavior = null;
  24433. this.$message.error("已结束分屏模式");
  24434. if (this.timer2) {
  24435. clearInterval(this.timer2);
  24436. this.timer2 = null;
  24437. }
  24438. this.timer2 = setInterval(()=> {
  24439. this.getSplitScreenData();//获取分屏数据
  24440. }, 5000);
  24441. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  24442. confirmButtonText: '确定', //确认按钮的文字
  24443. showCancelButton: false, //是否显示取消按钮
  24444. showClose: false, //是否显示关闭按钮
  24445. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  24446. type: "warning",
  24447. })
  24448. .then(() => {
  24449. if (document.fullscreenElement) {
  24450. this.exitFullScreen();
  24451. }
  24452. })
  24453. .catch(() => {});
  24454. }
  24455. }
  24456. })
  24457. .catch(e => {
  24458. console.log("获取分屏数出错:", e);
  24459. });
  24460. },
  24461. doSplitScreenBehavior() {
  24462. if (
  24463. this.splitScreenData.isOpen &&
  24464. this.splitScreenData.uid != this.splitScreenData.myUid
  24465. ) {
  24466. let behavior = this.splitScreenData.behavior;
  24467. if (behavior) {
  24468. if (behavior.code === 99) {
  24469. //初始化
  24470. this.fullDialogVisible = false;
  24471. if(this.$refs.choseWorksDetailDialogRef.show){
  24472. this.$refs.choseWorksDetailDialogRef.close();
  24473. }
  24474. if(this.$refs.statisticalAnalysisRef.show){
  24475. this.$refs.statisticalAnalysisRef.close();
  24476. }
  24477. }
  24478. if (behavior.code === 0) {
  24479. //开启内容列表弹窗
  24480. this.checkFileFull1(behavior.form.t, behavior.form.f);
  24481. }else{
  24482. this.fullDialogVisible = false;
  24483. }
  24484. if (behavior.code === 1) {
  24485. //关于选择题的作业详细的操作
  24486. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  24487. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  24488. this.courseType = behavior.form.courseType;
  24489. this.taskCount = behavior.form.taskCount;
  24490. }
  24491. this.$nextTick(() => {
  24492. if (this.$refs.choseWorksDetailDialogRef.show) {
  24493. //已经打开了
  24494. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  24495. } else {
  24496. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  24497. }
  24498. });
  24499. }else{
  24500. this.$refs.choseWorksDetailDialogRef.close()
  24501. }
  24502. if(behavior.code === 2){
  24503. if(this.$refs.statisticalAnalysisRef.show){
  24504. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  24505. }else{
  24506. this.$refs.statisticalAnalysisRef.open({
  24507. worksStudent: this.worksStudent[behavior.form.toolIndex],
  24508. tType: this.tType,
  24509. toolIndex: behavior.form.toolIndex
  24510. });
  24511. }
  24512. }else{
  24513. this.$refs.statisticalAnalysisRef.close();
  24514. }
  24515. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  24516. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  24517. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  24518. if (behavior.form.courseType != this.courseType ||
  24519. behavior.form.taskCount != this.taskCount ||
  24520. behavior.form.toolType != this.toolindex
  24521. ) {
  24522. var a = document.scrollingElement;
  24523. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  24524. if (target) {
  24525. target.scrollIntoView(true);
  24526. setTimeout(()=>{
  24527. let scrollBody = document.querySelector('.body_student').parentElement
  24528. scrollBody.scrollTop = scrollBody.scrollTop - 100
  24529. }, 0);
  24530. // setTimeout(() => {
  24531. // a.scrollTop = 0
  24532. // }, 0);
  24533. }
  24534. }
  24535. if(this.courseType !=behavior.form.courseType){
  24536. this.courseType = behavior.form.courseType;
  24537. }
  24538. if(this.taskCount !=behavior.form.taskCount){
  24539. this.taskCount = behavior.form.taskCount;
  24540. }
  24541. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  24542. this.toolindex = behavior.form.toolType;
  24543. }
  24544. // if(behavior.form.navId){
  24545. // this.navId = behavior.form.navId
  24546. // }
  24547. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  24548. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  24549. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  24550. this.getCourseDetail()
  24551. }
  24552. this.setContent2(false)
  24553. }
  24554. } else {
  24555. }
  24556. }
  24557. },
  24558. updateSplitScreenData(empty = 0) {
  24559. return new Promise(resolve => {
  24560. if(this.userid!==this.courseDetail.userid){
  24561. if(!this.courseDetail.userid){
  24562. return setTimeout(()=>{
  24563. this.updateSplitScreenData(empty)
  24564. },2000)
  24565. }
  24566. return;
  24567. };
  24568. if (
  24569. this.splitScreenData.uid == this.splitScreenData.myUid &&
  24570. this.splitScreenData.userId == this.userid
  24571. ) {
  24572. this.splitScreenData.loading = true;
  24573. let params = [
  24574. {
  24575. cid: this.id,
  24576. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  24577. }
  24578. ];
  24579. this.ajax
  24580. .post(
  24581. this.$store.state.api + "update_courseSplitScreenData",
  24582. params
  24583. )
  24584. .then(res => {
  24585. this.splitScreenData.loading = false;
  24586. if (res.data == 1) {
  24587. resolve(1);
  24588. console.log("修改分屏数据成功");
  24589. }
  24590. })
  24591. .catch(e => {
  24592. this.splitScreenData.loading = false;
  24593. console.log("修改分屏数据失败", e);
  24594. resoleve(0);
  24595. });
  24596. } else if (empty == 2 && this.tType == 1) {
  24597. let params = [
  24598. {
  24599. cid: this.id,
  24600. nData: ""
  24601. }
  24602. ];
  24603. return this.ajax
  24604. .post(
  24605. this.$store.state.api + "update_courseSplitScreenData",
  24606. params
  24607. )
  24608. .then(_ => resolve(1))
  24609. .catch(_ => resolve(0));
  24610. } else {
  24611. return resolve(0);
  24612. }
  24613. });
  24614. },
  24615. changeSplitScreenBehavior(newValue) {
  24616. if (
  24617. this.splitScreenData.isOpen &&
  24618. this.splitScreenData.uid == this.splitScreenData.myUid
  24619. ) {
  24620. let _behavior = null;
  24621. if(!newValue){
  24622. _behavior = {}
  24623. }else{
  24624. _behavior = newValue
  24625. }
  24626. if(_behavior.form){
  24627. _behavior.form.taskCount = this.taskCount;
  24628. _behavior.form.courseType = this.courseType
  24629. }else{
  24630. _behavior.form = {
  24631. taskCount:this.taskCount,
  24632. courseType:this.courseType
  24633. }
  24634. }
  24635. this.splitScreenData.behavior = _behavior;
  24636. this.updateSplitScreenData(0);
  24637. }
  24638. },
  24639. studentFreePreview(flag) {
  24640. this.IsLookOpen = flag;
  24641. this.followingMode(flag)
  24642. this.updateLookOpen();
  24643. },
  24644. OpenJobPreview(flag) {
  24645. this.sIsOpen = flag;
  24646. this.updateSLook();
  24647. },
  24648. followingMode(flag) {
  24649. this.IsFollow = flag;
  24650. this.updateFollow();
  24651. }
  24652. },
  24653. directives: {
  24654. // 使用局部注册指令的方式
  24655. resize: {
  24656. // 指令的名称
  24657. bind(el, binding) {
  24658. // el为绑定的元素,binding为绑定给指令的对象
  24659. let width = "",
  24660. height = "";
  24661. function isReize() {
  24662. const style = document.defaultView.getComputedStyle(el);
  24663. if (width !== style.width || height !== style.height) {
  24664. binding.value(); // 关键
  24665. }
  24666. width = style.width;
  24667. height = style.height;
  24668. }
  24669. el.__vueSetInterval__ = setInterval(isReize, 300);
  24670. },
  24671. unbind(el) {
  24672. clearInterval(el.__vueSetInterval__);
  24673. },
  24674. },
  24675. autoHeight: {
  24676. update(el, binding) {
  24677. const { value } = binding
  24678. if (value && typeof value === 'number') {
  24679. el.style.height = `${value}px`
  24680. } else {
  24681. el.style.height = 'auto'
  24682. }
  24683. },
  24684. componentUpdated(el) {
  24685. el.style.height = `${el.scrollHeight + 5}px`
  24686. },
  24687. },
  24688. },
  24689. beforeDestroy() {
  24690. window.onresize = null;
  24691. clearInterval(this.timer);
  24692. clearInterval(this.timer2);
  24693. this.timer = null;
  24694. this.timer2 = null;
  24695. clearInterval(this.opertimer);
  24696. this.opertimer = null;
  24697. this.updateSplitScreenData(1);
  24698. },
  24699. computed: {
  24700. getHeight(){
  24701. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24702. },
  24703. contentConvent() {
  24704. return function (c) {
  24705. return c
  24706. ? c
  24707. .replaceAll(/\r\n/g, "<br/>")
  24708. .replaceAll(/\n/g, "<br/>")
  24709. .replaceAll(/\s/g, " &nbsp")
  24710. : "";
  24711. };
  24712. },
  24713. MarkdownT() {
  24714. return function (c) {
  24715. let md = new MarkdownIt();
  24716. return c
  24717. ? md.render(c) : "";
  24718. };
  24719. },
  24720. commentRight(){
  24721. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  24722. return "35px";
  24723. }
  24724. return `calc(${this.classRoomHelperWidth} + 5px)`
  24725. // if(this.$refs["classRoomHelperRef"].type==0){
  24726. // return "100px";
  24727. // }else if(this.$refs["classRoomHelperRef"].type==1){
  24728. // return "502px"
  24729. // }else{
  24730. // return "0px"
  24731. // }
  24732. },
  24733. checkUpload() {
  24734. return function () {
  24735. var studentK = [];
  24736. if (this.plworkFile.length > 0) {
  24737. for (var z = 0; z < this.plworkFile.length; z++) {
  24738. studentK.push(this.plworkFile[z].username);
  24739. }
  24740. studentK = studentK.join(",");
  24741. }
  24742. var a = this.uploadStudentJuri.filter((el) => {
  24743. return studentK.indexOf(el.userid) == -1;
  24744. });
  24745. return a;
  24746. };
  24747. },
  24748. getSName() {
  24749. return function (name) {
  24750. var check = name;
  24751. this.uploadStudentJuri.forEach((el) => {
  24752. if (el.userid == check) {
  24753. check = el.name ? el.name : el.username;
  24754. }
  24755. });
  24756. return check;
  24757. };
  24758. },
  24759. getImgList() {
  24760. return function (val) {
  24761. let srcList = []; // 定义一个数组用来接收后面的img地址
  24762. val.replace(
  24763. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  24764. function (match, capture) {
  24765. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  24766. srcList.push(capture);
  24767. }
  24768. );
  24769. return srcList;
  24770. };
  24771. },
  24772. retrnToolHeight(){
  24773. return function (tool) {
  24774. var _tool = document.querySelectorAll('#'+tool)[0]
  24775. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  24776. };
  24777. },
  24778. Correct() {
  24779. return function (c,d) {
  24780. let w = "";
  24781. let a = this.correctWord;
  24782. for(var k = 0;k<a.length;k++){
  24783. //diffWordsWithSpace
  24784. if(a.length > 1){
  24785. if(a[k].added == true){
  24786. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24787. }else if(a[k].removed == true){
  24788. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24789. }else{
  24790. w += '<span>' + a[k].value + '</span>';
  24791. }
  24792. }else{
  24793. w = c
  24794. }
  24795. console.log("👇👇!+++==")
  24796. console.log(w)
  24797. //diffChars方法
  24798. // if(w == ""){
  24799. // if(a.length > 1){
  24800. // if(a[k].added == true){
  24801. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24802. // }else if(a[k].removed == true){
  24803. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24804. // }
  24805. // }else{
  24806. // w = c
  24807. // }
  24808. // }else{
  24809. // if(k == a.length - 1){
  24810. // if(a[k].added == true){
  24811. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24812. // }else if(a[k].removed == true){
  24813. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24814. // }
  24815. // }else{
  24816. // if(a[k].added == true){
  24817. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  24818. // }else if(a[k].removed == true){
  24819. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  24820. // }
  24821. // }
  24822. // }
  24823. }
  24824. c = w;
  24825. return c;
  24826. };
  24827. },
  24828. },
  24829. mounted() {
  24830. document.body.addEventListener("click", (e) => {
  24831. if (this.isUpdateToolDetail1) {
  24832. this.updateToolDetail(this.toolDetailIndex);
  24833. }
  24834. });
  24835. if (this.screenType == 2) {
  24836. window.parent.postMessage({ allScreen: 4 }, "*");
  24837. } else if (this.screenType == 3) {
  24838. window.parent.postMessage({ allScreen: 5 }, "*");
  24839. } else if (this.screenType == 1) {
  24840. window.parent.postMessage({ allScreen: 6 }, "*");
  24841. }
  24842. this.setOperationTime();
  24843. this.selectEva();
  24844. this.getCourseDetail();
  24845. this.selectCount();
  24846. this.getHomeWork();
  24847. this.selectUser();
  24848. this.getAIJ();
  24849. this.contentDialog = true;
  24850. this.setContent2(true);
  24851. if (this.tType == 4) {
  24852. this.pzDialog = true;
  24853. this.selectPz();
  24854. }
  24855. // 获取评分列表
  24856. this.getScoreList()
  24857. this.updateSplitScreenData(2);
  24858. this.splitScreenData.myUid = uuidv4();
  24859. document.scrollingElement.scrollTop = 0;
  24860. window.addEventListener("resize", () => {
  24861. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24862. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24863. if (this.showType == 2 || this.showType == 3) {
  24864. document.getElementsByClassName("navBox")[0].style.height =
  24865. a - 40 + 0+ "px";
  24866. } else {
  24867. document.getElementsByClassName("navBox")[0].style.height =
  24868. a - 40 + "px";
  24869. }
  24870. });
  24871. let _this = this;
  24872. setTimeout(() => {
  24873. // _this.vedioTime = [];
  24874. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  24875. // _this.vedioTime[i] = document.getElementsByClassName(
  24876. // "vjs-duration-display"
  24877. // )[i].textContent;
  24878. // }
  24879. }, 1000);
  24880. },
  24881. };
  24882. </script>
  24883. <style scoped>
  24884. @media screen and (max-width: 1280px) {
  24885. /* .courseIndex > div:first-child(2) {
  24886. width: 15% !important;
  24887. } */
  24888. /* .navText {
  24889. width: 120px !important;
  24890. } */
  24891. .evaCss {
  24892. flex-direction: column !important;
  24893. align-items: center !important;
  24894. }
  24895. .elist_input {
  24896. width: 90% !important;
  24897. }
  24898. .dialog_diy1 >>> .el-dialog {
  24899. width: 100% !important;
  24900. }
  24901. .rightWidthCss {
  24902. width: 100% !important;
  24903. }
  24904. .dialog_diy3 >>> .el-dialog {
  24905. width: 100% !important;
  24906. }
  24907. .addToolCss {
  24908. right: 0 !important;
  24909. width: 100% !important;
  24910. min-width: unset !important;
  24911. }
  24912. }
  24913. .evaCssMax {
  24914. flex-direction: column !important;
  24915. align-items: center !important;
  24916. }
  24917. .dialog_diy >>> .el-dialog {
  24918. /* margin-top: 10vh !important; */
  24919. }
  24920. .body_student {
  24921. width: 77%;
  24922. height: 100%;
  24923. position: absolute;
  24924. left: 22%;
  24925. top: 0;
  24926. }
  24927. .student_head {
  24928. width: 100%;
  24929. margin: 20px auto 0;
  24930. padding-bottom: 20px;
  24931. display: flex;
  24932. flex-direction: column;
  24933. flex-wrap: nowrap;
  24934. align-items: flex-start;
  24935. justify-content: flex-start;
  24936. }
  24937. .pb_left {
  24938. width: 20%;
  24939. margin-right: 10px;
  24940. background: rgb(255, 255, 255);
  24941. position: fixed;
  24942. height: calc(100% - 40px);
  24943. border-radius: 20px;
  24944. padding-bottom: 15px;
  24945. box-sizing: border-box;
  24946. }
  24947. .wheel > img,
  24948. .project > img,
  24949. .star > img,
  24950. .evaluate > img,
  24951. .up_photo > img,
  24952. .chapter_add > img,
  24953. .deleteWord > img,
  24954. .question > img,
  24955. .homework > img {
  24956. width: 100%;
  24957. height: 100%;
  24958. }
  24959. .upCover > img {
  24960. width: 131px;
  24961. height: 69px;
  24962. object-fit: cover;
  24963. }
  24964. .upCover {
  24965. width: calc(100% / 3.5);
  24966. position: relative;
  24967. margin: 0 15px 10px 0;
  24968. display: flex;
  24969. flex-direction: column;
  24970. flex-wrap: nowrap;
  24971. justify-content: center;
  24972. align-content: center;
  24973. align-items: center;
  24974. height: fit-content;
  24975. }
  24976. .upCover2 {
  24977. width: 100%;
  24978. position: relative;
  24979. margin: 0 15px 10px 0;
  24980. display: flex;
  24981. flex-direction: column;
  24982. flex-wrap: nowrap;
  24983. justify-content: center;
  24984. align-content: center;
  24985. align-items: center;
  24986. }
  24987. .upCover2 > img {
  24988. width: 100%;
  24989. height: 90px;
  24990. object-fit: contain;
  24991. }
  24992. .chapter_add {
  24993. width: 120px;
  24994. position: relative;
  24995. text-align: center;
  24996. }
  24997. .isAddThings {
  24998. margin-top: 20px;
  24999. position: relative;
  25000. text-align: center;
  25001. background: #f7f8fa;
  25002. height: 90px;
  25003. width: 90px;
  25004. display: flex;
  25005. flex-direction: column;
  25006. justify-content: center;
  25007. }
  25008. .deleteWord {
  25009. width: 22px;
  25010. height: 22px;
  25011. position: absolute;
  25012. right: -5px;
  25013. top: -5px;
  25014. cursor: pointer;
  25015. }
  25016. .box_course {
  25017. /* width: 60%; */
  25018. width: calc(100% - 300px);
  25019. }
  25020. .wheel {
  25021. width: 100%;
  25022. /* height: 100%; */
  25023. height: 650px;
  25024. }
  25025. .right_box {
  25026. display: flex;
  25027. flex-direction: column;
  25028. margin-left: 30px;
  25029. justify-content: space-around;
  25030. }
  25031. .right_box_title {
  25032. font-size: 23px;
  25033. }
  25034. .people {
  25035. display: flex;
  25036. }
  25037. .student_body {
  25038. width: 100%;
  25039. margin: 0 auto;
  25040. margin-top: 10px;
  25041. padding: 0 0 20px;
  25042. }
  25043. .study_top {
  25044. margin-top: 100px;
  25045. width: 100%;
  25046. height: auto;
  25047. padding-bottom: 20px;
  25048. margin-left: 2px;
  25049. min-height: 90%;
  25050. }
  25051. .study_top .checkbox {
  25052. display: flex;
  25053. align-items: center;
  25054. padding: 15px 0 15px 30px;
  25055. flex: 0 0 auto;
  25056. font-weight: bold;
  25057. border-bottom: 1px solid #eee;
  25058. }
  25059. .study_top .check {
  25060. padding-bottom: 5px;
  25061. text-align: center;
  25062. cursor: pointer;
  25063. height: 30px;
  25064. box-sizing: border-box;
  25065. display: flex;
  25066. }
  25067. .study_top .checked {
  25068. border-bottom: 4px solid #3fc6a0;
  25069. padding-bottom: 5px;
  25070. color: #3fc6a0;
  25071. display: flex;
  25072. height: 35px;
  25073. }
  25074. .study_top .checked > div,
  25075. .study_top .check > div {
  25076. margin-right: 5px;
  25077. }
  25078. .videoTop {
  25079. display: flex;
  25080. flex-direction: row;
  25081. justify-content: space-between;
  25082. background: #fff;
  25083. align-items: center;
  25084. width: 95%;
  25085. padding: 20px;
  25086. }
  25087. .filebox {
  25088. display: flex;
  25089. flex-wrap: wrap;
  25090. flex-direction: column;
  25091. padding: 0 0 5px;
  25092. position: relative;
  25093. }
  25094. .filebox:before {
  25095. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25096. position: absolute;
  25097. top: 20px;
  25098. left: 13px;
  25099. border-left: 2px dotted #cad1dc;
  25100. height: calc(100% - 15px);
  25101. }
  25102. .toolHeng2 > div:last-child::before {
  25103. height: calc(100% - 43px);
  25104. }
  25105. .filebox .tooldetail {
  25106. width: calc(100%);
  25107. margin: 0px 12px;
  25108. padding: 12px;
  25109. line-height: 30px;
  25110. word-break: break-word;
  25111. background: #ffffff;
  25112. border-radius: 8px 8px 8px 8px;
  25113. opacity: 1;
  25114. border: 1px solid #cad1dc;
  25115. overflow:hidden;
  25116. box-sizing:border-box;
  25117. }
  25118. .file {
  25119. display: flex;
  25120. flex-direction: column;
  25121. align-items: center;
  25122. justify-content: center;
  25123. cursor: pointer;
  25124. width: 200px;
  25125. }
  25126. .file div {
  25127. margin-top: 10px;
  25128. width: 150px;
  25129. text-align: center;
  25130. overflow: hidden;
  25131. white-space: nowrap;
  25132. text-overflow: ellipsis;
  25133. }
  25134. .media {
  25135. display: flex;
  25136. flex-direction: column;
  25137. align-items: center;
  25138. justify-content: center;
  25139. margin: 0 20px 20px 0;
  25140. cursor: pointer;
  25141. margin: 12px 0 5px 15px;
  25142. overflow: hidden;
  25143. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25144. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25145. box-sizing: border-box;
  25146. }
  25147. .media img {
  25148. height: 90px;
  25149. width: 160px;
  25150. object-fit: cover;
  25151. }
  25152. .media .title {
  25153. padding: 5px;
  25154. text-align: left;
  25155. width: 100%;
  25156. box-sizing: border-box;
  25157. }
  25158. .media .btn {
  25159. width: 100%;
  25160. height: 35px;
  25161. line-height: 35px;
  25162. color: #fff;
  25163. background: #606060;
  25164. text-align: center;
  25165. overflow: hidden;
  25166. white-space: nowrap;
  25167. text-overflow: ellipsis;
  25168. }
  25169. .detail_content_top {
  25170. width: 100%;
  25171. padding: 25px 0 25px 0;
  25172. }
  25173. .detail_title {
  25174. text-align: center;
  25175. font-size: 24px;
  25176. }
  25177. .detail_time {
  25178. font-size: 13px;
  25179. padding: 15px 0 0 40px;
  25180. }
  25181. .detail_content {
  25182. line-height: 2pc;
  25183. width: 90%;
  25184. margin: 0 auto;
  25185. padding-top: 30px;
  25186. text-indent: 30px;
  25187. overflow: auto;
  25188. height: 200px;
  25189. }
  25190. .score_box >>> .el-rate {
  25191. margin-left: 10px;
  25192. }
  25193. .dialog_change >>> .el-dialog {
  25194. border-radius: 5px;
  25195. }
  25196. .dialog_change >>> .el-dialog__header {
  25197. background: #f2f2f2;
  25198. text-align: center;
  25199. }
  25200. .dialog_change >>> .el-dialog__title {
  25201. line-height: 5px;
  25202. }
  25203. .dialog_change >>> .el-dialog__body {
  25204. background: #fff;
  25205. padding: 10px 20px;
  25206. }
  25207. .score_box {
  25208. display: flex;
  25209. align-items: center;
  25210. margin-bottom: 18px;
  25211. margin-top: 20px;
  25212. }
  25213. .up_photo {
  25214. width: 120px;
  25215. cursor: pointer;
  25216. margin-top: 10px;
  25217. }
  25218. .up_photo2 {
  25219. width: 180px;
  25220. box-sizing: border-box;
  25221. min-width: 180px;
  25222. height: 180px;
  25223. max-height: 180px;
  25224. min-height: 180px;
  25225. cursor: pointer;
  25226. display: flex;
  25227. flex-direction: column;
  25228. align-items: center;
  25229. justify-content: center;
  25230. background: rgb(242, 246, 255);
  25231. /* padding: 25px; */
  25232. margin-bottom: 10px;
  25233. }
  25234. .up_photo2 img {
  25235. width: 50%;
  25236. height: auto;
  25237. }
  25238. .up_photo2 span {
  25239. color: #898989;
  25240. }
  25241. .plworkBox {
  25242. display: flex;
  25243. align-items: center;
  25244. margin-top: 10px;
  25245. flex-wrap: wrap;
  25246. }
  25247. .upload_send {
  25248. margin: 30px auto 30px;
  25249. width: 60%;
  25250. background: #3681fc;
  25251. text-align: center;
  25252. height: 35px;
  25253. line-height: 35px;
  25254. color: #fff;
  25255. border-radius: 5px;
  25256. cursor: pointer;
  25257. }
  25258. .marginT {
  25259. margin-top: 20px;
  25260. }
  25261. .cd_content_steps {
  25262. display: flex;
  25263. width: 90%;
  25264. justify-content: space-around;
  25265. border-top: 1px solid #eeeeee;
  25266. }
  25267. .cd_steps_box {
  25268. display: flex;
  25269. justify-content: center;
  25270. align-items: center;
  25271. flex-direction: column;
  25272. cursor: pointer;
  25273. }
  25274. .first {
  25275. display: flex;
  25276. align-items: center;
  25277. margin: 15px 0 20px 0;
  25278. font-size: 20px;
  25279. }
  25280. .first > div:nth-child(2) {
  25281. font-size: 16px !important;
  25282. padding-left: 10px;
  25283. line-height: 26px;
  25284. box-sizing: border-box;
  25285. }
  25286. .blue_box_one {
  25287. text-align: center;
  25288. color: #fff;
  25289. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  25290. border-radius: 7px;
  25291. margin: 10px;
  25292. cursor: pointer;
  25293. width: 95%;
  25294. height: 45px;
  25295. display: flex;
  25296. flex-direction: row;
  25297. justify-content: flex-start;
  25298. align-items: center;
  25299. }
  25300. .blue_box_one > div:nth-child(1) {
  25301. line-height: 30px;
  25302. margin: 0 5px 0 10px;
  25303. width: 30%;
  25304. min-width: 70px;
  25305. border-radius: 4px;
  25306. }
  25307. .blue_box_one > div:nth-child(2) {
  25308. white-space: nowrap;
  25309. text-overflow: ellipsis;
  25310. overflow: hidden;
  25311. word-break: break-all;
  25312. width: 70%;
  25313. text-align: left;
  25314. margin-right: 10px;
  25315. max-width: calc(100% - 85px);
  25316. }
  25317. .blue_box_one > div:nth-child(2):hover {
  25318. overflow: hidden;
  25319. text-overflow: ellipsis;
  25320. white-space: nowrap;
  25321. cursor: pointer;
  25322. }
  25323. .upFile {
  25324. margin: 0 auto;
  25325. width: 120px;
  25326. background: #3681fc;
  25327. color: #fff;
  25328. height: 30px;
  25329. text-align: center;
  25330. line-height: 30px;
  25331. border-radius: 5px;
  25332. font-size: 14px;
  25333. cursor: pointer;
  25334. }
  25335. .courseTitle {
  25336. width: 85%;
  25337. margin: 10px auto 26px auto;
  25338. display: flex;
  25339. flex-direction: row;
  25340. align-items: center;
  25341. justify-content: space-between;
  25342. text-align: center;
  25343. }
  25344. .courseTitle .ctitle {
  25345. font-size: 20px;
  25346. font-weight: bold;
  25347. color: #0e1e33;
  25348. white-space: nowrap;
  25349. overflow: hidden;
  25350. text-overflow: ellipsis;
  25351. }
  25352. .inviteBox {
  25353. font-size: 14px;
  25354. /* margin-top: 5px; */
  25355. color: #00000099;
  25356. text-align: center;
  25357. }
  25358. .courseTitle >>> .el-tooltip {
  25359. width: 100%;
  25360. white-space: nowrap;
  25361. overflow: hidden;
  25362. text-overflow: ellipsis;
  25363. word-break: break-word;
  25364. }
  25365. .ml {
  25366. margin-left: 20px;
  25367. color: #5b7dba;
  25368. border-left: 3px solid #5b7dba;
  25369. padding-left: 5px;
  25370. font-weight: bold;
  25371. }
  25372. .return {
  25373. width: 2rem;
  25374. height: 2rem;
  25375. cursor: pointer;
  25376. }
  25377. .return > img {
  25378. width: 100%;
  25379. height: 100%;
  25380. }
  25381. .returnBtn {
  25382. width: 86px;
  25383. height: 36px;
  25384. background: #3681fc;
  25385. border-radius: 4px;
  25386. color: #fff;
  25387. text-align: center;
  25388. line-height: 36px;
  25389. margin-right: 20px;
  25390. cursor: pointer;
  25391. font-size: 14px;
  25392. font-weight: 400;
  25393. display: flex;
  25394. flex-direction: row;
  25395. flex-wrap: nowrap;
  25396. align-items: center;
  25397. justify-content: center;
  25398. }
  25399. .reBtnIcon,
  25400. .commentIcon,
  25401. .vedioIcon,
  25402. .vedioIcon1 {
  25403. /* width: 36px; */
  25404. height: 36px;
  25405. border-radius: 4px;
  25406. position: relative;
  25407. /* background: #e0eafb; */
  25408. background: #0061ff;
  25409. cursor: pointer;
  25410. margin-right: 12px;
  25411. display: flex;
  25412. align-items: center;
  25413. padding: 0 10px;
  25414. box-sizing: border-box;
  25415. font-size: 14px;
  25416. color: #fff;
  25417. }
  25418. .reBtnIcon::before,
  25419. .commentIcon::before,
  25420. .vedioIcon::before,
  25421. .vedioIcon1::before {
  25422. content: "";
  25423. display: block;
  25424. background-size: 100% 100%;
  25425. background-repeat: no-repeat;
  25426. width: 20px;
  25427. height: 20px;
  25428. margin-right: 5px;
  25429. /* position: absolute; */
  25430. /* top: 8px;
  25431. left: 8px; */
  25432. }
  25433. .vedioIcon1 {
  25434. background: #f63564;
  25435. }
  25436. .reBtnIcon::before {
  25437. background-image: url("../../assets/icon/newIcons/refresh.png");
  25438. }
  25439. .commentIcon::before {
  25440. background-image: url("../../assets/icon/newIcons/comment.png");
  25441. }
  25442. .vedioIcon::before {
  25443. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25444. }
  25445. .vedioIcon1::before {
  25446. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  25447. background-image: url("../../assets/icon/newIcons/transcribe.png");
  25448. }
  25449. .tool {
  25450. display: flex;
  25451. flex-direction: column;
  25452. flex-wrap: nowrap;
  25453. width: 13%;
  25454. margin: 0 30px;
  25455. align-items: center;
  25456. position: relative;
  25457. padding: 10px 25px;
  25458. cursor: pointer;
  25459. }
  25460. .whiteBIcon {
  25461. width: 150px;
  25462. }
  25463. .whiteBIcon > img {
  25464. width: 100%;
  25465. height: 100%;
  25466. }
  25467. .mask {
  25468. background-color: rgba(0, 0, 0, 0);
  25469. position: fixed;
  25470. top: 0;
  25471. left: 0;
  25472. width: 100%;
  25473. height: 100%;
  25474. z-index: 20000;
  25475. display: flex;
  25476. align-items: center;
  25477. justify-content: center;
  25478. }
  25479. .progressBox {
  25480. width: 500px;
  25481. height: 180px;
  25482. background: #fff;
  25483. border-radius: 10px;
  25484. box-shadow: 0 0 6px 1px #bfbfbf;
  25485. display: flex;
  25486. align-items: center;
  25487. justify-content: center;
  25488. flex-direction: column;
  25489. position: relative;
  25490. color: #6c6c6c;
  25491. }
  25492. .progressBox >>> .el-progress-bar__outer {
  25493. background-color: #d1dfff !important;
  25494. }
  25495. .progressBox .lbox {
  25496. height: 50px;
  25497. font-size: 19px;
  25498. display: flex;
  25499. align-items: center;
  25500. color: #747474;
  25501. }
  25502. .progressBox .lbox img {
  25503. width: 40px;
  25504. margin-right: 20px;
  25505. }
  25506. .closeCss {
  25507. position: absolute;
  25508. top: 8px;
  25509. right: 8px;
  25510. cursor: pointer;
  25511. width: 20px;
  25512. height: 20px;
  25513. }
  25514. .closeCss > img {
  25515. width: 100%;
  25516. height: 100%;
  25517. }
  25518. .uploadVedio {
  25519. display: flex;
  25520. flex-direction: column;
  25521. flex-wrap: nowrap;
  25522. justify-content: center;
  25523. align-items: center;
  25524. margin: 0 15px 10px 0;
  25525. }
  25526. .uploadVedio > img {
  25527. width: 30px;
  25528. height: 30px;
  25529. }
  25530. .uploadVedio > span {
  25531. white-space: nowrap;
  25532. overflow: hidden;
  25533. text-overflow: ellipsis;
  25534. width: 75px;
  25535. margin-top: 7px;
  25536. }
  25537. .picName {
  25538. white-space: nowrap;
  25539. overflow: hidden;
  25540. text-overflow: ellipsis;
  25541. width: 75px;
  25542. margin-top: 7px;
  25543. }
  25544. .new_top {
  25545. display: flex;
  25546. background: #fff;
  25547. flex-direction: row;
  25548. justify-content: flex-start;
  25549. align-items: center;
  25550. height: 60px;
  25551. position: fixed;
  25552. top: 20px;
  25553. left: 22%;
  25554. width: 77%;
  25555. z-index: 999;
  25556. border-radius: 12px 12px 0 0;
  25557. border-bottom: 1px solid #cad1dc;
  25558. padding: 10px 0;
  25559. }
  25560. .new_topFixed {
  25561. width: 100%;
  25562. height: 40px;
  25563. position: fixed;
  25564. top: 0px;
  25565. display: block;
  25566. background: #f2f2f2;
  25567. z-index: 998;
  25568. }
  25569. .before {
  25570. position: absolute;
  25571. background: #c3dad4;
  25572. width: 6px;
  25573. height: 100%;
  25574. }
  25575. .courseIndex {
  25576. display: flex;
  25577. flex-direction: row;
  25578. align-items: center;
  25579. width: calc(100% - 745px);
  25580. }
  25581. .courseIndex > div:nth-child(1) {
  25582. margin: 0 0 0 10px;
  25583. font-size: 20px;
  25584. min-width: 100px;
  25585. font-weight: bold;
  25586. border-left: 4px solid #3363b9;
  25587. height: 32px;
  25588. text-align: center;
  25589. line-height: 35px;
  25590. }
  25591. .courseIndex > div:nth-child(2) {
  25592. font-size: 20px;
  25593. /* width: 300px; */
  25594. max-width: calc(100% - 105px);
  25595. white-space: nowrap;
  25596. overflow: hidden;
  25597. text-overflow: ellipsis;
  25598. }
  25599. .courseIndex > div:nth-child(3) {
  25600. border-bottom: 1px solid #d7d7d7;
  25601. padding-bottom: 5px;
  25602. background: #3681fc;
  25603. width: 55px;
  25604. min-width: 55px;
  25605. border-radius: 5px;
  25606. color: #fff;
  25607. text-align: center;
  25608. height: 20px;
  25609. line-height: 26px;
  25610. font-size: 14px;
  25611. margin: 0 0 0 10px;
  25612. }
  25613. .course_text {
  25614. padding: 20px 0 0 15px;
  25615. text-indent: 30px;
  25616. width: 80%;
  25617. min-height: 20px;
  25618. }
  25619. .vedioList {
  25620. background: #f2f2f2;
  25621. border: 1px solid #ececec;
  25622. /* width: 38.8%; */
  25623. /* width: 300px; */
  25624. width: 100%;
  25625. height: 445px;
  25626. border-radius: 10px;
  25627. overflow: hidden;
  25628. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  25629. }
  25630. .vedioNav {
  25631. margin: 10px 0 0 15px;
  25632. border-bottom: 1px solid #d7d7d7;
  25633. padding-bottom: 5px;
  25634. background: #3681fc;
  25635. width: 55px;
  25636. min-width: 55px;
  25637. border-radius: 5px;
  25638. color: #fff;
  25639. text-align: center;
  25640. height: 20px;
  25641. line-height: 26px;
  25642. font-size: 14px;
  25643. }
  25644. .queTop {
  25645. display: flex;
  25646. padding: 20px 0 20px 30px;
  25647. width: 100%;
  25648. flex-direction: row;
  25649. justify-content: flex-start;
  25650. align-items: center;
  25651. box-sizing: border-box;
  25652. }
  25653. .queTopTitle {
  25654. display: flex;
  25655. flex-direction: row;
  25656. flex-wrap: nowrap;
  25657. align-items: center;
  25658. font-weight: bold;
  25659. font-size: 20px;
  25660. color: rgb(14, 30, 51);
  25661. }
  25662. .queTopTitle::before {
  25663. content: "";
  25664. width: 2px;
  25665. height: 22px;
  25666. background: #3681fc;
  25667. border-radius: 3px;
  25668. display: block;
  25669. margin: 2px 6px 0 0;
  25670. }
  25671. .queTopRight {
  25672. display: flex;
  25673. flex-direction: row;
  25674. flex-wrap: nowrap;
  25675. align-items: center;
  25676. }
  25677. .queTopClose {
  25678. margin-right: 20px;
  25679. cursor: pointer;
  25680. position: relative;
  25681. display: flex;
  25682. }
  25683. .closeImg,
  25684. .openImg {
  25685. width: 25px;
  25686. height: 25px;
  25687. position: absolute;
  25688. left: -20px;
  25689. top: -1px;
  25690. }
  25691. .closeImg > img,
  25692. .openImg > img {
  25693. width: 100%;
  25694. height: 100%;
  25695. }
  25696. .question {
  25697. width: 40px;
  25698. margin-right: 10px;
  25699. margin-top: 7px;
  25700. }
  25701. .queTitle {
  25702. margin-left: 5px;
  25703. font-size: 25px;
  25704. display: flex;
  25705. align-items: center;
  25706. }
  25707. .addEditor {
  25708. width: 100px;
  25709. height: 30px;
  25710. background: #42cda6;
  25711. color: #fff;
  25712. border-radius: 5px;
  25713. text-align: center;
  25714. line-height: 30px;
  25715. box-shadow: 1px 3px 6px 1px #bfbfbf;
  25716. cursor: pointer;
  25717. }
  25718. /* .vedioName {
  25719. cursor: pointer;
  25720. margin: 0px 0px 10px 5px;
  25721. white-space: nowrap;
  25722. overflow: hidden;
  25723. text-overflow: ellipsis;
  25724. width: 100%;
  25725. } */
  25726. .vedioTime {
  25727. width: 35px;
  25728. position: absolute;
  25729. color: #fff;
  25730. bottom: 0px;
  25731. right: 0px;
  25732. text-align: center;
  25733. background: #46411f;
  25734. height: 20px;
  25735. font-size: 14px;
  25736. line-height: 20px;
  25737. }
  25738. .homework {
  25739. width: 200px;
  25740. display: flex;
  25741. flex-direction: column;
  25742. flex-wrap: nowrap;
  25743. align-items: center;
  25744. cursor: pointer;
  25745. }
  25746. .homebox {
  25747. display: flex;
  25748. flex-wrap: wrap;
  25749. flex-direction: row;
  25750. justify-content: flex-start;
  25751. align-items: center;
  25752. padding: 15px 0;
  25753. }
  25754. .isChooseActive {
  25755. color: #3681fc !important;
  25756. font-weight: bold !important;
  25757. }
  25758. .chooseWho {
  25759. display: flex;
  25760. width: 100%;
  25761. flex-direction: row;
  25762. flex-wrap: nowrap;
  25763. justify-content: flex-start;
  25764. padding-bottom: 10px;
  25765. }
  25766. .chooseWho > div {
  25767. cursor: pointer;
  25768. padding-bottom: 10px;
  25769. margin: 0 30px 0 0;
  25770. font-weight: 400;
  25771. color: #0e1e33;
  25772. }
  25773. .addPoint > div > img {
  25774. cursor: pointer;
  25775. width: 85px;
  25776. border-radius: 15px;
  25777. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  25778. }
  25779. .addPoint > div {
  25780. display: flex;
  25781. flex-direction: column;
  25782. flex-wrap: nowrap;
  25783. align-items: center;
  25784. }
  25785. .isBorder > div {
  25786. margin: 0 0 10px 0;
  25787. align-items: flex-start !important;
  25788. }
  25789. .noiframeBox {
  25790. display: flex;
  25791. flex-wrap: wrap;
  25792. }
  25793. .iframeBox iframe {
  25794. width: 100%;
  25795. height: 800px;
  25796. border: none;
  25797. margin-bottom: 20px;
  25798. border: 1px solid #ccc;
  25799. }
  25800. .upload_toolBtn {
  25801. background: #3681fc;
  25802. color: #fff;
  25803. width: 110px;
  25804. text-align: center;
  25805. height: 35px;
  25806. line-height: 35px;
  25807. font-size: 14px;
  25808. border-radius: 5px;
  25809. cursor: pointer;
  25810. position: absolute;
  25811. right: 10px;
  25812. bottom: 0;
  25813. }
  25814. .binfo_input,
  25815. .pj {
  25816. font: inherit;
  25817. color: currentColor;
  25818. width: 100%;
  25819. margin: 0;
  25820. padding: 15px 14px;
  25821. display: block;
  25822. min-width: 0;
  25823. outline: none;
  25824. box-sizing: content-box;
  25825. background: none;
  25826. -webkit-tap-highlight-color: transparent;
  25827. border: 1px solid rgba(0, 0, 0, 0.23);
  25828. border-radius: 4px;
  25829. box-sizing: border-box;
  25830. resize: none;
  25831. }
  25832. .binfo_input:focus-visible {
  25833. border: 1px solid rgba(61, 103, 188);
  25834. }
  25835. .dialog_diy >>> .el-dialog__header,
  25836. .dialog_diy1 >>> .el-dialog__header {
  25837. background: #454545 !important;
  25838. padding: 15px 20px;
  25839. }
  25840. .dialog_diy >>> .el-dialog__title,
  25841. .dialog_diy1 >>> .el-dialog__title {
  25842. color: #fff;
  25843. }
  25844. .dialog_diy >>> .el-dialog__headerbtn,
  25845. .dialog_diy1 >>> .el-dialog__headerbtn {
  25846. top: 19px;
  25847. }
  25848. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  25849. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  25850. color: #fff;
  25851. }
  25852. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  25853. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  25854. color: #fff;
  25855. }
  25856. .dialog_diy1 >>> .el-dialog__body {
  25857. padding: 0;
  25858. }
  25859. .dialog_diy >>> .el-dialog__body,
  25860. .dialog_diy >>> .el-dialog__footer,
  25861. .dialog_diy1 >>> .el-dialog__footer {
  25862. background: #fafafa;
  25863. }
  25864. .markScore_diy >>> .el-dialog {
  25865. border-radius: 10px;
  25866. }
  25867. .markScore_diy >>> .el-dialog__body {
  25868. padding: 0;
  25869. height: 621px;
  25870. min-height: calc(100% - 60px);
  25871. }
  25872. .markScore_diy >>> .el-dialog__header {
  25873. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  25874. }
  25875. .markScore_diy >>> .markScore_diyTit {
  25876. width: calc(100% - 60px);
  25877. display: flex;
  25878. justify-content: space-between;
  25879. align-items: center;
  25880. }
  25881. .a_addBox {
  25882. padding: 0 0 0 15px;
  25883. }
  25884. .a_add_box {
  25885. padding: 10px;
  25886. background: #fff;
  25887. margin-bottom: 10px;
  25888. border-radius: 5px;
  25889. box-shadow: 0 0 5px 0 #d5d5d5;
  25890. }
  25891. .a_add_head {
  25892. display: flex;
  25893. align-items: flex-start;
  25894. /* justify-content: space-between; */
  25895. flex-direction: column;
  25896. /* flex-direction: row; */
  25897. margin: 10px 0 20px 0;
  25898. font-size: 18px;
  25899. width: 100%;
  25900. }
  25901. .askIndex {
  25902. background: #3681fc;
  25903. border-radius: 50%;
  25904. color: #fff;
  25905. width: 25px;
  25906. height: 25px;
  25907. min-width: 25px;
  25908. min-height: 25px;
  25909. text-align: center;
  25910. line-height: 25px;
  25911. margin-right: 5px;
  25912. }
  25913. .a_add_head .a_add_head_input {
  25914. width: 300px;
  25915. }
  25916. .a_add_head .a_add_head_div {
  25917. display: flex;
  25918. align-items: center;
  25919. justify-content: space-between;
  25920. }
  25921. .a_add_body {
  25922. display: flex;
  25923. align-items: center;
  25924. }
  25925. .a_add_input {
  25926. display: flex;
  25927. align-items: center;
  25928. flex-wrap: wrap;
  25929. width: 100%;
  25930. }
  25931. .a_add_input >>> .el-radio-group,
  25932. .a_add_input >>> .el-checkbox-group {
  25933. width: 100%;
  25934. }
  25935. .a_add_input >>> .el-radio,
  25936. .a_add_input >>> .el-checkbox {
  25937. display: flex;
  25938. flex-direction: row;
  25939. flex-wrap: nowrap;
  25940. align-items: center;
  25941. padding: 15px 0;
  25942. }
  25943. .a_add_input >>> .el-radio:not(:last-child),
  25944. .a_add_input >>> .el-checkbox:not(:last-child) {
  25945. width: 100%;
  25946. border-bottom: 1px solid #efefef;
  25947. }
  25948. .redioStyle >>> .el-radio__label {
  25949. font-size: 18px;
  25950. }
  25951. .redioStyle >>> .el-radio__label > span,
  25952. .redioStyle >>> .el-checkbox__label > span {
  25953. word-break: break-all;
  25954. white-space: normal;
  25955. }
  25956. .redioStyle >>> .el-checkbox__label {
  25957. font-size: 18px;
  25958. }
  25959. .toolHeng2 {
  25960. width: 100%;
  25961. padding-left: 15px;
  25962. box-sizing: border-box;
  25963. }
  25964. .workNav {
  25965. font-size: 20px;
  25966. font-weight: bold;
  25967. color: #0e1e33;
  25968. display: flex;
  25969. flex-direction: row;
  25970. flex-wrap: nowrap;
  25971. align-items: center;
  25972. padding: 15px 0 15px 0;
  25973. }
  25974. .workNav::before {
  25975. content: "";
  25976. width: 2px;
  25977. height: 22px;
  25978. background: #3681fc;
  25979. border-radius: 3px;
  25980. display: block;
  25981. margin: 2px 6px 0 0;
  25982. }
  25983. .toolHeng {
  25984. display: flex;
  25985. flex-direction: row;
  25986. flex-wrap: wrap;
  25987. justify-content: flex-start;
  25988. align-items: center;
  25989. width: 100%;
  25990. }
  25991. .toolHeng > div {
  25992. padding-left: 20px;
  25993. }
  25994. .isWidth {
  25995. width: 20%;
  25996. }
  25997. .textTitle {
  25998. display: flex;
  25999. flex-direction: row;
  26000. flex-wrap: nowrap;
  26001. align-items: center;
  26002. width: 95%;
  26003. }
  26004. .textTitle >>> .el-form-item__label {
  26005. font-size: 22px;
  26006. color: #918f8f;
  26007. width: 100px;
  26008. }
  26009. .textTitle >>> .el-form-item__content {
  26010. width: calc(100% - 100px);
  26011. }
  26012. .textCss >>> .el-dialog {
  26013. width: 800px !important;
  26014. height: 400px;
  26015. background: #fafafa;
  26016. }
  26017. .textCss >>> .el-dialog__body {
  26018. margin: 55px 8% 0 8%;
  26019. padding: 0 !important;
  26020. }
  26021. .textCss >>> .el-dialog__footer {
  26022. padding-top: 38px;
  26023. }
  26024. .toolsCss >>> .el-dialog__body {
  26025. padding: 20px;
  26026. }
  26027. .lineCss >>> .el-dialog__body {
  26028. display: flex;
  26029. flex-direction: row;
  26030. align-items: center;
  26031. justify-content: center;
  26032. }
  26033. .newNav {
  26034. display: flex;
  26035. flex-direction: row;
  26036. align-items: baseline;
  26037. justify-content: flex-start;
  26038. }
  26039. .navListItem {
  26040. width: calc(100% - 20px);
  26041. height: 50px;
  26042. margin: 0px auto 10px;
  26043. display: flex;
  26044. flex-direction: row;
  26045. flex-wrap: nowrap;
  26046. align-items: center;
  26047. justify-content: space-between;
  26048. background: #f0f4fa;
  26049. border-radius: 6px 6px 6px 6px;
  26050. }
  26051. .navText {
  26052. cursor: pointer;
  26053. white-space: nowrap;
  26054. overflow: hidden;
  26055. text-overflow: ellipsis;
  26056. width: 220px;
  26057. padding: 0 10px;
  26058. font-weight: 400;
  26059. color: #0e1e33;
  26060. }
  26061. .downIcon {
  26062. width: 20px;
  26063. min-width: 20px;
  26064. height: 20px;
  26065. margin-right: 15px;
  26066. cursor: pointer;
  26067. }
  26068. .downIcon > img {
  26069. width: 100%;
  26070. height: 100%;
  26071. }
  26072. .noVedio {
  26073. display: flex;
  26074. flex-direction: row;
  26075. justify-content: center;
  26076. align-content: center;
  26077. }
  26078. .noNavText {
  26079. cursor: pointer;
  26080. margin: 0px 0px 10px 5px;
  26081. width: 112px;
  26082. }
  26083. .listNoVedio {
  26084. margin: 0 0 0 30px;
  26085. width: 97%;
  26086. }
  26087. .video-player >>> .video-js {
  26088. height: 100%;
  26089. }
  26090. .hangVedioList {
  26091. width: 90% !important;
  26092. height: 150px !important;
  26093. margin: 20px 0 0 30px;
  26094. }
  26095. .hangVedio {
  26096. width: 100%;
  26097. height: 170px !important;
  26098. align-items: flex-start !important;
  26099. }
  26100. .hangHand {
  26101. height: 150px !important;
  26102. }
  26103. .twoChild {
  26104. width: 95%;
  26105. margin: 10px;
  26106. border-radius: 5px;
  26107. background: #f2f2f2;
  26108. display: flex;
  26109. flex-direction: column;
  26110. flex-wrap: nowrap;
  26111. justify-content: flex-start;
  26112. align-items: flex-start;
  26113. transition: all 0.5s;
  26114. overflow: hidden;
  26115. height: 0;
  26116. background: #e7f3ff;
  26117. }
  26118. .twoChild > div:nth-child(1) {
  26119. margin-top: 5px;
  26120. }
  26121. .navChild {
  26122. width: 100%;
  26123. cursor: pointer;
  26124. margin-bottom: 10px;
  26125. position: relative;
  26126. }
  26127. .navChild img {
  26128. position: absolute;
  26129. right: 11px;
  26130. width: 15px;
  26131. top: 50%;
  26132. transform: translateY(-50%);
  26133. }
  26134. .navActive,
  26135. .toolActive {
  26136. height: auto !important;
  26137. overflow: auto !important;
  26138. /* padding-bottom: 16px; */
  26139. }
  26140. .toolActive {
  26141. padding: 0;
  26142. }
  26143. .navTask {
  26144. display: flex;
  26145. flex-direction: row;
  26146. flex-wrap: nowrap;
  26147. align-items: center;
  26148. align-content: flex-start;
  26149. height: 40px;
  26150. justify-content: flex-start;
  26151. padding: 0 10px;
  26152. width: 100%;
  26153. box-sizing: border-box;
  26154. }
  26155. .navTaskname {
  26156. white-space: nowrap;
  26157. text-overflow: ellipsis;
  26158. overflow: hidden;
  26159. word-break: break-all;
  26160. padding-left: 5px;
  26161. }
  26162. .openTaskActive {
  26163. /* background-color: #e0eafb !important;
  26164. color: #0061ff; */
  26165. color:#fff;
  26166. background: rgb(55, 129, 252) !important;
  26167. }
  26168. .iframeName {
  26169. margin: 5px 0;
  26170. border-left: 4px solid #41c4a4;
  26171. padding-left: 4px;
  26172. }
  26173. .toolTitle {
  26174. margin: 0px 0px 20px;
  26175. font-size: 20px;
  26176. font-weight: 500;
  26177. border-left: 4px solid #41c4a4;
  26178. padding-left: 4px;
  26179. }
  26180. .cru_selectBox {
  26181. overflow: auto;
  26182. width: 95%;
  26183. margin: 17px auto 0;
  26184. height: calc(100% - 40px - 21px - 20px - 17px);
  26185. background: #fff;
  26186. border-radius: 8px;
  26187. }
  26188. .cru_selectBox::-webkit-scrollbar,
  26189. .study_top::-webkit-scrollbar,
  26190. .textContent::-webkit-scrollbar {
  26191. /*滚动条整体样式*/
  26192. width: 6px;
  26193. /*高宽分别对应横竖滚动条的尺寸*/
  26194. height: 6px;
  26195. }
  26196. /*定义滚动条轨道 内阴影+圆角*/
  26197. .cru_selectBox::-webkit-scrollbar-track,
  26198. .study_top::-webkit-scrollbar-track,
  26199. .textContent::-webkit-scrollbar {
  26200. border-radius: 10px;
  26201. background-color: #b8bdc9;
  26202. }
  26203. /*定义滑块 内阴影+圆角*/
  26204. .cru_selectBox::-webkit-scrollbar-thumb,
  26205. .study_top::-webkit-scrollbar-thumb,
  26206. .textContent::-webkit-scrollbar-thumb {
  26207. border-radius: 10px;
  26208. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  26209. background-color: #2c5ab3;
  26210. }
  26211. .vedioBox {
  26212. border-radius: 0 0 20px 20px;
  26213. background: #fff;
  26214. overflow: auto;
  26215. }
  26216. .taskBox {
  26217. width: 98%;
  26218. background: #f0f4fa;
  26219. margin: 10px auto;
  26220. padding: 0 10px;
  26221. border-radius: 4px;
  26222. box-sizing: border-box;
  26223. }
  26224. .vedioTaskBox {
  26225. width: 100%;
  26226. display: flex;
  26227. flex-direction: row;
  26228. flex-wrap: nowrap;
  26229. align-items: flex-start;
  26230. position: relative;
  26231. }
  26232. .toolBox {
  26233. margin: 15px 0 0 25px;
  26234. display: flex;
  26235. position: relative;
  26236. padding: 18px 20px;
  26237. border-top-left-radius: 5px;
  26238. border-top-right-radius: 5px;
  26239. width: 90%;
  26240. }
  26241. .btnAll {
  26242. position: absolute;
  26243. right: 0;
  26244. display: flex;
  26245. flex-direction: row;
  26246. flex-wrap: nowrap;
  26247. align-items: center;
  26248. }
  26249. .btnLeft,
  26250. .btnRight {
  26251. display: flex;
  26252. flex-direction: row;
  26253. flex-wrap: nowrap;
  26254. align-items: center;
  26255. padding: 5px 0;
  26256. }
  26257. .btnLeft {
  26258. border-right: 1px solid #cad1dc;
  26259. }
  26260. .btnLeft > .custom-tooltip {
  26261. background: #3681fc;
  26262. color: #fff;
  26263. }
  26264. .last:hover {
  26265. background: #3383fa !important;
  26266. color: #fff;
  26267. border: 1px solid #3383fa !important;
  26268. }
  26269. .last,
  26270. .returnBtn1 {
  26271. width: 90px;
  26272. height: 36px;
  26273. background: #ffffff;
  26274. border-radius: 4px;
  26275. border: 1px solid #0061ff;
  26276. color: #0061ff;
  26277. cursor: pointer;
  26278. display: flex;
  26279. flex-direction: row;
  26280. flex-wrap: nowrap;
  26281. align-items: center;
  26282. justify-content: center;
  26283. margin-left: 12px;
  26284. }
  26285. .returnBtn1 {
  26286. background: #f0f4fa;
  26287. border-radius: 4px;
  26288. border: 1px solid #cad1dc;
  26289. margin: 0 12px;
  26290. }
  26291. .lastImg {
  26292. min-width: 15px;
  26293. width: 15px;
  26294. height: 15px;
  26295. display: flex;
  26296. }
  26297. .lastText {
  26298. padding: 0 5px 0 5px;
  26299. box-sizing: border-box;
  26300. font-size: 14px;
  26301. }
  26302. .lastImg > img {
  26303. width: 100%;
  26304. height: 100%;
  26305. }
  26306. /* .vedioTimeBox {
  26307. display: flex;
  26308. flex-direction: row;
  26309. align-items: center;
  26310. flex-wrap: nowrap;
  26311. position: relative;
  26312. } */
  26313. .navBox {
  26314. background: #fff;
  26315. height: calc(100% - 40px);
  26316. overflow-y: auto;
  26317. overflow-x: hidden;
  26318. }
  26319. .worksBox {
  26320. margin: 0 0 10px 25px;
  26321. border-bottom: 1px solid #eeeeee;
  26322. padding: 18px 20px;
  26323. border-radius: 4px;
  26324. width: 90%;
  26325. }
  26326. .worksBTitle {
  26327. font-size: 20px;
  26328. padding-bottom: 15px;
  26329. border-bottom: 1px solid #eeeeee;
  26330. display: flex;
  26331. align-items: center;
  26332. }
  26333. .greenBox {
  26334. width: 5px;
  26335. height: 30px;
  26336. background: #63b6fa;
  26337. margin-right: 5px;
  26338. }
  26339. .worksDetailBox {
  26340. display: flex;
  26341. width: 100%;
  26342. flex-direction: row;
  26343. flex-wrap: wrap;
  26344. align-items: flex-end;
  26345. justify-content: flex-start;
  26346. padding: 15px 5px;
  26347. box-sizing: border-box;
  26348. }
  26349. .works {
  26350. display: flex;
  26351. flex-direction: column;
  26352. flex-wrap: nowrap;
  26353. align-items: flex-start;
  26354. justify-content: flex-start;
  26355. align-content: center;
  26356. max-width: 240px;
  26357. width: calc(100% / 3 - 10px);
  26358. height: auto;
  26359. margin-right: 10px;
  26360. margin-bottom: 10px;
  26361. overflow: hidden;
  26362. height: 140px;
  26363. box-shadow: 0 0 6px 1px #dfdada;
  26364. border-radius: 15px;
  26365. }
  26366. .workImg {
  26367. width: 100%;
  26368. /* height: calc(100% - 40px); */
  26369. height: 105px;
  26370. position: relative;
  26371. }
  26372. .workImg > img {
  26373. width: 100%;
  26374. height: 100%;
  26375. object-fit: contain;
  26376. cursor: pointer;
  26377. }
  26378. .worksName {
  26379. height: 40px;
  26380. line-height: 40px;
  26381. display: flex;
  26382. width: 100%;
  26383. flex-direction: row;
  26384. flex-wrap: nowrap;
  26385. justify-content: space-between;
  26386. align-items: center;
  26387. margin: 0 0 0 10px;
  26388. }
  26389. .worksName > div:nth-child(1) {
  26390. width: 110px;
  26391. white-space: nowrap;
  26392. overflow: hidden;
  26393. text-overflow: ellipsis;
  26394. }
  26395. .worksName > div:nth-child(2) {
  26396. color: #b7b4b5;
  26397. }
  26398. .noWorksS {
  26399. padding: 15px 0;
  26400. display: flex;
  26401. flex-direction: row;
  26402. flex-wrap: wrap;
  26403. align-items: center;
  26404. justify-content: flex-start;
  26405. }
  26406. .noWorksName,
  26407. .isWorksName,
  26408. .isWorksName2 {
  26409. background: #ddebf8;
  26410. color: #000;
  26411. width: 90px;
  26412. height: 25px;
  26413. text-align: center;
  26414. line-height: 25px;
  26415. border-radius: 4px;
  26416. margin: 10px 15px 10px 0;
  26417. white-space: nowrap;
  26418. overflow: hidden;
  26419. padding: 5px;
  26420. text-overflow: ellipsis;
  26421. cursor: pointer;
  26422. border: 1px solid #ddebf8;
  26423. }
  26424. .noWorksName {
  26425. background: #fff;
  26426. color: #0061ff;
  26427. border: 1px solid #0061ff;
  26428. }
  26429. .noWorksName > span{
  26430. max-width: 100%;
  26431. display: block;
  26432. overflow: hidden;
  26433. text-overflow: ellipsis;
  26434. white-space: nowrap;
  26435. }
  26436. .isWorksName2 {
  26437. width: 100px;
  26438. height: 40px;
  26439. line-height: 40px;
  26440. position: relative;
  26441. background: #dae6f9;
  26442. }
  26443. .isWorksName {
  26444. background: #e7ebf1 !important;
  26445. width: 100px;
  26446. height: 40px;
  26447. line-height: 40px;
  26448. position: relative;
  26449. color: #acb4bf;
  26450. border: 1px solid #cad1dc !important;
  26451. }
  26452. .isSelectName,
  26453. .noWorksName:hover {
  26454. background: #3383fa !important;
  26455. color: #fff !important;
  26456. border: 1px solid #3383fa !important;
  26457. }
  26458. .title {
  26459. background: #1e5cc9;
  26460. /* width: 98%; */
  26461. height: 45px;
  26462. color: #fff;
  26463. line-height: 45px;
  26464. padding-left: 20px;
  26465. box-sizing: border-box;
  26466. }
  26467. .textBox {
  26468. font-size: 20px;
  26469. width: 90%;
  26470. display: flex;
  26471. flex-direction: column;
  26472. align-items: center;
  26473. margin: 20px auto 0;
  26474. max-height: calc(100% - 75px);
  26475. overflow: auto;
  26476. }
  26477. .textContent {
  26478. font-size: 18px;
  26479. width: 95%;
  26480. max-width: 95%;
  26481. }
  26482. .answerBg {
  26483. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  26484. background-size: 100% 100%;
  26485. width: 100%;
  26486. height: 100%;
  26487. color: #fff;
  26488. text-align: center;
  26489. display: flex;
  26490. flex-direction: column;
  26491. flex-wrap: nowrap;
  26492. align-items: center;
  26493. position: relative;
  26494. justify-content: center;
  26495. }
  26496. .answerBg > div:nth-child(1) {
  26497. /* font-size: 22px;
  26498. padding: 25px 0 10px; */
  26499. }
  26500. .answerContent {
  26501. width: 215px;
  26502. max-height: 60px;
  26503. word-break: break-all;
  26504. text-align: center;
  26505. /* white-space: nowrap; */
  26506. overflow: hidden;
  26507. text-overflow: ellipsis;
  26508. /* padding: 23px 0 0; */
  26509. -webkit-line-clamp: 3;
  26510. -webkit-box-orient: vertical;
  26511. display: -webkit-box;
  26512. font-size: 15px;
  26513. cursor: pointer;
  26514. }
  26515. .elist_input_box {
  26516. display: flex;
  26517. align-items: flex-start;
  26518. flex-wrap: nowrap;
  26519. padding: 10px 0 15px 30px;
  26520. flex-direction: column;
  26521. }
  26522. .elist_input {
  26523. /* width: 40%; */
  26524. width: 45%;
  26525. margin: 20px;
  26526. }
  26527. .elist_input .elist_input_box input {
  26528. font: inherit;
  26529. color: currentColor;
  26530. width: 200px;
  26531. padding: 8px 14px;
  26532. display: block;
  26533. min-width: 0;
  26534. outline: none;
  26535. border: 1px solid rgba(0, 0, 0, 0.23);
  26536. border-radius: 4px;
  26537. box-sizing: border-box;
  26538. background: #fff;
  26539. margin: 0 20px 0 0;
  26540. }
  26541. .elist_input .elist_input_box span {
  26542. height: 36px;
  26543. line-height: 36px;
  26544. color: rgb(82, 82, 82);
  26545. }
  26546. .elist_input .elist_input_box .remove {
  26547. height: 20px;
  26548. width: 20px;
  26549. background-size: 100% 100%;
  26550. background-position: unset;
  26551. margin-left: 5px;
  26552. }
  26553. .elist_input_box >>> .el-rate {
  26554. display: flex;
  26555. height: 36px;
  26556. align-items: center;
  26557. }
  26558. .elist_input_box .elist_inptu_text {
  26559. min-height: 50px;
  26560. /* width: 500px;
  26561. max-height: 150px; */
  26562. width: 100%;
  26563. line-height: 50px;
  26564. color: rgb(82, 82, 82);
  26565. overflow: auto;
  26566. text-indent: 5px;
  26567. background: #f7f6f9;
  26568. border-radius: 10px;
  26569. }
  26570. .elist_input_box .elist_inptu_text input {
  26571. width: 500px;
  26572. }
  26573. .elist_input_box >>> .el-rate__icon {
  26574. font-size: 24px;
  26575. }
  26576. .isClick {
  26577. background: #4d9def;
  26578. }
  26579. .bzBox {
  26580. display: flex;
  26581. flex-direction: row;
  26582. align-items: center;
  26583. }
  26584. .bzBox .yCss {
  26585. width: 7px;
  26586. height: 7px;
  26587. background: #fff;
  26588. margin: 0 16px 0 6px;
  26589. border-radius: 50%;
  26590. border: 5px solid #3681fc;
  26591. z-index: 99;
  26592. }
  26593. .bzBox > div:nth-child(2) {
  26594. font-size: 18px;
  26595. font-weight: bold;
  26596. color: #0e1e33;
  26597. }
  26598. .navTitile {
  26599. padding: 0 0px 0 15px;
  26600. font-size: 16px;
  26601. font-weight: bold;
  26602. color: #0e1e33;
  26603. height: 40px;
  26604. line-height: 40px;
  26605. }
  26606. .isTypeOne {
  26607. width: 240px;
  26608. height: 170px;
  26609. /* border: 1px solid #f8f8f8; */
  26610. border-radius: 10px;
  26611. box-shadow: 0 0 6px 1px #dfdada;
  26612. }
  26613. .e_add_top {
  26614. display: flex;
  26615. justify-content: space-between;
  26616. padding: 10px 20px;
  26617. border-radius: 3px;
  26618. background: #fff;
  26619. }
  26620. .e_add_title2 {
  26621. display: flex;
  26622. align-items: center;
  26623. }
  26624. .e_add_title2 span {
  26625. width: 40px;
  26626. }
  26627. .e_add_title {
  26628. display: flex;
  26629. align-items: center;
  26630. color: #b8b8b8;
  26631. font-size: 18px;
  26632. position: relative;
  26633. height: 40px;
  26634. }
  26635. .e_add_title span {
  26636. margin-right: 10px;
  26637. }
  26638. .e_add_title .el_input {
  26639. width: 300px;
  26640. }
  26641. .e_add_title >>> .el-input__inner {
  26642. width: 400px;
  26643. }
  26644. .e_add_btn {
  26645. }
  26646. .e_add_content {
  26647. display: flex;
  26648. width: 100%;
  26649. max-width: 650px;
  26650. height: 550px;
  26651. }
  26652. .e_add_list {
  26653. background: #fff;
  26654. height: 500px;
  26655. width: 210px;
  26656. position: relative;
  26657. margin: 15px 5px 0 0;
  26658. flex-shrink: 0;
  26659. display: flex;
  26660. flex-direction: column;
  26661. }
  26662. .e_add_list_title {
  26663. font-size: 20px;
  26664. width: 100%;
  26665. box-sizing: border-box;
  26666. padding: 15px 40px;
  26667. text-align: center;
  26668. border-bottom: 1px solid #eaeaea;
  26669. position: relative;
  26670. display: flex;
  26671. align-items: center;
  26672. justify-content: center;
  26673. height: 57px;
  26674. background: #f6f6f6;
  26675. }
  26676. .e_add_list_title span {
  26677. overflow: hidden;
  26678. white-space: nowrap;
  26679. text-overflow: ellipsis;
  26680. }
  26681. .e_add_list_title img {
  26682. position: absolute;
  26683. right: 15px;
  26684. width: 25px;
  26685. cursor: pointer;
  26686. top: 50%;
  26687. transform: translateY(-50%);
  26688. }
  26689. .e_add_list_body {
  26690. height: calc(100% - 187px);
  26691. overflow: auto;
  26692. }
  26693. .e_add_list_child {
  26694. width: 100%;
  26695. display: flex;
  26696. align-items: center;
  26697. justify-content: center;
  26698. position: relative;
  26699. box-sizing: border-box;
  26700. padding: 15px 40px;
  26701. text-align: center;
  26702. }
  26703. .e_add_list_child span {
  26704. overflow: hidden;
  26705. white-space: nowrap;
  26706. text-overflow: ellipsis;
  26707. cursor: pointer;
  26708. }
  26709. .e_add_list_child img {
  26710. position: absolute;
  26711. right: 10px;
  26712. width: 21px;
  26713. cursor: pointer;
  26714. top: 50%;
  26715. transform: translateY(-50%);
  26716. }
  26717. .e_add_list_child + .e_add_list_child {
  26718. border-top: 1px solid #eaeaea;
  26719. }
  26720. .e_add_list_child .active {
  26721. color: #409eff;
  26722. }
  26723. .e_add_list_btn {
  26724. position: absolute;
  26725. bottom: 0;
  26726. height: 50px;
  26727. background: rgb(120, 120, 254);
  26728. width: 100%;
  26729. color: #fff;
  26730. font-size: 16px;
  26731. text-align: center;
  26732. line-height: 50px;
  26733. cursor: pointer;
  26734. }
  26735. .e_add_list_detail {
  26736. position: absolute;
  26737. bottom: 0;
  26738. height: 130px;
  26739. background: rgb(120, 120, 254);
  26740. width: 100%;
  26741. color: #fff;
  26742. font-size: 16px;
  26743. display: flex;
  26744. align-items: center;
  26745. justify-content: center;
  26746. }
  26747. .e_add_list_detail textarea {
  26748. height: 90%;
  26749. width: 95%;
  26750. border: none;
  26751. resize: none;
  26752. outline: none;
  26753. padding: 5px;
  26754. box-sizing: border-box;
  26755. }
  26756. .e_add_list_pbox {
  26757. width: 100%;
  26758. max-width: 650px;
  26759. /* height: 600px; */
  26760. }
  26761. .e_add_list_pbox_title {
  26762. height: 50px;
  26763. background: #fff;
  26764. display: flex;
  26765. align-items: center;
  26766. width: 100%;
  26767. box-sizing: border-box;
  26768. padding: 0 20px;
  26769. }
  26770. .type_title {
  26771. font-size: 18px;
  26772. font-weight: 700;
  26773. }
  26774. .type_content {
  26775. font-size: 16px;
  26776. /* margin-left: 30px; */
  26777. }
  26778. .type_content span + span {
  26779. margin-left: 20px;
  26780. }
  26781. .type_content span {
  26782. cursor: pointer;
  26783. padding-bottom: 5px;
  26784. box-sizing: border-box;
  26785. }
  26786. .type_content .active {
  26787. color: #409eff;
  26788. border-bottom: 2px solid #409eff;
  26789. }
  26790. .e_add_list_pbox_content {
  26791. height: calc(100% - 50px);
  26792. display: flex;
  26793. align-items: center;
  26794. width: 100%;
  26795. background: #fff;
  26796. }
  26797. .evaCss {
  26798. display: flex;
  26799. flex-direction: row;
  26800. flex-wrap: nowrap;
  26801. align-items: flex-start;
  26802. padding: 0 0 20px;
  26803. }
  26804. .cru_line {
  26805. position: absolute;
  26806. bottom: 0px;
  26807. transition: all 0.5s;
  26808. left: 0px;
  26809. width: 125px;
  26810. margin-left: -25px;
  26811. }
  26812. .isNoMessage {
  26813. width: 20%;
  26814. margin: 25% auto 0;
  26815. }
  26816. .isNoMessage > img {
  26817. width: 100%;
  26818. height: 100%;
  26819. }
  26820. .fullStyle >>> .el-dialog__body {
  26821. height: 100% !important;
  26822. }
  26823. .fullStyle >>> .el-dialog,
  26824. .fullStyle {
  26825. width: 100% !important;
  26826. max-width: 100% !important;
  26827. height: 100% !important;
  26828. margin: 0 !important;
  26829. }
  26830. .full_diy >>> .el-dialog {
  26831. margin: 0 !important;
  26832. height: 100%;
  26833. padding: 4px;
  26834. }
  26835. .full_diy >>> .el-dialog__body {
  26836. height: calc(100% - 100px);
  26837. }
  26838. .full_diy2 >>> .el-dialog__body {
  26839. height: calc(100% - 50px);
  26840. padding: 0;
  26841. }
  26842. .switchCss {
  26843. /* width: 100%; */
  26844. display: flex;
  26845. flex-direction: row;
  26846. flex-wrap: nowrap;
  26847. align-items: center;
  26848. /* justify-content: center; */
  26849. }
  26850. .isClickNav {
  26851. /* color: #499eef; */
  26852. color: #000;
  26853. }
  26854. .commentImg {
  26855. width: 25px;
  26856. height: 25px;
  26857. cursor: pointer;
  26858. }
  26859. .commentImg > img {
  26860. width: 100%;
  26861. height: 100%;
  26862. }
  26863. .comment {
  26864. background: #f9f9f9;
  26865. border-radius: 0 0 4px 4px;
  26866. display: flex;
  26867. flex-direction: row;
  26868. flex-wrap: nowrap;
  26869. align-items: center;
  26870. justify-content: flex-end;
  26871. height: 35px;
  26872. }
  26873. .commentList {
  26874. display: flex;
  26875. flex-direction: row;
  26876. flex-wrap: nowrap;
  26877. align-items: center;
  26878. justify-content: center;
  26879. align-content: center;
  26880. /* margin-left: 15px; */
  26881. /* margin-left: 8px; */
  26882. }
  26883. .scoreImg {
  26884. width: 17px;
  26885. height: 17px;
  26886. }
  26887. .studentDetail {
  26888. display: flex;
  26889. flex-direction: row;
  26890. flex-wrap: nowrap;
  26891. /* align-items: center; */
  26892. align-items: flex-start;
  26893. }
  26894. .tx {
  26895. width: 50px;
  26896. }
  26897. .tx > img {
  26898. width: 100%;
  26899. height: 100%;
  26900. }
  26901. .nameAndTime {
  26902. display: flex;
  26903. flex-direction: column;
  26904. flex-wrap: nowrap;
  26905. align-items: flex-start;
  26906. margin-left: 10px;
  26907. }
  26908. .worksAnswer {
  26909. color: #4078dd;
  26910. margin: 10px 0;
  26911. font-size: 16px;
  26912. position: relative;
  26913. }
  26914. .worksAnswer > img {
  26915. width: 500px;
  26916. height: 300px;
  26917. object-fit: contain;
  26918. margin: 0 auto;
  26919. display: block;
  26920. }
  26921. .commentTop {
  26922. border-bottom: 1px solid #eaeaea;
  26923. padding-bottom: 10px;
  26924. }
  26925. .commentBox {
  26926. padding-top: 15px;
  26927. }
  26928. .pl {
  26929. font-size: 18px;
  26930. }
  26931. .plPerson {
  26932. width: 100%;
  26933. }
  26934. .plName {
  26935. display: flex;
  26936. flex-direction: row;
  26937. flex-wrap: nowrap;
  26938. align-items: baseline;
  26939. color: #78787a;
  26940. width: 100%;
  26941. }
  26942. .deleteComment {
  26943. cursor: pointer;
  26944. margin-left: auto;
  26945. color: #237ade;
  26946. }
  26947. .plContent {
  26948. margin-top: 5px;
  26949. }
  26950. .evalCss {
  26951. background: #fff;
  26952. font-size: 18px;
  26953. }
  26954. .nav {
  26955. color: #9d9d9d;
  26956. padding: 5px 0 15px 20px;
  26957. }
  26958. .middleBox {
  26959. padding: 5px 0 15px 20px;
  26960. }
  26961. .pfBox {
  26962. padding-bottom: 30px;
  26963. }
  26964. .nameAndrate {
  26965. display: flex;
  26966. flex-direction: row;
  26967. flex-wrap: nowrap;
  26968. align-items: center;
  26969. padding-bottom: 10px;
  26970. height: 30px;
  26971. line-height: 30px;
  26972. }
  26973. .nameAndrate > div {
  26974. margin-left: 10px;
  26975. color: #000;
  26976. height: 30px;
  26977. }
  26978. .nameAndrate >>> .el-rate__icon {
  26979. font-size: 28px !important;
  26980. }
  26981. .pfBox > div:nth-child(2) {
  26982. background: #f7f6f9;
  26983. width: 400px;
  26984. min-height: 45px;
  26985. border-radius: 10px;
  26986. font-size: 16px;
  26987. display: flex;
  26988. flex-wrap: wrap;
  26989. align-items: center;
  26990. padding: 10px 20px;
  26991. box-sizing: border-box;
  26992. color: #000;
  26993. }
  26994. .bz {
  26995. display: flex;
  26996. flex-direction: row;
  26997. flex-wrap: nowrap;
  26998. align-items: flex-start;
  26999. }
  27000. .bz > div {
  27001. padding: 0 10px;
  27002. }
  27003. .select_box2_title {
  27004. background: #fff;
  27005. border-radius: 5px;
  27006. padding: 15px 10px;
  27007. box-sizing: border-box;
  27008. margin-bottom: 10px;
  27009. display: flex;
  27010. flex-direction: row;
  27011. flex-wrap: nowrap;
  27012. align-items: center;
  27013. }
  27014. .select_box2_title > div:nth-child(2) {
  27015. margin-left: 10px;
  27016. color: #c4c4c4;
  27017. }
  27018. .select_box2_box {
  27019. display: flex;
  27020. height: 500px;
  27021. }
  27022. .select_box2_img {
  27023. width: calc(100% - 310px);
  27024. height: 100%;
  27025. overflow: auto;
  27026. background: #fff;
  27027. border-radius: 5px;
  27028. }
  27029. .select_box2_img img {
  27030. width: 100%;
  27031. }
  27032. .select_box2_answer {
  27033. background: #fff;
  27034. margin-left: 10px;
  27035. border-radius: 5px;
  27036. width: 300px;
  27037. overflow: auto;
  27038. height: 90%;
  27039. display: flex;
  27040. flex-direction: column;
  27041. align-items: flex-start;
  27042. padding-top: 10px;
  27043. box-sizing: border-box;
  27044. position: relative;
  27045. }
  27046. .select_answer_title {
  27047. padding: 0 0 15px 20px;
  27048. color: #c4c4c4;
  27049. }
  27050. .select_box2_answer_box {
  27051. margin: 0 0 10px 20px;
  27052. width: 85%;
  27053. display: flex;
  27054. flex-direction: row;
  27055. flex-wrap: nowrap;
  27056. align-items: center;
  27057. }
  27058. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27059. color: #000;
  27060. }
  27061. .upAnswerCss {
  27062. position: absolute;
  27063. bottom: 15px;
  27064. right: 15px;
  27065. }
  27066. .upAnswerCss >>> .el-button {
  27067. width: 95px;
  27068. height: 35px;
  27069. line-height: 35px;
  27070. padding: 0;
  27071. }
  27072. .rightWidthCss {
  27073. width: 60%;
  27074. display: flex;
  27075. flex-direction: row;
  27076. align-items: flex-start;
  27077. }
  27078. .rightAnswer {
  27079. display: flex;
  27080. flex-direction: row;
  27081. flex-wrap: nowrap;
  27082. align-items: center;
  27083. color: red;
  27084. margin-bottom: 31px;
  27085. }
  27086. .rightAnswerCss {
  27087. display: flex;
  27088. flex-direction: column;
  27089. flex-wrap: nowrap;
  27090. padding-top: 60px;
  27091. }
  27092. .blueCss {
  27093. color: #767de1;
  27094. margin-left: 10px;
  27095. }
  27096. .redCss {
  27097. color: red;
  27098. }
  27099. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27100. color: rgb(0 123 255) !important;
  27101. }
  27102. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27103. color: rgb(0 123 255) !important;
  27104. }
  27105. .zuoyeYulan {
  27106. padding-top: 0;
  27107. font-size: 18px;
  27108. display: flex;
  27109. align-items: flex-end;
  27110. }
  27111. .buttonA {
  27112. margin-left: 10px;
  27113. padding: 0;
  27114. }
  27115. .displayBox {
  27116. margin-bottom: 10px;
  27117. display: block;
  27118. border-bottom: 3px solid #eee;
  27119. display: flex;
  27120. align-items: center;
  27121. }
  27122. .easy_comment {
  27123. width: calc(100% - 90px);
  27124. margin-left: 10px;
  27125. display: flex;
  27126. flex-wrap: wrap;
  27127. }
  27128. .easy_comment > div {
  27129. border: 1px solid #4a4a4a;
  27130. color: #666;
  27131. border-radius: 15px;
  27132. padding: 5px 10px;
  27133. font-size: 16px;
  27134. margin-bottom: 10px;
  27135. margin-right: 5px;
  27136. cursor: pointer;
  27137. }
  27138. .easy_comment div:hover {
  27139. border: 1px solid #f7ba2a;
  27140. color: #c69217;
  27141. }
  27142. .xuan_right_box {
  27143. padding: 10px 0;
  27144. background: #f0f4fa;
  27145. margin: 0 15px 0 25px;
  27146. border-bottom-left-radius: 5px;
  27147. border-bottom-right-radius: 5px;
  27148. width: 91.5%;
  27149. }
  27150. .tool_right_box {
  27151. display: flex;
  27152. align-items: center;
  27153. }
  27154. .tool_right_box + .tool_right_box {
  27155. margin-top: 10px;
  27156. }
  27157. .right_box_xuan {
  27158. border-radius: 5px;
  27159. padding: 5px;
  27160. margin-left: 10px;
  27161. min-width: 85px;
  27162. background: #fff;
  27163. color: #0061ff;
  27164. border: 1px solid #0061ff;
  27165. font-size: 14px;
  27166. }
  27167. .pButton:hover {
  27168. opacity: 1 !important;
  27169. }
  27170. .pButton {
  27171. position: fixed;
  27172. text-align: center;
  27173. cursor: pointer;
  27174. z-index: 999;
  27175. right: 20px;
  27176. top: 110px;
  27177. width: 50px;
  27178. height: 50px;
  27179. display: flex;
  27180. align-items: center;
  27181. justify-content: center;
  27182. border-radius: 5px;
  27183. }
  27184. .pzClass {
  27185. width: calc(100% - 340px);
  27186. }
  27187. .newDialogCss {
  27188. /* position: fixed;
  27189. right: 5%;
  27190. top: 50%;
  27191. width: 340px;
  27192. transform: translateY(-50%);
  27193. height: 60%;
  27194. box-shadow: 0px 0 8px 0px #555555;
  27195. border-radius: 15px;
  27196. z-index: 999; */
  27197. position: fixed;
  27198. right: 20px;
  27199. top: 101px;
  27200. width: 330px;
  27201. height: calc(100% - 80px);
  27202. z-index: 999;
  27203. background: #fff;
  27204. border-top-right-radius: 0px;
  27205. border-bottom-right-radius: 0px;
  27206. overflow: hidden;
  27207. }
  27208. .newDialogCss>.scoreList{
  27209. width:100%;
  27210. height:100%;
  27211. box-sizing:border-box;
  27212. padding:10px 15px;
  27213. overflow:auto;
  27214. padding-bottom:80px;
  27215. }
  27216. .pzTop {
  27217. color: #fff;
  27218. background: #000;
  27219. display: flex;
  27220. flex-direction: row;
  27221. flex-wrap: nowrap;
  27222. align-items: center;
  27223. justify-content: space-between;
  27224. height: 40px;
  27225. border-radius: 15px 15px 0 0;
  27226. user-select: none;
  27227. }
  27228. .pzTop2 .checkbox {
  27229. display: flex;
  27230. align-items: center;
  27231. padding: 5px 10px;
  27232. flex: 0 0 auto;
  27233. font-weight: bold;
  27234. border-bottom: 1px solid #eee;
  27235. justify-content: space-between;
  27236. }
  27237. .checkbox>.cb-tabList{
  27238. display:flex;
  27239. align-items:center;
  27240. }
  27241. .cb-tabList>div{
  27242. margin-right:20px;
  27243. font-weight:400;
  27244. cursor:pointer;
  27245. }
  27246. .cb-tabList>.cb-tabItem{
  27247. color:#1684FC;
  27248. position:relative;
  27249. }
  27250. .cb-tabItem::after{
  27251. content:"";
  27252. width:100%;
  27253. height:2px;
  27254. background:#1684FC;
  27255. position:absolute;
  27256. bottom:-5px;
  27257. left:0
  27258. }
  27259. .pzTop2 .check {
  27260. text-align: center;
  27261. cursor: pointer;
  27262. box-sizing: border-box;
  27263. display: flex;
  27264. }
  27265. .pzTop2 img {
  27266. width: 25px;
  27267. cursor: pointer;
  27268. }
  27269. .pzTop > div:nth-child(1) {
  27270. padding-left: 10px;
  27271. }
  27272. .pzTop > div:nth-child(2) {
  27273. width: 15px;
  27274. height: 15px;
  27275. padding-right: 10px;
  27276. cursor: pointer;
  27277. }
  27278. .pzTop > div:nth-child(2) > img {
  27279. width: 100%;
  27280. height: 100%;
  27281. }
  27282. .pzBox,
  27283. .noPzBox {
  27284. height: calc(100% - 60px);
  27285. /* background: #ededed; */
  27286. background: #fff;
  27287. /* border-radius: 0 0 15px 15px; */
  27288. }
  27289. .noPzBox {
  27290. display: flex;
  27291. flex-direction: column;
  27292. flex-wrap: nowrap;
  27293. justify-content: center;
  27294. align-items: center;
  27295. }
  27296. .pzList {
  27297. background: #f7f7f7;
  27298. width: 90%;
  27299. margin: 0 auto 15px;
  27300. border-radius: 5px;
  27301. }
  27302. .pzNavTop {
  27303. display: flex;
  27304. flex-direction: row;
  27305. flex-wrap: nowrap;
  27306. padding: 10px 10px 0 10px;
  27307. align-items: center;
  27308. }
  27309. .pzDelete {
  27310. cursor: pointer;
  27311. margin-left: auto;
  27312. font-size: 14px;
  27313. color: #afafaf;
  27314. }
  27315. .pzNavTop > div:nth-child(1) {
  27316. background: #3760af;
  27317. width: 35px;
  27318. height: 35px;
  27319. color: #fff;
  27320. text-align: center;
  27321. line-height: 35px;
  27322. border-radius: 50%;
  27323. font-size: 14px;
  27324. }
  27325. .pzNavTop > div:nth-child(2) {
  27326. font-size: 18px;
  27327. color: #959595;
  27328. margin-left: 5px;
  27329. }
  27330. .pzContent {
  27331. padding: 10px;
  27332. word-break: break-word;
  27333. }
  27334. .pzContent audio {
  27335. width: 100%;
  27336. }
  27337. .pzContent audio::-webkit-media-controls-panel {
  27338. background: #fff;
  27339. }
  27340. .pzContent >>> img {
  27341. max-width: 100%;
  27342. }
  27343. .pzListBox {
  27344. padding-top: 15px;
  27345. height: calc(100% - 110px);
  27346. overflow: auto;
  27347. }
  27348. .addPzButton {
  27349. position: relative;
  27350. margin-top: 3px;
  27351. width: 100%;
  27352. }
  27353. .addPzButton .img1 {
  27354. position: absolute;
  27355. top: 50%;
  27356. right: 25px;
  27357. transform: translateY(-50%);
  27358. height: 100%;
  27359. display: flex;
  27360. align-items: center;
  27361. }
  27362. .addPzButton .img1 div {
  27363. display: flex;
  27364. }
  27365. .addPzButton .img1 div img {
  27366. width: 28px;
  27367. margin-left: 10px;
  27368. cursor: pointer;
  27369. }
  27370. .addPzButton .img1 div span {
  27371. font-size: 14px;
  27372. margin: 4px 0 0 3px;
  27373. color: #afafaf;
  27374. }
  27375. .addPz {
  27376. background: #4b79ce;
  27377. width: 100px;
  27378. color: #fff;
  27379. font-size: 12px;
  27380. height: 30px;
  27381. margin: 0 auto;
  27382. text-align: center;
  27383. line-height: 30px;
  27384. border-radius: 10px;
  27385. cursor: pointer;
  27386. }
  27387. .addDialogCss {
  27388. position: fixed;
  27389. width: 600px;
  27390. height: 70%;
  27391. min-height: 450px;
  27392. box-shadow: 0px 0 8px 0px #555555;
  27393. border-radius: 15px;
  27394. z-index: 999;
  27395. left: 50%;
  27396. top: 50%;
  27397. margin: -18% 0 0 -300px;
  27398. }
  27399. .teacherPz {
  27400. display: flex;
  27401. flex-direction: row;
  27402. align-items: center;
  27403. flex-wrap: nowrap;
  27404. }
  27405. .teacherPzImg {
  27406. width: 30px;
  27407. height: 30px;
  27408. }
  27409. .teacherPzImg > img {
  27410. width: 100%;
  27411. height: 100%;
  27412. }
  27413. .addPzBox {
  27414. height: calc(100% - 40px);
  27415. background: #ededed;
  27416. border-bottom-left-radius: 15px;
  27417. border-bottom-right-radius: 15px;
  27418. }
  27419. .pzAudioClass {
  27420. margin: 15px 14px;
  27421. background: #fff;
  27422. height: 100%;
  27423. display: flex;
  27424. justify-content: center;
  27425. align-items: center;
  27426. }
  27427. .pzConText {
  27428. width: 95%;
  27429. height: 100%;
  27430. margin: 10px auto 0;
  27431. border: none;
  27432. background: #fff;
  27433. border-radius: 0px;
  27434. }
  27435. .pzConText >>> .text {
  27436. height: calc(100% - 82px);
  27437. }
  27438. .addTextCss {
  27439. background: #4b79ce;
  27440. width: 80px;
  27441. height: 30px;
  27442. text-align: center;
  27443. color: #fff;
  27444. line-height: 30px;
  27445. border-radius: 10px;
  27446. margin: 10px auto 0;
  27447. cursor: pointer;
  27448. }
  27449. .pzConText:focus-visible {
  27450. border: none !important;
  27451. }
  27452. .maxWidth {
  27453. width: 1000px;
  27454. }
  27455. .noPz {
  27456. width: 150px;
  27457. margin: 0 auto 20%;
  27458. }
  27459. .noPz > img {
  27460. width: 100%;
  27461. height: 100%;
  27462. }
  27463. .timeAndReply {
  27464. display: flex;
  27465. flex-direction: row;
  27466. flex-wrap: nowrap;
  27467. justify-content: space-between;
  27468. align-items: center;
  27469. font-size: 14px;
  27470. box-sizing: border-box;
  27471. padding: 0 10px 10px 0px;
  27472. }
  27473. .timeAndReply .time {
  27474. color: #bfbfbf;
  27475. padding: 0 0 0 10px;
  27476. box-sizing: border-box;
  27477. }
  27478. .timeAndReply > div:last-child {
  27479. cursor: pointer;
  27480. color: #777;
  27481. }
  27482. /* table 样式 */
  27483. .cont >>> table {
  27484. border-top: 1px solid #ccc;
  27485. border-left: 1px solid #ccc;
  27486. }
  27487. .cont >>> table td,
  27488. .cont >>> table th {
  27489. border-bottom: 1px solid #ccc;
  27490. border-right: 1px solid #ccc;
  27491. /* padding: 20px 5px; */
  27492. padding: 5px 10px;
  27493. max-width: 0px;
  27494. height: 30px;
  27495. vertical-align: baseline;
  27496. box-sizing: border-box;
  27497. }
  27498. .cont >>> table th {
  27499. border-bottom: 2px solid #ccc;
  27500. text-align: center;
  27501. }
  27502. /* blockquote 样式 */
  27503. .cont >>> blockquote {
  27504. display: block;
  27505. border-left: 8px solid #d0e5f2;
  27506. padding: 5px 10px;
  27507. margin: 10px 0;
  27508. line-height: 1.4;
  27509. font-size: 100%;
  27510. background-color: #f1f1f1;
  27511. }
  27512. /* code 样式 */
  27513. .cont >>> code {
  27514. display: inline-block;
  27515. /* *display: inline; */
  27516. zoom: 1;
  27517. background-color: #f1f1f1;
  27518. border-radius: 3px;
  27519. padding: 3px 5px;
  27520. margin: 0 3px;
  27521. }
  27522. .cont >>> pre code {
  27523. display: block;
  27524. }
  27525. /* ul ol 样式 */
  27526. .cont >>> ul,
  27527. ol {
  27528. margin: 10px 0 10px 20px;
  27529. }
  27530. .addPzCheck {
  27531. display: flex;
  27532. flex-direction: row;
  27533. flex-wrap: nowrap;
  27534. padding: 10px 15px 0;
  27535. }
  27536. .addPzCheck span {
  27537. cursor: pointer;
  27538. padding-bottom: 5px;
  27539. font-weight: bold;
  27540. }
  27541. .addPzCheck span + span {
  27542. margin-left: 10px;
  27543. }
  27544. .addPzCheck .isChooseActive {
  27545. color: #3e88f4;
  27546. border-bottom: 2px solid #2f80f3;
  27547. }
  27548. /* code 样式 */
  27549. .cont {
  27550. /* -webkit-user-modify: read-write; */
  27551. overflow-wrap: break-word;
  27552. -webkit-line-break: after-white-space;
  27553. word-break: break-word;
  27554. white-space: pre-line;
  27555. }
  27556. .scoreBox,
  27557. .scoreDetailBox {
  27558. display: flex;
  27559. align-items: center;
  27560. justify-content: flex-start;
  27561. margin-top: 20px;
  27562. font-size: 18px;
  27563. width: 100%;
  27564. }
  27565. .scoreBox .t,
  27566. .scoreDetailBox .t {
  27567. margin-right: 10px;
  27568. width: 100px;
  27569. text-align: right;
  27570. }
  27571. .scoreDetailBox {
  27572. align-items: flex-start;
  27573. }
  27574. .scoreDetailBox >>> .el-textarea {
  27575. width: calc(100% - 200px);
  27576. }
  27577. .scoreBox >>> .el-input {
  27578. width: 130px;
  27579. font-size: 38px;
  27580. }
  27581. .scoreBox >>> .el-input__inner {
  27582. height: 60px;
  27583. }
  27584. .answerScore {
  27585. position: absolute;
  27586. top: 10px;
  27587. right: 10px;
  27588. background: #0000008f;
  27589. border-radius: 5px;
  27590. padding: 3px 5px;
  27591. font-size: 14px;
  27592. color: #fff;
  27593. cursor: pointer;
  27594. }
  27595. .open_box .switch_box {
  27596. width: 100%;
  27597. margin: 0 auto;
  27598. display: flex;
  27599. justify-content: space-between;
  27600. }
  27601. .open_box .switch_box + .switch_box {
  27602. margin-top: 10px;
  27603. }
  27604. .deleteImg,.deleteImg1 {
  27605. width: 25px !important;
  27606. height: 25px !important;
  27607. cursor: pointer;
  27608. position: absolute;
  27609. top: 10px;
  27610. right: 10px;
  27611. }
  27612. .deleteImg2 {
  27613. width: 23px !important;
  27614. height: 23px !important;
  27615. top: 5px;
  27616. right: 5px;
  27617. }
  27618. .deleteImg1{
  27619. width: 23px !important;
  27620. height: 23px !important;
  27621. top: 5px !important;
  27622. right: 30px !important;
  27623. }
  27624. .rightW {
  27625. right: 40px;
  27626. }
  27627. .drawPBox {
  27628. display: flex;
  27629. flex-direction: column;
  27630. position: relative;
  27631. }
  27632. .drawPBox span {
  27633. font-size: 18px;
  27634. color: #606266;
  27635. padding-bottom: 10px;
  27636. margin: 10px 0;
  27637. border-bottom: 1px solid #eaeaea;
  27638. }
  27639. .drawPBox img {
  27640. width: 500px;
  27641. height: 300px;
  27642. object-fit: contain;
  27643. cursor: pointer;
  27644. margin: 0 auto;
  27645. }
  27646. .sentenBox {
  27647. background: #fff;
  27648. height: 450px;
  27649. overflow: auto;
  27650. background-image: url("../../assets/icon/conSentences/stuBg.png");
  27651. background-position: 102%;
  27652. background-repeat: no-repeat;
  27653. background-size: 60%;
  27654. }
  27655. .addSen {
  27656. background: #409efe;
  27657. width: 90px;
  27658. color: #fff;
  27659. height: 35px;
  27660. text-align: center;
  27661. line-height: 35px;
  27662. border-radius: 5px;
  27663. float: right;
  27664. margin: 10px 20px 0 0;
  27665. cursor: pointer;
  27666. }
  27667. .sentenTop {
  27668. display: flex;
  27669. flex-direction: row;
  27670. flex-wrap: nowrap;
  27671. align-items: center;
  27672. padding: 55px 0 0 20px;
  27673. box-sizing: border-box;
  27674. }
  27675. .sentenTop > div:nth-child(2) {
  27676. width: 300px;
  27677. margin: 0 15px;
  27678. }
  27679. .sentenTop > div:nth-child(3) {
  27680. background: #409efe;
  27681. color: #fff;
  27682. width: 65px;
  27683. height: 35px;
  27684. text-align: center;
  27685. line-height: 35px;
  27686. border-radius: 5px;
  27687. cursor: pointer;
  27688. }
  27689. .cardList,
  27690. .cardList1 {
  27691. padding: 10px 0 10px 0;
  27692. display: flex;
  27693. flex-direction: row;
  27694. flex-wrap: wrap;
  27695. align-items: center;
  27696. box-sizing: border-box;
  27697. border-bottom: 1px solid #f4f4f4;
  27698. width: 98%;
  27699. margin: 0 auto;
  27700. min-width: 60%;
  27701. max-width: 85%;
  27702. }
  27703. .cardList1 {
  27704. padding: 10px 0 10px 10px !important;
  27705. margin: 0 !important;
  27706. }
  27707. .cardBox {
  27708. display: flex;
  27709. flex-direction: row;
  27710. flex-wrap: wrap;
  27711. align-items: center;
  27712. align-content: center;
  27713. }
  27714. .cardBox > div {
  27715. margin-bottom: 10px;
  27716. }
  27717. .isCard,
  27718. .isChooseCard,
  27719. .noCard,
  27720. .isCard1 {
  27721. min-width: 130px;
  27722. width: auto;
  27723. height: 60px;
  27724. text-align: center;
  27725. line-height: 60px;
  27726. font-size: 20px;
  27727. cursor: pointer;
  27728. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  27729. background-size: cover;
  27730. transition: all 2s;
  27731. margin-right: 20px;
  27732. background-size: 100% 100%;
  27733. padding: 0 20px;
  27734. box-sizing: border-box;
  27735. }
  27736. .isCard > div,
  27737. .noCard > div,
  27738. .isCard1 > div {
  27739. white-space: nowrap;
  27740. overflow: hidden;
  27741. text-overflow: ellipsis;
  27742. width: 100%;
  27743. margin: 0 auto;
  27744. }
  27745. .noCard {
  27746. background-image: none;
  27747. }
  27748. .isCard1 {
  27749. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  27750. }
  27751. .isChooseCard {
  27752. background-image: none;
  27753. border: 1px dashed #b9b9b9;
  27754. border-radius: 10px;
  27755. }
  27756. .card {
  27757. width: 130px;
  27758. height: 60px;
  27759. }
  27760. .card > img {
  27761. width: 100%;
  27762. height: 100%;
  27763. }
  27764. .rightCardBox {
  27765. margin: 10px 0 0 10px;
  27766. }
  27767. .rightCardBox > div:nth-child(1) {
  27768. margin-bottom: 10px;
  27769. }
  27770. .cardCss {
  27771. display: flex;
  27772. flex-direction: column;
  27773. flex-wrap: nowrap;
  27774. align-items: center;
  27775. border-bottom: 3px solid #b4c3d3;
  27776. padding: 0 0 5px 0;
  27777. margin-right: 10px;
  27778. }
  27779. .cardCss > div:nth-child(2) {
  27780. background: #5b7b9d;
  27781. color: #fff;
  27782. width: 20px;
  27783. height: 20px;
  27784. border-radius: 50%;
  27785. text-align: center;
  27786. line-height: 20px;
  27787. }
  27788. .isWrong {
  27789. display: flex;
  27790. flex-direction: row;
  27791. flex-wrap: nowrap;
  27792. align-content: center;
  27793. align-items: center;
  27794. }
  27795. .answerRight {
  27796. width: 25%;
  27797. }
  27798. .isTj {
  27799. display: flex;
  27800. flex-direction: row;
  27801. flex-wrap: nowrap;
  27802. align-items: center;
  27803. }
  27804. .isTj > div:nth-child(2) {
  27805. color: #727070;
  27806. margin-left: 10px;
  27807. }
  27808. .isTjImg {
  27809. width: 30px;
  27810. height: 30px;
  27811. }
  27812. .isTjImg > img {
  27813. width: 100%;
  27814. height: 100%;
  27815. }
  27816. .cardAnswerBox {
  27817. font-size: 18px;
  27818. width: 97%;
  27819. border: 5px;
  27820. padding: 0;
  27821. border-radius: 5px;
  27822. margin: 10px auto;
  27823. word-break: break-word;
  27824. }
  27825. .w_name {
  27826. margin-bottom: 10px;
  27827. }
  27828. .w_name span {
  27829. font-size: 16px;
  27830. }
  27831. .w_teachert {
  27832. width: 50px !important;
  27833. position: absolute;
  27834. height: auto !important;
  27835. z-index: 10;
  27836. right: 25px;
  27837. top: -25px;
  27838. }
  27839. /* .group_workBox {
  27840. } */
  27841. .group_workBox + .group_workBox {
  27842. margin-top: 20px;
  27843. }
  27844. .group_box {
  27845. padding-bottom: 20px;
  27846. border-bottom: 2px solid #f0f0f0;
  27847. margin-top: 10px;
  27848. }
  27849. .group_title {
  27850. display: flex;
  27851. align-items: center;
  27852. justify-content: space-between;
  27853. width: 95%;
  27854. }
  27855. .group_name {
  27856. background-image: url(../../assets/icon/groupN.png);
  27857. width: 220px;
  27858. background-size: 100% 100%;
  27859. height: 67px;
  27860. padding: 0 20px 0 43px;
  27861. box-sizing: border-box;
  27862. line-height: 63px;
  27863. color: #fff;
  27864. overflow: hidden;
  27865. white-space: nowrap;
  27866. text-overflow: ellipsis;
  27867. }
  27868. .group_work {
  27869. width: 100%;
  27870. padding: 0 10px;
  27871. box-sizing: border-box;
  27872. display: flex;
  27873. flex-wrap: wrap;
  27874. }
  27875. .g_d_box {
  27876. display: flex;
  27877. flex-flow: wrap;
  27878. justify-content: space-around;
  27879. }
  27880. .g_d_box .isChair {
  27881. background-image: url(../../assets/avatar.png) !important;
  27882. }
  27883. .g_d_group {
  27884. width: 500px;
  27885. margin-bottom: 80px;
  27886. }
  27887. .g_d_group_chair {
  27888. display: flex;
  27889. align-items: center;
  27890. justify-content: center;
  27891. }
  27892. .g_d_group_chair > div + div {
  27893. margin-left: 30px;
  27894. }
  27895. .g_d_group_chair > div,
  27896. .g_d_group_chair2 > div {
  27897. display: flex;
  27898. flex-direction: column;
  27899. align-items: center;
  27900. }
  27901. .g_d_group_chair > div > span:nth-child(1),
  27902. .g_d_group_chair2 > div > span:nth-child(1) {
  27903. background-image: url(../../assets/icon/chair.png);
  27904. width: 50px;
  27905. height: 50px;
  27906. display: block;
  27907. background-size: 100% 100%;
  27908. }
  27909. .g_d_group_tableBox {
  27910. display: flex;
  27911. align-items: center;
  27912. justify-content: center;
  27913. }
  27914. .g_d_group_chair2 {
  27915. display: flex;
  27916. flex-direction: column;
  27917. align-items: center;
  27918. justify-content: center;
  27919. }
  27920. .g_d_group_chair2 > div + div {
  27921. margin-top: 10px;
  27922. }
  27923. .g_d_group_table {
  27924. background-image: url(../../assets/icon/groupBg.png);
  27925. width: 354px;
  27926. height: 196px;
  27927. background-size: 100% 100%;
  27928. display: flex;
  27929. align-items: center;
  27930. justify-content: center;
  27931. flex-direction: column;
  27932. color: #fff;
  27933. }
  27934. .g_d_group_table > div:nth-child(1) {
  27935. font-size: 24px;
  27936. margin-bottom: 5px;
  27937. }
  27938. .g_d_group_table > div:nth-child(2) div {
  27939. cursor: pointer;
  27940. background: #2e77bf;
  27941. padding: 4px 10px;
  27942. border-radius: 5px;
  27943. }
  27944. /* .groupBox {
  27945. } */
  27946. .groupContent + .groupContent {
  27947. margin-top: 30px;
  27948. }
  27949. .groupTitle {
  27950. font-size: 24px;
  27951. color: rgb(80, 80, 80);
  27952. margin-bottom: 20px;
  27953. }
  27954. .groupName {
  27955. display: flex;
  27956. align-items: center;
  27957. }
  27958. .groupn {
  27959. font-size: 15px;
  27960. margin-right: 10px;
  27961. }
  27962. .groupName + .groupName {
  27963. margin-top: 15px;
  27964. }
  27965. .groupBtn {
  27966. margin-left: 10px;
  27967. }
  27968. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  27969. text-align: left;
  27970. }
  27971. .g_d_btnBox {
  27972. display: flex;
  27973. justify-content: flex-end;
  27974. align-items: center;
  27975. margin-bottom: 20px;
  27976. }
  27977. .updateChair {
  27978. position: relative;
  27979. }
  27980. .updateChairBtn {
  27981. position: absolute;
  27982. width: 50px;
  27983. height: 50px;
  27984. overflow: hidden;
  27985. /* display: flex; */
  27986. align-items: center;
  27987. justify-content: center;
  27988. background: #00000087;
  27989. color: #fff;
  27990. border-radius: 50px;
  27991. display: none;
  27992. cursor: pointer;
  27993. }
  27994. .updateChair:hover .updateChairBtn {
  27995. display: flex;
  27996. }
  27997. .group_staic_box {
  27998. display: flex;
  27999. padding: 30px 40px 10px;
  28000. flex-wrap: wrap;
  28001. }
  28002. .group_staic {
  28003. /* width: 50%; */
  28004. margin-bottom: 20px;
  28005. display: flex;
  28006. align-items: center;
  28007. }
  28008. .group_staic span:nth-child(1) {
  28009. width: 150px;
  28010. text-align: right;
  28011. margin-right: 15px;
  28012. }
  28013. .group_staic span:nth-child(2) {
  28014. background: rgb(0 123 255);
  28015. color: #fff;
  28016. border-radius: 5px;
  28017. padding: 5px;
  28018. }
  28019. .codeFileBox {
  28020. height: 300px;
  28021. background: #fff;
  28022. display: flex;
  28023. align-items: center;
  28024. justify-content: center;
  28025. }
  28026. .codeFileBox img {
  28027. width: 200px;
  28028. margin: 0;
  28029. height: auto;
  28030. }
  28031. .codeFileBox div {
  28032. background: rgb(80, 142, 226);
  28033. color: #fff;
  28034. padding: 10px 20px;
  28035. border-radius: 25px;
  28036. cursor: pointer;
  28037. margin-left: 15px;
  28038. }
  28039. .radioBox {
  28040. display: flex;
  28041. flex-direction: column;
  28042. flex-wrap: nowrap;
  28043. align-items: flex-start;
  28044. }
  28045. .radioBox > div {
  28046. margin: 10px 0 0 10px;
  28047. }
  28048. /* .radioBox >>> .el-radio__input,
  28049. .radioBox >>> .el-checkbox__inner {
  28050. margin-left: 10px;
  28051. } */
  28052. .radioBox >>> .el-radio__label,
  28053. .radioBox >>> .el-checkbox__label {
  28054. display: flex;
  28055. align-items: center;
  28056. width: 100%;
  28057. }
  28058. .radioBox >>> .el-radio__label > span {
  28059. width: 100%;
  28060. display: -webkit-box;
  28061. overflow: hidden;
  28062. white-space: normal !important;
  28063. text-overflow: ellipsis;
  28064. word-wrap: break-word;
  28065. }
  28066. .inImg {
  28067. width: 100px;
  28068. cursor: pointer;
  28069. }
  28070. .inImg > img {
  28071. width: 100%;
  28072. height: 100%;
  28073. object-fit: cover;
  28074. }
  28075. .timuImgBox {
  28076. margin: 10px 0;
  28077. display: flex;
  28078. flex-direction: column;
  28079. flex-wrap: wrap;
  28080. align-items: flex-start;
  28081. }
  28082. .timuImg {
  28083. width: 150px;
  28084. margin: 5px 0;
  28085. cursor: pointer;
  28086. }
  28087. .timuImg > img {
  28088. width: 100%;
  28089. height: 100%;
  28090. object-fit: cover;
  28091. }
  28092. .worksTop {
  28093. display: flex;
  28094. flex-direction: row;
  28095. align-items: flex-end;
  28096. }
  28097. .worksTitle {
  28098. display: flex;
  28099. flex-direction: row;
  28100. flex-wrap: nowrap;
  28101. align-items: center;
  28102. }
  28103. .worksTitle::before,
  28104. .worksTop::before {
  28105. content: "";
  28106. display: block;
  28107. width: 3px;
  28108. height: 20px;
  28109. background: #0061ff;
  28110. border-radius: 3px;
  28111. margin: 0 5px 0 0;
  28112. }
  28113. .corOpen {
  28114. margin: 0 0 0 10px;
  28115. font-size: 14px;
  28116. cursor: pointer;
  28117. color: #505050;
  28118. }
  28119. .corOpen:hover {
  28120. color: #499eef;
  28121. }
  28122. .navCorOpenBox {
  28123. display: flex;
  28124. flex-direction: row;
  28125. align-items: center;
  28126. justify-content: space-between;
  28127. height: 55px;
  28128. background: #ffffff;
  28129. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28130. border-radius: 8px 8px 0px 0px;
  28131. z-index: 9;
  28132. position: relative;
  28133. }
  28134. .navCorOpen {
  28135. padding-right: 15px;
  28136. cursor: pointer;
  28137. width: 45px;
  28138. display: flex;
  28139. }
  28140. .navCorOpen > img {
  28141. width: 100%;
  28142. height: 100%;
  28143. }
  28144. .mlImg {
  28145. width: 40px !important;
  28146. min-width: 40px;
  28147. cursor: pointer;
  28148. transform: rotate(180deg);
  28149. }
  28150. .mlImg > img {
  28151. width: 100%;
  28152. height: 100%;
  28153. }
  28154. .navLeftCss {
  28155. width: 100% !important;
  28156. left: 0 !important;
  28157. }
  28158. .isContentCss {
  28159. width: 100% !important;
  28160. }
  28161. .isAllWidth {
  28162. width: 100% !important;
  28163. }
  28164. .group_switch {
  28165. margin-right: 10px;
  28166. height: 30px;
  28167. display: flex;
  28168. align-items: center;
  28169. }
  28170. .group_switch > span {
  28171. margin-right: 5px;
  28172. }
  28173. .fileC_box {
  28174. padding-top: 15px;
  28175. }
  28176. .fileC_box > .fileC_title {
  28177. padding: 10px 5px 14px 10px;
  28178. border-top: 1px solid #cad1dc;
  28179. font-size: 14px;
  28180. font-weight: 400;
  28181. color: #cad1dc;
  28182. width: calc(100% - 20px);
  28183. margin: 0 auto;
  28184. box-sizing: border-box;
  28185. }
  28186. .pl_select_box {
  28187. height: 40px;
  28188. line-height: 40px;
  28189. width: 100%;
  28190. cursor: pointer;
  28191. padding: 0 20px;
  28192. box-sizing: border-box;
  28193. border-radius: 5px;
  28194. border: 1px solid #d6d6d6;
  28195. white-space: nowrap;
  28196. overflow: hidden;
  28197. text-overflow: ellipsis;
  28198. background: #fff;
  28199. text-align: left;
  28200. }
  28201. .newButton {
  28202. width: 102px;
  28203. height: 36px;
  28204. background: #e7ebf1;
  28205. border-radius: 4px;
  28206. color: #0e1e33;
  28207. font-weight: 400;
  28208. font-size: 14px;
  28209. border: none;
  28210. float: right;
  28211. margin-left: 10px;
  28212. }
  28213. .el-table >>> .even_row {
  28214. background-color: #f0f4fa;
  28215. }
  28216. .stageBoxCss,
  28217. .stageBoxIsCss {
  28218. display: flex;
  28219. flex-direction: row;
  28220. flex-wrap: nowrap;
  28221. align-items: center;
  28222. height: 50px;
  28223. border-bottom: 1px solid #e2f5fc;
  28224. cursor: pointer;
  28225. width: 100%;
  28226. }
  28227. .stageBoxIsCss {
  28228. background: #0061ff;
  28229. color: #fff;
  28230. border-radius: 8px;
  28231. }
  28232. .closeTri,
  28233. .closeTri1 {
  28234. min-width: 15px;
  28235. width: 15px;
  28236. height: 15px;
  28237. }
  28238. .closeTri1 {
  28239. padding-left: 10px;
  28240. cursor: pointer;
  28241. }
  28242. .closeTri > img,
  28243. .closeTri1 > img {
  28244. width: 100%;
  28245. height: 100%;
  28246. /* transition: all .5s; */
  28247. }
  28248. .noToolBlue {
  28249. min-width: 10px;
  28250. width: 10px;
  28251. height: 10px;
  28252. background: #0061ff;
  28253. border-radius: 50%;
  28254. margin-left: 13px;
  28255. }
  28256. .stageChild,
  28257. .toolChild {
  28258. height: 0;
  28259. overflow: hidden;
  28260. transition: all 0.5s;
  28261. }
  28262. /* .toolChild { */
  28263. /* margin: 0 0 0 17px;
  28264. padding: 0 0 0 20px;
  28265. border-left: 1px solid #d7d7d7; */
  28266. /* } */
  28267. .toolChild > div + div{
  28268. margin-top:5px;
  28269. }
  28270. .gjCss {
  28271. display: flex;
  28272. flex-direction: row;
  28273. flex-wrap: nowrap;
  28274. align-items: center;
  28275. padding: 10px 0 10px 40px;
  28276. box-sizing: border-box;
  28277. font-size: 14px;
  28278. cursor: pointer;
  28279. border-radius:5px;
  28280. }
  28281. .toolChild > div {
  28282. position: relative;
  28283. width: 100%;
  28284. }
  28285. /* .toolChild > div::before { */
  28286. /* content: "";
  28287. width: 15px;
  28288. height: 1px;
  28289. background: #cad1dc;
  28290. position: absolute;
  28291. top: 24px;
  28292. left: -20px;
  28293. display: block; */
  28294. /* } */
  28295. .isGjCss {
  28296. /* color: #0061ff; */
  28297. color:#fff;
  28298. background: rgb(55, 129, 252);
  28299. /* background-color: #e0eafb !important;
  28300. color: #0061ff !important; */
  28301. }
  28302. .navItem {
  28303. background: #ffffff;
  28304. border-radius: 4px;
  28305. width: 100%;
  28306. margin: 10px auto;
  28307. position: relative;
  28308. height: 40px;
  28309. display: flex;
  28310. flex-direction: row;
  28311. flex-wrap: nowrap;
  28312. align-items: center;
  28313. }
  28314. .navItemList {
  28315. display: flex;
  28316. flex-direction: row;
  28317. flex-wrap: nowrap;
  28318. align-items: center;
  28319. padding: 0 13px;
  28320. cursor: pointer;
  28321. width: calc(100% - 60px);
  28322. height: 100%;
  28323. }
  28324. .navItemList > div:first-child {
  28325. min-width: 60px;
  28326. }
  28327. .navItemList > div:last-child {
  28328. width: calc(100% - 80px);
  28329. white-space: nowrap;
  28330. overflow: hidden;
  28331. text-overflow: ellipsis;
  28332. word-break: break-word;
  28333. }
  28334. /* .isItemList > div {
  28335. color: #fff !important;
  28336. } */
  28337. .tool_work_box {
  28338. width: 100%;
  28339. padding: 0 37px 0;
  28340. box-sizing: border-box;
  28341. }
  28342. .tool_box {
  28343. width: 100%;
  28344. padding: 0 0 0 20px;
  28345. }
  28346. .tool_type_box {
  28347. display: flex;
  28348. flex-direction: row;
  28349. align-items: baseline;
  28350. flex-wrap: nowrap;
  28351. justify-content: flex-start;
  28352. position: relative;
  28353. }
  28354. .toolSort {
  28355. display: flex;
  28356. flex-direction: row;
  28357. flex-wrap: wrap;
  28358. justify-content: flex-start;
  28359. align-items: flex-start;
  28360. padding: 0 0 15px 0;
  28361. }
  28362. .toolSort > div {
  28363. margin: 0 10px 0 0;
  28364. width: 135px;
  28365. box-sizing: border-box;
  28366. border: 2px solid transparent;
  28367. }
  28368. .tools {
  28369. width: 100%;
  28370. display: flex;
  28371. flex-direction: column;
  28372. flex-wrap: nowrap;
  28373. align-items: flex-start;
  28374. }
  28375. .whiteBIcon {
  28376. width: fit-content;
  28377. cursor: pointer;
  28378. display: flex;
  28379. flex-direction: column;
  28380. flex-wrap: nowrap;
  28381. align-items: center;
  28382. font-size: 14px;
  28383. }
  28384. .tool:hover {
  28385. border: 2px solid #a5c7ff;
  28386. border-radius: 5px;
  28387. }
  28388. .whiteBIcon > img {
  28389. width: 65px;
  28390. height: 100%;
  28391. }
  28392. .whiteBIcon > img {
  28393. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  28394. border-radius: 15px;
  28395. }
  28396. .check {
  28397. /* width: 20px;
  28398. height: 20px; */
  28399. cursor: pointer;
  28400. margin: 10px 0;
  28401. position: absolute;
  28402. right: 2px;
  28403. top: -5px;
  28404. }
  28405. .noChoose,
  28406. .isChoose {
  28407. width: 15px;
  28408. height: 15px;
  28409. border-radius: 50%;
  28410. border: 1px solid #adadad;
  28411. }
  28412. .isChoose {
  28413. border: 4px solid #0363ff !important;
  28414. width: 10px;
  28415. height: 10px;
  28416. }
  28417. .isToolChoose {
  28418. border: 2px solid #5394ff !important;
  28419. border-radius: 5px;
  28420. box-shadow: 0 0 6px 0px #5394ff;
  28421. }
  28422. .checkDiv {
  28423. display: flex;
  28424. align-items: center;
  28425. }
  28426. .checkDiv span {
  28427. margin-left: 5px;
  28428. color: #858585;
  28429. }
  28430. .check img {
  28431. width: 20px;
  28432. height: 20px;
  28433. }
  28434. .lockTaskIcon {
  28435. width: 20px;
  28436. height: 20px;
  28437. position: absolute;
  28438. right: 10px;
  28439. top: 10px;
  28440. }
  28441. .lockTaskIcon > img {
  28442. width: 100%;
  28443. height: 100%;
  28444. }
  28445. .pick_box {
  28446. display: flex;
  28447. align-items: flex-start;
  28448. flex-wrap: wrap;
  28449. }
  28450. .selectBox {
  28451. width: 110px;
  28452. margin-left: 10px;
  28453. margin: 0 10px 0 auto;
  28454. }
  28455. .selectBox >>> .el-input__inner {
  28456. height: 30px;
  28457. line-height: 30px;
  28458. }
  28459. .selectBox >>> .el-input__icon {
  28460. line-height: 30px;
  28461. }
  28462. .sentenceTitle {
  28463. display: flex;
  28464. flex-direction: row;
  28465. flex-wrap: nowrap;
  28466. align-items: center;
  28467. }
  28468. .sentenceTitle::before {
  28469. content: attr(index);
  28470. background: #3681fc;
  28471. border-radius: 50%;
  28472. color: #fff;
  28473. width: 25px;
  28474. height: 25px;
  28475. min-width: 25px;
  28476. min-height: 25px;
  28477. text-align: center;
  28478. line-height: 25px;
  28479. margin-right: 5px;
  28480. }
  28481. .hfBox {
  28482. padding: 10px;
  28483. box-sizing: border-box;
  28484. }
  28485. .whoReplyWho {
  28486. display: flex;
  28487. flex-direction: row;
  28488. flex-wrap: nowrap;
  28489. align-items: baseline;
  28490. justify-content: flex-start;
  28491. }
  28492. .hfBottom {
  28493. display: flex;
  28494. flex-direction: row;
  28495. flex-wrap: nowrap;
  28496. align-items: center;
  28497. justify-content: space-between;
  28498. font-size: 14px;
  28499. }
  28500. .deleteHfItem {
  28501. cursor: pointer;
  28502. width: 20px;
  28503. height: 20px;
  28504. }
  28505. .deleteHfItem > img {
  28506. width: 100%;
  28507. height: 100%;
  28508. }
  28509. .whoReplyWho > .hfImg {
  28510. width: 12px;
  28511. height: 12px;
  28512. margin: 0 5px;
  28513. }
  28514. .whoReplyWho > .hfImg > img {
  28515. width: 100%;
  28516. height: 100%;
  28517. }
  28518. .hfContent {
  28519. padding-top: 10px;
  28520. box-sizing: border-box;
  28521. display: -webkit-box;
  28522. overflow: hidden;
  28523. white-space: normal !important;
  28524. text-overflow: ellipsis;
  28525. word-wrap: break-word;
  28526. -webkit-box-orient: vertical;
  28527. }
  28528. .hfTime {
  28529. text-align: left;
  28530. box-sizing: border-box;
  28531. padding: 10px 0 10px 0px;
  28532. color: #bfbfbf;
  28533. font-size: 14px;
  28534. }
  28535. .btnAllNT {
  28536. position: fixed;
  28537. bottom: 100px;
  28538. right: 40px;
  28539. z-index: 999;
  28540. display: flex;
  28541. flex-direction: row;
  28542. }
  28543. .btnAllNT > img {
  28544. cursor: pointer;
  28545. width: 80px;
  28546. }
  28547. .toolMask {
  28548. position: fixed;
  28549. width: 100%;
  28550. height: 100%;
  28551. background: #3f3c3c;
  28552. opacity: 0.5;
  28553. top: 0;
  28554. left: 0;
  28555. z-index: 999;
  28556. }
  28557. .addToolCss {
  28558. position: fixed;
  28559. z-index: 999;
  28560. background: #fff;
  28561. right: 5%;
  28562. bottom: 18%;
  28563. min-width: 1035px;
  28564. min-height: 300px;
  28565. border-radius: 10px;
  28566. box-shadow: 0 0 8px 1px #b2b2b2;
  28567. }
  28568. .toolTop {
  28569. display: flex;
  28570. flex-direction: row;
  28571. flex-wrap: nowrap;
  28572. justify-content: space-between;
  28573. align-items: center;
  28574. padding: 20px;
  28575. }
  28576. .toolTop > div:nth-child(2) {
  28577. width: 15px;
  28578. height: 15px;
  28579. padding-right: 10px;
  28580. cursor: pointer;
  28581. }
  28582. .toolTop > div:nth-child(2) > img {
  28583. width: 100%;
  28584. height: 100%;
  28585. }
  28586. .fullStyle>>>.el-dialog__body {
  28587. height: calc(100% - 125px) !important;
  28588. box-sizing: border-box;
  28589. padding: 30px 0 !important;
  28590. background: #fff !important;
  28591. }
  28592. .fullStyle>>>.el-dialog {
  28593. width: 100% !important;
  28594. max-width: 100% !important;
  28595. height: 100% !important;
  28596. margin: 0 !important;
  28597. }
  28598. .fullStyle {
  28599. width: 100% !important;
  28600. max-width: 100% !important;
  28601. height: 100% !important;
  28602. margin: 0 auto !important;
  28603. }
  28604. .fullStyle>>>.el-dialog__footer{
  28605. background: #fff !important;
  28606. }
  28607. .engUpBox {
  28608. width: 100%;
  28609. height: 100%;
  28610. }
  28611. .engTitle,
  28612. .engText {
  28613. display: flex;
  28614. flex-direction: row;
  28615. flex-wrap: nowrap;
  28616. align-items: flex-start;
  28617. padding: 0 20px 20px 20px;
  28618. box-sizing: border-box;
  28619. }
  28620. .engTitle > .div:first-child,
  28621. .engText > div:first-child {
  28622. min-width: 75px;
  28623. }
  28624. .correctBox{
  28625. width: 100%;
  28626. display: flex;
  28627. flex-direction: row;
  28628. flex-wrap: nowrap;
  28629. align-items: flex-start;
  28630. }
  28631. .oldBox{
  28632. width: 50%;
  28633. height: 100%;
  28634. display: flex;
  28635. flex-direction: column;
  28636. flex-wrap: nowrap;
  28637. align-items: center;
  28638. border-top: 1px solid #d9d9d9;
  28639. border-left: 1px solid #d9d9d9;
  28640. border-right: 1px solid #d9d9d9;
  28641. }
  28642. .oldBox>div:first-child{
  28643. width: 100%;
  28644. text-align: center;
  28645. background: #d9d9d9;
  28646. height: 35px;
  28647. line-height: 35px;
  28648. font-weight: bold;
  28649. }
  28650. .oldText{
  28651. width: 100%;
  28652. height: calc(100% - 35px);
  28653. overflow: auto;
  28654. margin: 10px 0;
  28655. display: flex;
  28656. flex-direction: column;
  28657. flex-wrap: nowrap;
  28658. align-content: center;
  28659. align-items: center;
  28660. }
  28661. .detailBox{
  28662. width: 50%;
  28663. padding: 10px;
  28664. background: #f6f6f6;
  28665. border-radius: 5px;
  28666. }
  28667. .oldDetail,.oldDetail1{
  28668. padding-bottom: 30px;
  28669. }
  28670. .oldImg{
  28671. width:30px;
  28672. height: 30px;
  28673. }
  28674. .oldImg>img{
  28675. width: 100%;
  28676. height: 100%;
  28677. }
  28678. .allName{
  28679. min-width: 200px;
  28680. white-space: nowrap;
  28681. overflow: hidden;
  28682. text-overflow: ellipsis;
  28683. word-break: break-word;
  28684. cursor: pointer;
  28685. text-align: center;
  28686. border: 1px solid #bcc2cc;
  28687. box-sizing: border-box;
  28688. }
  28689. .engUpTop{
  28690. max-height: 300px;
  28691. overflow: auto;
  28692. }
  28693. .isUpdateToolDetailClass{
  28694. padding: 0 !important;
  28695. }
  28696. .isUpdateToolDetailClass textarea{
  28697. padding:12px;
  28698. font-size: 16px;
  28699. min-height:100%;
  28700. width: 100%;
  28701. box-sizing:border-box;
  28702. outline: none;
  28703. border:none;
  28704. line-height: 30px;
  28705. resize: none;
  28706. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  28707. color: #838383;
  28708. }
  28709. .show_taskD {
  28710. min-width: fit-content;
  28711. margin-left: 10px;
  28712. display: flex;
  28713. align-items: center;
  28714. font-size: 14px;
  28715. cursor: pointer;
  28716. color: #717c8d;
  28717. }
  28718. .show_taskD > img {
  28719. width: 15px;
  28720. margin-right: 5px;
  28721. transition: 0.2s all;
  28722. transform: rotate(-90deg);
  28723. }
  28724. .show_taskD.show > img {
  28725. transform: rotate(0deg);
  28726. }
  28727. .correctCss{
  28728. position: absolute;
  28729. bottom: -70px;
  28730. background: #409eff;
  28731. color: #fff;
  28732. }
  28733. .ScoreBtn {
  28734. background: rgba(87, 159, 248, 1);
  28735. display: flex;
  28736. justify-content: center;
  28737. align-items: center;
  28738. color: #fff;
  28739. font-size: 14px;
  28740. padding: 8px 12px;
  28741. border-radius: 5px;
  28742. cursor: pointer;
  28743. }
  28744. .max-height-popover .el-popover {
  28745. min-height: 200px;
  28746. max-height: 400px; /* 设置最大高度 */
  28747. overflow: auto; /* 超出部分显示滚动条 */
  28748. }
  28749. .stuLookScore {
  28750. position: absolute;
  28751. top: 12px;
  28752. right: 40px;
  28753. background: #0000008f;
  28754. border-radius: 5px;
  28755. padding: 3px 5px;
  28756. font-size: 14px;
  28757. color: #fff;
  28758. cursor: pointer;
  28759. }
  28760. .dialog_diyCopy >>> .el-dialog__header {
  28761. display: none !important;
  28762. }
  28763. .dialog_diyCopy >>> .el-dialog__body {
  28764. padding: 0 !important;
  28765. height: 100% !important;
  28766. }
  28767. .confirmOpenDigCss > div{
  28768. font-size: 14px;
  28769. color: rgba(0, 0, 0, 0.6);
  28770. }
  28771. .confirmOpenDigCss >>> .el-dialog{
  28772. border-radius: 6px;
  28773. }
  28774. .confirmOpenDigCss >>> .el-dialog__body{
  28775. padding: 25px !important;
  28776. }
  28777. .confirmOpenDigCss > span{
  28778. font-size: 16px;
  28779. font-weight: 600;
  28780. color: rgba(0, 0, 0, 0.8);
  28781. }
  28782. div::-webkit-scrollbar {
  28783. width: 10px;
  28784. height: 6px;
  28785. }
  28786. .Ovh{
  28787. margin: 5px 0;
  28788. width: 4em;
  28789. -webkit-line-clamp: 2;
  28790. display: -webkit-box;
  28791. -webkit-box-orient: vertical;
  28792. overflow: hidden;
  28793. text-overflow: ellipsis;
  28794. }
  28795. </style>