studyStudent.vue 1.0 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546
  1. <template>
  2. <div class="pb_content" style="height: 100%;overflow: unset;">
  3. <!-- 上课模式 -->
  4. <div
  5. class="pb_content_body"
  6. style="
  7. display: flex;
  8. height: 100%;
  9. position: relative;
  10. padding: 20px 0 20px 20px;
  11. box-sizing: border-box;
  12. overflow: auto;
  13. "
  14. >
  15. <!-- <div class="btnAllNT">
  16. <img
  17. v-if="
  18. courseDetail.userid == userid ||
  19. (courseDetail.course_teacher &&
  20. courseDetail.course_teacher.indexOf(userid) != -1)
  21. "
  22. src="../../assets/icon/learn/addTool.png"
  23. @click="openToolAll"
  24. style="position: relative"
  25. />
  26. <img
  27. src="../../assets/icon/learn/last.png"
  28. @click="nextOrpreSteps(0)"
  29. />
  30. <img
  31. src="../../assets/icon/learn/next.png"
  32. @click="nextOrpreSteps(1)"
  33. />
  34. <img
  35. src="../../assets/icon/learn/return.png"
  36. @click.stop="
  37. goTo(
  38. '/courseDetail?userid=' +
  39. userid +
  40. '&oid=' +
  41. oid +
  42. '&org=' +
  43. org +
  44. '&cid=' +
  45. classId +
  46. '&courseId=' +
  47. id +
  48. '&tType=' +
  49. tType +
  50. '&screenType=' +
  51. screenType
  52. )
  53. "
  54. />
  55. </div> -->
  56. <div
  57. class="pButton"
  58. style="left: 0; top: 140px"
  59. v-if="mlDialog == false && !(IsFollow && tType == 2)"
  60. @click="setContent2(true)"
  61. >
  62. <!-- 批 , getCourseDetail()-->
  63. <img
  64. src="../../assets/icon/newIcons/isRight.png"
  65. style="width: 45px"
  66. alt=""
  67. />
  68. </div>
  69. <div class="pb_left" v-else-if="!(IsFollow && tType == 2)">
  70. <!-- <div class="courseTitle">{{ courseDetail.title }}</div> -->
  71. <div style="border-bottom: 1px solid #cad1dc; width: 100%">
  72. <div class="courseTitle" :style="{ margin: tcid && inviteCode && '10px auto 0px'}">
  73. <div
  74. style="
  75. max-width: calc(100% - 40px);
  76. width: auto;
  77. white-space: nowrap;
  78. overflow: hidden;
  79. text-overflow: ellipsis;
  80. word-break: break-word;
  81. display: block;
  82. "
  83. >
  84. <el-tooltip
  85. effect="light"
  86. :content="courseDetail.title"
  87. placement="top"
  88. >
  89. <div class="ctitle">
  90. {{ courseDetail.title }}
  91. </div>
  92. </el-tooltip>
  93. </div>
  94. <el-tooltip effect="light" content="收缩" placement="top">
  95. <div class="mlImg" @click="setContent2(false)">
  96. <img src="../../assets/icon/newIcons/isRight.png" alt="" />
  97. </div>
  98. </el-tooltip>
  99. </div>
  100. <div
  101. class="inviteBox"
  102. v-if="tcid && inviteCode"
  103. style="padding: 0 0 8px 0"
  104. >
  105. <div>
  106. <span>随机码:{{ inviteCode }}</span>
  107. </div>
  108. </div>
  109. </div>
  110. <div class="cru_selectBox">
  111. <div v-for="(item, stageIndex) in navList" :key="stageIndex">
  112. <div class="stageChild" :class="{ navActive: item.isOpen }">
  113. <div v-for="(nav, navIndex) in item.task" :key="navIndex">
  114. <div
  115. class="navItem"
  116. :class="{
  117. openTaskActive:
  118. navIndex == taskCount &&
  119. nav.id == navId &&
  120. stageIndex == courseType,
  121. }"
  122. >
  123. <div v-if="nav.tool[0].tool != undefined">
  124. <div
  125. class="closeTri1"
  126. v-if="navIndex == taskCount && nav.id == navId && stageIndex == courseType"
  127. @click="openTask(stageIndex, navIndex, nav.id)"
  128. >
  129. <img :style="{transform: nav.isOpen ? 'rotate(0deg)':'rotate(270deg)'}" src="../../assets/icon/newIcons/bDown2.png" alt />
  130. </div>
  131. <div
  132. class="closeTri1"
  133. v-else
  134. @click="openTask(stageIndex, navIndex, nav.id)"
  135. >
  136. <img :style="{transform: nav.isOpen ? 'rotate(90deg)':'rotate(0deg)'}" src="../../assets/icon/newIcons/right.png" alt />
  137. </div>
  138. </div>
  139. <div v-else class="noToolBlue"></div>
  140. <div
  141. @click="openTask(stageIndex, navIndex, nav.id)"
  142. class="navItemList"
  143. :class="{
  144. isItemList:
  145. navIndex == taskCount &&
  146. nav.id == navId &&
  147. stageIndex == courseType,
  148. }"
  149. >
  150. <div>任务{{ navIndex + 1 }}:</div>
  151. <el-tooltip
  152. effect="light"
  153. :content="nav.taskName"
  154. placement="top"
  155. >
  156. <div
  157. :style="{
  158. width:
  159. IsLookOpen && !nav.isLook
  160. ? 'calc(100% - 75px)'
  161. : 'auto',
  162. }"
  163. >
  164. {{ nav.taskName }}
  165. </div>
  166. </el-tooltip>
  167. </div>
  168. <div class="lockTaskIcon">
  169. <img
  170. src="../../assets/lock.png"
  171. v-if="IsLookOpen && !nav.isLook && courseDetail.userid != userid &&
  172. courseDetail.course_teacher.indexOf(userid) ==-1"
  173. alt=""
  174. />
  175. </div>
  176. </div>
  177. <div
  178. v-if="nav.tool[0].tool != undefined"
  179. class="toolChild"
  180. :class="{ toolActive: nav.isOpen }"
  181. >
  182. <div v-for="(t, toolIndex2) in nav.tool" :key="toolIndex2">
  183. <div
  184. class="gjCss"
  185. :class="{
  186. isGjCss: t.isTool,
  187. }"
  188. @click="jumpGj(courseType, navIndex, toolIndex2, nav.id)"
  189. >
  190. <div>工具{{ toolIndex2 + 1 }}:</div>
  191. <div v-if="t.tool == 58">模拟驾驶</div>
  192. <div v-if="t.tool == 59">路径搜索</div>
  193. <div v-if="t.tool == 60">深度学习</div>
  194. <div v-if="t.tool == 10">倒计时</div>
  195. <div v-if="t.tool == 65">挑人</div>
  196. <div v-if="t.tool == 7">思维网格</div>
  197. <div v-if="t.tool == 1">电子白板</div>
  198. <div v-if="t.tool == 52">文档</div>
  199. <div v-if="t.tool == 3">思维导图</div>
  200. <div v-if="t.tool == 48">表格</div>
  201. <div v-if="t.tool == 49">学生分组</div>
  202. <div v-if="t.tool == 4">问卷调查</div>
  203. <div v-if="t.tool == 45">选择题</div>
  204. <div v-if="t.tool == 15">问答</div>
  205. <div v-if="t.tool == 16">作业提交</div>
  206. <div v-if="t.tool == 50">批量上传</div>
  207. <div v-if="t.tool == 41">选择匹配</div>
  208. <div v-if="t.tool == 47">排序</div>
  209. <div v-if="t.tool == 40">个人评价</div>
  210. <div v-if="t.tool == 18">训练平台</div>
  211. <div v-if="t.tool == 21">AIoT Blockly</div>
  212. <div v-if="t.tool == 23">AI Python</div>
  213. <div v-if="t.tool == 24">AI Blockly</div>
  214. <div v-if="t.tool == 32">源码编辑</div>
  215. <div v-if="t.tool == 57">CocoPi</div>
  216. <div v-if="t.tool == 63">海龟编程</div>
  217. <div v-if="t.tool == 28">翻译</div>
  218. <div v-if="t.tool == 31">数字画板</div>
  219. <div v-if="t.tool == 39">GeoGebra</div>
  220. <div v-if="t.tool == 66">公式编辑</div>
  221. <div v-if="t.tool == 67">分子结构</div>
  222. <div v-if="t.tool == 68">时间轴</div>
  223. <div v-if="t.tool == 69">英语写作</div>
  224. <div v-if="t.tool == 70">英语口语</div>
  225. <div v-if="t.tool == 25">目标管理</div>
  226. <div v-if="t.tool == 26">课程设计</div>
  227. <div v-if="t.tool == 62">交互视频</div>
  228. <div v-if="t.tool == 71">AI智能体</div>
  229. <div v-if="t.tool == 72">应用中心</div>
  230. </div>
  231. </div>
  232. </div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </div>
  238. <div class="body_student" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  239. <div class="new_topFixed" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 40px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 10px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }"></div>
  240. <div class="new_top" :style="{width: mlDialog ? 'calc(100% - '+`${classRoomHelperWidth}`+' - 15% - 47px)' : 'calc(100% - '+`${classRoomHelperWidth}`+' - 18px)', left: mlDialog ? 'calc(15% + 35px)' : '10px' }">
  241. <div class="courseIndex" :style="{width: (orgArray.includes(org) || oidArray.includes(oid))? '100%' : 'calc(100% - 745px)'}">
  242. <div>任务{{ taskCount + 1 }}</div>
  243. <el-tooltip
  244. effect="light"
  245. :content="
  246. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].task
  247. "
  248. placement="top"
  249. >
  250. <div>
  251. {{
  252. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  253. .task
  254. }}
  255. </div>
  256. </el-tooltip>
  257. </div>
  258. <!-- v-show="org !== '1973f6c7-1561-11ee-91d8-005056b86db5' || org !== '777559d2-7239-11ee-b98c-005056b86db5'" -->
  259. <div class="btnAll" v-show="!orgArray.includes(org) && !oidArray.includes(oid)">
  260. <div class="btnLeft">
  261. <el-tooltip effect="light" content="刷新" placement="top">
  262. <div class="reBtnIcon" @click="refreshCourse">
  263. <span>刷新</span>
  264. </div>
  265. </el-tooltip>
  266. <el-tooltip effect="light" content="评论" placement="top">
  267. <div class="commentIcon" @click="setPz" v-if="tType == 1">
  268. <span>评论</span>
  269. </div>
  270. </el-tooltip>
  271. <div v-if="!videoStart && (tType == 1 || tType == 4)">
  272. <el-tooltip effect="light" content="录制" placement="top">
  273. <div class="vedioIcon" @click="startRecording">
  274. <span>录制</span>
  275. </div>
  276. </el-tooltip>
  277. </div>
  278. <div v-else-if="tType == 1 || tType == 4">
  279. <el-tooltip effect="light" content="下载" placement="top">
  280. <div class="vedioIcon1" @click="stopRecording">
  281. <span>下载</span>
  282. </div>
  283. </el-tooltip>
  284. </div>
  285. </div>
  286. <div class="btnRight">
  287. <div
  288. class="last"
  289. @click="nextOrpreSteps(0)"
  290. v-if="!(IsFollow && tType == 2)"
  291. @mouseover="isHovered = true"
  292. @mouseout="isHovered = false"
  293. >
  294. <div class="lastImg">
  295. <img
  296. :src="
  297. isHovered
  298. ? require('../../assets/icon/newIcons/whiteLast.png')
  299. : require('../../assets/icon/newIcons/last.png')
  300. "
  301. alt=""
  302. />
  303. </div>
  304. <div class="lastText">上一步</div>
  305. </div>
  306. <div
  307. class="last"
  308. @click="nextOrpreSteps(1)"
  309. v-if="!(IsFollow && tType == 2)"
  310. @mouseover="isHovered1 = true"
  311. @mouseout="isHovered1 = false"
  312. >
  313. <div class="lastText">下一步</div>
  314. <div class="lastImg">
  315. <img
  316. :src="
  317. isHovered1
  318. ? require('../../assets/icon/newIcons/whiteNext.png')
  319. : require('../../assets/icon/newIcons/next.png')
  320. "
  321. alt=""
  322. />
  323. </div>
  324. </div>
  325. <div
  326. class="last"
  327. @click="juriVisible = true"
  328. v-if="tType == 1"
  329. @mouseover="isHovered2 = true"
  330. @mouseout="isHovered2 = false"
  331. >
  332. <div class="lastImg">
  333. <img
  334. :src="
  335. isHovered2
  336. ? require('../../assets/icon/newIcons/whiteLock.png')
  337. : require('../../assets/icon/newIcons/lock.png')
  338. "
  339. alt=""
  340. />
  341. </div>
  342. <div class="lastText">权限</div>
  343. </div>
  344. <div
  345. class="returnBtn1 returnIcon"
  346. @click.stop="
  347. goTo(
  348. '/courseDetail?userid=' +
  349. userid +
  350. '&oid=' +
  351. oid +
  352. '&org=' +
  353. org +
  354. '&cid=' +
  355. classId +
  356. '&courseId=' +
  357. id +
  358. '&tType=' +
  359. tType +
  360. '&screenType=' +
  361. screenType
  362. )
  363. "
  364. >
  365. <div class="lastImg">
  366. <img src="../../assets/icon/newIcon/return.png" alt="" />
  367. </div>
  368. <div class="lastText" style="color: #000">返回</div>
  369. </div>
  370. </div>
  371. <!-- <div
  372. class="returnBtn lockIcon"
  373. @click="juriVisible = true"
  374. v-if="tType == 1"
  375. >
  376. 权限
  377. </div>
  378. <div
  379. class="returnBtn vedioIcon"
  380. @click="startRecording"
  381. v-if="!videoStart && (tType == 1 || tType == 4)"
  382. >
  383. 录制
  384. </div>
  385. <div
  386. class="returnBtn"
  387. @click="stopRecording"
  388. v-else-if="tType == 1 || tType == 4"
  389. style="background: #ee5255"
  390. >
  391. 下载
  392. </div>
  393. <div class="returnBtn commentIcon" @click="setPz" v-if="tType == 1">
  394. 评论
  395. </div>
  396. <div
  397. class="returnBtn"
  398. @click="nextOrpreSteps(0)"
  399. v-if="!(IsFollow && tType == 2)"
  400. >
  401. 上一步
  402. </div>
  403. <div
  404. class="returnBtn"
  405. @click="nextOrpreSteps(1)"
  406. v-if="!(IsFollow && tType == 2)"
  407. >
  408. 下一步
  409. </div>
  410. <div class="returnBtn" @click="refreshCourse">刷新</div>
  411. <div
  412. class="returnBtn returnIcon"
  413. @click.stop="
  414. goTo(
  415. '/courseDetail?userid=' +
  416. userid +
  417. '&oid=' +
  418. oid +
  419. '&org=' +
  420. org +
  421. '&cid=' +
  422. classId +
  423. '&courseId=' +
  424. id +
  425. '&tType=' +
  426. tType +
  427. '&screenType=' +
  428. screenType
  429. )
  430. "
  431. >
  432. 返回
  433. </div> -->
  434. </div>
  435. </div>
  436. <!-- !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  437. .taskDetail3 && -->
  438. <div
  439. class="isNoMessage"
  440. v-if="
  441. chapInfoList[courseType].chapterInfo[0].taskJson[0]
  442. .chapterData.length == 0 &&
  443. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  444. .toolChoose[0].tool.length == 0 &&
  445. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  446. .taskDetail == '' &&
  447. !chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  448. .eList &&
  449. !(
  450. courseDetail.userid == userid ||
  451. (courseDetail.course_teacher &&
  452. courseDetail.course_teacher.indexOf(userid) != -1)
  453. )
  454. "
  455. >
  456. <img src="../../assets/icon/isNoMessage.png" alt />
  457. </div>
  458. <div class="study_top" :style="tType=='2'?'width:calc(100% - 10px)':''" :class="{ pzClass: pzDialog }">
  459. <!-- chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  460. .taskDetail3 || -->
  461. <div
  462. class="vedioBox"
  463. v-if="
  464. (chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  465. .taskDetail != '' ||
  466. vChapterData[0].length > 0 ||
  467. fileC[0].length > 0) && (tType == 1 || (tType == 2 && IsStulook))
  468. "
  469. style="border-radius: 0 0 20px 20px"
  470. >
  471. <!-- <div
  472. class="taskBox"
  473. v-if="
  474. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  475. .taskDetail3
  476. "
  477. >
  478. <div
  479. style="
  480. display: flex;
  481. flex-wrap: nowrap;
  482. flex-direction: column;
  483. position: relative;
  484. "
  485. >
  486. <div
  487. style="
  488. padding: 15px 0;
  489. line-height: 29px;
  490. font-size: 18px;
  491. color: #0e1e33;
  492. "
  493. class="cont"
  494. v-if="
  495. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  496. .taskDetail3 != ''
  497. "
  498. v-html="
  499. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  500. .taskDetail3
  501. ? MarkdownT(chapInfoList[courseType].chapterInfo[0].taskJson[
  502. taskCount
  503. ].taskDetail3)
  504. : '暂无描述'
  505. "
  506. ></div>
  507. </div>
  508. </div> -->
  509. <div
  510. class="taskBox"
  511. v-if="
  512. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  513. .taskDetail != ''
  514. "
  515. >
  516. <div
  517. style="
  518. display: flex;
  519. flex-wrap: nowrap;
  520. flex-direction: column;
  521. position: relative;
  522. "
  523. class="renderedFor"
  524. >
  525. <div
  526. style="
  527. padding: 15px 0;
  528. line-height: 29px;
  529. font-size: 18px;
  530. color: #0e1e33;
  531. "
  532. class="cont"
  533. v-if="
  534. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  535. .taskDetail != ''
  536. "
  537. v-html="
  538. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  539. .taskDetail
  540. ? renderedFormula2(chapInfoList[courseType].chapterInfo[0].taskJson[
  541. taskCount
  542. ].taskDetail)
  543. : '暂无描述'
  544. "
  545. ></div>
  546. </div>
  547. </div>
  548. <div
  549. class="student_head"
  550. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  551. >
  552. <div class="vedioTaskBox" v-loading="downLoading || showType == 7">
  553. <div
  554. :class="
  555. contentDialog == false
  556. ? 'box_course isContentCss'
  557. : 'box_course'
  558. "
  559. v-if="
  560. vChapterData.length > 0 &&
  561. vChapterData[0] &&
  562. showType !== ''
  563. "
  564. >
  565. <div class="wheel" style="height: auto" v-if="showType === 0">
  566. <div
  567. class="workd_media"
  568. style="height: 650px; width: calc(100% - 50px)"
  569. >
  570. <video-player
  571. class="video-player vjs-custom-skin notop"
  572. :class="contentDialog == false ? 'isAllWidth' : ''"
  573. :playsinline="true"
  574. :options="playerO[0]"
  575. @play="onPlayerPlay($event)"
  576. style="width: 100%; height: 650px; margin: 0 0 0 30px"
  577. ></video-player>
  578. </div>
  579. </div>
  580. <div
  581. class="wheel"
  582. v-if="showType == 1"
  583. style="
  584. box-shadow: 0 0 6px 1px #f2f2f2;
  585. width: 95%;
  586. margin: 0 auto;
  587. background: #f1f1f1;
  588. "
  589. >
  590. <div class="title">查看文档</div>
  591. <el-form class="textBox">
  592. <el-form-item class="textTitle">
  593. <div style="font-size: 22px">
  594. {{ text.name }}
  595. </div>
  596. </el-form-item>
  597. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  598. <div v-html="text.url" class="textContent cont"></div>
  599. </el-form>
  600. </div>
  601. <div
  602. class="wheel"
  603. v-if="
  604. pptImgUrl1.indexOf(
  605. 'https://view.officeapps.live.com/op/view.aspx?src='
  606. ) != -1 && showType == 2
  607. "
  608. style="width: 95%; margin: 0 auto"
  609. >
  610. <iframe
  611. style="width: 100%; height: 100%; border: none"
  612. :src="pptImgUrl1"
  613. ></iframe>
  614. </div>
  615. <div
  616. class="wheel"
  617. v-else-if="showType == 2"
  618. style="width: 95%; margin: 0 auto"
  619. >
  620. <iframe
  621. style="width: 100%; height: 100%; border: none"
  622. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  623. :key="diffKey"
  624. v-if="pptImgUrl1.indexOf('cocorobo')!=-1"
  625. :src="pptImgUrl1"
  626. ></iframe>
  627. <iframe
  628. style="width: 100%; height: 100%; border: none"
  629. security="restricted"
  630. v-else
  631. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  632. :src="pptImgUrl1"
  633. ></iframe>
  634. </div>
  635. <div
  636. class="wheel"
  637. v-if="showType === 16"
  638. style="width: 95%; margin: 0 auto"
  639. >
  640. <iframe
  641. style="width: 100%; height: 100%; border: none"
  642. :src="pptImgUrl1"
  643. ></iframe>
  644. </div>
  645. <div
  646. class="wheel"
  647. v-if="showType == 3"
  648. style="width: 95%; margin: 0 auto"
  649. >
  650. <pdf
  651. :pdfUrl="pptImgUrl1"
  652. style="width: 100%; height: 100%; overflow: auto"
  653. ></pdf>
  654. </div>
  655. <div
  656. class="wheel"
  657. v-if="showType == 4"
  658. style="width: 95%; margin: 0 auto"
  659. >
  660. <el-image
  661. :src="pptImgUrl1"
  662. fit="contain"
  663. style="width: 100%; height: 100%; cursor: pointer"
  664. @click="previewImg(pptImgUrl1)"
  665. ></el-image>
  666. </div>
  667. </div>
  668. <div
  669. class="pButton"
  670. style="position: absolute; right: 20px; top: 0; z-index: 998"
  671. v-if="!contentDialog"
  672. @click="setContent(true)"
  673. >
  674. <!-- 批 -->
  675. <img
  676. src="../../assets/icon/newIcons/isLeft.png"
  677. style="width: 45px"
  678. alt=""
  679. />
  680. </div>
  681. <div
  682. v-if="contentDialog == true"
  683. :style="{
  684. width:
  685. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  686. showType === ''
  687. ? 'calc(100%)'
  688. : '300px',
  689. margin:
  690. (vChapterData[0].length > 0 || fileC[0].length > 0) &&
  691. showType === ''
  692. ? '0 15px'
  693. : '0 15px 0 0',
  694. }"
  695. >
  696. <div
  697. class="vedioList"
  698. v-if="vChapterData[0].length > 0 || fileC[0].length > 0"
  699. style="height: 650px"
  700. >
  701. <div class="navCorOpenBox">
  702. <div class="navTitile">内容列表:</div>
  703. <div class="navCorOpen" @click="setContent(false)">
  704. <img
  705. src="../../assets/icon/newIcons/isRight.png"
  706. alt=""
  707. />
  708. </div>
  709. </div>
  710. <div class="navBox">
  711. <div
  712. v-show="
  713. vChapterData[0].length > 0 || fileC[0].length > 0
  714. "
  715. style="padding: 10px 0 25px 0"
  716. >
  717. <div
  718. class="vedioTimeBox"
  719. v-for="(vitem, vindex) in vChapterData[0]"
  720. :key="vindex + '1'"
  721. >
  722. <div class="navListItem" v-if="vitem.type == 2">
  723. <div
  724. @click="lookVedio(vitem.url, vindex)"
  725. class="navText"
  726. :class="isClickNav == vindex ? 'isClickNav' : ''"
  727. >
  728. <span v-if="vitem.text">{{ vitem.text }}-</span
  729. >{{ vitem.name }}
  730. </div>
  731. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  732. <img
  733. src="../../assets/icon/newIcon/down.png"
  734. alt
  735. />
  736. </div> -->
  737. </div>
  738. <div class="navListItem" v-if="vitem.type == 6">
  739. <div
  740. @click="lookText(0, vindex)"
  741. class="navText"
  742. :class="isClickNav == vindex ? 'isClickNav' : ''"
  743. >
  744. {{ vitem.name }}.doc
  745. </div>
  746. <div
  747. class="downIcon"
  748. @click="checkFileFull1(vitem.type, vitem)"
  749. >
  750. <img
  751. src="../../assets/icon/newIcon/allScreen.png"
  752. alt
  753. />
  754. </div>
  755. </div>
  756. <div
  757. class="navListItem"
  758. v-if="vitem.type == 8 || vitem.type == 14 || vitem.type == 15"
  759. >
  760. <div
  761. @click="doUrl(vitem.url, vindex)"
  762. class="navText"
  763. :class="isClickNav == vindex ? 'isClickNav' : ''"
  764. >
  765. {{ vitem.title ? vitem.title : vitem.url }}
  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>
  777. <div class="navListItem" v-if="vitem.type == 3">
  778. <div
  779. @click="downFile(vitem, vindex)"
  780. class="navText"
  781. :class="isClickNav == vindex ? 'isClickNav' : ''"
  782. >
  783. <span v-if="vitem.text">{{ vitem.text }}-</span
  784. >{{ vitem.name }}
  785. </div>
  786. <div
  787. class="downIcon"
  788. @click="checkFileFull1(vitem.type, vitem)"
  789. >
  790. <img
  791. src="../../assets/icon/newIcon/allScreen.png"
  792. alt
  793. />
  794. </div>
  795. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  796. <img
  797. src="../../assets/icon/newIcon/down.png"
  798. alt
  799. />
  800. </div> -->
  801. </div>
  802. <div class="navListItem" v-if="vitem.type == 12">
  803. <div class="navText" @click="downloadFile2(vitem)">
  804. <span v-if="vitem.text">{{ vitem.text }}-</span
  805. >{{ vitem.name }}
  806. </div>
  807. <div
  808. class="downIcon"
  809. @click="checkFileFull1(vitem.type, vitem)"
  810. >
  811. <img
  812. src="../../assets/icon/newIcon/allScreen.png"
  813. alt
  814. />
  815. </div>
  816. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  817. <img
  818. src="../../assets/icon/newIcon/down.png"
  819. alt
  820. />
  821. </div> -->
  822. </div>
  823. <div class="navListItem" v-if="vitem.type == 13">
  824. <div
  825. class="navText"
  826. @click="checkPhoto(vitem, vindex)"
  827. :class="isClickNav == vindex ? 'isClickNav' : ''"
  828. >
  829. {{ vitem.name }}
  830. </div>
  831. <!-- <div class="downIcon" @click="downloadFile2(vitem)">
  832. <img
  833. src="../../assets/icon/newIcon/down.png"
  834. alt
  835. />
  836. </div> -->
  837. </div>
  838. <div class="navListItem" v-if="vitem.type == 16">
  839. <div
  840. class="navText"
  841. @click="checkHtml(vitem, vindex)"
  842. :class="isClickNav == vindex ? 'isClickNav' : ''"
  843. >
  844. {{ vitem.name }}
  845. </div>
  846. <div
  847. class="downIcon"
  848. @click="checkFileFull1(vitem.type, vitem)"
  849. >
  850. <img
  851. src="../../assets/icon/newIcon/allScreen.png"
  852. alt
  853. />
  854. </div>
  855. </div>
  856. <div class="navListItem" v-if="vitem.type == 17">
  857. <div
  858. class="navText"
  859. @click="checkHtml(vitem, vindex)"
  860. :class="isClickNav == vindex ? 'isClickNav' : ''"
  861. >
  862. {{ vitem.name }}
  863. </div>
  864. <div
  865. class="downIcon"
  866. @click="checkFileFull1(vitem.type, vitem)"
  867. >
  868. <img
  869. src="../../assets/icon/newIcon/allScreen.png"
  870. alt
  871. />
  872. </div>
  873. </div>
  874. </div>
  875. <div class="fileC_box" v-if="fileC[0].length > 0">
  876. <div class="fileC_title">以下文件不支持预览</div>
  877. <div
  878. class="vedioTimeBox"
  879. v-for="(vitem, vindex) in fileC[0]"
  880. :key="vindex + '1'"
  881. >
  882. <div class="navListItem" v-if="vitem.type == 12">
  883. <div class="navText" style="color: #acb4bf">
  884. <span v-if="vitem.text">{{ vitem.text }}-</span
  885. >{{ vitem.name }}
  886. </div>
  887. <!-- <div
  888. class="downIcon"
  889. @click="downloadFile2(vitem)"
  890. >
  891. <img
  892. src="../../assets/icon/newIcon/down.png"
  893. alt
  894. />
  895. </div> -->
  896. </div>
  897. </div>
  898. </div>
  899. </div>
  900. </div>
  901. </div>
  902. </div>
  903. </div>
  904. <div style="width: calc(100% - 315px)">
  905. <div style="padding: 10px 0 0; width: 95%; margin: 0 auto">
  906. <!-- <el-button
  907. type="primary"
  908. class="newButton"
  909. @click="checkFileFull(showType, pptImgUrl1)"
  910. >全屏查看</el-button
  911. >
  912. <el-button
  913. type="primary"
  914. class="newButton"
  915. @click="downloadFile(pptImgUrl1)"
  916. v-if="showType != 2"
  917. >文件下载</el-button
  918. > -->
  919. <el-button
  920. v-if="
  921. showType == 2 &&
  922. pptImgUrl1.indexOf(
  923. 'https://view.officeapps.live.com/op/view.aspx?src='
  924. ) == -1
  925. "
  926. type="primary"
  927. class="newButton"
  928. @click="openLine(pptImgUrl1)"
  929. >打开链接
  930. </el-button>
  931. </div>
  932. <!-- <div
  933. style="padding: 10px 0 0; width: 95%; margin: 0 auto"
  934. v-if="showType == 1"
  935. >
  936. <el-button
  937. type="primary"
  938. class="newButton"
  939. @click="checkFileFull(showType, text)"
  940. >全屏查看</el-button
  941. >
  942. </div> -->
  943. </div>
  944. </div>
  945. </div>
  946. <div class="student_body" v-resize="resize">
  947. <div
  948. class="vedioBox"
  949. :style="{
  950. borderRadius:
  951. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  952. .taskDetail == '' &&
  953. vChapterData[taskCount].length == 0 &&
  954. fileC[taskCount].length == 0
  955. ? '0 0 20px 20px'
  956. : '20px',
  957. }"
  958. v-if="
  959. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  960. .toolChoose[0].tool &&
  961. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  962. .toolChoose[0].tool.length > 0
  963. "
  964. >
  965. <div
  966. class="toolHeng2"
  967. style="position: relative"
  968. v-if="
  969. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  970. .toolChoose[0].tool &&
  971. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  972. .toolChoose[0].tool.length &&
  973. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  974. .toolChoose[0].tool.length > 0
  975. "
  976. >
  977. <div class="workNav">工作区</div>
  978. <div
  979. class="filebox"
  980. style="flex-wrap: nowrap"
  981. v-for="(tool, toolIndex) in chapInfoList[courseType]
  982. .chapterInfo[0].taskJson[taskCount].toolChoose"
  983. :key="toolIndex"
  984. >
  985. <div class="bzBox">
  986. <div class="yCss"></div>
  987. <div :ref="'bz' + toolIndex" :id="'gj' + toolIndex">
  988. 工具{{ toolIndex + 1 }}
  989. </div>
  990. <div
  991. v-if="timeWorkList[toolIndex].length > 0"
  992. style="margin: 0 0 0 10px"
  993. >
  994. {{
  995. timeWorkList[toolIndex][0].time
  996. ? "时间:" + timeWorkList[toolIndex][0].time
  997. : ""
  998. }}
  999. </div>
  1000. </div>
  1001. <div class="toolBox">
  1002. <div>
  1003. <!-- v-for="(itemTool, indexTool) in toolTypeList"
  1004. :key="indexTool"-->
  1005. <!-- <div class="iframeBox">
  1006. <div
  1007. class="addPoint isBorder"
  1008. v-for="(tooC, toolCIndex) in tool.tool"
  1009. :key="toolCIndex"
  1010. >
  1011. <div v-if="tooC == 1" style="border: 1px soild #ccc">
  1012. <div
  1013. class="iframeName"
  1014. >
  1015. 电子白板
  1016. </div>
  1017. <iframe
  1018. src="https://iwb.cocorobo.cn/"
  1019. ref="whiteBoard"
  1020. ></iframe>
  1021. </div>
  1022. </div>
  1023. </div>-->
  1024. <div class="noiframeBox">
  1025. <div
  1026. class="addPoint"
  1027. v-for="(tooC, toolCIndex) in tool.tool"
  1028. :key="toolCIndex"
  1029. >
  1030. <div v-if="tooC == 1">
  1031. <img
  1032. src="../../assets/icon/secondToolList/whiteBoard.png"
  1033. alt
  1034. @click="addTools(tooC, toolIndex, taskCount)"
  1035. />
  1036. <div style="margin: 5px 0">电子白板</div>
  1037. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,1)"
  1038. style="position: absolute;right: 33px;top: -30px;">
  1039. 分析
  1040. </div>
  1041. </div>
  1042. <div v-if="tooC == 3">
  1043. <img
  1044. src="../../assets/icon/secondToolList/mindMapping.png"
  1045. alt
  1046. @click="addTools(tooC, toolIndex, taskCount)"
  1047. />
  1048. <div style="margin: 5px 0">思维导图</div>
  1049. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,3)"
  1050. style="position: absolute;right: 33px;top: -30px;">
  1051. 分析
  1052. </div>
  1053. </div>
  1054. <div v-if="tooC == 6">
  1055. <img
  1056. src="../../assets/icon/secondToolList/doc.png"
  1057. alt
  1058. @click="addTools(tooC, toolIndex, taskCount)"
  1059. />
  1060. <div style="margin: 5px 0">协同文档</div>
  1061. </div>
  1062. <div v-if="tooC == 7">
  1063. <img
  1064. src="../../assets/icon/secondToolList/mindNetwork.png"
  1065. alt
  1066. @click="addTools(tooC, toolIndex, taskCount)"
  1067. />
  1068. <div style="margin: 5px 0">思维网格</div>
  1069. <!-- && worksStudent[toolIndex].length>0 -->
  1070. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,7)"
  1071. style="position: absolute;right: 33px;top: -30px;">
  1072. 分析
  1073. </div>
  1074. </div>
  1075. <div v-if="tooC == 8">
  1076. <img
  1077. src="../../assets/icon/secondToolList/library.png"
  1078. alt
  1079. @click="addTools(tooC, toolIndex, taskCount)"
  1080. />
  1081. <div style="margin: 5px 0">素材库</div>
  1082. </div>
  1083. <div v-if="tooC == 17">
  1084. <img
  1085. src="../../assets/icon/secondToolList/library.png"
  1086. alt
  1087. @click="addTools(tooC, toolIndex, taskCount)"
  1088. />
  1089. <div style="margin: 5px 0">学习资料</div>
  1090. </div>
  1091. <div v-if="tooC == 2">
  1092. <img
  1093. @click="addTools(tooC, toolIndex, taskCount)"
  1094. src="../../assets/icon/secondToolList/note.png"
  1095. alt
  1096. />
  1097. <div style="margin: 5px 0">便签</div>
  1098. </div>
  1099. <div v-if="tooC == 4">
  1100. <img
  1101. @click="addTools(tooC, toolIndex, taskCount)"
  1102. src="../../assets/icon/thirdToolList/ask.png"
  1103. alt
  1104. />
  1105. <div style="margin: 5px 0">问卷调查</div>
  1106. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,4)"
  1107. style="position: absolute;right: 153px;top: -30px;">
  1108. 分析
  1109. </div>
  1110. <div
  1111. class="upload_toolBtn"
  1112. v-if="tType === '1'"
  1113. @click="
  1114. openStatisticalAnalysis(
  1115. tooC,
  1116. toolIndex,
  1117. taskCount,
  1118. 45
  1119. )
  1120. "
  1121. style="position: absolute;right: 33px;top: -30px;"
  1122. >
  1123. 统计分析
  1124. </div>
  1125. </div>
  1126. <div v-if="tooC == 45">
  1127. <img
  1128. @click="addTools(tooC, toolIndex, taskCount)"
  1129. src="../../assets/icon/thirdToolList/choose.png"
  1130. alt
  1131. />
  1132. <div style="margin: 5px 0">选择题</div>
  1133. <!-- &&worksStudent[toolIndex].length > 0 -->
  1134. <div
  1135. class="upload_toolBtn"
  1136. v-if="tType == 1"
  1137. @click="
  1138. openChoseWorksDetailDialog(
  1139. tooC,
  1140. toolIndex,
  1141. taskCount,45
  1142. )
  1143. "
  1144. style="position: absolute;right: 33px;top: -30px;"
  1145. >
  1146. 分析
  1147. </div>
  1148. </div>
  1149. <!-- <div v-if="tooC == 5">
  1150. <img
  1151. @click="addTools(tooC, toolIndex, taskCount)"
  1152. src="../../assets/icon/thirdToolList/score.png"
  1153. alt
  1154. />
  1155. <div style="margin: 5px 0">量规评分</div>
  1156. </div> -->
  1157. <div v-if="tooC == 10">
  1158. <img
  1159. @click="addTools(tooC, toolIndex, taskCount)"
  1160. src="../../assets/icon/thirdToolList/time.png"
  1161. alt
  1162. />
  1163. <div style="margin: 5px 0">倒计时</div>
  1164. </div>
  1165. <div v-if="tooC == 15">
  1166. <img
  1167. @click="addTools(tooC, toolIndex, taskCount)"
  1168. src="../../assets/icon/thirdToolList/answer.png"
  1169. alt
  1170. />
  1171. <div style="margin: 5px 0">问答</div>
  1172. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,15)"
  1173. style="position: absolute;right: 135px;top: -45px;height: 40px;display: flex;align-items: center;justify-content: center;background: #409EFF;">
  1174. 分析
  1175. </div>
  1176. </div>
  1177. <div v-if="tooC == 26">
  1178. <img
  1179. @click="addTools(tooC, toolIndex, taskCount)"
  1180. src="../../assets/icon/thirdToolList/courseDesign.png"
  1181. alt
  1182. />
  1183. <div style="margin: 5px 0">课程设计</div>
  1184. </div>
  1185. <div v-if="tooC == 18">
  1186. <img
  1187. @click="addTools(tooC, toolIndex, taskCount)"
  1188. src="../../assets/icon/thirdToolList/trainPlatform.png"
  1189. alt
  1190. />
  1191. <div style="margin: 5px 0">训练服务器</div>
  1192. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,18)"
  1193. style="position: absolute;right: 33px;top: -30px;">
  1194. 分析
  1195. </div>
  1196. </div>
  1197. <div v-if="tooC == 16">
  1198. <img
  1199. @click="addTools(tooC, toolIndex, taskCount)"
  1200. src="../../assets/icon/thirdToolList/work.png"
  1201. alt
  1202. />
  1203. <div style="margin: 5px 0">作业提交</div>
  1204. </div>
  1205. <div v-if="tooC == 50">
  1206. <img
  1207. @click="addTools(tooC, toolIndex, taskCount)"
  1208. src="../../assets/icon/thirdToolList/plwork.png"
  1209. alt
  1210. />
  1211. <div style="margin: 5px 0">批量上传</div>
  1212. </div>
  1213. <div v-if="tooC == 21">
  1214. <img
  1215. @click="addTools(tooC, toolIndex, taskCount)"
  1216. src="../../assets/icon/fourthToolList/program.png"
  1217. alt
  1218. />
  1219. <div style="margin: 5px 0">AIoT Blockly</div>
  1220. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,21)"
  1221. style="position: absolute;right: 33px;top: -30px;">
  1222. 分析
  1223. </div>
  1224. </div>
  1225. <!-- <div v-if="tooC == 22">
  1226. <img
  1227. @click="addTools(tooC, toolIndex, taskCount)"
  1228. src="../../assets/icon/fourthToolList/program.png"
  1229. alt
  1230. />
  1231. <div style="margin: 5px 0">AI体验</div>
  1232. </div> -->
  1233. <div v-if="tooC == 23">
  1234. <img
  1235. @click="addTools(tooC, toolIndex, taskCount)"
  1236. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  1237. alt
  1238. />
  1239. <div style="margin: 5px 0">AI Python</div>
  1240. </div>
  1241. <div v-if="tooC == 24">
  1242. <img
  1243. @click="addTools(tooC, toolIndex, taskCount)"
  1244. src="../../assets/icon/fourthToolList/AIprogram.png"
  1245. alt
  1246. />
  1247. <div style="margin: 5px 0">AI Blockly</div>
  1248. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,24)"
  1249. style="position: absolute;right: 33px;top: -30px;">
  1250. 分析
  1251. </div>
  1252. </div>
  1253. <div v-if="tooC == 25">
  1254. <img
  1255. @click="addTools(tooC, toolIndex, taskCount)"
  1256. src="../../assets/icon/thirdToolList/evalua.png"
  1257. alt
  1258. />
  1259. <div style="margin: 5px 0">目标管理</div>
  1260. </div>
  1261. <div v-if="tooC == 31">
  1262. <img
  1263. @click="addTools(tooC, toolIndex, taskCount)"
  1264. src="../../assets/icon/secondToolList/networkPanel.png"
  1265. alt
  1266. />
  1267. <div style="margin: 5px 0">数学画板</div>
  1268. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,31)"
  1269. style="position: absolute;right: 33px;top: -30px;">
  1270. 分析
  1271. </div>
  1272. </div>
  1273. <div v-if="tooC == 28">
  1274. <img
  1275. @click="addTools(tooC, toolIndex, taskCount)"
  1276. src="../../assets/icon/secondToolList/translation.png"
  1277. alt
  1278. />
  1279. <div style="margin: 5px 0">翻译</div>
  1280. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,28)"
  1281. style="position: absolute;right: 33px;top: -30px;">
  1282. 分析
  1283. </div>
  1284. </div>
  1285. <div v-if="tooC == 37">
  1286. <img
  1287. @click="addTools(tooC, toolIndex, taskCount)"
  1288. src="../../assets/icon/secondToolList/mohe.png"
  1289. alt
  1290. />
  1291. <div style="margin: 5px 0">魔盒识字</div>
  1292. </div>
  1293. <div v-if="tooC == 38">
  1294. <img
  1295. @click="addTools(tooC, toolIndex, taskCount)"
  1296. src="../../assets/icon/secondToolList/24game.png"
  1297. alt
  1298. />
  1299. <div style="margin: 5px 0">24点</div>
  1300. </div>
  1301. <div v-if="tooC == 39">
  1302. <img
  1303. @click="addTools(tooC, toolIndex, taskCount)"
  1304. src="../../assets/icon/secondToolList/GeoGebra.png"
  1305. alt
  1306. />
  1307. <div style="margin: 5px 0">GeoGebra</div>
  1308. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,39)"
  1309. style="position: absolute;right: 33px;top: -30px;">
  1310. 分析
  1311. </div>
  1312. </div>
  1313. <div v-if="tooC == 32">
  1314. <img
  1315. @click="addTools(tooC, toolIndex, taskCount)"
  1316. src="../../assets/icon/thirdToolList/code.png"
  1317. alt
  1318. />
  1319. <div style="margin: 5px 0">源码编辑</div>
  1320. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,32)"
  1321. style="position: absolute;right: 153px;top: -42px;">
  1322. 分析
  1323. </div>
  1324. <!-- <div class="upload_toolBtn" @click="addImg($event)"
  1325. style="position: absolute;left: 110px;bottom: 30px;">
  1326. 上传文件
  1327. <input type="file" accept="*" style="display: none"
  1328. @change="beforeUpload1($event, 7, toolIndex)" />
  1329. </div> -->
  1330. </div>
  1331. <div v-if="tooC == 40">
  1332. <img
  1333. @click="addTools(tooC, toolIndex, taskCount)"
  1334. src="../../assets/icon/secondToolList/eval.png"
  1335. alt
  1336. />
  1337. <div style="margin: 5px 0">个人评价</div>
  1338. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,40)"
  1339. style="position: absolute;right: 33px;top: -30px;">
  1340. 分析
  1341. </div>
  1342. </div>
  1343. <div v-if="tooC == 41">
  1344. <img
  1345. @click="addTools(tooC, toolIndex, taskCount)"
  1346. src="../../assets/icon/thirdToolList/select.png"
  1347. alt
  1348. />
  1349. <div style="margin: 5px 0">选择匹配</div>
  1350. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,41)"
  1351. style="position: absolute;right: 33px;top: -30px;">
  1352. 分析
  1353. </div>
  1354. </div>
  1355. <div v-if="tooC == 44">
  1356. <img
  1357. @click="addTools(tooC, toolIndex, taskCount)"
  1358. src="../../assets/icon/thirdToolList/hanClass.png"
  1359. alt
  1360. />
  1361. <div style="margin: 5px 0">汉字宫</div>
  1362. </div>
  1363. <div v-if="tooC == 47">
  1364. <img
  1365. @click="addTools(tooC, toolIndex, taskCount)"
  1366. src="../../assets/icon/fourthToolList/conSentences.png"
  1367. alt
  1368. />
  1369. <div style="margin: 5px 0">排序</div>
  1370. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,47)"
  1371. style="position: absolute;right: 33px;top: -30px;">
  1372. 分析
  1373. </div>
  1374. </div>
  1375. <div v-if="tooC == 48">
  1376. <img
  1377. @click="addTools(tooC, toolIndex, taskCount)"
  1378. src="../../assets/icon/fourthToolList/table.png"
  1379. alt
  1380. />
  1381. <div style="margin: 5px 0">表格</div>
  1382. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,48)"
  1383. style="position: absolute;right: 33px;top: -30px;">
  1384. 分析
  1385. </div>
  1386. </div>
  1387. <div v-if="tooC == 52">
  1388. <img
  1389. @click="addTools(tooC, toolIndex, taskCount)"
  1390. src="../../assets/icon/fourthToolList/text.png"
  1391. alt
  1392. />
  1393. <div style="margin: 5px 0">文档</div>
  1394. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,52)"
  1395. style="position: absolute;right: 33px;top: -30px;">
  1396. 分析
  1397. </div>
  1398. </div>
  1399. <div v-if="tooC == 49">
  1400. <img
  1401. @click="addTools(tooC, toolIndex, taskCount)"
  1402. src="../../assets/icon/fourthToolList/group.png"
  1403. alt
  1404. />
  1405. <div style="margin: 5px 0">学生分组</div>
  1406. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,49)"
  1407. style="position: absolute;right: 33px;top: -30px;">
  1408. 分析
  1409. </div>
  1410. </div>
  1411. <div v-if="tooC == 57">
  1412. <img
  1413. @click="addTools(tooC, toolIndex, taskCount)"
  1414. src="../../assets/icon/fourthToolList/cocopi.png"
  1415. alt
  1416. />
  1417. <div style="margin: 5px 0">CocoPi</div>
  1418. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,57)"
  1419. style="position: absolute;right: 33px;top: -30px;">
  1420. 分析
  1421. </div>
  1422. </div>
  1423. <div v-if="tooC == 58">
  1424. <img
  1425. @click="addTools(tooC, toolIndex, taskCount)"
  1426. src="../../assets/icon/fourthToolList/car.png"
  1427. alt
  1428. />
  1429. <div style="margin: 5px 0">模拟驾驶</div>
  1430. </div>
  1431. <div v-if="tooC == 59">
  1432. <img
  1433. @click="addTools(tooC, toolIndex, taskCount)"
  1434. src="../../assets/icon/fourthToolList/lineSearch.png"
  1435. alt
  1436. />
  1437. <div style="margin: 5px 0">路径搜索</div>
  1438. </div>
  1439. <div v-if="tooC == 60">
  1440. <img
  1441. @click="addTools(tooC, toolIndex, taskCount)"
  1442. src="../../assets/icon/fourthToolList/deepLearning.png"
  1443. alt
  1444. />
  1445. <div style="margin: 5px 0">深度学习</div>
  1446. </div>
  1447. <div v-if="tooC == 61">
  1448. <img
  1449. @click="addTools(tooC, toolIndex, taskCount)"
  1450. src="../../assets/icon/fourthToolList/allHistory.png"
  1451. alt
  1452. />
  1453. <div style="margin: 5px 0">全历史</div>
  1454. </div>
  1455. <div v-if="tooC == 62">
  1456. <img
  1457. @click="addTools(tooC, toolIndex, taskCount)"
  1458. src="../../assets/icon/fourthToolList/interVideo.png"
  1459. alt
  1460. />
  1461. <div style="margin: 5px 0">交互视频</div>
  1462. </div>
  1463. <div v-if="tooC == 63">
  1464. <img
  1465. @click="addTools(tooC, toolIndex, taskCount)"
  1466. src="../../assets/icon/fourthToolList/Wood.png"
  1467. alt
  1468. />
  1469. <div style="margin: 5px 0">海龟编程</div>
  1470. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,63)"
  1471. style="position: absolute;right: 33px;top: -30px;">
  1472. 分析
  1473. </div>
  1474. </div>
  1475. <div v-if="tooC == 71">
  1476. <img
  1477. @click="addTools(tooC, toolIndex, taskCount)"
  1478. src="../../assets/icon/fourthToolList/chatgpt.png"
  1479. alt
  1480. />
  1481. <div style="margin: 5px 0">AI智能体</div>
  1482. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,71)"
  1483. style="position: absolute;right: 33px;top: -30px;">
  1484. 分析
  1485. </div>
  1486. </div>
  1487. <div v-if="tooC == 72">
  1488. <img
  1489. style="height: 85px;object-fit: cover;"
  1490. v-if="tool.appJson && tool.appJson.json && tool.appJson.json.icon"
  1491. @click="addTools(tooC, toolIndex, taskCount)"
  1492. :src="tool.appJson.json.icon"
  1493. alt
  1494. />
  1495. <img
  1496. v-else
  1497. @click="addTools(tooC, toolIndex, taskCount)"
  1498. src="../../assets/icon/firstToolList/appStore.png"
  1499. alt
  1500. />
  1501. <el-tooltip :content="tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'" placement="top" effect="dark">
  1502. <!-- content to trigger tooltip here -->
  1503. <div class="Ovh">
  1504. {{tool.appJson && tool.appJson.name ? tool.appJson.name : '应用中心'}}
  1505. </div>
  1506. </el-tooltip>
  1507. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,72)"
  1508. style="position: absolute;right: 33px;top: -30px;">
  1509. 分析
  1510. </div>
  1511. </div>
  1512. <div v-if="tooC == 65">
  1513. <img
  1514. @click="addTools(tooC, toolIndex, taskCount)"
  1515. src="../../assets/icon/firstToolList/pickPeople.png"
  1516. alt
  1517. />
  1518. <div style="margin: 5px 0">挑人</div>
  1519. </div>
  1520. <div v-if="tooC == 66">
  1521. <img
  1522. @click="addTools(tooC, toolIndex, taskCount)"
  1523. src="../../assets/icon/secondToolList/formulaEdi.png"
  1524. alt
  1525. />
  1526. <div style="margin: 5px 0">公式编辑</div>
  1527. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,36)"
  1528. style="position: absolute;right: 33px;top: -30px;">
  1529. 分析
  1530. </div>
  1531. </div>
  1532. <div v-if="tooC == 67">
  1533. <img
  1534. @click="addTools(tooC, toolIndex, taskCount)"
  1535. src="../../assets/icon/secondToolList/molStr.png"
  1536. alt
  1537. />
  1538. <div style="margin: 5px 0">分子结构</div>
  1539. </div>
  1540. <div v-if="tooC == 68">
  1541. <img
  1542. @click="addTools(tooC, toolIndex, taskCount)"
  1543. src="../../assets/icon/secondToolList/timeAxis.png"
  1544. alt
  1545. />
  1546. <div style="margin: 5px 0">时间轴</div>
  1547. <!-- <div class="upload_toolBtn" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,68)"
  1548. style="position: absolute;right: 33px;top: -30px;">
  1549. 分析
  1550. </div> -->
  1551. </div>
  1552. <div v-if="tooC == 69">
  1553. <img
  1554. @click="addTools(tooC, toolIndex, taskCount)"
  1555. src="../../assets/icon/secondToolList/english.png"
  1556. alt
  1557. />
  1558. <div style="margin: 5px 0">英语写作</div>
  1559. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,69)"
  1560. style="position: absolute;right: 33px;top: -30px;">
  1561. 分析
  1562. </div>
  1563. </div>
  1564. <div v-if="tooC == 70">
  1565. <img
  1566. @click="addTools(tooC, toolIndex, taskCount)"
  1567. src="../../assets/icon/thirdToolList/englishVoice.png"
  1568. alt
  1569. />
  1570. <div style="margin: 5px 0">英语口语</div>
  1571. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,70)"
  1572. style="position: absolute;right: 33px;top: -30px;">
  1573. 分析
  1574. </div>
  1575. </div>
  1576. </div>
  1577. </div>
  1578. </div>
  1579. <div
  1580. class="tooldetail renderedFor"
  1581. v-if="tool.toolDetail != ''"
  1582. :class="{
  1583. isUpdateToolDetailClass: toolDetailIndex == toolIndex
  1584. }"
  1585. >
  1586. <!-- <div class="toolTitle">工具描述</div> -->
  1587. <!-- @click.stop="updateToolDetail(toolIndex, 2)" -->
  1588. <div
  1589. style="height:100%;"
  1590. v-html="renderedFormula(tool.toolDetail)"
  1591. v-if="toolDetailIndex != toolIndex"
  1592. ></div>
  1593. <div v-else @click.stop="" style="height:100%;">
  1594. <textarea
  1595. @change="
  1596. () => {
  1597. $forceUpdate();
  1598. }
  1599. "
  1600. class="checkTextArea"
  1601. rows="3"
  1602. v-autoHeight="70"
  1603. type="text"
  1604. placeholder="请输入任务描述"
  1605. v-model="updateToolDetailInner"
  1606. ></textarea>
  1607. </div>
  1608. </div>
  1609. <el-button
  1610. type="primary"
  1611. v-if="tool.tool[0] == 32"
  1612. style="position: absolute; right: 30px; top: -45px"
  1613. @click="addImg($event)"
  1614. >上传作业<input
  1615. type="file"
  1616. accept="*"
  1617. style="display: none"
  1618. @change="beforeUpload1($event, 7, toolIndex)"
  1619. /></el-button>
  1620. <el-button
  1621. type="primary"
  1622. v-if="tool.tool[0] == 15"
  1623. style="position: absolute; right: 30px; top: -45px"
  1624. @click="openWordCloud(toolIndex)"
  1625. >生成词云</el-button
  1626. >
  1627. <el-button
  1628. type="primary"
  1629. v-if="
  1630. tool.tool[0] == 16 && worksStudent[toolIndex].length > 0 && tType==1
  1631. "
  1632. style="position: absolute; right: 30px; top: -45px"
  1633. @click="uploadWorks(toolIndex)"
  1634. >导出作业</el-button
  1635. >
  1636. <!-- <el-button type="primary" v-if="tool.tool[0] == 57" style="
  1637. position: absolute;
  1638. right: 30px;
  1639. transform: translateY(-130%);
  1640. " @click="addImg($event)">上传作业<input type="file" accept="*" style="display: none"
  1641. @change="beforeUpload1($event, 8, toolIndex)" /></el-button> -->
  1642. </div>
  1643. <div
  1644. v-if="
  1645. tType &&
  1646. tType == 2 &&
  1647. !sIsOpen &&
  1648. tool.tool.indexOf(16) != -1
  1649. "
  1650. class="worksBox"
  1651. >
  1652. <div
  1653. class="zuoyeYulan"
  1654. v-if="workStudent[toolIndex].length > 0"
  1655. >
  1656. <span class="worksTitle">作业预览</span>
  1657. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  1658. </div>
  1659. <div
  1660. class="worksDetailBox"
  1661. v-if="workStudent[toolIndex].length > 0"
  1662. >
  1663. <div
  1664. class="works"
  1665. style="
  1666. width: 200px;
  1667. height: 140px;
  1668. margin: 10px 10px 10px 0;
  1669. box-shadow: 0 0 6px 1px #dfdada;
  1670. "
  1671. v-for="(w, wIndex) in workStudent[toolIndex]"
  1672. :key="wIndex"
  1673. >
  1674. <div class="workImg" v-if="w.type == 0">
  1675. <img
  1676. :src="w.works"
  1677. @click="previewImg(w.works, w)"
  1678. alt
  1679. />
  1680. <div
  1681. class="answerScore"
  1682. v-if="w.score"
  1683. @click.stop="openScore(w)"
  1684. :class="{
  1685. rightW:
  1686. w.userid == userid || tType == 1 || tType == 4
  1687. }"
  1688. >
  1689. {{ JSON.parse(w.score).wScore }}分
  1690. </div>
  1691. <div
  1692. class="answerScore"
  1693. @click.stop="openScore(w)"
  1694. v-else-if="courseDetail.userid == userid"
  1695. :class="{
  1696. rightW:
  1697. w.userid == userid || tType == 1 || tType == 4
  1698. }"
  1699. >
  1700. 评分
  1701. </div>
  1702. <div
  1703. class="stuLookScore"
  1704. v-if="
  1705. w.userid == userid ||
  1706. (tType == 1 &&
  1707. courseDetail.state == 6 &&
  1708. ((chapInfoList[courseType].chapterInfo[0]
  1709. .taskJson[taskCount].eList &&
  1710. chapInfoList[courseType].chapterInfo[0]
  1711. .taskJson[taskCount].eList.length) ||
  1712. (tool.eList && tool.eList.length)))
  1713. "
  1714. >
  1715. <el-popover
  1716. placement="top"
  1717. width="318"
  1718. trigger="hover"
  1719. >
  1720. <markScore
  1721. :loading="AIloading[toolIndex][wIndex].loading"
  1722. :markScoreVisible="markScoreVisible"
  1723. :ref="`markSco${toolIndex}${wIndex}`"
  1724. @updateLoading="updateLoading"
  1725. @updateDocSco="updateDocSco"
  1726. @refreshOther="refreshOther"
  1727. @markScoreDig="markScoreDig"
  1728. :tool="tool"
  1729. :wIndex="wIndex"
  1730. :scoCon="w"
  1731. :toolIndex="toolIndex"
  1732. :key="refreshKey"
  1733. :stage="courseType"
  1734. :task="taskCount"
  1735. :scoTit="
  1736. chapInfoList[courseType].chapterInfo[0]
  1737. .taskJson[taskCount].eList
  1738. "
  1739. >
  1740. </markScore>
  1741. <div
  1742. @click="
  1743. markScoreDig2(
  1744. w.sName,
  1745. worksStudent,
  1746. w.userid,
  1747. toolIndex,
  1748. chapInfoList[courseType].chapterInfo[0]
  1749. .taskJson[taskCount].eList,
  1750. AIloading[toolIndex][wIndex].loading,
  1751. tool
  1752. )
  1753. "
  1754. slot="reference"
  1755. >
  1756. <span v-if="AIloading[toolIndex][wIndex].sco">
  1757. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1758. </span>
  1759. <span v-else>
  1760. 评分
  1761. </span>
  1762. </div>
  1763. </el-popover>
  1764. </div>
  1765. <img
  1766. class="deleteImg"
  1767. src="../../assets/deleteworks.png"
  1768. v-if="
  1769. w.userid == userid || tType == 1 || tType == 4
  1770. "
  1771. @click.stop="deleteWorks(w.wid)"
  1772. alt
  1773. />
  1774. </div>
  1775. <div class="workImg" v-if="w.type == 1">
  1776. <img :src="word" @click="openFile(w.works)" alt />
  1777. <div
  1778. class="answerScore"
  1779. v-if="w.score"
  1780. @click.stop="openScore(w)"
  1781. :class="{
  1782. rightW:
  1783. w.userid == userid || tType == 1 || tType == 4
  1784. }"
  1785. >
  1786. {{ JSON.parse(w.score).wScore }}分
  1787. </div>
  1788. <div
  1789. class="answerScore"
  1790. @click.stop="openScore(w)"
  1791. v-else-if="courseDetail.userid == userid"
  1792. :class="{
  1793. rightW:
  1794. w.userid == userid || tType == 1 || tType == 4
  1795. }"
  1796. >
  1797. 评分
  1798. </div>
  1799. <div
  1800. class="stuLookScore"
  1801. v-if="
  1802. w.userid == userid ||
  1803. (tType == 1 &&
  1804. courseDetail.state == 6 &&
  1805. ((chapInfoList[courseType].chapterInfo[0]
  1806. .taskJson[taskCount].eList &&
  1807. chapInfoList[courseType].chapterInfo[0]
  1808. .taskJson[taskCount].eList.length) ||
  1809. (tool.eList && tool.eList.length)))
  1810. "
  1811. >
  1812. <el-popover
  1813. placement="top"
  1814. width="318"
  1815. trigger="hover"
  1816. >
  1817. <markScore
  1818. :loading="AIloading[toolIndex][wIndex].loading"
  1819. :markScoreVisible="markScoreVisible"
  1820. :ref="`markSco${toolIndex}${wIndex}`"
  1821. @updateLoading="updateLoading"
  1822. @updateDocSco="updateDocSco"
  1823. @refreshOther="refreshOther"
  1824. @markScoreDig="markScoreDig"
  1825. :tool="tool"
  1826. :wIndex="wIndex"
  1827. :scoCon="w"
  1828. :toolIndex="toolIndex"
  1829. :key="refreshKey"
  1830. :stage="courseType"
  1831. :task="taskCount"
  1832. :scoTit="
  1833. chapInfoList[courseType].chapterInfo[0]
  1834. .taskJson[taskCount].eList
  1835. "
  1836. >
  1837. </markScore>
  1838. <div
  1839. @click="
  1840. markScoreDig2(
  1841. w.sName,
  1842. worksStudent,
  1843. w.userid,
  1844. toolIndex,
  1845. chapInfoList[courseType].chapterInfo[0]
  1846. .taskJson[taskCount].eList,
  1847. AIloading[toolIndex][wIndex].loading,
  1848. tool
  1849. )
  1850. "
  1851. slot="reference"
  1852. >
  1853. <span v-if="AIloading[toolIndex][wIndex].sco">
  1854. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1855. </span>
  1856. <span v-else>
  1857. 评分
  1858. </span>
  1859. </div>
  1860. </el-popover>
  1861. </div>
  1862. <img
  1863. class="deleteImg"
  1864. src="../../assets/deleteworks.png"
  1865. v-if="
  1866. w.userid == userid || tType == 1 || tType == 4
  1867. "
  1868. @click.stop="deleteWorks(w.wid)"
  1869. alt
  1870. />
  1871. </div>
  1872. <div class="workImg" v-if="w.type == 3">
  1873. <img
  1874. style="cursor: pointer"
  1875. :src="video"
  1876. @click="openVideo(w)"
  1877. alt
  1878. />
  1879. <div
  1880. class="answerScore"
  1881. v-if="w.score"
  1882. @click.stop="openScore(w)"
  1883. :class="{
  1884. rightW:
  1885. w.userid == userid || tType == 1 || tType == 4
  1886. }"
  1887. >
  1888. {{ JSON.parse(w.score).wScore }}分
  1889. </div>
  1890. <div
  1891. class="answerScore"
  1892. @click.stop="openScore(w)"
  1893. v-else-if="courseDetail.userid == userid"
  1894. :class="{
  1895. rightW:
  1896. w.userid == userid || tType == 1 || tType == 4
  1897. }"
  1898. >
  1899. 评分
  1900. </div>
  1901. <div
  1902. class="stuLookScore"
  1903. v-if="
  1904. w.userid == userid ||
  1905. (tType == 1 &&
  1906. courseDetail.state == 6 &&
  1907. ((chapInfoList[courseType].chapterInfo[0]
  1908. .taskJson[taskCount].eList &&
  1909. chapInfoList[courseType].chapterInfo[0]
  1910. .taskJson[taskCount].eList.length) ||
  1911. (tool.eList && tool.eList.length)))
  1912. "
  1913. >
  1914. <el-popover
  1915. placement="top"
  1916. width="318"
  1917. trigger="hover"
  1918. >
  1919. <markScore
  1920. :loading="AIloading[toolIndex][wIndex].loading"
  1921. :markScoreVisible="markScoreVisible"
  1922. :ref="`markSco${toolIndex}${wIndex}`"
  1923. @updateLoading="updateLoading"
  1924. @updateDocSco="updateDocSco"
  1925. @refreshOther="refreshOther"
  1926. @markScoreDig="markScoreDig"
  1927. :tool="tool"
  1928. :wIndex="wIndex"
  1929. :scoCon="w"
  1930. :toolIndex="toolIndex"
  1931. :key="refreshKey"
  1932. :stage="courseType"
  1933. :task="taskCount"
  1934. :scoTit="
  1935. chapInfoList[courseType].chapterInfo[0]
  1936. .taskJson[taskCount].eList
  1937. "
  1938. >
  1939. </markScore>
  1940. <div
  1941. @click="
  1942. markScoreDig2(
  1943. w.sName,
  1944. worksStudent,
  1945. w.userid,
  1946. toolIndex,
  1947. chapInfoList[courseType].chapterInfo[0]
  1948. .taskJson[taskCount].eList,
  1949. AIloading[toolIndex][wIndex].loading,
  1950. tool
  1951. )
  1952. "
  1953. slot="reference"
  1954. >
  1955. <span v-if="AIloading[toolIndex][wIndex].sco">
  1956. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  1957. </span>
  1958. <span v-else>
  1959. 评分
  1960. </span>
  1961. </div>
  1962. </el-popover>
  1963. </div>
  1964. <img
  1965. class="deleteImg"
  1966. src="../../assets/deleteworks.png"
  1967. v-if="
  1968. w.userid == userid || tType == 1 || tType == 4
  1969. "
  1970. @click.stop="deleteWorks(w.wid)"
  1971. alt
  1972. />
  1973. </div>
  1974. <div class="workImg" v-if="w.type == 12">
  1975. <img
  1976. style="cursor: pointer"
  1977. :src="word2"
  1978. @click="downloadFile(w.works,w.userid)"
  1979. alt
  1980. />
  1981. <div
  1982. class="answerScore"
  1983. v-if="w.score"
  1984. @click.stop="openScore(w)"
  1985. :class="{
  1986. rightW:
  1987. w.userid == userid || tType == 1 || tType == 4
  1988. }"
  1989. >
  1990. {{ JSON.parse(w.score).wScore }}分
  1991. </div>
  1992. <div
  1993. class="answerScore"
  1994. @click.stop="openScore(w)"
  1995. v-else-if="courseDetail.userid == userid"
  1996. :class="{
  1997. rightW:
  1998. w.userid == userid || tType == 1 || tType == 4
  1999. }"
  2000. >
  2001. 评分
  2002. </div>
  2003. <div
  2004. class="stuLookScore"
  2005. v-if="
  2006. w.userid == userid ||
  2007. (tType == 1 &&
  2008. courseDetail.state == 6 &&
  2009. ((chapInfoList[courseType].chapterInfo[0]
  2010. .taskJson[taskCount].eList &&
  2011. chapInfoList[courseType].chapterInfo[0]
  2012. .taskJson[taskCount].eList.length) ||
  2013. (tool.eList && tool.eList.length)))
  2014. "
  2015. >
  2016. <el-popover
  2017. placement="top"
  2018. width="318"
  2019. trigger="hover"
  2020. >
  2021. <markScore
  2022. :loading="AIloading[toolIndex][wIndex].loading"
  2023. :markScoreVisible="markScoreVisible"
  2024. :ref="`markSco${toolIndex}${wIndex}`"
  2025. @updateLoading="updateLoading"
  2026. @updateDocSco="updateDocSco"
  2027. @refreshOther="refreshOther"
  2028. @markScoreDig="markScoreDig"
  2029. :tool="tool"
  2030. :wIndex="wIndex"
  2031. :scoCon="w"
  2032. :toolIndex="toolIndex"
  2033. :key="refreshKey"
  2034. :stage="courseType"
  2035. :task="taskCount"
  2036. :scoTit="
  2037. chapInfoList[courseType].chapterInfo[0]
  2038. .taskJson[taskCount].eList
  2039. "
  2040. >
  2041. </markScore>
  2042. <div
  2043. @click="
  2044. markScoreDig2(
  2045. w.sName,
  2046. worksStudent,
  2047. w.userid,
  2048. toolIndex,
  2049. chapInfoList[courseType].chapterInfo[0]
  2050. .taskJson[taskCount].eList,
  2051. AIloading[toolIndex][wIndex].loading,
  2052. tool
  2053. )
  2054. "
  2055. slot="reference"
  2056. >
  2057. <span v-if="AIloading[toolIndex][wIndex].sco">
  2058. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2059. </span>
  2060. <span v-else>
  2061. 评分
  2062. </span>
  2063. </div>
  2064. </el-popover>
  2065. </div>
  2066. <img
  2067. class="deleteImg"
  2068. src="../../assets/deleteworks.png"
  2069. v-if="
  2070. w.userid == userid || tType == 1 || tType == 4
  2071. "
  2072. @click.stop="deleteWorks(w.wid)"
  2073. alt
  2074. />
  2075. </div>
  2076. <div class="worksName">
  2077. <div>{{ w.sName }}</div>
  2078. </div>
  2079. </div>
  2080. </div>
  2081. </div>
  2082. <div
  2083. v-if="
  2084. tType &&
  2085. tType == 2 &&
  2086. !sIsOpen &&
  2087. tool.tool.indexOf(32) != -1
  2088. "
  2089. class="worksBox"
  2090. >
  2091. <div
  2092. class="zuoyeYulan"
  2093. v-if="workStudent[toolIndex].length > 0"
  2094. >
  2095. <span class="worksTitle">作业预览</span>
  2096. </div>
  2097. <div
  2098. class="worksDetailBox"
  2099. v-if="workStudent[toolIndex].length > 0"
  2100. >
  2101. <div
  2102. class="works"
  2103. style="
  2104. width: 200px;
  2105. height: 140px;
  2106. margin: 10px 10px 10px 0;
  2107. box-shadow: 0 0 6px 1px #dfdada;
  2108. "
  2109. v-for="(w, wIndex) in workStudent[toolIndex]"
  2110. :key="wIndex"
  2111. >
  2112. <div class="workImg">
  2113. <img
  2114. :src="word2"
  2115. @click="downloadFile(w.works,w.userid)"
  2116. alt
  2117. />
  2118. <div
  2119. class="answerScore"
  2120. v-if="w.score"
  2121. @click.stop="openScore(w)"
  2122. :class="{
  2123. rightW:
  2124. w.userid == userid || tType == 1 || tType == 4
  2125. }"
  2126. >
  2127. {{ JSON.parse(w.score).wScore }}分
  2128. </div>
  2129. <div
  2130. class="answerScore"
  2131. @click.stop="openScore(w)"
  2132. v-else-if="courseDetail.userid == userid"
  2133. :class="{
  2134. rightW:
  2135. w.userid == userid || tType == 1 || tType == 4
  2136. }"
  2137. >
  2138. 评分
  2139. </div>
  2140. <img
  2141. class="deleteImg"
  2142. src="../../assets/deleteworks.png"
  2143. v-if="
  2144. w.userid == userid || tType == 1 || tType == 4
  2145. "
  2146. @click.stop="deleteWorks(w.wid)"
  2147. alt
  2148. />
  2149. </div>
  2150. <div class="worksName">
  2151. <div>{{ w.sName }}</div>
  2152. </div>
  2153. </div>
  2154. </div>
  2155. </div>
  2156. <div
  2157. v-if="
  2158. tType &&
  2159. tType == 2 &&
  2160. !sIsOpen &&
  2161. tool.tool.indexOf(57) != -1
  2162. "
  2163. class="worksBox"
  2164. >
  2165. <div
  2166. class="zuoyeYulan"
  2167. v-if="workStudent[toolIndex].length > 0"
  2168. >
  2169. <span class="worksTitle">作业预览</span>
  2170. </div>
  2171. <div
  2172. class="worksDetailBox"
  2173. v-if="workStudent[toolIndex].length > 0"
  2174. >
  2175. <div
  2176. class="works"
  2177. style="
  2178. width: 200px;
  2179. height: 140px;
  2180. margin: 10px 10px 10px 0;
  2181. box-shadow: 0 0 6px 1px #dfdada;
  2182. "
  2183. v-for="(w, wIndex) in workStudent[toolIndex]"
  2184. :key="wIndex"
  2185. >
  2186. <div class="workImg">
  2187. <img
  2188. :src="word2"
  2189. @click="downloadFile(w.works,w.userid)"
  2190. v-if="w.type == 12"
  2191. alt
  2192. />
  2193. <img
  2194. :src="word2"
  2195. @click="
  2196. openCocoPi(57, toolIndex, w.userid, w.sName)
  2197. "
  2198. v-else-if="w.type == 15"
  2199. alt
  2200. />
  2201. <div
  2202. class="answerScore"
  2203. v-if="w.score"
  2204. @click.stop="openScore(w)"
  2205. :class="{
  2206. rightW:
  2207. w.userid == userid || tType == 1 || tType == 4
  2208. }"
  2209. >
  2210. {{ JSON.parse(w.score).wScore }}分
  2211. </div>
  2212. <div
  2213. class="answerScore"
  2214. @click.stop="openScore(w)"
  2215. v-else-if="courseDetail.userid == userid"
  2216. :class="{
  2217. rightW:
  2218. w.userid == userid || tType == 1 || tType == 4
  2219. }"
  2220. >
  2221. 评分
  2222. </div>
  2223. <img
  2224. class="deleteImg"
  2225. src="../../assets/deleteworks.png"
  2226. v-if="
  2227. w.userid == userid || tType == 1 || tType == 4
  2228. "
  2229. @click.stop="deleteWorks(w.wid)"
  2230. alt
  2231. />
  2232. </div>
  2233. <div class="worksName">
  2234. <div>{{ w.sName }}</div>
  2235. </div>
  2236. </div>
  2237. </div>
  2238. </div>
  2239. <div
  2240. v-if="
  2241. tType &&
  2242. tType == 2 &&
  2243. !sIsOpen &&
  2244. tool.tool.indexOf(4) != -1
  2245. "
  2246. class="worksBox"
  2247. >
  2248. <div
  2249. class="zuoyeYulan"
  2250. v-if="workStudent[toolIndex].length > 0"
  2251. >
  2252. <span class="worksTitle">作业预览</span>
  2253. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2254. </div>
  2255. <div
  2256. class="worksDetailBox"
  2257. v-if="workStudent[toolIndex].length > 0"
  2258. >
  2259. <div
  2260. class="isWorksName2"
  2261. v-for="(w, wIndex) in workStudent[toolIndex]"
  2262. :key="wIndex"
  2263. @click="
  2264. openTools(4, toolIndex, taskCount, w.works, w.sName)
  2265. "
  2266. >
  2267. {{ w.sName }}
  2268. <img
  2269. class="deleteImg deleteImg2"
  2270. src="../../assets/deleteworks.png"
  2271. v-if="w.userid == userid || tType == 1 || tType == 4"
  2272. @click.stop="deleteWorks(w.wid)"
  2273. alt
  2274. />
  2275. </div>
  2276. <!-- <div
  2277. class="works"
  2278. style="
  2279. width: 200px;
  2280. height: 140px;
  2281. border-radius: 10px;
  2282. box-shadow: 0 0 6px 1px #dfdada;
  2283. overflow: hidden;
  2284. "
  2285. v-for="(w, wIndex) in workStudent[toolIndex]"
  2286. :key="wIndex"
  2287. >
  2288. <div class="workImg">
  2289. <img
  2290. src="../../assets/icon/works/noImg.png"
  2291. @click="
  2292. openTools(
  2293. 4,
  2294. toolIndex,
  2295. taskCount,
  2296. w.works,
  2297. w.sName
  2298. )
  2299. "
  2300. alt
  2301. />
  2302. </div>
  2303. <div class="worksName">
  2304. <div>{{ w.sName }}</div>
  2305. <div>{{ w.time }}</div>
  2306. </div>
  2307. </div> -->
  2308. </div>
  2309. </div>
  2310. <div
  2311. v-if="
  2312. tType &&
  2313. ((tType == 2 && sIsOpen == true) ||
  2314. tType == 1 ||
  2315. tType == 4) &&
  2316. tool.tool.indexOf(62) != -1
  2317. "
  2318. class="worksBox"
  2319. >
  2320. <div
  2321. class="zuoyeYulan"
  2322. v-if="
  2323. worksStudent.length &&
  2324. worksStudent[toolIndex].length > 0
  2325. "
  2326. >
  2327. <div class="worksTop">
  2328. <div>作业预览</div>
  2329. <div
  2330. class="corOpen"
  2331. @click="contract(toolIndex)"
  2332. v-if="
  2333. isCloseList[toolIndex].isCloseBoolean &&
  2334. isCloseList[toolIndex].isClose == 0
  2335. "
  2336. >
  2337. 折叠
  2338. </div>
  2339. <div
  2340. class="corOpen"
  2341. @click="contract(toolIndex)"
  2342. v-if="isCloseList[toolIndex].isClose == 1"
  2343. >
  2344. 展开
  2345. </div>
  2346. </div>
  2347. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2348. </div>
  2349. <div>
  2350. <div
  2351. :id="'tool-' + toolIndex"
  2352. :style="{
  2353. height:
  2354. isCloseList[toolIndex].isClose == 1
  2355. ? retrnToolHeight('tool-' + toolIndex)
  2356. : 'auto',
  2357. overflow:
  2358. isCloseList[toolIndex].isClose == 1
  2359. ? 'hidden'
  2360. : 'unset'
  2361. }"
  2362. class="worksDetailBox"
  2363. v-if="
  2364. worksStudent.length &&
  2365. worksStudent[toolIndex].length > 0
  2366. "
  2367. >
  2368. <div
  2369. v-for="(w, wIndex) in worksStudent[toolIndex]"
  2370. :key="wIndex"
  2371. class="isWorksName2"
  2372. @click="
  2373. openTools(
  2374. 62,
  2375. toolIndex,
  2376. taskCount,
  2377. w.works,
  2378. w.sName
  2379. )
  2380. "
  2381. >
  2382. {{ w.sName }}
  2383. <img
  2384. class="deleteImg deleteImg2"
  2385. src="../../assets/deleteworks.png"
  2386. v-if="
  2387. w.userid == userid || tType == 1 || tType == 4
  2388. "
  2389. @click.stop="deleteWorks(w.wid)"
  2390. alt
  2391. />
  2392. </div>
  2393. </div>
  2394. </div>
  2395. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  2396. 未提交
  2397. </div>
  2398. <div
  2399. class="noWorksS"
  2400. v-if="noWorksS && noWorksS[toolIndex].length"
  2401. >
  2402. <div
  2403. v-for="(s, sIndex) in noWorksS[toolIndex]"
  2404. :key="sIndex"
  2405. class="noWorksName"
  2406. >
  2407. <el-tooltip
  2408. effect="dark"
  2409. :content="s.student"
  2410. placement="top"
  2411. >
  2412. <span>{{ s.student }}</span>
  2413. </el-tooltip>
  2414. </div>
  2415. </div>
  2416. </div>
  2417. <div
  2418. v-if="
  2419. tType &&
  2420. tType == 2 &&
  2421. !sIsOpen &&
  2422. tool.tool.indexOf(62) != -1
  2423. "
  2424. class="worksBox"
  2425. >
  2426. <div
  2427. class="zuoyeYulan"
  2428. v-if="workStudent[toolIndex].length > 0"
  2429. >
  2430. <span class="worksTitle">作业预览</span>
  2431. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2432. </div>
  2433. <div
  2434. class="worksDetailBox"
  2435. v-if="workStudent[toolIndex].length > 0"
  2436. >
  2437. <div
  2438. class="isWorksName2"
  2439. v-for="(w, wIndex) in workStudent[toolIndex]"
  2440. :key="wIndex"
  2441. @click="
  2442. openTools(62, toolIndex, taskCount, w.works, w.sName)
  2443. "
  2444. >
  2445. {{ w.sName }}
  2446. <img
  2447. class="deleteImg deleteImg2"
  2448. src="../../assets/deleteworks.png"
  2449. v-if="w.userid == userid || tType == 1 || tType == 4"
  2450. @click.stop="deleteWorks(w.wid)"
  2451. alt
  2452. />
  2453. </div>
  2454. </div>
  2455. </div>
  2456. <div
  2457. v-if="
  2458. tType &&
  2459. tType == 2 &&
  2460. !sIsOpen &&
  2461. tool.tool.indexOf(45) != -1
  2462. "
  2463. class="worksBox"
  2464. >
  2465. <div
  2466. class="zuoyeYulan"
  2467. v-if="workStudent[toolIndex].length > 0"
  2468. >
  2469. <span class="worksTitle">作业预览</span>
  2470. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2471. </div>
  2472. <div
  2473. class="worksDetailBox"
  2474. v-if="workStudent[toolIndex].length > 0"
  2475. >
  2476. <div
  2477. class="isWorksName2"
  2478. v-for="(w, wIndex) in workStudent[toolIndex]"
  2479. :key="wIndex"
  2480. @click="
  2481. openTools(45, toolIndex, taskCount, w.works, w.sName)
  2482. "
  2483. >
  2484. {{ w.sName }}
  2485. <img
  2486. class="deleteImg deleteImg2"
  2487. src="../../assets/deleteworks.png"
  2488. v-if="w.userid == userid || tType == 1 || tType == 4"
  2489. @click.stop="deleteWorks(w.wid)"
  2490. alt
  2491. />
  2492. </div>
  2493. </div>
  2494. </div>
  2495. <div
  2496. v-if="
  2497. tType &&
  2498. tType == 2 &&
  2499. !sIsOpen &&
  2500. tool.tool.indexOf(69) != -1
  2501. "
  2502. class="worksBox"
  2503. >
  2504. <div
  2505. class="zuoyeYulan"
  2506. v-if="workStudent[toolIndex].length > 0"
  2507. >
  2508. <span class="worksTitle">作业预览</span>
  2509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2510. </div>
  2511. <div
  2512. class="worksDetailBox"
  2513. v-if="workStudent[toolIndex].length > 0"
  2514. >
  2515. <div
  2516. class="isWorksName2"
  2517. v-for="(w, wIndex) in workStudent[toolIndex]"
  2518. :key="wIndex"
  2519. @click="
  2520. openTools(69, toolIndex, taskCount, w.works, w.sName)
  2521. "
  2522. >
  2523. {{ w.sName }}
  2524. <img
  2525. class="deleteImg deleteImg2"
  2526. src="../../assets/deleteworks.png"
  2527. v-if="w.userid == userid || tType == 1 || tType == 4"
  2528. @click.stop="deleteWorks(w.wid)"
  2529. alt
  2530. />
  2531. </div>
  2532. </div>
  2533. </div>
  2534. <div
  2535. v-if="
  2536. tType &&
  2537. tType == 2 &&
  2538. !sIsOpen &&
  2539. tool.tool.indexOf(15) != -1
  2540. "
  2541. class="worksBox"
  2542. >
  2543. <div
  2544. class="zuoyeYulan"
  2545. v-if="workStudent[toolIndex].length > 0"
  2546. >
  2547. <span class="worksTitle">作业预览</span>
  2548. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2549. </div>
  2550. <div
  2551. class="worksDetailBox"
  2552. v-if="workStudent[toolIndex].length > 0"
  2553. >
  2554. <div
  2555. class="works"
  2556. v-for="(w, wIndex) in workStudent[toolIndex]"
  2557. :key="wIndex"
  2558. >
  2559. <div class="workImg">
  2560. <!-- <img
  2561. src="../../assets/icon/works/noImg.png"
  2562. @click="openTools(15, toolIndex, taskCount, w.works)"
  2563. alt=""
  2564. />-->
  2565. <div class="answerBg">
  2566. <!-- <div>{{ w.sName }}</div> -->
  2567. <el-tooltip
  2568. class="item"
  2569. effect="light"
  2570. :content="JSON.parse(w.works)[0].answer"
  2571. placement="top"
  2572. >
  2573. <div class="answerContent">
  2574. {{ JSON.parse(w.works)[0].answer }}
  2575. </div>
  2576. </el-tooltip>
  2577. <div
  2578. class="answerScore"
  2579. v-if="w.score"
  2580. @click.stop="openScore(w)"
  2581. :class="{
  2582. rightW:
  2583. w.userid == userid || tType == 1 || tType == 4
  2584. }"
  2585. >
  2586. {{ JSON.parse(w.score).wScore }}分
  2587. </div>
  2588. <div
  2589. class="answerScore"
  2590. @click.stop="openScore(w)"
  2591. v-else-if="courseDetail.userid == userid"
  2592. :class="{
  2593. rightW:
  2594. w.userid == userid || tType == 1 || tType == 4
  2595. }"
  2596. >
  2597. 评分
  2598. </div>
  2599. <img
  2600. class="deleteImg"
  2601. src="../../assets/deleteworks.png"
  2602. v-if="
  2603. w.userid == userid || tType == 1 || tType == 4
  2604. "
  2605. @click.stop="deleteWorks(w.wid)"
  2606. alt
  2607. />
  2608. </div>
  2609. <div class="comment">
  2610. <div class="worksName">
  2611. <div>{{ w.sName }}</div>
  2612. </div>
  2613. </div>
  2614. </div>
  2615. </div>
  2616. </div>
  2617. </div>
  2618. <div
  2619. v-if="
  2620. tType &&
  2621. tType == 2 &&
  2622. !sIsOpen &&
  2623. tool.tool.indexOf(1) != -1
  2624. "
  2625. class="worksBox"
  2626. >
  2627. <div
  2628. class="zuoyeYulan"
  2629. v-if="workStudent[toolIndex].length > 0"
  2630. >
  2631. <span class="worksTitle">作业预览</span>
  2632. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2633. </div>
  2634. <div
  2635. class="worksDetailBox"
  2636. v-if="workStudent[toolIndex].length > 0"
  2637. >
  2638. <div
  2639. class="works"
  2640. style="
  2641. width: 200px;
  2642. height: 140px;
  2643. margin: 10px 10px 10px 0;
  2644. box-shadow: 0 0 6px 1px #dfdada;
  2645. "
  2646. v-for="(w, wIndex) in workStudent[toolIndex]"
  2647. :key="wIndex"
  2648. >
  2649. <div class="workImg">
  2650. <img
  2651. :src="w.works"
  2652. @click="previewImg(w.works, w)"
  2653. alt
  2654. />
  2655. <div
  2656. class="answerScore"
  2657. v-if="w.score"
  2658. @click.stop="openScore(w)"
  2659. :class="{
  2660. rightW:
  2661. w.userid == userid || tType == 1 || tType == 4
  2662. }"
  2663. >
  2664. {{ JSON.parse(w.score).wScore }}分
  2665. </div>
  2666. <div
  2667. class="answerScore"
  2668. @click.stop="openScore(w)"
  2669. v-else-if="courseDetail.userid == userid"
  2670. :class="{
  2671. rightW:
  2672. w.userid == userid || tType == 1 || tType == 4
  2673. }"
  2674. >
  2675. 评分
  2676. </div>
  2677. <div
  2678. class="stuLookScore"
  2679. v-if="
  2680. w.userid == userid ||
  2681. (tType == 1 &&
  2682. courseDetail.state == 6 &&
  2683. ((chapInfoList[courseType].chapterInfo[0]
  2684. .taskJson[taskCount].eList &&
  2685. chapInfoList[courseType].chapterInfo[0]
  2686. .taskJson[taskCount].eList.length) ||
  2687. (tool.eList && tool.eList.length)))
  2688. "
  2689. >
  2690. <el-popover
  2691. placement="top"
  2692. width="318"
  2693. trigger="hover"
  2694. >
  2695. <markScore
  2696. :loading="AIloading[toolIndex][wIndex].loading"
  2697. :markScoreVisible="markScoreVisible"
  2698. :ref="`markSco${toolIndex}${wIndex}`"
  2699. @updateLoading="updateLoading"
  2700. @updateDocSco="updateDocSco"
  2701. @refreshOther="refreshOther"
  2702. @markScoreDig="markScoreDig"
  2703. :tool="tool"
  2704. :wIndex="wIndex"
  2705. :scoCon="w"
  2706. :toolIndex="toolIndex"
  2707. :key="refreshKey"
  2708. :stage="courseType"
  2709. :task="taskCount"
  2710. :scoTit="
  2711. chapInfoList[courseType].chapterInfo[0]
  2712. .taskJson[taskCount].eList
  2713. "
  2714. >
  2715. </markScore>
  2716. <div
  2717. @click="
  2718. markScoreDig2(
  2719. w.sName,
  2720. worksStudent,
  2721. w.userid,
  2722. toolIndex,
  2723. chapInfoList[courseType].chapterInfo[0]
  2724. .taskJson[taskCount].eList,
  2725. AIloading[toolIndex][wIndex].loading,
  2726. tool
  2727. )
  2728. "
  2729. slot="reference"
  2730. >
  2731. <span v-if="AIloading[toolIndex][wIndex].sco">
  2732. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2733. </span>
  2734. <span v-else>
  2735. 评分
  2736. </span>
  2737. </div>
  2738. </el-popover>
  2739. </div>
  2740. <img
  2741. class="deleteImg"
  2742. src="../../assets/deleteworks.png"
  2743. v-if="
  2744. w.userid == userid || tType == 1 || tType == 4
  2745. "
  2746. @click.stop="deleteWorks(w.wid)"
  2747. alt
  2748. />
  2749. </div>
  2750. <div class="worksName">
  2751. <div>{{ w.sName }}</div>
  2752. </div>
  2753. </div>
  2754. </div>
  2755. </div>
  2756. <div
  2757. v-if="
  2758. tType &&
  2759. tType == 2 &&
  2760. !sIsOpen &&
  2761. tool.tool.indexOf(3) != -1
  2762. "
  2763. class="worksBox"
  2764. >
  2765. <div
  2766. class="zuoyeYulan"
  2767. v-if="workStudent[toolIndex].length > 0"
  2768. >
  2769. <span class="worksTitle">作业预览</span>
  2770. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2771. </div>
  2772. <div
  2773. class="worksDetailBox"
  2774. v-if="workStudent[toolIndex].length > 0"
  2775. >
  2776. <div
  2777. class="works"
  2778. style="
  2779. width: 200px;
  2780. height: 140px;
  2781. margin: 10px 10px 10px 0;
  2782. box-shadow: 0 0 6px 1px #dfdada;
  2783. "
  2784. v-for="(w, wIndex) in workStudent[toolIndex]"
  2785. :key="wIndex"
  2786. >
  2787. <div class="workImg">
  2788. <img
  2789. :src="w.works"
  2790. @click="previewImg(w.works, w)"
  2791. alt
  2792. />
  2793. <div
  2794. class="answerScore"
  2795. v-if="w.score"
  2796. @click.stop="openScore(w)"
  2797. :class="{
  2798. rightW:
  2799. w.userid == userid || tType == 1 || tType == 4
  2800. }"
  2801. >
  2802. {{ JSON.parse(w.score).wScore }}分
  2803. </div>
  2804. <div
  2805. class="answerScore"
  2806. @click.stop="openScore(w)"
  2807. v-else-if="courseDetail.userid == userid"
  2808. :class="{
  2809. rightW:
  2810. w.userid == userid || tType == 1 || tType == 4
  2811. }"
  2812. >
  2813. 评分
  2814. </div>
  2815. <div
  2816. class="stuLookScore"
  2817. v-if="
  2818. w.userid == userid ||
  2819. (tType == 1 &&
  2820. courseDetail.state == 6 &&
  2821. ((chapInfoList[courseType].chapterInfo[0]
  2822. .taskJson[taskCount].eList &&
  2823. chapInfoList[courseType].chapterInfo[0]
  2824. .taskJson[taskCount].eList.length) ||
  2825. (tool.eList && tool.eList.length)))
  2826. "
  2827. >
  2828. <el-popover
  2829. placement="top"
  2830. width="318"
  2831. trigger="hover"
  2832. >
  2833. <markScore
  2834. :loading="AIloading[toolIndex][wIndex].loading"
  2835. :markScoreVisible="markScoreVisible"
  2836. :ref="`markSco${toolIndex}${wIndex}`"
  2837. @updateLoading="updateLoading"
  2838. @updateDocSco="updateDocSco"
  2839. @refreshOther="refreshOther"
  2840. @markScoreDig="markScoreDig"
  2841. :tool="tool"
  2842. :wIndex="wIndex"
  2843. :scoCon="w"
  2844. :toolIndex="toolIndex"
  2845. :key="refreshKey"
  2846. :stage="courseType"
  2847. :task="taskCount"
  2848. :scoTit="
  2849. chapInfoList[courseType].chapterInfo[0]
  2850. .taskJson[taskCount].eList
  2851. "
  2852. >
  2853. </markScore>
  2854. <div
  2855. @click="
  2856. markScoreDig2(
  2857. w.sName,
  2858. worksStudent,
  2859. w.userid,
  2860. toolIndex,
  2861. chapInfoList[courseType].chapterInfo[0]
  2862. .taskJson[taskCount].eList,
  2863. AIloading[toolIndex][wIndex].loading,
  2864. tool
  2865. )
  2866. "
  2867. slot="reference"
  2868. >
  2869. <span v-if="AIloading[toolIndex][wIndex].sco">
  2870. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  2871. </span>
  2872. <span v-else>
  2873. 评分
  2874. </span>
  2875. </div>
  2876. </el-popover>
  2877. </div>
  2878. <img
  2879. class="deleteImg"
  2880. src="../../assets/deleteworks.png"
  2881. v-if="
  2882. w.userid == userid || tType == 1 || tType == 4
  2883. "
  2884. @click.stop="deleteWorks(w.wid)"
  2885. alt
  2886. />
  2887. </div>
  2888. <div class="worksName">
  2889. <div>{{ w.sName }}</div>
  2890. </div>
  2891. </div>
  2892. </div>
  2893. </div>
  2894. <div
  2895. v-if="
  2896. tType &&
  2897. tType == 2 &&
  2898. !sIsOpen &&
  2899. tool.tool.indexOf(6) != -1
  2900. "
  2901. class="worksBox"
  2902. >
  2903. <div
  2904. class="zuoyeYulan"
  2905. v-if="workStudent[toolIndex].length > 0"
  2906. >
  2907. <span class="worksTitle">作业预览</span>
  2908. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2909. </div>
  2910. <div
  2911. class="worksDetailBox"
  2912. v-if="workStudent[toolIndex].length > 0"
  2913. >
  2914. <div
  2915. class="works"
  2916. style="
  2917. width: 200px;
  2918. height: 140px;
  2919. margin: 10px 10px 10px 0;
  2920. box-shadow: 0 0 6px 1px #dfdada;
  2921. "
  2922. v-for="(w, wIndex) in workStudent[toolIndex]"
  2923. :key="wIndex"
  2924. >
  2925. <div class="workImg">
  2926. <img
  2927. :src="w.works"
  2928. @click="previewImg(w.works, w)"
  2929. alt
  2930. />
  2931. <div
  2932. class="answerScore"
  2933. v-if="w.score"
  2934. @click.stop="openScore(w)"
  2935. :class="{
  2936. rightW:
  2937. w.userid == userid || tType == 1 || tType == 4
  2938. }"
  2939. >
  2940. {{ JSON.parse(w.score).wScore }}分
  2941. </div>
  2942. <div
  2943. class="answerScore"
  2944. @click.stop="openScore(w)"
  2945. v-else-if="courseDetail.userid == userid"
  2946. :class="{
  2947. rightW:
  2948. w.userid == userid || tType == 1 || tType == 4
  2949. }"
  2950. >
  2951. 评分
  2952. </div>
  2953. <img
  2954. class="deleteImg"
  2955. src="../../assets/deleteworks.png"
  2956. v-if="
  2957. w.userid == userid || tType == 1 || tType == 4
  2958. "
  2959. @click.stop="deleteWorks(w.wid)"
  2960. alt
  2961. />
  2962. </div>
  2963. <div class="worksName">
  2964. <div>{{ w.sName }}</div>
  2965. </div>
  2966. </div>
  2967. </div>
  2968. </div>
  2969. <div
  2970. v-if="
  2971. tType &&
  2972. tType == 2 &&
  2973. !sIsOpen &&
  2974. tool.tool.indexOf(7) != -1
  2975. "
  2976. class="worksBox"
  2977. >
  2978. <div
  2979. class="zuoyeYulan"
  2980. v-if="workStudent[toolIndex].length > 0"
  2981. >
  2982. <span class="worksTitle">作业预览</span>
  2983. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  2984. </div>
  2985. <div
  2986. class="worksDetailBox"
  2987. v-if="workStudent[toolIndex].length > 0"
  2988. >
  2989. <div
  2990. class="works"
  2991. style="
  2992. width: 200px;
  2993. height: 140px;
  2994. margin: 10px 10px 10px 0;
  2995. box-shadow: 0 0 6px 1px #dfdada;
  2996. "
  2997. v-for="(w, wIndex) in workStudent[toolIndex]"
  2998. :key="wIndex"
  2999. >
  3000. <div class="workImg">
  3001. <img
  3002. :src="w.works"
  3003. @click="previewImg(w.works, w)"
  3004. alt
  3005. />
  3006. <div
  3007. class="answerScore"
  3008. v-if="w.score"
  3009. @click.stop="openScore(w)"
  3010. :class="{
  3011. rightW:
  3012. w.userid == userid || tType == 1 || tType == 4
  3013. }"
  3014. >
  3015. {{ JSON.parse(w.score).wScore }}分
  3016. </div>
  3017. <div
  3018. class="answerScore"
  3019. @click.stop="openScore(w)"
  3020. v-else-if="courseDetail.userid == userid"
  3021. :class="{
  3022. rightW:
  3023. w.userid == userid || tType == 1 || tType == 4
  3024. }"
  3025. >
  3026. 评分
  3027. </div>
  3028. <div
  3029. class="stuLookScore"
  3030. v-if="
  3031. w.userid == userid ||
  3032. (tType == 1 &&
  3033. courseDetail.state == 6 &&
  3034. ((chapInfoList[courseType].chapterInfo[0]
  3035. .taskJson[taskCount].eList &&
  3036. chapInfoList[courseType].chapterInfo[0]
  3037. .taskJson[taskCount].eList.length) ||
  3038. (tool.eList && tool.eList.length)))
  3039. "
  3040. >
  3041. <el-popover
  3042. placement="top"
  3043. width="318"
  3044. trigger="hover"
  3045. >
  3046. <markScore
  3047. :loading="AIloading[toolIndex][wIndex].loading"
  3048. :markScoreVisible="markScoreVisible"
  3049. :ref="`markSco${toolIndex}${wIndex}`"
  3050. @updateLoading="updateLoading"
  3051. @updateDocSco="updateDocSco"
  3052. @refreshOther="refreshOther"
  3053. @markScoreDig="markScoreDig"
  3054. :tool="tool"
  3055. :wIndex="wIndex"
  3056. :scoCon="w"
  3057. :toolIndex="toolIndex"
  3058. :key="refreshKey"
  3059. :stage="courseType"
  3060. :task="taskCount"
  3061. :scoTit="
  3062. chapInfoList[courseType].chapterInfo[0]
  3063. .taskJson[taskCount].eList
  3064. "
  3065. >
  3066. </markScore>
  3067. <div
  3068. @click="
  3069. markScoreDig2(
  3070. w.sName,
  3071. worksStudent,
  3072. w.userid,
  3073. toolIndex,
  3074. chapInfoList[courseType].chapterInfo[0]
  3075. .taskJson[taskCount].eList,
  3076. AIloading[toolIndex][wIndex].loading,
  3077. tool
  3078. )
  3079. "
  3080. slot="reference"
  3081. >
  3082. <span v-if="AIloading[toolIndex][wIndex].sco">
  3083. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  3084. </span>
  3085. <span v-else>
  3086. 评分
  3087. </span>
  3088. </div>
  3089. </el-popover>
  3090. </div>
  3091. <img
  3092. class="deleteImg"
  3093. src="../../assets/deleteworks.png"
  3094. v-if="
  3095. w.userid == userid || tType == 1 || tType == 4
  3096. "
  3097. @click.stop="deleteWorks(w.wid)"
  3098. alt
  3099. />
  3100. </div>
  3101. <div class="worksName">
  3102. <div>{{ w.sName }}</div>
  3103. </div>
  3104. </div>
  3105. </div>
  3106. </div>
  3107. <div
  3108. v-if="
  3109. tType &&
  3110. tType == 2 &&
  3111. !sIsOpen &&
  3112. tool.tool.indexOf(26) != -1
  3113. "
  3114. class="worksBox"
  3115. >
  3116. <div
  3117. class="zuoyeYulan"
  3118. v-if="workStudent[toolIndex].length > 0"
  3119. >
  3120. <span class="worksTitle">作业预览</span>
  3121. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3122. </div>
  3123. <div
  3124. class="worksDetailBox"
  3125. v-if="workStudent[toolIndex].length > 0"
  3126. >
  3127. <div
  3128. class="works"
  3129. style="
  3130. width: 200px;
  3131. height: 140px;
  3132. margin: 10px 10px 10px 0;
  3133. box-shadow: 0 0 6px 1px #dfdada;
  3134. "
  3135. v-for="(w, wIndex) in workStudent[toolIndex]"
  3136. :key="wIndex"
  3137. >
  3138. <div class="workImg">
  3139. <img
  3140. :src="w.works"
  3141. @click="previewImg(w.works, w)"
  3142. alt
  3143. />
  3144. <img
  3145. class="deleteImg"
  3146. src="../../assets/deleteworks.png"
  3147. v-if="
  3148. w.userid == userid || tType == 1 || tType == 4
  3149. "
  3150. @click.stop="deleteWorks(w.wid)"
  3151. alt
  3152. />
  3153. </div>
  3154. <div class="worksName">
  3155. <div>{{ w.sName }}</div>
  3156. </div>
  3157. </div>
  3158. </div>
  3159. </div>
  3160. <div
  3161. v-if="
  3162. tType &&
  3163. ((tType == 2 && sIsOpen == true) ||
  3164. tType == 1 ||
  3165. tType == 4) &&
  3166. tool.tool.indexOf(16) != -1
  3167. "
  3168. class="worksBox"
  3169. >
  3170. <div
  3171. class="zuoyeYulan"
  3172. style="display: flex;justify-content: space-between;align-items: center;"
  3173. v-if="
  3174. (worksStudent.length &&
  3175. worksStudent[toolIndex].length > 0) ||
  3176. (courseGroup.group && courseGroup.group.length)
  3177. "
  3178. >
  3179. <div class="worksTop">
  3180. <div>作业预览</div>
  3181. <div
  3182. class="corOpen"
  3183. @click="contract(toolIndex)"
  3184. v-if="
  3185. isCloseList[toolIndex].isCloseBoolean &&
  3186. isCloseList[toolIndex].isClose == 0
  3187. "
  3188. >
  3189. 折叠
  3190. </div>
  3191. <div
  3192. class="corOpen"
  3193. @click="contract(toolIndex)"
  3194. v-if="isCloseList[toolIndex].isClose == 1"
  3195. >
  3196. 展开
  3197. </div>
  3198. </div>
  3199. <div
  3200. style="display: flex;"
  3201. v-if="
  3202. (courseDetail.userid == userid ||
  3203. (courseDetail.course_teacher &&
  3204. courseDetail.course_teacher.indexOf(userid) !=
  3205. -1)) &&
  3206. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  3207. taskCount
  3208. ].eList &&
  3209. chapInfoList[courseType].chapterInfo[0].taskJson[
  3210. taskCount
  3211. ].eList.length) ||
  3212. (tool.eList && tool.eList.length)) &&
  3213. courseDetail.state == 6
  3214. "
  3215. >
  3216. <!-- <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"> -->
  3217. <div
  3218. style="margin-right:10px"
  3219. class="ScoreBtn"
  3220. @click="
  3221. resetLoopEva(
  3222. worksStudent[toolIndex],
  3223. chapInfoList[courseType].chapterInfo[0].taskJson[
  3224. taskCount
  3225. ].eList,
  3226. courseType,
  3227. taskCount,
  3228. toolIndex,
  3229. tool.toolDetail,
  3230. worksStudent
  3231. )
  3232. "
  3233. >
  3234. 一键重置
  3235. </div>
  3236. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  3237. <img
  3238. src="../../assets/icon/newIcons/rootImg.png"
  3239. alt=""
  3240. />
  3241. AI评分
  3242. </div>
  3243. <div
  3244. class="ScoreBtn"
  3245. v-else-if="!loopLoading[toolIndex].loading"
  3246. @click="
  3247. loopEva(
  3248. worksStudent[toolIndex],
  3249. chapInfoList[courseType].chapterInfo[0].taskJson[
  3250. taskCount
  3251. ].eList,
  3252. courseType,
  3253. taskCount,
  3254. toolIndex,
  3255. tool.toolDetail,
  3256. chapInfoList[courseType].chapterInfo[0].taskJson[
  3257. taskCount
  3258. ].taskDetail,
  3259. tool
  3260. )
  3261. "
  3262. >
  3263. <img
  3264. src="../../assets/icon/newIcons/rootImg.png"
  3265. alt=""
  3266. />
  3267. AI评分
  3268. </div>
  3269. <div class="ScoreBtn" v-else>
  3270. <img
  3271. src="../../assets/icon/newIcons/rootImg.png"
  3272. alt=""
  3273. />
  3274. 正在评分
  3275. </div>
  3276. </div>
  3277. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  3278. </div>
  3279. <div
  3280. class="group_workBox"
  3281. v-for="(g, gindex) in courseGroup.group"
  3282. :key="gindex"
  3283. >
  3284. <div class="group_box">
  3285. <div class="group_title">
  3286. <el-tooltip
  3287. class="item"
  3288. effect="light"
  3289. :content="g.name"
  3290. placement="top"
  3291. >
  3292. <div class="group_name">{{ g.name }}</div>
  3293. </el-tooltip>
  3294. </div>
  3295. <div
  3296. class="group_work"
  3297. v-if="
  3298. g.works &&
  3299. g.works.length &&
  3300. g.works[toolIndex].length
  3301. "
  3302. >
  3303. <div
  3304. class="works"
  3305. style="
  3306. width: 200px;
  3307. height: 140px;
  3308. margin: 10px 10px 10px 0;
  3309. border-radius: 15px;
  3310. box-shadow: 0 0 6px 1px #dfdada;
  3311. "
  3312. v-for="(w, wIndex) in g.works[toolIndex]"
  3313. :key="wIndex"
  3314. :class="w.type == 1 ? 'isTypeOne' : ''"
  3315. >
  3316. <div class="workImg" v-if="w.type == 0">
  3317. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3318. <img
  3319. :src="w.works"
  3320. @click="previewImg(w.works, w)"
  3321. alt
  3322. />
  3323. <div
  3324. class="answerScore"
  3325. v-if="w.score"
  3326. @click.stop="openScore(w)"
  3327. :class="{
  3328. rightW:
  3329. w.userid == userid ||
  3330. tType == 1 ||
  3331. tType == 4 ||
  3332. w.ateacher == userid
  3333. }"
  3334. >
  3335. {{ JSON.parse(w.score).wScore }}分
  3336. </div>
  3337. <div
  3338. class="answerScore"
  3339. @click.stop="openScore(w)"
  3340. v-else-if="courseDetail.userid == userid"
  3341. :class="{
  3342. rightW:
  3343. w.userid == userid ||
  3344. tType == 1 ||
  3345. tType == 4 ||
  3346. w.ateacher == userid
  3347. }"
  3348. >
  3349. 评分
  3350. </div>
  3351. <img
  3352. class="deleteImg"
  3353. src="../../assets/deleteworks.png"
  3354. v-if="
  3355. w.userid == userid || tType == 1 || tType == 4
  3356. "
  3357. @click.stop="deleteWorks(w.wid)"
  3358. alt
  3359. />
  3360. </div>
  3361. <div class="workImg" v-if="w.type == 1">
  3362. <img :src="word" @click="openFile(w.works)" alt />
  3363. <!-- @click="openFile(w.works)" -->
  3364. <div
  3365. class="answerScore"
  3366. v-if="w.score"
  3367. @click.stop="openScore(w)"
  3368. :class="{
  3369. rightW:
  3370. w.userid == userid ||
  3371. tType == 1 ||
  3372. tType == 4 ||
  3373. w.ateacher == userid
  3374. }"
  3375. >
  3376. {{ JSON.parse(w.score).wScore }}分
  3377. </div>
  3378. <div
  3379. class="answerScore"
  3380. @click.stop="openScore(w)"
  3381. v-else-if="courseDetail.userid == userid"
  3382. :class="{
  3383. rightW:
  3384. w.userid == userid ||
  3385. tType == 1 ||
  3386. tType == 4 ||
  3387. w.ateacher == userid
  3388. }"
  3389. >
  3390. 评分
  3391. </div>
  3392. <img
  3393. class="deleteImg"
  3394. src="../../assets/deleteworks.png"
  3395. v-if="
  3396. w.userid == userid || tType == 1 || tType == 4
  3397. "
  3398. @click.stop="deleteWorks(w.wid)"
  3399. alt
  3400. />
  3401. </div>
  3402. <div class="workImg" v-if="w.type == 3">
  3403. <img
  3404. style="cursor: pointer"
  3405. :src="video"
  3406. @click="openVideo(w)"
  3407. alt
  3408. />
  3409. <!-- @click="openVideo(w.works)" -->
  3410. <div
  3411. class="answerScore"
  3412. v-if="w.score"
  3413. @click.stop="openScore(w)"
  3414. :class="{
  3415. rightW:
  3416. w.userid == userid ||
  3417. tType == 1 ||
  3418. tType == 4 ||
  3419. w.ateacher == userid
  3420. }"
  3421. >
  3422. {{ JSON.parse(w.score).wScore }}分
  3423. </div>
  3424. <div
  3425. class="answerScore"
  3426. @click.stop="openScore(w)"
  3427. v-else-if="courseDetail.userid == userid"
  3428. :class="{
  3429. rightW:
  3430. w.userid == userid ||
  3431. tType == 1 ||
  3432. tType == 4 ||
  3433. w.ateacher == userid
  3434. }"
  3435. >
  3436. 评分
  3437. </div>
  3438. <img
  3439. class="deleteImg"
  3440. src="../../assets/deleteworks.png"
  3441. v-if="
  3442. w.userid == userid || tType == 1 || tType == 4
  3443. "
  3444. @click.stop="deleteWorks(w.wid)"
  3445. alt
  3446. />
  3447. </div>
  3448. <div class="workImg" v-if="w.type == 12">
  3449. <img
  3450. style="cursor: pointer"
  3451. :src="word2"
  3452. @click="downloadFile(w.works,w.userid)"
  3453. alt
  3454. />
  3455. <!-- @click="openVideo(w.works)" -->
  3456. <div
  3457. class="answerScore"
  3458. v-if="w.score"
  3459. @click.stop="openScore(w)"
  3460. :class="{
  3461. rightW:
  3462. w.userid == userid ||
  3463. tType == 1 ||
  3464. tType == 4 ||
  3465. w.ateacher == userid
  3466. }"
  3467. >
  3468. {{ JSON.parse(w.score).wScore }}分
  3469. </div>
  3470. <div
  3471. class="answerScore"
  3472. @click.stop="openScore(w)"
  3473. v-else-if="courseDetail.userid == userid"
  3474. :class="{
  3475. rightW:
  3476. w.userid == userid ||
  3477. tType == 1 ||
  3478. tType == 4 ||
  3479. w.ateacher == userid
  3480. }"
  3481. >
  3482. 评分
  3483. </div>
  3484. <img
  3485. class="deleteImg"
  3486. src="../../assets/deleteworks.png"
  3487. v-if="
  3488. w.userid == userid || tType == 1 || tType == 4
  3489. "
  3490. @click.stop="deleteWorks(w.wid)"
  3491. alt
  3492. />
  3493. </div>
  3494. <div class="comment" style="min-width: 200px">
  3495. <div class="worksName">
  3496. <div>{{ w.sName }}</div>
  3497. </div>
  3498. <div class="commentList">
  3499. <div class="commentList">
  3500. <div
  3501. class="commentImg"
  3502. @click="
  3503. isLikes(
  3504. w.wid,
  3505. userid,
  3506. 1,
  3507. null,
  3508. w.isLikes,
  3509. w.sName
  3510. )
  3511. "
  3512. >
  3513. <img
  3514. :src="w.isLikes == true ? likes : noLikes"
  3515. alt=""
  3516. />
  3517. </div>
  3518. <div>{{ w.likesCount }}</div>
  3519. </div>
  3520. <div
  3521. class="commentList"
  3522. style="margin-right: 15px"
  3523. >
  3524. <div
  3525. class="commentImg"
  3526. @click="
  3527. commentOther(
  3528. w,
  3529. toolIndex,
  3530. wIndex,
  3531. null,
  3532. g.id
  3533. )
  3534. "
  3535. >
  3536. <img
  3537. src="../../assets/icon/comment/comment.png"
  3538. alt=""
  3539. />
  3540. </div>
  3541. <div>{{ w.commentCount }}</div>
  3542. </div>
  3543. </div>
  3544. </div>
  3545. </div>
  3546. </div>
  3547. <div class="group_work" v-else>暂无提交作业</div>
  3548. </div>
  3549. </div>
  3550. <div
  3551. :id="'tool-' + toolIndex"
  3552. :style="{
  3553. height:
  3554. isCloseList[toolIndex].isClose == 1
  3555. ? retrnToolHeight('tool-' + toolIndex)
  3556. : 'auto',
  3557. overflow:
  3558. isCloseList[toolIndex].isClose == 1
  3559. ? 'hidden'
  3560. : 'unset'
  3561. }"
  3562. class="worksDetailBox"
  3563. v-if="
  3564. worksStudent.length &&
  3565. worksStudent[toolIndex].length > 0
  3566. "
  3567. >
  3568. <div
  3569. class="works"
  3570. style="
  3571. width: 200px;
  3572. height: 140px;
  3573. margin: 10px 10px 10px 0;
  3574. border-radius: 15px;
  3575. box-shadow: 0 0 6px 1px #dfdada;
  3576. "
  3577. v-for="(w, wIndex) in worksStudent[toolIndex]"
  3578. :key="wIndex"
  3579. :class="w.type == 1 ? 'isTypeOne' : ''"
  3580. >
  3581. <div class="workImg" v-if="w.type == 0">
  3582. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  3583. <img
  3584. :src="w.works"
  3585. @click="previewImg(w.works, w)"
  3586. alt
  3587. />
  3588. <div
  3589. class="answerScore"
  3590. v-if="w.score"
  3591. @click.stop="openScore(w)"
  3592. :class="{
  3593. rightW:
  3594. w.userid == userid ||
  3595. tType == 1 ||
  3596. tType == 4 ||
  3597. w.ateacher == userid
  3598. }"
  3599. >
  3600. {{ JSON.parse(w.score).wScore }}分
  3601. </div>
  3602. <div
  3603. class="answerScore"
  3604. @click.stop="openScore(w)"
  3605. v-else-if="
  3606. courseDetail.userid == userid &&
  3607. courseDetail.state != 6 &&
  3608. chapInfoList[courseType].chapterInfo[0]
  3609. .taskJson[taskCount].eList &&
  3610. chapInfoList[courseType].chapterInfo[0]
  3611. .taskJson[taskCount].eList.length
  3612. "
  3613. :class="{
  3614. rightW:
  3615. w.userid == userid ||
  3616. tType == 1 ||
  3617. tType == 4 ||
  3618. w.ateacher == userid
  3619. }"
  3620. >
  3621. 评分
  3622. </div>
  3623. <!-- <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"> -->
  3624. <div
  3625. v-else-if="
  3626. (courseDetail.userid == userid ||
  3627. (courseDetail.course_teacher &&
  3628. courseDetail.course_teacher.indexOf(userid) !=
  3629. -1) ||
  3630. (w.userid == userid && sIsOpen)) &&
  3631. courseDetail.state == 6 &&
  3632. ((chapInfoList[courseType].chapterInfo[0]
  3633. .taskJson[taskCount].eList &&
  3634. chapInfoList[courseType].chapterInfo[0]
  3635. .taskJson[taskCount].eList.length) ||
  3636. (tool.eList && tool.eList.length))
  3637. "
  3638. >
  3639. <el-popover
  3640. placement="top"
  3641. width="318"
  3642. :disabled="AIloading[toolIndex][wIndex].loading"
  3643. trigger="hover"
  3644. >
  3645. <markScore
  3646. :loading="AIloading[toolIndex][wIndex].loading"
  3647. :markScoreVisible="markScoreVisible"
  3648. :ref="`markSco${toolIndex}${wIndex}`"
  3649. @updateLoading="updateLoading"
  3650. @updateDocSco="updateDocSco"
  3651. @refreshOther="refreshOther"
  3652. @markScoreDig="markScoreDig"
  3653. :tool="tool"
  3654. :wIndex="wIndex"
  3655. :scoCon="w"
  3656. :toolIndex="toolIndex"
  3657. :key="refreshKey"
  3658. :stage="courseType"
  3659. :task="taskCount"
  3660. :scoTit="
  3661. chapInfoList[courseType].chapterInfo[0]
  3662. .taskJson[taskCount].eList
  3663. "
  3664. >
  3665. </markScore>
  3666. <div
  3667. class="answerScore"
  3668. @click="
  3669. markScoreDig2(
  3670. w.sName,
  3671. worksStudent,
  3672. w.userid,
  3673. toolIndex,
  3674. chapInfoList[courseType].chapterInfo[0]
  3675. .taskJson[taskCount].eList,
  3676. AIloading[toolIndex][wIndex].loading,
  3677. tool
  3678. )
  3679. "
  3680. slot="reference"
  3681. :class="{
  3682. rightW:
  3683. w.userid == userid ||
  3684. tType == 1 ||
  3685. tType == 4 ||
  3686. w.ateacher == userid
  3687. }"
  3688. >
  3689. <span v-if="AIloading[toolIndex][wIndex].sco">
  3690. {{
  3691. AIloading[toolIndex][wIndex].loading
  3692. ? "评分中"
  3693. : AIloading[toolIndex][wIndex].sco + "分"
  3694. }}
  3695. </span>
  3696. <span v-else>
  3697. {{
  3698. AIloading[toolIndex][wIndex].loading
  3699. ? "评分中"
  3700. : "评分"
  3701. }}
  3702. </span>
  3703. </div>
  3704. </el-popover>
  3705. </div>
  3706. <img
  3707. class="deleteImg"
  3708. src="../../assets/deleteworks.png"
  3709. v-if="
  3710. w.userid == userid || tType == 1 || tType == 4
  3711. "
  3712. @click.stop="deleteWorks(w.wid)"
  3713. alt
  3714. />
  3715. </div>
  3716. <div class="workImg" v-if="w.type == 1">
  3717. <img :src="word" @click="openFile(w.works)" alt />
  3718. <!-- @click="openFile(w.works)" -->
  3719. <div
  3720. class="answerScore"
  3721. v-if="w.score"
  3722. @click.stop="openScore(w)"
  3723. :class="{
  3724. rightW:
  3725. w.userid == userid ||
  3726. tType == 1 ||
  3727. tType == 4 ||
  3728. w.ateacher == userid
  3729. }"
  3730. >
  3731. {{ JSON.parse(w.score).wScore }}分
  3732. </div>
  3733. <div
  3734. class="answerScore"
  3735. @click.stop="openScore(w)"
  3736. v-else-if="
  3737. courseDetail.userid == userid &&
  3738. courseDetail.state != 6 &&
  3739. chapInfoList[courseType].chapterInfo[0]
  3740. .taskJson[taskCount].eList &&
  3741. chapInfoList[courseType].chapterInfo[0]
  3742. .taskJson[taskCount].eList.length
  3743. "
  3744. :class="{
  3745. rightW:
  3746. w.userid == userid ||
  3747. tType == 1 ||
  3748. tType == 4 ||
  3749. w.ateacher == userid
  3750. }"
  3751. >
  3752. 评分
  3753. </div>
  3754. <!-- <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"> -->
  3755. <div
  3756. v-else-if="
  3757. (courseDetail.userid == userid ||
  3758. (courseDetail.course_teacher &&
  3759. courseDetail.course_teacher.indexOf(userid) !=
  3760. -1) ||
  3761. (w.userid == userid && sIsOpen)) &&
  3762. courseDetail.state == 6 &&
  3763. ((chapInfoList[courseType].chapterInfo[0]
  3764. .taskJson[taskCount].eList &&
  3765. chapInfoList[courseType].chapterInfo[0]
  3766. .taskJson[taskCount].eList.length) ||
  3767. (tool.eList && tool.eList.length))
  3768. "
  3769. >
  3770. <el-popover
  3771. placement="top"
  3772. width="318"
  3773. :disabled="AIloading[toolIndex][wIndex].loading"
  3774. trigger="hover"
  3775. >
  3776. <markScore
  3777. :loading="AIloading[toolIndex][wIndex].loading"
  3778. :markScoreVisible="markScoreVisible"
  3779. :ref="`markSco${toolIndex}${wIndex}`"
  3780. @updateLoading="updateLoading"
  3781. @updateDocSco="updateDocSco"
  3782. @refreshOther="refreshOther"
  3783. @markScoreDig="markScoreDig"
  3784. :tool="tool"
  3785. :wIndex="wIndex"
  3786. :scoCon="w"
  3787. :toolIndex="toolIndex"
  3788. :key="refreshKey"
  3789. :stage="courseType"
  3790. :task="taskCount"
  3791. :scoTit="
  3792. chapInfoList[courseType].chapterInfo[0]
  3793. .taskJson[taskCount].eList
  3794. "
  3795. >
  3796. </markScore>
  3797. <div
  3798. class="answerScore"
  3799. @click="
  3800. markScoreDig2(
  3801. w.sName,
  3802. worksStudent,
  3803. w.userid,
  3804. toolIndex,
  3805. chapInfoList[courseType].chapterInfo[0]
  3806. .taskJson[taskCount].eList,
  3807. AIloading[toolIndex][wIndex].loading,
  3808. tool
  3809. )
  3810. "
  3811. slot="reference"
  3812. :class="{
  3813. rightW:
  3814. w.userid == userid ||
  3815. tType == 1 ||
  3816. tType == 4 ||
  3817. w.ateacher == userid
  3818. }"
  3819. >
  3820. <span v-if="AIloading[toolIndex][wIndex].sco">
  3821. {{
  3822. AIloading[toolIndex][wIndex].loading
  3823. ? "评分中"
  3824. : AIloading[toolIndex][wIndex].sco + "分"
  3825. }}
  3826. </span>
  3827. <span v-else>
  3828. {{
  3829. AIloading[toolIndex][wIndex].loading
  3830. ? "评分中"
  3831. : "评分"
  3832. }}
  3833. </span>
  3834. </div>
  3835. </el-popover>
  3836. </div>
  3837. <img
  3838. class="deleteImg"
  3839. src="../../assets/deleteworks.png"
  3840. v-if="
  3841. w.userid == userid || tType == 1 || tType == 4
  3842. "
  3843. @click.stop="deleteWorks(w.wid)"
  3844. alt
  3845. />
  3846. </div>
  3847. <div class="workImg" v-if="w.type == 3">
  3848. <img
  3849. style="cursor: pointer"
  3850. :src="video"
  3851. @click="openVideo(w)"
  3852. alt
  3853. />
  3854. <!-- @click="openVideo(w.works)" -->
  3855. <div
  3856. class="answerScore"
  3857. v-if="w.score"
  3858. @click.stop="openScore(w)"
  3859. :class="{
  3860. rightW:
  3861. w.userid == userid ||
  3862. tType == 1 ||
  3863. tType == 4 ||
  3864. w.ateacher == userid
  3865. }"
  3866. >
  3867. {{ JSON.parse(w.score).wScore }}分
  3868. </div>
  3869. <div
  3870. class="answerScore"
  3871. @click.stop="openScore(w)"
  3872. v-else-if="
  3873. courseDetail.userid == userid &&
  3874. courseDetail.state != 6 &&
  3875. chapInfoList[courseType].chapterInfo[0]
  3876. .taskJson[taskCount].eList &&
  3877. chapInfoList[courseType].chapterInfo[0]
  3878. .taskJson[taskCount].eList.length
  3879. "
  3880. :class="{
  3881. rightW:
  3882. w.userid == userid ||
  3883. tType == 1 ||
  3884. tType == 4 ||
  3885. w.ateacher == userid
  3886. }"
  3887. >
  3888. 评分
  3889. </div>
  3890. <!-- <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"> -->
  3891. <div
  3892. v-else-if="
  3893. (courseDetail.userid == userid ||
  3894. (courseDetail.course_teacher &&
  3895. courseDetail.course_teacher.indexOf(userid) !=
  3896. -1) ||
  3897. (w.userid == userid && sIsOpen)) &&
  3898. courseDetail.state == 6 &&
  3899. ((chapInfoList[courseType].chapterInfo[0]
  3900. .taskJson[taskCount].eList &&
  3901. chapInfoList[courseType].chapterInfo[0]
  3902. .taskJson[taskCount].eList.length) ||
  3903. (tool.eList && tool.eList.length))
  3904. "
  3905. >
  3906. <el-popover
  3907. placement="top"
  3908. width="318"
  3909. :disabled="AIloading[toolIndex][wIndex].loading"
  3910. trigger="hover"
  3911. >
  3912. <markScore
  3913. :loading="AIloading[toolIndex][wIndex].loading"
  3914. :markScoreVisible="markScoreVisible"
  3915. :ref="`markSco${toolIndex}${wIndex}`"
  3916. @updateLoading="updateLoading"
  3917. @updateDocSco="updateDocSco"
  3918. @refreshOther="refreshOther"
  3919. @markScoreDig="markScoreDig"
  3920. :tool="tool"
  3921. :wIndex="wIndex"
  3922. :scoCon="w"
  3923. :toolIndex="toolIndex"
  3924. :key="refreshKey"
  3925. :stage="courseType"
  3926. :task="taskCount"
  3927. :scoTit="
  3928. chapInfoList[courseType].chapterInfo[0]
  3929. .taskJson[taskCount].eList
  3930. "
  3931. >
  3932. </markScore>
  3933. <div
  3934. class="answerScore"
  3935. @click="
  3936. markScoreDig2(
  3937. w.sName,
  3938. worksStudent,
  3939. w.userid,
  3940. toolIndex,
  3941. chapInfoList[courseType].chapterInfo[0]
  3942. .taskJson[taskCount].eList,
  3943. AIloading[toolIndex][wIndex].loading,
  3944. tool
  3945. )
  3946. "
  3947. slot="reference"
  3948. :class="{
  3949. rightW:
  3950. w.userid == userid ||
  3951. tType == 1 ||
  3952. tType == 4 ||
  3953. w.ateacher == userid
  3954. }"
  3955. >
  3956. <span v-if="AIloading[toolIndex][wIndex].sco">
  3957. {{
  3958. AIloading[toolIndex][wIndex].loading
  3959. ? "评分中"
  3960. : AIloading[toolIndex][wIndex].sco + "分"
  3961. }}
  3962. </span>
  3963. <span v-else>
  3964. {{
  3965. AIloading[toolIndex][wIndex].loading
  3966. ? "评分中"
  3967. : "评分"
  3968. }}
  3969. </span>
  3970. </div>
  3971. </el-popover>
  3972. </div>
  3973. <img
  3974. class="deleteImg"
  3975. src="../../assets/deleteworks.png"
  3976. v-if="
  3977. w.userid == userid || tType == 1 || tType == 4
  3978. "
  3979. @click.stop="deleteWorks(w.wid)"
  3980. alt
  3981. />
  3982. </div>
  3983. <div class="workImg" v-if="w.type == 12">
  3984. <img
  3985. style="cursor: pointer"
  3986. :src="word2"
  3987. @click="downloadFile(w.works,w.userid)"
  3988. alt
  3989. />
  3990. <!-- @click="openVideo(w.works)" -->
  3991. <div
  3992. class="answerScore"
  3993. v-if="w.score"
  3994. @click.stop="openScore(w)"
  3995. :class="{
  3996. rightW:
  3997. w.userid == userid ||
  3998. tType == 1 ||
  3999. tType == 4 ||
  4000. w.ateacher == userid
  4001. }"
  4002. >
  4003. {{ JSON.parse(w.score).wScore }}分
  4004. </div>
  4005. <div
  4006. class="answerScore"
  4007. @click.stop="openScore(w)"
  4008. v-else-if="
  4009. courseDetail.userid == userid &&
  4010. courseDetail.state != 6 &&
  4011. chapInfoList[courseType].chapterInfo[0]
  4012. .taskJson[taskCount].eList &&
  4013. chapInfoList[courseType].chapterInfo[0]
  4014. .taskJson[taskCount].eList.length
  4015. "
  4016. :class="{
  4017. rightW:
  4018. w.userid == userid ||
  4019. tType == 1 ||
  4020. tType == 4 ||
  4021. w.ateacher == userid
  4022. }"
  4023. >
  4024. 评分
  4025. </div>
  4026. <!-- <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"> -->
  4027. <div
  4028. v-else-if="
  4029. (courseDetail.userid == userid ||
  4030. (courseDetail.course_teacher &&
  4031. courseDetail.course_teacher.indexOf(userid) !=
  4032. -1) ||
  4033. (w.userid == userid && sIsOpen)) &&
  4034. courseDetail.state == 6 &&
  4035. ((chapInfoList[courseType].chapterInfo[0]
  4036. .taskJson[taskCount].eList &&
  4037. chapInfoList[courseType].chapterInfo[0]
  4038. .taskJson[taskCount].eList.length) ||
  4039. (tool.eList && tool.eList.length))
  4040. "
  4041. >
  4042. <el-popover
  4043. placement="top"
  4044. width="318"
  4045. :disabled="AIloading[toolIndex][wIndex].loading"
  4046. trigger="hover"
  4047. >
  4048. <markScore
  4049. :loading="AIloading[toolIndex][wIndex].loading"
  4050. :markScoreVisible="markScoreVisible"
  4051. :ref="`markSco${toolIndex}${wIndex}`"
  4052. @updateLoading="updateLoading"
  4053. @updateDocSco="updateDocSco"
  4054. @refreshOther="refreshOther"
  4055. @markScoreDig="markScoreDig"
  4056. :tool="tool"
  4057. :wIndex="wIndex"
  4058. :scoCon="w"
  4059. :toolIndex="toolIndex"
  4060. :key="refreshKey"
  4061. :stage="courseType"
  4062. :task="taskCount"
  4063. :scoTit="
  4064. chapInfoList[courseType].chapterInfo[0]
  4065. .taskJson[taskCount].eList
  4066. "
  4067. >
  4068. </markScore>
  4069. <div
  4070. class="answerScore"
  4071. @click="
  4072. markScoreDig2(
  4073. w.sName,
  4074. worksStudent,
  4075. w.userid,
  4076. toolIndex,
  4077. chapInfoList[courseType].chapterInfo[0]
  4078. .taskJson[taskCount].eList,
  4079. AIloading[toolIndex][wIndex].loading,
  4080. tool
  4081. )
  4082. "
  4083. slot="reference"
  4084. :class="{
  4085. rightW:
  4086. w.userid == userid ||
  4087. tType == 1 ||
  4088. tType == 4 ||
  4089. w.ateacher == userid
  4090. }"
  4091. >
  4092. <span v-if="AIloading[toolIndex][wIndex].sco">
  4093. {{
  4094. AIloading[toolIndex][wIndex].loading
  4095. ? "评分中"
  4096. : AIloading[toolIndex][wIndex].sco + "分"
  4097. }}
  4098. </span>
  4099. <span v-else>
  4100. {{
  4101. AIloading[toolIndex][wIndex].loading
  4102. ? "评分中"
  4103. : "评分"
  4104. }}
  4105. </span>
  4106. </div>
  4107. </el-popover>
  4108. </div>
  4109. <img
  4110. class="deleteImg"
  4111. src="../../assets/deleteworks.png"
  4112. v-if="
  4113. w.userid == userid || tType == 1 || tType == 4
  4114. "
  4115. @click.stop="deleteWorks(w.wid)"
  4116. alt
  4117. />
  4118. </div>
  4119. <div class="comment" style="min-width: 200px">
  4120. <div class="worksName">
  4121. <div>{{ w.sName }}</div>
  4122. </div>
  4123. <div class="commentList">
  4124. <div class="commentList">
  4125. <div
  4126. class="commentImg"
  4127. @click="
  4128. isLikes(
  4129. w.wid,
  4130. userid,
  4131. 1,
  4132. null,
  4133. w.isLikes,
  4134. w.sName
  4135. )
  4136. "
  4137. >
  4138. <img
  4139. :src="w.isLikes == true ? likes : noLikes"
  4140. alt=""
  4141. />
  4142. </div>
  4143. <div>{{ w.likesCount }}</div>
  4144. </div>
  4145. <div class="commentList" style="margin-right: 15px">
  4146. <div
  4147. class="commentImg"
  4148. @click="commentOther(w, toolIndex, wIndex)"
  4149. >
  4150. <img
  4151. src="../../assets/icon/comment/comment.png"
  4152. alt=""
  4153. />
  4154. </div>
  4155. <div>{{ w.commentCount }}</div>
  4156. </div>
  4157. </div>
  4158. </div>
  4159. </div>
  4160. </div>
  4161. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4162. 未提交
  4163. </div>
  4164. <div
  4165. class="noWorksS"
  4166. v-if="noWorksS && noWorksS[toolIndex].length"
  4167. >
  4168. <div
  4169. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4170. :key="sIndex"
  4171. class="noWorksName"
  4172. @click="teacherWorkSubmit(16, toolIndex, taskCount, s)"
  4173. >
  4174. <el-tooltip
  4175. effect="dark"
  4176. :content="s.student"
  4177. placement="top"
  4178. >
  4179. <span>{{ s.student }}</span>
  4180. </el-tooltip>
  4181. </div>
  4182. </div>
  4183. </div>
  4184. <div
  4185. v-if="
  4186. tType &&
  4187. ((tType == 2 && sIsOpen == true) ||
  4188. tType == 1 ||
  4189. tType == 4) &&
  4190. tool.tool.indexOf(70) != -1
  4191. "
  4192. class="worksBox"
  4193. >
  4194. <div
  4195. class="zuoyeYulan"
  4196. v-if="
  4197. worksStudent.length &&
  4198. worksStudent[toolIndex].length > 0
  4199. "
  4200. >
  4201. <div class="worksTop">
  4202. <div>作业预览</div>
  4203. <div
  4204. class="corOpen"
  4205. @click="contract(toolIndex)"
  4206. v-if="
  4207. isCloseList[toolIndex].isCloseBoolean &&
  4208. isCloseList[toolIndex].isClose == 0
  4209. "
  4210. >
  4211. 折叠
  4212. </div>
  4213. <div
  4214. class="corOpen"
  4215. @click="contract(toolIndex)"
  4216. v-if="isCloseList[toolIndex].isClose == 1"
  4217. >
  4218. 展开
  4219. </div>
  4220. </div>
  4221. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4222. </div>
  4223. <div
  4224. :id="'tool-' + toolIndex"
  4225. :style="{
  4226. height:
  4227. isCloseList[toolIndex].isClose == 1
  4228. ? retrnToolHeight('tool-' + toolIndex)
  4229. : 'auto',
  4230. overflow:
  4231. isCloseList[toolIndex].isClose == 1
  4232. ? 'hidden'
  4233. : 'unset'
  4234. }"
  4235. class="worksDetailBox"
  4236. v-if="
  4237. worksStudent.length &&
  4238. worksStudent[toolIndex].length > 0
  4239. "
  4240. >
  4241. <div
  4242. class="works"
  4243. style="
  4244. width: 200px;
  4245. height: 140px;
  4246. margin: 10px 10px 10px 0;
  4247. border-radius: 15px;
  4248. box-shadow: 0 0 6px 1px #dfdada;
  4249. "
  4250. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4251. :key="wIndex"
  4252. :class="w.type == 1 ? 'isTypeOne' : ''"
  4253. >
  4254. <div
  4255. class="workImg"
  4256. @click.stop="openScore(w, toolIndex)"
  4257. >
  4258. <img :src="word" alt />
  4259. <img
  4260. class="deleteImg"
  4261. src="../../assets/deleteworks.png"
  4262. v-if="
  4263. w.userid == userid || tType == 1 || tType == 4
  4264. "
  4265. @click.stop="deleteWorks(w.wid)"
  4266. alt
  4267. />
  4268. </div>
  4269. <div class="comment" style="min-width: 200px">
  4270. <div class="worksName">
  4271. <div>{{ w.sName }}</div>
  4272. </div>
  4273. </div>
  4274. </div>
  4275. </div>
  4276. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4277. 未提交
  4278. </div>
  4279. <div
  4280. class="noWorksS"
  4281. v-if="noWorksS && noWorksS[toolIndex].length"
  4282. >
  4283. <div
  4284. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4285. :key="sIndex"
  4286. class="noWorksName"
  4287. >
  4288. <el-tooltip
  4289. effect="dark"
  4290. :content="s.student"
  4291. placement="top"
  4292. >
  4293. <span>{{ s.student }}</span>
  4294. </el-tooltip>
  4295. </div>
  4296. </div>
  4297. </div>
  4298. <div
  4299. v-if="
  4300. tType &&
  4301. tType == 2 &&
  4302. !sIsOpen &&
  4303. tool.tool.indexOf(70) != -1
  4304. "
  4305. class="worksBox"
  4306. >
  4307. <div
  4308. class="zuoyeYulan"
  4309. v-if="workStudent[toolIndex].length > 0"
  4310. >
  4311. <span class="worksTitle">作业预览</span>
  4312. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  4313. </div>
  4314. <div
  4315. class="worksDetailBox"
  4316. v-if="workStudent[toolIndex].length > 0"
  4317. >
  4318. <div
  4319. class="works"
  4320. style="
  4321. width: 200px;
  4322. height: 140px;
  4323. margin: 10px 10px 10px 0;
  4324. box-shadow: 0 0 6px 1px #dfdada;
  4325. "
  4326. v-for="(w, wIndex) in workStudent[toolIndex]"
  4327. :key="wIndex"
  4328. >
  4329. <div
  4330. class="workImg"
  4331. @click.stop="openScore(w, toolIndex)"
  4332. >
  4333. <img :src="word" alt />
  4334. <img
  4335. class="deleteImg"
  4336. src="../../assets/deleteworks.png"
  4337. v-if="
  4338. w.userid == userid || tType == 1 || tType == 4
  4339. "
  4340. @click.stop="deleteWorks(w.wid)"
  4341. alt
  4342. />
  4343. </div>
  4344. <div class="worksName">
  4345. <div>{{ w.sName }}</div>
  4346. </div>
  4347. </div>
  4348. </div>
  4349. </div>
  4350. <div
  4351. v-if="
  4352. tType &&
  4353. ((tType == 2 && sIsOpen == true) ||
  4354. tType == 1 ||
  4355. tType == 4) &&
  4356. tool.tool.indexOf(32) != -1
  4357. "
  4358. class="worksBox"
  4359. >
  4360. <div
  4361. class="zuoyeYulan"
  4362. v-if="
  4363. worksStudent.length &&
  4364. worksStudent[toolIndex].length > 0
  4365. "
  4366. >
  4367. <div class="worksTop">
  4368. <div>作业预览</div>
  4369. <div
  4370. class="corOpen"
  4371. @click="contract(toolIndex)"
  4372. v-if="
  4373. isCloseList[toolIndex].isCloseBoolean &&
  4374. isCloseList[toolIndex].isClose == 0
  4375. "
  4376. >
  4377. 折叠
  4378. </div>
  4379. <div
  4380. class="corOpen"
  4381. @click="contract(toolIndex)"
  4382. v-if="isCloseList[toolIndex].isClose == 1"
  4383. >
  4384. 展开
  4385. </div>
  4386. </div>
  4387. </div>
  4388. <div
  4389. :id="'tool-' + toolIndex"
  4390. :style="{
  4391. height:
  4392. isCloseList[toolIndex].isClose == 1
  4393. ? retrnToolHeight('tool-' + toolIndex)
  4394. : 'auto',
  4395. overflow:
  4396. isCloseList[toolIndex].isClose == 1
  4397. ? 'hidden'
  4398. : 'unset'
  4399. }"
  4400. class="worksDetailBox"
  4401. v-if="
  4402. worksStudent.length &&
  4403. worksStudent[toolIndex].length > 0
  4404. "
  4405. >
  4406. <div
  4407. class="works"
  4408. style="
  4409. width: 200px;
  4410. height: 140px;
  4411. margin: 10px 10px 10px 0;
  4412. border-radius: 15px;
  4413. box-shadow: 0 0 6px 1px #dfdada;
  4414. "
  4415. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4416. :key="wIndex"
  4417. :class="w.type == 1 ? 'isTypeOne' : ''"
  4418. >
  4419. <div class="workImg">
  4420. <img
  4421. :src="word2"
  4422. @click="downloadFile(w.works,w.userid)"
  4423. alt
  4424. />
  4425. <div
  4426. class="answerScore"
  4427. v-if="w.score"
  4428. @click.stop="openScore(w)"
  4429. :class="{
  4430. rightW:
  4431. w.userid == userid ||
  4432. tType == 1 ||
  4433. tType == 4 ||
  4434. w.ateacher == userid
  4435. }"
  4436. >
  4437. {{ JSON.parse(w.score).wScore }}分
  4438. </div>
  4439. <div
  4440. class="answerScore"
  4441. @click.stop="openScore(w)"
  4442. v-else-if="courseDetail.userid == userid"
  4443. :class="{
  4444. rightW:
  4445. w.userid == userid ||
  4446. tType == 1 ||
  4447. tType == 4 ||
  4448. w.ateacher == userid
  4449. }"
  4450. >
  4451. 评分
  4452. </div>
  4453. <img
  4454. class="deleteImg"
  4455. src="../../assets/deleteworks.png"
  4456. v-if="
  4457. w.userid == userid || tType == 1 || tType == 4
  4458. "
  4459. @click.stop="deleteWorks(w.wid)"
  4460. alt
  4461. />
  4462. </div>
  4463. <div class="comment" style="min-width: 200px">
  4464. <div class="worksName">
  4465. <div>{{ w.sName }}</div>
  4466. </div>
  4467. <div class="commentList">
  4468. <div class="commentList">
  4469. <div
  4470. class="commentImg"
  4471. @click="
  4472. isLikes(
  4473. w.wid,
  4474. userid,
  4475. 1,
  4476. null,
  4477. w.isLikes,
  4478. w.sName
  4479. )
  4480. "
  4481. >
  4482. <img
  4483. :src="w.isLikes == true ? likes : noLikes"
  4484. alt=""
  4485. />
  4486. </div>
  4487. <div>{{ w.likesCount }}</div>
  4488. </div>
  4489. <div class="commentList" style="margin-right: 15px">
  4490. <div
  4491. class="commentImg"
  4492. @click="commentOther(w, toolIndex, wIndex)"
  4493. >
  4494. <img
  4495. src="../../assets/icon/comment/comment.png"
  4496. alt=""
  4497. />
  4498. </div>
  4499. <div>{{ w.commentCount }}</div>
  4500. </div>
  4501. </div>
  4502. </div>
  4503. </div>
  4504. </div>
  4505. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4506. 未提交
  4507. </div>
  4508. <div
  4509. class="noWorksS"
  4510. v-if="noWorksS && noWorksS[toolIndex].length"
  4511. >
  4512. <div
  4513. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4514. :key="sIndex"
  4515. class="noWorksName"
  4516. @click="teacherWorkSubmit(32, toolIndex, taskCount, s)"
  4517. >
  4518. <el-tooltip
  4519. effect="dark"
  4520. :content="s.student"
  4521. placement="top"
  4522. >
  4523. <span>{{ s.student }}</span>
  4524. </el-tooltip>
  4525. </div>
  4526. </div>
  4527. </div>
  4528. <div
  4529. v-if="
  4530. tType &&
  4531. ((tType == 2 && sIsOpen == true) ||
  4532. tType == 1 ||
  4533. tType == 4) &&
  4534. tool.tool.indexOf(57) != -1
  4535. "
  4536. class="worksBox"
  4537. >
  4538. <div
  4539. class="zuoyeYulan"
  4540. v-if="
  4541. worksStudent.length &&
  4542. worksStudent[toolIndex].length > 0
  4543. "
  4544. >
  4545. <div class="worksTop">
  4546. <div>作业预览</div>
  4547. <div
  4548. class="corOpen"
  4549. @click="contract(toolIndex)"
  4550. v-if="
  4551. isCloseList[toolIndex].isCloseBoolean &&
  4552. isCloseList[toolIndex].isClose == 0
  4553. "
  4554. >
  4555. 折叠
  4556. </div>
  4557. <div
  4558. class="corOpen"
  4559. @click="contract(toolIndex)"
  4560. v-if="isCloseList[toolIndex].isClose == 1"
  4561. >
  4562. 展开
  4563. </div>
  4564. </div>
  4565. </div>
  4566. <div
  4567. :id="'tool-' + toolIndex"
  4568. :style="{
  4569. height:
  4570. isCloseList[toolIndex].isClose == 1
  4571. ? retrnToolHeight('tool-' + toolIndex)
  4572. : 'auto',
  4573. overflow:
  4574. isCloseList[toolIndex].isClose == 1
  4575. ? 'hidden'
  4576. : 'unset'
  4577. }"
  4578. class="worksDetailBox"
  4579. v-if="
  4580. worksStudent.length &&
  4581. worksStudent[toolIndex].length > 0
  4582. "
  4583. >
  4584. <div
  4585. class="works"
  4586. style="
  4587. width: 200px;
  4588. height: 140px;
  4589. margin: 10px 10px 10px 0;
  4590. border-radius: 15px;
  4591. box-shadow: 0 0 6px 1px #dfdada;
  4592. "
  4593. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4594. :key="wIndex"
  4595. :class="w.type == 1 ? 'isTypeOne' : ''"
  4596. >
  4597. <div class="workImg">
  4598. <img
  4599. :src="word2"
  4600. @click="downloadFile(w.works,w.userid)"
  4601. v-if="w.type == 12"
  4602. alt
  4603. />
  4604. <img
  4605. :src="word2"
  4606. @click="
  4607. openCocoPi(57, toolIndex, w.userid, w.sName)
  4608. "
  4609. v-else-if="w.type == 15"
  4610. alt
  4611. />
  4612. <div
  4613. class="answerScore"
  4614. v-if="w.score"
  4615. @click.stop="openScore(w)"
  4616. :class="{
  4617. rightW:
  4618. w.userid == userid ||
  4619. tType == 1 ||
  4620. tType == 4 ||
  4621. w.ateacher == userid
  4622. }"
  4623. >
  4624. {{ JSON.parse(w.score).wScore }}分
  4625. </div>
  4626. <div
  4627. class="answerScore"
  4628. @click.stop="openScore(w)"
  4629. v-else-if="
  4630. courseDetail.userid == userid &&
  4631. courseDetail.state != 6 &&
  4632. chapInfoList[courseType].chapterInfo[0]
  4633. .taskJson[taskCount].eList &&
  4634. chapInfoList[courseType].chapterInfo[0]
  4635. .taskJson[taskCount].eList.length
  4636. "
  4637. :class="{
  4638. rightW:
  4639. w.userid == userid ||
  4640. tType == 1 ||
  4641. tType == 4 ||
  4642. w.ateacher == userid
  4643. }"
  4644. >
  4645. 评分
  4646. </div>
  4647. <!-- <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"> -->
  4648. <div
  4649. v-else-if="
  4650. (courseDetail.userid == userid ||
  4651. (courseDetail.course_teacher &&
  4652. courseDetail.course_teacher.indexOf(userid) !=
  4653. -1) ||
  4654. (w.userid == userid && sIsOpen)) &&
  4655. courseDetail.state == 6 &&
  4656. ((chapInfoList[courseType].chapterInfo[0]
  4657. .taskJson[taskCount].eList &&
  4658. chapInfoList[courseType].chapterInfo[0]
  4659. .taskJson[taskCount].eList.length) ||
  4660. (tool.eList && tool.eList.length))
  4661. "
  4662. >
  4663. <el-popover
  4664. placement="top"
  4665. width="318"
  4666. :disabled="AIloading[toolIndex][wIndex].loading"
  4667. trigger="hover"
  4668. >
  4669. <markScore
  4670. :loading="AIloading[toolIndex][wIndex].loading"
  4671. :markScoreVisible="markScoreVisible"
  4672. :ref="`markSco${toolIndex}${wIndex}`"
  4673. @updateLoading="updateLoading"
  4674. @updateDocSco="updateDocSco"
  4675. @refreshOther="refreshOther"
  4676. @markScoreDig="markScoreDig"
  4677. :tool="tool"
  4678. :wIndex="wIndex"
  4679. :scoCon="w"
  4680. :toolIndex="toolIndex"
  4681. :key="refreshKey"
  4682. :stage="courseType"
  4683. :task="taskCount"
  4684. :scoTit="
  4685. chapInfoList[courseType].chapterInfo[0]
  4686. .taskJson[taskCount].eList
  4687. "
  4688. >
  4689. </markScore>
  4690. <div
  4691. class="answerScore"
  4692. @click="
  4693. markScoreDig2(
  4694. w.sName,
  4695. worksStudent,
  4696. w.userid,
  4697. toolIndex,
  4698. chapInfoList[courseType].chapterInfo[0]
  4699. .taskJson[taskCount].eList,
  4700. AIloading[toolIndex][wIndex].loading,
  4701. tool
  4702. )
  4703. "
  4704. slot="reference"
  4705. :class="{
  4706. rightW:
  4707. w.userid == userid ||
  4708. tType == 1 ||
  4709. tType == 4 ||
  4710. w.ateacher == userid
  4711. }"
  4712. >
  4713. <span v-if="AIloading[toolIndex][wIndex].sco">
  4714. {{
  4715. AIloading[toolIndex][wIndex].loading
  4716. ? "评分中"
  4717. : AIloading[toolIndex][wIndex].sco + "分"
  4718. }}
  4719. </span>
  4720. <span v-else>
  4721. {{
  4722. AIloading[toolIndex][wIndex].loading
  4723. ? "评分中"
  4724. : "评分"
  4725. }}
  4726. </span>
  4727. </div>
  4728. </el-popover>
  4729. </div>
  4730. <img
  4731. class="deleteImg"
  4732. src="../../assets/deleteworks.png"
  4733. v-if="
  4734. w.userid == userid || tType == 1 || tType == 4
  4735. "
  4736. @click.stop="deleteWorks(w.wid)"
  4737. alt
  4738. />
  4739. </div>
  4740. <div class="comment" style="min-width: 200px">
  4741. <div class="worksName">
  4742. <div>{{ w.sName }}</div>
  4743. </div>
  4744. <div class="commentList">
  4745. <div class="commentList">
  4746. <div
  4747. class="commentImg"
  4748. @click="
  4749. isLikes(
  4750. w.wid,
  4751. userid,
  4752. 1,
  4753. null,
  4754. w.isLikes,
  4755. w.sName
  4756. )
  4757. "
  4758. >
  4759. <img
  4760. :src="w.isLikes == true ? likes : noLikes"
  4761. alt=""
  4762. />
  4763. </div>
  4764. <div>{{ w.likesCount }}</div>
  4765. </div>
  4766. <div class="commentList" style="margin-right: 15px">
  4767. <div
  4768. class="commentImg"
  4769. @click="commentOther(w, toolIndex, wIndex)"
  4770. >
  4771. <img
  4772. src="../../assets/icon/comment/comment.png"
  4773. alt=""
  4774. />
  4775. </div>
  4776. <div>{{ w.commentCount }}</div>
  4777. </div>
  4778. </div>
  4779. </div>
  4780. </div>
  4781. </div>
  4782. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  4783. 未提交
  4784. </div>
  4785. <div
  4786. class="noWorksS"
  4787. v-if="noWorksS && noWorksS[toolIndex].length"
  4788. >
  4789. <div
  4790. v-for="(s, sIndex) in noWorksS[toolIndex]"
  4791. :key="sIndex"
  4792. class="noWorksName"
  4793. @click="teacherWorkSubmit(57, toolIndex, taskCount, s)"
  4794. >
  4795. <el-tooltip
  4796. effect="dark"
  4797. :content="s.student"
  4798. placement="top"
  4799. >
  4800. <span>{{ s.student }}</span>
  4801. </el-tooltip>
  4802. </div>
  4803. </div>
  4804. </div>
  4805. <div
  4806. v-if="
  4807. tType &&
  4808. ((tType == 2 && sIsOpen == true) ||
  4809. tType == 1 ||
  4810. tType == 4) &&
  4811. tool.tool.indexOf(72) != -1
  4812. "
  4813. class="worksBox"
  4814. >
  4815. <div
  4816. class="zuoyeYulan"
  4817. style="display: flex;justify-content: space-between;align-items: center;"
  4818. v-if="
  4819. worksStudent.length &&
  4820. worksStudent[toolIndex].length > 0
  4821. "
  4822. >
  4823. <div class="worksTop">
  4824. <div>作业预览</div>
  4825. <div
  4826. class="corOpen"
  4827. @click="contract(toolIndex)"
  4828. v-if="
  4829. isCloseList[toolIndex].isCloseBoolean &&
  4830. isCloseList[toolIndex].isClose == 0
  4831. "
  4832. >
  4833. 折叠
  4834. </div>
  4835. <div
  4836. class="corOpen"
  4837. @click="contract(toolIndex)"
  4838. v-if="isCloseList[toolIndex].isClose == 1"
  4839. >
  4840. 展开
  4841. </div>
  4842. </div>
  4843. <div
  4844. style="display: flex;"
  4845. v-if="
  4846. (courseDetail.userid == userid ||
  4847. (courseDetail.course_teacher &&
  4848. courseDetail.course_teacher.indexOf(userid) !=
  4849. -1)) &&
  4850. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  4851. taskCount
  4852. ].eList &&
  4853. chapInfoList[courseType].chapterInfo[0].taskJson[
  4854. taskCount
  4855. ].eList.length) ||
  4856. (tool.eList && tool.eList.length)) &&
  4857. courseDetail.state == 6
  4858. "
  4859. >
  4860. <!-- <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"> -->
  4861. <div
  4862. @click="
  4863. resetLoopEva(
  4864. worksStudent[toolIndex],
  4865. chapInfoList[courseType].chapterInfo[0].taskJson[
  4866. taskCount
  4867. ].eList,
  4868. courseType,
  4869. taskCount,
  4870. toolIndex,
  4871. tool.toolDetail,
  4872. tool
  4873. )
  4874. "
  4875. style="margin-right:10px"
  4876. class="ScoreBtn"
  4877. >
  4878. 一键重置
  4879. </div>
  4880. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  4881. <img
  4882. src="../../assets/icon/newIcons/rootImg.png"
  4883. alt=""
  4884. />
  4885. AI评分
  4886. </div>
  4887. <div
  4888. class="ScoreBtn"
  4889. v-else-if="!loopLoading[toolIndex].loading"
  4890. @click="
  4891. loopEva(
  4892. worksStudent[toolIndex],
  4893. chapInfoList[courseType].chapterInfo[0].taskJson[
  4894. taskCount
  4895. ].eList,
  4896. courseType,
  4897. taskCount,
  4898. toolIndex,
  4899. tool.toolDetail,
  4900. chapInfoList[courseType].chapterInfo[0].taskJson[
  4901. taskCount
  4902. ].taskDetail,
  4903. tool
  4904. )
  4905. "
  4906. >
  4907. <img
  4908. src="../../assets/icon/newIcons/rootImg.png"
  4909. alt=""
  4910. />
  4911. AI评分
  4912. </div>
  4913. <div class="ScoreBtn" v-else>
  4914. <img
  4915. src="../../assets/icon/newIcons/rootImg.png"
  4916. alt=""
  4917. />
  4918. 正在评分
  4919. </div>
  4920. </div>
  4921. </div>
  4922. <div
  4923. :id="'tool-' + toolIndex"
  4924. :style="{
  4925. height:
  4926. isCloseList[toolIndex].isClose == 1
  4927. ? retrnToolHeight('tool-' + toolIndex)
  4928. : 'auto',
  4929. overflow:
  4930. isCloseList[toolIndex].isClose == 1
  4931. ? 'hidden'
  4932. : 'unset'
  4933. }"
  4934. class="worksDetailBox"
  4935. v-if="
  4936. worksStudent.length &&
  4937. worksStudent[toolIndex].length > 0
  4938. "
  4939. >
  4940. <div
  4941. class="works"
  4942. style="
  4943. width: 200px;
  4944. height: 140px;
  4945. margin: 10px 10px 10px 0;
  4946. border-radius: 15px;
  4947. box-shadow: 0 0 6px 1px #dfdada;
  4948. "
  4949. v-for="(w, wIndex) in worksStudent[toolIndex]"
  4950. :key="wIndex"
  4951. :class="w.type == 1 ? 'isTypeOne' : ''"
  4952. >
  4953. <div class="workImg">
  4954. <!-- <img
  4955. :src="word2"
  4956. @click="downloadFile(w.works)"
  4957. v-if="w.type == 12"
  4958. alt
  4959. /> -->
  4960. <img
  4961. :src="word2"
  4962. @click="
  4963. openCocoFlow(w)
  4964. "
  4965. alt
  4966. />
  4967. <div
  4968. class="answerScore"
  4969. v-if="w.score"
  4970. @click.stop="openScore(w)"
  4971. :class="{
  4972. rightW:
  4973. w.userid == userid ||
  4974. tType == 1 ||
  4975. tType == 4 ||
  4976. w.ateacher == userid
  4977. }"
  4978. >
  4979. {{ JSON.parse(w.score).wScore }}分
  4980. </div>
  4981. <div
  4982. class="answerScore"
  4983. @click.stop="openScore(w)"
  4984. v-else-if="
  4985. courseDetail.userid == userid &&
  4986. courseDetail.state != 5 &&
  4987. chapInfoList[courseType].chapterInfo[0]
  4988. .taskJson[taskCount].eList &&
  4989. chapInfoList[courseType].chapterInfo[0]
  4990. .taskJson[taskCount].eList.length
  4991. "
  4992. :class="{
  4993. rightW:
  4994. w.userid == userid ||
  4995. tType == 1 ||
  4996. tType == 4 ||
  4997. w.ateacher == userid
  4998. }"
  4999. >
  5000. 评分
  5001. </div>
  5002. <div
  5003. v-else-if="
  5004. (courseDetail.userid == userid ||
  5005. (courseDetail.course_teacher &&
  5006. courseDetail.course_teacher.indexOf(userid) !=
  5007. -1) ||
  5008. (w.userid == userid && sIsOpen)) &&
  5009. courseDetail.state == 6 &&
  5010. ((chapInfoList[courseType].chapterInfo[0]
  5011. .taskJson[taskCount].eList &&
  5012. chapInfoList[courseType].chapterInfo[0]
  5013. .taskJson[taskCount].eList.length) ||
  5014. (tool.eList && tool.eList.length))
  5015. "
  5016. >
  5017. <!-- <div
  5018. class="answerScore"
  5019. @click="markScoreDig(w.userid,toolIndex)"
  5020. :class="{
  5021. rightW:
  5022. w.userid == userid ||
  5023. tType == 1 ||
  5024. tType == 4 ||
  5025. w.ateacher == userid,
  5026. }"
  5027. >
  5028. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  5029. </div> -->
  5030. <!-- @show="handleShow(toolIndex,wIndex)"
  5031. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  5032. <el-popover
  5033. placement="top"
  5034. width="318"
  5035. :disabled="AIloading[toolIndex][wIndex].loading"
  5036. trigger="hover"
  5037. >
  5038. <markScore
  5039. :loading="AIloading[toolIndex][wIndex].loading"
  5040. :markScoreVisible="markScoreVisible"
  5041. :ref="`markSco${toolIndex}${wIndex}`"
  5042. @updateLoading="updateLoading"
  5043. @updateDocSco="updateDocSco"
  5044. @refreshOther="refreshOther"
  5045. @markScoreDig="markScoreDig"
  5046. :tool="tool"
  5047. :wIndex="wIndex"
  5048. :scoCon="w"
  5049. :toolIndex="toolIndex"
  5050. :key="refreshKey"
  5051. :stage="courseType"
  5052. :task="taskCount"
  5053. :scoTit="
  5054. chapInfoList[courseType].chapterInfo[0]
  5055. .taskJson[taskCount].eList
  5056. "
  5057. >
  5058. </markScore>
  5059. <div
  5060. class="answerScore"
  5061. @click="
  5062. markScoreDig2(
  5063. w.sName,
  5064. worksStudent,
  5065. w.userid,
  5066. toolIndex,
  5067. chapInfoList[courseType].chapterInfo[0]
  5068. .taskJson[taskCount].eList,
  5069. AIloading[toolIndex][wIndex].loading,
  5070. tool
  5071. )
  5072. "
  5073. slot="reference"
  5074. :class="{
  5075. rightW:
  5076. w.userid == userid ||
  5077. tType == 1 ||
  5078. tType == 4 ||
  5079. w.ateacher == userid
  5080. }"
  5081. >
  5082. <span v-if="AIloading[toolIndex][wIndex].sco">
  5083. {{
  5084. AIloading[toolIndex][wIndex].loading
  5085. ? "评分中"
  5086. : AIloading[toolIndex][wIndex].sco + "分"
  5087. }}
  5088. </span>
  5089. <span v-else>
  5090. {{
  5091. AIloading[toolIndex][wIndex].loading
  5092. ? "评分中"
  5093. : "评分"
  5094. }}
  5095. </span>
  5096. </div>
  5097. </el-popover>
  5098. </div>
  5099. <img
  5100. class="deleteImg"
  5101. src="../../assets/deleteworks.png"
  5102. v-if="
  5103. w.userid == userid || tType == 1 || tType == 4
  5104. "
  5105. @click.stop="deleteWorks(w.wid)"
  5106. alt
  5107. />
  5108. </div>
  5109. <div class="comment" style="min-width: 200px">
  5110. <div class="worksName">
  5111. <div>{{ w.sName }}</div>
  5112. </div>
  5113. <div class="commentList">
  5114. <div class="commentList">
  5115. <div
  5116. class="commentImg"
  5117. @click="
  5118. isLikes(
  5119. w.wid,
  5120. userid,
  5121. 1,
  5122. null,
  5123. w.isLikes,
  5124. w.sName
  5125. )
  5126. "
  5127. >
  5128. <img
  5129. :src="w.isLikes == true ? likes : noLikes"
  5130. alt=""
  5131. />
  5132. </div>
  5133. <div>{{ w.likesCount }}</div>
  5134. </div>
  5135. <div class="commentList" style="margin-right: 15px">
  5136. <div
  5137. class="commentImg"
  5138. @click="commentOther(w, toolIndex, wIndex)"
  5139. >
  5140. <img
  5141. src="../../assets/icon/comment/comment.png"
  5142. alt=""
  5143. />
  5144. </div>
  5145. <div>{{ w.commentCount }}</div>
  5146. </div>
  5147. </div>
  5148. </div>
  5149. </div>
  5150. </div>
  5151. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5152. 未提交
  5153. </div>
  5154. <div
  5155. class="noWorksS"
  5156. v-if="noWorksS && noWorksS[toolIndex].length"
  5157. >
  5158. <div
  5159. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5160. :key="sIndex"
  5161. class="noWorksName2"
  5162. @click="teacherWorkSubmit(72, toolIndex, taskCount, s)"
  5163. >
  5164. <el-tooltip
  5165. effect="dark"
  5166. :content="s.student"
  5167. placement="top"
  5168. >
  5169. <span>{{ s.student }}</span>
  5170. </el-tooltip>
  5171. </div>
  5172. </div>
  5173. </div>
  5174. <div
  5175. v-if="
  5176. tType &&
  5177. tType == 2 &&
  5178. !sIsOpen &&
  5179. tool.tool.indexOf(72) != -1
  5180. "
  5181. class="worksBox"
  5182. >
  5183. <div
  5184. class="zuoyeYulan"
  5185. v-if="workStudent[toolIndex].length > 0"
  5186. >
  5187. <span class="worksTitle">作业预览</span>
  5188. </div>
  5189. <div
  5190. class="worksDetailBox"
  5191. v-if="workStudent[toolIndex].length > 0"
  5192. >
  5193. <div
  5194. class="works"
  5195. style="
  5196. width: 200px;
  5197. height: 140px;
  5198. margin: 10px 10px 10px 0;
  5199. box-shadow: 0 0 6px 1px #dfdada;
  5200. "
  5201. v-for="(w, wIndex) in workStudent[toolIndex]"
  5202. :key="wIndex"
  5203. >
  5204. <div class="workImg">
  5205. <!-- <img
  5206. :src="word2"
  5207. @click="downloadFile(w.works)"
  5208. v-if="w.type == 12"
  5209. alt
  5210. /> -->
  5211. <img
  5212. :src="word2"
  5213. @click="
  5214. openCocoFlow(w)
  5215. "
  5216. alt
  5217. />
  5218. <div
  5219. class="answerScore"
  5220. v-if="w.score"
  5221. @click.stop="openScore(w)"
  5222. :class="{
  5223. rightW:
  5224. w.userid == userid || tType == 1 || tType == 4
  5225. }"
  5226. >
  5227. {{ JSON.parse(w.score).wScore }}分
  5228. </div>
  5229. <div
  5230. class="answerScore"
  5231. @click.stop="openScore(w)"
  5232. v-else-if="courseDetail.userid == userid"
  5233. :class="{
  5234. rightW:
  5235. w.userid == userid || tType == 1 || tType == 4
  5236. }"
  5237. >
  5238. 评分
  5239. </div>
  5240. <div
  5241. class="stuLookScore"
  5242. v-if="
  5243. w.userid == userid ||
  5244. (tType == 1 &&
  5245. courseDetail.state == 6 &&
  5246. ((chapInfoList[courseType].chapterInfo[0]
  5247. .taskJson[taskCount].eList &&
  5248. chapInfoList[courseType].chapterInfo[0]
  5249. .taskJson[taskCount].eList.length) ||
  5250. (tool.eList && tool.eList.length)))
  5251. "
  5252. >
  5253. <el-popover
  5254. placement="top"
  5255. width="318"
  5256. trigger="hover"
  5257. >
  5258. <markScore
  5259. :loading="AIloading[toolIndex][wIndex].loading"
  5260. :markScoreVisible="markScoreVisible"
  5261. :ref="`markSco${toolIndex}${wIndex}`"
  5262. @updateLoading="updateLoading"
  5263. @updateDocSco="updateDocSco"
  5264. @refreshOther="refreshOther"
  5265. @markScoreDig="markScoreDig"
  5266. :tool="tool"
  5267. :wIndex="wIndex"
  5268. :scoCon="w"
  5269. :toolIndex="toolIndex"
  5270. :key="refreshKey"
  5271. :stage="courseType"
  5272. :task="taskCount"
  5273. :scoTit="
  5274. chapInfoList[courseType].chapterInfo[0]
  5275. .taskJson[taskCount].eList
  5276. "
  5277. >
  5278. </markScore>
  5279. <div
  5280. @click="
  5281. markScoreDig2(
  5282. w.sName,
  5283. worksStudent,
  5284. w.userid,
  5285. toolIndex,
  5286. chapInfoList[courseType].chapterInfo[0]
  5287. .taskJson[taskCount].eList,
  5288. AIloading[toolIndex][wIndex].loading,
  5289. tool
  5290. )
  5291. "
  5292. slot="reference"
  5293. >
  5294. <span v-if="AIloading[toolIndex][wIndex].sco">
  5295. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  5296. </span>
  5297. <span v-else>
  5298. 评分
  5299. </span>
  5300. </div>
  5301. </el-popover>
  5302. </div>
  5303. <img
  5304. class="deleteImg"
  5305. src="../../assets/deleteworks.png"
  5306. v-if="
  5307. w.userid == userid || tType == 1 || tType == 4
  5308. "
  5309. @click.stop="deleteWorks(w.wid)"
  5310. alt
  5311. />
  5312. </div>
  5313. <div class="worksName">
  5314. <div>{{ w.sName }}</div>
  5315. </div>
  5316. </div>
  5317. </div>
  5318. </div>
  5319. <div v-if="tool.tool.indexOf(50) != -1" class="worksBox">
  5320. <div
  5321. style="display: flex;justify-content: space-between;align-items: center;"
  5322. >
  5323. <div
  5324. class="zuoyeYulan"
  5325. v-if="
  5326. worksStudent.length &&
  5327. worksStudent[toolIndex].length > 0
  5328. "
  5329. >
  5330. <span class="worksTitle">作业预览</span>
  5331. <div
  5332. class="corOpen"
  5333. @click="contract(toolIndex)"
  5334. v-if="
  5335. isCloseList[toolIndex].isCloseBoolean &&
  5336. isCloseList[toolIndex].isClose == 0
  5337. "
  5338. >
  5339. 折叠
  5340. </div>
  5341. <div
  5342. class="corOpen"
  5343. @click="contract(toolIndex)"
  5344. v-if="isCloseList[toolIndex].isClose == 1"
  5345. >
  5346. 展开
  5347. </div>
  5348. </div>
  5349. <div
  5350. style="display: flex;"
  5351. v-if="
  5352. (courseDetail.userid == userid ||
  5353. (courseDetail.course_teacher &&
  5354. courseDetail.course_teacher.indexOf(userid) !=
  5355. -1)) &&
  5356. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  5357. taskCount
  5358. ].eList &&
  5359. chapInfoList[courseType].chapterInfo[0].taskJson[
  5360. taskCount
  5361. ].eList.length) ||
  5362. (tool.eList && tool.eList.length)) &&
  5363. courseDetail.state == 6
  5364. "
  5365. >
  5366. <!-- <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 "> -->
  5367. <div
  5368. style="margin-right:10px"
  5369. class="ScoreBtn"
  5370. @click="
  5371. resetLoopEva(
  5372. worksStudent[toolIndex],
  5373. chapInfoList[courseType].chapterInfo[0].taskJson[
  5374. taskCount
  5375. ].eList,
  5376. courseType,
  5377. taskCount,
  5378. toolIndex,
  5379. tool.toolDetail,
  5380. worksStudent
  5381. )
  5382. "
  5383. >
  5384. 一键重置
  5385. </div>
  5386. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  5387. <img
  5388. src="../../assets/icon/newIcons/rootImg.png"
  5389. alt=""
  5390. />
  5391. AI评分
  5392. </div>
  5393. <div
  5394. class="ScoreBtn"
  5395. v-else-if="!loopLoading[toolIndex].loading"
  5396. @click="
  5397. loopEva(
  5398. worksStudent[toolIndex],
  5399. chapInfoList[courseType].chapterInfo[0].taskJson[
  5400. taskCount
  5401. ].eList,
  5402. courseType,
  5403. taskCount,
  5404. toolIndex,
  5405. tool.toolDetail,
  5406. chapInfoList[courseType].chapterInfo[0].taskJson[
  5407. taskCount
  5408. ].taskDetail,
  5409. tool
  5410. )
  5411. "
  5412. >
  5413. <img
  5414. src="../../assets/icon/newIcons/rootImg.png"
  5415. alt=""
  5416. />
  5417. AI评分
  5418. </div>
  5419. <div class="ScoreBtn" v-else>
  5420. <img
  5421. src="../../assets/icon/newIcons/rootImg.png"
  5422. alt=""
  5423. />
  5424. 正在评分
  5425. </div>
  5426. </div>
  5427. </div>
  5428. <div
  5429. :id="'tool-' + toolIndex"
  5430. :style="{
  5431. height:
  5432. isCloseList[toolIndex].isClose == 1
  5433. ? retrnToolHeight('tool-' + toolIndex)
  5434. : 'auto',
  5435. overflow:
  5436. isCloseList[toolIndex].isClose == 1
  5437. ? 'hidden'
  5438. : 'unset'
  5439. }"
  5440. class="worksDetailBox"
  5441. v-if="
  5442. worksStudent.length &&
  5443. worksStudent[toolIndex].length > 0
  5444. "
  5445. >
  5446. <div
  5447. class="works"
  5448. style="
  5449. width: 200px;
  5450. height: 140px;
  5451. margin: 10px 10px 10px 0;
  5452. border-radius: 15px;
  5453. box-shadow: 0 0 6px 1px #dfdada;
  5454. "
  5455. v-for="(w, wIndex) in worksStudent[toolIndex]"
  5456. :key="wIndex"
  5457. :class="w.type == 1 ? 'isTypeOne' : ''"
  5458. >
  5459. <div class="workImg" v-if="w.type == 0">
  5460. <!-- @click="commentOther(w, toolIndex, wIndex)" -->
  5461. <img
  5462. :src="w.works"
  5463. @click="previewImg(w.works, w)"
  5464. alt
  5465. />
  5466. <div
  5467. class="answerScore"
  5468. v-if="w.score"
  5469. @click.stop="openScore(w)"
  5470. :class="{
  5471. rightW:
  5472. w.userid == userid ||
  5473. tType == 1 ||
  5474. tType == 4 ||
  5475. w.ateacher == userid
  5476. }"
  5477. >
  5478. {{ JSON.parse(w.score).wScore }}分
  5479. </div>
  5480. <div
  5481. class="answerScore"
  5482. @click.stop="openScore(w)"
  5483. v-else-if="
  5484. courseDetail.userid == userid &&
  5485. courseDetail.state != 6 &&
  5486. chapInfoList[courseType].chapterInfo[0]
  5487. .taskJson[taskCount].eList &&
  5488. chapInfoList[courseType].chapterInfo[0]
  5489. .taskJson[taskCount].eList.length
  5490. "
  5491. :class="{
  5492. rightW:
  5493. w.userid == userid ||
  5494. tType == 1 ||
  5495. tType == 4 ||
  5496. w.ateacher == userid
  5497. }"
  5498. >
  5499. 评分
  5500. </div>
  5501. <!-- <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"> -->
  5502. <div
  5503. v-else-if="
  5504. (courseDetail.userid == userid ||
  5505. (courseDetail.course_teacher &&
  5506. courseDetail.course_teacher.indexOf(userid) !=
  5507. -1) ||
  5508. (w.userid == userid && sIsOpen)) &&
  5509. courseDetail.state == 6 &&
  5510. ((chapInfoList[courseType].chapterInfo[0]
  5511. .taskJson[taskCount].eList &&
  5512. chapInfoList[courseType].chapterInfo[0]
  5513. .taskJson[taskCount].eList.length) ||
  5514. (tool.eList && tool.eList.length))
  5515. "
  5516. >
  5517. <el-popover
  5518. placement="top"
  5519. width="318"
  5520. :disabled="AIloading[toolIndex][wIndex].loading"
  5521. trigger="hover"
  5522. >
  5523. <markScore
  5524. :loading="AIloading[toolIndex][wIndex].loading"
  5525. :markScoreVisible="markScoreVisible"
  5526. :ref="`markSco${toolIndex}${wIndex}`"
  5527. @updateLoading="updateLoading"
  5528. @updateDocSco="updateDocSco"
  5529. @refreshOther="refreshOther"
  5530. @markScoreDig="markScoreDig"
  5531. :tool="tool"
  5532. :wIndex="wIndex"
  5533. :scoCon="w"
  5534. :toolIndex="toolIndex"
  5535. :key="refreshKey"
  5536. :stage="courseType"
  5537. :task="taskCount"
  5538. :scoTit="
  5539. chapInfoList[courseType].chapterInfo[0]
  5540. .taskJson[taskCount].eList
  5541. "
  5542. >
  5543. </markScore>
  5544. <div
  5545. class="answerScore"
  5546. @click="
  5547. markScoreDig2(
  5548. w.sName,
  5549. worksStudent,
  5550. w.userid,
  5551. toolIndex,
  5552. chapInfoList[courseType].chapterInfo[0]
  5553. .taskJson[taskCount].eList,
  5554. AIloading[toolIndex][wIndex].loading,
  5555. tool
  5556. )
  5557. "
  5558. slot="reference"
  5559. :class="{
  5560. rightW:
  5561. w.userid == userid ||
  5562. tType == 1 ||
  5563. tType == 4 ||
  5564. w.ateacher == userid
  5565. }"
  5566. >
  5567. <span v-if="AIloading[toolIndex][wIndex].sco">
  5568. {{
  5569. AIloading[toolIndex][wIndex].loading
  5570. ? "评分中"
  5571. : AIloading[toolIndex][wIndex].sco + "分"
  5572. }}
  5573. </span>
  5574. <span v-else>
  5575. {{
  5576. AIloading[toolIndex][wIndex].loading
  5577. ? "评分中"
  5578. : "评分"
  5579. }}
  5580. </span>
  5581. </div>
  5582. </el-popover>
  5583. </div>
  5584. <img
  5585. class="deleteImg"
  5586. src="../../assets/deleteworks.png"
  5587. v-if="
  5588. w.userid == userid || tType == 1 || tType == 4
  5589. "
  5590. @click.stop="deleteWorks(w.wid)"
  5591. alt
  5592. />
  5593. </div>
  5594. <div
  5595. class="workImg"
  5596. style="cursor: pointer"
  5597. v-if="w.type == 1"
  5598. >
  5599. <img :src="word" @click="openFile(w.works)" alt />
  5600. <!-- @click="openFile(w.works)" -->
  5601. <div
  5602. class="answerScore"
  5603. v-if="w.score"
  5604. @click.stop="openScore(w)"
  5605. :class="{
  5606. rightW:
  5607. w.userid == userid ||
  5608. tType == 1 ||
  5609. tType == 4 ||
  5610. w.ateacher == userid
  5611. }"
  5612. >
  5613. {{ JSON.parse(w.score).wScore }}分
  5614. </div>
  5615. <div
  5616. class="answerScore"
  5617. @click.stop="openScore(w)"
  5618. v-else-if="
  5619. courseDetail.userid == userid &&
  5620. courseDetail.state != 6 &&
  5621. chapInfoList[courseType].chapterInfo[0]
  5622. .taskJson[taskCount].eList &&
  5623. chapInfoList[courseType].chapterInfo[0]
  5624. .taskJson[taskCount].eList.length
  5625. "
  5626. :class="{
  5627. rightW:
  5628. w.userid == userid ||
  5629. tType == 1 ||
  5630. tType == 4 ||
  5631. w.ateacher == userid
  5632. }"
  5633. >
  5634. 评分
  5635. </div>
  5636. <!-- <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"> -->
  5637. <div
  5638. v-else-if="
  5639. (courseDetail.userid == userid ||
  5640. (courseDetail.course_teacher &&
  5641. courseDetail.course_teacher.indexOf(userid) !=
  5642. -1) ||
  5643. (w.userid == userid && sIsOpen)) &&
  5644. courseDetail.state == 6 &&
  5645. ((chapInfoList[courseType].chapterInfo[0]
  5646. .taskJson[taskCount].eList &&
  5647. chapInfoList[courseType].chapterInfo[0]
  5648. .taskJson[taskCount].eList.length) ||
  5649. (tool.eList && tool.eList.length))
  5650. "
  5651. >
  5652. <el-popover
  5653. placement="top"
  5654. width="318"
  5655. :disabled="AIloading[toolIndex][wIndex].loading"
  5656. trigger="hover"
  5657. >
  5658. <markScore
  5659. :loading="AIloading[toolIndex][wIndex].loading"
  5660. :markScoreVisible="markScoreVisible"
  5661. :ref="`markSco${toolIndex}${wIndex}`"
  5662. @updateLoading="updateLoading"
  5663. @updateDocSco="updateDocSco"
  5664. @refreshOther="refreshOther"
  5665. @markScoreDig="markScoreDig"
  5666. :tool="tool"
  5667. :wIndex="wIndex"
  5668. :scoCon="w"
  5669. :toolIndex="toolIndex"
  5670. :key="refreshKey"
  5671. :stage="courseType"
  5672. :task="taskCount"
  5673. :scoTit="
  5674. chapInfoList[courseType].chapterInfo[0]
  5675. .taskJson[taskCount].eList
  5676. "
  5677. >
  5678. </markScore>
  5679. <div
  5680. class="answerScore"
  5681. @click="
  5682. markScoreDig2(
  5683. w.sName,
  5684. worksStudent,
  5685. w.userid,
  5686. toolIndex,
  5687. chapInfoList[courseType].chapterInfo[0]
  5688. .taskJson[taskCount].eList,
  5689. AIloading[toolIndex][wIndex].loading,
  5690. tool
  5691. )
  5692. "
  5693. slot="reference"
  5694. :class="{
  5695. rightW:
  5696. w.userid == userid ||
  5697. tType == 1 ||
  5698. tType == 4 ||
  5699. w.ateacher == userid
  5700. }"
  5701. >
  5702. <span v-if="AIloading[toolIndex][wIndex].sco">
  5703. {{
  5704. AIloading[toolIndex][wIndex].loading
  5705. ? "评分中"
  5706. : AIloading[toolIndex][wIndex].sco + "分"
  5707. }}
  5708. </span>
  5709. <span v-else>
  5710. {{
  5711. AIloading[toolIndex][wIndex].loading
  5712. ? "评分中"
  5713. : "评分"
  5714. }}
  5715. </span>
  5716. </div>
  5717. </el-popover>
  5718. </div>
  5719. <img
  5720. class="deleteImg"
  5721. src="../../assets/deleteworks.png"
  5722. v-if="
  5723. w.userid == userid || tType == 1 || tType == 4
  5724. "
  5725. @click.stop="deleteWorks(w.wid)"
  5726. alt
  5727. />
  5728. </div>
  5729. <div class="workImg" v-if="w.type == 3">
  5730. <img
  5731. style="cursor: pointer"
  5732. :src="video"
  5733. @click="openVideo(w)"
  5734. alt
  5735. />
  5736. <!-- @click="openVideo(w.works)" -->
  5737. <div
  5738. class="answerScore"
  5739. v-if="w.score"
  5740. @click.stop="openScore(w)"
  5741. :class="{
  5742. rightW:
  5743. w.userid == userid ||
  5744. tType == 1 ||
  5745. tType == 4 ||
  5746. w.ateacher == userid
  5747. }"
  5748. >
  5749. {{ JSON.parse(w.score).wScore }}分
  5750. </div>
  5751. <div
  5752. class="answerScore"
  5753. @click.stop="openScore(w)"
  5754. v-else-if="
  5755. courseDetail.userid == userid &&
  5756. courseDetail.state != 6 &&
  5757. chapInfoList[courseType].chapterInfo[0]
  5758. .taskJson[taskCount].eList &&
  5759. chapInfoList[courseType].chapterInfo[0]
  5760. .taskJson[taskCount].eList.length
  5761. "
  5762. :class="{
  5763. rightW:
  5764. w.userid == userid ||
  5765. tType == 1 ||
  5766. tType == 4 ||
  5767. w.ateacher == userid
  5768. }"
  5769. >
  5770. 评分
  5771. </div>
  5772. <!-- <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"> -->
  5773. <div
  5774. v-else-if="
  5775. (courseDetail.userid == userid ||
  5776. (courseDetail.course_teacher &&
  5777. courseDetail.course_teacher.indexOf(userid) !=
  5778. -1) ||
  5779. (w.userid == userid && sIsOpen)) &&
  5780. courseDetail.state == 6 &&
  5781. ((chapInfoList[courseType].chapterInfo[0]
  5782. .taskJson[taskCount].eList &&
  5783. chapInfoList[courseType].chapterInfo[0]
  5784. .taskJson[taskCount].eList.length) ||
  5785. (tool.eList && tool.eList.length))
  5786. "
  5787. >
  5788. <el-popover
  5789. placement="top"
  5790. width="318"
  5791. :disabled="AIloading[toolIndex][wIndex].loading"
  5792. trigger="hover"
  5793. >
  5794. <markScore
  5795. :loading="AIloading[toolIndex][wIndex].loading"
  5796. :markScoreVisible="markScoreVisible"
  5797. :ref="`markSco${toolIndex}${wIndex}`"
  5798. @updateLoading="updateLoading"
  5799. @updateDocSco="updateDocSco"
  5800. @refreshOther="refreshOther"
  5801. @markScoreDig="markScoreDig"
  5802. :tool="tool"
  5803. :wIndex="wIndex"
  5804. :scoCon="w"
  5805. :toolIndex="toolIndex"
  5806. :key="refreshKey"
  5807. :stage="courseType"
  5808. :task="taskCount"
  5809. :scoTit="
  5810. chapInfoList[courseType].chapterInfo[0]
  5811. .taskJson[taskCount].eList
  5812. "
  5813. >
  5814. </markScore>
  5815. <div
  5816. class="answerScore"
  5817. @click="
  5818. markScoreDig2(
  5819. w.sName,
  5820. worksStudent,
  5821. w.userid,
  5822. toolIndex,
  5823. chapInfoList[courseType].chapterInfo[0]
  5824. .taskJson[taskCount].eList,
  5825. AIloading[toolIndex][wIndex].loading,
  5826. tool
  5827. )
  5828. "
  5829. slot="reference"
  5830. :class="{
  5831. rightW:
  5832. w.userid == userid ||
  5833. tType == 1 ||
  5834. tType == 4 ||
  5835. w.ateacher == userid
  5836. }"
  5837. >
  5838. <span v-if="AIloading[toolIndex][wIndex].sco">
  5839. {{
  5840. AIloading[toolIndex][wIndex].loading
  5841. ? "评分中"
  5842. : AIloading[toolIndex][wIndex].sco + "分"
  5843. }}
  5844. </span>
  5845. <span v-else>
  5846. {{
  5847. AIloading[toolIndex][wIndex].loading
  5848. ? "评分中"
  5849. : "评分"
  5850. }}
  5851. </span>
  5852. </div>
  5853. </el-popover>
  5854. </div>
  5855. <img
  5856. class="deleteImg"
  5857. src="../../assets/deleteworks.png"
  5858. v-if="
  5859. w.userid == userid || tType == 1 || tType == 4
  5860. "
  5861. @click.stop="deleteWorks(w.wid)"
  5862. alt
  5863. />
  5864. </div>
  5865. <div class="comment" style="min-width: 200px">
  5866. <div class="worksName">
  5867. <div
  5868. style="cursor: pointer"
  5869. @click="
  5870. openSname(w.sName, w.wid, toolIndex, w.userid)
  5871. "
  5872. >
  5873. {{ w.sName }}
  5874. </div>
  5875. </div>
  5876. <div class="commentList">
  5877. <div class="commentList">
  5878. <div
  5879. class="commentImg"
  5880. @click="
  5881. isLikes(
  5882. w.wid,
  5883. userid,
  5884. 1,
  5885. null,
  5886. w.isLikes,
  5887. w.sName
  5888. )
  5889. "
  5890. >
  5891. <img
  5892. :src="w.isLikes == true ? likes : noLikes"
  5893. alt=""
  5894. />
  5895. </div>
  5896. <div>{{ w.likesCount }}</div>
  5897. </div>
  5898. <div class="commentList" style="margin-right: 15px">
  5899. <div
  5900. class="commentImg"
  5901. @click="commentOther(w, toolIndex, wIndex)"
  5902. >
  5903. <img
  5904. src="../../assets/icon/comment/comment.png"
  5905. alt=""
  5906. />
  5907. </div>
  5908. <div>{{ w.commentCount }}</div>
  5909. </div>
  5910. </div>
  5911. </div>
  5912. </div>
  5913. </div>
  5914. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  5915. 未提交
  5916. </div>
  5917. <div
  5918. class="noWorksS"
  5919. v-if="noWorksS && noWorksS[toolIndex].length"
  5920. >
  5921. <div
  5922. v-for="(s, sIndex) in noWorksS[toolIndex]"
  5923. :key="sIndex"
  5924. class="noWorksName"
  5925. @click="teacherWorkSubmit(50, toolIndex, taskCount, s)"
  5926. >
  5927. <el-tooltip
  5928. effect="dark"
  5929. :content="s.student"
  5930. placement="top"
  5931. >
  5932. <span>{{ s.student }}</span>
  5933. </el-tooltip>
  5934. </div>
  5935. </div>
  5936. </div>
  5937. <div
  5938. v-if="
  5939. tType &&
  5940. ((tType == 2 && sIsOpen == true) ||
  5941. tType == 1 ||
  5942. tType == 4) &&
  5943. tool.tool.indexOf(4) != -1 &&
  5944. (tool.askJson[0].answer ||
  5945. tool.askJson[0].answer === 0) &&
  5946. checkJson[toolIndex].length
  5947. "
  5948. class="xuan_right_box"
  5949. >
  5950. <div
  5951. class="tool_right_box"
  5952. v-for="(item, index) in tool.askJson"
  5953. :key="index"
  5954. >
  5955. <div style="width: calc(100% - 30px);">
  5956. <el-tooltip
  5957. effect="light"
  5958. :content="index + 1 + '、' + item.askstitle"
  5959. placement="top"
  5960. popper-class="text_tooltip"
  5961. >
  5962. <div
  5963. style="
  5964. width: calc(100% - 130px);
  5965. display: block;
  5966. white-space: nowrap;
  5967. overflow: hidden;
  5968. text-overflow: ellipsis;
  5969. word-break: break-word;
  5970. cursor: pointer;
  5971. "
  5972. >
  5973. {{ index + 1 + "、" + item.askstitle }}
  5974. </div>
  5975. </el-tooltip>
  5976. </div>
  5977. <div class="right_box_xuan">
  5978. <span>正确率</span>
  5979. <span>{{
  5980. (checkJson[toolIndex][index].right
  5981. ? checkJson[toolIndex][index].right
  5982. : 0) + "%"
  5983. }}</span>
  5984. </div>
  5985. </div>
  5986. </div>
  5987. <div
  5988. class="xuan_right_box"
  5989. style="background: unset; padding: 0 10px"
  5990. v-if="
  5991. tType &&
  5992. ((tType == 2 && sIsOpen == true) ||
  5993. tType == 1 ||
  5994. tType == 4) &&
  5995. tool.tool.indexOf(4) != -1
  5996. "
  5997. >
  5998. <AskStatic
  5999. v-if="
  6000. worksStudent.length &&
  6001. worksStudent[toolIndex].length > 0
  6002. "
  6003. :askJSON="tool"
  6004. :checkJson="checkJson[toolIndex]"
  6005. ></AskStatic>
  6006. </div>
  6007. <div
  6008. v-if="
  6009. tType &&
  6010. ((tType == 2 && sIsOpen == true) ||
  6011. tType == 1 ||
  6012. tType == 4) &&
  6013. tool.tool.indexOf(4) != -1
  6014. "
  6015. class="worksBox"
  6016. >
  6017. <div
  6018. class="zuoyeYulan"
  6019. v-if="
  6020. worksStudent.length &&
  6021. worksStudent[toolIndex].length > 0
  6022. "
  6023. >
  6024. <div class="worksTop">
  6025. <div>作业预览</div>
  6026. <div
  6027. class="corOpen"
  6028. @click="contract(toolIndex)"
  6029. v-if="
  6030. isCloseList[toolIndex].isCloseBoolean &&
  6031. isCloseList[toolIndex].isClose == 0
  6032. "
  6033. >
  6034. 折叠
  6035. </div>
  6036. <div
  6037. class="corOpen"
  6038. @click="contract(toolIndex)"
  6039. v-if="isCloseList[toolIndex].isClose == 1"
  6040. >
  6041. 展开
  6042. </div>
  6043. </div>
  6044. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6045. </div>
  6046. <div>
  6047. <div
  6048. :id="'tool-' + toolIndex"
  6049. :style="{
  6050. height:
  6051. isCloseList[toolIndex].isClose == 1
  6052. ? retrnToolHeight('tool-' + toolIndex)
  6053. : 'auto',
  6054. overflow:
  6055. isCloseList[toolIndex].isClose == 1
  6056. ? 'hidden'
  6057. : 'unset'
  6058. }"
  6059. class="worksDetailBox"
  6060. v-if="
  6061. worksStudent.length &&
  6062. worksStudent[toolIndex].length > 0
  6063. "
  6064. >
  6065. <div
  6066. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6067. :key="wIndex"
  6068. class="isWorksName2"
  6069. @click="
  6070. openTools(4, toolIndex, taskCount, w.works, w.sName)
  6071. "
  6072. >
  6073. {{ w.sName }}
  6074. <img
  6075. class="deleteImg deleteImg2"
  6076. src="../../assets/deleteworks.png"
  6077. v-if="
  6078. w.userid == userid || tType == 1 || tType == 4
  6079. "
  6080. @click.stop="deleteWorks(w.wid)"
  6081. alt
  6082. />
  6083. </div>
  6084. <!-- <div class="works" style="
  6085. width: 200px;
  6086. height: 140px;
  6087. border-radius: 10px;
  6088. box-shadow: 0 0 6px 1px #dfdada;
  6089. overflow: hidden;
  6090. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex">
  6091. <div class="workImg">
  6092. <img src="../../assets/icon/works/noImg.png" @click="
  6093. openTools(
  6094. 4,
  6095. toolIndex,
  6096. taskCount,
  6097. w.works,
  6098. w.sName
  6099. )
  6100. " alt />
  6101. </div>
  6102. <div class="worksName">
  6103. <div>{{ w.sName }}</div>
  6104. <div>{{ w.time }}</div>
  6105. </div>
  6106. </div> -->
  6107. </div>
  6108. </div>
  6109. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6110. 未提交
  6111. </div>
  6112. <div
  6113. class="noWorksS"
  6114. v-if="noWorksS && noWorksS[toolIndex].length"
  6115. >
  6116. <div
  6117. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6118. :key="sIndex"
  6119. class="noWorksName"
  6120. @click="teacherWorkSubmit(4, toolIndex, taskCount, s)"
  6121. >
  6122. <el-tooltip
  6123. effect="dark"
  6124. :content="s.student"
  6125. placement="top"
  6126. >
  6127. <span>{{ s.student }}</span>
  6128. </el-tooltip>
  6129. </div>
  6130. </div>
  6131. </div>
  6132. <div
  6133. v-if="
  6134. tType &&
  6135. ((tType == 2 && sIsOpen == true) ||
  6136. tType == 1 ||
  6137. tType == 4) &&
  6138. tool.tool.indexOf(45) != -1 &&
  6139. (tool.testJson.testJson[0].answer ||
  6140. tool.testJson.testJson[0].answer === 0) &&
  6141. checkJson[toolIndex].length
  6142. "
  6143. class="xuan_right_box"
  6144. >
  6145. <div
  6146. class="tool_right_box"
  6147. v-for="(item, index) in tool.testJson.testJson"
  6148. :key="index"
  6149. >
  6150. <div class="right_box_xuan" style="margin-right: 10px">
  6151. <span>正确率</span>
  6152. <span>{{
  6153. (checkJson[toolIndex][index].right
  6154. ? checkJson[toolIndex][index].right
  6155. : 0) + "%"
  6156. }}</span>
  6157. </div>
  6158. <div style="width: calc(100% - 30px);">
  6159. <el-tooltip
  6160. effect="light"
  6161. :content="index + 1 + '、' + item.teststitle"
  6162. placement="top"
  6163. popper-class="text_tooltip"
  6164. >
  6165. <div
  6166. style="
  6167. width: calc(100% - 130px);
  6168. display: flex;
  6169. white-space: nowrap;
  6170. overflow: hidden;
  6171. text-overflow: ellipsis;
  6172. word-break: break-word;
  6173. cursor: pointer;
  6174. "
  6175. class="renderedFor"
  6176. >
  6177. {{ index + 1 + "、" }} <span v-html="renderedFormula(item.teststitle)"></span>
  6178. </div>
  6179. </el-tooltip>
  6180. </div>
  6181. </div>
  6182. </div>
  6183. <div
  6184. class="xuan_right_box"
  6185. style="background: unset; padding: 0 10px; width: 91.5%"
  6186. v-if="
  6187. tType &&
  6188. ((tType == 2 && sIsOpen == true) ||
  6189. tType == 1 ||
  6190. tType == 4) &&
  6191. tool.tool.indexOf(45) != -1
  6192. "
  6193. >
  6194. <AskStatic2
  6195. v-if="
  6196. worksStudent.length &&
  6197. worksStudent[toolIndex].length > 0
  6198. "
  6199. :askJSON="tool"
  6200. :checkJson="checkJson[toolIndex]"
  6201. ></AskStatic2>
  6202. </div>
  6203. <div
  6204. v-if="
  6205. tType &&
  6206. ((tType == 2 && sIsOpen == true) ||
  6207. tType == 1 ||
  6208. tType == 4) &&
  6209. tool.tool.indexOf(45) != -1
  6210. "
  6211. class="worksBox"
  6212. >
  6213. <div
  6214. class="zuoyeYulan"
  6215. v-if="
  6216. worksStudent.length &&
  6217. worksStudent[toolIndex].length > 0
  6218. "
  6219. >
  6220. <div class="worksTop">
  6221. <div>作业预览</div>
  6222. <div
  6223. class="corOpen"
  6224. @click="contract(toolIndex)"
  6225. v-if="
  6226. isCloseList[toolIndex].isCloseBoolean &&
  6227. isCloseList[toolIndex].isClose == 0
  6228. "
  6229. >
  6230. 折叠
  6231. </div>
  6232. <div
  6233. class="corOpen"
  6234. @click="contract(toolIndex)"
  6235. v-if="isCloseList[toolIndex].isClose == 1"
  6236. >
  6237. 展开
  6238. </div>
  6239. </div>
  6240. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6241. </div>
  6242. <div>
  6243. <div
  6244. :id="'tool-' + toolIndex"
  6245. :style="{
  6246. height:
  6247. isCloseList[toolIndex].isClose == 1
  6248. ? retrnToolHeight('tool-' + toolIndex)
  6249. : 'auto',
  6250. overflow:
  6251. isCloseList[toolIndex].isClose == 1
  6252. ? 'hidden'
  6253. : 'unset'
  6254. }"
  6255. class="worksDetailBox"
  6256. v-if="
  6257. worksStudent.length &&
  6258. worksStudent[toolIndex].length > 0
  6259. "
  6260. >
  6261. <div
  6262. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6263. :key="wIndex"
  6264. class="isWorksName2"
  6265. @click="
  6266. openTools(
  6267. 45,
  6268. toolIndex,
  6269. taskCount,
  6270. w.works,
  6271. w.sName
  6272. )
  6273. "
  6274. >
  6275. {{ w.sName }}
  6276. <img
  6277. class="deleteImg deleteImg2"
  6278. src="../../assets/deleteworks.png"
  6279. v-if="
  6280. w.userid == userid || tType == 1 || tType == 4
  6281. "
  6282. @click.stop="deleteWorks(w.wid)"
  6283. alt
  6284. />
  6285. </div>
  6286. </div>
  6287. </div>
  6288. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6289. 未提交
  6290. </div>
  6291. <div
  6292. class="noWorksS"
  6293. v-if="noWorksS && noWorksS[toolIndex].length"
  6294. >
  6295. <div
  6296. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6297. :key="sIndex"
  6298. class="noWorksName"
  6299. @click="teacherWorkSubmit(45, toolIndex, taskCount, s)"
  6300. >
  6301. <el-tooltip
  6302. effect="dark"
  6303. :content="s.student"
  6304. placement="top"
  6305. >
  6306. <span>{{ s.student }}</span>
  6307. </el-tooltip>
  6308. </div>
  6309. </div>
  6310. </div>
  6311. <div
  6312. v-if="
  6313. tType &&
  6314. ((tType == 2 && sIsOpen == true) ||
  6315. tType == 1 ||
  6316. tType == 4) &&
  6317. tool.tool.indexOf(69) != -1
  6318. "
  6319. class="worksBox"
  6320. >
  6321. <div
  6322. class="zuoyeYulan"
  6323. v-if="
  6324. worksStudent.length &&
  6325. worksStudent[toolIndex].length > 0
  6326. "
  6327. >
  6328. <div class="worksTop">
  6329. <div>作业预览</div>
  6330. <div
  6331. class="corOpen"
  6332. @click="contract(toolIndex)"
  6333. v-if="
  6334. isCloseList[toolIndex].isCloseBoolean &&
  6335. isCloseList[toolIndex].isClose == 0
  6336. "
  6337. >
  6338. 折叠
  6339. </div>
  6340. <div
  6341. class="corOpen"
  6342. @click="contract(toolIndex)"
  6343. v-if="isCloseList[toolIndex].isClose == 1"
  6344. >
  6345. 展开
  6346. </div>
  6347. </div>
  6348. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6349. </div>
  6350. <div>
  6351. <div
  6352. :id="'tool-' + toolIndex"
  6353. :style="{
  6354. height:
  6355. isCloseList[toolIndex].isClose == 1
  6356. ? retrnToolHeight('tool-' + toolIndex)
  6357. : 'auto',
  6358. overflow:
  6359. isCloseList[toolIndex].isClose == 1
  6360. ? 'hidden'
  6361. : 'unset'
  6362. }"
  6363. class="worksDetailBox"
  6364. v-if="
  6365. worksStudent.length &&
  6366. worksStudent[toolIndex].length > 0
  6367. "
  6368. >
  6369. <div
  6370. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6371. :key="wIndex"
  6372. class="isWorksName2"
  6373. style="width: 160px;height: 65px;line-height: 65px;"
  6374. @click="
  6375. openTools(
  6376. 69,
  6377. toolIndex,
  6378. taskCount,
  6379. w.works,
  6380. w.sName,
  6381. w.wid
  6382. )
  6383. "
  6384. >
  6385. {{ w.sName }}
  6386. <img
  6387. class="deleteImg1"
  6388. src="../../assets/evaEnglish.png"
  6389. @click.stop="openEnglishEva(w.wid, toolIndex)"
  6390. alt
  6391. v-if="
  6392. (courseDetail &&
  6393. (courseDetail.userid == userid ||
  6394. (courseDetail.course_teacher &&
  6395. courseDetail.course_teacher.indexOf(
  6396. userid
  6397. ) != -1))) ||
  6398. w.aiCode || w.teacherCode
  6399. "
  6400. />
  6401. <img
  6402. class="deleteImg deleteImg2"
  6403. src="../../assets/deleteworks.png"
  6404. v-if="
  6405. w.userid == userid || tType == 1 || tType == 4
  6406. "
  6407. @click.stop="deleteWorks(w.wid)"
  6408. alt
  6409. />
  6410. </div>
  6411. </div>
  6412. </div>
  6413. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6414. 未提交
  6415. </div>
  6416. <div
  6417. class="noWorksS"
  6418. v-if="noWorksS && noWorksS[toolIndex].length"
  6419. >
  6420. <div
  6421. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6422. :key="sIndex"
  6423. class="noWorksName"
  6424. @click="teacherWorkSubmit(69, toolIndex, taskCount, s)"
  6425. >
  6426. <el-tooltip
  6427. effect="dark"
  6428. :content="s.student"
  6429. placement="top"
  6430. >
  6431. <span>{{ s.student }}</span>
  6432. </el-tooltip>
  6433. </div>
  6434. </div>
  6435. </div>
  6436. <div
  6437. v-if="
  6438. tType &&
  6439. ((tType == 2 && sIsOpen == true) ||
  6440. tType == 1 ||
  6441. tType == 4) &&
  6442. tool.tool.indexOf(15) != -1
  6443. "
  6444. class="worksBox"
  6445. >
  6446. <div
  6447. class="zuoyeYulan"
  6448. v-if="
  6449. (worksStudent.length &&
  6450. worksStudent[toolIndex].length > 0) ||
  6451. (courseGroup.group && courseGroup.group.length)
  6452. "
  6453. >
  6454. <div class="worksTop">
  6455. <div>作业预览</div>
  6456. <div
  6457. class="corOpen"
  6458. @click="contract(toolIndex)"
  6459. v-if="
  6460. isCloseList[toolIndex].isCloseBoolean &&
  6461. isCloseList[toolIndex].isClose == 0
  6462. "
  6463. >
  6464. 折叠
  6465. </div>
  6466. <div
  6467. class="corOpen"
  6468. @click="contract(toolIndex)"
  6469. v-if="isCloseList[toolIndex].isClose == 1"
  6470. >
  6471. 展开
  6472. </div>
  6473. </div>
  6474. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  6475. </div>
  6476. <div
  6477. class="group_workBox"
  6478. v-for="(g, gindex) in courseGroup.group"
  6479. :key="gindex"
  6480. >
  6481. <div class="group_box">
  6482. <div class="group_title">
  6483. <el-tooltip
  6484. class="item"
  6485. effect="light"
  6486. :content="g.name"
  6487. placement="top"
  6488. >
  6489. <div class="group_name">{{ g.name }}</div>
  6490. </el-tooltip>
  6491. </div>
  6492. <div
  6493. class="group_work"
  6494. v-if="
  6495. g.works &&
  6496. g.works.length &&
  6497. g.works[toolIndex].length
  6498. "
  6499. >
  6500. <div
  6501. class="works"
  6502. v-for="(w, wIndex) in g.works[toolIndex]"
  6503. :key="wIndex"
  6504. >
  6505. <div
  6506. class="workImg"
  6507. style="
  6508. border-radius: 15px;
  6509. box-shadow: 0px 0px 5px 5px #eee;
  6510. "
  6511. >
  6512. <div
  6513. class="answerBg"
  6514. style="border-radius: 15px 15px 0 0"
  6515. @click="
  6516. commentOther(w, toolIndex, wIndex, null, g.id)
  6517. "
  6518. >
  6519. <div class="answerContent">
  6520. {{ JSON.parse(w.works)[0].answer }}
  6521. </div>
  6522. <div
  6523. class="answerScore"
  6524. v-if="w.score"
  6525. @click.stop="openScore(w)"
  6526. :class="{
  6527. rightW:
  6528. w.userid == userid ||
  6529. tType == 1 ||
  6530. tType == 4
  6531. }"
  6532. >
  6533. {{ JSON.parse(w.score).wScore }}分
  6534. </div>
  6535. <div
  6536. class="answerScore"
  6537. @click.stop="openScore(w)"
  6538. v-else-if="
  6539. courseDetail.userid == userid &&
  6540. courseDetail.state != 6 &&
  6541. chapInfoList[courseType].chapterInfo[0]
  6542. .taskJson[taskCount].eList &&
  6543. chapInfoList[courseType].chapterInfo[0]
  6544. .taskJson[taskCount].eList.length
  6545. "
  6546. :class="{
  6547. rightW:
  6548. w.userid == userid ||
  6549. tType == 1 ||
  6550. tType == 4
  6551. }"
  6552. >
  6553. 评分
  6554. </div>
  6555. <!-- <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"> -->
  6556. <div
  6557. v-else-if="
  6558. (courseDetail.userid == userid ||
  6559. (courseDetail.course_teacher &&
  6560. courseDetail.course_teacher.indexOf(
  6561. userid
  6562. ) != -1) ||
  6563. (w.userid == userid && sIsOpen)) &&
  6564. courseDetail.state == 6 &&
  6565. ((chapInfoList[courseType].chapterInfo[0]
  6566. .taskJson[taskCount].eList &&
  6567. chapInfoList[courseType].chapterInfo[0]
  6568. .taskJson[taskCount].eList.length) ||
  6569. (tool.eList && tool.eList.length))
  6570. "
  6571. >
  6572. <el-popover
  6573. placement="top"
  6574. width="318"
  6575. :disabled="
  6576. AIloading[toolIndex][wIndex].loading
  6577. "
  6578. trigger="hover"
  6579. >
  6580. <markScore
  6581. :loading="
  6582. AIloading[toolIndex][wIndex].loading
  6583. "
  6584. :markScoreVisible="markScoreVisible"
  6585. :ref="`markSco${toolIndex}${wIndex}`"
  6586. @updateLoading="updateLoading"
  6587. @updateDocSco="updateDocSco"
  6588. @refreshOther="refreshOther"
  6589. @markScoreDig="markScoreDig"
  6590. :tool="tool"
  6591. :wIndex="wIndex"
  6592. :scoCon="w"
  6593. :toolIndex="toolIndex"
  6594. :key="refreshKey"
  6595. :stage="courseType"
  6596. :task="taskCount"
  6597. :scoTit="
  6598. chapInfoList[courseType].chapterInfo[0]
  6599. .taskJson[taskCount].eList
  6600. "
  6601. >
  6602. </markScore>
  6603. <div
  6604. class="answerScore"
  6605. @click.stop="
  6606. markScoreDig2(
  6607. w.sName,
  6608. worksStudent,
  6609. w.userid,
  6610. toolIndex,
  6611. chapInfoList[courseType]
  6612. .chapterInfo[0].taskJson[taskCount]
  6613. .eList,
  6614. AIloading[toolIndex][wIndex].loading,
  6615. tool
  6616. )
  6617. "
  6618. slot="reference"
  6619. :class="{
  6620. rightW:
  6621. w.userid == userid ||
  6622. tType == 1 ||
  6623. tType == 4 ||
  6624. w.ateacher == userid
  6625. }"
  6626. >
  6627. <span
  6628. v-if="AIloading[toolIndex][wIndex].sco"
  6629. >
  6630. {{
  6631. AIloading[toolIndex][wIndex].loading
  6632. ? "评分中"
  6633. : AIloading[toolIndex][wIndex].sco +
  6634. "分"
  6635. }}
  6636. </span>
  6637. <span v-else>
  6638. {{
  6639. AIloading[toolIndex][wIndex].loading
  6640. ? "评分中"
  6641. : "评分"
  6642. }}
  6643. </span>
  6644. </div>
  6645. </el-popover>
  6646. </div>
  6647. <img
  6648. class="deleteImg"
  6649. src="../../assets/deleteworks.png"
  6650. v-if="
  6651. w.userid == userid ||
  6652. tType == 1 ||
  6653. tType == 4
  6654. "
  6655. @click.stop="deleteWorks(w.wid)"
  6656. alt
  6657. />
  6658. </div>
  6659. <div class="comment">
  6660. <div class="worksName">
  6661. <div>{{ w.sName }}</div>
  6662. </div>
  6663. <div class="commentList">
  6664. <div
  6665. class="commentImg"
  6666. @click="
  6667. isLikes(
  6668. w.wid,
  6669. userid,
  6670. 1,
  6671. null,
  6672. w.isLikes,
  6673. w.sName
  6674. )
  6675. "
  6676. >
  6677. <img
  6678. :src="w.isLikes == true ? likes : noLikes"
  6679. alt=""
  6680. />
  6681. </div>
  6682. <div>{{ w.likesCount }}</div>
  6683. </div>
  6684. <div
  6685. class="commentList"
  6686. style="margin-right: 15px"
  6687. >
  6688. <div
  6689. class="commentImg"
  6690. @click="
  6691. commentOther(
  6692. w,
  6693. toolIndex,
  6694. wIndex,
  6695. null,
  6696. g.id
  6697. )
  6698. "
  6699. >
  6700. <img
  6701. src="../../assets/icon/comment/comment.png"
  6702. alt=""
  6703. />
  6704. </div>
  6705. <div>{{ w.commentCount }}</div>
  6706. </div>
  6707. </div>
  6708. </div>
  6709. </div>
  6710. </div>
  6711. <div class="group_work" v-else>暂无提交作业</div>
  6712. </div>
  6713. </div>
  6714. <div
  6715. :id="'tool-' + toolIndex"
  6716. :style="{
  6717. height:
  6718. isCloseList[toolIndex].isClose == 1
  6719. ? retrnToolHeight('tool-' + toolIndex)
  6720. : 'auto',
  6721. overflow:
  6722. isCloseList[toolIndex].isClose == 1
  6723. ? 'hidden'
  6724. : 'unset'
  6725. }"
  6726. class="worksDetailBox"
  6727. v-if="
  6728. worksStudent.length &&
  6729. worksStudent[toolIndex].length > 0
  6730. "
  6731. >
  6732. <div
  6733. class="works"
  6734. v-for="(w, wIndex) in worksStudent[toolIndex]"
  6735. :key="wIndex"
  6736. >
  6737. <div
  6738. class="workImg"
  6739. style="
  6740. border-radius: 15px;
  6741. box-shadow: 0px 0px 5px 5px #eee;
  6742. "
  6743. >
  6744. <!-- <img
  6745. src="../../assets/icon/works/noImg.png"
  6746. @click="openTools(15, toolIndex, taskCount, w.works)"
  6747. alt=""
  6748. />-->
  6749. <div
  6750. class="answerBg"
  6751. style="border-radius: 15px 15px 0 0"
  6752. @click="commentOther(w, toolIndex, wIndex)"
  6753. >
  6754. <!-- <div>{{ w.sName }}</div> -->
  6755. <div class="answerContent">
  6756. {{ JSON.parse(w.works)[0].answer }}
  6757. </div>
  6758. <div
  6759. class="answerScore"
  6760. v-if="w.score"
  6761. @click.stop="openScore(w)"
  6762. :class="{
  6763. rightW:
  6764. w.userid == userid || tType == 1 || tType == 4
  6765. }"
  6766. >
  6767. {{ JSON.parse(w.score).wScore }}分
  6768. </div>
  6769. <div
  6770. class="answerScore"
  6771. @click.stop="openScore(w)"
  6772. v-else-if="
  6773. courseDetail.userid == userid &&
  6774. courseDetail.state != 6 &&
  6775. chapInfoList[courseType].chapterInfo[0]
  6776. .taskJson[taskCount].eList &&
  6777. chapInfoList[courseType].chapterInfo[0]
  6778. .taskJson[taskCount].eList.length
  6779. "
  6780. :class="{
  6781. rightW:
  6782. w.userid == userid || tType == 1 || tType == 4
  6783. }"
  6784. >
  6785. 评分
  6786. </div>
  6787. <!-- <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"> -->
  6788. <div
  6789. v-else-if="
  6790. (courseDetail.userid == userid ||
  6791. (courseDetail.course_teacher &&
  6792. courseDetail.course_teacher.indexOf(
  6793. userid
  6794. ) != -1) ||
  6795. (w.userid == userid && sIsOpen)) &&
  6796. courseDetail.state == 6 &&
  6797. ((chapInfoList[courseType].chapterInfo[0]
  6798. .taskJson[taskCount].eList &&
  6799. chapInfoList[courseType].chapterInfo[0]
  6800. .taskJson[taskCount].eList.length) ||
  6801. (tool.eList && tool.eList.length))
  6802. "
  6803. >
  6804. <el-popover
  6805. placement="top"
  6806. width="318"
  6807. :disabled="AIloading[toolIndex][wIndex].loading"
  6808. trigger="hover"
  6809. >
  6810. <markScore
  6811. :loading="
  6812. AIloading[toolIndex][wIndex].loading
  6813. "
  6814. :markScoreVisible="markScoreVisible"
  6815. :ref="`markSco${toolIndex}${wIndex}`"
  6816. @updateLoading="updateLoading"
  6817. @updateDocSco="updateDocSco"
  6818. @refreshOther="refreshOther"
  6819. @markScoreDig="markScoreDig"
  6820. :tool="tool"
  6821. :wIndex="wIndex"
  6822. :scoCon="w"
  6823. :toolIndex="toolIndex"
  6824. :key="refreshKey"
  6825. :stage="courseType"
  6826. :task="taskCount"
  6827. :scoTit="
  6828. chapInfoList[courseType].chapterInfo[0]
  6829. .taskJson[taskCount].eList
  6830. "
  6831. >
  6832. </markScore>
  6833. <div
  6834. class="answerScore"
  6835. @click.stop="
  6836. markScoreDig2(
  6837. w.sName,
  6838. worksStudent,
  6839. w.userid,
  6840. toolIndex,
  6841. chapInfoList[courseType].chapterInfo[0]
  6842. .taskJson[taskCount].eList,
  6843. AIloading[toolIndex][wIndex].loading,
  6844. tool
  6845. )
  6846. "
  6847. slot="reference"
  6848. :class="{
  6849. rightW:
  6850. w.userid == userid ||
  6851. tType == 1 ||
  6852. tType == 4 ||
  6853. w.ateacher == userid
  6854. }"
  6855. >
  6856. <span v-if="AIloading[toolIndex][wIndex].sco">
  6857. {{
  6858. AIloading[toolIndex][wIndex].loading
  6859. ? "评分中"
  6860. : AIloading[toolIndex][wIndex].sco +
  6861. "分"
  6862. }}
  6863. </span>
  6864. <span v-else>
  6865. {{
  6866. AIloading[toolIndex][wIndex].loading
  6867. ? "评分中"
  6868. : "评分"
  6869. }}
  6870. </span>
  6871. </div>
  6872. </el-popover>
  6873. </div>
  6874. <img
  6875. class="deleteImg"
  6876. src="../../assets/deleteworks.png"
  6877. v-if="
  6878. w.userid == userid || tType == 1 || tType == 4
  6879. "
  6880. @click.stop="deleteWorks(w.wid)"
  6881. alt
  6882. />
  6883. </div>
  6884. <div class="comment">
  6885. <div class="worksName">
  6886. <div>{{ w.sName }}</div>
  6887. </div>
  6888. <div class="commentList">
  6889. <div
  6890. class="commentImg"
  6891. @click="
  6892. isLikes(
  6893. w.wid,
  6894. userid,
  6895. 1,
  6896. null,
  6897. w.isLikes,
  6898. w.sName
  6899. )
  6900. "
  6901. >
  6902. <img
  6903. :src="w.isLikes == true ? likes : noLikes"
  6904. alt=""
  6905. />
  6906. </div>
  6907. <div>{{ w.likesCount }}</div>
  6908. </div>
  6909. <div class="commentList" style="margin-right: 15px">
  6910. <div
  6911. class="commentImg"
  6912. @click="commentOther(w, toolIndex, wIndex)"
  6913. >
  6914. <img
  6915. src="../../assets/icon/comment/comment.png"
  6916. alt=""
  6917. />
  6918. </div>
  6919. <div>{{ w.commentCount }}</div>
  6920. </div>
  6921. </div>
  6922. </div>
  6923. </div>
  6924. </div>
  6925. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  6926. 未提交
  6927. </div>
  6928. <div
  6929. class="noWorksS"
  6930. v-if="noWorksS && noWorksS[toolIndex].length"
  6931. >
  6932. <div
  6933. v-for="(s, sIndex) in noWorksS[toolIndex]"
  6934. :key="sIndex"
  6935. class="noWorksName"
  6936. @click="teacherWorkSubmit(15, toolIndex, taskCount, s)"
  6937. >
  6938. <el-tooltip
  6939. effect="dark"
  6940. :content="s.student"
  6941. placement="top"
  6942. >
  6943. <span>{{ s.student }}</span>
  6944. </el-tooltip>
  6945. </div>
  6946. </div>
  6947. </div>
  6948. <div
  6949. v-if="
  6950. tType &&
  6951. ((tType == 2 && sIsOpen == true) ||
  6952. tType == 1 ||
  6953. tType == 4) &&
  6954. tool.tool.indexOf(1) != -1
  6955. "
  6956. class="worksBox"
  6957. >
  6958. <div
  6959. class="zuoyeYulan"
  6960. style="display: flex;justify-content: space-between;align-items: center;"
  6961. v-if="
  6962. (worksStudent.length &&
  6963. worksStudent[toolIndex].length > 0) ||
  6964. (courseGroup.group && courseGroup.group.length)
  6965. "
  6966. >
  6967. <div class="worksTop">
  6968. <div>作业预览</div>
  6969. <div
  6970. class="corOpen"
  6971. @click="contract(toolIndex)"
  6972. v-if="
  6973. isCloseList[toolIndex].isCloseBoolean &&
  6974. isCloseList[toolIndex].isClose == 0
  6975. "
  6976. >
  6977. 折叠
  6978. </div>
  6979. <div
  6980. class="corOpen"
  6981. @click="contract(toolIndex)"
  6982. v-if="isCloseList[toolIndex].isClose == 1"
  6983. >
  6984. 展开
  6985. </div>
  6986. </div>
  6987. <div
  6988. style="display: flex;"
  6989. v-if="
  6990. (courseDetail.userid == userid ||
  6991. (courseDetail.course_teacher &&
  6992. courseDetail.course_teacher.indexOf(userid) !=
  6993. -1)) &&
  6994. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  6995. taskCount
  6996. ].eList &&
  6997. chapInfoList[courseType].chapterInfo[0].taskJson[
  6998. taskCount
  6999. ].eList.length) ||
  7000. (tool.eList && tool.eList.length)) &&
  7001. courseDetail.state == 6
  7002. "
  7003. >
  7004. <div
  7005. style="margin-right:10px"
  7006. class="ScoreBtn"
  7007. @click="
  7008. resetLoopEva(
  7009. worksStudent[toolIndex],
  7010. chapInfoList[courseType].chapterInfo[0].taskJson[
  7011. taskCount
  7012. ].eList,
  7013. courseType,
  7014. taskCount,
  7015. toolIndex,
  7016. tool.toolDetail,
  7017. worksStudent
  7018. )
  7019. "
  7020. >
  7021. 一键重置
  7022. </div>
  7023. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7024. <img
  7025. src="../../assets/icon/newIcons/rootImg.png"
  7026. alt=""
  7027. />
  7028. AI评分
  7029. </div>
  7030. <div
  7031. class="ScoreBtn"
  7032. v-else-if="!loopLoading[toolIndex].loading"
  7033. @click="
  7034. loopEva(
  7035. worksStudent[toolIndex],
  7036. chapInfoList[courseType].chapterInfo[0].taskJson[
  7037. taskCount
  7038. ].eList,
  7039. courseType,
  7040. taskCount,
  7041. toolIndex,
  7042. tool.toolDetail,
  7043. chapInfoList[courseType].chapterInfo[0].taskJson[
  7044. taskCount
  7045. ].taskDetail,
  7046. tool
  7047. )
  7048. "
  7049. >
  7050. <img
  7051. src="../../assets/icon/newIcons/rootImg.png"
  7052. alt=""
  7053. />
  7054. AI评分
  7055. </div>
  7056. <div class="ScoreBtn" v-else>
  7057. <img
  7058. src="../../assets/icon/newIcons/rootImg.png"
  7059. alt=""
  7060. />
  7061. 正在评分
  7062. </div>
  7063. </div>
  7064. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7065. </div>
  7066. <div
  7067. class="group_workBox"
  7068. v-for="(g, gindex) in courseGroup.group"
  7069. :key="gindex"
  7070. >
  7071. <div class="group_box">
  7072. <div class="group_title">
  7073. <el-tooltip
  7074. class="item"
  7075. effect="light"
  7076. :content="g.name"
  7077. placement="top"
  7078. >
  7079. <div class="group_name">{{ g.name }}</div>
  7080. </el-tooltip>
  7081. </div>
  7082. <div
  7083. class="group_work"
  7084. v-if="
  7085. g.works &&
  7086. g.works.length &&
  7087. g.works[toolIndex].length
  7088. "
  7089. >
  7090. <div
  7091. class="works"
  7092. style="
  7093. width: 200px;
  7094. height: 140px;
  7095. margin: 10px 10px 10px 0;
  7096. border-radius: 15px;
  7097. box-shadow: 0 0 6px 1px #dfdada;
  7098. "
  7099. v-for="(w, wIndex) in g.works[toolIndex]"
  7100. :key="wIndex"
  7101. :class="w.type == 1 ? 'isTypeOne' : ''"
  7102. >
  7103. <div class="workImg">
  7104. <img
  7105. :src="w.works"
  7106. @click="previewImg(w.works, w)"
  7107. alt
  7108. />
  7109. <div
  7110. class="answerScore"
  7111. v-if="w.score"
  7112. @click.stop="openScore(w)"
  7113. :class="{
  7114. rightW:
  7115. w.userid == userid ||
  7116. tType == 1 ||
  7117. tType == 4
  7118. }"
  7119. >
  7120. {{ JSON.parse(w.score).wScore }}分
  7121. </div>
  7122. <div
  7123. class="answerScore"
  7124. @click.stop="openScore(w)"
  7125. v-else-if="courseDetail.userid == userid"
  7126. :class="{
  7127. rightW:
  7128. w.userid == userid ||
  7129. tType == 1 ||
  7130. tType == 4
  7131. }"
  7132. >
  7133. 评分
  7134. </div>
  7135. <img
  7136. class="deleteImg"
  7137. src="../../assets/deleteworks.png"
  7138. v-if="
  7139. w.userid == userid || tType == 1 || tType == 4
  7140. "
  7141. @click.stop="deleteWorks(w.wid)"
  7142. alt
  7143. />
  7144. </div>
  7145. <div class="comment" style="min-width: 200px">
  7146. <div class="worksName">
  7147. <div>{{ w.sName }}</div>
  7148. </div>
  7149. <div class="commentList">
  7150. <div class="commentList">
  7151. <div
  7152. class="commentImg"
  7153. @click="
  7154. isLikes(
  7155. w.wid,
  7156. userid,
  7157. 1,
  7158. null,
  7159. w.isLikes,
  7160. w.sName
  7161. )
  7162. "
  7163. >
  7164. <img
  7165. :src="w.isLikes == true ? likes : noLikes"
  7166. alt=""
  7167. />
  7168. </div>
  7169. <div>{{ w.likesCount }}</div>
  7170. </div>
  7171. <div
  7172. class="commentList"
  7173. style="margin-right: 15px"
  7174. >
  7175. <div
  7176. class="commentImg"
  7177. @click="
  7178. commentOther(
  7179. w,
  7180. toolIndex,
  7181. wIndex,
  7182. null,
  7183. g.id
  7184. )
  7185. "
  7186. >
  7187. <img
  7188. src="../../assets/icon/comment/comment.png"
  7189. alt=""
  7190. />
  7191. </div>
  7192. <div>{{ w.commentCount }}</div>
  7193. </div>
  7194. </div>
  7195. </div>
  7196. </div>
  7197. </div>
  7198. <div class="group_work" v-else>暂无提交作业</div>
  7199. </div>
  7200. </div>
  7201. <div
  7202. :id="'tool-' + toolIndex"
  7203. :style="{
  7204. height:
  7205. isCloseList[toolIndex].isClose == 1
  7206. ? retrnToolHeight('tool-' + toolIndex)
  7207. : 'auto',
  7208. overflow:
  7209. isCloseList[toolIndex].isClose == 1
  7210. ? 'hidden'
  7211. : 'unset'
  7212. }"
  7213. class="worksDetailBox"
  7214. v-if="
  7215. worksStudent.length &&
  7216. worksStudent[toolIndex].length > 0
  7217. "
  7218. >
  7219. <div
  7220. class="works"
  7221. style="
  7222. width: 200px;
  7223. height: 140px;
  7224. margin: 10px 10px 10px 0;
  7225. border-radius: 15px;
  7226. box-shadow: 0 0 6px 1px #dfdada;
  7227. "
  7228. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7229. :key="wIndex"
  7230. >
  7231. <!-- @click="previewImg(w.works)" @click="commentOther(w, toolIndex, wIndex)"-->
  7232. <div class="workImg">
  7233. <img
  7234. :src="w.works"
  7235. @click="previewImg(w.works, w)"
  7236. alt
  7237. />
  7238. <div
  7239. class="answerScore"
  7240. v-if="w.score"
  7241. @click.stop="openScore(w)"
  7242. :class="{
  7243. rightW:
  7244. w.userid == userid || tType == 1 || tType == 4
  7245. }"
  7246. >
  7247. {{ JSON.parse(w.score).wScore }}分
  7248. </div>
  7249. <div
  7250. class="answerScore"
  7251. @click.stop="openScore(w)"
  7252. v-else-if="
  7253. courseDetail.userid == userid &&
  7254. courseDetail.state != 6 &&
  7255. chapInfoList[courseType].chapterInfo[0]
  7256. .taskJson[taskCount].eList &&
  7257. chapInfoList[courseType].chapterInfo[0]
  7258. .taskJson[taskCount].eList.length
  7259. "
  7260. :class="{
  7261. rightW:
  7262. w.userid == userid || tType == 1 || tType == 4
  7263. }"
  7264. >
  7265. 评分
  7266. </div>
  7267. <div
  7268. v-else-if="
  7269. (courseDetail.userid == userid ||
  7270. (courseDetail.course_teacher &&
  7271. courseDetail.course_teacher.indexOf(userid) !=
  7272. -1) ||
  7273. (courseDetail.course_teacher &&
  7274. courseDetail.course_teacher.indexOf(userid) !=
  7275. -1) ||
  7276. (courseDetail.course_teacher &&
  7277. courseDetail.course_teacher.indexOf(userid) !=
  7278. -1) ||
  7279. (w.userid == userid && sIsOpen)) &&
  7280. courseDetail.state == 6 &&
  7281. ((chapInfoList[courseType].chapterInfo[0]
  7282. .taskJson[taskCount].eList &&
  7283. chapInfoList[courseType].chapterInfo[0]
  7284. .taskJson[taskCount].eList.length) ||
  7285. (tool.eList && tool.eList.length))
  7286. "
  7287. >
  7288. <el-popover
  7289. placement="top"
  7290. width="318"
  7291. :disabled="AIloading[toolIndex][wIndex].loading"
  7292. trigger="hover"
  7293. >
  7294. <markScore
  7295. :loading="AIloading[toolIndex][wIndex].loading"
  7296. :markScoreVisible="markScoreVisible"
  7297. :ref="`markSco${toolIndex}${wIndex}`"
  7298. @updateLoading="updateLoading"
  7299. @updateDocSco="updateDocSco"
  7300. @refreshOther="refreshOther"
  7301. @markScoreDig="markScoreDig"
  7302. :tool="tool"
  7303. :wIndex="wIndex"
  7304. :scoCon="w"
  7305. :toolIndex="toolIndex"
  7306. :key="refreshKey"
  7307. :stage="courseType"
  7308. :task="taskCount"
  7309. :scoTit="
  7310. chapInfoList[courseType].chapterInfo[0]
  7311. .taskJson[taskCount].eList
  7312. "
  7313. >
  7314. </markScore>
  7315. <div
  7316. class="answerScore"
  7317. @click="
  7318. markScoreDig2(
  7319. w.sName,
  7320. worksStudent,
  7321. w.userid,
  7322. toolIndex,
  7323. chapInfoList[courseType].chapterInfo[0]
  7324. .taskJson[taskCount].eList,
  7325. AIloading[toolIndex][wIndex].loading,
  7326. tool
  7327. )
  7328. "
  7329. slot="reference"
  7330. :class="{
  7331. rightW:
  7332. w.userid == userid ||
  7333. tType == 1 ||
  7334. tType == 4 ||
  7335. w.ateacher == userid
  7336. }"
  7337. >
  7338. <span v-if="AIloading[toolIndex][wIndex].sco">
  7339. {{
  7340. AIloading[toolIndex][wIndex].loading
  7341. ? "评分中"
  7342. : AIloading[toolIndex][wIndex].sco + "分"
  7343. }}
  7344. </span>
  7345. <span v-else>
  7346. {{
  7347. AIloading[toolIndex][wIndex].loading
  7348. ? "评分中"
  7349. : "评分"
  7350. }}
  7351. </span>
  7352. </div>
  7353. </el-popover>
  7354. </div>
  7355. <img
  7356. class="deleteImg"
  7357. src="../../assets/deleteworks.png"
  7358. v-if="
  7359. w.userid == userid || tType == 1 || tType == 4
  7360. "
  7361. @click.stop="deleteWorks(w.wid)"
  7362. alt
  7363. />
  7364. </div>
  7365. <div class="comment" style="min-width: 200px">
  7366. <div class="worksName">
  7367. <div>{{ w.sName }}</div>
  7368. </div>
  7369. <div class="commentList">
  7370. <div class="commentList">
  7371. <div
  7372. class="commentImg"
  7373. @click="
  7374. isLikes(
  7375. w.wid,
  7376. userid,
  7377. 1,
  7378. null,
  7379. w.isLikes,
  7380. w.sName
  7381. )
  7382. "
  7383. >
  7384. <img
  7385. :src="w.isLikes == true ? likes : noLikes"
  7386. alt=""
  7387. />
  7388. </div>
  7389. <div>{{ w.likesCount }}</div>
  7390. </div>
  7391. <div class="commentList" style="margin-right: 15px">
  7392. <div
  7393. class="commentImg"
  7394. @click="commentOther(w, toolIndex, wIndex)"
  7395. >
  7396. <img
  7397. src="../../assets/icon/comment/comment.png"
  7398. alt=""
  7399. />
  7400. </div>
  7401. <div>{{ w.commentCount }}</div>
  7402. </div>
  7403. </div>
  7404. </div>
  7405. </div>
  7406. </div>
  7407. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7408. 未提交
  7409. </div>
  7410. <div
  7411. class="noWorksS"
  7412. v-if="noWorksS && noWorksS[toolIndex].length"
  7413. >
  7414. <div
  7415. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7416. :key="sIndex"
  7417. class="noWorksName"
  7418. @click="teacherWorkSubmit(1, toolIndex, taskCount, s)"
  7419. >
  7420. <el-tooltip
  7421. effect="dark"
  7422. :content="s.student"
  7423. placement="top"
  7424. >
  7425. <span>{{ s.student }}</span>
  7426. </el-tooltip>
  7427. </div>
  7428. </div>
  7429. </div>
  7430. <div
  7431. v-if="
  7432. tType &&
  7433. ((tType == 2 && sIsOpen == true) ||
  7434. tType == 1 ||
  7435. tType == 4) &&
  7436. tool.tool.indexOf(3) != -1
  7437. "
  7438. class="worksBox"
  7439. >
  7440. <div
  7441. class="zuoyeYulan"
  7442. style="display: flex;justify-content: space-between;align-items: center;"
  7443. v-if="
  7444. (worksStudent.length &&
  7445. worksStudent[toolIndex].length > 0) ||
  7446. (courseGroup.group && courseGroup.group.length)
  7447. "
  7448. >
  7449. <div class="worksTop">
  7450. <div>作业预览</div>
  7451. <div
  7452. class="corOpen"
  7453. @click="contract(toolIndex)"
  7454. v-if="
  7455. isCloseList[toolIndex].isCloseBoolean &&
  7456. isCloseList[toolIndex].isClose == 0
  7457. "
  7458. >
  7459. 折叠
  7460. </div>
  7461. <div
  7462. class="corOpen"
  7463. @click="contract(toolIndex)"
  7464. v-if="isCloseList[toolIndex].isClose == 1"
  7465. >
  7466. 展开
  7467. </div>
  7468. </div>
  7469. <div
  7470. style="display: flex;"
  7471. v-if="
  7472. (courseDetail.userid == userid ||
  7473. (courseDetail.course_teacher &&
  7474. courseDetail.course_teacher.indexOf(userid) !=
  7475. -1)) &&
  7476. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  7477. taskCount
  7478. ].eList &&
  7479. chapInfoList[courseType].chapterInfo[0].taskJson[
  7480. taskCount
  7481. ].eList.length) ||
  7482. (tool.eList && tool.eList.length)) &&
  7483. courseDetail.state == 6
  7484. "
  7485. >
  7486. <div
  7487. style="margin-right:10px"
  7488. class="ScoreBtn"
  7489. @click="
  7490. resetLoopEva(
  7491. worksStudent[toolIndex],
  7492. chapInfoList[courseType].chapterInfo[0].taskJson[
  7493. taskCount
  7494. ].eList,
  7495. courseType,
  7496. taskCount,
  7497. toolIndex,
  7498. tool.toolDetail,
  7499. worksStudent
  7500. )
  7501. "
  7502. >
  7503. 一键重置
  7504. </div>
  7505. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  7506. <img
  7507. src="../../assets/icon/newIcons/rootImg.png"
  7508. alt=""
  7509. />
  7510. AI评分
  7511. </div>
  7512. <div
  7513. class="ScoreBtn"
  7514. v-else-if="!loopLoading[toolIndex].loading"
  7515. @click="
  7516. loopEva(
  7517. worksStudent[toolIndex],
  7518. chapInfoList[courseType].chapterInfo[0].taskJson[
  7519. taskCount
  7520. ].eList,
  7521. courseType,
  7522. taskCount,
  7523. toolIndex,
  7524. tool.toolDetail,
  7525. chapInfoList[courseType].chapterInfo[0].taskJson[
  7526. taskCount
  7527. ].taskDetail,
  7528. tool
  7529. )
  7530. "
  7531. >
  7532. <img
  7533. src="../../assets/icon/newIcons/rootImg.png"
  7534. alt=""
  7535. />
  7536. AI评分
  7537. </div>
  7538. <div class="ScoreBtn" v-else>
  7539. <img
  7540. src="../../assets/icon/newIcons/rootImg.png"
  7541. alt=""
  7542. />
  7543. 正在评分
  7544. </div>
  7545. </div>
  7546. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7547. </div>
  7548. <div
  7549. class="group_workBox"
  7550. v-for="(g, gindex) in courseGroup.group"
  7551. :key="gindex"
  7552. >
  7553. <div class="group_box">
  7554. <div class="group_title">
  7555. <el-tooltip
  7556. class="item"
  7557. effect="light"
  7558. :content="g.name"
  7559. placement="top"
  7560. >
  7561. <div class="group_name">{{ g.name }}</div>
  7562. </el-tooltip>
  7563. </div>
  7564. <div
  7565. class="group_work"
  7566. v-if="
  7567. g.works &&
  7568. g.works.length &&
  7569. g.works[toolIndex].length
  7570. "
  7571. >
  7572. <div
  7573. class="works"
  7574. style="
  7575. width: 200px;
  7576. height: 140px;
  7577. margin: 10px 10px 10px 0;
  7578. border-radius: 15px;
  7579. box-shadow: 0 0 6px 1px #dfdada;
  7580. "
  7581. v-for="(w, wIndex) in g.works[toolIndex]"
  7582. :key="wIndex"
  7583. :class="w.type == 1 ? 'isTypeOne' : ''"
  7584. >
  7585. <div class="workImg">
  7586. <img
  7587. :src="w.works"
  7588. @click="previewImg(w.works, w)"
  7589. alt
  7590. />
  7591. <div
  7592. class="answerScore"
  7593. v-if="w.score"
  7594. @click.stop="openScore(w)"
  7595. :class="{
  7596. rightW:
  7597. w.userid == userid ||
  7598. tType == 1 ||
  7599. tType == 4
  7600. }"
  7601. >
  7602. {{ JSON.parse(w.score).wScore }}分
  7603. </div>
  7604. <div
  7605. class="answerScore"
  7606. @click.stop="openScore(w)"
  7607. v-else-if="courseDetail.userid == userid"
  7608. :class="{
  7609. rightW:
  7610. w.userid == userid ||
  7611. tType == 1 ||
  7612. tType == 4
  7613. }"
  7614. >
  7615. 评分
  7616. </div>
  7617. <img
  7618. class="deleteImg"
  7619. src="../../assets/deleteworks.png"
  7620. v-if="
  7621. w.userid == userid || tType == 1 || tType == 4
  7622. "
  7623. @click.stop="deleteWorks(w.wid)"
  7624. alt
  7625. />
  7626. </div>
  7627. <div class="comment" style="min-width: 200px">
  7628. <div class="worksName">
  7629. <div>{{ w.sName }}</div>
  7630. </div>
  7631. <div class="commentList">
  7632. <div class="commentList">
  7633. <div
  7634. class="commentImg"
  7635. @click="
  7636. isLikes(
  7637. w.wid,
  7638. userid,
  7639. 1,
  7640. null,
  7641. w.isLikes,
  7642. w.sName
  7643. )
  7644. "
  7645. >
  7646. <img
  7647. :src="w.isLikes == true ? likes : noLikes"
  7648. alt=""
  7649. />
  7650. </div>
  7651. <div>{{ w.likesCount }}</div>
  7652. </div>
  7653. <div
  7654. class="commentList"
  7655. style="margin-right: 15px"
  7656. >
  7657. <div
  7658. class="commentImg"
  7659. @click="
  7660. commentOther(
  7661. w,
  7662. toolIndex,
  7663. wIndex,
  7664. null,
  7665. g.id
  7666. )
  7667. "
  7668. >
  7669. <img
  7670. src="../../assets/icon/comment/comment.png"
  7671. alt=""
  7672. />
  7673. </div>
  7674. <div>{{ w.commentCount }}</div>
  7675. </div>
  7676. </div>
  7677. </div>
  7678. </div>
  7679. </div>
  7680. <div class="group_work" v-else>暂无提交作业</div>
  7681. </div>
  7682. </div>
  7683. <div
  7684. :id="'tool-' + toolIndex"
  7685. :style="{
  7686. height:
  7687. isCloseList[toolIndex].isClose == 1
  7688. ? retrnToolHeight('tool-' + toolIndex)
  7689. : 'auto',
  7690. overflow:
  7691. isCloseList[toolIndex].isClose == 1
  7692. ? 'hidden'
  7693. : 'unset'
  7694. }"
  7695. class="worksDetailBox"
  7696. v-if="
  7697. worksStudent.length &&
  7698. worksStudent[toolIndex].length > 0
  7699. "
  7700. >
  7701. <div
  7702. class="works"
  7703. style="
  7704. width: 200px;
  7705. height: 140px;
  7706. margin: 10px 10px 10px 0;
  7707. border-radius: 15px;
  7708. box-shadow: 0 0 6px 1px #dfdada;
  7709. "
  7710. v-for="(w, wIndex) in worksStudent[toolIndex]"
  7711. :key="wIndex"
  7712. >
  7713. <!-- @click="previewImg(w.works)" -->
  7714. <div class="workImg">
  7715. <img
  7716. :src="w.works"
  7717. @click="previewImg(w.works, w)"
  7718. alt
  7719. />
  7720. <div
  7721. class="answerScore"
  7722. v-if="w.score"
  7723. @click.stop="openScore(w)"
  7724. :class="{
  7725. rightW:
  7726. w.userid == userid || tType == 1 || tType == 4
  7727. }"
  7728. >
  7729. {{ JSON.parse(w.score).wScore }}分
  7730. </div>
  7731. <div
  7732. class="answerScore"
  7733. @click.stop="openScore(w)"
  7734. v-else-if="
  7735. courseDetail.userid == userid &&
  7736. courseDetail.state != 6 &&
  7737. chapInfoList[courseType].chapterInfo[0]
  7738. .taskJson[taskCount].eList &&
  7739. chapInfoList[courseType].chapterInfo[0]
  7740. .taskJson[taskCount].eList.length
  7741. "
  7742. :class="{
  7743. rightW:
  7744. w.userid == userid || tType == 1 || tType == 4
  7745. }"
  7746. >
  7747. 评分
  7748. </div>
  7749. <!-- <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"> -->
  7750. <div
  7751. v-else-if="
  7752. (courseDetail.userid == userid ||
  7753. (courseDetail.course_teacher &&
  7754. courseDetail.course_teacher.indexOf(userid) !=
  7755. -1) ||
  7756. (w.userid == userid && sIsOpen)) &&
  7757. courseDetail.state == 6 &&
  7758. ((chapInfoList[courseType].chapterInfo[0]
  7759. .taskJson[taskCount].eList &&
  7760. chapInfoList[courseType].chapterInfo[0]
  7761. .taskJson[taskCount].eList.length) ||
  7762. (tool.eList && tool.eList.length))
  7763. "
  7764. >
  7765. <el-popover
  7766. placement="top"
  7767. width="318"
  7768. :disabled="AIloading[toolIndex][wIndex].loading"
  7769. trigger="hover"
  7770. >
  7771. <markScore
  7772. :loading="AIloading[toolIndex][wIndex].loading"
  7773. :markScoreVisible="markScoreVisible"
  7774. :ref="`markSco${toolIndex}${wIndex}`"
  7775. @updateLoading="updateLoading"
  7776. @updateDocSco="updateDocSco"
  7777. @refreshOther="refreshOther"
  7778. @markScoreDig="markScoreDig"
  7779. :tool="tool"
  7780. :wIndex="wIndex"
  7781. :scoCon="w"
  7782. :toolIndex="toolIndex"
  7783. :key="refreshKey"
  7784. :stage="courseType"
  7785. :task="taskCount"
  7786. :scoTit="
  7787. chapInfoList[courseType].chapterInfo[0]
  7788. .taskJson[taskCount].eList
  7789. "
  7790. >
  7791. </markScore>
  7792. <div
  7793. class="answerScore"
  7794. @click="
  7795. markScoreDig2(
  7796. w.sName,
  7797. worksStudent,
  7798. w.userid,
  7799. toolIndex,
  7800. chapInfoList[courseType].chapterInfo[0]
  7801. .taskJson[taskCount].eList,
  7802. AIloading[toolIndex][wIndex].loading,
  7803. tool
  7804. )
  7805. "
  7806. slot="reference"
  7807. :class="{
  7808. rightW:
  7809. w.userid == userid ||
  7810. tType == 1 ||
  7811. tType == 4 ||
  7812. w.ateacher == userid
  7813. }"
  7814. >
  7815. <span v-if="AIloading[toolIndex][wIndex].sco">
  7816. {{
  7817. AIloading[toolIndex][wIndex].loading
  7818. ? "评分中"
  7819. : AIloading[toolIndex][wIndex].sco + "分"
  7820. }}
  7821. </span>
  7822. <span v-else>
  7823. {{
  7824. AIloading[toolIndex][wIndex].loading
  7825. ? "评分中"
  7826. : "评分"
  7827. }}
  7828. </span>
  7829. </div>
  7830. </el-popover>
  7831. </div>
  7832. <img
  7833. class="deleteImg"
  7834. src="../../assets/deleteworks.png"
  7835. v-if="
  7836. w.userid == userid || tType == 1 || tType == 4
  7837. "
  7838. @click.stop="deleteWorks(w.wid)"
  7839. alt
  7840. />
  7841. </div>
  7842. <div class="comment" style="min-width: 200px">
  7843. <div class="worksName">
  7844. <div>{{ w.sName }}</div>
  7845. </div>
  7846. <div class="commentList">
  7847. <div class="commentList">
  7848. <div
  7849. class="commentImg"
  7850. @click="
  7851. isLikes(
  7852. w.wid,
  7853. userid,
  7854. 1,
  7855. null,
  7856. w.isLikes,
  7857. w.sName
  7858. )
  7859. "
  7860. >
  7861. <img
  7862. :src="w.isLikes == true ? likes : noLikes"
  7863. alt=""
  7864. />
  7865. </div>
  7866. <div>{{ w.likesCount }}</div>
  7867. </div>
  7868. <div class="commentList" style="margin-right: 15px">
  7869. <div
  7870. class="commentImg"
  7871. @click="commentOther(w, toolIndex, wIndex)"
  7872. >
  7873. <img
  7874. src="../../assets/icon/comment/comment.png"
  7875. alt=""
  7876. />
  7877. </div>
  7878. <div>{{ w.commentCount }}</div>
  7879. </div>
  7880. </div>
  7881. </div>
  7882. </div>
  7883. </div>
  7884. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  7885. 未提交
  7886. </div>
  7887. <div
  7888. class="noWorksS"
  7889. v-if="noWorksS && noWorksS[toolIndex].length"
  7890. >
  7891. <div
  7892. v-for="(s, sIndex) in noWorksS[toolIndex]"
  7893. :key="sIndex"
  7894. class="noWorksName"
  7895. @click="teacherWorkSubmit(3, toolIndex, taskCount, s)"
  7896. >
  7897. <el-tooltip
  7898. effect="dark"
  7899. :content="s.student"
  7900. placement="top"
  7901. >
  7902. <span>{{ s.student }}</span>
  7903. </el-tooltip>
  7904. </div>
  7905. </div>
  7906. </div>
  7907. <div
  7908. v-if="
  7909. tType &&
  7910. ((tType == 2 && sIsOpen == true) ||
  7911. tType == 1 ||
  7912. tType == 4) &&
  7913. tool.tool.indexOf(6) != -1
  7914. "
  7915. class="worksBox"
  7916. >
  7917. <div
  7918. class="zuoyeYulan"
  7919. v-if="
  7920. (worksStudent.length &&
  7921. worksStudent[toolIndex].length > 0) ||
  7922. (courseGroup.group && courseGroup.group.length)
  7923. "
  7924. >
  7925. <div class="worksTop">
  7926. <div>作业预览</div>
  7927. <div
  7928. class="corOpen"
  7929. @click="contract(toolIndex)"
  7930. v-if="
  7931. isCloseList[toolIndex].isCloseBoolean &&
  7932. isCloseList[toolIndex].isClose == 0
  7933. "
  7934. >
  7935. 折叠
  7936. </div>
  7937. <div
  7938. class="corOpen"
  7939. @click="contract(toolIndex)"
  7940. v-if="isCloseList[toolIndex].isClose == 1"
  7941. >
  7942. 展开
  7943. </div>
  7944. </div>
  7945. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  7946. </div>
  7947. <div
  7948. class="group_workBox"
  7949. v-for="(g, gindex) in courseGroup.group"
  7950. :key="gindex"
  7951. >
  7952. <div class="group_box">
  7953. <div class="group_title">
  7954. <el-tooltip
  7955. class="item"
  7956. effect="light"
  7957. :content="g.name"
  7958. placement="top"
  7959. >
  7960. <div class="group_name">{{ g.name }}</div>
  7961. </el-tooltip>
  7962. </div>
  7963. <div
  7964. class="group_work"
  7965. v-if="
  7966. g.works &&
  7967. g.works.length &&
  7968. g.works[toolIndex].length
  7969. "
  7970. >
  7971. <div
  7972. class="works"
  7973. style="
  7974. width: 200px;
  7975. height: 140px;
  7976. margin: 10px 10px 10px 0;
  7977. border-radius: 15px;
  7978. box-shadow: 0 0 6px 1px #dfdada;
  7979. "
  7980. v-for="(w, wIndex) in g.works[toolIndex]"
  7981. :key="wIndex"
  7982. :class="w.type == 1 ? 'isTypeOne' : ''"
  7983. >
  7984. <div class="workImg">
  7985. <img
  7986. :src="w.works"
  7987. @click="previewImg(w.works, w)"
  7988. alt
  7989. />
  7990. <div
  7991. class="answerScore"
  7992. v-if="w.score"
  7993. @click.stop="openScore(w)"
  7994. :class="{
  7995. rightW:
  7996. w.userid == userid ||
  7997. tType == 1 ||
  7998. tType == 4
  7999. }"
  8000. >
  8001. {{ JSON.parse(w.score).wScore }}分
  8002. </div>
  8003. <div
  8004. class="answerScore"
  8005. @click.stop="openScore(w)"
  8006. v-else-if="courseDetail.userid == userid"
  8007. :class="{
  8008. rightW:
  8009. w.userid == userid ||
  8010. tType == 1 ||
  8011. tType == 4
  8012. }"
  8013. >
  8014. 评分
  8015. </div>
  8016. <img
  8017. class="deleteImg"
  8018. src="../../assets/deleteworks.png"
  8019. v-if="
  8020. w.userid == userid || tType == 1 || tType == 4
  8021. "
  8022. @click.stop="deleteWorks(w.wid)"
  8023. alt
  8024. />
  8025. </div>
  8026. <div class="comment" style="min-width: 200px">
  8027. <div class="worksName">
  8028. <div>{{ w.sName }}</div>
  8029. </div>
  8030. <div class="commentList">
  8031. <div class="commentList">
  8032. <div
  8033. class="commentImg"
  8034. @click="
  8035. isLikes(
  8036. w.wid,
  8037. userid,
  8038. 1,
  8039. null,
  8040. w.isLikes,
  8041. w.sName
  8042. )
  8043. "
  8044. >
  8045. <img
  8046. :src="w.isLikes == true ? likes : noLikes"
  8047. alt=""
  8048. />
  8049. </div>
  8050. <div>{{ w.likesCount }}</div>
  8051. </div>
  8052. <div
  8053. class="commentList"
  8054. style="margin-right: 15px"
  8055. >
  8056. <div
  8057. class="commentImg"
  8058. @click="
  8059. commentOther(
  8060. w,
  8061. toolIndex,
  8062. wIndex,
  8063. null,
  8064. g.id
  8065. )
  8066. "
  8067. >
  8068. <img
  8069. src="../../assets/icon/comment/comment.png"
  8070. alt=""
  8071. />
  8072. </div>
  8073. <div>{{ w.commentCount }}</div>
  8074. </div>
  8075. </div>
  8076. </div>
  8077. </div>
  8078. </div>
  8079. <div class="group_work" v-else>暂无提交作业</div>
  8080. </div>
  8081. </div>
  8082. <div
  8083. :id="'tool-' + toolIndex"
  8084. :style="{
  8085. height:
  8086. isCloseList[toolIndex].isClose == 1
  8087. ? retrnToolHeight('tool-' + toolIndex)
  8088. : 'auto',
  8089. overflow:
  8090. isCloseList[toolIndex].isClose == 1
  8091. ? 'hidden'
  8092. : 'unset'
  8093. }"
  8094. class="worksDetailBox"
  8095. v-if="
  8096. worksStudent.length &&
  8097. worksStudent[toolIndex].length > 0
  8098. "
  8099. >
  8100. <div
  8101. class="works"
  8102. style="
  8103. width: 200px;
  8104. height: 140px;
  8105. margin: 10px 10px 10px 0;
  8106. border-radius: 15px;
  8107. box-shadow: 0 0 6px 1px #dfdada;
  8108. "
  8109. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8110. :key="wIndex"
  8111. >
  8112. <!-- @click="previewImg(w.works)" -->
  8113. <div class="workImg">
  8114. <img
  8115. :src="w.works"
  8116. @click="previewImg(w.works, w)"
  8117. alt
  8118. />
  8119. <div
  8120. class="answerScore"
  8121. v-if="w.score"
  8122. @click.stop="openScore(w)"
  8123. :class="{
  8124. rightW:
  8125. w.userid == userid || tType == 1 || tType == 4
  8126. }"
  8127. >
  8128. {{ JSON.parse(w.score).wScore }}分
  8129. </div>
  8130. <div
  8131. class="answerScore"
  8132. @click.stop="openScore(w)"
  8133. v-else-if="courseDetail.userid == userid"
  8134. :class="{
  8135. rightW:
  8136. w.userid == userid || tType == 1 || tType == 4
  8137. }"
  8138. >
  8139. 评分
  8140. </div>
  8141. <img
  8142. class="deleteImg"
  8143. src="../../assets/deleteworks.png"
  8144. v-if="
  8145. w.userid == userid || tType == 1 || tType == 4
  8146. "
  8147. @click.stop="deleteWorks(w.wid)"
  8148. alt
  8149. />
  8150. </div>
  8151. <div class="comment" style="min-width: 200px">
  8152. <div class="worksName">
  8153. <div>{{ w.sName }}</div>
  8154. </div>
  8155. <div class="commentList">
  8156. <div class="commentList">
  8157. <div
  8158. class="commentImg"
  8159. @click="
  8160. isLikes(
  8161. w.wid,
  8162. userid,
  8163. 1,
  8164. null,
  8165. w.isLikes,
  8166. w.sName
  8167. )
  8168. "
  8169. >
  8170. <img
  8171. :src="w.isLikes == true ? likes : noLikes"
  8172. alt=""
  8173. />
  8174. </div>
  8175. <div>{{ w.likesCount }}</div>
  8176. </div>
  8177. <div class="commentList" style="margin-right: 15px">
  8178. <div
  8179. class="commentImg"
  8180. @click="commentOther(w, toolIndex, wIndex)"
  8181. >
  8182. <img
  8183. src="../../assets/icon/comment/comment.png"
  8184. alt=""
  8185. />
  8186. </div>
  8187. <div>{{ w.commentCount }}</div>
  8188. </div>
  8189. </div>
  8190. </div>
  8191. </div>
  8192. </div>
  8193. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8194. 未提交
  8195. </div>
  8196. <div
  8197. class="noWorksS"
  8198. v-if="noWorksS && noWorksS[toolIndex].length"
  8199. >
  8200. <div
  8201. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8202. :key="sIndex"
  8203. class="noWorksName"
  8204. >
  8205. <el-tooltip
  8206. effect="dark"
  8207. :content="s.student"
  8208. placement="top"
  8209. >
  8210. <span>{{ s.student }}</span>
  8211. </el-tooltip>
  8212. </div>
  8213. </div>
  8214. </div>
  8215. <div
  8216. v-if="
  8217. tType &&
  8218. ((tType == 2 && sIsOpen == true) ||
  8219. tType == 1 ||
  8220. tType == 4) &&
  8221. tool.tool.indexOf(7) != -1
  8222. "
  8223. class="worksBox"
  8224. >
  8225. <div
  8226. class="zuoyeYulan"
  8227. style="display: flex;justify-content: space-between;align-items: center;"
  8228. v-if="
  8229. (worksStudent.length &&
  8230. worksStudent[toolIndex].length > 0) ||
  8231. (courseGroup.group && courseGroup.group.length)
  8232. "
  8233. >
  8234. <div class="worksTop">
  8235. <div>作业预览</div>
  8236. <div
  8237. class="corOpen"
  8238. @click="contract(toolIndex)"
  8239. v-if="
  8240. isCloseList[toolIndex].isCloseBoolean &&
  8241. isCloseList[toolIndex].isClose == 0
  8242. "
  8243. >
  8244. 折叠
  8245. </div>
  8246. <div
  8247. class="corOpen"
  8248. @click="contract(toolIndex)"
  8249. v-if="isCloseList[toolIndex].isClose == 1"
  8250. >
  8251. 展开
  8252. </div>
  8253. </div>
  8254. <div
  8255. style="display: flex;"
  8256. v-if="
  8257. (courseDetail.userid == userid ||
  8258. (courseDetail.course_teacher &&
  8259. courseDetail.course_teacher.indexOf(userid) !=
  8260. -1)) &&
  8261. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  8262. taskCount
  8263. ].eList &&
  8264. chapInfoList[courseType].chapterInfo[0].taskJson[
  8265. taskCount
  8266. ].eList.length) ||
  8267. (tool.eList && tool.eList.length)) &&
  8268. courseDetail.state == 6
  8269. "
  8270. >
  8271. <div
  8272. style="margin-right:10px"
  8273. class="ScoreBtn"
  8274. @click="
  8275. resetLoopEva(
  8276. worksStudent[toolIndex],
  8277. chapInfoList[courseType].chapterInfo[0].taskJson[
  8278. taskCount
  8279. ].eList,
  8280. courseType,
  8281. taskCount,
  8282. toolIndex,
  8283. tool.toolDetail,
  8284. worksStudent
  8285. )
  8286. "
  8287. >
  8288. 一键重置
  8289. </div>
  8290. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  8291. <img
  8292. src="../../assets/icon/newIcons/rootImg.png"
  8293. alt=""
  8294. />
  8295. AI评分
  8296. </div>
  8297. <div
  8298. class="ScoreBtn"
  8299. v-else-if="!loopLoading[toolIndex].loading"
  8300. @click="
  8301. loopEva(
  8302. worksStudent[toolIndex],
  8303. chapInfoList[courseType].chapterInfo[0].taskJson[
  8304. taskCount
  8305. ].eList,
  8306. courseType,
  8307. taskCount,
  8308. toolIndex,
  8309. tool.toolDetail,
  8310. chapInfoList[courseType].chapterInfo[0].taskJson[
  8311. taskCount
  8312. ].taskDetail,
  8313. tool
  8314. )
  8315. "
  8316. >
  8317. <img
  8318. src="../../assets/icon/newIcons/rootImg.png"
  8319. alt=""
  8320. />
  8321. AI评分
  8322. </div>
  8323. <div class="ScoreBtn" v-else>
  8324. <img
  8325. src="../../assets/icon/newIcons/rootImg.png"
  8326. alt=""
  8327. />
  8328. 正在评分
  8329. </div>
  8330. </div>
  8331. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8332. </div>
  8333. <div
  8334. class="group_workBox"
  8335. v-for="(g, gindex) in courseGroup.group"
  8336. :key="gindex"
  8337. >
  8338. <div class="group_box">
  8339. <div class="group_title">
  8340. <el-tooltip
  8341. class="item"
  8342. effect="light"
  8343. :content="g.name"
  8344. placement="top"
  8345. >
  8346. <div class="group_name">{{ g.name }}</div>
  8347. </el-tooltip>
  8348. </div>
  8349. <div
  8350. class="group_work"
  8351. v-if="
  8352. g.works &&
  8353. g.works.length &&
  8354. g.works[toolIndex].length
  8355. "
  8356. >
  8357. <div
  8358. class="works"
  8359. style="
  8360. width: 200px;
  8361. height: 140px;
  8362. margin: 10px 10px 10px 0;
  8363. border-radius: 15px;
  8364. box-shadow: 0 0 6px 1px #dfdada;
  8365. "
  8366. v-for="(w, wIndex) in g.works[toolIndex]"
  8367. :key="wIndex"
  8368. :class="w.type == 1 ? 'isTypeOne' : ''"
  8369. >
  8370. <div class="workImg">
  8371. <img
  8372. :src="w.works"
  8373. @click="previewImg(w.works, w)"
  8374. alt
  8375. />
  8376. <div
  8377. class="answerScore"
  8378. v-if="w.score"
  8379. @click.stop="openScore(w)"
  8380. :class="{
  8381. rightW:
  8382. w.userid == userid ||
  8383. tType == 1 ||
  8384. tType == 4
  8385. }"
  8386. >
  8387. {{ JSON.parse(w.score).wScore }}分
  8388. </div>
  8389. <div
  8390. class="answerScore"
  8391. @click.stop="openScore(w)"
  8392. v-else-if="courseDetail.userid == userid"
  8393. :class="{
  8394. rightW:
  8395. w.userid == userid ||
  8396. tType == 1 ||
  8397. tType == 4
  8398. }"
  8399. >
  8400. 评分
  8401. </div>
  8402. <img
  8403. class="deleteImg"
  8404. src="../../assets/deleteworks.png"
  8405. v-if="
  8406. w.userid == userid || tType == 1 || tType == 4
  8407. "
  8408. @click.stop="deleteWorks(w.wid)"
  8409. alt
  8410. />
  8411. </div>
  8412. <div class="comment" style="min-width: 200px">
  8413. <div class="worksName">
  8414. <div>{{ w.sName }}</div>
  8415. </div>
  8416. <div class="commentList">
  8417. <div class="commentList">
  8418. <div
  8419. class="commentImg"
  8420. @click="
  8421. isLikes(
  8422. w.wid,
  8423. userid,
  8424. 1,
  8425. null,
  8426. w.isLikes,
  8427. w.sName
  8428. )
  8429. "
  8430. >
  8431. <img
  8432. :src="w.isLikes == true ? likes : noLikes"
  8433. alt=""
  8434. />
  8435. </div>
  8436. <div>{{ w.likesCount }}</div>
  8437. </div>
  8438. <div
  8439. class="commentList"
  8440. style="margin-right: 15px"
  8441. >
  8442. <div
  8443. class="commentImg"
  8444. @click="
  8445. commentOther(
  8446. w,
  8447. toolIndex,
  8448. wIndex,
  8449. null,
  8450. g.id
  8451. )
  8452. "
  8453. >
  8454. <img
  8455. src="../../assets/icon/comment/comment.png"
  8456. alt=""
  8457. />
  8458. </div>
  8459. <div>{{ w.commentCount }}</div>
  8460. </div>
  8461. </div>
  8462. </div>
  8463. </div>
  8464. </div>
  8465. <div class="group_work" v-else>暂无提交作业</div>
  8466. </div>
  8467. </div>
  8468. <div
  8469. :id="'tool-' + toolIndex"
  8470. :style="{
  8471. height:
  8472. isCloseList[toolIndex].isClose == 1
  8473. ? retrnToolHeight('tool-' + toolIndex)
  8474. : 'auto',
  8475. overflow:
  8476. isCloseList[toolIndex].isClose == 1
  8477. ? 'hidden'
  8478. : 'unset'
  8479. }"
  8480. class="worksDetailBox"
  8481. v-if="
  8482. worksStudent.length &&
  8483. worksStudent[toolIndex].length > 0
  8484. "
  8485. >
  8486. <div
  8487. class="works"
  8488. style="
  8489. width: 200px;
  8490. height: 140px;
  8491. margin: 10px 10px 10px 0;
  8492. border-radius: 15px;
  8493. box-shadow: 0 0 6px 1px #dfdada;
  8494. "
  8495. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8496. :key="wIndex"
  8497. >
  8498. <!-- @click="previewImg(w.works)" -->
  8499. <div class="workImg">
  8500. <img
  8501. :src="w.works"
  8502. @click="previewImg(w.works, w)"
  8503. alt
  8504. />
  8505. <div
  8506. class="answerScore"
  8507. v-if="w.score"
  8508. @click.stop="openScore(w)"
  8509. :class="{
  8510. rightW:
  8511. w.userid == userid || tType == 1 || tType == 4
  8512. }"
  8513. >
  8514. {{ JSON.parse(w.score).wScore }}分
  8515. </div>
  8516. <div
  8517. class="answerScore"
  8518. @click.stop="openScore(w)"
  8519. v-else-if="
  8520. courseDetail.userid == userid &&
  8521. courseDetail.state != 6 &&
  8522. chapInfoList[courseType].chapterInfo[0]
  8523. .taskJson[taskCount].eList &&
  8524. chapInfoList[courseType].chapterInfo[0]
  8525. .taskJson[taskCount].eList.length
  8526. "
  8527. :class="{
  8528. rightW:
  8529. w.userid == userid || tType == 1 || tType == 4
  8530. }"
  8531. >
  8532. 评分
  8533. </div>
  8534. <!-- <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"> -->
  8535. <div
  8536. v-else-if="
  8537. (courseDetail.userid == userid ||
  8538. (courseDetail.course_teacher &&
  8539. courseDetail.course_teacher.indexOf(userid) !=
  8540. -1) ||
  8541. (w.userid == userid && sIsOpen)) &&
  8542. courseDetail.state == 6 &&
  8543. ((chapInfoList[courseType].chapterInfo[0]
  8544. .taskJson[taskCount].eList &&
  8545. chapInfoList[courseType].chapterInfo[0]
  8546. .taskJson[taskCount].eList.length) ||
  8547. (tool.eList && tool.eList.length))
  8548. "
  8549. >
  8550. <el-popover
  8551. placement="top"
  8552. width="318"
  8553. :disabled="AIloading[toolIndex][wIndex].loading"
  8554. trigger="hover"
  8555. >
  8556. <markScore
  8557. :loading="AIloading[toolIndex][wIndex].loading"
  8558. :markScoreVisible="markScoreVisible"
  8559. :ref="`markSco${toolIndex}${wIndex}`"
  8560. @updateLoading="updateLoading"
  8561. @updateDocSco="updateDocSco"
  8562. @refreshOther="refreshOther"
  8563. @markScoreDig="markScoreDig"
  8564. :tool="tool"
  8565. :wIndex="wIndex"
  8566. :scoCon="w"
  8567. :toolIndex="toolIndex"
  8568. :key="refreshKey"
  8569. :stage="courseType"
  8570. :task="taskCount"
  8571. :scoTit="
  8572. chapInfoList[courseType].chapterInfo[0]
  8573. .taskJson[taskCount].eList
  8574. "
  8575. >
  8576. </markScore>
  8577. <div
  8578. class="answerScore"
  8579. @click="
  8580. markScoreDig2(
  8581. w.sName,
  8582. worksStudent,
  8583. w.userid,
  8584. toolIndex,
  8585. chapInfoList[courseType].chapterInfo[0]
  8586. .taskJson[taskCount].eList,
  8587. AIloading[toolIndex][wIndex].loading,
  8588. tool
  8589. )
  8590. "
  8591. slot="reference"
  8592. :class="{
  8593. rightW:
  8594. w.userid == userid ||
  8595. tType == 1 ||
  8596. tType == 4 ||
  8597. w.ateacher == userid
  8598. }"
  8599. >
  8600. <span v-if="AIloading[toolIndex][wIndex].sco">
  8601. {{
  8602. AIloading[toolIndex][wIndex].loading
  8603. ? "评分中"
  8604. : AIloading[toolIndex][wIndex].sco + "分"
  8605. }}
  8606. </span>
  8607. <span v-else>
  8608. {{
  8609. AIloading[toolIndex][wIndex].loading
  8610. ? "评分中"
  8611. : "评分"
  8612. }}
  8613. </span>
  8614. </div>
  8615. </el-popover>
  8616. </div>
  8617. <img
  8618. class="deleteImg"
  8619. src="../../assets/deleteworks.png"
  8620. v-if="
  8621. w.userid == userid || tType == 1 || tType == 4
  8622. "
  8623. @click.stop="deleteWorks(w.wid)"
  8624. alt
  8625. />
  8626. </div>
  8627. <div class="comment" style="min-width: 200px">
  8628. <div class="worksName">
  8629. <div>{{ w.sName }}</div>
  8630. </div>
  8631. <div class="commentList">
  8632. <div class="commentList">
  8633. <div
  8634. class="commentImg"
  8635. @click="
  8636. isLikes(
  8637. w.wid,
  8638. userid,
  8639. 1,
  8640. null,
  8641. w.isLikes,
  8642. w.sName
  8643. )
  8644. "
  8645. >
  8646. <img
  8647. :src="w.isLikes == true ? likes : noLikes"
  8648. alt=""
  8649. />
  8650. </div>
  8651. <div>{{ w.likesCount }}</div>
  8652. </div>
  8653. <div class="commentList" style="margin-right: 15px">
  8654. <div
  8655. class="commentImg"
  8656. @click="commentOther(w, toolIndex, wIndex)"
  8657. >
  8658. <img
  8659. src="../../assets/icon/comment/comment.png"
  8660. alt=""
  8661. />
  8662. </div>
  8663. <div>{{ w.commentCount }}</div>
  8664. </div>
  8665. </div>
  8666. </div>
  8667. </div>
  8668. </div>
  8669. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8670. 未提交
  8671. </div>
  8672. <div
  8673. class="noWorksS"
  8674. v-if="noWorksS && noWorksS[toolIndex].length"
  8675. >
  8676. <div
  8677. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8678. :key="sIndex"
  8679. class="noWorksName"
  8680. @click="teacherWorkSubmit(7, toolIndex, taskCount, s)"
  8681. >
  8682. <el-tooltip
  8683. effect="dark"
  8684. :content="s.student"
  8685. placement="top"
  8686. >
  8687. <span>{{ s.student }}</span>
  8688. </el-tooltip>
  8689. </div>
  8690. </div>
  8691. </div>
  8692. <div
  8693. v-if="
  8694. tType &&
  8695. ((tType == 2 && sIsOpen == true) ||
  8696. tType == 1 ||
  8697. tType == 4) &&
  8698. tool.tool.indexOf(26) != -1
  8699. "
  8700. class="worksBox"
  8701. >
  8702. <div
  8703. class="zuoyeYulan"
  8704. v-if="
  8705. worksStudent.length &&
  8706. worksStudent[toolIndex].length > 0
  8707. "
  8708. >
  8709. <div class="worksTop">
  8710. <div>作业预览</div>
  8711. <div
  8712. class="corOpen"
  8713. @click="contract(toolIndex)"
  8714. v-if="
  8715. isCloseList[toolIndex].isCloseBoolean &&
  8716. isCloseList[toolIndex].isClose == 0
  8717. "
  8718. >
  8719. 折叠
  8720. </div>
  8721. <div
  8722. class="corOpen"
  8723. @click="contract(toolIndex)"
  8724. v-if="isCloseList[toolIndex].isClose == 1"
  8725. >
  8726. 展开
  8727. </div>
  8728. </div>
  8729. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8730. </div>
  8731. <div
  8732. :id="'tool-' + toolIndex"
  8733. :style="{
  8734. height:
  8735. isCloseList[toolIndex].isClose == 1
  8736. ? retrnToolHeight('tool-' + toolIndex)
  8737. : 'auto',
  8738. overflow:
  8739. isCloseList[toolIndex].isClose == 1
  8740. ? 'hidden'
  8741. : 'unset'
  8742. }"
  8743. class="worksDetailBox"
  8744. v-if="
  8745. worksStudent.length &&
  8746. worksStudent[toolIndex].length > 0
  8747. "
  8748. >
  8749. <div
  8750. class="works"
  8751. style="width: 240px; height: 140px; overflow: hidden"
  8752. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8753. :key="wIndex"
  8754. :class="w.type == 1 ? 'isTypeOne' : ''"
  8755. >
  8756. <div class="workImg" v-if="w.type == 0">
  8757. <img
  8758. :src="w.works"
  8759. @click="previewImg(w.works, w)"
  8760. alt
  8761. />
  8762. <img
  8763. class="deleteImg"
  8764. src="../../assets/deleteworks.png"
  8765. v-if="
  8766. w.userid == userid || tType == 1 || tType == 4
  8767. "
  8768. @click.stop="deleteWorks(w.wid)"
  8769. alt
  8770. />
  8771. </div>
  8772. <div class="workImg" v-if="w.type == 1">
  8773. <img :src="word" @click="openFile(w.works)" alt />
  8774. <img
  8775. class="deleteImg"
  8776. src="../../assets/deleteworks.png"
  8777. v-if="
  8778. w.userid == userid || tType == 1 || tType == 4
  8779. "
  8780. @click.stop="deleteWorks(w.wid)"
  8781. alt
  8782. />
  8783. </div>
  8784. <div class="worksName">
  8785. <div>{{ w.sName }}</div>
  8786. </div>
  8787. </div>
  8788. </div>
  8789. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8790. 未提交
  8791. </div>
  8792. <div
  8793. class="noWorksS"
  8794. v-if="noWorksS && noWorksS[toolIndex].length"
  8795. >
  8796. <div
  8797. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8798. :key="sIndex"
  8799. class="noWorksName"
  8800. >
  8801. <el-tooltip
  8802. effect="dark"
  8803. :content="s.student"
  8804. placement="top"
  8805. >
  8806. <span>{{ s.student }}</span>
  8807. </el-tooltip>
  8808. </div>
  8809. </div>
  8810. </div>
  8811. <div
  8812. v-if="
  8813. tType &&
  8814. ((tType == 2 && sIsOpen == true) ||
  8815. tType == 1 ||
  8816. tType == 4) &&
  8817. tool.tool.indexOf(40) != -1
  8818. "
  8819. class="worksBox"
  8820. >
  8821. <div
  8822. class="zuoyeYulan"
  8823. v-if="
  8824. worksStudent.length &&
  8825. worksStudent[toolIndex].length > 0
  8826. "
  8827. >
  8828. <div class="worksTop">
  8829. <div>作业预览</div>
  8830. <div
  8831. class="corOpen"
  8832. @click="contract(toolIndex)"
  8833. v-if="
  8834. isCloseList[toolIndex].isCloseBoolean &&
  8835. isCloseList[toolIndex].isClose == 0
  8836. "
  8837. >
  8838. 折叠
  8839. </div>
  8840. <div
  8841. class="corOpen"
  8842. @click="contract(toolIndex)"
  8843. v-if="isCloseList[toolIndex].isClose == 1"
  8844. >
  8845. 展开
  8846. </div>
  8847. </div>
  8848. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8849. </div>
  8850. <div
  8851. :id="'tool-' + toolIndex"
  8852. :style="{
  8853. height:
  8854. isCloseList[toolIndex].isClose == 1
  8855. ? retrnToolHeight('tool-' + toolIndex)
  8856. : 'auto',
  8857. overflow:
  8858. isCloseList[toolIndex].isClose == 1
  8859. ? 'hidden'
  8860. : 'unset'
  8861. }"
  8862. class="worksDetailBox"
  8863. v-if="
  8864. worksStudent.length &&
  8865. worksStudent[toolIndex].length > 0
  8866. "
  8867. >
  8868. <div
  8869. class="works"
  8870. style="
  8871. width: 200px;
  8872. height: 140px;
  8873. margin: 10px 10px 10px 0;
  8874. border-radius: 15px;
  8875. box-shadow: 0 0 6px 1px #dfdada;
  8876. "
  8877. v-for="(w, wIndex) in worksStudent[toolIndex]"
  8878. :key="wIndex"
  8879. :class="w.type == 1 ? 'isTypeOne' : ''"
  8880. >
  8881. <div class="workImg">
  8882. <img
  8883. src="../../assets/icon/works/noImg.png"
  8884. @click="openPj(w.works, toolIndex)"
  8885. alt
  8886. />
  8887. <img
  8888. class="deleteImg"
  8889. src="../../assets/deleteworks.png"
  8890. v-if="
  8891. w.userid == userid || tType == 1 || tType == 4
  8892. "
  8893. @click.stop="deleteWorks(w.wid)"
  8894. alt
  8895. />
  8896. </div>
  8897. <div class="comment" style="min-width: 200px">
  8898. <div class="worksName">
  8899. <div>{{ w.sName }}</div>
  8900. </div>
  8901. <div class="commentList">
  8902. <div class="commentList">
  8903. <div
  8904. class="commentImg"
  8905. @click="
  8906. isLikes(
  8907. w.wid,
  8908. userid,
  8909. 1,
  8910. null,
  8911. w.isLikes,
  8912. w.sName
  8913. )
  8914. "
  8915. >
  8916. <img
  8917. :src="w.isLikes == true ? likes : noLikes"
  8918. alt=""
  8919. />
  8920. </div>
  8921. <div>{{ w.likesCount }}</div>
  8922. </div>
  8923. <div class="commentList" style="margin-right: 15px">
  8924. <div
  8925. class="commentImg"
  8926. @click="commentOther(w, toolIndex, wIndex)"
  8927. >
  8928. <img
  8929. src="../../assets/icon/comment/comment.png"
  8930. alt=""
  8931. />
  8932. </div>
  8933. <div>{{ w.commentCount }}</div>
  8934. </div>
  8935. </div>
  8936. </div>
  8937. </div>
  8938. </div>
  8939. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  8940. 未提交
  8941. </div>
  8942. <div
  8943. class="noWorksS"
  8944. v-if="noWorksS && noWorksS[toolIndex].length"
  8945. >
  8946. <div
  8947. v-for="(s, sIndex) in noWorksS[toolIndex]"
  8948. :key="sIndex"
  8949. class="noWorksName"
  8950. @click="teacherWorkSubmit(40, toolIndex, taskCount, s)"
  8951. >
  8952. <el-tooltip
  8953. effect="dark"
  8954. :content="s.student"
  8955. placement="top"
  8956. >
  8957. <span>{{ s.student }}</span>
  8958. </el-tooltip>
  8959. </div>
  8960. </div>
  8961. </div>
  8962. <div
  8963. v-if="
  8964. tType &&
  8965. tType == 2 &&
  8966. !sIsOpen &&
  8967. tool.tool.indexOf(40) != -1
  8968. "
  8969. class="worksBox"
  8970. >
  8971. <div
  8972. class="zuoyeYulan"
  8973. v-if="workStudent[toolIndex].length > 0"
  8974. >
  8975. <span class="worksTitle">作业预览</span>
  8976. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  8977. </div>
  8978. <div
  8979. class="worksDetailBox"
  8980. v-if="workStudent[toolIndex].length > 0"
  8981. >
  8982. <div
  8983. class="works"
  8984. style="
  8985. width: 200px;
  8986. height: 140px;
  8987. margin: 10px 10px 10px 0;
  8988. "
  8989. v-for="(w, wIndex) in workStudent[toolIndex]"
  8990. :key="wIndex"
  8991. >
  8992. <div class="workImg">
  8993. <img
  8994. src="../../assets/icon/works/noImg.png"
  8995. @click="openPj(w.works, toolIndex)"
  8996. alt
  8997. />
  8998. <img
  8999. class="deleteImg"
  9000. src="../../assets/deleteworks.png"
  9001. v-if="
  9002. w.userid == userid || tType == 1 || tType == 4
  9003. "
  9004. @click.stop="deleteWorks(w.wid)"
  9005. alt
  9006. />
  9007. </div>
  9008. <div class="worksName">
  9009. <div>{{ w.sName }}</div>
  9010. </div>
  9011. </div>
  9012. </div>
  9013. </div>
  9014. <div
  9015. v-if="
  9016. tType &&
  9017. ((tType == 2 && sIsOpen == true) ||
  9018. tType == 1 ||
  9019. tType == 4) &&
  9020. tool.tool.indexOf(41) != -1
  9021. "
  9022. >
  9023. <AnswerData2
  9024. v-if="
  9025. worksStudent.length &&
  9026. worksStudent[toolIndex].length > 0
  9027. "
  9028. :problemJson="tool.selectJson.answer"
  9029. :people="worksStudent[toolIndex]"
  9030. ></AnswerData2>
  9031. </div>
  9032. <div
  9033. v-if="
  9034. tType &&
  9035. ((tType == 2 && sIsOpen == true) ||
  9036. tType == 1 ||
  9037. tType == 4) &&
  9038. tool.tool.indexOf(41) != -1
  9039. "
  9040. class="worksBox"
  9041. >
  9042. <div
  9043. class="zuoyeYulan"
  9044. v-if="
  9045. worksStudent.length &&
  9046. worksStudent[toolIndex].length > 0
  9047. "
  9048. >
  9049. <div class="worksTop">
  9050. <div>作业预览</div>
  9051. <div
  9052. class="corOpen"
  9053. @click="contract(toolIndex)"
  9054. v-if="
  9055. isCloseList[toolIndex].isCloseBoolean &&
  9056. isCloseList[toolIndex].isClose == 0
  9057. "
  9058. >
  9059. 折叠
  9060. </div>
  9061. <div
  9062. class="corOpen"
  9063. @click="contract(toolIndex)"
  9064. v-if="isCloseList[toolIndex].isClose == 1"
  9065. >
  9066. 展开
  9067. </div>
  9068. </div>
  9069. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9070. </div>
  9071. <div
  9072. :id="'tool-' + toolIndex"
  9073. :style="{
  9074. height:
  9075. isCloseList[toolIndex].isClose == 1
  9076. ? retrnToolHeight('tool-' + toolIndex)
  9077. : 'auto',
  9078. overflow:
  9079. isCloseList[toolIndex].isClose == 1
  9080. ? 'hidden'
  9081. : 'unset'
  9082. }"
  9083. class="worksDetailBox"
  9084. v-if="
  9085. worksStudent.length &&
  9086. worksStudent[toolIndex].length > 0
  9087. "
  9088. >
  9089. <div
  9090. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9091. :key="wIndex"
  9092. class="isWorksName2"
  9093. @click="openXz(w, toolIndex)"
  9094. >
  9095. {{ w.sName }}
  9096. <img
  9097. class="deleteImg deleteImg2"
  9098. src="../../assets/deleteworks.png"
  9099. v-if="w.userid == userid || tType == 1 || tType == 4"
  9100. @click.stop="deleteWorks(w.wid)"
  9101. alt
  9102. />
  9103. </div>
  9104. <!-- <div
  9105. class="works"
  9106. style="
  9107. width: 200px;
  9108. height: 140px;
  9109. margin: 10px 10px 10px 0;
  9110. border-radius: 15px;
  9111. box-shadow: 0 0 6px 1px #dfdada;
  9112. " v-for="(w, wIndex) in worksStudent[toolIndex]" :key="wIndex"
  9113. :class="w.type == 5 ? 'isTypeOne' : ''">
  9114. <div class="workImg">
  9115. <img src="../../assets/icon/works/noImg.png" @click="openXz(w, toolIndex)" alt />
  9116. </div>
  9117. <div class="worksName">
  9118. <div>{{ w.sName }}</div>
  9119. </div>
  9120. </div> -->
  9121. </div>
  9122. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9123. 未提交
  9124. </div>
  9125. <div
  9126. class="noWorksS"
  9127. v-if="noWorksS && noWorksS[toolIndex].length"
  9128. >
  9129. <div
  9130. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9131. :key="sIndex"
  9132. class="noWorksName"
  9133. @click="teacherWorkSubmit(41, toolIndex, taskCount, s)"
  9134. >
  9135. <el-tooltip
  9136. effect="dark"
  9137. :content="s.student"
  9138. placement="top"
  9139. >
  9140. <span>{{ s.student }}</span>
  9141. </el-tooltip>
  9142. </div>
  9143. </div>
  9144. </div>
  9145. <div
  9146. v-if="
  9147. tType &&
  9148. tType == 2 &&
  9149. !sIsOpen &&
  9150. tool.tool.indexOf(41) != -1
  9151. "
  9152. class="worksBox"
  9153. >
  9154. <div
  9155. class="zuoyeYulan"
  9156. v-if="workStudent[toolIndex].length > 0"
  9157. >
  9158. <span class="worksTitle">作业预览</span>
  9159. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9160. </div>
  9161. <div
  9162. class="worksDetailBox"
  9163. v-if="workStudent[toolIndex].length > 0"
  9164. >
  9165. <div
  9166. class="works"
  9167. style="
  9168. width: 200px;
  9169. height: 140px;
  9170. margin: 10px 10px 10px 0;
  9171. "
  9172. v-for="(w, wIndex) in workStudent[toolIndex]"
  9173. :key="wIndex"
  9174. >
  9175. <div class="workImg">
  9176. <img
  9177. src="../../assets/icon/works/noImg.png"
  9178. @click="openXz(w, toolIndex)"
  9179. alt
  9180. />
  9181. <img
  9182. class="deleteImg"
  9183. src="../../assets/deleteworks.png"
  9184. v-if="
  9185. w.userid == userid || tType == 1 || tType == 4
  9186. "
  9187. @click.stop="deleteWorks(w.wid)"
  9188. alt
  9189. />
  9190. </div>
  9191. <div class="worksName">
  9192. <div>{{ w.sName }}</div>
  9193. </div>
  9194. </div>
  9195. </div>
  9196. </div>
  9197. <div v-if="false" class="xuan_right_box">
  9198. <div
  9199. class="tool_right_box"
  9200. v-for="(item, index) in tool.sentenceList"
  9201. :key="index"
  9202. >
  9203. <div>
  9204. <span
  9205. style="word-break: break-all; white-space: normal"
  9206. >{{ index + 1 + "、" + item.sentenceTitle }}</span
  9207. >
  9208. </div>
  9209. <div class="right_box_xuan">
  9210. <span>正确率</span>
  9211. <span>{{
  9212. (checkJson[toolIndex][index].right
  9213. ? checkJson[toolIndex][index].right
  9214. : 0) + "%"
  9215. }}</span>
  9216. </div>
  9217. <div class="right_box_xuan">
  9218. <span>答对人数</span>
  9219. <span>{{
  9220. checkJson[toolIndex][index].rightPerson.length
  9221. }}</span>
  9222. </div>
  9223. </div>
  9224. </div>
  9225. <div
  9226. v-if="
  9227. tType &&
  9228. ((tType == 2 && sIsOpen == true) ||
  9229. tType == 1 ||
  9230. tType == 4) &&
  9231. tool.tool.indexOf(47) != -1
  9232. "
  9233. >
  9234. <!-- <AnswerData
  9235. v-if="
  9236. checkJson[toolIndex].length &&
  9237. (tool.sentenceList || tool.sentenceList.length > 0)
  9238. "
  9239. :people="checkJson[toolIndex]"
  9240. ></AnswerData> -->
  9241. <sortToolWorkShow v-if="
  9242. worksStudent[toolIndex].length
  9243. "
  9244. :people="worksStudent[toolIndex]"></sortToolWorkShow>
  9245. </div>
  9246. <div
  9247. v-if="
  9248. tType &&
  9249. tType == 2 &&
  9250. !sIsOpen &&
  9251. tool.tool.indexOf(47) != -1
  9252. "
  9253. class="worksBox"
  9254. >
  9255. <div
  9256. class="zuoyeYulan"
  9257. v-if="workStudent[toolIndex].length > 0"
  9258. >
  9259. <span class="worksTitle">作业预览</span>
  9260. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9261. </div>
  9262. <div
  9263. class="worksDetailBox"
  9264. v-if="workStudent[toolIndex].length > 0"
  9265. >
  9266. <div
  9267. class="works"
  9268. style="
  9269. width: 200px;
  9270. height: 140px;
  9271. margin: 10px 10px 10px 0;
  9272. "
  9273. v-for="(w, wIndex) in workStudent[toolIndex]"
  9274. :key="wIndex"
  9275. >
  9276. <!-- @click="openXz(w, toolIndex)" -->
  9277. <div class="workImg" @click="openSen(w, toolIndex)">
  9278. <img src="../../assets/icon/works/noImg.png" alt />
  9279. <img
  9280. class="deleteImg"
  9281. src="../../assets/deleteworks.png"
  9282. v-if="
  9283. w.userid == userid || tType == 1 || tType == 4
  9284. "
  9285. @click.stop="deleteWorks(w.wid)"
  9286. alt
  9287. />
  9288. </div>
  9289. <div class="worksName">
  9290. <div>
  9291. {{ w.sName }}
  9292. </div>
  9293. </div>
  9294. </div>
  9295. </div>
  9296. </div>
  9297. <div
  9298. v-if="
  9299. tType &&
  9300. ((tType == 2 && sIsOpen == true) ||
  9301. tType == 1 ||
  9302. tType == 4) &&
  9303. tool.tool.indexOf(47) != -1
  9304. "
  9305. class="worksBox"
  9306. >
  9307. <div
  9308. class="zuoyeYulan"
  9309. v-if="
  9310. worksStudent.length &&
  9311. worksStudent[toolIndex].length > 0
  9312. "
  9313. >
  9314. <div class="worksTop">
  9315. <div>作业预览</div>
  9316. <div
  9317. class="corOpen"
  9318. @click="contract(toolIndex)"
  9319. v-if="
  9320. isCloseList[toolIndex].isCloseBoolean &&
  9321. isCloseList[toolIndex].isClose == 0
  9322. "
  9323. >
  9324. 折叠
  9325. </div>
  9326. <div
  9327. class="corOpen"
  9328. @click="contract(toolIndex)"
  9329. v-if="isCloseList[toolIndex].isClose == 1"
  9330. >
  9331. 展开
  9332. </div>
  9333. </div>
  9334. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9335. </div>
  9336. <div
  9337. :id="'tool-' + toolIndex"
  9338. :style="{
  9339. height:
  9340. isCloseList[toolIndex].isClose == 1
  9341. ? retrnToolHeight('tool-' + toolIndex)
  9342. : 'auto',
  9343. overflow:
  9344. isCloseList[toolIndex].isClose == 1
  9345. ? 'hidden'
  9346. : 'unset'
  9347. }"
  9348. class="worksDetailBox"
  9349. v-if="
  9350. worksStudent.length &&
  9351. worksStudent[toolIndex].length > 0
  9352. "
  9353. >
  9354. <!-- @click="openXz(w, toolIndex)" -->
  9355. <div
  9356. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9357. :key="wIndex"
  9358. class="isWorksName2"
  9359. @click="openSen(w, toolIndex)"
  9360. >
  9361. {{ w.sName }}
  9362. <img
  9363. class="deleteImg deleteImg2"
  9364. src="../../assets/deleteworks.png"
  9365. v-if="w.userid == userid || tType == 1 || tType == 4"
  9366. @click.stop="deleteWorks(w.wid)"
  9367. alt
  9368. />
  9369. </div>
  9370. </div>
  9371. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9372. 未提交
  9373. </div>
  9374. <div
  9375. class="noWorksS"
  9376. v-if="noWorksS && noWorksS[toolIndex].length"
  9377. >
  9378. <div
  9379. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9380. :key="sIndex"
  9381. class="noWorksName"
  9382. @click="teacherWorkSubmit(47, toolIndex, taskCount, s)"
  9383. >
  9384. <el-tooltip
  9385. effect="dark"
  9386. :content="s.student"
  9387. placement="top"
  9388. >
  9389. <span>{{ s.student }}</span>
  9390. </el-tooltip>
  9391. </div>
  9392. </div>
  9393. </div>
  9394. <div
  9395. v-if="
  9396. tType &&
  9397. ((tType == 2 && sIsOpen == true) ||
  9398. tType == 1 ||
  9399. tType == 4) &&
  9400. tool.tool.indexOf(48) != -1
  9401. "
  9402. class="worksBox"
  9403. >
  9404. <div
  9405. class="zuoyeYulan"
  9406. style="display: flex;justify-content: space-between;align-items: center;"
  9407. v-if="
  9408. worksStudent.length &&
  9409. worksStudent[toolIndex].length > 0
  9410. "
  9411. >
  9412. <div class="worksTop">
  9413. <div>作业预览</div>
  9414. <div
  9415. class="corOpen"
  9416. @click="contract(toolIndex)"
  9417. v-if="
  9418. isCloseList[toolIndex].isCloseBoolean &&
  9419. isCloseList[toolIndex].isClose == 0
  9420. "
  9421. >
  9422. 折叠
  9423. </div>
  9424. <div
  9425. class="corOpen"
  9426. @click="contract(toolIndex)"
  9427. v-if="isCloseList[toolIndex].isClose == 1"
  9428. >
  9429. 展开
  9430. </div>
  9431. </div>
  9432. <div
  9433. style="display: flex;"
  9434. v-if="
  9435. (courseDetail.userid == userid ||
  9436. (courseDetail.course_teacher &&
  9437. courseDetail.course_teacher.indexOf(userid) !=
  9438. -1)) &&
  9439. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9440. taskCount
  9441. ].eList &&
  9442. chapInfoList[courseType].chapterInfo[0].taskJson[
  9443. taskCount
  9444. ].eList.length) ||
  9445. (tool.eList && tool.eList.length)) &&
  9446. courseDetail.state == 6
  9447. "
  9448. >
  9449. <div
  9450. style="margin-right:10px"
  9451. class="ScoreBtn"
  9452. @click="
  9453. resetLoopEva(
  9454. worksStudent[toolIndex],
  9455. chapInfoList[courseType].chapterInfo[0].taskJson[
  9456. taskCount
  9457. ].eList,
  9458. courseType,
  9459. taskCount,
  9460. toolIndex,
  9461. tool.toolDetail,
  9462. worksStudent
  9463. )
  9464. "
  9465. >
  9466. 一键重置
  9467. </div>
  9468. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9469. <img
  9470. src="../../assets/icon/newIcons/rootImg.png"
  9471. alt=""
  9472. />
  9473. AI评分
  9474. </div>
  9475. <div
  9476. class="ScoreBtn"
  9477. v-else-if="!loopLoading[toolIndex].loading"
  9478. @click="
  9479. loopEva(
  9480. worksStudent[toolIndex],
  9481. chapInfoList[courseType].chapterInfo[0].taskJson[
  9482. taskCount
  9483. ].eList,
  9484. courseType,
  9485. taskCount,
  9486. toolIndex,
  9487. tool.toolDetail,
  9488. chapInfoList[courseType].chapterInfo[0].taskJson[
  9489. taskCount
  9490. ].taskDetail,
  9491. tool
  9492. )
  9493. "
  9494. >
  9495. <img
  9496. src="../../assets/icon/newIcons/rootImg.png"
  9497. alt=""
  9498. />
  9499. AI评分
  9500. </div>
  9501. <div class="ScoreBtn" v-else>
  9502. <img
  9503. src="../../assets/icon/newIcons/rootImg.png"
  9504. alt=""
  9505. />
  9506. 正在评分
  9507. </div>
  9508. </div>
  9509. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9510. </div>
  9511. <div
  9512. :id="'tool-' + toolIndex"
  9513. :style="{
  9514. height:
  9515. isCloseList[toolIndex].isClose == 1
  9516. ? retrnToolHeight('tool-' + toolIndex)
  9517. : 'auto',
  9518. overflow:
  9519. isCloseList[toolIndex].isClose == 1
  9520. ? 'hidden'
  9521. : 'unset'
  9522. }"
  9523. class="worksDetailBox"
  9524. v-if="
  9525. worksStudent.length &&
  9526. worksStudent[toolIndex].length > 0
  9527. "
  9528. >
  9529. <div
  9530. class="works"
  9531. style="
  9532. width: 200px;
  9533. height: 140px;
  9534. margin: 10px 10px 10px 0;
  9535. border-radius: 15px;
  9536. box-shadow: 0 0 6px 1px #dfdada;
  9537. "
  9538. v-for="(w, wIndex) in worksStudent[toolIndex]"
  9539. :key="wIndex"
  9540. :class="w.type == 1 ? 'isTypeOne' : ''"
  9541. >
  9542. <div class="workImg">
  9543. <img :src="word" @click="openTable(w)" alt />
  9544. <!-- @click="openFile(w.works)" -->
  9545. <div
  9546. class="answerScore"
  9547. v-if="w.score"
  9548. @click.stop="openScore(w)"
  9549. :class="{
  9550. rightW:
  9551. w.userid == userid ||
  9552. tType == 1 ||
  9553. tType == 4 ||
  9554. w.ateacher == userid
  9555. }"
  9556. >
  9557. {{ JSON.parse(w.score).wScore }}分
  9558. </div>
  9559. <div
  9560. class="answerScore"
  9561. @click.stop="openScore(w)"
  9562. v-else-if="
  9563. courseDetail.userid == userid &&
  9564. courseDetail.state != 6 &&
  9565. chapInfoList[courseType].chapterInfo[0]
  9566. .taskJson[taskCount].eList &&
  9567. chapInfoList[courseType].chapterInfo[0]
  9568. .taskJson[taskCount].eList.length
  9569. "
  9570. :class="{
  9571. rightW:
  9572. w.userid == userid ||
  9573. tType == 1 ||
  9574. tType == 4 ||
  9575. w.ateacher == userid
  9576. }"
  9577. >
  9578. 评分
  9579. </div>
  9580. <!-- <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"> -->
  9581. <div
  9582. v-else-if="
  9583. (courseDetail.userid == userid ||
  9584. (courseDetail.course_teacher &&
  9585. courseDetail.course_teacher.indexOf(userid) !=
  9586. -1) ||
  9587. (w.userid == userid && sIsOpen)) &&
  9588. courseDetail.state == 6 &&
  9589. ((chapInfoList[courseType].chapterInfo[0]
  9590. .taskJson[taskCount].eList &&
  9591. chapInfoList[courseType].chapterInfo[0]
  9592. .taskJson[taskCount].eList.length) ||
  9593. (tool.eList && tool.eList.length))
  9594. "
  9595. >
  9596. <el-popover
  9597. placement="top"
  9598. width="318"
  9599. :disabled="AIloading[toolIndex][wIndex].loading"
  9600. trigger="hover"
  9601. >
  9602. <markScore
  9603. :loading="AIloading[toolIndex][wIndex].loading"
  9604. :markScoreVisible="markScoreVisible"
  9605. :ref="`markSco${toolIndex}${wIndex}`"
  9606. @updateLoading="updateLoading"
  9607. @updateDocSco="updateDocSco"
  9608. @refreshOther="refreshOther"
  9609. @markScoreDig="markScoreDig"
  9610. :tool="tool"
  9611. :wIndex="wIndex"
  9612. :scoCon="w"
  9613. :toolIndex="toolIndex"
  9614. :key="refreshKey"
  9615. :stage="courseType"
  9616. :task="taskCount"
  9617. :scoTit="
  9618. chapInfoList[courseType].chapterInfo[0]
  9619. .taskJson[taskCount].eList
  9620. "
  9621. >
  9622. </markScore>
  9623. <div
  9624. class="answerScore"
  9625. @click="
  9626. markScoreDig2(
  9627. w.sName,
  9628. worksStudent,
  9629. w.userid,
  9630. toolIndex,
  9631. chapInfoList[courseType].chapterInfo[0]
  9632. .taskJson[taskCount].eList,
  9633. AIloading[toolIndex][wIndex].loading,
  9634. tool
  9635. )
  9636. "
  9637. slot="reference"
  9638. :class="{
  9639. rightW:
  9640. w.userid == userid ||
  9641. tType == 1 ||
  9642. tType == 4 ||
  9643. w.ateacher == userid
  9644. }"
  9645. >
  9646. <span v-if="AIloading[toolIndex][wIndex].sco">
  9647. {{
  9648. AIloading[toolIndex][wIndex].loading
  9649. ? "评分中"
  9650. : AIloading[toolIndex][wIndex].sco + "分"
  9651. }}
  9652. </span>
  9653. <span v-else>
  9654. {{
  9655. AIloading[toolIndex][wIndex].loading
  9656. ? "评分中"
  9657. : "评分"
  9658. }}
  9659. </span>
  9660. </div>
  9661. </el-popover>
  9662. </div>
  9663. <img
  9664. class="deleteImg"
  9665. src="../../assets/deleteworks.png"
  9666. v-if="
  9667. w.userid == userid || tType == 1 || tType == 4
  9668. "
  9669. @click.stop="deleteWorks(w.wid)"
  9670. alt
  9671. />
  9672. </div>
  9673. <div class="comment" style="min-width: 200px">
  9674. <div class="worksName">
  9675. <div>{{ w.sName }}</div>
  9676. </div>
  9677. <div class="commentList">
  9678. <div class="commentList">
  9679. <div
  9680. class="commentImg"
  9681. @click="
  9682. isLikes(
  9683. w.wid,
  9684. userid,
  9685. 1,
  9686. null,
  9687. w.isLikes,
  9688. w.sName
  9689. )
  9690. "
  9691. >
  9692. <img
  9693. :src="w.isLikes == true ? likes : noLikes"
  9694. alt=""
  9695. />
  9696. </div>
  9697. <div>{{ w.likesCount }}</div>
  9698. </div>
  9699. <div class="commentList" style="margin-right: 15px">
  9700. <div
  9701. class="commentImg"
  9702. @click="commentOther(w, toolIndex, wIndex)"
  9703. >
  9704. <img
  9705. src="../../assets/icon/comment/comment.png"
  9706. alt=""
  9707. />
  9708. </div>
  9709. <div>{{ w.commentCount }}</div>
  9710. </div>
  9711. </div>
  9712. </div>
  9713. </div>
  9714. </div>
  9715. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  9716. 未提交
  9717. </div>
  9718. <div
  9719. class="noWorksS"
  9720. v-if="noWorksS && noWorksS[toolIndex].length"
  9721. >
  9722. <div
  9723. v-for="(s, sIndex) in noWorksS[toolIndex]"
  9724. :key="sIndex"
  9725. class="noWorksName"
  9726. @click="teacherWorkSubmit(48, toolIndex, taskCount, s)"
  9727. >
  9728. <el-tooltip
  9729. effect="dark"
  9730. :content="s.student"
  9731. placement="top"
  9732. >
  9733. <span>{{ s.student }}</span>
  9734. </el-tooltip>
  9735. </div>
  9736. </div>
  9737. </div>
  9738. <div
  9739. v-if="
  9740. tType &&
  9741. tType == 2 &&
  9742. !sIsOpen &&
  9743. tool.tool.indexOf(48) != -1
  9744. "
  9745. class="worksBox"
  9746. >
  9747. <div
  9748. class="zuoyeYulan"
  9749. v-if="workStudent[toolIndex].length > 0"
  9750. >
  9751. <span class="worksTitle">作业预览</span>
  9752. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9753. </div>
  9754. <div
  9755. class="worksDetailBox"
  9756. v-if="workStudent[toolIndex].length > 0"
  9757. >
  9758. <div
  9759. class="works"
  9760. style="
  9761. width: 200px;
  9762. height: 140px;
  9763. margin: 10px 10px 10px 0;
  9764. box-shadow: 0 0 6px 1px #dfdada;
  9765. "
  9766. v-for="(w, wIndex) in workStudent[toolIndex]"
  9767. :key="wIndex"
  9768. >
  9769. <div class="workImg">
  9770. <img :src="word" @click="openTable(w)" alt />
  9771. <div
  9772. class="answerScore"
  9773. v-if="w.score"
  9774. @click.stop="openScore(w)"
  9775. :class="{
  9776. rightW:
  9777. w.userid == userid || tType == 1 || tType == 4
  9778. }"
  9779. >
  9780. {{ JSON.parse(w.score).wScore }}分
  9781. </div>
  9782. <div
  9783. class="answerScore"
  9784. @click.stop="openScore(w)"
  9785. v-else-if="courseDetail.userid == userid"
  9786. :class="{
  9787. rightW:
  9788. w.userid == userid || tType == 1 || tType == 4
  9789. }"
  9790. >
  9791. 评分
  9792. </div>
  9793. <div
  9794. class="stuLookScore"
  9795. v-if="
  9796. w.userid == userid ||
  9797. (tType == 1 &&
  9798. courseDetail.state == 6 &&
  9799. ((chapInfoList[courseType].chapterInfo[0]
  9800. .taskJson[taskCount].eList &&
  9801. chapInfoList[courseType].chapterInfo[0]
  9802. .taskJson[taskCount].eList.length) ||
  9803. (tool.eList && tool.eList.length)))
  9804. "
  9805. >
  9806. <el-popover
  9807. placement="top"
  9808. width="318"
  9809. trigger="hover"
  9810. >
  9811. <markScore
  9812. :loading="AIloading[toolIndex][wIndex].loading"
  9813. :markScoreVisible="markScoreVisible"
  9814. :ref="`markSco${toolIndex}${wIndex}`"
  9815. @updateLoading="updateLoading"
  9816. @updateDocSco="updateDocSco"
  9817. @refreshOther="refreshOther"
  9818. @markScoreDig="markScoreDig"
  9819. :tool="tool"
  9820. :wIndex="wIndex"
  9821. :scoCon="w"
  9822. :toolIndex="toolIndex"
  9823. :key="refreshKey"
  9824. :stage="courseType"
  9825. :task="taskCount"
  9826. :scoTit="
  9827. chapInfoList[courseType].chapterInfo[0]
  9828. .taskJson[taskCount].eList
  9829. "
  9830. >
  9831. </markScore>
  9832. <div
  9833. @click="
  9834. markScoreDig2(
  9835. w.sName,
  9836. worksStudent,
  9837. w.userid,
  9838. toolIndex,
  9839. chapInfoList[courseType].chapterInfo[0]
  9840. .taskJson[taskCount].eList,
  9841. AIloading[toolIndex][wIndex].loading,
  9842. tool
  9843. )
  9844. "
  9845. slot="reference"
  9846. >
  9847. <span v-if="AIloading[toolIndex][wIndex].sco">
  9848. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  9849. </span>
  9850. <span v-else>
  9851. 评分
  9852. </span>
  9853. </div>
  9854. </el-popover>
  9855. </div>
  9856. <img
  9857. class="deleteImg"
  9858. src="../../assets/deleteworks.png"
  9859. v-if="
  9860. w.userid == userid || tType == 1 || tType == 4
  9861. "
  9862. @click.stop="deleteWorks(w.wid)"
  9863. alt
  9864. />
  9865. </div>
  9866. <div class="worksName">
  9867. <div>{{ w.sName }}</div>
  9868. </div>
  9869. </div>
  9870. </div>
  9871. </div>
  9872. <div
  9873. v-if="
  9874. tType &&
  9875. ((tType == 2 && sIsOpen == true) ||
  9876. tType == 1 ||
  9877. tType == 4) &&
  9878. tool.tool.indexOf(52) != -1
  9879. "
  9880. class="worksBox"
  9881. >
  9882. <div
  9883. class="zuoyeYulan"
  9884. style="display: flex;justify-content: space-between;align-items: center;"
  9885. v-if="
  9886. worksStudent.length &&
  9887. worksStudent[toolIndex].length > 0
  9888. "
  9889. >
  9890. <div class="worksTop">
  9891. <div>作业预览</div>
  9892. <div
  9893. class="corOpen"
  9894. @click="contract(toolIndex)"
  9895. v-if="
  9896. isCloseList[toolIndex].isCloseBoolean &&
  9897. isCloseList[toolIndex].isClose == 0
  9898. "
  9899. >
  9900. 折叠
  9901. </div>
  9902. <div
  9903. class="corOpen"
  9904. @click="contract(toolIndex)"
  9905. v-if="isCloseList[toolIndex].isClose == 1"
  9906. >
  9907. 展开
  9908. </div>
  9909. </div>
  9910. <div
  9911. style="display: flex;"
  9912. v-if="
  9913. (courseDetail.userid == userid ||
  9914. (courseDetail.course_teacher &&
  9915. courseDetail.course_teacher.indexOf(userid) !=
  9916. -1)) &&
  9917. ((chapInfoList[courseType].chapterInfo[0].taskJson[
  9918. taskCount
  9919. ].eList &&
  9920. chapInfoList[courseType].chapterInfo[0].taskJson[
  9921. taskCount
  9922. ].eList.length) ||
  9923. (tool.eList && tool.eList.length)) &&
  9924. courseDetail.state == 6
  9925. "
  9926. >
  9927. <!-- <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"> -->
  9928. <div
  9929. @click="
  9930. resetLoopEva(
  9931. worksStudent[toolIndex],
  9932. chapInfoList[courseType].chapterInfo[0].taskJson[
  9933. taskCount
  9934. ].eList,
  9935. courseType,
  9936. taskCount,
  9937. toolIndex,
  9938. tool.toolDetail,
  9939. tool
  9940. )
  9941. "
  9942. style="margin-right:10px"
  9943. class="ScoreBtn"
  9944. >
  9945. 一键重置
  9946. </div>
  9947. <div class="ScoreBtn" @click="noIsAi" v-if="isaiNum">
  9948. <img
  9949. src="../../assets/icon/newIcons/rootImg.png"
  9950. alt=""
  9951. />
  9952. AI评分
  9953. </div>
  9954. <div
  9955. class="ScoreBtn"
  9956. v-else-if="!loopLoading[toolIndex].loading"
  9957. @click="
  9958. loopEva(
  9959. worksStudent[toolIndex],
  9960. chapInfoList[courseType].chapterInfo[0].taskJson[
  9961. taskCount
  9962. ].eList,
  9963. courseType,
  9964. taskCount,
  9965. toolIndex,
  9966. tool.toolDetail,
  9967. chapInfoList[courseType].chapterInfo[0].taskJson[
  9968. taskCount
  9969. ].taskDetail,
  9970. tool
  9971. )
  9972. "
  9973. >
  9974. <img
  9975. src="../../assets/icon/newIcons/rootImg.png"
  9976. alt=""
  9977. />
  9978. AI评分
  9979. </div>
  9980. <div class="ScoreBtn" v-else>
  9981. <img
  9982. src="../../assets/icon/newIcons/rootImg.png"
  9983. alt=""
  9984. />
  9985. 正在评分
  9986. </div>
  9987. </div>
  9988. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  9989. </div>
  9990. <div
  9991. :id="'tool-' + toolIndex"
  9992. :style="{
  9993. height:
  9994. isCloseList[toolIndex].isClose == 1
  9995. ? retrnToolHeight('tool-' + toolIndex)
  9996. : 'auto',
  9997. overflow:
  9998. isCloseList[toolIndex].isClose == 1
  9999. ? 'hidden'
  10000. : 'unset'
  10001. }"
  10002. class="worksDetailBox"
  10003. v-if="
  10004. worksStudent.length &&
  10005. worksStudent[toolIndex].length > 0
  10006. "
  10007. >
  10008. <div
  10009. class="works"
  10010. style="
  10011. width: 200px;
  10012. height: 140px;
  10013. margin: 10px 10px 10px 0;
  10014. border-radius: 15px;
  10015. box-shadow: 0 0 6px 1px #dfdada;
  10016. "
  10017. v-for="(w, wIndex) in worksStudent[toolIndex]"
  10018. :key="wIndex"
  10019. :class="w.type == 1 ? 'isTypeOne' : ''"
  10020. >
  10021. <div class="workImg">
  10022. <img :src="word" @click="openWord(w)" alt />
  10023. <!-- @click="openFile(w.works)" -->
  10024. <div
  10025. class="answerScore"
  10026. v-if="w.score"
  10027. @click.stop="openScore(w)"
  10028. :class="{
  10029. rightW:
  10030. w.userid == userid ||
  10031. tType == 1 ||
  10032. tType == 4 ||
  10033. w.ateacher == userid
  10034. }"
  10035. >
  10036. {{ JSON.parse(w.score).wScore }}分
  10037. </div>
  10038. <div
  10039. class="answerScore"
  10040. @click.stop="openScore(w)"
  10041. v-else-if="
  10042. courseDetail.userid == userid &&
  10043. courseDetail.state != 6 &&
  10044. chapInfoList[courseType].chapterInfo[0]
  10045. .taskJson[taskCount].eList &&
  10046. chapInfoList[courseType].chapterInfo[0]
  10047. .taskJson[taskCount].eList.length
  10048. "
  10049. :class="{
  10050. rightW:
  10051. w.userid == userid ||
  10052. tType == 1 ||
  10053. tType == 4 ||
  10054. w.ateacher == userid
  10055. }"
  10056. >
  10057. 评分
  10058. </div>
  10059. <!-- <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"> -->
  10060. <div
  10061. v-else-if="
  10062. (courseDetail.userid == userid ||
  10063. (courseDetail.course_teacher &&
  10064. courseDetail.course_teacher.indexOf(userid) !=
  10065. -1) ||
  10066. (w.userid == userid && sIsOpen)) &&
  10067. courseDetail.state == 6 &&
  10068. ((chapInfoList[courseType].chapterInfo[0]
  10069. .taskJson[taskCount].eList &&
  10070. chapInfoList[courseType].chapterInfo[0]
  10071. .taskJson[taskCount].eList.length) ||
  10072. (tool.eList && tool.eList.length))
  10073. "
  10074. >
  10075. <!-- <div
  10076. class="answerScore"
  10077. @click="markScoreDig(w.userid,toolIndex)"
  10078. :class="{
  10079. rightW:
  10080. w.userid == userid ||
  10081. tType == 1 ||
  10082. tType == 4 ||
  10083. w.ateacher == userid,
  10084. }"
  10085. >
  10086. {{ AIloading[toolIndex][wIndex].sco ? AIloading[toolIndex][wIndex].sco :'评分'}}
  10087. </div> -->
  10088. <!-- @show="handleShow(toolIndex,wIndex)"
  10089. @hide="handleHide(toolIndex,wIndex,worksStudent)" -->
  10090. <el-popover
  10091. placement="top"
  10092. width="318"
  10093. :disabled="AIloading[toolIndex][wIndex].loading"
  10094. trigger="hover"
  10095. >
  10096. <markScore
  10097. :loading="AIloading[toolIndex][wIndex].loading"
  10098. :markScoreVisible="markScoreVisible"
  10099. :ref="`markSco${toolIndex}${wIndex}`"
  10100. @updateLoading="updateLoading"
  10101. @updateDocSco="updateDocSco"
  10102. @refreshOther="refreshOther"
  10103. @markScoreDig="markScoreDig"
  10104. :tool="tool"
  10105. :wIndex="wIndex"
  10106. :scoCon="w"
  10107. :toolIndex="toolIndex"
  10108. :key="refreshKey"
  10109. :stage="courseType"
  10110. :task="taskCount"
  10111. :scoTit="
  10112. chapInfoList[courseType].chapterInfo[0]
  10113. .taskJson[taskCount].eList
  10114. "
  10115. >
  10116. </markScore>
  10117. <div
  10118. class="answerScore"
  10119. @click="
  10120. markScoreDig2(
  10121. w.sName,
  10122. worksStudent,
  10123. w.userid,
  10124. toolIndex,
  10125. chapInfoList[courseType].chapterInfo[0]
  10126. .taskJson[taskCount].eList,
  10127. AIloading[toolIndex][wIndex].loading,
  10128. tool
  10129. )
  10130. "
  10131. slot="reference"
  10132. :class="{
  10133. rightW:
  10134. w.userid == userid ||
  10135. tType == 1 ||
  10136. tType == 4 ||
  10137. w.ateacher == userid
  10138. }"
  10139. >
  10140. <span v-if="AIloading[toolIndex][wIndex].sco">
  10141. {{
  10142. AIloading[toolIndex][wIndex].loading
  10143. ? "评分中"
  10144. : AIloading[toolIndex][wIndex].sco + "分"
  10145. }}
  10146. </span>
  10147. <span v-else>
  10148. {{
  10149. AIloading[toolIndex][wIndex].loading
  10150. ? "评分中"
  10151. : "评分"
  10152. }}
  10153. </span>
  10154. </div>
  10155. </el-popover>
  10156. </div>
  10157. <img
  10158. class="deleteImg"
  10159. src="../../assets/deleteworks.png"
  10160. v-if="
  10161. w.userid == userid || tType == 1 || tType == 4
  10162. "
  10163. @click.stop="deleteWorks(w.wid)"
  10164. alt
  10165. />
  10166. </div>
  10167. <div class="comment" style="min-width: 200px">
  10168. <div class="worksName">
  10169. <div>{{ w.sName }}</div>
  10170. </div>
  10171. <div class="commentList">
  10172. <div class="commentList">
  10173. <div
  10174. class="commentImg"
  10175. @click="
  10176. isLikes(
  10177. w.wid,
  10178. userid,
  10179. 1,
  10180. null,
  10181. w.isLikes,
  10182. w.sName
  10183. )
  10184. "
  10185. >
  10186. <img
  10187. :src="w.isLikes == true ? likes : noLikes"
  10188. alt=""
  10189. />
  10190. </div>
  10191. <div>{{ w.likesCount }}</div>
  10192. </div>
  10193. <div class="commentList" style="margin-right: 15px">
  10194. <div
  10195. class="commentImg"
  10196. @click="commentOther(w, toolIndex, wIndex)"
  10197. >
  10198. <img
  10199. src="../../assets/icon/comment/comment.png"
  10200. alt=""
  10201. />
  10202. </div>
  10203. <div>{{ w.commentCount }}</div>
  10204. </div>
  10205. </div>
  10206. </div>
  10207. </div>
  10208. </div>
  10209. <div style="font-size: 18px" v-if="courseDetail.juri != ''">
  10210. 未提交
  10211. </div>
  10212. <div
  10213. class="noWorksS"
  10214. v-if="noWorksS && noWorksS[toolIndex].length"
  10215. >
  10216. <div
  10217. v-for="(s, sIndex) in noWorksS[toolIndex]"
  10218. :key="sIndex"
  10219. class="noWorksName"
  10220. @click="teacherWorkSubmit(52, toolIndex, taskCount, s)"
  10221. >
  10222. <el-tooltip
  10223. effect="dark"
  10224. :content="s.student"
  10225. placement="top"
  10226. >
  10227. <span>{{ s.student }}</span>
  10228. </el-tooltip>
  10229. </div>
  10230. </div>
  10231. </div>
  10232. <div
  10233. v-if="
  10234. tType &&
  10235. tType == 2 &&
  10236. !sIsOpen &&
  10237. tool.tool.indexOf(52) != -1
  10238. "
  10239. class="worksBox"
  10240. >
  10241. <div
  10242. class="zuoyeYulan"
  10243. v-if="workStudent[toolIndex].length > 0"
  10244. >
  10245. <span class="worksTitle">作业预览</span>
  10246. <!-- <el-button type="text" @click="jump()" v-if="tType == 2" class="buttonA">我的评价</el-button> -->
  10247. </div>
  10248. <div
  10249. class="worksDetailBox"
  10250. v-if="workStudent[toolIndex].length > 0"
  10251. >
  10252. <div
  10253. class="works"
  10254. style="
  10255. width: 200px;
  10256. height: 140px;
  10257. margin: 10px 10px 10px 0;
  10258. box-shadow: 0 0 6px 1px #dfdada;
  10259. "
  10260. v-for="(w, wIndex) in workStudent[toolIndex]"
  10261. :key="wIndex"
  10262. >
  10263. <div class="workImg">
  10264. <img :src="word" @click="openWord(w)" alt />
  10265. <div
  10266. class="answerScore"
  10267. v-if="w.score"
  10268. @click.stop="openScore(w)"
  10269. :class="{
  10270. rightW:
  10271. w.userid == userid || tType == 1 || tType == 4
  10272. }"
  10273. >
  10274. {{ JSON.parse(w.score).wScore }}分
  10275. </div>
  10276. <div
  10277. class="answerScore"
  10278. @click.stop="openScore(w)"
  10279. v-else-if="courseDetail.userid == userid"
  10280. :class="{
  10281. rightW:
  10282. w.userid == userid || tType == 1 || tType == 4
  10283. }"
  10284. >
  10285. 评分
  10286. </div>
  10287. <div
  10288. class="stuLookScore"
  10289. v-if="
  10290. w.userid == userid ||
  10291. (tType == 1 &&
  10292. courseDetail.state == 6 &&
  10293. ((chapInfoList[courseType].chapterInfo[0]
  10294. .taskJson[taskCount].eList &&
  10295. chapInfoList[courseType].chapterInfo[0]
  10296. .taskJson[taskCount].eList.length) ||
  10297. (tool.eList && tool.eList.length)))
  10298. "
  10299. >
  10300. <el-popover
  10301. placement="top"
  10302. width="318"
  10303. trigger="hover"
  10304. >
  10305. <markScore
  10306. :loading="AIloading[toolIndex][wIndex].loading"
  10307. :markScoreVisible="markScoreVisible"
  10308. :ref="`markSco${toolIndex}${wIndex}`"
  10309. @updateLoading="updateLoading"
  10310. @updateDocSco="updateDocSco"
  10311. @refreshOther="refreshOther"
  10312. @markScoreDig="markScoreDig"
  10313. :tool="tool"
  10314. :wIndex="wIndex"
  10315. :scoCon="w"
  10316. :toolIndex="toolIndex"
  10317. :key="refreshKey"
  10318. :stage="courseType"
  10319. :task="taskCount"
  10320. :scoTit="
  10321. chapInfoList[courseType].chapterInfo[0]
  10322. .taskJson[taskCount].eList
  10323. "
  10324. >
  10325. </markScore>
  10326. <div
  10327. @click="
  10328. markScoreDig2(
  10329. w.sName,
  10330. worksStudent,
  10331. w.userid,
  10332. toolIndex,
  10333. chapInfoList[courseType].chapterInfo[0]
  10334. .taskJson[taskCount].eList,
  10335. AIloading[toolIndex][wIndex].loading,
  10336. tool
  10337. )
  10338. "
  10339. slot="reference"
  10340. >
  10341. <span v-if="AIloading[toolIndex][wIndex].sco">
  10342. {{ AIloading[toolIndex][wIndex].sco + "分" }}
  10343. </span>
  10344. <span v-else>
  10345. 评分
  10346. </span>
  10347. </div>
  10348. </el-popover>
  10349. </div>
  10350. <img
  10351. class="deleteImg"
  10352. src="../../assets/deleteworks.png"
  10353. v-if="
  10354. w.userid == userid || tType == 1 || tType == 4
  10355. "
  10356. @click.stop="deleteWorks(w.wid)"
  10357. alt
  10358. />
  10359. </div>
  10360. <div class="worksName">
  10361. <div>{{ w.sName }}</div>
  10362. </div>
  10363. </div>
  10364. </div>
  10365. </div>
  10366. <div
  10367. v-if="tool.tool.indexOf(49) != -1"
  10368. class="xuan_right_box"
  10369. style="margin: 0 15px 0 25px; width: 93%"
  10370. >
  10371. <div
  10372. v-if="courseDetail.userid == userid"
  10373. style="
  10374. display: flex;
  10375. justify-content: flex-end;
  10376. margin-right: 10px;
  10377. "
  10378. >
  10379. <el-button
  10380. type="primary"
  10381. size="small"
  10382. @click="addTools(49, toolIndex, taskCount)"
  10383. >分组设置</el-button
  10384. >
  10385. </div>
  10386. <div
  10387. v-if="groupStudentUid[toolIndex]"
  10388. class="group_staic_box"
  10389. >
  10390. <div
  10391. v-for="(gp, gd) in tool.groupJson.group"
  10392. :key="gd"
  10393. class="group_staic"
  10394. >
  10395. <span> {{ gp.name }}</span>
  10396. <span>
  10397. 目前人数{{
  10398. groupStudentUid[toolIndex][gd].length
  10399. }}人</span
  10400. >
  10401. </div>
  10402. </div>
  10403. </div>
  10404. <div v-if="tool.tool.indexOf(49) != -1" class="worksBox">
  10405. <div
  10406. class="zuoyeYulan"
  10407. v-if="
  10408. worksStudent.length &&
  10409. worksStudent[toolIndex].length > 0
  10410. "
  10411. >
  10412. <span class="worksTitle">作业预览</span>
  10413. </div>
  10414. <div>
  10415. <div
  10416. class="group_workBox"
  10417. v-for="(g, gindex) in tool.groupJson.group"
  10418. :key="gindex"
  10419. >
  10420. <div
  10421. class="group_box"
  10422. v-if="
  10423. groupStudentUid[toolIndex] &&
  10424. worksStudent[toolIndex] &&
  10425. (worksStudent[toolIndex][gindex].length ||
  10426. groupStudentUid[toolIndex][gindex].indexOf(
  10427. userid
  10428. ) != -1)
  10429. "
  10430. >
  10431. <div class="group_title">
  10432. <el-tooltip
  10433. class="item"
  10434. effect="light"
  10435. :content="g.name"
  10436. placement="top"
  10437. >
  10438. <div class="group_name">{{ g.name }}</div>
  10439. </el-tooltip>
  10440. <el-button
  10441. type="primary"
  10442. v-if="
  10443. groupStudentUid[toolIndex][gindex].indexOf(
  10444. userid
  10445. ) != -1
  10446. "
  10447. @click="groupUpload(toolIndex, taskCount, gindex)"
  10448. >上传作业</el-button
  10449. >
  10450. </div>
  10451. <div class="group_work">
  10452. <div
  10453. class="works"
  10454. style="
  10455. width: 200px;
  10456. height: 140px;
  10457. margin: 10px 10px 10px 0;
  10458. border-radius: 15px;
  10459. box-shadow: 0 0 6px 1px #dfdada;
  10460. "
  10461. v-for="(w, wIndex) in worksStudent[toolIndex][
  10462. gindex
  10463. ]"
  10464. :key="wIndex"
  10465. :class="w.type == 1 ? 'isTypeOne' : ''"
  10466. >
  10467. <div class="workImg" v-if="w.type == 0">
  10468. <img
  10469. :src="w.works"
  10470. @click="previewImg(w.works, w)"
  10471. alt
  10472. />
  10473. <div
  10474. class="answerScore"
  10475. v-if="w.score"
  10476. @click.stop="openScore(w)"
  10477. :class="{
  10478. rightW:
  10479. w.userid == userid ||
  10480. tType == 1 ||
  10481. tType == 4 ||
  10482. w.ateacher == userid
  10483. }"
  10484. >
  10485. {{ JSON.parse(w.score).wScore }}分
  10486. </div>
  10487. <div
  10488. class="answerScore"
  10489. @click.stop="openScore(w)"
  10490. v-else-if="courseDetail.userid == userid"
  10491. :class="{
  10492. rightW:
  10493. w.userid == userid ||
  10494. tType == 1 ||
  10495. tType == 4 ||
  10496. w.ateacher == userid
  10497. }"
  10498. >
  10499. 评分
  10500. </div>
  10501. <img
  10502. class="deleteImg"
  10503. src="../../assets/deleteworks.png"
  10504. v-if="
  10505. w.userid == userid ||
  10506. tType == 1 ||
  10507. tType == 4
  10508. "
  10509. @click.stop="deleteWorks(w.wid)"
  10510. alt
  10511. />
  10512. </div>
  10513. <div class="workImg" v-if="w.type == 1">
  10514. <img
  10515. :src="word"
  10516. @click="openFile(w.works)"
  10517. alt
  10518. />
  10519. <!-- @click="openFile(w.works)" -->
  10520. <div
  10521. class="answerScore"
  10522. v-if="w.score"
  10523. @click.stop="openScore(w)"
  10524. :class="{
  10525. rightW:
  10526. w.userid == userid ||
  10527. tType == 1 ||
  10528. tType == 4 ||
  10529. w.ateacher == userid
  10530. }"
  10531. >
  10532. {{ JSON.parse(w.score).wScore }}分
  10533. </div>
  10534. <div
  10535. class="answerScore"
  10536. @click.stop="openScore(w)"
  10537. v-else-if="courseDetail.userid == userid"
  10538. :class="{
  10539. rightW:
  10540. w.userid == userid ||
  10541. tType == 1 ||
  10542. tType == 4 ||
  10543. w.ateacher == userid
  10544. }"
  10545. >
  10546. 评分
  10547. </div>
  10548. <img
  10549. class="deleteImg"
  10550. src="../../assets/deleteworks.png"
  10551. v-if="
  10552. w.userid == userid ||
  10553. tType == 1 ||
  10554. tType == 4
  10555. "
  10556. @click.stop="deleteWorks(w.wid)"
  10557. alt
  10558. />
  10559. </div>
  10560. <div class="workImg" v-if="w.type == 3">
  10561. <img
  10562. style="cursor: pointer"
  10563. :src="video"
  10564. @click="openVideo(w)"
  10565. alt
  10566. />
  10567. <!-- @click="openVideo(w.works)" -->
  10568. <div
  10569. class="answerScore"
  10570. v-if="w.score"
  10571. @click.stop="openScore(w)"
  10572. :class="{
  10573. rightW:
  10574. w.userid == userid ||
  10575. tType == 1 ||
  10576. tType == 4 ||
  10577. w.ateacher == userid
  10578. }"
  10579. >
  10580. {{ JSON.parse(w.score).wScore }}分
  10581. </div>
  10582. <div
  10583. class="answerScore"
  10584. @click.stop="openScore(w)"
  10585. v-else-if="courseDetail.userid == userid"
  10586. :class="{
  10587. rightW:
  10588. w.userid == userid ||
  10589. tType == 1 ||
  10590. tType == 4 ||
  10591. w.ateacher == userid
  10592. }"
  10593. >
  10594. 评分
  10595. </div>
  10596. <img
  10597. class="deleteImg"
  10598. src="../../assets/deleteworks.png"
  10599. v-if="
  10600. w.userid == userid ||
  10601. tType == 1 ||
  10602. tType == 4
  10603. "
  10604. @click.stop="deleteWorks(w.wid)"
  10605. alt
  10606. />
  10607. </div>
  10608. <div class="workImg" v-if="w.type == 12">
  10609. <img
  10610. style="cursor: pointer"
  10611. :src="word2"
  10612. @click="downloadFile(w.works,w.userid)"
  10613. alt
  10614. />
  10615. <!-- @click="openVideo(w.works)" -->
  10616. <div
  10617. class="answerScore"
  10618. v-if="w.score"
  10619. @click.stop="openScore(w)"
  10620. :class="{
  10621. rightW:
  10622. w.userid == userid ||
  10623. tType == 1 ||
  10624. tType == 4 ||
  10625. w.ateacher == userid
  10626. }"
  10627. >
  10628. {{ JSON.parse(w.score).wScore }}分
  10629. </div>
  10630. <div
  10631. class="answerScore"
  10632. @click.stop="openScore(w)"
  10633. v-else-if="courseDetail.userid == userid"
  10634. :class="{
  10635. rightW:
  10636. w.userid == userid ||
  10637. tType == 1 ||
  10638. tType == 4 ||
  10639. w.ateacher == userid
  10640. }"
  10641. >
  10642. 评分
  10643. </div>
  10644. <img
  10645. class="deleteImg"
  10646. src="../../assets/deleteworks.png"
  10647. v-if="
  10648. w.userid == userid ||
  10649. tType == 1 ||
  10650. tType == 4
  10651. "
  10652. @click.stop="deleteWorks(w.wid)"
  10653. alt
  10654. />
  10655. </div>
  10656. <div class="comment" style="min-width: 200px">
  10657. <div class="worksName">
  10658. <div>{{ w.sName }}</div>
  10659. </div>
  10660. <div class="commentList">
  10661. <div class="commentList">
  10662. <div
  10663. class="commentImg"
  10664. @click="
  10665. isLikes(
  10666. w.wid,
  10667. userid,
  10668. 1,
  10669. null,
  10670. w.isLikes,
  10671. w.sName
  10672. )
  10673. "
  10674. >
  10675. <img
  10676. :src="
  10677. w.isLikes == true ? likes : noLikes
  10678. "
  10679. alt=""
  10680. />
  10681. </div>
  10682. <div>{{ w.likesCount }}</div>
  10683. </div>
  10684. <div
  10685. class="commentList"
  10686. style="margin-right: 15px"
  10687. >
  10688. <div
  10689. class="commentImg"
  10690. @click="
  10691. commentOther(
  10692. w,
  10693. toolIndex,
  10694. wIndex,
  10695. gindex
  10696. )
  10697. "
  10698. >
  10699. <img
  10700. src="../../assets/icon/comment/comment.png"
  10701. alt=""
  10702. />
  10703. </div>
  10704. <div>{{ w.commentCount }}</div>
  10705. </div>
  10706. </div>
  10707. </div>
  10708. </div>
  10709. </div>
  10710. </div>
  10711. </div>
  10712. </div>
  10713. </div>
  10714. <div
  10715. style="width:92%;margin: 0 0 0 40px;"
  10716. v-if="
  10717. courseDetail.state == 6 && tool.eList && tool.eList.length
  10718. "
  10719. >
  10720. <evaTable :eList="tool.eList"></evaTable>
  10721. </div>
  10722. </div>
  10723. <!-- <div class="upload_toolBtn" @click="addImg($event)">
  10724. 上传文件
  10725. <input
  10726. type="file"
  10727. accept="image/png, image/gif, image/jpeg"
  10728. style="display: none"
  10729. @change="beforeUpload1($event, 2, index)"
  10730. />
  10731. </div>-->
  10732. </div>
  10733. </div>
  10734. <!-- <div
  10735. class="vedioBox"
  10736. style="margin-top: 10px"
  10737. v-if="
  10738. courseDetail.userid == userid ||
  10739. (courseDetail.course_teacher &&
  10740. courseDetail.course_teacher.indexOf(userid) != -1)
  10741. "
  10742. :style="{
  10743. borderRadius:
  10744. !(
  10745. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10746. .toolChoose[0].tool &&
  10747. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10748. .toolChoose[0].tool.length > 0
  10749. ) &&
  10750. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  10751. .taskDetail == '' &&
  10752. vChapterData[taskCount].length == 0 &&
  10753. fileC[taskCount].length == 0
  10754. ? '0 0 20px 20px'
  10755. : '20px',
  10756. }"
  10757. >
  10758. <div
  10759. class="queTop"
  10760. @click="isClose = !isClose"
  10761. style="
  10762. padding: 15px 0 15px 37px;
  10763. justify-content: space-between;
  10764. "
  10765. >
  10766. <div class="queTopTitle">新增工具</div>
  10767. <div class="queTopRight">
  10768. <div class="queTopClose" v-if="isClose == 0">
  10769. 展开
  10770. <div class="closeImg">
  10771. <img src="../../assets/icon/newIcon/close.png" alt="" />
  10772. </div>
  10773. </div>
  10774. <div class="queTopClose" v-if="isClose == 1">
  10775. 折叠
  10776. <div class="openImg">
  10777. <img src="../../assets/icon/newIcon/open.png" alt="" />
  10778. </div>
  10779. </div>
  10780. <el-button
  10781. style="margin: 0 30px 0 auto"
  10782. type="primary"
  10783. size="small"
  10784. v-if="isClose == 1 && checktoolArray.length > 0"
  10785. @click.stop="addToolChoose"
  10786. >确定</el-button
  10787. >
  10788. </div>
  10789. </div>
  10790. <div
  10791. class="tool_work_box"
  10792. :style="isClose == 0 ? 'display:none' : 'display:block'"
  10793. >
  10794. <div class="tool_box">
  10795. <div class="tool_type_box">
  10796. <div class="chooseWho">
  10797. <div
  10798. :class="toolType == 0 ? 'isChooseActive' : ''"
  10799. @click="(toolType = 0), $forceUpdate()"
  10800. >
  10801. 互动类
  10802. </div>
  10803. <div
  10804. :class="toolType == 1 ? 'isChooseActive' : ''"
  10805. @click="(toolType = 1), $forceUpdate()"
  10806. >
  10807. 思维类
  10808. </div>
  10809. <div
  10810. :class="toolType == 2 ? 'isChooseActive' : ''"
  10811. @click="(toolType = 2), $forceUpdate()"
  10812. >
  10813. 测评类
  10814. </div>
  10815. <div
  10816. :class="toolType == 3 ? 'isChooseActive' : ''"
  10817. @click="(toolType = 3), $forceUpdate()"
  10818. >
  10819. 编程类
  10820. </div>
  10821. <div
  10822. :class="toolType == 5 ? 'isChooseActive' : ''"
  10823. @click="(toolType = 5), $forceUpdate()"
  10824. >
  10825. 学科类
  10826. </div>
  10827. </div>
  10828. </div>
  10829. <div>
  10830. <div class="toolSort" v-if="toolType == 0">
  10831. <div class="tool">
  10832. <div class="whiteBIcon" @click="addTools2(10)">
  10833. <img
  10834. src="../../assets/icon/thirdToolList/time.png"
  10835. alt
  10836. />
  10837. <div style="margin: 5px 0">倒计时</div>
  10838. </div>
  10839. <div class="check" @click="addTools2(10)">
  10840. <img
  10841. src="../../assets/icon/checkNo.png"
  10842. alt
  10843. v-if="checktoolArray.indexOf(10) == -1"
  10844. />
  10845. <div class="checkDiv" v-else>
  10846. <img src="../../assets/icon/checkedIs.png" alt /><span
  10847. >已选择</span
  10848. >
  10849. </div>
  10850. </div>
  10851. </div>
  10852. <div class="tool">
  10853. <div class="whiteBIcon" @click="addTools2(65)">
  10854. <img
  10855. src="../../assets/icon/firstToolList/pickPeople.png"
  10856. alt
  10857. />
  10858. <div style="margin: 5px 0">挑人</div>
  10859. </div>
  10860. <div class="check" @click="addTools2(65)">
  10861. <img
  10862. src="../../assets/icon/checkNo.png"
  10863. alt
  10864. v-if="checktoolArray.indexOf(65) == -1"
  10865. />
  10866. <div class="checkDiv" v-else>
  10867. <img src="../../assets/icon/checkedIs.png" alt /><span
  10868. >已选择</span
  10869. >
  10870. </div>
  10871. </div>
  10872. </div>
  10873. </div>
  10874. <div class="toolSort" v-if="toolType == 1">
  10875. <div class="tool">
  10876. <div class="whiteBIcon" @click="addTools2(7)">
  10877. <img
  10878. src="../../assets/icon/secondToolList/mindNetwork.png"
  10879. alt
  10880. />
  10881. <div style="margin: 5px 0">思维网格</div>
  10882. </div>
  10883. <div class="check" @click="addTools2(7)">
  10884. <img
  10885. src="../../assets/icon/checkNo.png"
  10886. alt
  10887. v-if="checktoolArray.indexOf(7) == -1"
  10888. />
  10889. <div class="checkDiv" v-else>
  10890. <img src="../../assets/icon/checkedIs.png" alt /><span
  10891. >已选择</span
  10892. >
  10893. </div>
  10894. </div>
  10895. </div>
  10896. <div class="tool">
  10897. <div class="whiteBIcon" @click="addTools2(1)">
  10898. <img
  10899. src="../../assets/icon/secondToolList/whiteBoard.png"
  10900. alt
  10901. />
  10902. <div style="margin: 5px 0">电子白板</div>
  10903. </div>
  10904. <div class="check" @click="addTools2(1)">
  10905. <img
  10906. src="../../assets/icon/checkNo.png"
  10907. alt
  10908. v-if="checktoolArray.indexOf(1) == -1"
  10909. />
  10910. <div class="checkDiv" v-else>
  10911. <img src="../../assets/icon/checkedIs.png" alt /><span
  10912. >已选择</span
  10913. >
  10914. </div>
  10915. </div>
  10916. </div>
  10917. <div class="tool">
  10918. <div class="whiteBIcon" @click="addTools2(52)">
  10919. <img
  10920. src="../../assets/icon/fourthToolList/text.png"
  10921. alt
  10922. />
  10923. <div style="margin: 5px 0">文档</div>
  10924. </div>
  10925. <div class="check" @click="addTools2(52)">
  10926. <img
  10927. src="../../assets/icon/checkNo.png"
  10928. alt
  10929. v-if="checktoolArray.indexOf(52) == -1"
  10930. />
  10931. <div class="checkDiv" v-else>
  10932. <img src="../../assets/icon/checkedIs.png" alt /><span
  10933. >已选择</span
  10934. >
  10935. </div>
  10936. </div>
  10937. </div>
  10938. <div class="tool">
  10939. <div class="whiteBIcon" @click="addTools2(3)">
  10940. <img
  10941. src="../../assets/icon/secondToolList/mindMapping.png"
  10942. alt
  10943. />
  10944. <div style="margin: 5px 0">思维导图</div>
  10945. </div>
  10946. <div class="check" @click="addTools2(3)">
  10947. <img
  10948. src="../../assets/icon/checkNo.png"
  10949. alt
  10950. v-if="checktoolArray.indexOf(3) == -1"
  10951. />
  10952. <div class="checkDiv" v-else>
  10953. <img src="../../assets/icon/checkedIs.png" alt /><span
  10954. >已选择</span
  10955. >
  10956. </div>
  10957. </div>
  10958. </div>
  10959. <div class="tool">
  10960. <div class="whiteBIcon" @click="addTools2(48)">
  10961. <img
  10962. src="../../assets/icon/fourthToolList/table.png"
  10963. alt
  10964. />
  10965. <div style="margin: 5px 0">表格</div>
  10966. </div>
  10967. <div class="check" @click="addTools2(48)">
  10968. <img
  10969. src="../../assets/icon/checkNo.png"
  10970. alt
  10971. v-if="checktoolArray.indexOf(48) == -1"
  10972. />
  10973. <div class="checkDiv" v-else>
  10974. <img src="../../assets/icon/checkedIs.png" alt /><span
  10975. >已选择</span
  10976. >
  10977. </div>
  10978. </div>
  10979. </div>
  10980. </div>
  10981. <div class="toolSort" v-if="toolType == 6">
  10982. <div v-show="tooC == 49">
  10983. <img
  10984. @click="addTools(tooC, toolIndex, taskCount)"
  10985. src="../../assets/icon/fourthToolList/group.png"
  10986. alt
  10987. />
  10988. <div style="margin: 5px 0">学生分组</div>
  10989. </div>
  10990. </div>
  10991. <div class="toolSort" v-if="toolType == 2">
  10992. <div class="tool">
  10993. <div class="whiteBIcon" @click="addTools2(16)">
  10994. <img
  10995. src="../../assets/icon/thirdToolList/work.png"
  10996. alt
  10997. />
  10998. <div style="margin: 5px 0">作业提交</div>
  10999. </div>
  11000. <div class="check" @click="addTools2(16)">
  11001. <img
  11002. src="../../assets/icon/checkNo.png"
  11003. alt
  11004. v-if="checktoolArray.indexOf(16) == -1"
  11005. />
  11006. <div class="checkDiv" v-else>
  11007. <img src="../../assets/icon/checkedIs.png" alt /><span
  11008. >已选择</span
  11009. >
  11010. </div>
  11011. </div>
  11012. </div>
  11013. <div class="tool">
  11014. <div class="whiteBIcon" @click="addTools2(50)">
  11015. <img
  11016. src="../../assets/icon/thirdToolList/plwork.png"
  11017. alt
  11018. />
  11019. <div style="margin: 5px 0">批量上传</div>
  11020. </div>
  11021. <div class="check" @click="addTools2(50)">
  11022. <img
  11023. src="../../assets/icon/checkNo.png"
  11024. alt
  11025. v-if="checktoolArray.indexOf(50) == -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 == 3">
  11036. <div class="tool">
  11037. <div class="whiteBIcon" @click="addTools2(18)">
  11038. <img
  11039. src="../../assets/icon/thirdToolList/trainPlatform.png"
  11040. alt
  11041. />
  11042. <div style="margin: 5px 0">训练平台</div>
  11043. </div>
  11044. <div class="check" @click="addTools2(18)">
  11045. <img
  11046. src="../../assets/icon/checkNo.png"
  11047. alt
  11048. v-if="checktoolArray.indexOf(18) == -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(21)">
  11059. <img
  11060. src="../../assets/icon/fourthToolList/program.png"
  11061. alt
  11062. />
  11063. <div style="margin: 5px 0">AIoT Blockly</div>
  11064. </div>
  11065. <div class="check" @click="addTools2(21)">
  11066. <img
  11067. src="../../assets/icon/checkNo.png"
  11068. alt
  11069. v-if="checktoolArray.indexOf(21) == -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 class="tool">
  11079. <div class="whiteBIcon" @click="addTools2(23)">
  11080. <img
  11081. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  11082. alt
  11083. />
  11084. <div style="margin: 5px 0">AI Python</div>
  11085. </div>
  11086. <div class="check" @click="addTools2(23)">
  11087. <img
  11088. src="../../assets/icon/checkNo.png"
  11089. alt
  11090. v-if="checktoolArray.indexOf(23) == -1"
  11091. />
  11092. <div class="checkDiv" v-else>
  11093. <img src="../../assets/icon/checkedIs.png" alt /><span
  11094. >已选择</span
  11095. >
  11096. </div>
  11097. </div>
  11098. </div>
  11099. <div class="tool">
  11100. <div class="whiteBIcon" @click="addTools2(24)">
  11101. <img
  11102. src="../../assets/icon/fourthToolList/AIprogram.png"
  11103. alt
  11104. />
  11105. <div style="margin: 5px 0">AI Blockly</div>
  11106. </div>
  11107. <div class="check" @click="addTools2(24)">
  11108. <img
  11109. src="../../assets/icon/checkNo.png"
  11110. alt
  11111. v-if="checktoolArray.indexOf(24) == -1"
  11112. />
  11113. <div class="checkDiv" v-else>
  11114. <img src="../../assets/icon/checkedIs.png" alt /><span
  11115. >已选择</span
  11116. >
  11117. </div>
  11118. </div>
  11119. </div>
  11120. <div class="tool">
  11121. <div class="whiteBIcon" @click="addTools2(32)">
  11122. <img
  11123. src="../../assets/icon/thirdToolList/code.png"
  11124. alt
  11125. />
  11126. <div style="margin: 5px 0">源码编辑</div>
  11127. </div>
  11128. <div class="check" @click="addTools2(32)">
  11129. <img
  11130. src="../../assets/icon/checkNo.png"
  11131. alt
  11132. v-if="checktoolArray.indexOf(32) == -1"
  11133. />
  11134. <div class="checkDiv" v-else>
  11135. <img src="../../assets/icon/checkedIs.png" alt /><span
  11136. >已选择</span
  11137. >
  11138. </div>
  11139. </div>
  11140. </div>
  11141. <div class="tool">
  11142. <div class="whiteBIcon" @click="addTools2(57)">
  11143. <img
  11144. src="../../assets/icon/fourthToolList/cocopi.png"
  11145. alt
  11146. />
  11147. <div style="margin: 5px 0">CocoPi</div>
  11148. </div>
  11149. <div class="check" @click="addTools2(57)">
  11150. <img
  11151. src="../../assets/icon/checkNo.png"
  11152. alt
  11153. v-if="checktoolArray.indexOf(57) == -1"
  11154. />
  11155. <div class="checkDiv" v-else>
  11156. <img src="../../assets/icon/checkedIs.png" alt /><span
  11157. >已选择</span
  11158. >
  11159. </div>
  11160. </div>
  11161. </div>
  11162. <div class="tool">
  11163. <div class="whiteBIcon" @click="addTools2(63)">
  11164. <img
  11165. src="../../assets/icon/fourthToolList/Wood.png"
  11166. alt
  11167. />
  11168. <div style="margin: 5px 0">海龟编程</div>
  11169. </div>
  11170. <div class="check" @click="addTools2(63)">
  11171. <img
  11172. src="../../assets/icon/checkNo.png"
  11173. alt
  11174. v-if="checktoolArray.indexOf(63) == -1"
  11175. />
  11176. <div class="checkDiv" v-else>
  11177. <img src="../../assets/icon/checkedIs.png" alt /><span
  11178. >已选择</span
  11179. >
  11180. </div>
  11181. </div>
  11182. </div>
  11183. </div>
  11184. <div class="toolSort" v-if="toolType == 5">
  11185. <div class="tool">
  11186. <div class="whiteBIcon" @click="addTools2(28)">
  11187. <img
  11188. src="../../assets/icon/secondToolList/translation.png"
  11189. alt
  11190. />
  11191. <div style="margin: 5px 0">翻译</div>
  11192. </div>
  11193. <div class="check" @click="addTools2(28)">
  11194. <img
  11195. src="../../assets/icon/checkNo.png"
  11196. alt
  11197. v-if="checktoolArray.indexOf(28) == -1"
  11198. />
  11199. <div class="checkDiv" v-else>
  11200. <img src="../../assets/icon/checkedIs.png" alt /><span
  11201. >已选择</span
  11202. >
  11203. </div>
  11204. </div>
  11205. </div>
  11206. <div class="tool">
  11207. <div class="whiteBIcon" @click="addTools2(31)">
  11208. <img
  11209. src="../../assets/icon/secondToolList/networkPanel.png"
  11210. alt
  11211. />
  11212. <div style="margin: 5px 0">数字画板</div>
  11213. </div>
  11214. <div class="check" @click="addTools2(31)">
  11215. <img
  11216. src="../../assets/icon/checkNo.png"
  11217. alt
  11218. v-if="checktoolArray.indexOf(31) == -1"
  11219. />
  11220. <div class="checkDiv" v-else>
  11221. <img src="../../assets/icon/checkedIs.png" alt /><span
  11222. >已选择</span
  11223. >
  11224. </div>
  11225. </div>
  11226. </div>
  11227. <div class="tool">
  11228. <div class="whiteBIcon" @click="addTools2(39)">
  11229. <img
  11230. src="../../assets/icon/secondToolList/GeoGebra.png"
  11231. alt
  11232. />
  11233. <div style="margin: 5px 0">GeoGebra</div>
  11234. </div>
  11235. <div class="check" @click="addTools2(39)">
  11236. <img
  11237. src="../../assets/icon/checkNo.png"
  11238. alt
  11239. v-if="checktoolArray.indexOf(39) == -1"
  11240. />
  11241. <div class="checkDiv" v-else>
  11242. <img src="../../assets/icon/checkedIs.png" alt /><span
  11243. >已选择</span
  11244. >
  11245. </div>
  11246. </div>
  11247. </div>
  11248. <div class="tool">
  11249. <div class="whiteBIcon" @click="addTools2(66)">
  11250. <img
  11251. src="../../assets/icon/secondToolList/formulaEdi.png"
  11252. alt
  11253. />
  11254. <div style="margin: 5px 0">公式编辑</div>
  11255. </div>
  11256. <div class="check" @click="addTools2(66)">
  11257. <img
  11258. src="../../assets/icon/checkNo.png"
  11259. alt
  11260. v-if="checktoolArray.indexOf(66) == -1"
  11261. />
  11262. <div class="checkDiv" v-else>
  11263. <img src="../../assets/icon/checkedIs.png" alt /><span
  11264. >已选择</span
  11265. >
  11266. </div>
  11267. </div>
  11268. </div>
  11269. <div class="tool">
  11270. <div class="whiteBIcon" @click="addTools2(67)">
  11271. <img
  11272. src="../../assets/icon/secondToolList/molStr.png"
  11273. alt
  11274. />
  11275. <div style="margin: 5px 0">分子结构</div>
  11276. </div>
  11277. <div class="check" @click="addTools2(67)">
  11278. <img
  11279. src="../../assets/icon/checkNo.png"
  11280. alt
  11281. v-if="checktoolArray.indexOf(67) == -1"
  11282. />
  11283. <div class="checkDiv" v-else>
  11284. <img src="../../assets/icon/checkedIs.png" alt /><span
  11285. >已选择</span
  11286. >
  11287. </div>
  11288. </div>
  11289. </div>
  11290. <div class="tool">
  11291. <div class="whiteBIcon" @click="addTools2(68)">
  11292. <img
  11293. src="../../assets/icon/secondToolList/timeAxis.png"
  11294. alt
  11295. />
  11296. <div style="margin: 5px 0">时间轴</div>
  11297. </div>
  11298. <div class="check" @click="addTools2(68)">
  11299. <img
  11300. src="../../assets/icon/checkNo.png"
  11301. alt
  11302. v-if="checktoolArray.indexOf(68) == -1"
  11303. />
  11304. <div class="checkDiv" v-else>
  11305. <img src="../../assets/icon/checkedIs.png" alt /><span
  11306. >已选择</span
  11307. >
  11308. </div>
  11309. </div>
  11310. </div>
  11311. </div>
  11312. <div class="toolSort" v-if="toolType == 7">
  11313. <div class="tool">
  11314. <div class="whiteBIcon" @click="addTools2(40)">
  11315. <img
  11316. src="../../assets/icon/secondToolList/eval.png"
  11317. alt
  11318. />
  11319. <div style="margin: 5px 0">个人评价</div>
  11320. </div>
  11321. <div class="check" @click="addTools2(40)">
  11322. <img
  11323. src="../../assets/icon/checkNo.png"
  11324. alt
  11325. v-if="checktoolArray.indexOf(40) == -1"
  11326. />
  11327. <div class="checkDiv" v-else>
  11328. <img src="../../assets/icon/checkedIs.png" alt /><span
  11329. >已选择</span
  11330. >
  11331. </div>
  11332. </div>
  11333. </div>
  11334. </div>
  11335. <div class="toolSort" v-if="toolType == 4">
  11336. <div class="tool">
  11337. <div class="whiteBIcon" @click="addTools2(26)">
  11338. <img
  11339. src="../../assets/icon/thirdToolList/courseDesign.png"
  11340. alt
  11341. />
  11342. <div style="margin: 5px 0">课程设计</div>
  11343. </div>
  11344. <div class="check" @click="addTools2(26)">
  11345. <img
  11346. src="../../assets/icon/checkNo.png"
  11347. alt
  11348. v-if="checktoolArray.indexOf(26) == -1"
  11349. />
  11350. <div class="checkDiv" v-else>
  11351. <img src="../../assets/icon/checkedIs.png" alt /><span
  11352. >已选择</span
  11353. >
  11354. </div>
  11355. </div>
  11356. </div>
  11357. <div class="tool">
  11358. <div class="whiteBIcon" @click="addTools2(25)">
  11359. <img
  11360. src="../../assets/icon/thirdToolList/evalua.png"
  11361. alt
  11362. />
  11363. <div style="margin: 5px 0">目标管理</div>
  11364. </div>
  11365. <div class="check" @click="addTools2(25)">
  11366. <img
  11367. src="../../assets/icon/checkNo.png"
  11368. alt
  11369. v-if="checktoolArray.indexOf(25) == -1"
  11370. />
  11371. <div class="checkDiv" v-else>
  11372. <img src="../../assets/icon/checkedIs.png" alt /><span
  11373. >已选择</span
  11374. >
  11375. </div>
  11376. </div>
  11377. </div>
  11378. </div>
  11379. </div>
  11380. </div>
  11381. </div>
  11382. </div> -->
  11383. <div
  11384. class="vedioBox"
  11385. style="margin-top: 10px; border-radius: 20px"
  11386. v-if="
  11387. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11388. .eList &&
  11389. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11390. .eList.length &&
  11391. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount]
  11392. .eList.length > 0 &&
  11393. tType != 2
  11394. "
  11395. >
  11396. <div
  11397. class="queTop"
  11398. style="
  11399. font-size: 20px;
  11400. padding: 15px 0 15px 37px;
  11401. font-weight: bold;
  11402. "
  11403. >
  11404. <!-- <div class="question" style="width: 30px">
  11405. <img src="../assets/icon/toolIcon.png" alt />
  11406. </div>
  11407. <div class="queTitle">
  11408. <div>工具</div>
  11409. </div>-->
  11410. 评一评
  11411. </div>
  11412. <div class="evaCss" :class="{ evaCssMax: Stbodywidth < 974 }">
  11413. <div class="elist_input" :style="{width:evalua ? chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'45%':'calc(100% - 180px)' : '100%'}">
  11414. <el-table
  11415. :data="
  11416. chapInfoList[courseType].chapterInfo[0].taskJson[
  11417. taskCount
  11418. ].eList
  11419. "
  11420. :header-cell-style="{ background: '#F0F4FA' }"
  11421. :row-class-name="tableRowClassName"
  11422. border
  11423. stripe
  11424. style="width: 100%"
  11425. >
  11426. <el-table-column
  11427. label="评价名称"
  11428. align="center"
  11429. >
  11430. <template slot-scope="scope"
  11431. ><div>{{ scope.row.value }}</div></template
  11432. >
  11433. </el-table-column>
  11434. <el-table-column
  11435. label="评价描述"
  11436. align="center"
  11437. >
  11438. <template slot-scope="scope"
  11439. ><div>
  11440. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  11441. </div></template
  11442. >
  11443. </el-table-column>
  11444. <el-table-column label="目标" align="center">
  11445. <template slot-scope="scope"
  11446. ><div>
  11447. {{
  11448. scope.row.target
  11449. ? scope.row.target[scope.row.target.length - 1]
  11450. : "-"
  11451. }}
  11452. </div></template
  11453. ></el-table-column
  11454. >
  11455. </el-table>
  11456. <!-- <div
  11457. v-for="(eItem, eIndex) in chapInfoList[courseType]
  11458. .chapterInfo[0].taskJson[taskCount].eList"
  11459. :key="eIndex"
  11460. class="elist_input_box"
  11461. >
  11462. <div style="width: 95%">
  11463. <div
  11464. style="
  11465. display: flex;
  11466. flex-direction: row;
  11467. flex-wrap: nowrap;
  11468. align-items: center;
  11469. "
  11470. >
  11471. <div style="max-width: calc(100% - 285px)">
  11472. <span>{{ eItem.value }}</span>
  11473. </div>
  11474. <div
  11475. style="
  11476. padding-left: 25px;
  11477. display: flex;
  11478. flex-direction: row;
  11479. align-items: center;
  11480. "
  11481. >
  11482. <el-rate
  11483. v-model="eItem.score"
  11484. :colors="colors"
  11485. disabled
  11486. ></el-rate>
  11487. </div>
  11488. </div>
  11489. <div class="elist_inptu_text" style="padding-left: 10px">
  11490. <span v-if="eItem.detail != ''">{{
  11491. eItem.detail
  11492. }}</span>
  11493. <span v-else style="color: #b2b1b3; font-size: 14px"
  11494. >暂无描述...</span
  11495. >
  11496. </div>
  11497. </div>
  11498. </div> -->
  11499. </div>
  11500. <div
  11501. v-if="evalua"
  11502. style="
  11503. border: 1px solid #e5e5e5;
  11504. max-width: 650px;
  11505. width: 100%;
  11506. margin-top: 20px;
  11507. box-shadow: 3px 1px 15px 3px #e0e0e0;
  11508. "
  11509. :style="{width:chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2?'100%':'116px'}"
  11510. >
  11511. <div class="e_add_top">
  11512. <div class="e_add_title" style="width: 100%">
  11513. <!-- <span>目标管理名称</span> -->
  11514. <span v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2">{{ eTitle }}</span>
  11515. <img
  11516. v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2"
  11517. src="../../assets/line.png"
  11518. class="cru_line"
  11519. style="
  11520. width: 125px;
  11521. height: 20px;
  11522. bottom: -10px;
  11523. left: 5px;
  11524. "
  11525. />
  11526. <!-- <el-input
  11527. v-model="eTitle"
  11528. placeholder="请输入名称"
  11529. @change="setMindData"
  11530. ></el-input>-->
  11531. <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>
  11532. <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>
  11533. </div>
  11534. </div>
  11535. <div class="e_add_content" v-if="chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].isEvaFold2" >
  11536. <div class="e_add_list_pbox">
  11537. <div class="e_add_list_pbox_title">
  11538. <!-- <span class="type_title">切换模式</span> -->
  11539. <div class="type_content">
  11540. <span
  11541. :class="{ active: typeMode == 1 }"
  11542. @click="typeMode = 1"
  11543. >目标树</span
  11544. >
  11545. <span
  11546. :class="{ active: typeMode == 2 }"
  11547. @click="typeMode = 2"
  11548. >目标罗盘</span
  11549. >
  11550. <!-- <span
  11551. :class="{ active: typeMode == 3 }"
  11552. @click="typeMode = 3"
  11553. >目标看板</span
  11554. > -->
  11555. </div>
  11556. </div>
  11557. <div class="e_add_list_pbox_content" style="min-height: 200px;">
  11558. <Mind
  11559. :showBar="false"
  11560. :mindData="data"
  11561. style="width: 100%"
  11562. v-show="typeMode == 1"
  11563. ></Mind>
  11564. <Sunburst
  11565. :Josn="eJson"
  11566. :num="eJSONNum"
  11567. style="width: 100%"
  11568. v-if="typeMode == 2"
  11569. ></Sunburst>
  11570. <SeeBoard
  11571. :Josn="eJson"
  11572. :num="eJSONNum"
  11573. :ename="eTitle"
  11574. style="width: 100%"
  11575. v-if="typeMode == 3"
  11576. >
  11577. </SeeBoard>
  11578. </div>
  11579. </div>
  11580. </div>
  11581. </div>
  11582. </div>
  11583. </div>
  11584. <!-- <div
  11585. class="project_box"
  11586. style="margin-top: 15px; padding-bottom: 30px"
  11587. >
  11588. <div
  11589. style="
  11590. display: flex;
  11591. flex-wrap: nowrap;
  11592. flex-direction: column;
  11593. position: relative;
  11594. "
  11595. >
  11596. <div class="queTop">
  11597. <div class="question">
  11598. <img src="../../assets/icon/homeWork.png" alt="" />
  11599. </div>
  11600. <div class="queTitle">
  11601. <div>作业提交<span>(提交图文视频等)</span></div>
  11602. <div>:任务:{{ task.task }}</div>
  11603. </div>
  11604. </div>
  11605. <div class="ediBottom">
  11606. <div
  11607. class="addEditor"
  11608. style="margin-top: 23px"
  11609. @click="openAddWork"
  11610. v-if="!isNoHomeWork"
  11611. >
  11612. 选择文件
  11613. </div>
  11614. <div
  11615. class="addEditor"
  11616. style="margin-top: 23px"
  11617. @click="openAddWork"
  11618. v-else
  11619. >
  11620. 已提交
  11621. </div>
  11622. </div>
  11623. </div>
  11624. </div>-->
  11625. </div>
  11626. </div>
  11627. <el-dialog
  11628. title="作业提交"
  11629. :visible.sync="dialogVisible"
  11630. :append-to-body="true"
  11631. width="500px"
  11632. :before-close="handleClose"
  11633. class="dialog_change"
  11634. >
  11635. <div class="marginT">
  11636. <div>上传文件</div>
  11637. <div style="display: flex; gap: 10px">
  11638. <div
  11639. class="chapter_add"
  11640. @click="addImg($event)"
  11641. v-if="studyJuri[0].cover.length == 0"
  11642. >
  11643. <div class="up_photo">
  11644. <img src="../../assets/icon/uploadImg.png" alt />
  11645. </div>
  11646. <!-- <input
  11647. type="file"
  11648. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  11649. style="display: none"
  11650. @change="beforeUpload1($event, 1)"
  11651. /> -->
  11652. <input
  11653. type="file"
  11654. accept="*"
  11655. style="display: none"
  11656. @change="beforeUpload1($event, 1)"
  11657. />
  11658. <!-- <input
  11659. type="file"
  11660. accept="image/*"
  11661. capture="camera"
  11662. style="display: none"
  11663. @change="beforeUpload1($event, 1)"
  11664. /> -->
  11665. </div>
  11666. <div
  11667. class="chapter_add"
  11668. @click="addImg($event)"
  11669. v-if="studyJuri[0].cover.length == 0"
  11670. >
  11671. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  11672. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  11673. </div>
  11674. <input
  11675. type="file"
  11676. accept="image/*"
  11677. capture="camera"
  11678. style="display: none"
  11679. @change="beforeUpload1($event, 1)"
  11680. />
  11681. </div>
  11682. </div>
  11683. <div
  11684. class="chapter_add"
  11685. style="
  11686. display: flex;
  11687. width: 100%;
  11688. flex-direction: row;
  11689. flex-wrap: wrap;
  11690. justify-content: flex-start;
  11691. padding: 15px 0;
  11692. "
  11693. v-if="studyJuri[0].cover.length > 0"
  11694. >
  11695. <div class="upCover">
  11696. <img
  11697. :src="studyJuri[0].cover[0].url"
  11698. alt
  11699. v-if="fileType == 0"
  11700. />
  11701. <img :src="word" alt v-else-if="fileType == 1" />
  11702. <img :src="video" alt v-else-if="fileType == 2" />
  11703. <img :src="word2" alt v-else-if="fileType == 3" />
  11704. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  11705. <div class="deleteWord" @click="clean(1)">
  11706. <img src="../../assets/icon/deleteWorks.png" alt />
  11707. </div>
  11708. </div>
  11709. </div>
  11710. </div>
  11711. <div
  11712. class="upload_send"
  11713. @click="addCourseWorksCopy(taskCount)"
  11714. v-if="!proVisible"
  11715. >
  11716. 提交
  11717. </div>
  11718. </el-dialog>
  11719. </div>
  11720. </div>
  11721. <!-- v-show="org == '1973f6c7-1561-11ee-91d8-005056b86db5' || org == '777559d2-7239-11ee-b98c-005056b86db5' || org == '884c5665-a453-46f3-b7b6-01d575290aa9'" -->
  11722. <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(
  11723. '/courseDetail?userid=' +
  11724. userid +
  11725. '&oid=' +
  11726. oid +
  11727. '&org=' +
  11728. org +
  11729. '&cid=' +
  11730. classId +
  11731. '&courseId=' +
  11732. id +
  11733. '&tType=' +
  11734. tType +
  11735. '&screenType=' +
  11736. screenType+
  11737. '&role=' +
  11738. role
  11739. )"></classRoomHelper>
  11740. <studentClassRoomHelper v-else-if="['2'].includes(tType)" @studentFreePreview="studentFreePreview" @OpenJobPreview="OpenJobPreview" :videoStart="videoStart" :IsFollow="IsFollow" :sIsOpen="sIsOpen" :IsLookOpen="IsLookOpen" :splitScreenData="splitScreenData" @splitScreenBehavior="splitScreenBehavior" @startRecording="startRecording" @stopRecording="stopRecording" :fileList="vChapterData[taskCount]" :worksStudent="worksStudent" :courseType="parseInt(courseType)" :taskCount="taskCount" :tcid="tcid" :navList="navList" v-show="orgArray.includes(org) || oidArray.includes(oid)" :courseDetail="courseDetail" :tType="tType" @setWidth="setClassRoomHelperWidth" @refresh="refreshCourse" @goStep="nextOrpreSteps" @authority="juriVisible = true" @review="setPz" @backPage="goTo(
  11741. '/courseDetail?userid=' +
  11742. userid +
  11743. '&oid=' +
  11744. oid +
  11745. '&org=' +
  11746. org +
  11747. '&cid=' +
  11748. classId +
  11749. '&courseId=' +
  11750. id +
  11751. '&tType=' +
  11752. tType +
  11753. '&screenType=' +
  11754. screenType+
  11755. '&role=' +
  11756. role
  11757. )"></studentClassRoomHelper>
  11758. <div
  11759. class="pButton"
  11760. @click="(pzDialog = true), selectPz()"
  11761. v-if="pzDialog == false && (tType == 4 || ispzType == 4)"
  11762. style="background-image: linear-gradient(90deg, #477cd7, #65b9fc)"
  11763. >
  11764. <!-- 批 -->
  11765. <img src="../../assets/mlBtn.png" style="width: 25px" alt="" />
  11766. </div>
  11767. <div v-if="pzDialog == true" class="newDialogCss" :style="`right:${commentRight}`">
  11768. <div class="pzTop2">
  11769. <!-- <div>评论</div>
  11770. <div @click="pzDialog = false">
  11771. <img src="../../assets/close1.png" alt="" />
  11772. </div> -->
  11773. <div class="checkbox">
  11774. <!-- <div class="check" style="font-size: 25px; position: unset">
  11775. 评论
  11776. </div> -->
  11777. <div class="cb-tabList">
  11778. <div :class="[commentTagShow==0?'cb-tabItem':'']" @click="commentTagShow=0">评论</div>
  11779. <!-- <div :class="[commentTagShow==1?'cb-tabItem':'']" @click="commentTagShow=1">评分</div> -->
  11780. <!-- v-show="oid == '4c686762-1d0a-11ed-8c78-005056b86db5'" -->
  11781. <div :class="[commentTagShow==2?'cb-tabItem':'']" @click="commentTagShow=2">总评</div>
  11782. </div>
  11783. <el-select v-model="pzStype" @change="selectPz" class="selectBox" v-show="commentTagShow == 0">
  11784. <el-option label="时间降序" :value="1"></el-option>
  11785. <el-option label="时间升序" :value="2"></el-option>
  11786. <el-option label="我的评课" :value="3"></el-option>
  11787. </el-select>
  11788. <img src="../../assets/pzBtn.png" @click="pzDialog = false" alt="" />
  11789. </div>
  11790. </div>
  11791. <div :class="pzList && pzList.length ? 'pzBox' : 'noPzBox'" v-if="commentTagShow==0">
  11792. <div class="pzListBox" v-if="pzList && pzList.length">
  11793. <div class="pzList" v-for="(pz, pzIndex) in pzList" :key="pzIndex">
  11794. <div class="pzNavTop">
  11795. <div>评</div>
  11796. <div>
  11797. {{
  11798. pz.username && pz.username.length > 5
  11799. ? pz.username.substring(0, 5) + "..."
  11800. : pz.username
  11801. }}的评论
  11802. </div>
  11803. <div
  11804. class="pzDelete"
  11805. v-if="pz.userid == userid"
  11806. @click="deletePz(pz.id)"
  11807. >
  11808. 删除
  11809. </div>
  11810. </div>
  11811. <div
  11812. @click="checkImg(getImgList(pz.content))"
  11813. class="pzContent cont"
  11814. v-html="pz.content"
  11815. v-if="pz.type == '1'"
  11816. ></div>
  11817. <div class="pzContent" v-if="pz.type == '2'">
  11818. <audio :src="pz.content" controls="controls" ref="audio">
  11819. Your browser does not support the audio element.
  11820. </audio>
  11821. </div>
  11822. <div class="pzContent" v-if="pz.type == '3'">
  11823. <img
  11824. :src="pz.content"
  11825. style="width: 90%; margin: 0 auto; display: block"
  11826. @click="previewImg(pz.content)"
  11827. />
  11828. </div>
  11829. <div class="timeAndReply">
  11830. <div class="time">
  11831. {{ pz.time }}
  11832. </div>
  11833. <div @click="setReplyIndex(pz.id, pzIndex)">回复</div>
  11834. </div>
  11835. <div v-if="pz.hfList && pz.hfList.length > 0" class="hfBox">
  11836. <div
  11837. v-for="(h, hIndex) in pz.hfList"
  11838. :key="hIndex"
  11839. class="hfItem"
  11840. >
  11841. <div class="whoReplyWho">
  11842. <div class="hfName">{{ h.username }}</div>
  11843. <div class="hfImg">
  11844. <img src="../../assets/icon/newIcons/right.png" alt="" />
  11845. </div>
  11846. <div class="hfName">{{ pz.username }}</div>
  11847. </div>
  11848. <div class="hfContent" v-html="h.content"></div>
  11849. <div class="hfBottom">
  11850. <div class="hfTime">{{ h.time }}</div>
  11851. <div
  11852. class="deleteHfItem"
  11853. @click="deleteReply(h.id)"
  11854. v-if="userid == h.userid"
  11855. >
  11856. <img src="../../assets/icon/newIcons/delete.png" alt="" />
  11857. </div>
  11858. </div>
  11859. </div>
  11860. </div>
  11861. <!-- <div class="replyBox" v-if="replyIndex[pzIndex] && replyIndex[pzIndex] == true">
  11862. <div class="replyInput">
  11863. <el-input v-model="reply[pzIndex]"></el-input>
  11864. </div>
  11865. <el-button @click="addHf(pz.id, pzIndex)">回复</el-button>
  11866. </div> -->
  11867. </div>
  11868. </div>
  11869. <div class="noPz" v-else>
  11870. <img src="../../assets/icon/noPz.png" alt="" />
  11871. </div>
  11872. <div class="addPzButton">
  11873. <div class="addPz" @click="(addPzDialog = true), (pzType = 1)">
  11874. 添加评论
  11875. </div>
  11876. <!-- <div class="img1">
  11877. <div @click="(addPzDialog = true), (pzType = 2)">
  11878. <img src="../../assets/audio.png" /><span>音频</span>
  11879. </div>
  11880. </div> -->
  11881. </div>
  11882. </div>
  11883. <div class="scoreList" v-if="commentTagShow==1">
  11884. <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"/>
  11885. </div>
  11886. <div class="scoreList" v-if="commentTagShow==2" style="position: relative">
  11887. <scoreZong :courseid="id" :userid="userid" @insertMemorandum="insertMemorandum"></scoreZong>
  11888. </div>
  11889. </div>
  11890. <div
  11891. v-if="toolDialogVisible == true"
  11892. class="toolMask"
  11893. @click="toolDialogVisible = false"
  11894. ></div>
  11895. <div v-if="toolDialogVisible == true" class="addToolCss">
  11896. <div class="toolTop">
  11897. <div style="font-weight: bold">新增工具</div>
  11898. <div @click="toolDialogVisible = false">
  11899. <img src="../../assets/icon/close.png" class="toolClose" alt="" />
  11900. </div>
  11901. </div>
  11902. <div class="tool_box">
  11903. <div class="tool_type_box">
  11904. <div class="chooseWho">
  11905. <div
  11906. :class="toolType == 0 ? 'isChooseActive' : ''"
  11907. @click="(toolType = 0), $forceUpdate()"
  11908. >
  11909. 互动类
  11910. </div>
  11911. <div
  11912. :class="toolType == 1 ? 'isChooseActive' : ''"
  11913. @click="(toolType = 1), $forceUpdate()"
  11914. >
  11915. 思维类
  11916. </div>
  11917. <div
  11918. :class="toolType == 2 ? 'isChooseActive' : ''"
  11919. @click="(toolType = 2), $forceUpdate()"
  11920. >
  11921. 测评类
  11922. </div>
  11923. <div
  11924. :class="toolType == 3 ? 'isChooseActive' : ''"
  11925. @click="(toolType = 3), $forceUpdate()"
  11926. >
  11927. 编程类
  11928. </div>
  11929. <div
  11930. :class="toolType == 5 ? 'isChooseActive' : ''"
  11931. @click="(toolType = 5), $forceUpdate()"
  11932. >
  11933. 学科类
  11934. </div>
  11935. </div>
  11936. </div>
  11937. <div>
  11938. <div class="toolSort" v-if="toolType == 0">
  11939. <div
  11940. class="tool"
  11941. :class="{ isToolChoose: checktoolArray.indexOf(10) != -1 }"
  11942. @click="addTools2(10)"
  11943. >
  11944. <div class="whiteBIcon">
  11945. <img src="../../assets/icon/thirdToolList/time.png" alt />
  11946. <div style="margin: 5px 0">倒计时</div>
  11947. </div>
  11948. <div class="check">
  11949. <div
  11950. v-if="checktoolArray.indexOf(10) == -1"
  11951. class="noChoose"
  11952. ></div>
  11953. <div v-else class="isChoose"></div>
  11954. </div>
  11955. </div>
  11956. <div
  11957. class="tool"
  11958. :class="{ isToolChoose: checktoolArray.indexOf(65) != -1 }"
  11959. @click="addTools2(65)"
  11960. >
  11961. <div class="whiteBIcon">
  11962. <img src="../../assets/icon/firstToolList/pickPeople.png" alt />
  11963. <div style="margin: 5px 0">挑人</div>
  11964. </div>
  11965. <div class="check">
  11966. <div
  11967. v-if="checktoolArray.indexOf(65) == -1"
  11968. class="noChoose"
  11969. ></div>
  11970. <div v-else class="isChoose"></div>
  11971. </div>
  11972. </div>
  11973. </div>
  11974. <div class="toolSort" v-if="toolType == 1">
  11975. <div
  11976. class="tool"
  11977. :class="{ isToolChoose: checktoolArray.indexOf(7) != -1 }"
  11978. @click="addTools2(7)"
  11979. >
  11980. <div class="whiteBIcon">
  11981. <img
  11982. src="../../assets/icon/secondToolList/mindNetwork.png"
  11983. alt
  11984. />
  11985. <div style="margin: 5px 0">思维网格</div>
  11986. </div>
  11987. <div class="check">
  11988. <div
  11989. v-if="checktoolArray.indexOf(7) == -1"
  11990. class="noChoose"
  11991. ></div>
  11992. <div v-else class="isChoose"></div>
  11993. </div>
  11994. </div>
  11995. <div
  11996. class="tool"
  11997. :class="{ isToolChoose: checktoolArray.indexOf(1) != -1 }"
  11998. @click="addTools2(1)"
  11999. >
  12000. <div class="whiteBIcon">
  12001. <img
  12002. src="../../assets/icon/secondToolList/whiteBoard.png"
  12003. alt
  12004. />
  12005. <div style="margin: 5px 0">电子白板</div>
  12006. </div>
  12007. <div class="check">
  12008. <div
  12009. v-if="checktoolArray.indexOf(1) == -1"
  12010. class="noChoose"
  12011. ></div>
  12012. <div v-else class="isChoose"></div>
  12013. </div>
  12014. </div>
  12015. <div
  12016. class="tool"
  12017. :class="{ isToolChoose: checktoolArray.indexOf(52) != -1 }"
  12018. @click="addTools2(52)"
  12019. >
  12020. <div class="whiteBIcon">
  12021. <img src="../../assets/icon/fourthToolList/text.png" alt />
  12022. <div style="margin: 5px 0">文档</div>
  12023. </div>
  12024. <div class="check">
  12025. <div
  12026. v-if="checktoolArray.indexOf(52) == -1"
  12027. class="noChoose"
  12028. ></div>
  12029. <div v-else class="isChoose"></div>
  12030. </div>
  12031. </div>
  12032. <div
  12033. class="tool"
  12034. :class="{ isToolChoose: checktoolArray.indexOf(3) != -1 }"
  12035. @click="addTools2(3)"
  12036. >
  12037. <div class="whiteBIcon">
  12038. <img
  12039. src="../../assets/icon/secondToolList/mindMapping.png"
  12040. alt
  12041. />
  12042. <div style="margin: 5px 0">思维导图</div>
  12043. </div>
  12044. <div class="check">
  12045. <div
  12046. v-if="checktoolArray.indexOf(3) == -1"
  12047. class="noChoose"
  12048. ></div>
  12049. <div v-else class="isChoose"></div>
  12050. </div>
  12051. </div>
  12052. <div
  12053. class="tool"
  12054. :class="{ isToolChoose: checktoolArray.indexOf(48) != -1 }"
  12055. @click="addTools2(48)"
  12056. >
  12057. <div class="whiteBIcon">
  12058. <img src="../../assets/icon/fourthToolList/table.png" alt />
  12059. <div style="margin: 5px 0">表格</div>
  12060. </div>
  12061. <div class="check">
  12062. <div
  12063. v-if="checktoolArray.indexOf(48) == -1"
  12064. class="noChoose"
  12065. ></div>
  12066. <div v-else class="isChoose"></div>
  12067. </div>
  12068. </div>
  12069. </div>
  12070. <div class="toolSort" v-if="toolType == 6">
  12071. <div v-show="tooC == 49">
  12072. <img
  12073. @click="addTools(tooC, toolIndex, taskCount)"
  12074. src="../../assets/icon/fourthToolList/group.png"
  12075. alt
  12076. />
  12077. <div style="margin: 5px 0">学生分组</div>
  12078. </div>
  12079. </div>
  12080. <div class="toolSort" v-if="toolType == 2">
  12081. <div
  12082. class="tool"
  12083. :class="{ isToolChoose: checktoolArray.indexOf(16) != -1 }"
  12084. @click="addTools2(16)"
  12085. >
  12086. <div class="whiteBIcon">
  12087. <img src="../../assets/icon/thirdToolList/work.png" alt />
  12088. <div style="margin: 5px 0">作业提交</div>
  12089. </div>
  12090. <div class="check">
  12091. <div
  12092. v-if="checktoolArray.indexOf(16) == -1"
  12093. class="noChoose"
  12094. ></div>
  12095. <div v-else class="isChoose"></div>
  12096. </div>
  12097. </div>
  12098. <div
  12099. class="tool"
  12100. :class="{ isToolChoose: checktoolArray.indexOf(50) != -1 }"
  12101. @click="addTools2(50)"
  12102. >
  12103. <div class="whiteBIcon">
  12104. <img src="../../assets/icon/thirdToolList/plwork.png" alt />
  12105. <div style="margin: 5px 0">批量上传</div>
  12106. </div>
  12107. <div class="check">
  12108. <div
  12109. v-if="checktoolArray.indexOf(50) == -1"
  12110. class="noChoose"
  12111. ></div>
  12112. <div v-else class="isChoose"></div>
  12113. </div>
  12114. </div>
  12115. </div>
  12116. <div class="toolSort" v-if="toolType == 3">
  12117. <div
  12118. class="tool"
  12119. :class="{ isToolChoose: checktoolArray.indexOf(18) != -1 }"
  12120. @click="addTools2(18)"
  12121. >
  12122. <div class="whiteBIcon">
  12123. <img
  12124. src="../../assets/icon/thirdToolList/trainPlatform.png"
  12125. alt
  12126. />
  12127. <div style="margin: 5px 0">训练平台</div>
  12128. </div>
  12129. <div class="check">
  12130. <div
  12131. v-if="checktoolArray.indexOf(18) == -1"
  12132. class="noChoose"
  12133. ></div>
  12134. <div v-else class="isChoose"></div>
  12135. </div>
  12136. </div>
  12137. <div
  12138. class="tool"
  12139. :class="{ isToolChoose: checktoolArray.indexOf(21) != -1 }"
  12140. @click="addTools2(21)"
  12141. >
  12142. <div class="whiteBIcon">
  12143. <img src="../../assets/icon/fourthToolList/program.png" alt />
  12144. <div style="margin: 5px 0">AIoT Blockly</div>
  12145. </div>
  12146. <div class="check">
  12147. <div
  12148. v-if="checktoolArray.indexOf(21) == -1"
  12149. class="noChoose"
  12150. ></div>
  12151. <div v-else class="isChoose"></div>
  12152. </div>
  12153. </div>
  12154. <div
  12155. class="tool"
  12156. :class="{ isToolChoose: checktoolArray.indexOf(23) != -1 }"
  12157. @click="addTools2(23)"
  12158. >
  12159. <div class="whiteBIcon">
  12160. <img
  12161. src="../../assets/icon/fourthToolList/Pythonprogram.png"
  12162. alt
  12163. />
  12164. <div style="margin: 5px 0">AI Python</div>
  12165. <div class="upload_toolBtn" v-if="tType == 1" @click="openChoseWorksDetailDialog(tooC,toolIndex,taskCount,23)"
  12166. style="position: absolute;right: 33px;top: -30px;">
  12167. 分析
  12168. </div>
  12169. </div>
  12170. <div class="check">
  12171. <div
  12172. v-if="checktoolArray.indexOf(23) == -1"
  12173. class="noChoose"
  12174. ></div>
  12175. <div v-else class="isChoose"></div>
  12176. </div>
  12177. </div>
  12178. <div
  12179. class="tool"
  12180. :class="{ isToolChoose: checktoolArray.indexOf(24) != -1 }"
  12181. @click="addTools2(24)"
  12182. >
  12183. <div class="whiteBIcon">
  12184. <img src="../../assets/icon/fourthToolList/AIprogram.png" alt />
  12185. <div style="margin: 5px 0">AI Blockly</div>
  12186. </div>
  12187. <div class="check">
  12188. <div
  12189. v-if="checktoolArray.indexOf(24) == -1"
  12190. class="noChoose"
  12191. ></div>
  12192. <div v-else class="isChoose"></div>
  12193. </div>
  12194. </div>
  12195. <div
  12196. class="tool"
  12197. :class="{ isToolChoose: checktoolArray.indexOf(32) != -1 }"
  12198. @click="addTools2(32)"
  12199. >
  12200. <div class="whiteBIcon">
  12201. <img src="../../assets/icon/thirdToolList/code.png" alt />
  12202. <div style="margin: 5px 0">源码编辑</div>
  12203. </div>
  12204. <div class="check">
  12205. <div
  12206. v-if="checktoolArray.indexOf(32) == -1"
  12207. class="noChoose"
  12208. ></div>
  12209. <div v-else class="isChoose"></div>
  12210. </div>
  12211. </div>
  12212. <div
  12213. class="tool"
  12214. :class="{ isToolChoose: checktoolArray.indexOf(57) != -1 }"
  12215. @click="addTools2(57)"
  12216. >
  12217. <div class="whiteBIcon">
  12218. <img src="../../assets/icon/fourthToolList/cocopi.png" alt />
  12219. <div style="margin: 5px 0">CocoPi</div>
  12220. </div>
  12221. <div class="check">
  12222. <div
  12223. v-if="checktoolArray.indexOf(57) == -1"
  12224. class="noChoose"
  12225. ></div>
  12226. <div v-else class="isChoose"></div>
  12227. </div>
  12228. </div>
  12229. <div
  12230. class="tool"
  12231. :class="{ isToolChoose: checktoolArray.indexOf(63) != -1 }"
  12232. @click="addTools2(63)"
  12233. >
  12234. <div class="whiteBIcon">
  12235. <img src="../../assets/icon/fourthToolList/Wood.png" alt />
  12236. <div style="margin: 5px 0">海龟编程</div>
  12237. </div>
  12238. <div class="check">
  12239. <div
  12240. v-if="checktoolArray.indexOf(63) == -1"
  12241. class="noChoose"
  12242. ></div>
  12243. <div v-else class="isChoose"></div>
  12244. </div>
  12245. </div>
  12246. <div
  12247. class="tool"
  12248. :class="{ isToolChoose: checktoolArray.indexOf(71) != -1 }"
  12249. @click="addTools2(71)"
  12250. >
  12251. <div class="whiteBIcon">
  12252. <img src="../../assets/icon/fourthToolList/chatgpt.png" alt />
  12253. <div style="margin: 5px 0">AI智能体</div>
  12254. </div>
  12255. <div class="check">
  12256. <div
  12257. v-if="checktoolArray.indexOf(71) == -1"
  12258. class="noChoose"
  12259. ></div>
  12260. <div v-else class="isChoose"></div>
  12261. </div>
  12262. </div>
  12263. </div>
  12264. <div class="toolSort" v-if="toolType == 7">
  12265. <div
  12266. class="tool"
  12267. :class="{ isToolChoose: checktoolArray.indexOf(40) != -1 }"
  12268. @click="addTools2(40)"
  12269. >
  12270. <div class="whiteBIcon">
  12271. <img src="../../assets/icon/secondToolList/eval.png" alt />
  12272. <div style="margin: 5px 0">个人评价</div>
  12273. </div>
  12274. <div class="check">
  12275. <div
  12276. v-if="checktoolArray.indexOf(40) == -1"
  12277. class="noChoose"
  12278. ></div>
  12279. <div v-else class="isChoose"></div>
  12280. </div>
  12281. </div>
  12282. </div>
  12283. <div class="toolSort" v-if="toolType == 5">
  12284. <div
  12285. class="tool"
  12286. :class="{ isToolChoose: checktoolArray.indexOf(28) != -1 }"
  12287. @click="addTools2(28)"
  12288. >
  12289. <div class="whiteBIcon">
  12290. <img
  12291. src="../../assets/icon/secondToolList/translation.png"
  12292. alt
  12293. />
  12294. <div style="margin: 5px 0">翻译</div>
  12295. </div>
  12296. <div class="check">
  12297. <div
  12298. v-if="checktoolArray.indexOf(28) == -1"
  12299. class="noChoose"
  12300. ></div>
  12301. <div v-else class="isChoose"></div>
  12302. </div>
  12303. </div>
  12304. <div
  12305. class="tool"
  12306. :class="{ isToolChoose: checktoolArray.indexOf(31) != -1 }"
  12307. @click="addTools2(31)"
  12308. >
  12309. <div class="whiteBIcon">
  12310. <img
  12311. src="../../assets/icon/secondToolList/networkPanel.png"
  12312. alt
  12313. />
  12314. <div style="margin: 5px 0">数字画板</div>
  12315. </div>
  12316. <div class="check">
  12317. <div
  12318. v-if="checktoolArray.indexOf(31) == -1"
  12319. class="noChoose"
  12320. ></div>
  12321. <div v-else class="isChoose"></div>
  12322. </div>
  12323. </div>
  12324. <div
  12325. class="tool"
  12326. :class="{ isToolChoose: checktoolArray.indexOf(39) != -1 }"
  12327. @click="addTools2(39)"
  12328. >
  12329. <div class="whiteBIcon">
  12330. <img src="../../assets/icon/secondToolList/GeoGebra.png" alt />
  12331. <div style="margin: 5px 0">GeoGebra</div>
  12332. </div>
  12333. <div class="check">
  12334. <div
  12335. v-if="checktoolArray.indexOf(39) == -1"
  12336. class="noChoose"
  12337. ></div>
  12338. <div v-else class="isChoose"></div>
  12339. </div>
  12340. </div>
  12341. <div
  12342. class="tool"
  12343. :class="{ isToolChoose: checktoolArray.indexOf(66) != -1 }"
  12344. @click="addTools2(66)"
  12345. >
  12346. <div class="whiteBIcon">
  12347. <img
  12348. src="../../assets/icon/secondToolList/formulaEdi.png"
  12349. alt
  12350. />
  12351. <div style="margin: 5px 0">公式编辑</div>
  12352. </div>
  12353. <div class="check">
  12354. <div
  12355. v-if="checktoolArray.indexOf(66) == -1"
  12356. class="noChoose"
  12357. ></div>
  12358. <div v-else class="isChoose"></div>
  12359. </div>
  12360. </div>
  12361. <!-- <div class="tool" :class="{ isToolChoose : checktoolArray.indexOf(67) != -1 }">
  12362. <div class="whiteBIcon" @click="addTools2(67)">
  12363. <img src="../../../assets/icon/secondToolList/molStr.png" alt />
  12364. <div style="margin: 5px 0">分子结构</div>
  12365. </div>
  12366. <div class="check" @click="addTools2(67)">
  12367. <div v-if="checktoolArray.indexOf(67) == -1" class="noChoose"></div>
  12368. <div v-else class="isChoose"></div>
  12369. </div>
  12370. </div> -->
  12371. <div
  12372. class="tool"
  12373. :class="{ isToolChoose: checktoolArray.indexOf(68) != -1 }"
  12374. @click="addTools2(68)"
  12375. >
  12376. <div class="whiteBIcon">
  12377. <img src="../../assets/icon/secondToolList/timeAxis.png" alt />
  12378. <div style="margin: 5px 0">时间轴</div>
  12379. </div>
  12380. <div class="check">
  12381. <div
  12382. v-if="checktoolArray.indexOf(68) == -1"
  12383. class="noChoose"
  12384. ></div>
  12385. <div v-else class="isChoose"></div>
  12386. </div>
  12387. </div>
  12388. <!-- <div
  12389. class="tool"
  12390. :class="{ isToolChoose: checktoolArray.indexOf(69) != -1 }"
  12391. @click="addTools2(69)"
  12392. >
  12393. <div class="whiteBIcon">
  12394. <img src="../../assets/icon/secondToolList/english.png" alt />
  12395. <div style="margin: 5px 0">英语写作</div>
  12396. </div>
  12397. <div class="check">
  12398. <div
  12399. v-if="checktoolArray.indexOf(69) == -1"
  12400. class="noChoose"
  12401. ></div>
  12402. <div v-else class="isChoose"></div>
  12403. </div>
  12404. </div> -->
  12405. </div>
  12406. <div class="toolSort" v-if="toolType == 4">
  12407. <div
  12408. class="tool"
  12409. :class="{ isToolChoose: checktoolArray.indexOf(26) != -1 }"
  12410. @click="addTools2(26)"
  12411. >
  12412. <div class="whiteBIcon">
  12413. <img
  12414. src="../../assets/icon/thirdToolList/courseDesign.png"
  12415. alt
  12416. />
  12417. <div style="margin: 5px 0">课程设计</div>
  12418. </div>
  12419. <div class="check">
  12420. <div
  12421. v-if="checktoolArray.indexOf(26) == -1"
  12422. class="noChoose"
  12423. ></div>
  12424. <div v-else class="isChoose"></div>
  12425. </div>
  12426. </div>
  12427. <div
  12428. class="tool"
  12429. :class="{ isToolChoose: checktoolArray.indexOf(25) != -1 }"
  12430. @click="addTools2(25)"
  12431. >
  12432. <div class="whiteBIcon">
  12433. <img src="../../assets/icon/thirdToolList/evalua.png" alt />
  12434. <div style="margin: 5px 0">目标管理</div>
  12435. </div>
  12436. <div class="check">
  12437. <div
  12438. v-if="checktoolArray.indexOf(25) == -1"
  12439. class="noChoose"
  12440. ></div>
  12441. <div v-else class="isChoose"></div>
  12442. </div>
  12443. </div>
  12444. </div>
  12445. </div>
  12446. </div>
  12447. <span
  12448. slot="footer"
  12449. class="dialog-footer"
  12450. style="display: block; text-align: center; padding: 0 0 10px 0"
  12451. >
  12452. <el-button @click="toolDialogVisible = false">取 消</el-button>
  12453. <el-button type="primary" @click.stop="addToolChoose">确 定</el-button>
  12454. </span>
  12455. </div>
  12456. <div
  12457. v-if="replyDialogVisible == true"
  12458. class="addDialogCss"
  12459. v-el-drag-dialog
  12460. >
  12461. <div class="pzTop">
  12462. <div class="teacherPz">
  12463. <div class="teacherPzImg">
  12464. <img src="../../assets/icon/teacherPz.png" alt="" />
  12465. </div>
  12466. <div style="margin-left: 10px; height: 25px">添加回复</div>
  12467. </div>
  12468. <div @click="replyDialogVisible = false">
  12469. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12470. </div>
  12471. </div>
  12472. <div class="addPzBox">
  12473. <!-- <div class="addPzCheck">
  12474. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12475. >文本</span
  12476. >
  12477. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12478. >音频</span
  12479. >
  12480. </div> -->
  12481. <div style="height: calc(100% - 50px)">
  12482. <editor-bar
  12483. class="binfo_input pzConText"
  12484. style="width: 100% !important; margin: 0 auto"
  12485. placeholder="请输入回复描述"
  12486. v-model="reply"
  12487. @change="change"
  12488. ></editor-bar>
  12489. </div>
  12490. <div class="addTextCss" @click="addHf">确定</div>
  12491. </div>
  12492. </div>
  12493. <div v-if="addPzDialog == true" class="addDialogCss" v-el-drag-dialog>
  12494. <div class="pzTop">
  12495. <div class="teacherPz">
  12496. <div class="teacherPzImg">
  12497. <img src="../../assets/icon/teacherPz.png" alt="" />
  12498. </div>
  12499. <div style="margin-left: 10px; height: 25px">教师评论</div>
  12500. </div>
  12501. <div @click="addPzDialog = false">
  12502. <img src="../../assets/close1.png" class="pzClose" alt="" />
  12503. </div>
  12504. </div>
  12505. <div class="addPzBox">
  12506. <div class="addPzCheck">
  12507. <span :class="{ isChooseActive: pzType == 1 }" @click="pzType = 1"
  12508. >文本</span
  12509. >
  12510. <!-- <span :class="{isChooseActive:pzType==3}" @click="pzType = 3">图片</span> -->
  12511. <span :class="{ isChooseActive: pzType == 2 }" @click="pzType = 2"
  12512. >音频</span
  12513. >
  12514. </div>
  12515. <div style="height: calc(100% - 95px)">
  12516. <!-- <textarea class="binfo_input pzConText" cols placeholder="请填写项目课程关键问题...." v-model="pzConText"
  12517. v-if="pzType == 1"></textarea> -->
  12518. <editor-bar
  12519. class="binfo_input pzConText"
  12520. style="width: 100% !important"
  12521. placeholder="请输入任务描述"
  12522. v-model="pzConText"
  12523. @change="change"
  12524. v-if="pzType == 1"
  12525. ></editor-bar>
  12526. <Audio @addPz="addPz" class="pzAudioClass" v-if="pzType == 2"></Audio>
  12527. <!-- <div class="pzAudioClass" v-if="pzType == 3">
  12528. <div @click="addImg($event)">
  12529. <el-button type="primary">上传图片</el-button>
  12530. <input type="file" accept="image/png, image/gif, image/jpeg" style="display: none"
  12531. @change="beforeUpload1($event, 4)" />
  12532. </div>
  12533. </div> -->
  12534. </div>
  12535. <div class="addTextCss" @click="addPz('1')" v-if="pzType == 1">
  12536. 确定
  12537. </div>
  12538. </div>
  12539. </div>
  12540. <div v-if="proVisible" class="mask">
  12541. <div class="progressBox">
  12542. <!-- <div id="closePro" class="closeCss">
  12543. <img src="../../assets/icon/close.png" alt />
  12544. </div> -->
  12545. <div class="lbox">
  12546. <img src="../../assets/loading.gif" />上传中,请稍后
  12547. </div>
  12548. <div style="margin-bottom: 10px">
  12549. <span>{{ isFinishSize }}M</span> / <span>{{ isAllSize }}M</span>
  12550. </div>
  12551. <el-progress
  12552. :text-inside="true"
  12553. :stroke-width="20"
  12554. :percentage="progress"
  12555. style="width: 80%"
  12556. ></el-progress>
  12557. </div>
  12558. </div>
  12559. <div v-if="proVisible2" class="mask">
  12560. <div class="progressBox">
  12561. <div class="lbox">
  12562. <img src="../../assets/loading.gif" />上传中,请稍后
  12563. </div>
  12564. <!-- <el-progress :text-inside="true" :stroke-width="20" :percentage="progress" style="width: 80%"></el-progress> -->
  12565. </div>
  12566. </div>
  12567. <el-dialog :visible.sync="pictureDialog" size="tiny">
  12568. <img width="100%" :src="dialogImageUrl" alt />
  12569. </el-dialog>
  12570. <el-dialog
  12571. :title="noteName != '' ? noteName : '查看问卷'"
  12572. :visible.sync="dialogVisible5"
  12573. :append-to-body="true"
  12574. width="1000px"
  12575. :before-close="handleClose"
  12576. class="dialog_diy dialog_diy3"
  12577. >
  12578. <div>
  12579. <div
  12580. class="a_add_title"
  12581. style="
  12582. display: flex;
  12583. flex-direction: row;
  12584. align-items: center;
  12585. justify-content: center;
  12586. "
  12587. >
  12588. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12589. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12590. </div>
  12591. <div class="a_addBox">
  12592. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12593. 题目内容
  12594. </div>
  12595. <div
  12596. class="a_add_box"
  12597. v-for="(item1, index1) in askJson.askCount"
  12598. :key="index1"
  12599. >
  12600. <div class="a_add_head">
  12601. <div style="display: flex">
  12602. <span class="askIndex"> {{ index1 + 1 }}</span>
  12603. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12604. </div>
  12605. <img
  12606. v-if="askJson.askJson[index1].img"
  12607. :src="askJson.askJson[index1].img"
  12608. style="height: 300px; margin-top: 10px; max-width: 100%"
  12609. />
  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="
  12616. askJson.askJson[index1].type == '1' ||
  12617. !askJson.askJson[index1].type
  12618. "
  12619. >
  12620. <el-radio
  12621. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12622. .checkList"
  12623. :key="checkIndex"
  12624. :label="checkIndex"
  12625. :disabled="isAnswer"
  12626. class="redioStyle"
  12627. ><span v-html="item2"></span
  12628. ></el-radio>
  12629. </el-radio-group>
  12630. <el-checkbox-group
  12631. v-model="radio[index1]"
  12632. v-if="askJson.askJson[index1].type == '2'"
  12633. >
  12634. <el-checkbox
  12635. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12636. .checkList"
  12637. :key="checkIndex1"
  12638. :label="checkIndex1"
  12639. :disabled="isAnswer"
  12640. class="redioStyle"
  12641. ><span v-html="item2"></span>
  12642. </el-checkbox>
  12643. </el-checkbox-group>
  12644. </div>
  12645. </div>
  12646. </div>
  12647. </div>
  12648. </div>
  12649. <span slot="footer" class="dialog-footer">
  12650. <el-button @click="dialogVisible5 = false" v-show="noteName == ''"
  12651. >取 消</el-button
  12652. >
  12653. <el-button type="primary" @click="addStudentAsk" v-show="noteName == ''"
  12654. >确 定</el-button
  12655. >
  12656. </span>
  12657. </el-dialog>
  12658. <el-dialog
  12659. :title="noteName != '' ? noteName : '查看问卷'"
  12660. :visible.sync="dialogVisible5Teacher"
  12661. :append-to-body="true"
  12662. width="1000px"
  12663. :before-close="handleClose"
  12664. class="dialog_diy dialog_diy3"
  12665. >
  12666. <div>
  12667. <div class="w_name">
  12668. 学生姓名:<span>{{ sStudent.student }}</span>
  12669. </div>
  12670. <div
  12671. class="a_add_title"
  12672. style="
  12673. display: flex;
  12674. flex-direction: row;
  12675. align-items: center;
  12676. justify-content: center;
  12677. "
  12678. >
  12679. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12680. <div style="font-size: 20px">{{ askJson.askTitle }}</div>
  12681. </div>
  12682. <div class="a_addBox">
  12683. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12684. 题目内容
  12685. </div>
  12686. <div
  12687. class="a_add_box"
  12688. v-for="(item1, index1) in askJson.askCount"
  12689. :key="index1"
  12690. >
  12691. <div class="a_add_head">
  12692. <div style="display: flex">
  12693. <span class="askIndex">{{ index1 + 1 }}</span>
  12694. <div>题目:{{ askJson.askJson[index1].askstitle }}</div>
  12695. </div>
  12696. <img
  12697. v-if="askJson.askJson[index1].img"
  12698. :src="askJson.askJson[index1].img"
  12699. style="height: 300px; margin-top: 10px; max-width: 100%"
  12700. />
  12701. </div>
  12702. <div class="a_add_body">
  12703. <div class="a_add_input">
  12704. <el-radio-group
  12705. v-model="radio[index1]"
  12706. v-if="
  12707. askJson.askJson[index1].type == '1' ||
  12708. !askJson.askJson[index1].type
  12709. "
  12710. >
  12711. <el-radio
  12712. v-for="(item2, checkIndex) in askJson.askJson[index1]
  12713. .checkList"
  12714. :key="checkIndex"
  12715. :label="checkIndex"
  12716. :disabled="isAnswer"
  12717. class="redioStyle"
  12718. ><span v-html="item2"></span
  12719. ></el-radio>
  12720. </el-radio-group>
  12721. <el-checkbox-group
  12722. v-model="radio[index1]"
  12723. v-if="askJson.askJson[index1].type == '2'"
  12724. >
  12725. <el-checkbox
  12726. v-for="(item2, checkIndex1) in askJson.askJson[index1]
  12727. .checkList"
  12728. :key="checkIndex1"
  12729. :label="checkIndex1"
  12730. :disabled="isAnswer"
  12731. class="redioStyle"
  12732. ><span v-html="item2"></span>
  12733. </el-checkbox>
  12734. </el-checkbox-group>
  12735. </div>
  12736. </div>
  12737. </div>
  12738. </div>
  12739. </div>
  12740. <span slot="footer" class="dialog-footer">
  12741. <el-button
  12742. @click="dialogVisible5Teacher = false"
  12743. v-show="noteName == ''"
  12744. >取 消</el-button
  12745. >
  12746. <el-button
  12747. type="primary"
  12748. @click="addStudentAskTeacher"
  12749. v-show="noteName == ''"
  12750. >确 定</el-button
  12751. >
  12752. </span>
  12753. </el-dialog>
  12754. <el-dialog
  12755. :title="noteName != '' ? noteName : '查看选择题'"
  12756. :visible.sync="dialogVisibleChoice"
  12757. :append-to-body="true"
  12758. width="1000px"
  12759. :before-close="handleClose"
  12760. class="dialog_diy dialog_diy3"
  12761. >
  12762. <div>
  12763. <!-- <div class="a_add_title" style="
  12764. display: flex;
  12765. flex-direction: row;
  12766. align-items: center;
  12767. justify-content: center;
  12768. ">
  12769. <div style="margin-right: 20px; font-size: 20px">标题:</div>
  12770. <div style="font-size: 20px">{{ testJson.testTitle }}</div>
  12771. </div> -->
  12772. <div class="a_addBox">
  12773. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12774. 题目内容
  12775. </div>
  12776. <div
  12777. class="a_add_box"
  12778. v-for="(item1, index1) in testJson.testCount"
  12779. :key="index1"
  12780. >
  12781. <div class="a_add_head">
  12782. <div style="display: flex;">
  12783. <span class="askIndex">{{ index1 + 1 }}</span>
  12784. <div
  12785. v-if="testJson.testJson[index1].type == '1'"
  12786. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12787. >
  12788. (单选题)
  12789. </div>
  12790. <div
  12791. v-if="testJson.testJson[index1].type == '2'"
  12792. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12793. >
  12794. (多选题)
  12795. </div>
  12796. <div class="renderedFor">题目:<span v-html="renderedFormula(testJson.testJson[index1].teststitle)"></span></div>
  12797. </div>
  12798. <img
  12799. v-if="testJson.testJson[index1].img"
  12800. :src="testJson.testJson[index1].img"
  12801. style="height: 300px; margin-top: 10px; max-width: 100%"
  12802. />
  12803. </div>
  12804. <div
  12805. class="timuImgBox"
  12806. v-if="
  12807. testJson.testJson[index1].timuList &&
  12808. testJson.testJson[index1].timuList.length
  12809. "
  12810. >
  12811. <div
  12812. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12813. :key="tIndex"
  12814. class="timuImg"
  12815. @click.stop="previewImg(timg.src)"
  12816. >
  12817. <img :src="timg.src" alt="" />
  12818. </div>
  12819. </div>
  12820. <div class="a_add_body">
  12821. <div class="a_add_input">
  12822. <el-radio-group
  12823. v-model="radio[index1]"
  12824. v-if="testJson.testJson[index1].type == '1'"
  12825. >
  12826. <div class="radioBox">
  12827. <el-radio
  12828. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12829. .checkList"
  12830. :key="checkIndex"
  12831. :label="checkIndex"
  12832. :disabled="isAnswer"
  12833. class="redioStyle"
  12834. >
  12835. <div
  12836. style="margin-right: 10px"
  12837. v-if="item2 && item2.imgType && item2.imgType == 1"
  12838. >
  12839. <div class="inImg" @click.stop="previewImg(item2.src)">
  12840. <img :src="item2.src" alt="" />
  12841. </div>
  12842. </div>
  12843. <span v-else v-html="item2"></span>
  12844. </el-radio>
  12845. </div>
  12846. </el-radio-group>
  12847. <el-checkbox-group
  12848. v-model="radio[index1]"
  12849. v-if="testJson.testJson[index1].type == '2'"
  12850. >
  12851. <div class="radioBox">
  12852. <el-checkbox
  12853. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12854. .checkList"
  12855. :key="checkIndex"
  12856. :label="checkIndex"
  12857. :disabled="isAnswer"
  12858. class="redioStyle"
  12859. >
  12860. <div
  12861. style="margin-right: 10px"
  12862. v-if="item2 && item2.imgType && item2.imgType == 1"
  12863. >
  12864. <div class="inImg" @click.stop="previewImg(item2.src)">
  12865. <img :src="item2.src" alt="" />
  12866. </div>
  12867. </div>
  12868. <span v-else v-html="item2"></span>
  12869. </el-checkbox>
  12870. </div>
  12871. </el-checkbox-group>
  12872. </div>
  12873. </div>
  12874. </div>
  12875. </div>
  12876. </div>
  12877. <span slot="footer" class="dialog-footer">
  12878. <el-button @click="dialogVisibleChoice = false" v-show="noteName == ''"
  12879. >取 消</el-button
  12880. >
  12881. <el-button
  12882. type="primary"
  12883. @click="addStudentTest"
  12884. v-show="noteName == ''"
  12885. >确 定</el-button
  12886. >
  12887. </span>
  12888. </el-dialog>
  12889. <el-dialog
  12890. :title="noteName != '' ? noteName : '查看选择题'"
  12891. :visible.sync="dialogVisibleChoiceTeacher"
  12892. :append-to-body="true"
  12893. width="1000px"
  12894. :before-close="handleClose"
  12895. class="dialog_diy dialog_diy3"
  12896. >
  12897. <div>
  12898. <div class="w_name">
  12899. 学生姓名:<span>{{ sStudent.student }}</span>
  12900. </div>
  12901. <div class="a_addBox">
  12902. <div style="font-size: 16px; color: #c7c7c7; margin-bottom: 10px">
  12903. 题目内容
  12904. </div>
  12905. <div
  12906. class="a_add_box"
  12907. v-for="(item1, index1) in testJson.testCount"
  12908. :key="index1"
  12909. >
  12910. <div class="a_add_head">
  12911. <div style="display: flex">
  12912. <span class="askIndex">{{ index1 + 1 }}</span>
  12913. <div
  12914. v-if="testJson.testJson[index1].type == '1'"
  12915. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12916. >
  12917. (单选题)
  12918. </div>
  12919. <div
  12920. v-if="testJson.testJson[index1].type == '2'"
  12921. style="margin-right: 5px; min-width: 70px;flex-shrink: 0;"
  12922. >
  12923. (多选题)
  12924. </div>
  12925. <div>题目:{{ testJson.testJson[index1].teststitle }}</div>
  12926. </div>
  12927. <img
  12928. v-if="testJson.testJson[index1].img"
  12929. :src="testJson.testJson[index1].img"
  12930. style="height: 300px; margin-top: 10px; max-width: 100%"
  12931. />
  12932. </div>
  12933. <div
  12934. class="timuImgBox"
  12935. v-if="
  12936. testJson.testJson[index1].timuList &&
  12937. testJson.testJson[index1].timuList.length
  12938. "
  12939. >
  12940. <div
  12941. v-for="(timg, tIndex) in testJson.testJson[index1].timuList"
  12942. :key="tIndex"
  12943. class="timuImg"
  12944. @click.stop="previewImg(timg.src)"
  12945. >
  12946. <img :src="timg.src" alt="" />
  12947. </div>
  12948. </div>
  12949. <div class="a_add_body">
  12950. <div class="a_add_input">
  12951. <el-radio-group
  12952. v-model="radio[index1]"
  12953. v-if="testJson.testJson[index1].type == '1'"
  12954. >
  12955. <div class="radioBox">
  12956. <el-radio
  12957. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12958. .checkList"
  12959. :key="checkIndex"
  12960. :label="checkIndex"
  12961. :disabled="isAnswer"
  12962. class="redioStyle"
  12963. >
  12964. <div
  12965. style="margin-right: 10px"
  12966. v-if="item2 && item2.imgType && item2.imgType == 1"
  12967. >
  12968. <div class="inImg" @click.stop="previewImg(item2.src)">
  12969. <img :src="item2.src" alt="" />
  12970. </div>
  12971. </div>
  12972. <span v-else v-html="item2"></span>
  12973. </el-radio>
  12974. </div>
  12975. </el-radio-group>
  12976. <el-checkbox-group
  12977. v-model="radio[index1]"
  12978. v-if="testJson.testJson[index1].type == '2'"
  12979. >
  12980. <div class="radioBox">
  12981. <el-checkbox
  12982. v-for="(item2, checkIndex) in testJson.testJson[index1]
  12983. .checkList"
  12984. :key="checkIndex"
  12985. :label="checkIndex"
  12986. :disabled="isAnswer"
  12987. class="redioStyle"
  12988. >
  12989. <div
  12990. style="margin-right: 10px"
  12991. v-if="item2 && item2.imgType && item2.imgType == 1"
  12992. >
  12993. <div class="inImg" @click.stop="previewImg(item2.src)">
  12994. <img :src="item2.src" alt="" />
  12995. </div>
  12996. </div>
  12997. <span v-else v-html="item2"></span>
  12998. </el-checkbox>
  12999. </div>
  13000. </el-checkbox-group>
  13001. </div>
  13002. </div>
  13003. </div>
  13004. </div>
  13005. </div>
  13006. <span slot="footer" class="dialog-footer">
  13007. <el-button
  13008. @click="dialogVisibleChoiceTeacher = false"
  13009. v-show="noteName == ''"
  13010. >取 消</el-button
  13011. >
  13012. <el-button
  13013. type="primary"
  13014. @click="addStudentTestTeacher"
  13015. v-show="noteName == ''"
  13016. >确 定</el-button
  13017. >
  13018. </span>
  13019. </el-dialog>
  13020. <el-dialog
  13021. title="查看富文本"
  13022. :visible.sync="dialogVisible1"
  13023. :append-to-body="true"
  13024. width="500px"
  13025. :before-close="handleClose"
  13026. class="dialog_diy textCss"
  13027. >
  13028. <el-form style="font-size: 20px">
  13029. <el-form-item label="文本标题" class="textTitle">
  13030. <div style="font-size: 20px">{{ text.name }}</div>
  13031. </el-form-item>
  13032. <div>富文本内容</div>
  13033. <div
  13034. v-html="text.url"
  13035. style="font-size: 18px; padding: 40px 0 0 0"
  13036. ></div>
  13037. </el-form>
  13038. <span slot="footer" class="dialog-footer">
  13039. <el-button type="primary" @click="dialogVisible1 = false"
  13040. >确定</el-button
  13041. >
  13042. </span>
  13043. </el-dialog>
  13044. <el-dialog
  13045. title="文件预览"
  13046. :visible.sync="dialogVisible3"
  13047. width="50%"
  13048. :before-close="handleClose"
  13049. class="dialog_diy"
  13050. :class="{ fullStyle: full }"
  13051. >
  13052. <div slot="title" class="header-title">
  13053. <div style="color: #fff">文件预览</div>
  13054. <div style="position: absolute; top: 19px; right: 50px">
  13055. <img
  13056. src="../../assets/full.png"
  13057. style="height: 16px; cursor: pointer"
  13058. alt=""
  13059. @click="fullTools"
  13060. />
  13061. </div>
  13062. </div>
  13063. <pdf
  13064. v-if="showPDF"
  13065. :pdfUrl="pptImgUrl"
  13066. style="width: 100%; height: 520px; overflow: auto"
  13067. :class="{ fullStyle: full }"
  13068. ></pdf>
  13069. <iframe
  13070. v-else
  13071. :src="pptImgUrl"
  13072. frameborder="0"
  13073. width="100%"
  13074. height="600"
  13075. :class="{ fullStyle: full }"
  13076. ></iframe>
  13077. </el-dialog>
  13078. <el-dialog
  13079. title="文件预览"
  13080. :visible.sync="dialogVisible6"
  13081. width="50%"
  13082. :before-close="handleClose"
  13083. class="dialog_diy"
  13084. >
  13085. <iframe
  13086. :src="pptImgUrl1"
  13087. frameborder="0"
  13088. width="100%"
  13089. height="600"
  13090. ></iframe>
  13091. </el-dialog>
  13092. <el-dialog
  13093. title="提示"
  13094. :visible.sync="dialogVisible4"
  13095. :append-to-body="true"
  13096. width="800px"
  13097. :before-close="handleClose"
  13098. class="dialog_diy notice"
  13099. >
  13100. <div>此功能暂未开放!</div>
  13101. <el-button type="primary" @click="dialogVisible4 = false">确定</el-button>
  13102. </el-dialog>
  13103. <el-dialog
  13104. title="问答"
  13105. :visible.sync="answerDialogVisible"
  13106. :append-to-body="true"
  13107. width="800px"
  13108. :before-close="handleClose"
  13109. class="dialog_diy"
  13110. >
  13111. <div>
  13112. <div
  13113. style="
  13114. display: flex;
  13115. flex-wrap: nowrap;
  13116. flex-direction: column;
  13117. position: relative;
  13118. "
  13119. >
  13120. <div class="queTop" style="padding: 20px 0 20px 0">
  13121. <div class="question">
  13122. <img src="../../assets/icon/question.png" alt />
  13123. </div>
  13124. <div class="queTitle">
  13125. <div style="width: 90px; min-width: 90px">提问:</div>
  13126. <div>{{ answerQ }}</div>
  13127. </div>
  13128. </div>
  13129. <div class="ediBottom">
  13130. <textarea
  13131. rows="6"
  13132. class="binfo_input"
  13133. cols
  13134. style="width: 95%; height: 120px"
  13135. v-model="questionAnswer"
  13136. ></textarea>
  13137. </div>
  13138. </div>
  13139. </div>
  13140. <div slot="footer">
  13141. <el-button @click="answerDialogVisible = false">取 消</el-button>
  13142. <el-button type="primary" @click="addQuestion">提 交</el-button>
  13143. </div>
  13144. </el-dialog>
  13145. <el-dialog
  13146. title="问答"
  13147. :visible.sync="answerDialogVisibleTeacher"
  13148. :append-to-body="true"
  13149. width="800px"
  13150. :before-close="handleClose"
  13151. class="dialog_diy"
  13152. >
  13153. <div>
  13154. <div class="w_name">
  13155. 学生姓名:<span>{{ sStudent.student }}</span>
  13156. </div>
  13157. <div
  13158. style="
  13159. display: flex;
  13160. flex-wrap: nowrap;
  13161. flex-direction: column;
  13162. position: relative;
  13163. "
  13164. >
  13165. <div class="queTop" style="padding: 20px 0 20px 0">
  13166. <div class="question">
  13167. <img src="../../assets/icon/question.png" alt />
  13168. </div>
  13169. <div class="queTitle">
  13170. <div style="width: 90px; min-width: 90px">提问:</div>
  13171. <div>{{ answerQ }}</div>
  13172. </div>
  13173. </div>
  13174. <div class="ediBottom">
  13175. <textarea
  13176. rows="6"
  13177. class="binfo_input"
  13178. cols
  13179. style="width: 95%; height: 120px"
  13180. v-model="questionAnswer"
  13181. ></textarea>
  13182. </div>
  13183. </div>
  13184. </div>
  13185. <div slot="footer">
  13186. <el-button @click="answerDialogVisibleTeacher = false">取 消</el-button>
  13187. <el-button type="primary" @click="addQuestionTeacher">提 交</el-button>
  13188. </div>
  13189. </el-dialog>
  13190. <el-dialog
  13191. title="倒计时"
  13192. :visible.sync="timeDialogVisible"
  13193. :append-to-body="true"
  13194. width="800px"
  13195. :before-close="handleClose"
  13196. class="dialog_diy"
  13197. >
  13198. <div>
  13199. <div style="margin-bottom: 20px; color: #999">
  13200. 提示:点击“+”或“-”修改倒计时时长。
  13201. </div>
  13202. <Time :preTime="preTime" v-if="timeDialogVisible"></Time>
  13203. </div>
  13204. <div slot="footer">
  13205. <el-button @click="timeDialogVisible = false">关 闭</el-button>
  13206. </div>
  13207. </el-dialog>
  13208. <el-dialog
  13209. title="权限设置"
  13210. :visible.sync="juriVisible"
  13211. :append-to-body="true"
  13212. width="400px"
  13213. :before-close="handleClose"
  13214. class="dialog_diy"
  13215. >
  13216. <div>
  13217. <div class="open_box">
  13218. <div class="switch_box">
  13219. <span>允许学生查看所有作业</span>
  13220. <el-switch
  13221. v-model="sIsOpen"
  13222. active-text=""
  13223. class="switchCss"
  13224. @change="updateSLook"
  13225. ></el-switch>
  13226. </div>
  13227. <div
  13228. class="switch_box"
  13229. v-if="
  13230. (courseDetail.userid == userid ||
  13231. (courseDetail.course_teacher &&
  13232. courseDetail.course_teacher.indexOf(userid) != -1)) && !splitScreenData.isOpen
  13233. "
  13234. >
  13235. <!-- v-if="courseDetail.userid == userid || courseDetail.course_teacher.indexOf(userid) != -1" -->
  13236. <span>禁止学生查看阶段</span>
  13237. <el-switch
  13238. v-model="IsLookOpen"
  13239. active-text=""
  13240. class="switchCss"
  13241. @change="updateLookOpen"
  13242. ></el-switch>
  13243. </div>
  13244. <div class="switch_box" v-if="courseDetail.userid == userid">
  13245. <span>开启跟随模式</span>
  13246. <el-switch
  13247. v-model="IsFollow"
  13248. active-text=""
  13249. class="switchCss"
  13250. @change="updateFollow"
  13251. ></el-switch>
  13252. </div>
  13253. <div class="switch_box" v-if="courseDetail.userid == userid">
  13254. <span>允许学生查看内容资料</span>
  13255. <el-switch
  13256. v-model="IsStulook"
  13257. active-text=""
  13258. class="switchCss"
  13259. @change="updateIsStulook"
  13260. ></el-switch>
  13261. </div>
  13262. </div>
  13263. </div>
  13264. <div slot="footer">
  13265. <el-button
  13266. style="background: #409efe; color: #fff"
  13267. @click="juriVisible = false"
  13268. >关 闭</el-button
  13269. >
  13270. </div>
  13271. </el-dialog>
  13272. <el-dialog
  13273. title="查看视频"
  13274. :visible.sync="videoVisible"
  13275. :append-to-body="true"
  13276. width="1000px"
  13277. :before-close="handleClose"
  13278. class="dialog_diy1"
  13279. >
  13280. <div class="workd_media" style="height: 100%" v-if="videoDetail.sources">
  13281. <video-player
  13282. class="video-player vjs-custom-skin"
  13283. :playsinline="true"
  13284. :options="videoDetail"
  13285. @play="onPlayerPlay($event)"
  13286. style="width: 100%; height: 100%"
  13287. ></video-player>
  13288. </div>
  13289. <div slot="footer">
  13290. <el-button
  13291. style="background: #409efe; color: #fff"
  13292. @click="(videoVisible = false), (videoDetail.sources[0].src = '')"
  13293. >
  13294. 关 闭</el-button
  13295. >
  13296. </div>
  13297. </el-dialog>
  13298. <el-dialog
  13299. title="查看详情"
  13300. :visible.sync="commentDialogVisible"
  13301. :append-to-body="true"
  13302. width="800px"
  13303. :before-close="handleClose"
  13304. class="dialog_diy"
  13305. >
  13306. <div class="commentTop">
  13307. <div class="studentDetail">
  13308. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  13309. <div class="nameAndTime">
  13310. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  13311. <div>{{ commentDetail.time }}</div>
  13312. </div>
  13313. <div
  13314. class="returnBtn"
  13315. style="margin-left: auto; width: 80px"
  13316. v-if="
  13317. commentDetail.works &&
  13318. commentDetail.type == 0 &&
  13319. (tType == 1 || tType == 4)
  13320. "
  13321. @click="
  13322. showPicturePaint(
  13323. commentDetail.img ? commentDetail.img : commentDetail.works
  13324. )
  13325. "
  13326. >
  13327. 教师批注
  13328. </div>
  13329. </div>
  13330. <div
  13331. class="worksAnswer"
  13332. v-if="commentDetail.works && commentDetail.type == 2"
  13333. >
  13334. {{ JSON.parse(commentDetail.works)[0].answer }}
  13335. </div>
  13336. <div
  13337. class="worksAnswer"
  13338. v-if="commentDetail.works && commentDetail.type == 1"
  13339. >
  13340. <img
  13341. src="../../assets/teacherWork.png"
  13342. v-if="commentDetail.ateacher"
  13343. class="w_teachert"
  13344. />
  13345. <pdf
  13346. v-if="showPDF"
  13347. :pdfUrl="pptImgUrl"
  13348. style="width: 100%; height: 520px; overflow: auto"
  13349. :class="{ fullStyle: full }"
  13350. ></pdf>
  13351. <iframe
  13352. v-else
  13353. :src="pptImgUrl"
  13354. frameborder="0"
  13355. width="100%"
  13356. height="600"
  13357. :class="{ fullStyle: full }"
  13358. ></iframe>
  13359. </div>
  13360. <div
  13361. class="worksAnswer"
  13362. v-if="commentDetail.works && commentDetail.type == 0"
  13363. >
  13364. <img
  13365. src="../../assets/teacherWork.png"
  13366. v-if="commentDetail.ateacher"
  13367. class="w_teachert"
  13368. style="right: 105px"
  13369. />
  13370. <img
  13371. :src="commentDetail.works"
  13372. alt=""
  13373. @click="previewImg(commentDetail.works)"
  13374. />
  13375. </div>
  13376. <div
  13377. class="worksAnswer"
  13378. v-if="commentDetail.works && commentDetail.type == 3"
  13379. >
  13380. <img
  13381. src="../../assets/teacherWork.png"
  13382. v-if="commentDetail.ateacher"
  13383. class="w_teachert"
  13384. />
  13385. <video-player
  13386. class="video-player vjs-custom-skin"
  13387. :playsinline="true"
  13388. :options="videoDetail"
  13389. @play="onPlayerPlay($event)"
  13390. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  13391. ></video-player>
  13392. </div>
  13393. <div
  13394. class="worksAnswer"
  13395. v-if="commentDetail.works && commentDetail.type == 10"
  13396. >
  13397. <div class="cont" v-html="commentDetail.works.text"></div>
  13398. </div>
  13399. <div
  13400. class="worksAnswer codeFileBox"
  13401. v-if="commentDetail.works && commentDetail.type == 12"
  13402. @click="downloadFile(commentDetail.works)"
  13403. >
  13404. <img src="../../assets/icon/codeFile.png" />
  13405. <div>点击下载文件</div>
  13406. </div>
  13407. <div
  13408. class="worksAnswer codeFileBox"
  13409. v-if="commentDetail.works && commentDetail.type == 15"
  13410. @click="
  13411. openCocoPi(
  13412. 57,
  13413. commentIndexJson.toolIndex,
  13414. commentDetail.userid,
  13415. commentDetail.sName
  13416. )
  13417. "
  13418. >
  13419. <img src="../../assets/icon/codeFile.png" />
  13420. <div>点击打开CocoPi</div>
  13421. </div>
  13422. <div
  13423. class="worksAnswer"
  13424. v-if="commentDetail.works && commentDetail.type == 13"
  13425. >
  13426. <div v-html="JSON.parse(commentDetail.works).text"></div>
  13427. </div>
  13428. <div
  13429. class="worksAnswer"
  13430. v-if="commentDetail.works && commentDetail.type == 4"
  13431. >
  13432. <div class="evalCss">
  13433. <div class="nav">请选择星星进行评分</div>
  13434. <div class="middleBox" v-if="eScore.eStar">
  13435. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13436. <div class="nameAndrate">
  13437. <div>{{ e.value }}</div>
  13438. <el-rate v-model="eScore.eStar[eIndex]" disabled></el-rate>
  13439. </div>
  13440. <div v-if="e.detail">{{ e.detail }}</div>
  13441. </div>
  13442. <div class="bz">
  13443. <textarea
  13444. disabled
  13445. rows="4"
  13446. class="pj"
  13447. style="
  13448. padding: 10px 5px;
  13449. width: 70%;
  13450. background: #f7f6f9;
  13451. font-size: 14px;
  13452. text-indent: 10px;
  13453. color: #000;
  13454. "
  13455. cols
  13456. v-model="eScore.eBzText"
  13457. placeholder="请输入评价内容..."
  13458. ></textarea>
  13459. </div>
  13460. </div>
  13461. </div>
  13462. </div>
  13463. <div class="comment">
  13464. <div class="commentList">
  13465. <div class="commentImg">
  13466. <img
  13467. @click="
  13468. isLikes(
  13469. commentDetail.wid,
  13470. userid,
  13471. 1,
  13472. null,
  13473. commentDetail.isLikes,
  13474. commentDetail.sName
  13475. )
  13476. "
  13477. :src="commentDetail.isLikes == true ? likes : noLikes"
  13478. alt=""
  13479. />
  13480. </div>
  13481. <div>{{ commentDetail.likesCount }}</div>
  13482. </div>
  13483. <div class="commentList">
  13484. <div class="commentImg">
  13485. <img src="../../assets/icon/comment/comment.png" alt="" />
  13486. </div>
  13487. <div>{{ commentDetail.commentCount }}</div>
  13488. </div>
  13489. </div>
  13490. <div class="drawPBox" v-if="commentDetail.img">
  13491. <span>教师批注</span>
  13492. <img
  13493. :src="commentDetail.img"
  13494. alt=""
  13495. @click="previewImg(commentDetail.img)"
  13496. />
  13497. <span
  13498. class="deleteImg"
  13499. v-if="tType == 1 || tType == 4"
  13500. @click.stop="deletePicturePaint(commentDetail.wid)"
  13501. style="
  13502. font-size: 14px;
  13503. width: auto !important;
  13504. color: #b4b4b4;
  13505. top: unset;
  13506. bottom: 0;
  13507. border: none;
  13508. padding: 0;
  13509. height: auto !important;
  13510. margin: 0;
  13511. "
  13512. >删除</span
  13513. >
  13514. </div>
  13515. </div>
  13516. <div class="commentBox">
  13517. <div class="pl">评论:</div>
  13518. <div style="max-height: 200px; overflow: auto">
  13519. <div
  13520. v-if="commentDetail.commentJson && commentDetail.commentJson.length"
  13521. style="padding: 10px 0 0 0"
  13522. >
  13523. <div
  13524. class="studentDetail"
  13525. style="padding-top: 10px"
  13526. v-for="(co, coIndex) in commentDetail.commentJson"
  13527. :key="coIndex"
  13528. >
  13529. <div class="tx" style="min-width: 50px">
  13530. <img src="../../assets/avatar.png" alt="" />
  13531. </div>
  13532. <div class="plPerson">
  13533. <div class="plName">
  13534. <div>{{ co.commentPeople }}</div>
  13535. <div style="margin-left: 5px">
  13536. {{ co.commentTime }}
  13537. </div>
  13538. <div
  13539. class="deleteComment"
  13540. v-if="userid == co.userid"
  13541. @click="deleteComment(co.wid)"
  13542. >
  13543. 删除
  13544. </div>
  13545. </div>
  13546. <div class="plContent">{{ co.commentText }}</div>
  13547. </div>
  13548. </div>
  13549. </div>
  13550. <div v-else style="padding: 10px 0 0 0">暂无评论</div>
  13551. </div>
  13552. </div>
  13553. <div style="margin-top: 10px">
  13554. <div class="displayBox">
  13555. <div
  13556. style="
  13557. color: #556db4;
  13558. font-size: 14px;
  13559. font-weight: bold;
  13560. padding-bottom: 10px;
  13561. "
  13562. >
  13563. 评价
  13564. </div>
  13565. <div class="easy_comment" v-if="false">
  13566. <div
  13567. v-for="(p, pIndex) in PlTextList"
  13568. :key="pIndex"
  13569. @click="fastText(p, 1)"
  13570. >
  13571. {{ p }}
  13572. </div>
  13573. </div>
  13574. </div>
  13575. <div>
  13576. <textarea
  13577. rows="3"
  13578. class="pj"
  13579. style="padding: 10px 5px"
  13580. cols
  13581. v-model="commentText"
  13582. placeholder="请输入评论"
  13583. ></textarea>
  13584. </div>
  13585. </div>
  13586. <div slot="footer">
  13587. <el-button
  13588. @click="
  13589. (commentDialogVisible = false),
  13590. (commentIndexJson = {}),
  13591. videoDetail.sources && videoDetail.sources[0]
  13592. ? (videoDetail.sources[0].src = '')
  13593. : ''
  13594. "
  13595. >取 消</el-button
  13596. >
  13597. <el-button
  13598. type="primary"
  13599. @click="addComment(commentDetail.wid, userid, 2,commentDetail)"
  13600. >确 定</el-button
  13601. >
  13602. </div>
  13603. </el-dialog>
  13604. <el-dialog
  13605. title="查看文档"
  13606. :visible.sync="fullDialogVisible"
  13607. :append-to-body="true"
  13608. width="100%"
  13609. :before-close="handleClose"
  13610. :show-close="false"
  13611. :class="['dialog_diy','full_diy', fulltype == 3 ? 'full_diy2' : '', (splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid)) ? 'dialog_diyCopy' : ''] "
  13612. >
  13613. <div slot="title" class="header-title">
  13614. <div v-if="fulltype == 4" style="color: #fff">AI应用</div>
  13615. <div v-else style="color: #fff">查看文档</div>
  13616. <div
  13617. @click="()=>{fullDialogVisible = false,changeSplitScreenBehavior({code:99})}"
  13618. style="
  13619. cursor: pointer;
  13620. position: absolute;
  13621. top: 20px;
  13622. right: 20px;
  13623. color: #fff;
  13624. "
  13625. >
  13626. 退出全屏
  13627. </div>
  13628. </div>
  13629. <div style="height: 100%;position: relative;">
  13630. <el-button
  13631. v-if="(splitScreenData.isOpen && (splitScreenData.uid != splitScreenData.myUid))"
  13632. size="medium"
  13633. type="primary"
  13634. @click="
  13635. () => {
  13636. (fullDialogVisible = false),
  13637. changeSplitScreenBehavior({ code: 99 });
  13638. }
  13639. "
  13640. style="
  13641. cursor: pointer;
  13642. position: absolute;
  13643. top: 10px;
  13644. right: 20px;
  13645. color: #fff;
  13646. "
  13647. >
  13648. 退出全屏
  13649. </el-button>
  13650. <div
  13651. class="wheel"
  13652. v-if="fulltype == 1"
  13653. style="
  13654. box-shadow: 0 0 6px 1px #f2f2f2;
  13655. height:100%;
  13656. width: 100%;
  13657. background: #f1f1f1;
  13658. "
  13659. >
  13660. <div class="title" style="width: 100%; box-sizing: border-box">
  13661. 查看文档
  13662. </div>
  13663. <el-form class="textBox" style="height: 90%">
  13664. <el-form-item class="textTitle">
  13665. <div style="font-size: 22px">
  13666. {{ fullUrl.name }}
  13667. </div>
  13668. </el-form-item>
  13669. <!-- <div style="color: #918f8f; width: 85%">文档内容</div> -->
  13670. <div
  13671. v-html="fullUrl.url"
  13672. class="textContent"
  13673. style="height: auto"
  13674. ></div>
  13675. </el-form>
  13676. </div>
  13677. <div
  13678. class="wheel"
  13679. v-else-if="
  13680. (fulltype == 2 || fulltype == 4) &&
  13681. fullUrl.indexOf(
  13682. 'https://view.officeapps.live.com/op/view.aspx?src='
  13683. ) != -1
  13684. "
  13685. style="width: 100%;height:100%; margin: 0 auto"
  13686. >
  13687. <iframe
  13688. style="width: 100%; height: 100%; border: none"
  13689. :src="fullUrl"
  13690. ></iframe>
  13691. </div>
  13692. <iframe
  13693. style="width: 100%; height: 100%; border: none"
  13694. allow="camera *; microphone *;display-capture;midi;encrypted-media;"
  13695. v-else-if="(fulltype == 2 || fulltype == 4) && (fullUrl.indexOf('cocorobo.cn')!=-1)"
  13696. :src="fullUrl"
  13697. ></iframe>
  13698. <iframe
  13699. style="width: 100%; height: 100%; border: none"
  13700. security="restricted"
  13701. v-else-if="(fulltype == 2 || fulltype == 4)"
  13702. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13703. :src="fullUrl"
  13704. ></iframe>
  13705. <pdf
  13706. v-else-if="fulltype == 3"
  13707. :pdfUrl="fullUrl"
  13708. style="width: 100%; height: 100%; overflow: auto"
  13709. ></pdf>
  13710. <iframe
  13711. style="width: 100%; height: 100%; border: none"
  13712. security="restricted"
  13713. v-if="(fulltype == 16)"
  13714. sandbox="allow-top-navigation allow-same-origin allow-forms allow-scripts allow-popups"
  13715. :src="fullUrl"
  13716. ></iframe>
  13717. </div>
  13718. <!-- <div slot="footer">
  13719. <el-button @click="fullDialogVisible = false">关 闭</el-button>
  13720. </div> -->
  13721. </el-dialog>
  13722. <el-dialog
  13723. title="个人评价"
  13724. :visible.sync="studentEvalDialogVisible"
  13725. :append-to-body="true"
  13726. width="800px"
  13727. :before-close="handleClose"
  13728. class="dialog_diy"
  13729. >
  13730. <div class="evalCss">
  13731. <div class="nav">请选择星星进行评分</div>
  13732. <div class="middleBox" v-if="eScore.eStar">
  13733. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13734. <div class="nameAndrate">
  13735. <div>{{ e.value }}</div>
  13736. <el-rate
  13737. v-model="eScore.eStar[eIndex]"
  13738. :disabled="isStar"
  13739. ></el-rate>
  13740. </div>
  13741. <div v-if="e.detail">{{ e.detail }}</div>
  13742. </div>
  13743. <div class="easy_comment" v-if="false">
  13744. <div
  13745. v-for="(p, pIndex) in PlTextList"
  13746. :key="pIndex"
  13747. @click="fastText(p, 2)"
  13748. >
  13749. {{ p }}
  13750. </div>
  13751. </div>
  13752. <div class="bz">
  13753. <textarea
  13754. :disabled="isStar"
  13755. rows="4"
  13756. class="pj"
  13757. style="
  13758. padding: 10px 5px;
  13759. width: 70%;
  13760. background: #f7f6f9;
  13761. font-size: 14px;
  13762. text-indent: 10px;
  13763. "
  13764. cols
  13765. v-model="eScore.eBzText"
  13766. placeholder="请输入评价内容..."
  13767. ></textarea>
  13768. </div>
  13769. </div>
  13770. </div>
  13771. <div slot="footer">
  13772. <el-button @click="studentEvalDialogVisible = false">取 消</el-button>
  13773. <el-button type="primary" @click="addBzWorks" v-if="!isStar"
  13774. >确 定</el-button
  13775. >
  13776. </div>
  13777. </el-dialog>
  13778. <el-dialog
  13779. title="个人评价"
  13780. :visible.sync="studentEvalDialogVisibleTeacher"
  13781. :append-to-body="true"
  13782. width="800px"
  13783. :before-close="handleClose"
  13784. class="dialog_diy"
  13785. >
  13786. <div class="w_name">
  13787. 学生姓名:<span>{{ sStudent.student }}</span>
  13788. </div>
  13789. <div class="evalCss">
  13790. <div class="nav">请选择星星进行评分</div>
  13791. <div class="middleBox" v-if="eScore.eStar">
  13792. <div class="pfBox" v-for="(e, eIndex) in rateJson" :key="eIndex">
  13793. <div class="nameAndrate">
  13794. <div>{{ e.value }}</div>
  13795. <el-rate
  13796. v-model="eScore.eStar[eIndex]"
  13797. :disabled="isStar"
  13798. ></el-rate>
  13799. </div>
  13800. <div v-if="e.detail">{{ e.detail }}</div>
  13801. </div>
  13802. <div class="easy_comment" v-if="false">
  13803. <div
  13804. v-for="(p, pIndex) in PlTextList"
  13805. :key="pIndex"
  13806. @click="fastText(p, 2)"
  13807. >
  13808. {{ p }}
  13809. </div>
  13810. </div>
  13811. <div class="bz">
  13812. <textarea
  13813. :disabled="isStar"
  13814. rows="4"
  13815. class="pj"
  13816. style="
  13817. padding: 10px 5px;
  13818. width: 70%;
  13819. background: #f7f6f9;
  13820. font-size: 14px;
  13821. text-indent: 10px;
  13822. "
  13823. cols
  13824. v-model="eScore.eBzText"
  13825. placeholder="请输入评价内容..."
  13826. ></textarea>
  13827. </div>
  13828. </div>
  13829. </div>
  13830. <div slot="footer">
  13831. <el-button @click="studentEvalDialogVisibleTeacher = false"
  13832. >取 消</el-button
  13833. >
  13834. <el-button type="primary" @click="addBzWorksTeacher" v-if="!isStar"
  13835. >确 定</el-button
  13836. >
  13837. </div>
  13838. </el-dialog>
  13839. <el-dialog
  13840. title="选择匹配"
  13841. :visible.sync="dialogVisibleSelect"
  13842. :append-to-body="true"
  13843. width="90%"
  13844. :before-close="handleClose"
  13845. class="dialog_diy dialog_diy3"
  13846. >
  13847. <div v-if="selectJson">
  13848. <div class="select_box2">
  13849. <div class="select_box2_title">
  13850. <div>选择匹配</div>
  13851. <div>请选择对应的答案进行答题!</div>
  13852. </div>
  13853. <div class="select_box2_box">
  13854. <div class="select_box2_img">
  13855. <img
  13856. :src="selectJson.url"
  13857. @click="previewImg(selectJson.url)"
  13858. alt=""
  13859. />
  13860. </div>
  13861. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13862. <div style="padding-top: 15px">
  13863. <div class="select_answer_title" v-if="isSelect">
  13864. {{ selectAnswer.stu }}
  13865. </div>
  13866. <div class="select_answer_title" v-else>
  13867. 根据题目选择对应答案
  13868. </div>
  13869. <div
  13870. class="select_box2_answer_box"
  13871. v-for="(item2, checkIndex) in selectJson.select"
  13872. :key="checkIndex"
  13873. >
  13874. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13875. <el-select
  13876. :disabled="isSelect"
  13877. v-model="selectAnswer.answer[checkIndex]"
  13878. placeholder="请选择正确答案"
  13879. >
  13880. <el-option
  13881. v-for="(e, eIndex) in selectJson.select"
  13882. :key="eIndex"
  13883. :label="e"
  13884. :value="eIndex"
  13885. >
  13886. </el-option>
  13887. </el-select>
  13888. </div>
  13889. </div>
  13890. <div
  13891. class="rightAnswerCss"
  13892. v-if="isSelect && (tType == 1 || tType == 4)"
  13893. >
  13894. <div
  13895. v-for="(a, aIndex) in selectJson.answer"
  13896. :key="aIndex"
  13897. class="rightAnswer"
  13898. >
  13899. <div
  13900. v-if="selectAnswer.answer[aIndex] === a"
  13901. style="color: #767de1"
  13902. >
  13903. 回答正确
  13904. </div>
  13905. <div v-else>回答错误</div>
  13906. <div
  13907. style="margin-left: 10px"
  13908. v-if="selectAnswer.answer[aIndex] !== a"
  13909. >
  13910. 正确答案:
  13911. </div>
  13912. <div
  13913. :class="
  13914. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  13915. "
  13916. >
  13917. {{ selectJson.select[a] }}
  13918. </div>
  13919. </div>
  13920. </div>
  13921. </div>
  13922. <div class="upAnswerCss">
  13923. <el-button
  13924. type="primary"
  13925. @click="addSelectAnswer"
  13926. v-if="!isSelect"
  13927. >提交答案</el-button
  13928. >
  13929. </div>
  13930. </div>
  13931. </div>
  13932. </div>
  13933. </el-dialog>
  13934. <el-dialog
  13935. title="选择匹配"
  13936. :visible.sync="dialogVisibleSelectTeacher"
  13937. :append-to-body="true"
  13938. width="90%"
  13939. :before-close="handleClose"
  13940. class="dialog_diy dialog_diy3"
  13941. >
  13942. <div v-if="selectJson">
  13943. <div class="w_name">
  13944. 学生姓名:<span>{{ sStudent.student }}</span>
  13945. </div>
  13946. <div class="select_box2">
  13947. <div class="select_box2_title">
  13948. <div>选择匹配</div>
  13949. <div>请选择对应的答案进行答题!</div>
  13950. </div>
  13951. <div class="select_box2_box">
  13952. <div class="select_box2_img">
  13953. <img
  13954. :src="selectJson.url"
  13955. @click="previewImg(selectJson.url)"
  13956. alt=""
  13957. />
  13958. </div>
  13959. <div :class="isSelect ? 'rightWidthCss' : 'select_box2_answer'">
  13960. <div style="padding-top: 15px">
  13961. <div class="select_answer_title" v-if="isSelect">
  13962. {{ selectAnswer.stu }}
  13963. </div>
  13964. <div class="select_answer_title" v-else>
  13965. 根据题目选择对应答案
  13966. </div>
  13967. <div
  13968. class="select_box2_answer_box"
  13969. v-for="(item2, checkIndex) in selectJson.select"
  13970. :key="checkIndex"
  13971. >
  13972. <span style="min-width: 30px">{{ checkIndex + 1 }}、</span>
  13973. <el-select
  13974. :disabled="isSelect"
  13975. v-model="selectAnswer.answer[checkIndex]"
  13976. placeholder="请选择正确答案"
  13977. >
  13978. <el-option
  13979. v-for="(e, eIndex) in selectJson.select"
  13980. :key="eIndex"
  13981. :label="e"
  13982. :value="eIndex"
  13983. >
  13984. </el-option>
  13985. </el-select>
  13986. </div>
  13987. </div>
  13988. <div
  13989. class="rightAnswerCss"
  13990. v-if="isSelect && (tType == 1 || tType == 4)"
  13991. >
  13992. <div
  13993. v-for="(a, aIndex) in selectJson.answer"
  13994. :key="aIndex"
  13995. class="rightAnswer"
  13996. >
  13997. <div
  13998. v-if="selectAnswer.answer[aIndex] === a"
  13999. style="color: #767de1"
  14000. >
  14001. 回答正确
  14002. </div>
  14003. <div v-else>回答错误</div>
  14004. <div
  14005. style="margin-left: 10px"
  14006. v-if="selectAnswer.answer[aIndex] !== a"
  14007. >
  14008. 正确答案:
  14009. </div>
  14010. <div
  14011. :class="
  14012. selectAnswer.answer[aIndex] === a ? 'blueCss' : 'redCss'
  14013. "
  14014. >
  14015. {{ selectJson.select[a] }}
  14016. </div>
  14017. </div>
  14018. </div>
  14019. </div>
  14020. <div class="upAnswerCss">
  14021. <el-button
  14022. type="primary"
  14023. @click="addSelectAnswerTeacher"
  14024. v-if="!isSelect"
  14025. >提交答案</el-button
  14026. >
  14027. </div>
  14028. </div>
  14029. </div>
  14030. </div>
  14031. </el-dialog>
  14032. <el-dialog
  14033. title="教师评分"
  14034. :visible.sync="dialogVisibleScore"
  14035. :append-to-body="true"
  14036. width="800px"
  14037. :before-close="handleClose"
  14038. class="dialog_diy"
  14039. >
  14040. <div>
  14041. <div class="studentDetail">
  14042. <div class="tx"><img src="../../assets/avatar.png" alt="" /></div>
  14043. <div class="nameAndTime">
  14044. <div style="margin-bottom: 5px">{{ commentDetail.sName }}</div>
  14045. <div>{{ commentDetail.time }}</div>
  14046. </div>
  14047. </div>
  14048. <div
  14049. class="worksAnswer"
  14050. v-if="commentDetail.works && commentDetail.type == 2"
  14051. >
  14052. {{ JSON.parse(commentDetail.works)[0].answer }}
  14053. </div>
  14054. <div
  14055. class="worksAnswer"
  14056. v-if="commentDetail.works && commentDetail.type == 1"
  14057. >
  14058. <pdf
  14059. v-if="showPDF"
  14060. :pdfUrl="pptImgUrl"
  14061. style="width: 100%; height: 520px; overflow: auto"
  14062. :class="{ fullStyle: full }"
  14063. ></pdf>
  14064. <iframe
  14065. v-else
  14066. :src="pptImgUrl"
  14067. frameborder="0"
  14068. width="100%"
  14069. height="600"
  14070. :class="{ fullStyle: full }"
  14071. ></iframe>
  14072. </div>
  14073. <div
  14074. class="worksAnswer"
  14075. v-if="commentDetail.works && commentDetail.type == 0"
  14076. >
  14077. <img
  14078. :src="commentDetail.works"
  14079. alt=""
  14080. @click="previewImg(commentDetail.works)"
  14081. />
  14082. </div>
  14083. <div
  14084. class="worksAnswer"
  14085. v-if="commentDetail.works && commentDetail.type == 3"
  14086. >
  14087. <video-player
  14088. class="video-player vjs-custom-skin"
  14089. :playsinline="true"
  14090. :options="videoDetail"
  14091. @play="onPlayerPlay($event)"
  14092. style="width: 90%; height: 100%; margin: 0 0 0 30px"
  14093. ></video-player>
  14094. </div>
  14095. <div
  14096. class="worksAnswer codeFileBox"
  14097. v-if="commentDetail.works && commentDetail.type == 12"
  14098. @click="downloadFile(commentDetail.works)"
  14099. >
  14100. <img src="../../assets/icon/codeFile.png" />
  14101. <div>点击下载文件</div>
  14102. </div>
  14103. <div
  14104. class="worksAnswer codeFileBox"
  14105. v-if="commentDetail.works && commentDetail.type == 15"
  14106. @click="
  14107. openCocoPi(
  14108. 57,
  14109. commentIndexJson.toolIndex,
  14110. commentDetail.userid,
  14111. commentDetail.sName
  14112. )
  14113. "
  14114. >
  14115. <img src="../../assets/icon/codeFile.png" />
  14116. <div>点击打开CocoPi</div>
  14117. </div>
  14118. <div
  14119. class="worksAnswer"
  14120. v-if="commentDetail.works && commentDetail.type == 13"
  14121. >
  14122. <div v-html="JSON.parse(commentDetail.works).text"></div>
  14123. </div>
  14124. <div class="scoreBox">
  14125. <span class="t">请输入分数</span>
  14126. <el-input-number
  14127. :disabled="courseDetail.userid != userid"
  14128. v-model="wScore"
  14129. :controls="false"
  14130. :min="0"
  14131. :max="100"
  14132. ></el-input-number>
  14133. </div>
  14134. <div class="scoreDetailBox">
  14135. <span class="t">评分评论</span>
  14136. <el-input
  14137. type="textarea"
  14138. :rows="5"
  14139. :disabled="courseDetail.userid != userid"
  14140. resize="none"
  14141. v-model="scoreDetail"
  14142. placeholder="请输入对学生的评价"
  14143. >
  14144. </el-input>
  14145. </div>
  14146. </div>
  14147. <span slot="footer" class="dialog-footer">
  14148. <el-button
  14149. @click="
  14150. (dialogVisibleScore = false),
  14151. (commentIndexJson = {}),
  14152. videoDetail.sources && videoDetail.sources[0]
  14153. ? (videoDetail.sources[0].src = '')
  14154. : ''
  14155. "
  14156. >取 消</el-button
  14157. >
  14158. <el-button
  14159. type="primary"
  14160. v-if="courseDetail.userid == userid"
  14161. @click="scoreWork(commentDetail.wid,commentDetail.sName)"
  14162. >确 定
  14163. </el-button>
  14164. </span>
  14165. </el-dialog>
  14166. <el-dialog
  14167. title="排序"
  14168. :visible.sync="dialogVisibleSentence"
  14169. :append-to-body="true"
  14170. width="1000px"
  14171. :before-close="handleClose"
  14172. class="dialog_diy dialog_diy3"
  14173. >
  14174. <div>
  14175. <div class="sentenBox">
  14176. <div
  14177. v-for="(st, stIndex) in sentenceList"
  14178. :key="stIndex"
  14179. style="padding-bottom: 20px"
  14180. >
  14181. <div
  14182. style="padding: 15px 0 10px 20px"
  14183. class="sentenceTitle"
  14184. :index="stIndex + 1"
  14185. >
  14186. 题目{{ stIndex + 1 }}:请选择正确顺序
  14187. </div>
  14188. <div class="cardList" v-if="st.chooseSenList">
  14189. <div class="cardBox">
  14190. <div
  14191. v-for="(r, rIndex) in st.chooseSenList"
  14192. :key="rIndex"
  14193. @click="returnCard(r, stIndex, rIndex)"
  14194. >
  14195. <el-tooltip
  14196. class="item"
  14197. effect="light"
  14198. :content="r"
  14199. placement="top"
  14200. v-if="r != '' && r != undefined"
  14201. >
  14202. <div
  14203. :class="{
  14204. isCard: r,
  14205. isChooseCard: r == '' || r == undefined,
  14206. }"
  14207. >
  14208. <div>{{ r }}</div>
  14209. </div>
  14210. </el-tooltip>
  14211. <div
  14212. :class="{
  14213. isCard: r,
  14214. isChooseCard: r == '' || r == undefined,
  14215. }"
  14216. v-else
  14217. >
  14218. <div>{{ r }}</div>
  14219. </div>
  14220. </div>
  14221. </div>
  14222. </div>
  14223. <div class="cardList" v-if="st.addChangeSen">
  14224. <div class="cardBox">
  14225. <div
  14226. v-for="(s, sIndex) in st.addChangeSen"
  14227. :key="sIndex"
  14228. @click="setRightAnswer(s, stIndex, sIndex)"
  14229. >
  14230. <el-tooltip
  14231. class="item"
  14232. effect="light"
  14233. :content="s"
  14234. placement="top"
  14235. v-if="s != '' && s != undefined"
  14236. >
  14237. <div
  14238. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14239. >
  14240. <div>{{ s }}</div>
  14241. </div>
  14242. </el-tooltip>
  14243. <div
  14244. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14245. v-else
  14246. >
  14247. <div>{{ s }}</div>
  14248. </div>
  14249. </div>
  14250. </div>
  14251. </div>
  14252. </div>
  14253. </div>
  14254. </div>
  14255. <span slot="footer" class="dialog-footer">
  14256. <el-button @click="dialogVisibleSentence = false">取 消</el-button>
  14257. <el-button type="primary" @click="addSenWorks">确 定</el-button>
  14258. </span>
  14259. </el-dialog>
  14260. <el-dialog
  14261. title="排序"
  14262. :visible.sync="dialogVisibleSentenceTeacher"
  14263. :append-to-body="true"
  14264. width="1000px"
  14265. :before-close="handleClose"
  14266. class="dialog_diy dialog_diy3"
  14267. >
  14268. <div>
  14269. <div class="w_name">
  14270. 学生姓名:<span>{{ sStudent.student }}</span>
  14271. </div>
  14272. <div class="sentenBox">
  14273. <div
  14274. v-for="(st, stIndex) in sentenceList"
  14275. :key="stIndex"
  14276. style="padding-bottom: 20px"
  14277. >
  14278. <div
  14279. style="padding: 15px 0 10px 20px"
  14280. class="sentenceTitle"
  14281. :index="stIndex + 1"
  14282. >
  14283. 题目{{ stIndex + 1 }}:请选择正确顺序
  14284. </div>
  14285. <div class="cardList" v-if="st.chooseSenList">
  14286. <div class="cardBox">
  14287. <div
  14288. v-for="(r, rIndex) in st.chooseSenList"
  14289. :key="rIndex"
  14290. @click="returnCard(r, stIndex, rIndex)"
  14291. >
  14292. <el-tooltip
  14293. class="item"
  14294. effect="light"
  14295. :content="r"
  14296. placement="top"
  14297. v-if="r != '' && r != undefined"
  14298. >
  14299. <div
  14300. :class="{
  14301. isCard: r,
  14302. isChooseCard: r == '' || r == undefined,
  14303. }"
  14304. >
  14305. <div>{{ r }}</div>
  14306. </div>
  14307. </el-tooltip>
  14308. <div
  14309. :class="{
  14310. isCard: r,
  14311. isChooseCard: r == '' || r == undefined,
  14312. }"
  14313. v-else
  14314. >
  14315. <div>{{ r }}</div>
  14316. </div>
  14317. </div>
  14318. </div>
  14319. </div>
  14320. <div class="cardList" v-if="st.addChangeSen">
  14321. <div class="cardBox">
  14322. <div
  14323. v-for="(s, sIndex) in st.addChangeSen"
  14324. :key="sIndex"
  14325. @click="setRightAnswer(s, stIndex, sIndex)"
  14326. >
  14327. <el-tooltip
  14328. class="item"
  14329. effect="light"
  14330. :content="s"
  14331. placement="top"
  14332. v-if="s != '' && s != undefined"
  14333. >
  14334. <div
  14335. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14336. >
  14337. <div>{{ s }}</div>
  14338. </div>
  14339. </el-tooltip>
  14340. <div
  14341. :class="{ noCard: s == '' || s == undefined, isCard: s }"
  14342. v-else
  14343. >
  14344. <div>{{ s }}</div>
  14345. </div>
  14346. </div>
  14347. </div>
  14348. </div>
  14349. </div>
  14350. </div>
  14351. </div>
  14352. <span slot="footer" class="dialog-footer">
  14353. <el-button @click="dialogVisibleSentenceTeacher = false"
  14354. >取 消</el-button
  14355. >
  14356. <el-button type="primary" @click="addSenWorksTeacher">确 定</el-button>
  14357. </span>
  14358. </el-dialog>
  14359. <el-dialog
  14360. title="排序"
  14361. :visible.sync="dialogVisibleSentence1"
  14362. :append-to-body="true"
  14363. width="1000px"
  14364. :before-close="handleClose"
  14365. class="dialog_diy dialog_diy3"
  14366. >
  14367. <div>
  14368. <div class="sentenBox">
  14369. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14370. {{ sentenceList1.stuName }}的作业
  14371. </div>
  14372. <div
  14373. v-for="(st, stIndex) in sentenceList1"
  14374. :key="stIndex"
  14375. style="padding-bottom: 20px"
  14376. >
  14377. <div style="padding: 15px 0 10px 20px; font-size: 20px">
  14378. 第{{ stIndex + 1 }}题
  14379. </div>
  14380. <div class="isWrong">
  14381. <div class="cardList1" v-if="st.chooseSenList">
  14382. <div class="cardBox">
  14383. <div v-for="(s, sIndex) in st.chooseSenList" :key="sIndex">
  14384. <el-tooltip
  14385. class="item"
  14386. effect="light"
  14387. :content="s"
  14388. placement="top"
  14389. >
  14390. <div class="isCard">
  14391. <div>{{ s }}</div>
  14392. </div>
  14393. </el-tooltip>
  14394. </div>
  14395. </div>
  14396. <div class="cardAnswerBox">
  14397. 组成句子:{{ st.chooseSenList.join(" ") }}
  14398. </div>
  14399. </div>
  14400. <div v-if="tType == 2" class="isTj">
  14401. <div class="isTjImg">
  14402. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14403. </div>
  14404. <div>已提交</div>
  14405. </div>
  14406. <div
  14407. class="answerRight isTj"
  14408. v-if="
  14409. st.chooseSenList.toString() == st.rightAnswer.toString() &&
  14410. (tType == 1 || tType == 4)
  14411. "
  14412. >
  14413. <div class="isTjImg">
  14414. <img src="../../assets/icon/conSentences/right.png" alt="" />
  14415. </div>
  14416. <div>回答正确</div>
  14417. </div>
  14418. <div
  14419. class="answerRight isTj"
  14420. v-if="
  14421. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14422. (tType == 1 || tType == 4)
  14423. "
  14424. >
  14425. <div class="isTjImg">
  14426. <img src="../../assets/icon/conSentences/wrong.png" alt="" />
  14427. </div>
  14428. <div>回答错误</div>
  14429. </div>
  14430. </div>
  14431. <div
  14432. v-if="
  14433. st.chooseSenList.toString() != st.rightAnswer.toString() &&
  14434. (tType == 1 || tType == 4)
  14435. "
  14436. >
  14437. <div style="padding: 15px 0 10px 20px">正确答案如下:</div>
  14438. <div
  14439. class="cardList"
  14440. v-if="st.rightAnswer"
  14441. style="border: none; padding: 10px 0 10px 10px; margin: 0"
  14442. >
  14443. <div class="cardBox">
  14444. <div v-for="(r, rIndex) in st.rightAnswer" :key="rIndex">
  14445. <el-tooltip
  14446. class="item"
  14447. effect="light"
  14448. :content="r"
  14449. placement="top"
  14450. >
  14451. <div class="isCard1">
  14452. <div>{{ r }}</div>
  14453. </div>
  14454. </el-tooltip>
  14455. </div>
  14456. </div>
  14457. <div class="cardAnswerBox">
  14458. 组成句子:{{ st.rightAnswer.join(" ") }}
  14459. </div>
  14460. </div>
  14461. </div>
  14462. </div>
  14463. </div>
  14464. </div>
  14465. <span slot="footer" class="dialog-footer">
  14466. <el-button @click="dialogVisibleSentence1 = false">取 消</el-button>
  14467. <el-button type="primary" @click="dialogVisibleSentence1 = false"
  14468. >确 定</el-button
  14469. >
  14470. </span>
  14471. </el-dialog>
  14472. <el-dialog
  14473. title="教师提交作业"
  14474. :visible.sync="dialogVisibleWorks"
  14475. :append-to-body="true"
  14476. width="500px"
  14477. :before-close="handleClose"
  14478. class="dialog_change"
  14479. >
  14480. <div class="marginT">
  14481. <div class="w_name">
  14482. 学生姓名:<span>{{ sStudent.student }}</span>
  14483. </div>
  14484. <div>上传文件</div>
  14485. <div style="display: flex; gap: 10px">
  14486. <div
  14487. class="chapter_add"
  14488. @click="addImg($event)"
  14489. v-if="studyJuri[0].cover.length == 0"
  14490. >
  14491. <div class="up_photo">
  14492. <img src="../../assets/icon/uploadImg.png" alt />
  14493. </div>
  14494. <!-- <input
  14495. type="file"
  14496. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  14497. style="display: none"
  14498. @change="beforeUpload1($event, 1)"
  14499. /> -->
  14500. <input
  14501. type="file"
  14502. accept="*"
  14503. style="display: none"
  14504. @change="beforeUpload1($event, 1)"
  14505. />
  14506. <!-- <input
  14507. type="file"
  14508. accept="image/*"
  14509. capture="camera"
  14510. style="display: none"
  14511. @change="beforeUpload1($event, 1)"
  14512. /> -->
  14513. </div>
  14514. <div
  14515. class="chapter_add"
  14516. @click="addImg($event)"
  14517. v-if="studyJuri[0].cover.length == 0"
  14518. >
  14519. <div class="up_photo" style="background: rgb(232, 239, 248);width: 120px;height: 120px;display: flex;align-items: center;justify-content: center;">
  14520. <img src="../../assets/icon/uploadImg2.png" style="width: 110px; height: 110px" alt />
  14521. </div>
  14522. <input
  14523. type="file"
  14524. accept="image/*"
  14525. capture="camera"
  14526. style="display: none"
  14527. @change="beforeUpload1($event, 1)"
  14528. />
  14529. </div>
  14530. </div>
  14531. <!-- capture="camera" -->
  14532. <div
  14533. class="chapter_add"
  14534. style="
  14535. display: flex;
  14536. width: 100%;
  14537. flex-direction: row;
  14538. flex-wrap: wrap;
  14539. justify-content: flex-start;
  14540. padding: 15px 0;
  14541. "
  14542. v-if="studyJuri[0].cover.length > 0"
  14543. >
  14544. <div class="upCover">
  14545. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  14546. <img :src="word" alt v-else-if="fileType == 1" />
  14547. <img :src="video" alt v-else-if="fileType == 2" />
  14548. <img :src="word2" alt v-else-if="fileType == 3" />
  14549. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  14550. <div class="deleteWord" @click="clean(1)">
  14551. <img src="../../assets/icon/deleteWorks.png" alt />
  14552. </div>
  14553. </div>
  14554. </div>
  14555. </div>
  14556. <div
  14557. class="upload_send"
  14558. @click="addCourseWorksTeacher(taskCount)"
  14559. v-if="!proVisible"
  14560. >
  14561. 提交
  14562. </div>
  14563. </el-dialog>
  14564. <ImgDraw
  14565. :drawShow="drawShow"
  14566. @closeDraw="closeDraw"
  14567. @addImgDraw="addImgDraw"
  14568. :bg="bg"
  14569. ></ImgDraw>
  14570. <el-dialog
  14571. title="表格"
  14572. :visible.sync="dialogVisibleTable"
  14573. :append-to-body="true"
  14574. width="95%"
  14575. :before-close="handleClose"
  14576. class="dialog_diy"
  14577. >
  14578. <el-form>
  14579. <div
  14580. style="
  14581. display: flex;
  14582. align-items: center;
  14583. justify-content: space-between;
  14584. "
  14585. >
  14586. <span>表格内容</span>
  14587. <el-button type="primary" size="small" @click="returnTableText"
  14588. >还原模板</el-button
  14589. >
  14590. </div>
  14591. <Table
  14592. v-model="tableJson.text"
  14593. @change="change"
  14594. v-if="dialogVisibleTable"
  14595. ></Table>
  14596. </el-form>
  14597. <span slot="footer" class="dialog-footer">
  14598. <el-button @click="dialogVisibleTable = false">取 消</el-button>
  14599. <el-button type="primary" @click="addTableWorks">确定</el-button>
  14600. </span>
  14601. </el-dialog>
  14602. <el-dialog
  14603. title="表格"
  14604. :visible.sync="dialogVisibleTableTeacher"
  14605. :append-to-body="true"
  14606. width="95%"
  14607. :before-close="handleClose"
  14608. class="dialog_diy"
  14609. >
  14610. <el-form>
  14611. <div class="w_name">
  14612. 学生姓名:<span>{{ sStudent.student }}</span>
  14613. </div>
  14614. <div>表格内容</div>
  14615. <Table
  14616. v-model="tableJson.text"
  14617. @change="change"
  14618. v-if="dialogVisibleTableTeacher"
  14619. ></Table>
  14620. </el-form>
  14621. <span slot="footer" class="dialog-footer">
  14622. <el-button @click="dialogVisibleTableTeacher = false">取 消</el-button>
  14623. <el-button type="primary" @click="addTableWorksTeacher">确定</el-button>
  14624. </span>
  14625. </el-dialog>
  14626. <el-dialog
  14627. title="文档"
  14628. :visible.sync="dialogVisibleWord"
  14629. :append-to-body="true"
  14630. width="95%"
  14631. :before-close="handleClose"
  14632. class="dialog_diy"
  14633. >
  14634. <el-form>
  14635. <div
  14636. style="
  14637. display: flex;
  14638. align-items: center;
  14639. justify-content: space-between;
  14640. "
  14641. >
  14642. <span>文档内容</span>
  14643. <el-button type="primary" size="small" @click="returnWordText"
  14644. >还原模板</el-button
  14645. >
  14646. </div>
  14647. <editor-bar
  14648. v-model="wordJson.text"
  14649. v-if="dialogVisibleWord"
  14650. ></editor-bar>
  14651. </el-form>
  14652. <span slot="footer" class="dialog-footer">
  14653. <el-button @click="dialogVisibleWord = false">取 消</el-button>
  14654. <el-button type="primary" @click="addWordWorks">确定</el-button>
  14655. </span>
  14656. </el-dialog>
  14657. <el-dialog
  14658. title="文档"
  14659. :visible.sync="dialogVisibleWordTeacher"
  14660. :append-to-body="true"
  14661. width="95%"
  14662. :before-close="handleClose"
  14663. class="dialog_diy"
  14664. >
  14665. <el-form>
  14666. <div class="w_name">
  14667. 学生姓名:<span>{{ sStudent.student }}</span>
  14668. </div>
  14669. <div>文档内容</div>
  14670. <editor-bar
  14671. v-model="wordJson.text"
  14672. v-if="dialogVisibleWordTeacher"
  14673. ></editor-bar>
  14674. </el-form>
  14675. <span slot="footer" class="dialog-footer">
  14676. <el-button @click="dialogVisibleWordTeacher = false">取 消</el-button>
  14677. <el-button type="primary" @click="addWordWorksTeacher">确定</el-button>
  14678. </span>
  14679. </el-dialog>
  14680. <el-dialog
  14681. title="表格"
  14682. :visible.sync="dialogVisibleTable2"
  14683. :append-to-body="true"
  14684. width="95%"
  14685. :before-close="handleClose"
  14686. class="dialog_diy"
  14687. >
  14688. <el-form>
  14689. <div class="cont" v-html="tableJson.text"></div>
  14690. </el-form>
  14691. <span slot="footer" class="dialog-footer">
  14692. <el-button @click="dialogVisibleTable2 = false">关 闭</el-button>
  14693. </span>
  14694. </el-dialog>
  14695. <el-dialog
  14696. title="文档"
  14697. :visible.sync="dialogVisibleTable3"
  14698. :append-to-body="true"
  14699. width="95%"
  14700. :before-close="handleClose"
  14701. class="dialog_diy"
  14702. >
  14703. <el-form>
  14704. <div class="cont" v-html="tableJson.text"></div>
  14705. </el-form>
  14706. <span slot="footer" class="dialog-footer">
  14707. <el-button @click="dialogVisibleTable3 = false">关 闭</el-button>
  14708. </span>
  14709. </el-dialog>
  14710. <el-dialog
  14711. title="分组设置"
  14712. :visible.sync="dialogVisibleGroup"
  14713. :append-to-body="true"
  14714. width="95%"
  14715. :before-close="handleClose"
  14716. class="dialog_diy"
  14717. >
  14718. <div v-if="dialogVisibleGroup">
  14719. <div v-if="courseDetail.userid == userid" class="g_d_btnBox">
  14720. <div style="color: rgb(171 171 171); margin: 0 10px 0 0">
  14721. 提示:开启【开放选座】,学生能够自由加入和退出小组。
  14722. </div>
  14723. <!-- <div type="primary" v-if="groupJson.islock == 1" class="returnBtn" style="background-color: #225bc7"
  14724. @click="lockChair">
  14725. 锁定位置
  14726. </div>
  14727. <div type="primary" v-else class="returnBtn" style="background-color: #225bc7" @click="lockChair">
  14728. 解锁位置
  14729. </div> -->
  14730. <div class="group_switch">
  14731. <span>开放选座</span>
  14732. <el-switch
  14733. v-model="islock"
  14734. active-text=""
  14735. class="switchCss"
  14736. @change="lockChair"
  14737. ></el-switch>
  14738. </div>
  14739. <div
  14740. type="primary"
  14741. @click="updateGroup"
  14742. class="returnBtn"
  14743. style="background-color: #225bc7"
  14744. >
  14745. 分组设置
  14746. </div>
  14747. </div>
  14748. <div>
  14749. <div
  14750. class="g_d_box"
  14751. v-if="groupJson.group && groupStudent[toolindex]"
  14752. >
  14753. <div
  14754. class="g_d_group"
  14755. v-for="(g, gindex) in groupJson.group"
  14756. :key="gindex"
  14757. >
  14758. <div class="g_d_group_chair">
  14759. <div v-if="groupJson.number > 1">
  14760. <span
  14761. :class="{
  14762. isChair:
  14763. groupStudent[toolindex][gindex] &&
  14764. groupStudent[toolindex][gindex][0],
  14765. updateChair:
  14766. courseDetail.userid == userid &&
  14767. groupStudent[toolindex][gindex] &&
  14768. groupStudent[toolindex][gindex][0] &&
  14769. groupJson.islock == 2,
  14770. }"
  14771. ><span
  14772. class="updateChairBtn"
  14773. @click="
  14774. updateGroupChair(
  14775. groupStudent[toolindex][gindex] &&
  14776. groupStudent[toolindex][gindex][0]
  14777. )
  14778. "
  14779. >修改</span
  14780. ></span
  14781. ><span>{{
  14782. groupStudent[toolindex][gindex] &&
  14783. groupStudent[toolindex][gindex][0]
  14784. ? groupStudent[toolindex][gindex] &&
  14785. groupStudent[toolindex][gindex][0].name
  14786. : "空位置"
  14787. }}</span>
  14788. </div>
  14789. <div v-if="groupJson.number > 4">
  14790. <span
  14791. :class="{
  14792. isChair:
  14793. groupStudent[toolindex][gindex] &&
  14794. groupStudent[toolindex][gindex][4],
  14795. updateChair:
  14796. courseDetail.userid == userid &&
  14797. groupStudent[toolindex][gindex] &&
  14798. groupStudent[toolindex][gindex][4] &&
  14799. groupJson.islock == 2,
  14800. }"
  14801. ><span
  14802. class="updateChairBtn"
  14803. @click="
  14804. updateGroupChair(
  14805. groupStudent[toolindex][gindex] &&
  14806. groupStudent[toolindex][gindex][4]
  14807. )
  14808. "
  14809. >修改</span
  14810. ></span
  14811. ><span>{{
  14812. groupStudent[toolindex][gindex] &&
  14813. groupStudent[toolindex][gindex][4]
  14814. ? groupStudent[toolindex][gindex] &&
  14815. groupStudent[toolindex][gindex][4].name
  14816. : "空位置"
  14817. }}</span>
  14818. </div>
  14819. <div v-if="groupJson.number > 8">
  14820. <span
  14821. :class="{
  14822. isChair:
  14823. groupStudent[toolindex][gindex] &&
  14824. groupStudent[toolindex][gindex][8],
  14825. updateChair:
  14826. courseDetail.userid == userid &&
  14827. groupStudent[toolindex][gindex] &&
  14828. groupStudent[toolindex][gindex][8] &&
  14829. groupJson.islock == 2,
  14830. }"
  14831. ><span
  14832. class="updateChairBtn"
  14833. @click="
  14834. updateGroupChair(
  14835. groupStudent[toolindex][gindex] &&
  14836. groupStudent[toolindex][gindex][8]
  14837. )
  14838. "
  14839. >修改</span
  14840. ></span
  14841. ><span>{{
  14842. groupStudent[toolindex][gindex] &&
  14843. groupStudent[toolindex][gindex][8]
  14844. ? groupStudent[toolindex][gindex] &&
  14845. groupStudent[toolindex][gindex][8].name
  14846. : "空位置"
  14847. }}</span>
  14848. </div>
  14849. </div>
  14850. <div class="g_d_group_tableBox">
  14851. <div class="g_d_group_chair2">
  14852. <div v-if="groupJson.number > 2">
  14853. <span
  14854. :class="{
  14855. isChair:
  14856. groupStudent[toolindex][gindex] &&
  14857. groupStudent[toolindex][gindex][2],
  14858. updateChair:
  14859. courseDetail.userid == userid &&
  14860. groupStudent[toolindex][gindex] &&
  14861. groupStudent[toolindex][gindex][2] &&
  14862. groupJson.islock == 2,
  14863. }"
  14864. ><span
  14865. class="updateChairBtn"
  14866. @click="
  14867. updateGroupChair(
  14868. groupStudent[toolindex][gindex] &&
  14869. groupStudent[toolindex][gindex][2]
  14870. )
  14871. "
  14872. >修改</span
  14873. ></span
  14874. ><span>{{
  14875. groupStudent[toolindex][gindex] &&
  14876. groupStudent[toolindex][gindex][2]
  14877. ? groupStudent[toolindex][gindex] &&
  14878. groupStudent[toolindex][gindex][2].name
  14879. : "空位置"
  14880. }}</span>
  14881. </div>
  14882. <div v-if="groupJson.number > 6">
  14883. <span
  14884. :class="{
  14885. isChair:
  14886. groupStudent[toolindex][gindex] &&
  14887. groupStudent[toolindex][gindex][6],
  14888. updateChair:
  14889. courseDetail.userid == userid &&
  14890. groupStudent[toolindex][gindex] &&
  14891. groupStudent[toolindex][gindex][6] &&
  14892. groupJson.islock == 2,
  14893. }"
  14894. ><span
  14895. class="updateChairBtn"
  14896. @click="
  14897. updateGroupChair(
  14898. groupStudent[toolindex][gindex] &&
  14899. groupStudent[toolindex][gindex][6]
  14900. )
  14901. "
  14902. >修改</span
  14903. ></span
  14904. ><span>{{
  14905. groupStudent[toolindex][gindex] &&
  14906. groupStudent[toolindex][gindex][6]
  14907. ? groupStudent[toolindex][gindex] &&
  14908. groupStudent[toolindex][gindex][6].name
  14909. : "空位置"
  14910. }}</span>
  14911. </div>
  14912. </div>
  14913. <div class="g_d_group_table">
  14914. <div>
  14915. {{ g.name }}
  14916. </div>
  14917. <div>
  14918. <div
  14919. v-if="
  14920. courseDetail.userid == userid && groupJson.islock == 2
  14921. "
  14922. @click="deleteGroupChair(gindex)"
  14923. >
  14924. 移除组员
  14925. </div>
  14926. <div
  14927. @click="selectGroup(gindex)"
  14928. v-else-if="
  14929. groupStudentUid[toolindex] &&
  14930. groupStudentUid[toolindex][gindex].indexOf(userid) == -1
  14931. "
  14932. >
  14933. 加入分组
  14934. </div>
  14935. <div
  14936. @click="
  14937. exitGroup(
  14938. groupStudent[toolindex][gindex] &&
  14939. groupStudent[toolindex][gindex][
  14940. groupStudentUid[toolindex][gindex].indexOf(userid)
  14941. ].id
  14942. )
  14943. "
  14944. v-else-if="
  14945. groupStudentUid[toolindex] &&
  14946. groupStudentUid[toolindex][gindex].indexOf(userid) != -1
  14947. "
  14948. >
  14949. 退出分组
  14950. </div>
  14951. </div>
  14952. </div>
  14953. <div class="g_d_group_chair2">
  14954. <div v-if="groupJson.number > 3">
  14955. <span
  14956. :class="{
  14957. isChair:
  14958. groupStudent[toolindex][gindex] &&
  14959. groupStudent[toolindex][gindex][3],
  14960. updateChair:
  14961. courseDetail.userid == userid &&
  14962. groupStudent[toolindex][gindex] &&
  14963. groupStudent[toolindex][gindex][3] &&
  14964. groupJson.islock == 2,
  14965. }"
  14966. ><span
  14967. class="updateChairBtn"
  14968. @click="
  14969. updateGroupChair(
  14970. groupStudent[toolindex][gindex] &&
  14971. groupStudent[toolindex][gindex][3]
  14972. )
  14973. "
  14974. >修改</span
  14975. ></span
  14976. ><span>{{
  14977. groupStudent[toolindex][gindex] &&
  14978. groupStudent[toolindex][gindex][3]
  14979. ? groupStudent[toolindex][gindex] &&
  14980. groupStudent[toolindex][gindex][3].name
  14981. : "空位置"
  14982. }}</span>
  14983. </div>
  14984. <div v-if="groupJson.number > 7">
  14985. <span
  14986. :class="{
  14987. isChair:
  14988. groupStudent[toolindex][gindex] &&
  14989. groupStudent[toolindex][gindex][7],
  14990. updateChair:
  14991. courseDetail.userid == userid &&
  14992. groupStudent[toolindex][gindex] &&
  14993. groupStudent[toolindex][gindex][7] &&
  14994. groupJson.islock == 2,
  14995. }"
  14996. ><span
  14997. class="updateChairBtn"
  14998. @click="
  14999. updateGroupChair(
  15000. groupStudent[toolindex][gindex] &&
  15001. groupStudent[toolindex][gindex][7]
  15002. )
  15003. "
  15004. >修改</span
  15005. ></span
  15006. ><span>{{
  15007. groupStudent[toolindex][gindex] &&
  15008. groupStudent[toolindex][gindex][7]
  15009. ? groupStudent[toolindex][gindex] &&
  15010. groupStudent[toolindex][gindex][7].name
  15011. : "空位置"
  15012. }}</span>
  15013. </div>
  15014. </div>
  15015. </div>
  15016. <div class="g_d_group_chair">
  15017. <div v-if="groupJson.number > 1">
  15018. <span
  15019. :class="{
  15020. isChair:
  15021. groupStudent[toolindex][gindex] &&
  15022. groupStudent[toolindex][gindex][1],
  15023. updateChair:
  15024. courseDetail.userid == userid &&
  15025. groupStudent[toolindex][gindex] &&
  15026. groupStudent[toolindex][gindex][1] &&
  15027. groupJson.islock == 2,
  15028. }"
  15029. ><span
  15030. class="updateChairBtn"
  15031. @click="
  15032. updateGroupChair(
  15033. groupStudent[toolindex][gindex] &&
  15034. groupStudent[toolindex][gindex][1]
  15035. )
  15036. "
  15037. >修改</span
  15038. ></span
  15039. ><span>{{
  15040. groupStudent[toolindex][gindex] &&
  15041. groupStudent[toolindex][gindex][1]
  15042. ? groupStudent[toolindex][gindex] &&
  15043. groupStudent[toolindex][gindex][1].name
  15044. : "空位置"
  15045. }}</span>
  15046. </div>
  15047. <div v-if="groupJson.number > 5">
  15048. <span
  15049. :class="{
  15050. isChair:
  15051. groupStudent[toolindex][gindex] &&
  15052. groupStudent[toolindex][gindex][5],
  15053. updateChair:
  15054. courseDetail.userid == userid &&
  15055. groupStudent[toolindex][gindex] &&
  15056. groupStudent[toolindex][gindex][5] &&
  15057. groupJson.islock == 2,
  15058. }"
  15059. ><span
  15060. class="updateChairBtn"
  15061. @click="
  15062. updateGroupChair(
  15063. groupStudent[toolindex][gindex] &&
  15064. groupStudent[toolindex][gindex][5]
  15065. )
  15066. "
  15067. >修改</span
  15068. ></span
  15069. ><span>{{
  15070. groupStudent[toolindex][gindex] &&
  15071. groupStudent[toolindex][gindex][5]
  15072. ? groupStudent[toolindex][gindex] &&
  15073. groupStudent[toolindex][gindex][5].name
  15074. : "空位置"
  15075. }}</span>
  15076. </div>
  15077. <div v-if="groupJson.number > 9">
  15078. <span
  15079. :class="{
  15080. isChair:
  15081. groupStudent[toolindex][gindex] &&
  15082. groupStudent[toolindex][gindex][9],
  15083. updateChair:
  15084. courseDetail.userid == userid &&
  15085. groupStudent[toolindex][gindex] &&
  15086. groupStudent[toolindex][gindex][9] &&
  15087. groupJson.islock == 2,
  15088. }"
  15089. ><span
  15090. class="updateChairBtn"
  15091. @click="
  15092. updateGroupChair(
  15093. groupStudent[toolindex][gindex] &&
  15094. groupStudent[toolindex][gindex][9]
  15095. )
  15096. "
  15097. >修改</span
  15098. ></span
  15099. ><span>{{
  15100. groupStudent[toolindex][gindex] &&
  15101. groupStudent[toolindex][gindex][9]
  15102. ? groupStudent[toolindex][gindex] &&
  15103. groupStudent[toolindex][gindex][9].name
  15104. : "空位置"
  15105. }}</span>
  15106. </div>
  15107. </div>
  15108. </div>
  15109. </div>
  15110. </div>
  15111. </div>
  15112. <span slot="footer" class="dialog-footer">
  15113. <!-- <el-button @click="(dialogVisibleGroup = false)">关 闭</el-button> -->
  15114. </span>
  15115. </el-dialog>
  15116. <el-dialog
  15117. title="分组设置"
  15118. :visible.sync="dialogVisibleGroup2"
  15119. :append-to-body="true"
  15120. width="650px"
  15121. :before-close="handleClose"
  15122. class="dialog_diy"
  15123. >
  15124. <div class="groupBox">
  15125. <div v-if="groupJson2.group" class="groupContent">
  15126. <div class="groupTitle">请设置小组数量及名称</div>
  15127. <div
  15128. v-for="(item, index) in groupJson2.group"
  15129. :key="index"
  15130. class="groupName"
  15131. >
  15132. <span class="groupn">第{{ index + 1 }}组名称:</span>
  15133. <el-input
  15134. v-model="item.name"
  15135. placeholder="请输入名称..."
  15136. style="width: 250px"
  15137. ></el-input>
  15138. <!-- <div class="groupBtn">
  15139. <el-button type="primary" size="small" @click="addGroup(index)">
  15140. 添加</el-button>
  15141. <el-button type="primary" size="small" @click="deleteGroup(index)"
  15142. v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
  15143. </div> -->
  15144. </div>
  15145. </div>
  15146. <div class="groupContent">
  15147. <div class="groupTitle">请设置每组人数</div>
  15148. <!-- <el-input v-model="groupJson.number" placeholder="2-10人以内"
  15149. style="width: 150px; margin: 10px 10px 0 0"></el-input> -->
  15150. <el-input
  15151. v-model="groupJson2.number"
  15152. style="width: 150px"
  15153. placeholder="请输入2-10的数字"
  15154. @change="numberPan"
  15155. ></el-input>
  15156. </div>
  15157. </div>
  15158. <span slot="footer" class="dialog-footer">
  15159. <el-button @click="dialogVisibleGroup2 = false">取 消</el-button>
  15160. <el-button type="primary" @click="updateGroupJson">确定</el-button>
  15161. </span>
  15162. </el-dialog>
  15163. <el-dialog
  15164. title="作业提交"
  15165. :visible.sync="dialogVisibleGroupWork"
  15166. :append-to-body="true"
  15167. width="500px"
  15168. :before-close="handleClose"
  15169. class="dialog_change"
  15170. >
  15171. <div class="marginT">
  15172. <div>上传文件</div>
  15173. <div
  15174. class="chapter_add"
  15175. @click="addImg($event)"
  15176. v-if="studyJuri[0].cover.length == 0"
  15177. >
  15178. <div class="up_photo">
  15179. <img src="../../assets/icon/uploadImg.png" alt />
  15180. </div>
  15181. <!-- <input
  15182. type="file"
  15183. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15184. style="display: none"
  15185. @change="beforeUpload1($event, 1)"
  15186. /> -->
  15187. <input
  15188. type="file"
  15189. accept="*"
  15190. style="display: none"
  15191. @change="beforeUpload1($event, 1)"
  15192. />
  15193. </div>
  15194. <!-- capture="camera" -->
  15195. <div
  15196. class="chapter_add"
  15197. style="
  15198. display: flex;
  15199. width: 100%;
  15200. flex-direction: row;
  15201. flex-wrap: wrap;
  15202. justify-content: flex-start;
  15203. padding: 15px 0;
  15204. "
  15205. v-if="studyJuri[0].cover.length > 0"
  15206. >
  15207. <div class="upCover">
  15208. <img :src="studyJuri[0].cover[0].url" alt v-if="fileType == 0" />
  15209. <img :src="word" alt v-else-if="fileType == 1" />
  15210. <img :src="video" alt v-else-if="fileType == 2" />
  15211. <img :src="word2" alt v-else-if="fileType == 3" />
  15212. <span class="picName">{{ studyJuri[0].cover[0].name }}</span>
  15213. <div class="deleteWord" @click="clean(1)">
  15214. <img src="../../assets/icon/deleteWorks.png" alt />
  15215. </div>
  15216. </div>
  15217. </div>
  15218. </div>
  15219. <div
  15220. class="upload_send"
  15221. @click="addCourseWorks2(taskCount)"
  15222. v-if="!proVisible"
  15223. >
  15224. 提交
  15225. </div>
  15226. </el-dialog>
  15227. <el-dialog
  15228. title="修改分组"
  15229. :visible.sync="dialogVisibleUpdateGroup"
  15230. :append-to-body="true"
  15231. width="350px"
  15232. :before-close="handleClose"
  15233. class="dialog_diy"
  15234. >
  15235. <div>
  15236. <h2>
  15237. {{ this.updateGroupUser.name }}
  15238. </h2>
  15239. <div style="color: rgb(171 171 171); margin-top: 10px">
  15240. 请选择要进入的分组
  15241. </div>
  15242. <el-radio-group v-model="checkChair">
  15243. <el-radio
  15244. style="display: block; margin-top: 20px"
  15245. v-for="(item, index) in updateGroupArray"
  15246. :label="item.label"
  15247. :key="index"
  15248. >{{ item.name }}</el-radio
  15249. >
  15250. </el-radio-group>
  15251. </div>
  15252. <span slot="footer" class="dialog-footer">
  15253. <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
  15254. <el-button type="primary" @click="updateChair">确定</el-button>
  15255. </span>
  15256. </el-dialog>
  15257. <el-dialog
  15258. title="移除组员"
  15259. :visible.sync="dialogVisibleDeleteGroup"
  15260. :append-to-body="true"
  15261. width="350px"
  15262. :before-close="handleClose"
  15263. class="dialog_diy"
  15264. >
  15265. <div>
  15266. <h2>
  15267. {{ this.deleteGroupArray.name }}
  15268. </h2>
  15269. <div style="color: rgb(171 171 171); margin-top: 10px">
  15270. 请选择要删除的组员
  15271. </div>
  15272. <el-checkbox-group v-model="checkDeleteGroup">
  15273. <el-checkbox
  15274. style="display: flex; margin-top: 20px"
  15275. v-for="(item, index) in deleteGroupUser"
  15276. :label="item.userid"
  15277. :key="index"
  15278. >{{ item.name }}</el-checkbox
  15279. >
  15280. </el-checkbox-group>
  15281. </div>
  15282. <span slot="footer" class="dialog-footer">
  15283. <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
  15284. <el-button type="primary" @click="deleteChair">确定</el-button>
  15285. </span>
  15286. </el-dialog>
  15287. <el-dialog
  15288. title="批量上传"
  15289. :visible.sync="dialogVisiblePl"
  15290. :append-to-body="true"
  15291. width="700px"
  15292. :before-close="handleClose"
  15293. class="dialog_change"
  15294. >
  15295. <div class="marginT">
  15296. <div class="plworkBox">
  15297. <div
  15298. class="chapter_add"
  15299. style="
  15300. display: flex;
  15301. width: 150px;
  15302. flex-direction: row;
  15303. flex-wrap: wrap;
  15304. justify-content: flex-start;
  15305. margin: 0 10px 10px 0;
  15306. "
  15307. v-for="(item, index) in plworkFile"
  15308. :key="index"
  15309. >
  15310. <div class="upCover2">
  15311. <img
  15312. :src="item.url"
  15313. alt
  15314. v-if="item.fileType == 1"
  15315. @click="previewImg(item.url)"
  15316. />
  15317. <img :src="word" alt v-else-if="item.fileType == 4" />
  15318. <img :src="video" alt v-else />
  15319. <!-- <span class="picName">{{ item.name }}</span> -->
  15320. <!-- <el-input
  15321. v-model="item.username"
  15322. placeholder="请输入学生名字"
  15323. style="margin-top: 10px"
  15324. ></el-input> -->
  15325. <div
  15326. class="pl_select_box"
  15327. @click="
  15328. getUpdateMore(true, checkUpload(), item.username, index)
  15329. "
  15330. >
  15331. {{ getSName(item.username) }}
  15332. </div>
  15333. <!-- <el-select
  15334. style="margin-top: 10px"
  15335. v-model="item.username"
  15336. filterable
  15337. allow-create
  15338. placeholder="请选择学生"
  15339. >
  15340. <el-option
  15341. v-for="item1 in checkUpload()"
  15342. :key="item1.userid"
  15343. :label="item1.name ? item1.name : item1.username"
  15344. :value="item1.userid"
  15345. >
  15346. </el-option>
  15347. </el-select> -->
  15348. <div class="deleteWord" @click="clean2(index)">
  15349. <img src="../../assets/icon/deleteWorks.png" alt />
  15350. </div>
  15351. </div>
  15352. </div>
  15353. <div class="chapter_add" style="width: auto" @click="addImg($event)">
  15354. <div class="up_photo2">
  15355. <img src="../../assets/icon/plwork.png" alt />
  15356. <span>点击上传文件</span>
  15357. </div>
  15358. <input
  15359. type="file"
  15360. accept="video/mp4, video/quicktime, video/x-msvideo,application/pdf, application/.ppt, .pptx, .xlsx, .xls, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document, image/*"
  15361. multiple="multiple"
  15362. style="display: none"
  15363. @change="beforeUpload3($event, 6)"
  15364. />
  15365. </div>
  15366. </div>
  15367. </div>
  15368. <!-- capture="camera" -->
  15369. <div
  15370. class="upload_send"
  15371. @click="addCourseWorksPl(taskCount)"
  15372. v-if="!proVisible2"
  15373. >
  15374. 提交
  15375. </div>
  15376. </el-dialog>
  15377. <el-dialog
  15378. title="修改名称"
  15379. :visible.sync="dialogVisibleSname"
  15380. width="500px"
  15381. :before-close="handleClose"
  15382. class="dialog_diy"
  15383. center
  15384. >
  15385. <div
  15386. style="
  15387. text-align: center;
  15388. display: flex;
  15389. align-items: center;
  15390. justify-content: center;
  15391. "
  15392. >
  15393. <span class="tian1">名称</span>
  15394. <div
  15395. class="pl_select_box"
  15396. style="margin-left: 10px; width: 200px"
  15397. @click="getUpdateMore(true, uploadStudentJuri, worksSid)"
  15398. >
  15399. {{ getSName(worksSName) }}
  15400. </div>
  15401. <!-- <el-select v-model="worksSName" filterable allow-create style="width: 250px; margin: 15px 0px"
  15402. placeholder="请选择学生">
  15403. <el-option v-for="item in uploadStudentJuri" :key="item.userid" :label="item.name ? item.name : item.username"
  15404. :value="item.userid">
  15405. </el-option>
  15406. </el-select> -->
  15407. <!-- <el-input
  15408. v-model="worksSName"
  15409. style="width: 250px; margin: 15px 0px"
  15410. ></el-input> -->
  15411. </div>
  15412. <span slot="footer" class="dialog-footer">
  15413. <el-button @click="dialogVisibleSname = false">取 消</el-button>
  15414. <el-button type="primary" @click="updateName">确 定</el-button>
  15415. </span>
  15416. </el-dialog>
  15417. <el-dialog
  15418. title="英语写作"
  15419. :visible.sync="engDialogVisible"
  15420. :append-to-body="true"
  15421. width="800px"
  15422. :before-close="handleClose"
  15423. class="dialog_diy"
  15424. >
  15425. <onlineWrite
  15426. v-if="engDialogVisible"
  15427. :englishList="englishList"
  15428. :myAnswerList1="myAnswerList1"
  15429. ref="engJson"
  15430. ></onlineWrite>
  15431. <span slot="footer" class="dialog-footer" style="text-align: center;">
  15432. <el-button @click="engDialogVisible = false">取 消</el-button>
  15433. <el-button type="primary" @click="addEnglishWork">确 定</el-button>
  15434. </span>
  15435. </el-dialog>
  15436. <el-dialog
  15437. title="英语写作"
  15438. :visible.sync="engUpdateDialogVisible"
  15439. :append-to-body="true"
  15440. width="800px"
  15441. :before-close="handleClose"
  15442. class="dialog_diy fullStyle"
  15443. >
  15444. <div class="engUpBox">
  15445. <div class="engUpTop">
  15446. <div class="engTitle">
  15447. <div>作文题目:</div>
  15448. <div>{{ englishList1.engTitle }}</div>
  15449. </div>
  15450. <div class="engText">
  15451. <div>作文内容:</div>
  15452. <div class="cont" v-html="englishList1.englishText" style="white-space: pre-line;" @click="checkImg(getImgList(englishList1.englishText))"></div>
  15453. </div>
  15454. </div>
  15455. <div class="correctBox" :style="{height: `calc(100% - ${topHeight}px)` }">
  15456. <div class="oldBox">
  15457. <div class="oldMes">原文( 作者:{{ noteName }} )</div>
  15458. <div class="oldText">
  15459. <div class="detailBox">
  15460. <div class="oldDetail">
  15461. <div>标题:</div>
  15462. <div>{{ oldEnglishJson.engTitle }} </div>
  15463. </div>
  15464. <div class="oldDetail1">
  15465. <div>正文:</div>
  15466. <div v-html="oldEnglishJson.engText" style="white-space: pre-line;"></div>
  15467. </div>
  15468. <div class="oldDetail" v-if="oldEnglishJson.imgList && oldEnglishJson.imgList.length > 0">
  15469. <div>图片:</div>
  15470. <div class="oldImg"><img :src="oldEnglishJson.imgList[0].url" alt="" /></div>
  15471. </div>
  15472. </div>
  15473. </div>
  15474. </div>
  15475. <div class="oldBox loadingText" v-if="userMes[0].type == 2">
  15476. <div class="oldMes" style="background: #aacaff;">{{ userMes[0].username }}</div>
  15477. <div class="oldText">
  15478. <div class="detailBox" style="position: relative;">
  15479. <div class="oldDetail">
  15480. <div>标题:</div>
  15481. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15482. <div v-else v-html="newEnglishList.engTitle"></div>
  15483. </div>
  15484. <div class="oldDetail">
  15485. <div>正文:</div>
  15486. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15487. <correctText :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15488. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15489. </div>
  15490. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15491. <el-button @click="isUpdateCorrect(newEnglishList.engText,1)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15492. <el-button @click="aiCorrect(newEnglishList.engText,1)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15493. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15494. </div>
  15495. </div>
  15496. </div>
  15497. <div class="oldBox loadingText" v-else-if="userMes[0].type == 1">
  15498. <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">
  15499. <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>
  15500. <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>
  15501. </div>
  15502. <div class="oldMes" style="background: #aacaff;" v-else>{{ userMes[0].username }}</div>
  15503. <div class="oldText" v-if="newEngIndex == -1 && isNoUserid == true && newEnglishList1.length">
  15504. <div class="detailBox" style="position: relative;">
  15505. <div class="oldDetail">
  15506. <div>标题:</div>
  15507. <el-input v-if="greyType" v-model="oldEnglishJson1.engTitle" />
  15508. <div v-else v-html="oldEnglishJson1.engTitle"></div>
  15509. </div>
  15510. <div class="oldDetail">
  15511. <div>正文:</div>
  15512. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="oldEnglishJson1.engText" @input="gx"/>
  15513. <correctText v-else :newText="oldEnglishJson1.engText" :oldData="oldEnglishJson.engText"/>
  15514. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(oldEnglishJson1.engText,correctWord)"></div> -->
  15515. </div>
  15516. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15517. <el-button @click="isUpdateCorrect(oldEnglishJson1.engText,2)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15518. <el-button @click="aiCorrect(oldEnglishJson1.engText,2)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15519. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15520. </div>
  15521. </div>
  15522. <div class="oldText" v-else-if="newEngIndex == -1">
  15523. <div class="detailBox" style="position: relative;">
  15524. <div class="oldDetail">
  15525. <div>标题:</div>
  15526. <el-input v-if="greyType" v-model="newEnglishList.engTitle" />
  15527. <div v-else v-html="newEnglishList.engTitle"></div>
  15528. </div>
  15529. <div class="oldDetail">
  15530. <div>正文:</div>
  15531. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList.engText" @input="gx"/>
  15532. <correctText v-else :newText="newEnglishList.engText" :oldData="oldEnglishJson.engText"/>
  15533. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList.engText,correctWord)"></div> -->
  15534. </div>
  15535. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15536. <el-button @click="isUpdateCorrect(newEnglishList.engText,3)" class="correctCss" :style="{right: greyType == false ? '0' : '80px' }">{{ greyType == false ? '添加批注' : '取消添加' }}</el-button>
  15537. <el-button @click="aiCorrect(newEnglishList.engText,3)" style="position: absolute;bottom: -70px;right: 110px;background: #409eff;color: #fff;" v-if="!greyType">AI批注</el-button>
  15538. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15539. </div>
  15540. </div>
  15541. <div class="oldText" v-else-if="newEngIndex > -1 && newEnglishList1.length > 0">
  15542. <div class="detailBox" style="position: relative;">
  15543. <div class="oldDetail">
  15544. <div>标题:</div>
  15545. <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15546. <div v-else>
  15547. <el-input v-if="greyType" v-model="newEnglishList1[newEngIndex].cWork.engTitle" />
  15548. <div v-else v-html="newEnglishList1[newEngIndex].cWork.engTitle"></div>
  15549. </div>
  15550. </div>
  15551. <div class="oldDetail">
  15552. <div>正文:</div>
  15553. <!-- <div v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" v-html="newEnglishList1[newEngIndex].cWork.engText"></div> -->
  15554. <correctText v-if="userMes[0].userid != newEnglishList1[newEngIndex].correct" :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15555. <div v-else>
  15556. <el-input v-if="greyType" type="textarea" :rows="10" resize="none" v-model="newEnglishList1[newEngIndex].cWork.engText" @input="gx"/>
  15557. <correctText v-else :newText="newEnglishList1[newEngIndex].cWork.engText" :oldData="oldEnglishJson.engText"/>
  15558. <!-- <div v-else style="white-space: pre-line;" v-html="Correct(newEnglishList1[newEngIndex].cWork.engText,correctWord)"></div> -->
  15559. </div>
  15560. </div>
  15561. <div style="position: absolute;bottom: -25px;">注:红色划线字为删除,绿色背景白色字为新添加.</div>
  15562. <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>
  15563. <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>
  15564. <el-button @click="addCorrect" style="position: absolute;bottom: -70px;right: 0;background: #409eff;color: #fff;" v-if="greyType">确定</el-button>
  15565. </div>
  15566. </div>
  15567. </div>
  15568. </div>
  15569. </div>
  15570. <span slot="footer" class="dialog-footer">
  15571. <el-button @click="engUpdateDialogVisible = false">取 消</el-button>
  15572. <el-button type="primary" @click="addCorrect">确 定</el-button>
  15573. </span>
  15574. </el-dialog>
  15575. <englishEva :evaEngJson="evaEngJson" :engEvaDialogVisible.sync="engEvaDialogVisible" :uid="userid" :tType="tType" :courseDetail="courseDetail"></englishEva>
  15576. <interVideo
  15577. :dialogVisibleVideo.sync="dialogVisibleVideo"
  15578. :videoJson="videoJson"
  15579. :userid="userid"
  15580. :id="id"
  15581. :courseType="courseType"
  15582. :taskCount="taskCount"
  15583. :toolindex="toolindex"
  15584. :videoType="videoType"
  15585. ></interVideo>
  15586. <UpdateMore
  15587. :dialogVisibleMember.sync="dialogVisibleMember"
  15588. :cList="uploadStudentJuri"
  15589. :userid="userid"
  15590. :searchTN="worksSName2"
  15591. @setPlname="setPlname"
  15592. ></UpdateMore>
  15593. <!-- <wordCloud
  15594. :dialogVisibleWordCloud.sync="dialogVisibleWordCloud"
  15595. :data="wordCloudData"
  15596. ></wordCloud> -->
  15597. <el-dialog
  15598. title="词云"
  15599. :visible.sync="dialogVisibleWordCloud"
  15600. width="30%"
  15601. class="dialog_diy"
  15602. :before-close="handleClose">
  15603. <choseWordCloud :cloudData="wordCloudData" :key="wordCloudKey" :dialogVisibleWordCloud="dialogVisibleWordCloud"></choseWordCloud>
  15604. </el-dialog>
  15605. <el-dialog
  15606. title="挑人"
  15607. :visible.sync="dialogVisiblePickPeople"
  15608. width="650px"
  15609. :before-close="handleClose"
  15610. class="dialog_diy"
  15611. center
  15612. >
  15613. <div class="pick_box">
  15614. <div
  15615. class="noWorksName"
  15616. :class="{ isSelectName: isPickStudent.indexOf(item.userid) !== -1 }"
  15617. v-for="(item, index) in uploadStudentJuri"
  15618. :key="index"
  15619. @click="pickStudent(item)"
  15620. >
  15621. {{ item.name }}
  15622. </div>
  15623. </div>
  15624. </el-dialog>
  15625. <EnglishVoice :EnglishVoiceDialog.sync='EnglishVoiceDialog'
  15626. :englishVoiceJson='englishVoiceJson'
  15627. :userid="userid"
  15628. :id="id"
  15629. :courseType="courseType"
  15630. :taskCount="taskCount"
  15631. :toolindex="toolindex"
  15632. @selectSWorks="selectSWorks"
  15633. @selectStudent="selectStudent"
  15634. :englishVoiceJsonWork="englishVoiceJsonWork"></EnglishVoice>
  15635. <checkEnglishVoice :englishVoiceJson='englishVoiceJson'
  15636. :userid="userid"
  15637. :dialogVisibleENScore.sync='dialogVisibleENScore'
  15638. :commentDetail="commentDetail"
  15639. :courseDetail="courseDetail"
  15640. :wScore="wScore"
  15641. :scoreDetail="scoreDetail"
  15642. @selectSWorks="selectSWorks"
  15643. @selectStudent="selectStudent"></checkEnglishVoice>
  15644. <el-dialog
  15645. title="教师评分"
  15646. :visible.sync="markScoreVisible"
  15647. :append-to-body="true"
  15648. width="1000px"
  15649. :fullscreen="markfullscreen"
  15650. :before-close="markScorehandleClose"
  15651. class="markScore_diy"
  15652. >
  15653. <div slot="title">
  15654. <div class="markScore_diyTit">
  15655. <div>{{ tType == 1 ? "教师评分" : "作业弹框" }}</div>
  15656. <div @click="markFullScreenBtn" style="cursor: pointer;">
  15657. <img src="../../assets/icon/newIcons/fullScreen.png" alt="" />
  15658. </div>
  15659. </div>
  15660. </div>
  15661. <!-- :ref="`markSco${toolIndex}${wIndex}`" -->
  15662. <!-- @updateDocSco="updateDocSco" -->
  15663. <markDialog
  15664. :key="markScoreVisible.toString()"
  15665. :uid="markScoreUid"
  15666. :toolIndex="markScoretoolIndex"
  15667. :stage="courseType"
  15668. :task="taskCount"
  15669. :taskDetail="
  15670. chapInfoList[courseType].chapterInfo[0].taskJson[taskCount].taskDetail
  15671. "
  15672. :tool="toolListS"
  15673. :languageSetting="languageSetting"
  15674. :scoTit="markScoreTit"
  15675. :tType="tType"
  15676. :sIsOpen="sIsOpen"
  15677. :markScoreworksStudent="markScoreworksStudent"
  15678. :markScoreVisible="markScoreVisible"
  15679. ></markDialog>
  15680. </el-dialog>
  15681. <!-- 查看Txt,md等文件 -->
  15682. <el-dialog
  15683. title="文件预览"
  15684. :visible.sync="dialogVisibleTxt"
  15685. width="50%"
  15686. :before-close="handleCloseTxt"
  15687. class="dialog_diy"
  15688. :class="{ fullStyle: full }"
  15689. >
  15690. <div slot="title" class="header-title">
  15691. <div style="color: #fff">文件预览</div>
  15692. <div style="position: absolute; top: 19px; right: 50px">
  15693. <img
  15694. src="../../assets/full.png"
  15695. style="height: 16px; cursor: pointer"
  15696. alt=""
  15697. @click="fullTools"
  15698. />
  15699. </div>
  15700. </div>
  15701. <div>{{ TxtMd }}</div>
  15702. </el-dialog>
  15703. <statisticalAnalysis ref="statisticalAnalysisRef" @refresh="statisticalAnalysisRefresh" @changeSplitScreenBehavior="changeSplitScreenBehavior" :courseType="courseType" :taskCount="taskCount"/>
  15704. <choseWorksDetailDialog
  15705. ref="choseWorksDetailDialogRef"
  15706. :worksStudentData="worksStudent"
  15707. :noWorksSData="noWorksS"
  15708. :chapInfoListData="chapInfoList"
  15709. :courseType="courseType"
  15710. :taskCount="taskCount"
  15711. :tType="tType"
  15712. :sIsOpen="sIsOpen"
  15713. :courseDetail="courseDetail"
  15714. :groupStudent2="groupStudent"
  15715. :groupStudentUid2="groupStudentUid"
  15716. :oid="oid"
  15717. :org="org"
  15718. @getCourseDetail="getCourseDetail"
  15719. @selectSLook="selectSLook"
  15720. @selectSWorks="selectSWorks"
  15721. @selectStudent="selectStudent"
  15722. @openWord="openWord"
  15723. @openScore="openScore"
  15724. @deleteWorks="deleteWorks"
  15725. @openTools="openTools"
  15726. @changeSplitScreenBehavior="changeSplitScreenBehavior"
  15727. />
  15728. <el-dialog
  15729. :visible.sync="confirmOpenDig"
  15730. width="500px"
  15731. :modal="false"
  15732. class="confirmOpenDigCss dialog_diyCopy"
  15733. :before-close="handleClose">
  15734. <div style="display: flex;align-items: center;">
  15735. <img src="../../assets/icon/course/confirmOpenDig.svg" alt="">
  15736. <span>“{{ courseDetail.title }}”开课啦</span>
  15737. </div>
  15738. <div style="margin: 20px 0 35px;">
  15739. <div style="margin-bottom: 10px;">接下来你将跟随老师一起开始今天的学习! </div>
  15740. <div>要认真听讲哦~</div>
  15741. </div>
  15742. <div style="text-align: center;">
  15743. <el-button type="primary" style="width: 95%;" @click="confirmOpen">开始学习</el-button>
  15744. </div>
  15745. </el-dialog>
  15746. <appStoreC ref="appStoreC"
  15747. :sStudent="sStudent"
  15748. :courseType="courseType"
  15749. :taskCount="taskCount"
  15750. :toolindex="toolindex"
  15751. @selectSWorks="selectSWorks"
  15752. @selectStudent="selectStudent"
  15753. ></appStoreC>
  15754. <cocoFlowDia ref="cocoFlowDiaRef"></cocoFlowDia>
  15755. </div>
  15756. </template>
  15757. <script>
  15758. import "../../common/aws-sdk-2.235.1.min.js";
  15759. // import pdf from "../components/pdf3";
  15760. import pdf from "../components/vpdf";
  15761. import AskStatic from "../components/askStatic";
  15762. import AskStatic2 from "../components/askStatic2";
  15763. import AnswerData2 from "../components/answerData2";
  15764. import AnswerData from "../components/answerData";
  15765. import sortToolWorkShow from "../components/sortToolWorkShow.vue";
  15766. import EditorBar from "../tools/wangEnduit.vue";
  15767. import Table from "../tools/table.vue";
  15768. import Time from "../tools/time.vue";
  15769. import Mind from "../tools/jsmind.vue";
  15770. import Sunburst from "../tools/sunburst";
  15771. import SeeBoard from "../tools/seeBoard";
  15772. import * as imageConversion from "image-conversion";
  15773. import Audio from "../components/audio.vue";
  15774. import ImgDraw from "../tools/imgDraw/imgDraw";
  15775. import { Empty } from "element-ui";
  15776. import RecordRTC from "recordrtc";
  15777. import interVideo from "../interVideo/index.vue";
  15778. import UpdateMore from "../updateMore/updateMore.vue";
  15779. import wordCloud from "../wordCloud/index.vue";
  15780. import axios from "axios";
  15781. import JSZip from "jszip";
  15782. import FileSaver from "file-saver";
  15783. import onlineWrite from "./commpont/onlineWrite";
  15784. import englishEva from "../components/englishEva";
  15785. import * as Diff from 'diff'
  15786. import EnglishVoice from '../EnglishVoice2/index.vue'
  15787. import checkEnglishVoice from '../checkEnglishVoice/index.vue'
  15788. import correctText from '../components/correctText.vue'
  15789. import scoreItem from '../scoreList/scoreItem.vue'
  15790. import scoreZong from '../scoreZong/index.vue'
  15791. import classRoomHelper from '../classRoomHelper/index.vue'
  15792. import studentClassRoomHelper from '../classRoomHelper/studentIndex.vue'
  15793. import MarkdownIt from "markdown-it";
  15794. import statisticalAnalysis from '../components/statisticalAnalysis.vue'
  15795. import choseWorksDetailDialog from '../components/choseWorksDetailDialog.vue'
  15796. import { v4 as uuidv4 } from "uuid";
  15797. import markScore from "../easy2/commpont/markScore";
  15798. import markDialog from "../easy2/commpont/markDialog";
  15799. import evaTable from "../easy2/commpont/evaTable";
  15800. import choseWordCloud from '../components/choseWordCloud.vue'
  15801. import appStoreC from "../components/appStoreC.vue";
  15802. import cocoFlowDia from "../components/cocoFlowDia.vue";
  15803. import { myMixin } from "@/mixins/mixin.js"
  15804. import { tools as toolsList } from "@/common/tools2.js";
  15805. import katex from 'katex'
  15806. import 'katex/dist/katex.min.css'
  15807. var OpenCC = require("opencc-js");
  15808. let converter = OpenCC.Converter({
  15809. from: "hk",
  15810. to: "cn"
  15811. });
  15812. const getFile = (url) => {
  15813. return new Promise((resolve, reject) => {
  15814. var credentials = {
  15815. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  15816. secretAccessKey: "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",
  15817. }; //秘钥形式的登录上传
  15818. window.AWS.config.update(credentials);
  15819. window.AWS.config.region = "cn-northwest-1"; //设置区域
  15820. let url2 = url;
  15821. let _url2 = "";
  15822. if (
  15823. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  15824. ) {
  15825. _url2 = url2.split(
  15826. "https://view.officeapps.live.com/op/view.aspx?src="
  15827. )[1];
  15828. } else {
  15829. _url2 = url2;
  15830. }
  15831. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  15832. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  15833. var params = {
  15834. Bucket: "ccrb",
  15835. Key: name
  15836. };
  15837. s3.getObject(params, function (err, data) {
  15838. if (err) {
  15839. console.log(err, err.stack)
  15840. resolve({ data: 1 });
  15841. }else {
  15842. resolve({ data: data.Body });
  15843. console.log(data);
  15844. } // sxuccessful response
  15845. });
  15846. // axios({
  15847. // method: "get",
  15848. // url,
  15849. // responseType: "blob",
  15850. // })
  15851. // .then((data) => {
  15852. // resolve({ data: data.data });
  15853. // })
  15854. // .catch((error) => {
  15855. // resolve({ data: 1 });
  15856. // // reject(error.toString());
  15857. // });
  15858. });
  15859. };
  15860. export default {
  15861. mixins: [ myMixin ],
  15862. components: {
  15863. choseWordCloud,
  15864. EditorBar,
  15865. Time,
  15866. pdf,
  15867. AskStatic,
  15868. AskStatic2,
  15869. Mind,
  15870. Sunburst,
  15871. SeeBoard,
  15872. AnswerData2,
  15873. AnswerData,
  15874. sortToolWorkShow,
  15875. Audio,
  15876. ImgDraw,
  15877. Table,
  15878. interVideo,
  15879. UpdateMore,
  15880. wordCloud,
  15881. onlineWrite,
  15882. englishEva,
  15883. EnglishVoice,
  15884. checkEnglishVoice,
  15885. correctText,
  15886. scoreItem,
  15887. classRoomHelper,
  15888. scoreZong,
  15889. markScore,
  15890. markDialog,
  15891. evaTable,
  15892. statisticalAnalysis,
  15893. choseWorksDetailDialog,
  15894. appStoreC,
  15895. cocoFlowDia,
  15896. studentClassRoomHelper
  15897. },
  15898. data() {
  15899. return {
  15900. // 是否允许学生查看内容资料 2不可以 1可以
  15901. IsStulook:false,
  15902. homeWorkLoading:false,
  15903. toolsList: toolsList,
  15904. wordCloudKey: 0,
  15905. bg: null,
  15906. drawShow: false,
  15907. dialogVisible: false,
  15908. dialogVisiblePl: false,
  15909. commentDialogVisible: false,
  15910. dialogVisibleMember: false,
  15911. dialogVisibleWordCloud: false,
  15912. videoVisible: false,
  15913. isStar: false,
  15914. studentEvalDialogVisible: false,
  15915. studentEvalDialogVisibleTeacher: false,
  15916. dialogVisibleSelect: false,
  15917. dialogVisibleSelectTeacher: false,
  15918. dialogVisibleScore: false,
  15919. dialogVisibleENScore: false,
  15920. dialogVisibleSentence: false,
  15921. dialogVisibleSentenceTeacher: false,
  15922. dialogVisibleSentence1: false,
  15923. dialogVisibleWorks: false,
  15924. dialogVisibleTable: false,
  15925. dialogVisibleTableTeacher: false,
  15926. dialogVisibleWord: false,
  15927. dialogVisibleWordTeacher: false,
  15928. dialogVisibleTable2: false,
  15929. dialogVisibleTable3: false,
  15930. dialogVisibleGroupWork: false,
  15931. dialogVisibleUpdateGroup: false,
  15932. dialogVisibleDeleteGroup: false,
  15933. dialogVisibleSname: false,
  15934. dialogVisibleVideo: false,
  15935. dialogVisiblePickPeople: false,
  15936. worksSName: "",
  15937. classJuri: [],
  15938. uploadStudentJuri: [],
  15939. uploadCid: "",
  15940. snameWid: "",
  15941. sStudent: {},
  15942. sTool: "",
  15943. bzText: "",
  15944. commentDetail: [],
  15945. selectAnswer: [],
  15946. videoDetail: {},
  15947. selectJson: {},
  15948. eScore: { eBzText: "", eStar: [] },
  15949. id: this.$route.query.courseId,
  15950. userid: this.$route.query.userid,
  15951. classId: this.$route.query.cid,
  15952. role: this.$route.query.role,
  15953. // courseTypeLine: this.$route.query.type,
  15954. oid: this.$route.query.oid,
  15955. org: this.$route.query.org,
  15956. tType: this.$route.query.tType,
  15957. courseType: this.$route.query.type,
  15958. screenType: this.$route.query.screenType,
  15959. tcid2: this.$route.query.tcid,
  15960. tcid: "",
  15961. pptImgUrl: "",
  15962. pptImgUrl1: "",
  15963. commentText: "",
  15964. full: false,
  15965. sIsOpen: false,
  15966. IsLookOpen: false,
  15967. IsFollow: false,
  15968. pzDialog: false,
  15969. contentDialog: false,
  15970. mlDialog: false,
  15971. type: 1,
  15972. sentenceList: [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }],
  15973. sentenceList1: [],
  15974. tableJson: [],
  15975. tableJsonO: [],
  15976. wordJson: [],
  15977. wordJsonO: [],
  15978. vedio: [],
  15979. text: [],
  15980. textList: [],
  15981. line: [],
  15982. lineList: [],
  15983. chapTools: [],
  15984. chapToolList: [],
  15985. file: [],
  15986. fileC: [],
  15987. vedioTime: [],
  15988. upToolImg: "",
  15989. preTime: 0,
  15990. rateList: {
  15991. ca: 0,
  15992. },
  15993. rateParams: [],
  15994. colors: ["#DFDFDF", "#DFDFDF", "#DFDFDF"],
  15995. studyJuri: [
  15996. {
  15997. content: "",
  15998. cover: [],
  15999. upVedio: [],
  16000. upFile: [],
  16001. },
  16002. ],
  16003. isClose: 0,
  16004. plworkFile: [],
  16005. mr: require("../../assets/vedioPic.png"),
  16006. word: require("../../assets/icon/isWord.png"),
  16007. word2: require("../../assets/icon/word2.png"),
  16008. video: require("../../assets/icon/isVideo.png"),
  16009. noLikes: require("../../assets/icon/comment/noLikes.png"),
  16010. likes: require("../../assets/icon/comment/likes.png"),
  16011. scoreImg: require("../../assets/score.png"),
  16012. courseDetail: {},
  16013. reply: "",
  16014. isSelect: false,
  16015. chapInfo: [],
  16016. chapInfoList: [],
  16017. taskCount: 0,
  16018. imgList: [],
  16019. noImgList: [],
  16020. pzList: [],
  16021. timeWorkList: [],
  16022. PlTextList: [
  16023. "Excellent!",
  16024. "nice!",
  16025. "很有创意!",
  16026. "还不错哦~",
  16027. "继续努力哦~",
  16028. ],
  16029. isClickNav: "",
  16030. navId: "",
  16031. playerOptions: {
  16032. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16033. autoplay: false, //如果true,浏览器准备好时开始回放。
  16034. muted: false, // 默认情况下将会消除任何音频。
  16035. loop: false, // 导致视频一结束就重新开始。
  16036. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16037. language: "zh-CN",
  16038. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16039. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16040. sources: [
  16041. {
  16042. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16043. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16044. },
  16045. ],
  16046. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16047. // poster: dataRes.imgUrl, //你的封面地址
  16048. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16049. controlBar: {
  16050. timeDivider: true, //当前时间和持续时间的分隔符
  16051. durationDisplay: true, //显示持续时间
  16052. remainingTimeDisplay: false, //是否显示剩余时间功能
  16053. fullscreenToggle: true, //全屏按钮
  16054. },
  16055. },
  16056. playerOptions1: {
  16057. playbackRates: [0.7, 1.0, 1.5, 2.0], //播放速度
  16058. autoplay: false, //如果true,浏览器准备好时开始回放。
  16059. muted: false, // 默认情况下将会消除任何音频。
  16060. loop: false, // 导致视频一结束就重新开始。
  16061. preload: "auto", // 建议浏览器在<video>加载元素后是否应该开始下载视频数据。auto浏览器选择最佳行为,立即开始加载视频(如果浏览器支持)
  16062. language: "zh-CN",
  16063. aspectRatio: "16:9", // 将播放器置于流畅模式,并在计算播放器的动态大小时使用该值。值应该代表一个比例 - 用冒号分隔的两个数字(例如"16:9"或"4:3")
  16064. fluid: true, // 当true时,Video.js player将拥有流体大小。换句话说,它将按比例缩放以适应其容器。
  16065. sources: [
  16066. {
  16067. type: "video/mp4", //这里的种类支持很多种:基本视频格式、直播、流媒体等,具体可以参看git网址项目 || "video/ogg"|| "video/webm"
  16068. src: "", //url地址require("../../../assets/media/aaa.mp4")
  16069. },
  16070. ],
  16071. // poster: require("../../../assets/tu31.png"), //你的封面地址
  16072. // poster: dataRes.imgUrl, //你的封面地址
  16073. notSupportedMessage: "此视频暂无法播放,请稍后再试", //允许覆盖Video.js无法播放媒体源时显示的默认信息。
  16074. controlBar: {
  16075. timeDivider: true, //当前时间和持续时间的分隔符
  16076. durationDisplay: true, //显示持续时间
  16077. remainingTimeDisplay: false, //是否显示剩余时间功能
  16078. fullscreenToggle: true, //全屏按钮
  16079. },
  16080. },
  16081. playerO: {},
  16082. noneBtnImg: false,
  16083. proVisible: false,
  16084. proVisible2: false,
  16085. progress: 0,
  16086. isFinishSize: 0,
  16087. isAllSize: 0,
  16088. questionAnswer: "",
  16089. answerQ: "", //问答标题
  16090. rateJson: [],
  16091. wbCount: 0,
  16092. wordCount: 0,
  16093. mindCount: 0,
  16094. askCount: 0,
  16095. noteCount: 0,
  16096. mindNetWorkCount: 0,
  16097. libraryCount: 0,
  16098. workCount: 0,
  16099. timeCount: 0,
  16100. answerCount: 0,
  16101. trainCount: 0,
  16102. evalCount: 0,
  16103. dialogImageUrl: "",
  16104. pictureDialog: false,
  16105. toolTypeList: [],
  16106. dialogVisible1: false,
  16107. dialogVisible2: false,
  16108. dialogVisible3: false,
  16109. dialogVisible6: false,
  16110. dialogVisible4: false,
  16111. isNoHomeWork: false,
  16112. dialogVisible5: false,
  16113. dialogVisible5Teacher: false,
  16114. dialogVisibleChoice: false,
  16115. dialogVisibleChoiceTeacher: false,
  16116. answerDialogVisible: false,
  16117. answerDialogVisibleTeacher: false,
  16118. juriVisible: false,
  16119. timeDialogVisible: false,
  16120. replyDialogVisible: false,
  16121. toolDialogVisible: false,
  16122. engDialogVisible: false,
  16123. engUpdateDialogVisible:false,
  16124. engEvaDialogVisible: false,
  16125. evaEngJson: {
  16126. teacherJson: {},
  16127. studentJson: {},
  16128. message: {},
  16129. },
  16130. isNoUserid:false,
  16131. engListLength:0,
  16132. engWid:"",
  16133. newEnglishList:{
  16134. engTitle:"",
  16135. engText:"",
  16136. },
  16137. newEnglishList1:[],
  16138. oldEnglishJson:{},
  16139. oldEnglishJson1:{},
  16140. englishList1:{},
  16141. englishList:{},
  16142. myAnswerList1:{},
  16143. topHeight:0,
  16144. newEngIndex:-1,
  16145. englishToolIndex:0,
  16146. userMes:{},
  16147. englishToolIndex:0,
  16148. replyIndex: 0,
  16149. replyPid: "",
  16150. radio: [],
  16151. isAsk: false,
  16152. askJson: {
  16153. askCount: 1,
  16154. askTitle: "",
  16155. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  16156. },
  16157. testJson: {},
  16158. englishList: {},
  16159. topHeight:0,
  16160. checkJson: [],
  16161. askList: [],
  16162. answerList: [],
  16163. navList: [],
  16164. addPzDialog: false,
  16165. pzConText: "",
  16166. worksStudent: [],
  16167. isCloseList: [],
  16168. workStudent: [],
  16169. groupStudent: [],
  16170. groupStudentUid: [],
  16171. noWorksS: [],
  16172. isWorksS: [],
  16173. noWorksStudent: [],
  16174. toolindex: 0,
  16175. toolDetailIndex: null,
  16176. groupIndex: 0,
  16177. workTypeB: false,
  16178. workTypeC: false,
  16179. isAnswer: false,
  16180. isHovered: false,
  16181. isHovered1: false,
  16182. isHovered2: false,
  16183. commentTagShow:0,
  16184. timer: null,
  16185. timer2: null,
  16186. opertimer: null,
  16187. showType: '',
  16188. fileType: 0,
  16189. showPDF: false,
  16190. noteName: "",
  16191. evaJuri: [],
  16192. evalua: "",
  16193. eTitle: "",
  16194. eName: "",
  16195. eJson: {},
  16196. fid: "", //一级
  16197. sid: "", //二级
  16198. tid: "", //二级
  16199. typeMode: 1,
  16200. eJSONNum: 0,
  16201. Etype: 1,
  16202. data: {
  16203. meta: {
  16204. name: "example",
  16205. author: "dd@163.com",
  16206. version: "0.2",
  16207. },
  16208. format: "node_array",
  16209. data: [{ id: "root", isroot: true, topic: "" }],
  16210. },
  16211. fullDialogVisible: false,
  16212. fulltype: "",
  16213. fullUrl: "",
  16214. commentIndexJson: {},
  16215. Stbodywidth: 0,
  16216. ispzType: 0,
  16217. pzType: 1,
  16218. wScore: 0,
  16219. scoreDetail: "",
  16220. videoStart: false,
  16221. recorder: null,
  16222. groupJson: {},
  16223. islock: false,
  16224. groupJson2: {},
  16225. dialogVisibleGroup: false,
  16226. dialogVisibleGroup2: false,
  16227. updateGroupArray: [],
  16228. updateGroupUser: {},
  16229. deleteGroupUser: [],
  16230. deleteGroupArray: {},
  16231. checkChair: "",
  16232. checkDeleteGroup: [],
  16233. inviteCode: "",
  16234. courseGroupStudent: [],
  16235. courseGroupStudentUid: [],
  16236. courseGroup: {},
  16237. isGroup: false,
  16238. toolIndex: null,
  16239. tool: {},
  16240. isWorkTool: [
  16241. 16, 32, 57, 4, 45, 15, 1, 3, 6, 7, 26, 41, 47, 48, 52, 50, 40,
  16242. ], //, 40
  16243. videoJson: {},
  16244. videoType:0,
  16245. toolType: 0,
  16246. checktoolArray: [],
  16247. vChapterData: [],
  16248. isUpdateToolDetail: false,
  16249. isUpdateToolDetail1: false,
  16250. updateToolDetailInner: "",
  16251. checkboxList: [],
  16252. plIndex: "",
  16253. worksSName2: "",
  16254. worksSid: "",
  16255. wordCloudData: [],
  16256. isPickStudent: [],
  16257. pzStype: 1,
  16258. myAnList: {},
  16259. downLoading: false,
  16260. greyType: false,
  16261. correctWord: [],
  16262. EnglishVoiceDialog: false,
  16263. englishVoiceJson: {},
  16264. englishVoiceJsonWork:[],
  16265. scoreList:{
  16266. listdata:[],
  16267. isScoreList:[],
  16268. },
  16269. classRoomHelperWidth: '85px',
  16270. orgArray:[],
  16271. oidArray:[],
  16272. splitScreenData:{
  16273. isOpen:false,
  16274. userId:"",
  16275. uid:"",
  16276. myUid:"",
  16277. loading:false,
  16278. behavior:null,
  16279. },
  16280. confirmOpenDig:false,
  16281. confirmOpenDigData:'',
  16282. refreshKey: 0,
  16283. AIloading: [],
  16284. worksStudentCopy: [],
  16285. loopLoading: [],
  16286. markScoreVisible: false,
  16287. markScoretoolIndex: 0,
  16288. markScoreUid: "",
  16289. markScoreTit: {},
  16290. markfullscreen: false,
  16291. xianObj: ["DOCX", "MD", "TXT", "PDF", "JPG", "PNG"],
  16292. markScoreworksStudent: [],
  16293. finalMarkList: -1,
  16294. isaiNum: 0,
  16295. dialogVisibleTxt: false,
  16296. TxtMd: "",
  16297. languageSetting: 0, //0中文 1繁体 2英文
  16298. toolListS: [],
  16299. commentDetailCopy: "",
  16300. diffKey:"1",
  16301. getCourseGroupLoading: false,
  16302. selectSWorksLoading:false,
  16303. selectStudentLoading:false,
  16304. selectSLookLoading:false,
  16305. getPickLoading:false,
  16306. selectPzLoading:false,
  16307. getSplitScreenDataLoading:false,
  16308. };
  16309. },
  16310. watch:{
  16311. taskCount(newVal) {
  16312. console.log('newVal',newVal);
  16313. this.AIloading = [];
  16314. this.loopLoading = [];
  16315. this.worksStudent.forEach((e, index) => {
  16316. this.loopLoading.push({ loading: false });
  16317. this.AIloading.push([]);
  16318. e.forEach(k => {
  16319. this.AIloading[index].push({ loading: false, sco: 0 });
  16320. });
  16321. });
  16322. if(this.tType == 1){
  16323. this.refreshAssembly();
  16324. }
  16325. },
  16326. worksStudent: {
  16327. handler(newVal, oldVal) {
  16328. // const sum1 = newVal.reduce((total, subArr) => total + subArr.length, 0);
  16329. // const sum2 = oldVal.reduce((total, subArr) => total + subArr.length, 0);
  16330. // console.log('worksStudent',sum1,sum2);
  16331. if(JSON.stringify(newVal) != JSON.stringify(oldVal)){
  16332. this.AIloading = [];
  16333. this.loopLoading = [];
  16334. this.worksStudent.forEach((e, index) => {
  16335. this.loopLoading.push({ loading: false });
  16336. this.AIloading.push([]);
  16337. e.forEach(k => {
  16338. this.AIloading[index].push({ loading: false, sco: 0 });
  16339. });
  16340. });
  16341. if(this.tType == 1){
  16342. this.refreshAssembly();
  16343. }
  16344. }
  16345. },
  16346. deep:true,
  16347. }
  16348. },
  16349. methods: {
  16350. //查看应用中心作业
  16351. openCocoFlow(w){
  16352. this.$refs.cocoFlowDiaRef.openAppWork(w)
  16353. },
  16354. getAIJ() {
  16355. this.ajax.get(this.$store.state.api + "getAIJ", "").then(res => {
  16356. let oid = res.data[0];
  16357. let org = res.data[1];
  16358. let oidArray = [];
  16359. let orgArray = [];
  16360. oid.forEach(i => oidArray.push(i.oid));
  16361. org.forEach(i => orgArray.push(i.oid));
  16362. this.orgArray = orgArray;
  16363. this.oidArray = oidArray;
  16364. });
  16365. },
  16366. // 评分弹框全屏
  16367. markFullScreenBtn() {
  16368. this.markfullscreen = !this.markfullscreen;
  16369. },
  16370. insertMemorandum(_html) {
  16371. //保存行为操作
  16372. //variable
  16373. //btn
  16374. let params = [
  16375. {
  16376. uid: this.userid,
  16377. courseId: this.id + (this.tcid2 ? this.tcid2 : ""),
  16378. content: _html
  16379. }
  16380. ];
  16381. console.log(params);
  16382. this.ajax
  16383. .post(
  16384. this.$store.state.api + "insert_systemOperation_countdownBehavior",
  16385. params
  16386. )
  16387. .then(res => {
  16388. if (res.data == 1) {
  16389. console.log("保存操作成功");
  16390. } else {
  16391. console.log("保存操作失败");
  16392. }
  16393. })
  16394. .catch(e => {
  16395. console.log("保存操作失败");
  16396. console.log(e);
  16397. });
  16398. },
  16399. // 获取文档id
  16400. createFileid(url) {
  16401. let _this = this;
  16402. return new Promise((resolve, reject) => {
  16403. try {
  16404. _this.ajax
  16405. .put("https://gpt4.cocorobo.cn/upload_file_knowledge", {
  16406. url: url
  16407. })
  16408. .then(res => {
  16409. let _data = res.data.FunctionResponse;
  16410. if (_data.result && _data.result.id) {
  16411. resolve(_data.result.id);
  16412. } else {
  16413. resolve(1);
  16414. }
  16415. })
  16416. .catch(function(error) {
  16417. resolve(1);
  16418. });
  16419. } catch (e) {
  16420. resolve(1);
  16421. }
  16422. });
  16423. },
  16424. // 一键重置
  16425. resetLoopEva(con, tit, stage, task, toolIndex, toolDetail, worksStudent) {
  16426. let jude = false;
  16427. this.AIloading.forEach((e, index) => {
  16428. if (index == toolIndex) {
  16429. e.forEach(k => {
  16430. if (k.loading == true) jude = true;
  16431. });
  16432. }
  16433. });
  16434. if (jude) return this.$message.info("正在进行AI评分中,请稍后");
  16435. this.$confirm("确认一键重置?")
  16436. .then(_ => {
  16437. this.allEmptyScoBtn(con, stage, task, toolIndex);
  16438. })
  16439. .catch(_ => {});
  16440. },
  16441. // 一键重置
  16442. async allEmptyScoBtn(con, stage, task, toolIndex) {
  16443. for (let index = 0; index < con.length; index++) {
  16444. await this.allEmptySco(con[index].userid, stage, task, toolIndex);
  16445. }
  16446. this.$message.success("重置完成");
  16447. this.worksStudent.forEach((e, index) => {
  16448. if (toolIndex == index) {
  16449. console.log("6666");
  16450. e.forEach((i, inx) => {
  16451. let mk = `markSco${index}${inx}`;
  16452. this.$refs[mk][0].getData();
  16453. });
  16454. }
  16455. });
  16456. },
  16457. // 一键重置
  16458. allEmptySco(uid, stage, task, toolIndex) {
  16459. let params = [
  16460. {
  16461. cid: this.id,
  16462. uid: uid,
  16463. s: stage,
  16464. t: task,
  16465. tool: toolIndex ? toolIndex : ""
  16466. }
  16467. ];
  16468. return new Promise(resolve => {
  16469. this.ajax
  16470. .post(this.$store.state.api + "allWorkEmptyScoTwo", params)
  16471. .then(res => {
  16472. resolve(1);
  16473. })
  16474. .catch(err => {
  16475. console.error(err);
  16476. });
  16477. }).catch(error => {
  16478. console.log(error);
  16479. });
  16480. },
  16481. // AI评分循环打分
  16482. async loopEva(
  16483. con,
  16484. tit,
  16485. stage,
  16486. task,
  16487. toolIndex,
  16488. toolDetail,
  16489. taskDetail,
  16490. toolList
  16491. ) {
  16492. let jude = false;
  16493. this.AIloading.forEach((e, index) => {
  16494. if (index == toolIndex) {
  16495. e.forEach(k => {
  16496. if (k.loading == true) jude = true;
  16497. });
  16498. }
  16499. });
  16500. if (jude) return this.$message.info("请勿同时间进行AI评分");
  16501. this.AIloading.forEach((e, index) => {
  16502. if (index == toolIndex) {
  16503. e.forEach(k => {
  16504. k.loading = true;
  16505. });
  16506. }
  16507. });
  16508. this.loopLoading[toolIndex].loading = true;
  16509. let laws = "";
  16510. let std = "";
  16511. let text = "";
  16512. if (toolList && toolList.eList && toolList.eList.length) {
  16513. for (let i = 0; i < toolList.eList.length; i++) {
  16514. if (toolList.eList[i].isai == 1) {
  16515. laws += ` 细则${i}:${toolList.eList[i].rule}, \n`;
  16516. }
  16517. }
  16518. for (let i = 0; i < toolList.eList.length; i++) {
  16519. if (toolList.eList[i].isai == 1) {
  16520. let a = toolList.eList[i].detail;
  16521. if (isNaN(parseFloat(a)) && a) {
  16522. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16523. } else {
  16524. var result = a;
  16525. }
  16526. std += `纬度${i}:“${result}”, \n`;
  16527. }
  16528. }
  16529. for (let i = 0; i < toolList.eList.length; i++) {
  16530. if (toolList.eList[i].isai == 1) {
  16531. let a = toolList.eList[i].detail;
  16532. if (isNaN(parseFloat(a)) && a) {
  16533. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16534. } else {
  16535. var result = a;
  16536. }
  16537. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16538. }
  16539. }
  16540. } else {
  16541. let titRule = 0;
  16542. let titRule2 = 0;
  16543. tit.forEach((e, index) => {
  16544. if (!e.isai) {
  16545. e.isai = 1;
  16546. }
  16547. });
  16548. tit.forEach((e, index) => {
  16549. if (e.isai == 1) {
  16550. titRule2++;
  16551. if (e.rule) {
  16552. titRule++;
  16553. }
  16554. }
  16555. });
  16556. if (titRule != titRule2) {
  16557. this.AIloading.forEach((e, index) => {
  16558. if (index == toolIndex) {
  16559. e.forEach(k => {
  16560. k.loading = false;
  16561. });
  16562. }
  16563. });
  16564. this.loopLoading[toolIndex].loading = false;
  16565. this.$message.info("细则努力生成中,请稍候……");
  16566. return;
  16567. }
  16568. for (let i = 0; i < tit.length; i++) {
  16569. if (tit[i].isai == 1) {
  16570. laws += ` 细则${i}:${tit[i].rule}, \n`;
  16571. }
  16572. }
  16573. for (let i = 0; i < tit.length; i++) {
  16574. if (tit[i].isai == 1) {
  16575. let a = tit[i].detail;
  16576. if (isNaN(parseFloat(a)) && a) {
  16577. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16578. } else {
  16579. var result = a;
  16580. }
  16581. std += `纬度${i}:“${result}”, \n`;
  16582. }
  16583. }
  16584. for (let i = 0; i < tit.length; i++) {
  16585. if (tit[i].isai == 1) {
  16586. let a = tit[i].detail;
  16587. if (isNaN(parseFloat(a)) && a) {
  16588. var result = a.match(/[\u4e00-\u9fa5a-zA-Z]+/g).join("");
  16589. } else {
  16590. var result = a;
  16591. }
  16592. text += `{'${result}' : '评价等级0-5(数字)'},`;
  16593. }
  16594. }
  16595. }
  16596. let forAllList = [];
  16597. // console.log('con',con)
  16598. for (let i = 0; i < con.length; i++) {
  16599. let _fileid = "";
  16600. let wok = con[i].works;
  16601. // console.log('con',con);
  16602. // console.log('con[i].type',con[i].type);
  16603. if (con[i].type == 0 || con[i].type == 1 || con[i].type == 12) {
  16604. let a = wok.slice(wok.lastIndexOf(".") + 1);
  16605. if (this.xianObj.indexOf(a.toUpperCase()) != -1) {
  16606. _fileid = await this.createFileid(con[i].works);
  16607. } else {
  16608. this.AIloading[toolIndex][i].loading = false;
  16609. continue;
  16610. }
  16611. }
  16612. // console.log('con[i].type',con[i])
  16613. // console.log('con[i].type',con[i].type)
  16614. if (_fileid == 1 || con[i].type == 3) {
  16615. this.AIloading[toolIndex][i].loading = false;
  16616. continue;
  16617. }
  16618. let msg = ''
  16619. if(con[i].type == 20){
  16620. msg = `#NOTICE#
  16621. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16622. - 深入理解教育评价标准,准确判断对话内容是否符合要求。
  16623. - 具备较强的文本分析能力,从对话中有效提取评价相关信息。
  16624. - 拥有客观公正的态度,确保评分结果公平合理。
  16625. - 能够清晰准确地表达评语,使学生和教师易于理解。
  16626. - 熟悉各类学习作业的要求和重点,为评价提供依据。
  16627. - 掌握一定的教育教学知识,更好地分析对话在教育场景中的意义。
  16628. Language: ${this.getLang()}
  16629. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16630. Instruction: Based on the context, follow "Format example", write content.
  16631. #目标#
  16632. 你要结合<作业内容><评价标准>和该标准对应的<等级>写评语。
  16633. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16634. #评分资料#
  16635. 评价标准:${std}
  16636. 评价细则:${laws}
  16637. 等级:${text}
  16638. 作业内容:${_fileid ? "上传的文件内容" : con[i].works}
  16639. 具体你步骤如下:
  16640. 1. 作业内容审查:仔细阅读需要评价的作业内容,标记出可能与评价相关的部分,如知识点的回答准确性、回答的完整性、语言表达的规范性等。
  16641. 2. 掌握评价标准:阅读理解并掌握评价标准的结构与内容,包括评价维度、不同等级以及对应的评价细则的内容为评价标准。
  16642. 3. 评分计算:针对提取的作业内容按照确定的评价标准,对标记出的评价相关部分进行量化打分,输出评分结果。
  16643. 4. 评语生成:根据评分结果和对话中的具体情况,撰写评语,指出优点和不足之处,以帮助学生自查作业并为教师提供评价和指导依据。
  16644. ### 理论框架
  16645. ### 教育目标分类理论
  16646. 1. 基本原理:
  16647. - 将教育目标按照不同的层次分类,如认知领域、情感领域和动作技能领域等。
  16648. - 有助于明确教学活动期望达成的目标类型。
  16649. - 为评价教学成果提供了分类框架。
  16650. 2. 具体应用:
  16651. - 分析对话中涉及的目标类型,判断是否符合预期的教育目标。
  16652. - 依据不同目标类型的要求,评估对话对学生相应能力的促进作用。
  16653. - 对比不同对话内容在目标达成度上的差异进行评分。
  16654. ### 教学评价理论
  16655. 1. 基本原理:
  16656. - 关注教学过程和结果的评价,包括对教师教学行为和学生学习成果的评价。
  16657. - 从多个维度进行评价,如教学内容、教学方法、学习效果等。
  16658. - 强调评价的客观性、全面性和发展性。
  16659. 2. 具体应用:
  16660. - 从对话中提取与教学内容、方法相关的信息进行评价。
  16661. - 考量对话对学生学习效果的影响来给出评分。
  16662. - 根据评价结果提出改进和发展的建议。
  16663. ### 对话分析理论
  16664. 1. 基本原理:
  16665. - 着重对对话结构、话语功能、交互模式等进行分析。
  16666. - 揭示对话中的信息流动、话语权分配等情况。
  16667. - 有助于理解对话参与者之间的关系和互动效果。
  16668. 2. 具体应用:
  16669. - 剖析“小可ai助手”与学生对话的结构合理性。
  16670. - 分析话语功能是否有助于学习和评价目的。
  16671. - 根据交互模式判断对话是否有利于学生参与和学习,从而给出评分。
  16672. #输出格式#
  16673. [${text}{'comment':'评语(150个汉字左右)'}]
  16674. 注意检查输出评语不超过50字`
  16675. }else{
  16676. msg = `NOTICE
  16677. Role: 你是一个资深的教师,你有丰富的项目式学习、跨学科学习、STEAM导师经验,你要对学生的评价高度负责。
  16678. Language: ${this.getLang()}
  16679. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced the "Format example".
  16680. Instruction: Based on the context, follow "Format example", write content.
  16681. #目标#
  16682. 你要根据“六级评价细则”点评学生作品,并生成需要的JSON数据。
  16683. 你要根据<评价细则>和<作业内容>的相关性评价作业,判断该作业属于六级中的哪个等级。
  16684. 你要结合<评价标准><评价细则>和<你判断的等级>写评语。
  16685. 如果作业内容与评价细则无关,则直接评为0星。如果作业内容与<任务描述>或<工具描述>一致或者相似,则直接评为0星,并输出评语“期待看到你自己的想法!必要时,可以请教老师哦~”
  16686. ${con[i].type == 0 ? "提取图片内容进行评价" : ""}
  16687. #评分资料#
  16688. 评价标准:${std}
  16689. 评价细则:${laws}
  16690. 作业内容:${_fileid ? "上传的文件内容" : JSON.parse(con[i].works).text}
  16691. 任务描述:${taskDetail}
  16692. 工具描述:${toolDetail}
  16693. #输出要求#
  16694. 输出每个评价标准角度的“等级”和作业的综合性“评语”。
  16695. “评语”控制在150字左右。
  16696. 评价标准要按原样输出,严格按照输出格式输出json格式。只输出json格式的内容,其他内容不要输出!
  16697. #输出格式#
  16698. [${text}{'comment':'评语(150个汉字左右)'}]
  16699. `;
  16700. }
  16701. let mk = `markSco${toolIndex}${i}`;
  16702. let mkAwit = this.$refs[mk][0].aiupdetaSco(
  16703. msg,
  16704. con[i].userid,
  16705. stage,
  16706. task,
  16707. _fileid,
  16708. con[i].type
  16709. );
  16710. forAllList.push(mkAwit);
  16711. }
  16712. Promise.all(forAllList)
  16713. .then(values => {
  16714. console.log("values", values);
  16715. this.$message({
  16716. message: "评价成功",
  16717. type: "success"
  16718. });
  16719. // this.refreshKey++
  16720. // this.worksStudent.forEach((e,index)=>{
  16721. // if(toolIndex == index){
  16722. // e.forEach((i,inx)=>{
  16723. // let mk = `markSco${index}${inx}`
  16724. // this.$refs[mk][0].getData()
  16725. // })
  16726. // }
  16727. // })
  16728. this.AIloading[toolIndex].forEach(e => {
  16729. e.loading = false;
  16730. });
  16731. this.loopLoading[toolIndex].loading = false;
  16732. })
  16733. .catch(reason => {
  16734. console.error("reasonreasonreasonreasonreason", reason);
  16735. // 输出“失败原因”
  16736. });
  16737. },
  16738. // 获取评价细则
  16739. againEva(i, k) {
  16740. let msg = `NOTICE
  16741. Role: 你是一个专业的项目式学习导师,你要根据制定标准资料中的评价维度和维度描述制定具体的评价细则。
  16742. Language: ${this.getLang()}
  16743. ATTENTION: Use '##' to SPLIT SECTIONS, not '#'. Output format carefully referenced "Format example".
  16744. Instruction: Based on the context, follow "Format example", write content.
  16745. #Context
  16746. ##要求
  16747. 根据<评价维度>和<维度描述>,制定具体的评价细则。
  16748. 具体的评价细则分为6级——0星,1星,2星,3星,4星,5星。
  16749. ##制定标准资料
  16750. 评价维度:${
  16751. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].value
  16752. }
  16753. 维度描述:${
  16754. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].detail
  16755. }
  16756. # Format example
  16757. ==
  16758. 0 星,作业内容与作业要求无关;
  16759. 1 星,没有识别问题和需求;
  16760. 2 星,问题或需求没有被清晰理解或准确识别;
  16761. 3 星,问题或需求的一部分被识别;
  16762. 4 星,问题或需求的大部分被识别;
  16763. 5 星,问题或需求都被识别。
  16764. ==
  16765. `;
  16766. let params = {
  16767. assistant_id: "f8e1ebb2-2e0d-11ef-8bf4-12e77c4cb76b",
  16768. message: [
  16769. { type: "text", text: msg.replaceAll("\n", " ").replaceAll("*", "") }
  16770. ],
  16771. session_name: uuidv4(),
  16772. userId: this.userid,
  16773. file_ids: [],
  16774. model: "gpt-4o-2024-11-20"
  16775. };
  16776. // console.log('params',params);
  16777. this.ajax
  16778. .post("https://gpt4.cocorobo.cn/ai_agent_park_chat", params)
  16779. .then(response => {
  16780. let data = response.data.FunctionResponse;
  16781. // console.log("data", data);
  16782. if (data.message) {
  16783. let content = data.message;
  16784. var regex = new RegExp("==([^=]+)==");
  16785. let match = content.match(regex);
  16786. if (match) {
  16787. content = match[1].trim().replaceAll(" ", "");
  16788. // 获取匹配到的内容并去除两端空格
  16789. // console.log('contentInsideDoubleEquals', content);
  16790. if (
  16791. content.indexOf("0星") == -1 ||
  16792. content.indexOf("2星") == -1 ||
  16793. content.indexOf("3星") == -1 ||
  16794. content.indexOf("4星") == -1 ||
  16795. content.indexOf("5星") == -1
  16796. ) {
  16797. console.log("未有星级。");
  16798. this.againEva(i, k);
  16799. return;
  16800. }
  16801. // return
  16802. } else {
  16803. console.log("未找到匹配的内容。");
  16804. this.againEva(i, k);
  16805. return;
  16806. }
  16807. let elist = JSON.parse(
  16808. JSON.stringify(
  16809. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k]
  16810. )
  16811. );
  16812. // this.chapInfoList[0].chapterInfo[0].taskJson[i].eList[k].rule=JSON.parse(JSON.stringify(content.replaceAll("#", "")))
  16813. elist.rule = JSON.parse(
  16814. JSON.stringify(content.replaceAll("#", ""))
  16815. );
  16816. this.$set(
  16817. this.chapInfoList[0].chapterInfo[0].taskJson[i].eList,
  16818. k,
  16819. elist
  16820. );
  16821. this.$forceUpdate();
  16822. let params2 = [
  16823. {
  16824. cid: this.id,
  16825. chapters: JSON.stringify(this.chapInfoList),
  16826. uid: this.userid,
  16827. unitIndex: this.courseType
  16828. }
  16829. ];
  16830. this.ajax
  16831. .post(this.$store.state.api + "updateWorkNew4", params2)
  16832. .then(res => {
  16833. this.getCourseDetail(2);
  16834. this.$forceUpdate();
  16835. })
  16836. .catch(err => {
  16837. this.$message.error("网络不佳");
  16838. console.error(err);
  16839. });
  16840. // 进行进一步处理或解析outputContent
  16841. // } else {
  16842. // console.log("No match found for # Output section.");
  16843. // }
  16844. }
  16845. })
  16846. .catch(error => {
  16847. console.log(error);
  16848. });
  16849. },
  16850. // 关闭评分弹框
  16851. markScorehandleClose(done) {
  16852. // this.refreshKey++
  16853. this.worksStudent.forEach((e, index) => {
  16854. if (this.markScoretoolIndex == index) {
  16855. e.forEach((i, inx) => {
  16856. let mk = `markSco${index}${inx}`;
  16857. if (this.$refs[mk] && this.$refs[mk][0]) {
  16858. this.$refs[mk][0].getData();
  16859. }
  16860. });
  16861. }
  16862. });
  16863. done();
  16864. },
  16865. // 关闭txtMd预览弹框
  16866. handleCloseTxt(done) {
  16867. this.TxtMd = "";
  16868. done();
  16869. },
  16870. // Txt,Md作业查看
  16871. lookTxt(val) {
  16872. this.dialogVisibleTxt = true;
  16873. this.TxtMd = "";
  16874. getFile(val).then(res => {
  16875. this.TxtMd = res.data;
  16876. });
  16877. },
  16878. // 组件刷新
  16879. refreshAssembly() {
  16880. this.refreshKey++;
  16881. },
  16882. updateLoading(payload) {
  16883. this.AIloading[payload.val][payload.val2].loading = payload.val3;
  16884. },
  16885. handleShow(toolIndex, val) {
  16886. let mk = `markSco${toolIndex}${val}`;
  16887. // console.log(mk);
  16888. this.$refs[mk][0].getData();
  16889. },
  16890. //点击评分显示评分框, AI循环评分val等于1时正在评分,不让重复点击
  16891. markScoreDig2(uname, worksStudent, uid, tidx, titlist, val = 0, toolList) {
  16892. // console.log('this.AIloading',this.AIloading)
  16893. let jude = false;
  16894. this.AIloading.forEach((e, index) => {
  16895. if (index == tidx) {
  16896. e.forEach(k => {
  16897. if (k.loading == true) jude = true;
  16898. });
  16899. }
  16900. });
  16901. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16902. if (val) return;
  16903. // console.log(uname,worksStudent,uid,tidx,titlist)
  16904. this.markScoreTit = titlist;
  16905. this.markScoreUid = uid;
  16906. this.toolListS = toolList;
  16907. this.markScoretoolIndex = tidx;
  16908. this.markScoreworksStudent = worksStudent;
  16909. this.markfullscreen = false;
  16910. this.markScoreVisible = true;
  16911. if (this.tType == 1) {
  16912. this.insertMemorandum(
  16913. `查看<span class="variable">${uname}</span>的作业`
  16914. );
  16915. }
  16916. },
  16917. // 点击markScore显示评分框
  16918. markScoreDig(data) {
  16919. // console.log('data',data)
  16920. let jude = false;
  16921. this.AIloading.forEach((e, index) => {
  16922. if (index == data.val2) {
  16923. e.forEach(k => {
  16924. if (k.loading == true) jude = true;
  16925. });
  16926. }
  16927. });
  16928. if (jude) return this.$message.info("正在AI评价进程中请稍后");
  16929. this.markScoreTit = data.tit;
  16930. this.markScoreUid = data.val;
  16931. this.markScoretoolIndex = data.val2;
  16932. this.markfullscreen = false;
  16933. this.markScoreVisible = true;
  16934. this.insertMemorandum(
  16935. `查看<span class="variable">${data.uname}</span>的作业`
  16936. );
  16937. },
  16938. // 刷新其他组件分数
  16939. refreshOther(v) {
  16940. // console.log('v',v)
  16941. this.AIloading[v.tid].forEach((e, i) => {
  16942. if (i == v.wid) {
  16943. e.loading = false;
  16944. }
  16945. });
  16946. // this.worksStudent.forEach((e,index)=>{
  16947. // if(toolIndex != index){
  16948. // e.forEach((i,inx)=>{
  16949. // let mk = `markSco${index}${inx}`
  16950. // this.$refs[mk][0].getData()
  16951. // })
  16952. // }
  16953. // })
  16954. },
  16955. updateDocSco(payload) {
  16956. // console.log('payload',payload)
  16957. this.AIloading[payload.val][payload.val2].sco = payload.val3;
  16958. },
  16959. gx(){
  16960. this.$forceUpdate();
  16961. },
  16962. isUpdateCorrect(t,p){
  16963. if(this.greyType == false){
  16964. this.isUpdateText = t;
  16965. this.greyType = true;
  16966. }else{
  16967. if(p == 1){
  16968. this.newEnglishList.engText = this.isUpdateText;
  16969. }else if(p == 2){
  16970. this.oldEnglishJson1.engText = this.isUpdateText;
  16971. }else if(p == 3){
  16972. this.newEnglishList.engText = this.isUpdateText;
  16973. }else{
  16974. this.newEnglishList1[this.newEngIndex].cWork.engText = this.isUpdateText;
  16975. }
  16976. this.greyType = false
  16977. }
  16978. },
  16979. aiCorrect(t,p){
  16980. let aiText = "";
  16981. const loading = this.$loading.service({
  16982. background: "rgba(255, 255, 255)",
  16983. target: document.querySelectorAll(".loadingText")[0],
  16984. });
  16985. let param = {
  16986. model: "gpt-3.5-turbo",
  16987. temperature: 0,
  16988. max_tokens: 2048,
  16989. top_p: 1,
  16990. frequency_penalty: 0,
  16991. presence_penalty: 0,
  16992. messages: [
  16993. {
  16994. role: "user",
  16995. content:
  16996.  `Role: 你是一名小学英语作文的老师,根据这篇文章的内容你去批改这篇文章,然后仅输出一篇纠错好的文章。文章:${t}`,
  16997. },
  16998. ],
  16999. uid: this.userid,
  17000. stream: false,
  17001. };
  17002. this.ajax.post("https://gpt.cocorobo.cn/chat", param).then(
  17003. (res) => {
  17004. if (
  17005. res.data.FunctionResponse &&
  17006. res.data.FunctionResponse.result &&
  17007. res.data.FunctionResponse.result == "无效请求,请重新发起对话"
  17008. ) {
  17009. this.$message.error("你的作文内容太长,无法使用Ai批注!");
  17010. return;
  17011. }
  17012. aiText =
  17013. res.data.FunctionResponse.choices[0].message.content;
  17014. aiText = aiText.replace(/%/g,"%25");
  17015. // let w = "";
  17016. // let a = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,aiText);
  17017. // for(var k = 0;k<a.length;k++){
  17018. // //diffWordsWithSpace
  17019. // if(a.length > 1){
  17020. // if(a[k].added == true){
  17021. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  17022. // }else if(a[k].removed == true){
  17023. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  17024. // }else{
  17025. // w += '<span>' + a[k].value + '</span>';
  17026. // }
  17027. // }else{
  17028. // if(p == 1){
  17029. // w = this.newEnglishList.engText;
  17030. // }else if(p == 2){
  17031. // w = this.oldEnglishJson1.engText;
  17032. // }else if(p == 3){
  17033. // w = this.newEnglishList.engText;
  17034. // }else{
  17035. // w = this.newEnglishList1[this.newEngIndex].cWork.engText;
  17036. // }
  17037. // }
  17038. // }
  17039. if(p == 1){
  17040. this.newEnglishList.engText = aiText;
  17041. }else if(p == 2){
  17042. this.oldEnglishJson1.engText = aiText;
  17043. }else if(p == 3){
  17044. this.newEnglishList.engText = aiText;
  17045. }else{
  17046. this.newEnglishList1[this.newEngIndex].cWork.engText = aiText;
  17047. }
  17048. loading.close();
  17049. },
  17050. (err) => {
  17051. console.log(err);
  17052. loading.close();
  17053. }
  17054. );
  17055. },
  17056. addToolChoose() {
  17057. if (!this.checktoolArray.length) {
  17058. this.$message.error("请选择要添加的任务");
  17059. return;
  17060. }
  17061. if (
  17062. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17063. this.taskCount
  17064. ].toolChoose[0].tool.length
  17065. ) {
  17066. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17067. this.taskCount
  17068. ].toolChoose[0].tool = this.checktoolArray;
  17069. } else {
  17070. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17071. this.taskCount
  17072. ].toolChoose.push({
  17073. tool: this.checktoolArray,
  17074. toolDetail: "",
  17075. toolType: 0,
  17076. askCount: 1,
  17077. askTitle: "",
  17078. askJson: [{ askstitle: "", askItem: 1, checkList: [] }],
  17079. });
  17080. }
  17081. let params = [
  17082. {
  17083. cid: this.id,
  17084. chapters: JSON.stringify(this.chapInfoList),
  17085. uid: this.userid,
  17086. unitIndex: this.courseType,
  17087. },
  17088. ];
  17089. this.ajax
  17090. .post(this.$store.state.api + "updateWorkNew4", params)
  17091. .then((res) => {
  17092. this.$message({
  17093. message: "添加成功",
  17094. type: "success",
  17095. });
  17096. this.checktoolArray = [];
  17097. this.getCourseDetail(2);
  17098. this.checkBz(
  17099. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17100. this.taskCount
  17101. ].toolChoose.length - 1
  17102. );
  17103. this.toolDialogVisible = false;
  17104. this.refreshCourse();
  17105. this.$forceUpdate();
  17106. })
  17107. .catch((err) => {
  17108. console.error(err);
  17109. });
  17110. },
  17111. checkBz(index) {
  17112. this.isUpdateToolDetail = false;
  17113. this.$forceUpdate();
  17114. setTimeout(() => {
  17115. document.scrollingElement.scrollTop =
  17116. document.querySelectorAll(".filebox")[index].offsetTop +
  17117. document.querySelector(".student_body").offsetTop;
  17118. }, 500);
  17119. },
  17120. updateToolDetail(i, type) {
  17121. if (!this.isUpdateToolDetail1 && type == 2 && (this.courseDetail.userid == this.userid || (this.courseDetail.course_teacher && this.courseDetail.course_teacher.indexOf(this.userid) != -1))) {
  17122. this.toolDetailIndex = i
  17123. this.isUpdateToolDetail1 = true;
  17124. setTimeout(() => {
  17125. this.updateToolDetailInner = JSON.parse(
  17126. JSON.stringify(
  17127. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17128. this.taskCount
  17129. ].toolChoose[i].toolDetail
  17130. )
  17131. );
  17132. document.querySelector(".checkTextArea").focus();
  17133. }, 0);
  17134. } else if((this.isUpdateToolDetail1 && type != 2)){
  17135. // this.toolDetailIndex = i;
  17136. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17137. this.taskCount
  17138. ].toolChoose[i].toolDetail = JSON.parse(
  17139. JSON.stringify(this.updateToolDetailInner)
  17140. );
  17141. let params = [
  17142. {
  17143. cid: this.id,
  17144. chapters: JSON.stringify(this.chapInfoList),
  17145. uid: this.userid,
  17146. unitIndex: this.courseType,
  17147. },
  17148. ];
  17149. this.ajax
  17150. .post(this.$store.state.api + "updateWorkNew4", params)
  17151. .then((res) => {
  17152. this.isUpdateToolDetail1 = false;
  17153. this.$message({
  17154. message: "修改成功",
  17155. type: "success",
  17156. });
  17157. this.toolDetailIndex = null;
  17158. this.updateToolDetailInner = "";
  17159. this.getCourseDetail(2);
  17160. this.$forceUpdate();
  17161. })
  17162. .catch((err) => {
  17163. console.error(err);
  17164. });
  17165. } else if((this.isUpdateToolDetail1 && type == 2)){
  17166. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17167. this.taskCount
  17168. ].toolChoose[this.toolDetailIndex].toolDetail = JSON.parse(
  17169. JSON.stringify(this.updateToolDetailInner)
  17170. );
  17171. let params = [
  17172. {
  17173. cid: this.id,
  17174. chapters: JSON.stringify(this.chapInfoList),
  17175. uid: this.userid,
  17176. unitIndex: this.courseType,
  17177. },
  17178. ];
  17179. this.ajax
  17180. .post(this.$store.state.api + "updateWorkNew4", params)
  17181. .then((res) => {
  17182. this.$message({
  17183. message: "修改成功",
  17184. type: "success",
  17185. });
  17186. this.toolDetailIndex = i;
  17187. this.isUpdateToolDetail1 = true;
  17188. setTimeout(() => {
  17189. this.updateToolDetailInner = JSON.parse(
  17190. JSON.stringify(
  17191. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  17192. this.taskCount
  17193. ].toolChoose[i].toolDetail
  17194. )
  17195. );
  17196. document.querySelector(".checkTextArea").focus();
  17197. }, 0);
  17198. this.getCourseDetail(2);
  17199. this.$forceUpdate();
  17200. })
  17201. .catch((err) => {
  17202. console.error(err);
  17203. });
  17204. }
  17205. },
  17206. jumpGj(i, j, k, l) {
  17207. // this.refreshAssembly();
  17208. for (var z = 0; z < this.navList.length; z++) {
  17209. for (var q = 0; q < this.navList[z].task.length; q++) {
  17210. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  17211. this.navList[z].task[q].tool[w].isTool = false;
  17212. }
  17213. }
  17214. }
  17215. console.log(this.navList);
  17216. this.navList[i].task[j].tool[k].isTool =
  17217. !this.navList[i].task[j].tool[k].isTool;
  17218. var a = document.scrollingElement;
  17219. let target = document.querySelector(`#gj${k}`);
  17220. if (target) {
  17221. // target.scrollIntoView(true);
  17222. // setTimeout(() => {
  17223. // a.scrollTop = a.scrollTop - 150;
  17224. // }, 0);
  17225. target.scrollIntoView();
  17226. setTimeout(()=>{
  17227. let scrollBody = document.querySelector('.body_student').parentElement
  17228. scrollBody.scrollTop = scrollBody.scrollTop - 100
  17229. }, 0);
  17230. }
  17231. this.navId = ""
  17232. let flag = this.courseType == i;
  17233. let flag2 = this.taskCount == j
  17234. if (l) {
  17235. this.courseType = i;
  17236. // this.navId = l;
  17237. this.taskCount = j;
  17238. this.selectPz();
  17239. this.getHomeWork();
  17240. this.getCourseDetail(2);
  17241. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount,toolType:k}})
  17242. if(flag){
  17243. if(flag2){
  17244. this.insertMemorandum(`选择<span class="variable">工具${k+1}:${this.toolsList[this.navList[i].task[j].tool[k].tool]}</span>`)
  17245. }else{
  17246. 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>`)
  17247. }
  17248. }else{
  17249. 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>`)
  17250. }
  17251. }
  17252. // var b = this.$refs["bz" + k][0];
  17253. // a.scrollTop = b.offsetTop;
  17254. },
  17255. addTools2(i) {
  17256. if (i == 4) {
  17257. // this.openTools2(4);
  17258. this.$message.error("暂未开放");
  17259. return;
  17260. }
  17261. if (i == 45) {
  17262. // this.openTools2(45);
  17263. this.$message.error("暂未开放");
  17264. return;
  17265. }
  17266. if (i == 47) {
  17267. // this.openTools2(47);
  17268. this.$message.error("暂未开放");
  17269. return;
  17270. }
  17271. if (i == 49) {
  17272. // this.openTools2(49);
  17273. this.$message.error("暂未开放");
  17274. return;
  17275. }
  17276. if (i == 62) {
  17277. // this.openTools(itemTaskIndex, 62, toolIndex);
  17278. this.$message.error("暂未开放");
  17279. return;
  17280. }
  17281. if (i == 15) {
  17282. // this.openTools(itemTaskIndex, 15, toolIndex);
  17283. this.$message.error("暂未开放");
  17284. return;
  17285. }
  17286. if (i == 40) {
  17287. // this.openTools(itemTaskIndex, 40, toolIndex);
  17288. this.$message.error("暂未开放");
  17289. return;
  17290. }
  17291. if (i == 41) {
  17292. // this.openTools(itemTaskIndex, 41, toolIndex);
  17293. this.$message.error("暂未开放");
  17294. return;
  17295. }
  17296. if (i == 42) {
  17297. // this.openTools(itemTaskIndex, 42, toolIndex);
  17298. this.$message.error("暂未开放");
  17299. return;
  17300. }
  17301. if (this.checktoolArray.length > 0) {
  17302. if (this.checktoolArray.indexOf(i) != -1) {
  17303. this.checktoolArray.splice(this.checktoolArray.indexOf(i), 1);
  17304. } else {
  17305. this.checktoolArray = [];
  17306. this.checktoolArray.push(i);
  17307. }
  17308. } else {
  17309. this.checktoolArray.push(i);
  17310. }
  17311. this.$forceUpdate();
  17312. },
  17313. jump() {
  17314. window.topU.postMessage({ tools: "43" }, "*");
  17315. },
  17316. getUpdateMore(f, checkboxList, searchTN, index) {
  17317. this.dialogVisibleMember = f;
  17318. this.checkboxList = checkboxList;
  17319. this.worksSName2 = JSON.parse(JSON.stringify(searchTN));
  17320. this.plIndex = index;
  17321. },
  17322. setPlname(a) {
  17323. if (this.plworkFile.length) {
  17324. this.plworkFile[this.plIndex].username = a;
  17325. } else {
  17326. this.worksSName = a;
  17327. }
  17328. this.dialogVisibleMember = false;
  17329. },
  17330. previewImg(url,w) {
  17331. this.$hevueImgPreview(url);
  17332. if(w){
  17333. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  17334. }
  17335. },
  17336. checkImg(list) {
  17337. if (!list.length) {
  17338. return;
  17339. }
  17340. this.$hevueImgPreview({
  17341. multiple: true, // 开启多图预览模式
  17342. imgList: list, // 需要预览的多图数组
  17343. });
  17344. },
  17345. change(val) {
  17346. console.log(val);
  17347. },
  17348. goTo(path) {
  17349. this.$router.push(path);
  17350. },
  17351. handlePictureCardPreview(url) {
  17352. this.dialogImageUrl = url;
  17353. this.pictureDialog = true;
  17354. },
  17355. clean(type) {
  17356. if (type == 1) {
  17357. this.studyJuri[0].cover.splice(0, 1);
  17358. } else if (type == 2) {
  17359. this.studyJuri[0].upVedio.splice(0, 1);
  17360. } else {
  17361. this.studyJuri[0].upFile.splice(0, 1);
  17362. }
  17363. },
  17364. clean2(index) {
  17365. this.plworkFile.splice(index, 1);
  17366. },
  17367. handleClose(done) {
  17368. if (this.videoDetail.sources && this.videoDetail.sources[0]) {
  17369. this.videoDetail.sources[0].src = "";
  17370. }
  17371. this.commentIndexJson = {};
  17372. this.changeSplitScreenBehavior({code:99})
  17373. done();
  17374. },
  17375. fullTools() {
  17376. this.full = !this.full;
  17377. },
  17378. imgChange(file, fileList, type) {
  17379. if (type == 1) {
  17380. var _tmp = this.studyJuri[0].cover;
  17381. } else if (type == 2) {
  17382. var _tmp = this.studyJuri[0].upVedio;
  17383. } else {
  17384. var _tmp = this.studyJuri[0].upFile;
  17385. }
  17386. this.noneBtnImg = _tmp.length >= 1;
  17387. },
  17388. setContent(bool) {
  17389. this.contentDialog = bool;
  17390. if (bool && this.mlDialog && document.querySelector(".workd_media")) {
  17391. document.querySelector(".workd_media").style.height = "650px";
  17392. } else if (document.querySelector(".workd_media")) {
  17393. document.querySelector(".workd_media").style.height = "auto";
  17394. }
  17395. },
  17396. setContent2(bool) {
  17397. this.mlDialog = bool;
  17398. if (
  17399. bool &&
  17400. this.contentDialog &&
  17401. document.querySelector(".workd_media")
  17402. ) {
  17403. document.querySelector(".workd_media").style.height = "650px";
  17404. } else if (document.querySelector(".workd_media")) {
  17405. document.querySelector(".workd_media").style.height = "auto";
  17406. }
  17407. },
  17408. openToolAll() {
  17409. this.toolDialogVisible = true;
  17410. },
  17411. addImg(e) {
  17412. var el = e.currentTarget;
  17413. // this.$message.success('触发上传')
  17414. el.getElementsByTagName("input")[0].click();
  17415. e.target.value = "";
  17416. },
  17417. addSelectAnswer() {
  17418. let params = [
  17419. {
  17420. uid: this.userid,
  17421. cid: this.id,
  17422. stage: this.courseType,
  17423. task: this.taskCount,
  17424. tool: this.toolindex,
  17425. content: this.selectAnswer.answer,
  17426. type: 7,
  17427. },
  17428. ];
  17429. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17430. this.homeWorkLoading = true
  17431. this.ajax
  17432. .post(this.$store.state.api + "addCourseWorks", params)
  17433. .then((res) => {
  17434. this.$message({
  17435. message: "提交成功",
  17436. type: "success",
  17437. });
  17438. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, "success")
  17439. setTimeout(() => {
  17440. this.homeWorkLoading = false
  17441. }, 500);
  17442. this.dialogVisibleSelect = false;
  17443. // this.selectAnswer = {};
  17444. this.selectSWorks();
  17445. this.selectStudent();
  17446. })
  17447. .catch((err) => {
  17448. setTimeout(() => {
  17449. this.homeWorkLoading = false
  17450. }, 500);
  17451. this.$message.error("提交失败");
  17452. console.error(err);
  17453. this.addOp3('1', "", { courseid: this.id,tool:'选择匹配',data: JSON.stringify(this.selectAnswer.answer),type: "course_tool_sub" }, err)
  17454. });
  17455. },
  17456. addSelectAnswerTeacher() {
  17457. let params = [
  17458. {
  17459. uid: this.sStudent.userid,
  17460. cid: this.id,
  17461. stage: this.courseType,
  17462. task: this.taskCount,
  17463. tool: this.toolindex,
  17464. content: this.selectAnswer.answer,
  17465. type: 7,
  17466. },
  17467. ];
  17468. this.ajax
  17469. .post(this.$store.state.api + "addCourseWorks", params)
  17470. .then((res) => {
  17471. this.$message({
  17472. message: "提交成功",
  17473. type: "success",
  17474. });
  17475. this.dialogVisibleSelectTeacher = false;
  17476. // this.selectAnswer = {};
  17477. this.selectSWorks();
  17478. this.selectStudent();
  17479. })
  17480. .catch((err) => {
  17481. this.$message.error("提交失败");
  17482. console.error(err);
  17483. });
  17484. },
  17485. addSenWorks() {
  17486. for (var i = 0; i < this.sentenceList.length; i++) {
  17487. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17488. if (
  17489. this.sentenceList[i].chooseSenList[j] == undefined ||
  17490. this.sentenceList[i].chooseSenList[j] == ""
  17491. ) {
  17492. this.$message.error("请将答案填写完整!");
  17493. return;
  17494. }
  17495. }
  17496. }
  17497. let params = [
  17498. {
  17499. uid: this.userid,
  17500. cid: this.id,
  17501. stage: this.courseType,
  17502. task: this.taskCount,
  17503. tool: this.toolindex,
  17504. content: JSON.stringify(this.sentenceList),
  17505. type: 9,
  17506. },
  17507. ];
  17508. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17509. this.homeWorkLoading = true
  17510. this.ajax
  17511. .post(this.$store.state.api + "addCourseWorks", params)
  17512. .then((res) => {
  17513. this.$message({
  17514. message: "提交成功",
  17515. type: "success",
  17516. });
  17517. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, "success")
  17518. setTimeout(() => {
  17519. this.homeWorkLoading = false
  17520. }, 500);
  17521. this.dialogVisibleSentence = false;
  17522. // this.selectAnswer = {};
  17523. this.selectSWorks();
  17524. this.selectStudent();
  17525. })
  17526. .catch((err) => {
  17527. setTimeout(() => {
  17528. this.homeWorkLoading = false
  17529. }, 500);
  17530. this.$message.error("提交失败");
  17531. console.error(err);
  17532. this.addOp3('1', "", { courseid: this.id,tool:'排序',data: JSON.stringify(this.sentenceList),type: "course_tool_sub" }, err)
  17533. });
  17534. },
  17535. addSenWorksTeacher() {
  17536. for (var i = 0; i < this.sentenceList.length; i++) {
  17537. for (var j = 0; j < this.sentenceList[i].chooseSenList.length; j++) {
  17538. if (
  17539. this.sentenceList[i].chooseSenList[j] == undefined ||
  17540. this.sentenceList[i].chooseSenList[j] == ""
  17541. ) {
  17542. this.$message.error("请将答案填写完整!");
  17543. return;
  17544. }
  17545. }
  17546. }
  17547. let params = [
  17548. {
  17549. uid: this.sStudent.userid,
  17550. cid: this.id,
  17551. stage: this.courseType,
  17552. task: this.taskCount,
  17553. tool: this.toolindex,
  17554. content: JSON.stringify(this.sentenceList),
  17555. type: 9,
  17556. },
  17557. ];
  17558. this.ajax
  17559. .post(this.$store.state.api + "addCourseWorks", params)
  17560. .then((res) => {
  17561. this.$message({
  17562. message: "提交成功",
  17563. type: "success",
  17564. });
  17565. this.dialogVisibleSentenceTeacher = false;
  17566. // this.selectAnswer = {};
  17567. this.selectSWorks();
  17568. this.selectStudent();
  17569. })
  17570. .catch((err) => {
  17571. this.$message.error("提交失败");
  17572. console.error(err);
  17573. });
  17574. },
  17575. returnTableText() {
  17576. this.$confirm("确定还原此模板吗?", "提示", {
  17577. confirmButtonText: "确定",
  17578. cancelButtonText: "取消",
  17579. type: "warning",
  17580. })
  17581. .then(() => {
  17582. this.tableJson = JSON.parse(JSON.stringify(this.tableJsonO));
  17583. })
  17584. .catch(() => {});
  17585. },
  17586. addTableWorks() {
  17587. let params = [
  17588. {
  17589. uid: this.userid,
  17590. cid: this.id,
  17591. stage: this.courseType,
  17592. task: this.taskCount,
  17593. tool: this.toolindex,
  17594. content: JSON.stringify(this.tableJson),
  17595. type: 10,
  17596. },
  17597. ];
  17598. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17599. this.homeWorkLoading = true
  17600. this.ajax
  17601. .post(this.$store.state.api + "addCourseWorks", params)
  17602. .then((res) => {
  17603. this.$message({
  17604. message: "提交成功",
  17605. type: "success",
  17606. });
  17607. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, "success")
  17608. setTimeout(() => {
  17609. this.homeWorkLoading = false
  17610. }, 500);
  17611. this.dialogVisibleTable = false;
  17612. // this.selectAnswer = {};
  17613. this.selectSWorks();
  17614. this.selectStudent();
  17615. })
  17616. .catch((err) => {
  17617. this.$message.error("提交失败");
  17618. console.error(err);
  17619. setTimeout(() => {
  17620. this.homeWorkLoading = false
  17621. }, 500);
  17622. this.addOp3('1', "", { courseid: this.id,tool:'表格',data:JSON.stringify(this.tableJson),type: "course_tool_sub" }, err)
  17623. });
  17624. },
  17625. tableRowClassName({ row, rowIndex }) {
  17626. if ((rowIndex + 1) % 2 === 0) {
  17627. return "even_row";
  17628. } else {
  17629. return "";
  17630. }
  17631. },
  17632. addTableWorksTeacher() {
  17633. let params = [
  17634. {
  17635. uid: this.sStudent.userid,
  17636. cid: this.id,
  17637. stage: this.courseType,
  17638. task: this.taskCount,
  17639. tool: this.toolindex,
  17640. content: JSON.stringify(this.tableJson),
  17641. type: 10,
  17642. },
  17643. ];
  17644. this.ajax
  17645. .post(this.$store.state.api + "addCourseWorks", params)
  17646. .then((res) => {
  17647. this.$message({
  17648. message: "提交成功",
  17649. type: "success",
  17650. });
  17651. this.dialogVisibleTableTeacher = false;
  17652. // this.selectAnswer = {};
  17653. this.selectSWorks();
  17654. this.selectStudent();
  17655. })
  17656. .catch((err) => {
  17657. this.$message.error("提交失败");
  17658. console.error(err);
  17659. });
  17660. },
  17661. returnWordText() {
  17662. this.$confirm("确定还原此模板吗?", "提示", {
  17663. confirmButtonText: "确定",
  17664. cancelButtonText: "取消",
  17665. type: "warning",
  17666. })
  17667. .then(() => {
  17668. this.wordJson = JSON.parse(JSON.stringify(this.wordJsonO));
  17669. })
  17670. .catch(() => {});
  17671. },
  17672. addWordWorks() {
  17673. let params = [
  17674. {
  17675. uid: this.userid,
  17676. cid: this.id,
  17677. stage: this.courseType,
  17678. task: this.taskCount,
  17679. tool: this.toolindex,
  17680. content: JSON.stringify(this.wordJson),
  17681. type: 13,
  17682. atool: 52,
  17683. },
  17684. ];
  17685. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17686. this.homeWorkLoading = true
  17687. this.ajax
  17688. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17689. .then((res) => {
  17690. this.$message({
  17691. message: "提交成功",
  17692. type: "success",
  17693. });
  17694. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, "success")
  17695. setTimeout(() => {
  17696. this.homeWorkLoading = false
  17697. }, 500);
  17698. this.dialogVisibleWord = false;
  17699. // this.selectAnswer = {};
  17700. this.selectSWorks();
  17701. this.selectStudent();
  17702. })
  17703. .catch((err) => {
  17704. this.$message.error("提交失败");
  17705. console.error(err);
  17706. setTimeout(() => {
  17707. this.homeWorkLoading = false
  17708. }, 500);
  17709. this.addOp3('1', "", { courseid: this.id,tool:'文档',data:JSON.stringify(this.wordJson),type: "course_tool_sub" }, err)
  17710. });
  17711. },
  17712. addWordWorksTeacher() {
  17713. let params = [
  17714. {
  17715. uid: this.sStudent.userid,
  17716. cid: this.id,
  17717. stage: this.courseType,
  17718. task: this.taskCount,
  17719. tool: this.toolindex,
  17720. content: JSON.stringify(this.wordJson),
  17721. type: 13,
  17722. atool: 52,
  17723. },
  17724. ];
  17725. this.ajax
  17726. .post(this.$store.state.api + "addCourseWorks3-2", params)
  17727. .then((res) => {
  17728. this.$message({
  17729. message: "提交成功",
  17730. type: "success",
  17731. });
  17732. this.dialogVisibleWordTeacher = false;
  17733. // this.selectAnswer = {};
  17734. this.selectSWorks();
  17735. this.selectStudent();
  17736. })
  17737. .catch((err) => {
  17738. this.$message.error("提交失败");
  17739. console.error(err);
  17740. });
  17741. },
  17742. addCourseWorksCopy(i) {
  17743. let arr = this.workStudent[this.toolindex].filter(e => {
  17744. return (e.userid = this.userid);
  17745. });
  17746. if (arr.length > 0) {
  17747. this.$confirm("再次提交会覆盖原有作业,并清空评分。", "提示", {
  17748. confirmButtonText: "确定",
  17749. cancelButtonText: "取消",
  17750. type: "warning"
  17751. })
  17752. .then(() => {
  17753. this.addCourseWorks(i);
  17754. })
  17755. .catch(() => {});
  17756. } else {
  17757. this.addCourseWorks(i);
  17758. }
  17759. },
  17760. addCourseWorks(i) {
  17761. var typesql;
  17762. if (this.fileType === 0) {
  17763. typesql = 1;
  17764. } else if (this.fileType === 1) {
  17765. typesql = 4;
  17766. } else if (this.fileType === 2) {
  17767. typesql = 5;
  17768. } else if (this.fileType === 3) {
  17769. typesql = 12;
  17770. }
  17771. if (!this.studyJuri[0].cover[0].url) {
  17772. this.$message.error("请上传文件");
  17773. return;
  17774. }
  17775. let params = [
  17776. {
  17777. uid: this.userid,
  17778. cid: this.id,
  17779. stage: this.courseType,
  17780. task: i,
  17781. tool: this.toolindex,
  17782. content: this.studyJuri[0].cover[0].url,
  17783. type: typesql,
  17784. },
  17785. ];
  17786. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17787. this.homeWorkLoading = true
  17788. this.ajax
  17789. .post(this.$store.state.api + "addCourseWorksR", params)
  17790. .then((res) => {
  17791. this.$message({
  17792. message: "提交成功",
  17793. type: "success",
  17794. });
  17795. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, "success")
  17796. setTimeout(() => {
  17797. this.homeWorkLoading = false
  17798. }, 500);
  17799. this.studyJuri[0].cover = [];
  17800. this.dialogVisible = false;
  17801. this.getCourseDetail(2);
  17802. })
  17803. .catch((err) => {
  17804. this.$message.error("提交失败");
  17805. console.error(err);
  17806. setTimeout(() => {
  17807. this.homeWorkLoading = false
  17808. }, 500);
  17809. this.addOp3('1', "", { courseid: this.id,tool:'作业提交',data: this.studyJuri[0].cover[0].url,type: "course_tool_sub" }, err)
  17810. });
  17811. },
  17812. addCourseWorksPl(i) {
  17813. let _files = this.plworkFile;
  17814. var c = 1;
  17815. for (var k = 0; k < _files.length; k++) {
  17816. if (!_files[k].username) {
  17817. c = 2;
  17818. }
  17819. }
  17820. if (c == 2) {
  17821. this.$message.error("请填写学生姓名");
  17822. return;
  17823. }
  17824. let params = [
  17825. {
  17826. ateacher: this.userid,
  17827. cid: this.id,
  17828. stage: this.courseType,
  17829. task: i,
  17830. tool: this.toolindex,
  17831. content: JSON.stringify(_files),
  17832. },
  17833. ];
  17834. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17835. this.homeWorkLoading = true
  17836. this.ajax
  17837. .post(this.$store.state.api + "addCourseWorksPl", params)
  17838. .then((res) => {
  17839. this.$message({
  17840. message: "提交成功",
  17841. type: "success",
  17842. });
  17843. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, "success")
  17844. setTimeout(() => {
  17845. this.homeWorkLoading = false
  17846. }, 500);
  17847. this.plworkFile = [];
  17848. this.dialogVisiblePl = false;
  17849. this.getCourseDetail(2);
  17850. })
  17851. .catch((err) => {
  17852. this.$message.error("提交失败");
  17853. console.error(err);
  17854. setTimeout(() => {
  17855. this.homeWorkLoading = false
  17856. }, 500);
  17857. this.addOp3('1', "", { courseid: this.id,tool:'批量上传',data: JSON.stringify(_files),type: "course_tool_sub" }, err)
  17858. });
  17859. },
  17860. addCourseWorks2(i) {
  17861. var typesql;
  17862. if (this.fileType === 0) {
  17863. typesql = 0;
  17864. } else if (this.fileType === 1) {
  17865. typesql = 1;
  17866. } else if (this.fileType === 2) {
  17867. typesql = 3;
  17868. } else if (this.fileType === 3) {
  17869. typesql = 12;
  17870. }
  17871. if (!this.studyJuri[0].cover[0].url) {
  17872. this.$message.error("请上传文件");
  17873. return;
  17874. }
  17875. let params = [
  17876. {
  17877. uid: this.userid,
  17878. cid: this.id,
  17879. stage: this.courseType,
  17880. task: i,
  17881. tool: this.toolindex,
  17882. content: JSON.stringify({
  17883. type: typesql,
  17884. groupIndex: this.groupIndex,
  17885. url: this.studyJuri[0].cover[0].url,
  17886. }),
  17887. type: 11,
  17888. atool: 49,
  17889. text: "",
  17890. },
  17891. ];
  17892. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17893. this.homeWorkLoading = true
  17894. this.ajax
  17895. .post(this.$store.state.api + "addCourseWorks5", params)
  17896. .then((res) => {
  17897. this.$message({
  17898. message: "提交成功",
  17899. type: "success",
  17900. });
  17901. setTimeout(() => {
  17902. this.homeWorkLoading = false
  17903. }, 500);
  17904. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17905. type: typesql,
  17906. groupIndex: this.groupIndex,
  17907. url: this.studyJuri[0].cover[0].url,
  17908. }),type: "course_tool_sub" }, "success")
  17909. this.studyJuri[0].cover = [];
  17910. this.dialogVisibleGroupWork = false;
  17911. this.getCourseDetail(2);
  17912. })
  17913. .catch((err) => {
  17914. this.$message.error("提交失败");
  17915. console.error(err);
  17916. setTimeout(() => {
  17917. this.homeWorkLoading = false
  17918. }, 500);
  17919. this.addOp3('1', "", { courseid: this.id,tool:'学生分组',data:JSON.stringify({
  17920. type: typesql,
  17921. groupIndex: this.groupIndex,
  17922. url: this.studyJuri[0].cover[0].url,
  17923. }),type: "course_tool_sub" }, err)
  17924. });
  17925. },
  17926. addEnglishWork() {
  17927. this.myAnList = this.$refs['engJson'].myAnswerList;
  17928. if (!this.myAnList.engTitle || !this.myAnList.engText || this.myAnList.engTitle == "" || this.myAnList.engText == "") {
  17929. this.$message.error("请输入作文标题和正文!");
  17930. return;
  17931. }
  17932. let params = [
  17933. {
  17934. uid: this.userid,
  17935. cid: this.id,
  17936. stage: this.courseType,
  17937. task: this.taskCount,
  17938. tool: this.englishToolIndex,
  17939. content: JSON.stringify(this.myAnList),
  17940. type: 16,
  17941. atool: 69,
  17942. text: "",
  17943. },
  17944. ];
  17945. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  17946. this.homeWorkLoading = true
  17947. this.ajax
  17948. .post(this.$store.state.api + "addCourseWorks5", params)
  17949. .then((res) => {
  17950. this.$message({
  17951. message: "提交成功",
  17952. type: "success",
  17953. });
  17954. setTimeout(() => {
  17955. this.homeWorkLoading = false
  17956. }, 500);
  17957. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17958. data: JSON.stringify(this.myAnList),
  17959. type: "course_tool_sub" }, "success")
  17960. this.myAnList = {};
  17961. this.englishList = {};
  17962. this.englishToolIndex = 0;
  17963. this.engDialogVisible = false;
  17964. this.selectSWorks();
  17965. this.selectStudent();
  17966. })
  17967. .catch((err) => {
  17968. this.$message.error("提交失败");
  17969. console.error(err);
  17970. setTimeout(() => {
  17971. this.homeWorkLoading = false
  17972. }, 500);
  17973. this.addOp3('1', "", { courseid: this.id,tool:'英语写作',
  17974. data: JSON.stringify(this.myAnList),
  17975. type: "course_tool_sub" }, err)
  17976. });
  17977. },
  17978. addCourseWorksGong(i, data, tool) {
  17979. let params = [
  17980. {
  17981. uid: this.userid,
  17982. cid: this.id,
  17983. stage: this.courseType,
  17984. task: this.taskCount,
  17985. tool: i,
  17986. content: data,
  17987. type: 12,
  17988. atool: tool,
  17989. text: "",
  17990. },
  17991. ];
  17992. this.ajax
  17993. .post(this.$store.state.api + "addCourseWorks5", params)
  17994. .then((res) => {
  17995. this.$message({
  17996. message: "提交成功",
  17997. type: "success",
  17998. });
  17999. this.studyJuri[0].cover = [];
  18000. this.selectSWorks();
  18001. this.selectStudent();
  18002. })
  18003. .catch((err) => {
  18004. this.$message.error("提交失败");
  18005. console.error(err);
  18006. });
  18007. },
  18008. addCourseWorksGongTeacher(i, data, tool) {
  18009. let params = [
  18010. {
  18011. uid: this.sStudent.userid,
  18012. cid: this.id,
  18013. stage: this.courseType,
  18014. task: this.taskCount,
  18015. tool: i,
  18016. content: data,
  18017. type: 12,
  18018. atool: tool,
  18019. text: "",
  18020. },
  18021. ];
  18022. this.ajax
  18023. .post(this.$store.state.api + "addCourseWorks5", params)
  18024. .then((res) => {
  18025. this.$message({
  18026. message: "提交成功",
  18027. type: "success",
  18028. });
  18029. this.studyJuri[0].cover = [];
  18030. this.dialogVisibleWorks = false;
  18031. this.selectSWorks();
  18032. this.selectStudent();
  18033. })
  18034. .catch((err) => {
  18035. this.$message.error("提交失败");
  18036. console.error(err);
  18037. });
  18038. },
  18039. addCourseWorksGongPl(i, data, tool, type) {
  18040. let params = [
  18041. {
  18042. uid: this.sStudent.userid,
  18043. cid: this.id,
  18044. stage: this.courseType,
  18045. task: this.taskCount,
  18046. tool: i,
  18047. content: data,
  18048. type: type,
  18049. atool: tool,
  18050. text: "",
  18051. },
  18052. ];
  18053. this.ajax
  18054. .post(this.$store.state.api + "addCourseWorks5", params)
  18055. .then((res) => {
  18056. this.$message({
  18057. message: "提交成功",
  18058. type: "success",
  18059. });
  18060. this.studyJuri[0].cover = [];
  18061. this.dialogVisibleWorks = false;
  18062. this.selectSWorks();
  18063. this.selectStudent();
  18064. })
  18065. .catch((err) => {
  18066. this.$message.error("提交失败");
  18067. console.error(err);
  18068. });
  18069. },
  18070. addCourseWorksTeacher(i) {
  18071. var typesql;
  18072. if (this.sTool == 32) {
  18073. this.addCourseWorksGongTeacher(
  18074. this.toolindex,
  18075. this.studyJuri[0].cover[0].url,
  18076. this.sTool
  18077. );
  18078. return;
  18079. }
  18080. if (this.fileType === 0) {
  18081. typesql = 1;
  18082. } else if (this.fileType === 1) {
  18083. typesql = 4;
  18084. } else if (this.fileType === 2) {
  18085. typesql = 5;
  18086. } else if (this.fileType === 3) {
  18087. typesql = 12;
  18088. }
  18089. if (this.sTool == 50) {
  18090. this.addCourseWorksGongPl(
  18091. this.toolindex,
  18092. this.studyJuri[0].cover[0].url,
  18093. this.sTool,
  18094. typesql
  18095. );
  18096. return;
  18097. }
  18098. if (!this.studyJuri[0].cover[0].url) {
  18099. this.$message.error("请上传文件");
  18100. return;
  18101. }
  18102. let params = [
  18103. {
  18104. uid: this.sStudent.userid,
  18105. cid: this.id,
  18106. stage: this.courseType,
  18107. task: i,
  18108. tool: this.toolindex,
  18109. content: this.studyJuri[0].cover[0].url,
  18110. type: typesql,
  18111. ateacher: this.userid,
  18112. },
  18113. ];
  18114. this.ajax
  18115. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  18116. .then((res) => {
  18117. this.$message({
  18118. message: "提交成功",
  18119. type: "success",
  18120. });
  18121. this.studyJuri[0].cover = [];
  18122. this.dialogVisibleWorks = false;
  18123. this.getCourseDetail(2);
  18124. })
  18125. .catch((err) => {
  18126. this.$message.error("提交失败");
  18127. console.error(err);
  18128. });
  18129. },
  18130. selectUploadStudent(type) {
  18131. const loading = this.$loading.service({
  18132. background: "rgba(255, 255, 255, 0.7)",
  18133. target: document.body,
  18134. });
  18135. let params = {
  18136. cid: this.uploadCid,
  18137. oid: this.oid,
  18138. cn: "",
  18139. };
  18140. this.ajax
  18141. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18142. .then((res) => {
  18143. loading.close();
  18144. var studentK = [];
  18145. if (this.isWorksS[this.toolindex].length > 0) {
  18146. for (var z = 0; z < this.isWorksS[this.toolindex].length; z++) {
  18147. studentK.push(this.isWorksS[this.toolindex][z].uid);
  18148. }
  18149. studentK = studentK.join(",");
  18150. }
  18151. this.uploadStudentJuri = res.data[0].filter((el) => {
  18152. return studentK.indexOf(el.userid) == -1;
  18153. });
  18154. if (this.worksSName && this.worksSid) {
  18155. this.uploadStudentJuri.push({
  18156. userid: this.worksSid,
  18157. name: this.worksSName,
  18158. });
  18159. }
  18160. if (type == 1) {
  18161. this.plworkFile = [];
  18162. this.dialogVisibleSname = true;
  18163. } else if (type == 2) {
  18164. this.dialogVisiblePl = true;
  18165. }
  18166. })
  18167. .catch((err) => {
  18168. loading.close();
  18169. console.error(err);
  18170. });
  18171. },
  18172. selectPickStudent() {
  18173. const loading = this.$loading.service({
  18174. background: "rgba(255, 255, 255, 0.7)",
  18175. target: document.body,
  18176. });
  18177. let params = {
  18178. cid: this.uploadCid,
  18179. oid: this.oid,
  18180. cn: "",
  18181. };
  18182. this.ajax
  18183. .get(this.$store.state.api + "selectSnameByCidGroup", params)
  18184. .then((res) => {
  18185. loading.close();
  18186. this.uploadStudentJuri = res.data[0];
  18187. this.dialogVisiblePickPeople = true;
  18188. })
  18189. .catch((err) => {
  18190. loading.close();
  18191. console.error(err);
  18192. });
  18193. },
  18194. arrayToArray(arrayo, arrayt) {
  18195. let array1 = arrayo;
  18196. let array2 = arrayt;
  18197. let commonElements = [];
  18198. for (let i = 0; i < array1.length; i++) {
  18199. for (let j = 0; j < array2.length; j++) {
  18200. if (array1[i] === array2[j]) {
  18201. commonElements.push(array1[i]);
  18202. }
  18203. }
  18204. }
  18205. return commonElements;
  18206. },
  18207. selectWorksStudent() {
  18208. let params = {
  18209. oid: this.oid,
  18210. cid: this.courseDetail.juri,
  18211. };
  18212. this.ajax
  18213. .get(this.$store.state.api + "selectWorksStudent", params)
  18214. .then((res) => {
  18215. var a = res.data[0];
  18216. for (var i = 0; i < this.isWorksS.length; i++) {
  18217. this.noWorksS[i] = [];
  18218. var studentK = [];
  18219. if (this.isWorksS[i].length > 0) {
  18220. for (var z = 0; z < this.isWorksS[i].length; z++) {
  18221. studentK.push(this.isWorksS[i][z].uid);
  18222. }
  18223. studentK = studentK.join(",");
  18224. for (var j = 0; j < a.length; j++) {
  18225. if (studentK.indexOf(a[j].userid) == -1) {
  18226. if (this.tcid) {
  18227. // a[j].classid.indexOf(this.tcid) != -1
  18228. if (
  18229. this.arrayToArray(
  18230. a[j].classid.split(","),
  18231. this.tcid.split(",")
  18232. ).length
  18233. ) {
  18234. this.noWorksS[i].push({
  18235. student: a[j].name,
  18236. userid: a[j].userid,
  18237. });
  18238. }
  18239. } else {
  18240. this.noWorksS[i].push({
  18241. student: a[j].name,
  18242. userid: a[j].userid,
  18243. });
  18244. }
  18245. }
  18246. }
  18247. } else {
  18248. for (var k = 0; k < a.length; k++) {
  18249. if (this.tcid) {
  18250. if (
  18251. this.arrayToArray(
  18252. a[k].classid.split(","),
  18253. this.tcid.split(",")
  18254. ).length
  18255. ) {
  18256. this.noWorksS[i].push({
  18257. student: a[k].name,
  18258. userid: a[k].userid,
  18259. });
  18260. }
  18261. } else {
  18262. this.noWorksS[i].push({
  18263. student: a[k].name,
  18264. userid: a[k].userid,
  18265. });
  18266. }
  18267. }
  18268. }
  18269. }
  18270. this.$forceUpdate();
  18271. if (
  18272. Object.keys(this.commentDetail).length &&
  18273. Object.keys(this.commentIndexJson).length &&
  18274. !this.dialogVisibleScore && !this.dialogVisibleENScore
  18275. ) {
  18276. let a = 1;
  18277. let c = this.commentIndexJson;
  18278. if (
  18279. this.commentIndexJson.gindex ||
  18280. this.commentIndexJson.gindex === 0
  18281. ) {
  18282. for (
  18283. var i = 0;
  18284. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18285. i++
  18286. ) {
  18287. let _el = this.worksStudent[this.commentIndexJson.toolIndex][i];
  18288. groupA: for (var k = 0; k < _el.length; k++) {
  18289. let el = _el[k];
  18290. if (el.wid == this.commentDetail.wid) {
  18291. a = 2;
  18292. this.commentOther(
  18293. this.worksStudent[this.commentIndexJson.toolIndex][i][k],
  18294. this.commentIndexJson.toolIndex,
  18295. k,
  18296. this.commentIndexJson.gindex
  18297. );
  18298. break groupA;
  18299. }
  18300. }
  18301. }
  18302. if (a === 1) {
  18303. this.commentDetail = [];
  18304. this.commentIndexJson = {};
  18305. this.commentDialogVisible = false;
  18306. this.$message("此作业已被删除");
  18307. }
  18308. } else {
  18309. if (this.isGroup && this.commentIndexJson.gid) {
  18310. groupA: for (
  18311. var i = 0;
  18312. i < this.courseGroup.group.length;
  18313. i++
  18314. ) {
  18315. let _group = this.courseGroup.group[i];
  18316. if (_group.id == this.commentIndexJson.gid) {
  18317. let _el2 = _group.works[this.commentIndexJson.toolIndex];
  18318. for (var k = 0; k < _el2.length; k++) {
  18319. let el2 = _el2[k];
  18320. if (el2.wid == this.commentDetail.wid) {
  18321. a = 2;
  18322. this.commentOther(
  18323. _el2[k],
  18324. this.commentIndexJson.toolIndex,
  18325. k,
  18326. null,
  18327. this.commentIndexJson.gid
  18328. );
  18329. break groupA;
  18330. }
  18331. }
  18332. }
  18333. }
  18334. }
  18335. if (a == 1) {
  18336. for (
  18337. var i = 0;
  18338. i < this.worksStudent[this.commentIndexJson.toolIndex].length;
  18339. i++
  18340. ) {
  18341. let el =
  18342. this.worksStudent[this.commentIndexJson.toolIndex][i];
  18343. if (el.wid == this.commentDetail.wid) {
  18344. a = 2;
  18345. this.commentOther(
  18346. this.worksStudent[this.commentIndexJson.toolIndex][i],
  18347. this.commentIndexJson.toolIndex,
  18348. i
  18349. );
  18350. break;
  18351. }
  18352. }
  18353. }
  18354. if (a === 1) {
  18355. this.commentDetail = [];
  18356. this.commentIndexJson = {};
  18357. this.commentDialogVisible = false;
  18358. this.$message("此作业已被删除");
  18359. }
  18360. }
  18361. }
  18362. })
  18363. .catch((err) => {
  18364. console.error(err);
  18365. });
  18366. },
  18367. selectStudent() {
  18368. if(this.selectStudentLoading) return
  18369. this.selectStudentLoading = true
  18370. //学生查看自己作业
  18371. let params = {
  18372. uid: this.userid,
  18373. cid: this.id,
  18374. s: this.courseType,
  18375. t: this.taskCount,
  18376. };
  18377. this.ajax
  18378. .get(this.$store.state.api + "selectStudentWorks", params)
  18379. .then((res) => {
  18380. var a =
  18381. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18382. this.taskCount
  18383. ].toolChoose;
  18384. var b = res.data[0];
  18385. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  18386. var y = [
  18387. "AVI",
  18388. "NAVI",
  18389. "MPEG",
  18390. "ASF",
  18391. "MOV",
  18392. "WMV",
  18393. "3GP",
  18394. "RM",
  18395. "RMVB",
  18396. "FLV",
  18397. "F4V",
  18398. "H.264",
  18399. "H.265",
  18400. "REAL VIDEO",
  18401. "MKV",
  18402. "WebM",
  18403. "HDDVD",
  18404. "MP4",
  18405. "MPG",
  18406. "M4V",
  18407. "MGV",
  18408. "OGV",
  18409. "QTM",
  18410. "STR",
  18411. "AMC",
  18412. "DVX",
  18413. "EVO",
  18414. "DAT",
  18415. "OGG",
  18416. "OGM",
  18417. ];
  18418. for (var i = 0; i < a.length; i++) {
  18419. this.workStudent[i] = [];
  18420. for (var j = 0; j < b.length; j++) {
  18421. if (i == b[j].tool) {
  18422. if (
  18423. (b[j].type == 1 ||
  18424. b[j].type == 4 ||
  18425. b[j].type == 5 ||
  18426. b[j].type == 6 ||
  18427. b[j].type == 12 ||
  18428. b[j].type == 7) &&
  18429. a[i].tool[0] != 15 &&
  18430. a[i].tool[0] != 4 &&
  18431. a[i].tool[0] != 45 &&
  18432. a[i].tool[0] != 50 &&
  18433. a[i].tool[0] != 32 &&
  18434. a[i].tool[0] != 57 &&
  18435. a[i].tool[0] != 52 &&
  18436. a[i].tool[0] != 69
  18437. ) {
  18438. if (
  18439. c.indexOf(
  18440. b[j].content
  18441. .split(".")
  18442. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18443. ) != -1 &&
  18444. a[i].tool[0] == 16 &&
  18445. b[j].atool != 50
  18446. ) {
  18447. this.workStudent[i].push({
  18448. works: b[j].content,
  18449. sName: b[j].name,
  18450. score: b[j].score,
  18451. img: b[j].img,
  18452. type: 1,
  18453. time: b[j].time,
  18454. userid: b[j].userid,
  18455. wid: b[j].id,
  18456. });
  18457. } else if (
  18458. y.indexOf(
  18459. b[j].content
  18460. .split(".")
  18461. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  18462. ) != -1 &&
  18463. a[i].tool[0] == 16 &&
  18464. b[j].atool != 50
  18465. ) {
  18466. this.workStudent[i].push({
  18467. userid: b[j].userid,
  18468. wid: b[j].id,
  18469. works: b[j].content,
  18470. sName: b[j].name,
  18471. score: b[j].score,
  18472. img: b[j].img,
  18473. type: 3,
  18474. time: b[j].time,
  18475. });
  18476. } else if (b[j].type == 6 && b[j].atool != 50) {
  18477. this.workStudent[i].push({
  18478. userid: b[j].userid,
  18479. wid: b[j].id,
  18480. works: b[j].content,
  18481. sName: b[j].name,
  18482. score: b[j].score,
  18483. img: b[j].img,
  18484. type: 4,
  18485. time: b[j].time,
  18486. });
  18487. } else if (b[j].type == 7 && b[j].atool != 50) {
  18488. this.workStudent[i].push({
  18489. userid: b[j].userid,
  18490. wid: b[j].id,
  18491. works: b[j].content,
  18492. sName: b[j].name,
  18493. score: b[j].score,
  18494. img: b[j].img,
  18495. type: 5,
  18496. time: b[j].time,
  18497. });
  18498. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  18499. this.workStudent[i].push({
  18500. works: b[j].content,
  18501. sName: b[j].name,
  18502. score: b[j].score,
  18503. img: b[j].img,
  18504. type: 12,
  18505. time: b[j].time,
  18506. userid: b[j].userid,
  18507. wid: b[j].id,
  18508. });
  18509. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  18510. this.workStudent[i].push({
  18511. works: b[j].content,
  18512. sName: b[j].name,
  18513. score: b[j].score,
  18514. img: b[j].img,
  18515. type: 0,
  18516. time: b[j].time,
  18517. userid: b[j].userid,
  18518. wid: b[j].id,
  18519. });
  18520. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  18521. this.workStudent[i].push({
  18522. works: b[j].content,
  18523. sName: b[j].name,
  18524. score: b[j].score,
  18525. img: b[j].img,
  18526. type: 0,
  18527. time: b[j].time,
  18528. userid: b[j].userid,
  18529. wid: b[j].id,
  18530. });
  18531. }
  18532. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  18533. this.workStudent[i].push({
  18534. works: b[j].content,
  18535. sName: b[j].name,
  18536. score: b[j].score,
  18537. img: b[j].img,
  18538. type: 2,
  18539. time: b[j].time,
  18540. userid: b[j].userid,
  18541. wid: b[j].id,
  18542. });
  18543. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  18544. this.workStudent[i].push({
  18545. works: b[j].content,
  18546. sName: b[j].name,
  18547. score: b[j].score,
  18548. img: b[j].img,
  18549. type: 20,
  18550. time: b[j].time,
  18551. userid: b[j].userid,
  18552. wid: b[j].id,
  18553. });
  18554. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  18555. //问卷
  18556. this.workStudent[i].push({
  18557. works: b[j].content,
  18558. sName: b[j].name,
  18559. score: b[j].score,
  18560. img: b[j].img,
  18561. type: 2,
  18562. time: b[j].time,
  18563. userid: b[j].userid,
  18564. wid: b[j].id,
  18565. });
  18566. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  18567. //选择题
  18568. this.workStudent[i].push({
  18569. works: b[j].content,
  18570. sName: b[j].name,
  18571. score: b[j].score,
  18572. img: b[j].img,
  18573. type: 8,
  18574. time: b[j].time,
  18575. userid: b[j].userid,
  18576. wid: b[j].id,
  18577. });
  18578. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  18579. //选择题
  18580. this.workStudent[i].push({
  18581. works: b[j].content,
  18582. sName: b[j].name,
  18583. score: b[j].score,
  18584. img: b[j].img,
  18585. type: 9,
  18586. time: b[j].time,
  18587. userid: b[j].userid,
  18588. wid: b[j].id,
  18589. });
  18590. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  18591. //选择题
  18592. this.workStudent[i].push({
  18593. works: b[j].content,
  18594. sName: b[j].name,
  18595. score: b[j].score,
  18596. img: b[j].img,
  18597. type: 10,
  18598. time: b[j].time,
  18599. userid: b[j].userid,
  18600. wid: b[j].id,
  18601. });
  18602. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  18603. //选择题
  18604. this.workStudent[i].push({
  18605. works: b[j].content,
  18606. sName: b[j].name,
  18607. score: b[j].score,
  18608. img: b[j].img,
  18609. type: 13,
  18610. time: b[j].time,
  18611. userid: b[j].userid,
  18612. wid: b[j].id,
  18613. });
  18614. } else if (b[j].type == 12 && a[i].tool[0] == 32) {
  18615. //选择题
  18616. this.workStudent[i].push({
  18617. works: b[j].content,
  18618. sName: b[j].name,
  18619. score: b[j].score,
  18620. img: b[j].img,
  18621. type: 12,
  18622. time: b[j].time,
  18623. userid: b[j].userid,
  18624. wid: b[j].id,
  18625. });
  18626. } else if (b[j].type == 12 && a[i].tool[0] == 57) {
  18627. //选择题
  18628. this.workStudent[i].push({
  18629. works: b[j].content,
  18630. sName: b[j].name,
  18631. score: b[j].score,
  18632. img: b[j].img,
  18633. type: 12,
  18634. time: b[j].time,
  18635. userid: b[j].userid,
  18636. wid: b[j].id,
  18637. });
  18638. } else if (b[j].type == 15 && a[i].tool[0] == 57) {
  18639. //选择题
  18640. this.workStudent[i].push({
  18641. works: b[j].content,
  18642. sName: b[j].name,
  18643. score: b[j].score,
  18644. img: b[j].img,
  18645. type: 15,
  18646. time: b[j].time,
  18647. userid: b[j].userid,
  18648. wid: b[j].id,
  18649. });
  18650. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  18651. //英语写作
  18652. this.workStudent[i].push({
  18653. works: b[j].content,
  18654. sName: b[j].name,
  18655. score: b[j].score,
  18656. img: b[j].img,
  18657. type: 16,
  18658. time: b[j].time,
  18659. userid: b[j].userid,
  18660. wid: b[j].id,
  18661. aiCode: b[j].aiCode,
  18662. teacherCode: b[j].teacherCode
  18663. });
  18664. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  18665. //英语口语
  18666. this.workStudent[i].push({
  18667. works: b[j].content,
  18668. sName: b[j].name,
  18669. score: b[j].score,
  18670. img: b[j].img,
  18671. type: 17,
  18672. time: b[j].time,
  18673. userid: b[j].userid,
  18674. wid: b[j].id,
  18675. });
  18676. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  18677. //交互视频
  18678. this.workStudent[i].push({
  18679. works: b[j].content,
  18680. sName: b[j].name,
  18681. score: b[j].score,
  18682. img: b[j].img,
  18683. type: 14,
  18684. time: b[j].time,
  18685. userid: b[j].userid,
  18686. wid: b[j].id,
  18687. });
  18688. }
  18689. }
  18690. }
  18691. }
  18692. this.selectStudentLoading = false
  18693. })
  18694. .catch((err) => {
  18695. this.selectStudentLoading = false
  18696. console.error(err);
  18697. });
  18698. },
  18699. openVideo(w) {
  18700. this.videoDetail = {};
  18701. this.playerOptions1.sources[0].src = w.works;
  18702. this.videoDetail = this.playerOptions1;
  18703. this.videoVisible = true;
  18704. },
  18705. isLikes(wid, uid, t, c, isLikes,sName) {
  18706. if (isLikes == false) {
  18707. let params = [
  18708. {
  18709. wid: wid,
  18710. lid: uid,
  18711. t: t,
  18712. c: c,
  18713. },
  18714. ];
  18715. this.ajax
  18716. .post(this.$store.state.api + "insertComment", params)
  18717. .then((res) => {
  18718. this.$message({
  18719. message: "点赞成功",
  18720. type: "success",
  18721. });
  18722. this.selectSWorks();
  18723. this.selectStudent();
  18724. if(this.tType!=2){
  18725. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">点赞</span>`)
  18726. }
  18727. })
  18728. .catch((err) => {
  18729. this.$message.error("点赞失败");
  18730. console.error(err);
  18731. });
  18732. } else {
  18733. let params = {
  18734. wid: wid,
  18735. lid: uid,
  18736. type: t,
  18737. };
  18738. this.ajax
  18739. .get(this.$store.state.api + "deleteComment", params)
  18740. .then((res) => {
  18741. this.$message({
  18742. message: "取消点赞成功",
  18743. type: "success",
  18744. });
  18745. this.selectSWorks();
  18746. this.selectStudent();
  18747. })
  18748. .catch((err) => {
  18749. console.error(err);
  18750. });
  18751. }
  18752. },
  18753. deleteComment(wid) {
  18754. this.$confirm("确定删除此评论吗?", "提示", {
  18755. confirmButtonText: "确定",
  18756. cancelButtonText: "取消",
  18757. type: "warning",
  18758. })
  18759. .then(() => {
  18760. let params = {
  18761. id: wid,
  18762. };
  18763. this.ajax
  18764. .get(this.$store.state.api + "deleteComment2", params)
  18765. .then((res) => {
  18766. this.$message({
  18767. message: "删除评论成功",
  18768. type: "success",
  18769. });
  18770. this.selectSWorks();
  18771. this.selectStudent();
  18772. })
  18773. .catch((err) => {
  18774. console.error(err);
  18775. });
  18776. })
  18777. .catch(() => {});
  18778. },
  18779. async commentOther(w, toolIndex, wIndex, gindex, gid) {
  18780. this.commentIndexJson = {
  18781. toolIndex: toolIndex,
  18782. wIndex: wIndex,
  18783. gindex: gindex,
  18784. gid: gid,
  18785. };
  18786. this.commentDetail = [];
  18787. this.commentDialogVisible = true;
  18788. this.commentDetail = w;
  18789. if (w.works && w.type == 1) {
  18790. // this.pptImgUrl = "";
  18791. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18792. if (
  18793. a.indexOf(
  18794. w.works
  18795. .split(".")
  18796. [w.works.split(".").length - 1].toLocaleUpperCase()
  18797. ) != -1
  18798. ) {
  18799. let _uuurl = await this.checkLink(w.works);
  18800. console.log(_uuurl)
  18801. this.pptImgUrl =
  18802. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18803. this.showPDF = false;
  18804. } else if (
  18805. w.works
  18806. .split(".")
  18807. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18808. ) {
  18809. this.pptImgUrl = w.works;
  18810. this.showPDF = true;
  18811. }
  18812. } else if (w.works && w.type == 3) {
  18813. this.videoDetail = {};
  18814. this.playerOptions1.sources[0].src = w.works;
  18815. this.videoDetail = this.playerOptions1;
  18816. // this.videoVisible = true;
  18817. } else if (w.works && w.type == 4) {
  18818. this.eScore = JSON.parse(w.works);
  18819. this.rateJson =
  18820. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18821. this.taskCount
  18822. ].toolChoose[toolIndex].rateJson;
  18823. } else if (w.works && w.type == 10) {
  18824. this.commentDetail.works = JSON.parse(this.commentDetail.works);
  18825. } else if (w.works && w.type == 13) {
  18826. this.wordJson =
  18827. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18828. this.taskCount
  18829. ].toolChoose[toolIndex].wordJson;
  18830. }
  18831. },
  18832. async openScore(w, index) {
  18833. this.wScore = 0;
  18834. this.wScore = w.score ? JSON.parse(w.score).wScore : 0;
  18835. this.scoreDetail = w.score ? JSON.parse(w.score).detail : "";
  18836. this.commentDetail = [];
  18837. if(w.type == 17){
  18838. this.dialogVisibleENScore = true;
  18839. }else{
  18840. this.dialogVisibleScore = true;
  18841. }
  18842. this.commentDetail = w;
  18843. if (w.works && w.type == 1) {
  18844. this.pptImgUrl = "";
  18845. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  18846. if (
  18847. a.indexOf(
  18848. w.works
  18849. .split(".")
  18850. [w.works.split(".").length - 1].toLocaleUpperCase()
  18851. ) != -1
  18852. ) {
  18853. let _uuurl = await this.checkLink(w.works);
  18854. console.log(_uuurl)
  18855. this.pptImgUrl =
  18856. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  18857. this.showPDF = false;
  18858. } else if (
  18859. w.works
  18860. .split(".")
  18861. [w.works.split(".").length - 1].toLocaleUpperCase() == "PDF"
  18862. ) {
  18863. this.pptImgUrl = w.works;
  18864. this.showPDF = true;
  18865. }
  18866. } else if (w.works && w.type == 3) {
  18867. this.videoDetail = {};
  18868. this.playerOptions1.sources[0].src = w.works;
  18869. this.videoDetail = this.playerOptions1;
  18870. }else if(w.type == 17){
  18871. let englishVoiceJson = {}
  18872. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18873. .taskJson[this.taskCount].toolChoose[index].englishVoiceJson
  18874. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  18875. .toolChoose[index].englishVoiceJson
  18876. : {};
  18877. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  18878. }
  18879. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18880. },
  18881. addComment(wid, uid, t,detail) {
  18882. if (this.commentText == "") {
  18883. this.$message.error("请输入评论");
  18884. return;
  18885. }
  18886. let params2 = [
  18887. {
  18888. wid: wid,
  18889. lid: uid,
  18890. t: t,
  18891. },
  18892. ];
  18893. this.ajax
  18894. .post(this.$store.state.api + "getComment", params2)
  18895. .then((res) => {
  18896. if (res.data[0].length > 0) {
  18897. this.$message.error("一个作业只能评论一条");
  18898. } else {
  18899. let params = [
  18900. {
  18901. wid: wid,
  18902. lid: uid,
  18903. t: t,
  18904. c: this.commentText,
  18905. },
  18906. ];
  18907. this.ajax
  18908. .post(this.$store.state.api + "insertComment", params)
  18909. .then((res) => {
  18910. this.$message({
  18911. message: "评论成功",
  18912. type: "success",
  18913. });
  18914. this.commentText = "";
  18915. this.selectSWorks();
  18916. this.selectStudent();
  18917. if(this.tType!=2){
  18918. this.insertMemorandum(`对<span class="variable">${detail.sName}</span>的作业进行<span class="btn">评论</span>`)
  18919. }
  18920. })
  18921. .catch((err) => {
  18922. this.$message.error("评论失败");
  18923. console.error(err);
  18924. });
  18925. }
  18926. })
  18927. .catch((err) => {
  18928. // this.$message.error("评论失败");
  18929. console.error(err);
  18930. });
  18931. },
  18932. scoreWork(wid,sName) {
  18933. if (this.wScore == 0) {
  18934. this.$message.error("请评分");
  18935. return;
  18936. }
  18937. let params = [
  18938. {
  18939. wid: wid,
  18940. score: JSON.stringify({
  18941. wScore: this.wScore,
  18942. detail: this.scoreDetail,
  18943. }),
  18944. },
  18945. ];
  18946. this.ajax
  18947. .post(this.$store.state.api + "scoreWork", params)
  18948. .then((res) => {
  18949. this.$message({
  18950. message: "评分成功",
  18951. type: "success",
  18952. });
  18953. this.wScore = 0;
  18954. this.scoreDetail = "";
  18955. this.dialogVisibleScore = false;
  18956. this.selectSWorks();
  18957. this.selectStudent();
  18958. if(this.tType!=2){
  18959. this.insertMemorandum(`对<span class="variable">${sName}</span>的作业进行<span class="btn">评分</span>`)
  18960. }
  18961. })
  18962. .catch((err) => {
  18963. this.$message.error("评分失败");
  18964. console.error(err);
  18965. });
  18966. },
  18967. openXz(w, i) {
  18968. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  18969. .taskJson[this.taskCount].toolChoose[i].selectJson
  18970. ? JSON.parse(
  18971. JSON.stringify(
  18972. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18973. this.taskCount
  18974. ].toolChoose[i].selectJson
  18975. )
  18976. )
  18977. : { url: "", select: [], answer: [] };
  18978. var a = w.works.split(",");
  18979. for (var k = 0; k < a.length; k++) {
  18980. a[k] = parseInt(a[k]);
  18981. }
  18982. this.selectAnswer = { answer: a, stu: w.sName };
  18983. this.isSelect = true;
  18984. this.dialogVisibleSelect = true;
  18985. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  18986. },
  18987. openSen(w, i) {
  18988. this.sentenceList1 = JSON.parse(w.works);
  18989. this.sentenceList1.stuName = w.sName;
  18990. this.dialogVisibleSentence1 = true;
  18991. },
  18992. openPj(w, toolindex) {
  18993. this.isStar = true;
  18994. this.eScore = JSON.parse(w);
  18995. this.rateJson =
  18996. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  18997. this.taskCount
  18998. ].toolChoose[toolindex].rateJson;
  18999. this.studentEvalDialogVisible = true;
  19000. },
  19001. openEnglishEva(id,i){
  19002. let params = {
  19003. wid: id
  19004. };
  19005. this.ajax
  19006. .get(this.$store.state.api + "selectEngWork", params)
  19007. .then((res) => {
  19008. this.evaEngJson.message = res.data[0][0];
  19009. this.evaEngJson.studentJson = JSON.parse(res.data[0][0].content);
  19010. this.evaEngJson.teacherJson = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount]
  19011. .toolChoose[i].englishList;
  19012. this.engEvaDialogVisible = true;
  19013. })
  19014. .catch((err) => {
  19015. console.error(err);
  19016. });
  19017. },
  19018. deleteWorks(id) {
  19019. this.$confirm("确定删除此作业吗?", "提示", {
  19020. confirmButtonText: "确定",
  19021. cancelButtonText: "取消",
  19022. type: "warning",
  19023. })
  19024. .then(() => {
  19025. let params = [
  19026. {
  19027. id: id,
  19028. },
  19029. ];
  19030. this.ajax
  19031. .post(this.$store.state.api + "deleteCourseWork", params)
  19032. .then((res) => {
  19033. this.$message({
  19034. message: "删除成功",
  19035. type: "success",
  19036. });
  19037. this.selectStudent();
  19038. this.selectSWorks();
  19039. this.selectSLook();
  19040. })
  19041. .catch((err) => {
  19042. this.$message.error("网络异常");
  19043. console.error(err);
  19044. });
  19045. })
  19046. .catch(() => {});
  19047. },
  19048. noIsAi() {
  19049. this.$message.info("您暂未设置AI评分,请修改该工具的评价设置后使用。");
  19050. },
  19051. getLang() {
  19052. let lang = "";
  19053. if (this.languageSetting == 0) {
  19054. lang = "Chinese.";
  19055. } else if (this.languageSetting == 1) {
  19056. lang = "Traditional Chinese.";
  19057. } else if (this.languageSetting == 2) {
  19058. lang = "English.";
  19059. }
  19060. return lang;
  19061. },
  19062. selectSWorks(gindex) {
  19063. if(this.selectSWorksLoading) return
  19064. this.selectSWorksLoading = true
  19065. //教师查看全部作业
  19066. let params = {
  19067. cid: this.id,
  19068. s: this.courseType,
  19069. t: this.taskCount
  19070. };
  19071. this.ajax
  19072. .get(this.$store.state.api + "selectSWorks", params)
  19073. .then(res => {
  19074. var a = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  19075. this.taskCount
  19076. ].toolChoose;
  19077. var b = res.data[0];
  19078. var c = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  19079. var y = [
  19080. "AVI",
  19081. "NAVI",
  19082. "MPEG",
  19083. "ASF",
  19084. "MOV",
  19085. "WMV",
  19086. "3GP",
  19087. "RM",
  19088. "RMVB",
  19089. "FLV",
  19090. "F4V",
  19091. "H.264",
  19092. "H.265",
  19093. "REAL VIDEO",
  19094. "MKV",
  19095. "WebM",
  19096. "HDDVD",
  19097. "MP4",
  19098. "MPG",
  19099. "M4V",
  19100. "MGV",
  19101. "OGV",
  19102. "QTM",
  19103. "STR",
  19104. "AMC",
  19105. "DVX",
  19106. "EVO",
  19107. "DAT",
  19108. "OGG",
  19109. "OGM"
  19110. ];
  19111. var d = res.data[1];
  19112. var e = res.data[2];
  19113. var f = res.data[3];
  19114. let _worksStudent = [];
  19115. var _worksStudent2 = [];
  19116. for (var i = 0; i < a.length; i++) {
  19117. _worksStudent[i] = [];
  19118. _worksStudent2[i] = [];
  19119. if (
  19120. !this.isCloseList[i] ||
  19121. this.isCloseList[i].isClose == undefined
  19122. ) {
  19123. this.isCloseList[i] = { isClose: 0 };
  19124. }
  19125. this.groupStudent[i] = [];
  19126. this.groupStudentUid[i] = [];
  19127. if (this.isGroup) {
  19128. for (
  19129. var groupI = 0;
  19130. groupI < this.courseGroup.group.length;
  19131. groupI++
  19132. ) {
  19133. this.courseGroup.group[groupI].works[i] = [];
  19134. }
  19135. }
  19136. this.isWorksS[i] = [];
  19137. this.checkJson[i] = [];
  19138. if (a[i].tool[0] == 49) {
  19139. for (var gA = 0; gA < a[i].groupJson.group.length; gA++) {
  19140. this.groupStudent[i][gA] = [];
  19141. this.groupStudentUid[i][gA] = [];
  19142. _worksStudent[i][gA] = [];
  19143. _worksStudent2[i][gA] = [];
  19144. this.isCloseList[i][gA] = [];
  19145. for (var g = 0; g < f.length; g++) {
  19146. if (
  19147. f[g].ttype == 2 &&
  19148. this.tcid &&
  19149. this.arrayToArray(
  19150. f[g].classid ? f[g].classid.split(",") : [],
  19151. this.tcid.split(",")
  19152. ).length == 0
  19153. ) {
  19154. continue;
  19155. }
  19156. let _classId = this.arrayToArray(
  19157. this.courseDetail.juri
  19158. ? this.courseDetail.juri.split(",")
  19159. : [],
  19160. this.classId ? this.classId.split(",") : []
  19161. );
  19162. if (
  19163. gA == f[g].group &&
  19164. f[g].tool == i &&
  19165. (this.arrayToArray(
  19166. f[g].classid ? f[g].classid.split(",") : [],
  19167. this.tcid.split(",")
  19168. ).length !== 0 ||
  19169. this.arrayToArray(
  19170. f[g].classid ? f[g].classid.split(",") : [],
  19171. _classId
  19172. ).length !== 0 ||
  19173. (!this.tcid && this.tType == "1") ||
  19174. this.courseDetail.juri === "" ||
  19175. f[g].ttype == 1)
  19176. ) {
  19177. this.groupStudent[i][gA].push(f[g]);
  19178. this.groupStudentUid[i][gA].push(f[g].userid);
  19179. }
  19180. }
  19181. }
  19182. this.$forceUpdate();
  19183. }
  19184. for (var j = 0; j < b.length; j++) {
  19185. if (
  19186. b[j].ttype == 2 &&
  19187. this.tcid &&
  19188. this.arrayToArray(b[j].classid.split(","), this.tcid.split(","))
  19189. .length == 0
  19190. ) {
  19191. continue;
  19192. }
  19193. var likesCount = 0;
  19194. var commentCount = 0;
  19195. var isLikes = false;
  19196. var commentJson = [];
  19197. var likeJson = [];
  19198. var data = b[j];
  19199. if (i == b[j].tool) {
  19200. if (data.type == 2 && a[i].tool[0] == 4) {
  19201. // if(JSON.parse(data.content)[0].anwer){
  19202. var checkL =
  19203. JSON.parse(data.content)[0].anwer instanceof Array
  19204. ? JSON.parse(data.content)[0].anwer
  19205. : JSON.parse(data.content)[0].anwer.split(",");
  19206. for (var z = 0; z < checkL.length; z++) {
  19207. if (!this.checkJson[i][z]) {
  19208. this.checkJson[i].push({
  19209. checkCount: [],
  19210. checkPerson: [],
  19211. rightPerson: []
  19212. });
  19213. }
  19214. if (!this.checkJson[i][z].checkCount.length) {
  19215. this.checkJson[i][z].checkCount = [];
  19216. let _askItemCount = JSON.parse(data.content)[0].askJson
  19217. .askJson[z].askItem;
  19218. for (var aic = 0; aic < _askItemCount; aic++) {
  19219. this.checkJson[i][z].checkCount.push(0);
  19220. }
  19221. }
  19222. if (checkL[z] instanceof Array) {
  19223. if (
  19224. JSON.parse(data.content)[0]
  19225. .anwer.sort()
  19226. .join(",") == checkL[z].sort().join(",")
  19227. ) {
  19228. this.checkJson[i][z].rightPerson.push(data.name);
  19229. }
  19230. for (var q = 0; q < checkL[z].length; q++) {
  19231. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19232. ? this.checkJson[i][z].checkPerson[
  19233. parseInt(checkL[z][q])
  19234. ].push(data.name)
  19235. : (this.checkJson[i][z].checkPerson[
  19236. parseInt(checkL[z][q])
  19237. ] = [data.name]);
  19238. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19239. ? this.checkJson[i][z].checkCount[
  19240. parseInt(checkL[z][q])
  19241. ]++
  19242. : (this.checkJson[i][z].checkCount[
  19243. parseInt(checkL[z][q])
  19244. ] = 1);
  19245. }
  19246. } else {
  19247. if (JSON.parse(data.content)[0].anwer[z] == checkL[z]) {
  19248. this.checkJson[i][z].rightPerson.push(data.name);
  19249. }
  19250. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19251. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19252. ? this.checkJson[i][z].checkPerson[
  19253. parseInt(checkL[z])
  19254. ].push(data.name)
  19255. : (this.checkJson[i][z].checkPerson[
  19256. parseInt(checkL[z])
  19257. ] = [data.name]);
  19258. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19259. ? this.checkJson[i][z].checkCount[
  19260. parseInt(checkL[z])
  19261. ]++
  19262. : (this.checkJson[i][z].checkCount[
  19263. parseInt(checkL[z])
  19264. ] = 1);
  19265. }
  19266. }
  19267. }
  19268. } else if (data.type == 8 && a[i].tool[0] == 45) {
  19269. var checkL = JSON.parse(data.content)[0].anwer;
  19270. for (var z = 0; z < checkL.length; z++) {
  19271. if (!this.checkJson[i][z]) {
  19272. this.checkJson[i].push({
  19273. checkCount: [],
  19274. checkPerson: [],
  19275. rightPerson: []
  19276. });
  19277. }
  19278. if (!this.checkJson[i][z].checkCount.length) {
  19279. this.checkJson[i][z].checkCount = [];
  19280. let _askItemCount = JSON.parse(data.content)[0].testJson
  19281. .testJson[z].testItem;
  19282. for (var aic = 0; aic < _askItemCount; aic++) {
  19283. this.checkJson[i][z].checkCount.push(0);
  19284. }
  19285. }
  19286. if (checkL[z] instanceof Array) {
  19287. if (
  19288. JSON.parse(data.content)[0]
  19289. .testJson.testJson[z].answer.sort()
  19290. .join(",") == checkL[z].sort().join(",")
  19291. ) {
  19292. this.checkJson[i][z].rightPerson.push(data.name);
  19293. }
  19294. for (var q = 0; q < checkL[z].length; q++) {
  19295. this.checkJson[i][z].checkPerson[parseInt(checkL[z][q])]
  19296. ? this.checkJson[i][z].checkPerson[
  19297. parseInt(checkL[z][q])
  19298. ].push(data.name)
  19299. : (this.checkJson[i][z].checkPerson[
  19300. parseInt(checkL[z][q])
  19301. ] = [data.name]);
  19302. this.checkJson[i][z].checkCount[parseInt(checkL[z][q])]
  19303. ? this.checkJson[i][z].checkCount[
  19304. parseInt(checkL[z][q])
  19305. ]++
  19306. : (this.checkJson[i][z].checkCount[
  19307. parseInt(checkL[z][q])
  19308. ] = 1);
  19309. }
  19310. } else {
  19311. if (
  19312. JSON.parse(data.content)[0].testJson.testJson[z]
  19313. .answer == checkL[z]
  19314. ) {
  19315. this.checkJson[i][z].rightPerson.push(data.name);
  19316. }
  19317. if (parseInt(checkL[z]) || parseInt(checkL[z]) == 0) {
  19318. this.checkJson[i][z].checkPerson[parseInt(checkL[z])]
  19319. ? this.checkJson[i][z].checkPerson[
  19320. parseInt(checkL[z])
  19321. ].push(data.name)
  19322. : (this.checkJson[i][z].checkPerson[
  19323. parseInt(checkL[z])
  19324. ] = [data.name]);
  19325. this.checkJson[i][z].checkCount[parseInt(checkL[z])]
  19326. ? this.checkJson[i][z].checkCount[
  19327. parseInt(checkL[z])
  19328. ]++
  19329. : (this.checkJson[i][z].checkCount[
  19330. parseInt(checkL[z])
  19331. ] = 1);
  19332. }
  19333. }
  19334. }
  19335. } else if (data.type == 9 && a[i].tool[0] == 47) {
  19336. var checkL = JSON.parse(data.content);
  19337. for (var z = 0; z < checkL.length; z++) {
  19338. if (!this.checkJson[i][z]) {
  19339. this.checkJson[i].push({
  19340. checkCount: [],
  19341. checkPerson: [],
  19342. rightPerson: []
  19343. });
  19344. }
  19345. this.checkJson[i][z].checkPerson.push(data.name);
  19346. if (
  19347. checkL[z].chooseSenList.toString() ==
  19348. checkL[z].rightAnswer.toString()
  19349. ) {
  19350. this.checkJson[i][z].rightPerson.push(data.name);
  19351. }
  19352. }
  19353. }
  19354. for (var k = 0; k < d.length; k++) {
  19355. //点赞
  19356. if (d[k].workId == b[j].id) {
  19357. likesCount++;
  19358. likeJson.push(d[k]);
  19359. if (d[k].likesId == this.userid) {
  19360. isLikes = true;
  19361. }
  19362. }
  19363. }
  19364. for (var l = 0; l < e.length; l++) {
  19365. //评论
  19366. if (e[l].workId == b[j].id) {
  19367. if (e[l].comment != "") {
  19368. commentCount++;
  19369. commentJson.push({
  19370. commentText: e[l].comment,
  19371. commentTime: e[l].commentTime,
  19372. commentPeople: e[l].commentPeople,
  19373. userid: e[l].userid,
  19374. wid: e[l].id
  19375. });
  19376. }
  19377. }
  19378. }
  19379. if (
  19380. (b[j].type == 1 ||
  19381. b[j].type == 4 ||
  19382. b[j].type == 5 ||
  19383. b[j].type == 6 ||
  19384. b[j].type == 12 ||
  19385. b[j].type == 7) &&
  19386. a[i].tool[0] != 15 &&
  19387. a[i].tool[0] != 4 &&
  19388. a[i].tool[0] != 45 &&
  19389. a[i].tool[0] != 50 &&
  19390. a[i].tool[0] != 32 &&
  19391. a[i].tool[0] != 57 &&
  19392. a[i].tool[0] != 52
  19393. ) {
  19394. if (
  19395. c.indexOf(
  19396. b[j].content
  19397. .split(".")
  19398. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19399. ) != -1 &&
  19400. a[i].tool[0] == 16 &&
  19401. b[j].atool != 50
  19402. ) {
  19403. let _works = {
  19404. userid: b[j].userid,
  19405. ateacher: b[j].ateacher,
  19406. wid: b[j].id,
  19407. works: b[j].content,
  19408. sName: b[j].name,
  19409. type: 1,
  19410. ttype: b[j].ttype,
  19411. time: b[j].time,
  19412. score: b[j].score,
  19413. img: b[j].img,
  19414. likesCount: likesCount,
  19415. commentCount: commentCount,
  19416. isLikes: isLikes,
  19417. commentJson: commentJson,
  19418. likeJson: likeJson
  19419. };
  19420. if (this.isGroup) {
  19421. let isGw = 1;
  19422. for (
  19423. var groupI = 0;
  19424. groupI < this.courseGroup.group.length;
  19425. groupI++
  19426. ) {
  19427. let gid = this.courseGroup.group[groupI].id;
  19428. if (
  19429. this.courseGroupStudentUid[gid].indexOf(
  19430. b[j].userid
  19431. ) != -1
  19432. ) {
  19433. isGw = 2;
  19434. this.courseGroup.group[groupI].works[i].push(_works);
  19435. break;
  19436. }
  19437. }
  19438. if (isGw == 1) {
  19439. _worksStudent[i].push(_works);
  19440. }
  19441. } else {
  19442. _worksStudent[i].push(_works);
  19443. }
  19444. _worksStudent2[i].push(_works);
  19445. this.isWorksS[i].push({
  19446. uid: b[j].userid,
  19447. sName: b[j].name
  19448. });
  19449. } else if (
  19450. y.indexOf(
  19451. b[j].content
  19452. .split(".")
  19453. [b[j].content.split(".").length - 1].toLocaleUpperCase()
  19454. ) != -1 &&
  19455. a[i].tool[0] == 16 &&
  19456. b[j].atool != 50
  19457. ) {
  19458. let _works = {
  19459. userid: b[j].userid,
  19460. ateacher: b[j].ateacher,
  19461. wid: b[j].id,
  19462. works: b[j].content,
  19463. sName: b[j].name,
  19464. type: 3,
  19465. ttype: b[j].ttype,
  19466. time: b[j].time,
  19467. score: b[j].score,
  19468. img: b[j].img,
  19469. likesCount: likesCount,
  19470. commentCount: commentCount,
  19471. isLikes: isLikes,
  19472. commentJson: commentJson,
  19473. likeJson: likeJson
  19474. };
  19475. if (this.isGroup) {
  19476. let isGw = 1;
  19477. for (
  19478. var groupI = 0;
  19479. groupI < this.courseGroup.group.length;
  19480. groupI++
  19481. ) {
  19482. let gid = this.courseGroup.group[groupI].id;
  19483. if (
  19484. this.courseGroupStudentUid[gid].indexOf(
  19485. b[j].userid
  19486. ) != -1
  19487. ) {
  19488. isGw = 2;
  19489. this.courseGroup.group[groupI].works[i].push(_works);
  19490. break;
  19491. }
  19492. }
  19493. if (isGw == 1) {
  19494. _worksStudent[i].push(_works);
  19495. }
  19496. } else {
  19497. _worksStudent[i].push(_works);
  19498. }
  19499. _worksStudent2[i].push(_works);
  19500. this.isWorksS[i].push({
  19501. uid: b[j].userid,
  19502. sName: b[j].name
  19503. });
  19504. } else if (b[j].type == 6 && b[j].atool != 50) {
  19505. let _works = {
  19506. userid: b[j].userid,
  19507. ateacher: b[j].ateacher,
  19508. wid: b[j].id,
  19509. works: b[j].content,
  19510. sName: b[j].name,
  19511. type: 4,
  19512. ttype: b[j].ttype,
  19513. time: b[j].time,
  19514. score: b[j].score,
  19515. img: b[j].img,
  19516. likesCount: likesCount,
  19517. commentCount: commentCount,
  19518. isLikes: isLikes,
  19519. commentJson: commentJson,
  19520. likeJson: likeJson
  19521. };
  19522. _worksStudent[i].push(_works);
  19523. _worksStudent2[i].push(_works);
  19524. this.isWorksS[i].push({
  19525. uid: b[j].userid,
  19526. sName: b[j].name
  19527. });
  19528. } else if (b[j].type == 7 && b[j].atool != 50) {
  19529. let _work = {
  19530. userid: b[j].userid,
  19531. ateacher: b[j].ateacher,
  19532. wid: b[j].id,
  19533. works: b[j].content,
  19534. sName: b[j].name,
  19535. type: 5,
  19536. ttype: b[j].ttype,
  19537. time: b[j].time,
  19538. score: b[j].score,
  19539. img: b[j].img,
  19540. likesCount: likesCount,
  19541. commentCount: commentCount,
  19542. isLikes: isLikes,
  19543. commentJson: commentJson,
  19544. likeJson: likeJson
  19545. };
  19546. _worksStudent[i].push(_work);
  19547. _worksStudent2[i].push(_work);
  19548. this.isWorksS[i].push({
  19549. uid: b[j].userid,
  19550. sName: b[j].name
  19551. });
  19552. } else if (b[j].type == 12 && a[i].tool[0] == b[j].atool) {
  19553. let _works = {
  19554. userid: b[j].userid,
  19555. ateacher: b[j].ateacher,
  19556. wid: b[j].id,
  19557. works: b[j].content,
  19558. sName: b[j].name,
  19559. type: 12,
  19560. ttype: b[j].ttype,
  19561. time: b[j].time,
  19562. score: b[j].score,
  19563. img: b[j].img,
  19564. likesCount: likesCount,
  19565. commentCount: commentCount,
  19566. isLikes: isLikes,
  19567. commentJson: commentJson,
  19568. likeJson: likeJson
  19569. };
  19570. if (this.isGroup) {
  19571. let isGw = 1;
  19572. for (
  19573. var groupI = 0;
  19574. groupI < this.courseGroup.group.length;
  19575. groupI++
  19576. ) {
  19577. let gid = this.courseGroup.group[groupI].id;
  19578. if (
  19579. this.courseGroupStudentUid[gid].indexOf(
  19580. b[j].userid
  19581. ) != -1
  19582. ) {
  19583. isGw = 2;
  19584. this.courseGroup.group[groupI].works[i].push(_works);
  19585. break;
  19586. }
  19587. }
  19588. if (isGw == 1) {
  19589. _worksStudent[i].push(_works);
  19590. }
  19591. } else {
  19592. _worksStudent[i].push(_works);
  19593. }
  19594. _worksStudent2[i].push(_works);
  19595. this.isWorksS[i].push({
  19596. uid: b[j].userid,
  19597. sName: b[j].name
  19598. });
  19599. } else if (b[j].type == 1 && a[i].tool[0] == b[j].atool) {
  19600. let _works = {
  19601. userid: b[j].userid,
  19602. ateacher: b[j].ateacher,
  19603. wid: b[j].id,
  19604. works: b[j].content,
  19605. sName: b[j].name,
  19606. type: 0,
  19607. ttype: b[j].ttype,
  19608. time: b[j].time,
  19609. score: b[j].score,
  19610. img: b[j].img,
  19611. likesCount: likesCount,
  19612. commentCount: commentCount,
  19613. isLikes: isLikes,
  19614. commentJson: commentJson,
  19615. likeJson: likeJson
  19616. };
  19617. if (this.isGroup) {
  19618. let isGw = 1;
  19619. for (
  19620. var groupI = 0;
  19621. groupI < this.courseGroup.group.length;
  19622. groupI++
  19623. ) {
  19624. let gid = this.courseGroup.group[groupI].id;
  19625. if (
  19626. this.courseGroupStudentUid[gid].indexOf(
  19627. b[j].userid
  19628. ) != -1
  19629. ) {
  19630. isGw = 2;
  19631. this.courseGroup.group[groupI].works[i].push(_works);
  19632. break;
  19633. }
  19634. }
  19635. if (isGw == 1) {
  19636. _worksStudent[i].push(_works);
  19637. }
  19638. } else {
  19639. _worksStudent[i].push(_works);
  19640. }
  19641. _worksStudent2[i].push(_works);
  19642. this.isWorksS[i].push({
  19643. uid: b[j].userid,
  19644. sName: b[j].name
  19645. });
  19646. } else if (b[j].type == 1 && !parseInt(b[j].atool)) {
  19647. let _works = {
  19648. userid: b[j].userid,
  19649. ateacher: b[j].ateacher,
  19650. wid: b[j].id,
  19651. works: b[j].content,
  19652. sName: b[j].name,
  19653. type: 0,
  19654. ttype: b[j].ttype,
  19655. time: b[j].time,
  19656. score: b[j].score,
  19657. img: b[j].img,
  19658. likesCount: likesCount,
  19659. commentCount: commentCount,
  19660. isLikes: isLikes,
  19661. commentJson: commentJson,
  19662. likeJson: likeJson
  19663. };
  19664. if (this.isGroup) {
  19665. let isGw = 1;
  19666. for (
  19667. var groupI = 0;
  19668. groupI < this.courseGroup.group.length;
  19669. groupI++
  19670. ) {
  19671. let gid = this.courseGroup.group[groupI].id;
  19672. if (
  19673. this.courseGroupStudentUid[gid].indexOf(
  19674. b[j].userid
  19675. ) != -1
  19676. ) {
  19677. isGw = 2;
  19678. this.courseGroup.group[groupI].works[i].push(_works);
  19679. break;
  19680. }
  19681. }
  19682. if (isGw == 1) {
  19683. _worksStudent[i].push(_works);
  19684. }
  19685. } else {
  19686. _worksStudent[i].push(_works);
  19687. }
  19688. _worksStudent2[i].push(_works);
  19689. this.isWorksS[i].push({
  19690. uid: b[j].userid,
  19691. sName: b[j].name
  19692. });
  19693. }
  19694. } else if (b[j].type == 3 && a[i].tool[0] == 15) {
  19695. let _works = {
  19696. userid: b[j].userid,
  19697. ateacher: b[j].ateacher,
  19698. wid: b[j].id,
  19699. works: b[j].content,
  19700. sName: b[j].name,
  19701. type: 2,
  19702. ttype: b[j].ttype,
  19703. time: b[j].time,
  19704. score: b[j].score,
  19705. img: b[j].img,
  19706. likesCount: likesCount,
  19707. commentCount: commentCount,
  19708. isLikes: isLikes,
  19709. commentJson: commentJson,
  19710. likeJson: likeJson
  19711. };
  19712. if (this.isGroup) {
  19713. let isGw = 1;
  19714. for (
  19715. var groupI = 0;
  19716. groupI < this.courseGroup.group.length;
  19717. groupI++
  19718. ) {
  19719. let gid = this.courseGroup.group[groupI].id;
  19720. if (
  19721. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19722. -1
  19723. ) {
  19724. isGw = 2;
  19725. this.courseGroup.group[groupI].works[i].push(_works);
  19726. break;
  19727. }
  19728. }
  19729. if (isGw == 1) {
  19730. _worksStudent[i].push(_works);
  19731. }
  19732. } else {
  19733. _worksStudent[i].push(_works);
  19734. }
  19735. _worksStudent2[i].push(_works);
  19736. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19737. } else if (b[j].type == 20 && a[i].tool[0] == 72) {
  19738. let _works = {
  19739. userid: b[j].userid,
  19740. ateacher: b[j].ateacher,
  19741. wid: b[j].id,
  19742. works: b[j].content,
  19743. sName: b[j].name,
  19744. type: 20,
  19745. ttype: b[j].ttype,
  19746. time: b[j].time,
  19747. score: b[j].score,
  19748. img: b[j].img,
  19749. likesCount: likesCount,
  19750. commentCount: commentCount,
  19751. isLikes: isLikes,
  19752. commentJson: commentJson,
  19753. likeJson: likeJson
  19754. };
  19755. if (this.isGroup) {
  19756. let isGw = 1;
  19757. for (
  19758. var groupI = 0;
  19759. groupI < this.courseGroup.group.length;
  19760. groupI++
  19761. ) {
  19762. let gid = this.courseGroup.group[groupI].id;
  19763. if (
  19764. this.courseGroupStudentUid[gid].indexOf(b[j].userid) !=
  19765. -1
  19766. ) {
  19767. isGw = 2;
  19768. this.courseGroup.group[groupI].works[i].push(_works);
  19769. break;
  19770. }
  19771. }
  19772. if (isGw == 1) {
  19773. _worksStudent[i].push(_works);
  19774. }
  19775. } else {
  19776. _worksStudent[i].push(_works);
  19777. }
  19778. _worksStudent2[i].push(_works);
  19779. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19780. } else if (b[j].type == 2 && a[i].tool[0] == 4) {
  19781. //问卷
  19782. let _work = {
  19783. userid: b[j].userid,
  19784. ateacher: b[j].ateacher,
  19785. wid: b[j].id,
  19786. works: b[j].content,
  19787. sName: b[j].name,
  19788. type: 2,
  19789. ttype: b[j].ttype,
  19790. time: b[j].time,
  19791. score: b[j].score,
  19792. img: b[j].img,
  19793. likesCount: likesCount,
  19794. commentCount: commentCount,
  19795. isLikes: isLikes,
  19796. commentJson: commentJson,
  19797. likeJson: likeJson
  19798. };
  19799. _worksStudent[i].push(_work);
  19800. _worksStudent2[i].push(_work);
  19801. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19802. } else if (b[j].type == 8 && a[i].tool[0] == 45) {
  19803. //选择题
  19804. let _work = {
  19805. userid: b[j].userid,
  19806. ateacher: b[j].ateacher,
  19807. wid: b[j].id,
  19808. works: b[j].content,
  19809. sName: b[j].name,
  19810. type: 8,
  19811. ttype: b[j].ttype,
  19812. time: b[j].time,
  19813. score: b[j].score,
  19814. img: b[j].img,
  19815. likesCount: likesCount,
  19816. commentCount: commentCount,
  19817. isLikes: isLikes,
  19818. commentJson: commentJson,
  19819. likeJson: likeJson
  19820. };
  19821. _worksStudent[i].push(_work);
  19822. _worksStudent2[i].push(_work);
  19823. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19824. } else if (b[j].type == 9 && a[i].tool[0] == 47) {
  19825. //选择题
  19826. let _work = {
  19827. userid: b[j].userid,
  19828. ateacher: b[j].ateacher,
  19829. wid: b[j].id,
  19830. works: b[j].content,
  19831. sName: b[j].name,
  19832. type: 9,
  19833. ttype: b[j].ttype,
  19834. time: b[j].time,
  19835. score: b[j].score,
  19836. img: b[j].img,
  19837. likesCount: likesCount,
  19838. commentCount: commentCount,
  19839. isLikes: isLikes,
  19840. commentJson: commentJson,
  19841. likeJson: likeJson
  19842. };
  19843. _worksStudent[i].push(_work);
  19844. _worksStudent2[i].push(_work);
  19845. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19846. } else if (b[j].type == 10 && a[i].tool[0] == 48) {
  19847. //选择题
  19848. let _work = {
  19849. userid: b[j].userid,
  19850. ateacher: b[j].ateacher,
  19851. wid: b[j].id,
  19852. works: b[j].content,
  19853. sName: b[j].name,
  19854. type: 10,
  19855. ttype: b[j].ttype,
  19856. time: b[j].time,
  19857. score: b[j].score,
  19858. img: b[j].img,
  19859. likesCount: likesCount,
  19860. commentCount: commentCount,
  19861. isLikes: isLikes,
  19862. commentJson: commentJson,
  19863. likeJson: likeJson
  19864. };
  19865. _worksStudent[i].push(_work);
  19866. _worksStudent2[i].push(_work);
  19867. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19868. } else if (b[j].type == 13 && a[i].tool[0] == 52) {
  19869. //选择题
  19870. let _work = {
  19871. userid: b[j].userid,
  19872. ateacher: b[j].ateacher,
  19873. wid: b[j].id,
  19874. works: b[j].content,
  19875. sName: b[j].name,
  19876. type: 13,
  19877. ttype: b[j].ttype,
  19878. time: b[j].time,
  19879. score: b[j].score,
  19880. img: b[j].img,
  19881. likesCount: likesCount,
  19882. commentCount: commentCount,
  19883. isLikes: isLikes,
  19884. commentJson: commentJson,
  19885. likeJson: likeJson
  19886. };
  19887. _worksStudent[i].push(_work);
  19888. _worksStudent2[i].push(_work);
  19889. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19890. } else if (b[j].type == 16 && a[i].tool[0] == 69) {
  19891. //选择题
  19892. let _work = {
  19893. userid: b[j].userid,
  19894. ateacher: b[j].ateacher,
  19895. wid: b[j].id,
  19896. works: b[j].content,
  19897. sName: b[j].name,
  19898. type: 16,
  19899. ttype: b[j].ttype,
  19900. time: b[j].time,
  19901. score: b[j].score,
  19902. img: b[j].img,
  19903. likesCount: likesCount,
  19904. commentCount: commentCount,
  19905. isLikes: isLikes,
  19906. commentJson: commentJson,
  19907. aiCode: b[j].aiCode,
  19908. teacherCode: b[j].teacherCode,
  19909. likeJson: likeJson
  19910. };
  19911. _worksStudent[i].push(_work);
  19912. _worksStudent2[i].push(_work);
  19913. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19914. } else if (b[j].type == 17 && a[i].tool[0] == 70) {
  19915. //选择题
  19916. let _work = {
  19917. userid: b[j].userid,
  19918. ateacher: b[j].ateacher,
  19919. wid: b[j].id,
  19920. works: b[j].content,
  19921. sName: b[j].name,
  19922. type: 17,
  19923. ttype: b[j].ttype,
  19924. time: b[j].time,
  19925. score: b[j].score,
  19926. img: b[j].img,
  19927. likesCount: likesCount,
  19928. commentCount: commentCount,
  19929. isLikes: isLikes,
  19930. commentJson: commentJson,
  19931. likeJson: likeJson
  19932. };
  19933. _worksStudent[i].push(_work);
  19934. _worksStudent2[i].push(_work);
  19935. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19936. } else if (b[j].type == 14 && a[i].tool[0] == 62) {
  19937. //交互视频
  19938. let _work = {
  19939. userid: b[j].userid,
  19940. ateacher: b[j].ateacher,
  19941. wid: b[j].id,
  19942. works: b[j].content,
  19943. sName: b[j].name,
  19944. type: 14,
  19945. ttype: b[j].ttype,
  19946. time: b[j].time,
  19947. score: b[j].score,
  19948. img: b[j].img,
  19949. likesCount: likesCount,
  19950. commentCount: commentCount,
  19951. isLikes: isLikes,
  19952. commentJson: commentJson,
  19953. likeJson: likeJson
  19954. };
  19955. _worksStudent[i].push(_work);
  19956. _worksStudent2[i].push(_work);
  19957. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19958. } else if (b[j].type == 11 && a[i].tool[0] == 49) {
  19959. let _gindex = JSON.parse(b[j].content);
  19960. if (
  19961. this.groupStudentUid[i][_gindex.groupIndex].indexOf(
  19962. b[j].userid
  19963. ) != -1
  19964. ) {
  19965. let _work = {
  19966. userid: b[j].userid,
  19967. ateacher: b[j].ateacher,
  19968. wid: b[j].id,
  19969. works: _gindex.url,
  19970. sName: b[j].name,
  19971. type: _gindex.type,
  19972. ttype: b[j].ttype,
  19973. time: b[j].time,
  19974. score: b[j].score,
  19975. img: b[j].img,
  19976. likesCount: likesCount,
  19977. commentCount: commentCount,
  19978. isLikes: isLikes,
  19979. commentJson: commentJson,
  19980. likeJson: likeJson
  19981. };
  19982. _worksStudent[i][_gindex.groupIndex].push(_work);
  19983. _worksStudent2[i][_gindex.groupIndex].push(_work);
  19984. }
  19985. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  19986. } else if (a[i].tool[0] == 50 && b[j].atool == 50) {
  19987. let _work = {
  19988. userid: b[j].userid,
  19989. ateacher: b[j].ateacher,
  19990. wid: b[j].id,
  19991. works: b[j].content,
  19992. sName: b[j].name ? b[j].name : b[j].userid,
  19993. type: b[j].type == 1 ? 0 : b[j].type == 4 ? 1 : 3,
  19994. ttype: b[j].ttype,
  19995. time: b[j].time,
  19996. score: b[j].score,
  19997. img: b[j].img,
  19998. likesCount: likesCount,
  19999. commentCount: commentCount,
  20000. isLikes: isLikes,
  20001. commentJson: commentJson,
  20002. likeJson: likeJson
  20003. };
  20004. _worksStudent[i].push(_work);
  20005. _worksStudent2[i].push(_work);
  20006. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20007. } else if (a[i].tool[0] == 32 && b[j].atool == 32) {
  20008. let _work = {
  20009. userid: b[j].userid,
  20010. ateacher: b[j].ateacher,
  20011. wid: b[j].id,
  20012. works: b[j].content,
  20013. sName: b[j].name ? b[j].name : b[j].userid,
  20014. type: 12,
  20015. ttype: b[j].ttype,
  20016. time: b[j].time,
  20017. score: b[j].score,
  20018. img: b[j].img,
  20019. likesCount: likesCount,
  20020. commentCount: commentCount,
  20021. isLikes: isLikes,
  20022. commentJson: commentJson,
  20023. likeJson: likeJson
  20024. };
  20025. _worksStudent[i].push(_work);
  20026. _worksStudent2[i].push(_work);
  20027. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20028. } else if (
  20029. a[i].tool[0] == 57 &&
  20030. b[j].atool == 57 &&
  20031. b[j].type == 12
  20032. ) {
  20033. let _work = {
  20034. userid: b[j].userid,
  20035. ateacher: b[j].ateacher,
  20036. wid: b[j].id,
  20037. works: b[j].content,
  20038. sName: b[j].name ? b[j].name : b[j].userid,
  20039. type: 12,
  20040. ttype: b[j].ttype,
  20041. time: b[j].time,
  20042. score: b[j].score,
  20043. img: b[j].img,
  20044. likesCount: likesCount,
  20045. commentCount: commentCount,
  20046. isLikes: isLikes,
  20047. commentJson: commentJson,
  20048. likeJson: likeJson
  20049. };
  20050. _worksStudent[i].push(_work);
  20051. _worksStudent2[i].push(_work);
  20052. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20053. } else if (
  20054. a[i].tool[0] == 57 &&
  20055. b[j].atool == 57 &&
  20056. b[j].type == 15
  20057. ) {
  20058. let _work = {
  20059. userid: b[j].userid,
  20060. ateacher: b[j].ateacher,
  20061. wid: b[j].id,
  20062. works: b[j].content,
  20063. sName: b[j].name ? b[j].name : b[j].userid,
  20064. type: 15,
  20065. ttype: b[j].ttype,
  20066. time: b[j].time,
  20067. score: b[j].score,
  20068. img: b[j].img,
  20069. likesCount: likesCount,
  20070. commentCount: commentCount,
  20071. isLikes: isLikes,
  20072. commentJson: commentJson,
  20073. likeJson: likeJson
  20074. };
  20075. _worksStudent[i].push(_work);
  20076. _worksStudent2[i].push(_work);
  20077. this.isWorksS[i].push({ uid: b[j].userid, sName: b[j].name });
  20078. }
  20079. }
  20080. }
  20081. if (_worksStudent[i] && _worksStudent[i].length) {
  20082. _worksStudent[i] = _worksStudent[i].sort(function(a, b) {
  20083. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20084. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20085. var scoreA = parseFloat(jscoreA);
  20086. var scoreB = parseFloat(jscoreB);
  20087. if (scoreA == scoreB) {
  20088. return b.likesCount - a.likesCount;
  20089. }
  20090. return scoreB - scoreA;
  20091. });
  20092. if (this.isGroup) {
  20093. for (
  20094. var groupI = 0;
  20095. groupI < this.courseGroup.group.length;
  20096. groupI++
  20097. ) {
  20098. this.courseGroup.group[groupI].works[
  20099. i
  20100. ] = this.courseGroup.group[groupI].works[i].sort(function(
  20101. a,
  20102. b
  20103. ) {
  20104. let jscoreA = a.score ? JSON.parse(a.score).wScore : 0;
  20105. let jscoreB = b.score ? JSON.parse(b.score).wScore : 0;
  20106. var scoreA = parseFloat(jscoreA);
  20107. var scoreB = parseFloat(jscoreB);
  20108. if (scoreA == scoreB) {
  20109. return b.likesCount - a.likesCount;
  20110. }
  20111. return scoreB - scoreA;
  20112. });
  20113. }
  20114. }
  20115. }
  20116. }
  20117. this.timeWorkList = _worksStudent2;
  20118. for (var i = 0; i < a.length; i++) {
  20119. for (var j = 0; j < b.length; j++) {
  20120. var data = b[j];
  20121. if (i == b[j].tool) {
  20122. if (data.type == 2 || data.type == 8) {
  20123. for (var z = 0; z < this.checkJson[i].length; z++) {
  20124. this.checkJson[i][z].checkPerent = [];
  20125. this.checkJson[i][z].right = Math.round(
  20126. (this.checkJson[i][z].rightPerson.length /
  20127. parseInt(_worksStudent[i].length)) *
  20128. 100
  20129. );
  20130. let aaaa = this.checkJson[i][z];
  20131. for (
  20132. var k = 0;
  20133. k < this.checkJson[i][z].checkCount.length;
  20134. k++
  20135. ) {
  20136. this.checkJson[i][z].checkPerent.push(
  20137. Math.round(
  20138. (this.checkJson[i][z].checkCount[k] /
  20139. parseInt(_worksStudent[i].length)) *
  20140. 100
  20141. )
  20142. );
  20143. }
  20144. }
  20145. } else if (data.type == 9) {
  20146. for (var z = 0; z < this.checkJson[i].length; z++) {
  20147. this.checkJson[i][z].checkPerent = [];
  20148. this.checkJson[i][z].right = Math.round(
  20149. (this.checkJson[i][z].rightPerson.length /
  20150. this.checkJson[i][z].checkPerson.length) *
  20151. 100
  20152. );
  20153. }
  20154. }
  20155. }
  20156. }
  20157. }
  20158. if (this.dialogVisibleGroup && (gindex || gindex === 0)) {
  20159. this.joinGroup(gindex);
  20160. }
  20161. this.worksStudent = _worksStudent;
  20162. this.selectWorksStudent();
  20163. for (let ci = 0; ci < this.isCloseList.length; ci++) {
  20164. this.$nextTick(() => {
  20165. setTimeout(() => {
  20166. setTimeout(() => {
  20167. this.panToolHeight("tool-" + ci);
  20168. }, 500);
  20169. }, 0);
  20170. });
  20171. }
  20172. this.selectSWorksLoading = false
  20173. })
  20174. .catch(err => {
  20175. this.selectSWorksLoading = false
  20176. console.error(err);
  20177. });
  20178. },
  20179. pngToWhiteBg(file) {
  20180. const _file = file;
  20181. let read = new FileReader();
  20182. read.readAsDataURL(file); // 文件转base64
  20183. return new Promise((resolve, reject) => {
  20184. read.onload = (e) => {
  20185. let img = new Image();
  20186. img.src = e.target.result;
  20187. img.onload = async () => {
  20188. // 生成canvas
  20189. let canvas = document.createElement("canvas");
  20190. let context = canvas.getContext("2d");
  20191. // 绘制图片到canvas上
  20192. canvas.width = img.width;
  20193. canvas.height = img.height;
  20194. // 在canvas绘制前填充白色背景
  20195. context.fillStyle = "#fff";
  20196. context.fillRect(0, 0, canvas.width, canvas.height);
  20197. context.drawImage(img, 0, 0);
  20198. let base64 = canvas.toDataURL(file["type"], 1);
  20199. let newFile = this.dataUrlToFile(base64, _file);
  20200. resolve(newFile);
  20201. };
  20202. };
  20203. });
  20204. },
  20205. dataUrlToFile(dataurl, file) {
  20206. let arr = dataurl.split(","),
  20207. mime = arr[0].match(/:(.*?);/)[1],
  20208. bstr = atob(arr[1]),
  20209. n = bstr.length,
  20210. u8arr = new Uint8Array(n);
  20211. while (n--) {
  20212. u8arr[n] = bstr.charCodeAt(n);
  20213. }
  20214. // return new Blob([u8arr], { type: mime });
  20215. return new File([new Blob([u8arr], { type: mime })], file.name, {
  20216. type: mime,
  20217. });
  20218. },
  20219. async beforeUpload1(event, type, i) {
  20220. // this.$message.success('进入上传')
  20221. var file = "";
  20222. if (type == 5) {
  20223. file = event;
  20224. } else {
  20225. file = event.target.files[0];
  20226. }
  20227. var credentials = {
  20228. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20229. secretAccessKey: "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",
  20230. }; //秘钥形式的登录上传
  20231. window.AWS.config.update(credentials);
  20232. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20233. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20234. var _this = this;
  20235. _this.progress = 0;
  20236. _this.proVisible = true;
  20237. _this.isFinishSize = 0;
  20238. _this.isAllSize = (file.size / 1024 / 1024).toFixed(2);
  20239. var b = [
  20240. "DOC",
  20241. "DOCX",
  20242. "DOCM",
  20243. "DOTM",
  20244. "DOTX",
  20245. "PPTX",
  20246. "PPSX",
  20247. "PPT",
  20248. "PPS",
  20249. "PPTM",
  20250. "POTM",
  20251. "PPAM",
  20252. "POTX",
  20253. "PPSM",
  20254. ];
  20255. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20256. var photoA = [
  20257. "BMP",
  20258. "GIF",
  20259. "PNG",
  20260. "JPEG",
  20261. "JPEG",
  20262. "JPG",
  20263. "TIF",
  20264. "PCX",
  20265. "TGA",
  20266. "EXIF",
  20267. "FPX",
  20268. "SVG",
  20269. "APNG",
  20270. ];
  20271. // if (
  20272. // b.indexOf(
  20273. // file.name
  20274. // .split(".")
  20275. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20276. // ) != -1
  20277. // ) {
  20278. // if (file.size / 1024 / 1024 > 10) {
  20279. // this.$message.error("上传文件大于10兆,请重新选择文件!");
  20280. // return;
  20281. // }
  20282. // } else if (
  20283. // excelA.indexOf(
  20284. // file.name
  20285. // .split(".")
  20286. // [file.name.split(".").length - 1].toLocaleUpperCase()
  20287. // ) != "-1"
  20288. // ) {
  20289. // if (file.size / 1024 / 1024 > 5) {
  20290. // this.$message.error("添加成上传文件大于5兆,请重新选择文件!");
  20291. // return;
  20292. // }
  20293. // }
  20294. if (
  20295. photoA.indexOf(
  20296. file.name
  20297. .split(".")
  20298. [file.name.split(".").length - 1].toLocaleUpperCase()
  20299. ) != -1 &&
  20300. type != 4
  20301. ) {
  20302. // const blob = await imageConversion.compress(file, 0.8)
  20303. file = await this.pngToWhiteBg(file);
  20304. const blob = await imageConversion.compressAccurately(file, 256);
  20305. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20306. file = new File([blob], file.name, { type: file.type });
  20307. }
  20308. if (file) {
  20309. var params = {
  20310. Key:
  20311. file.name.split(".")[0] +
  20312. new Date().getTime() +
  20313. "." +
  20314. file.name.split(".")[file.name.split(".").length - 1],
  20315. ContentType: file.type,
  20316. Body: file,
  20317. "Access-Control-Allow-Credentials": "*",
  20318. ACL: "public-read",
  20319. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20320. var options = {
  20321. // partSize: 2048 * 1024 * 1024,
  20322. partSize: 1024 * 1024 * 1024,
  20323. queueSize: 2,
  20324. leavePartsOnError: true,
  20325. };
  20326. bucket
  20327. .upload(params, options)
  20328. .on("httpUploadProgress", function (evt) {
  20329. //这里可以写进度条
  20330. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20331. _this.progress = parseInt((evt.loaded / evt.total) * 100);
  20332. _this.isFinishSize = (evt.loaded / 1024 / 1024).toFixed(2);
  20333. })
  20334. .send(function (err, data) {
  20335. _this.progress = 100;
  20336. _this.isFinishSize = _this.isAllSize;
  20337. setTimeout(() => {
  20338. _this.proVisible = false;
  20339. }, 1000);
  20340. if (err) {
  20341. var a = _this.$refs.upload1.uploadFiles;
  20342. a.splice(a.length - 1, a.length);
  20343. _this.$message.error("上传失败");
  20344. } else {
  20345. // _this.$message.success('上传成功')
  20346. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20347. var c = [
  20348. "AVI",
  20349. "NAVI",
  20350. "MPEG",
  20351. "ASF",
  20352. "MOV",
  20353. "WMV",
  20354. "3GP",
  20355. "RM",
  20356. "RMVB",
  20357. "FLV",
  20358. "F4V",
  20359. "H.264",
  20360. "H.265",
  20361. "REAL VIDEO",
  20362. "MKV",
  20363. "WebM",
  20364. "HDDVD",
  20365. "MP4",
  20366. "MPG",
  20367. "M4V",
  20368. "MGV",
  20369. "OGV",
  20370. "QTM",
  20371. "STR",
  20372. "AMC",
  20373. "DVX",
  20374. "EVO",
  20375. "DAT",
  20376. "OGG",
  20377. "OGM",
  20378. ];
  20379. if (type == 1) {
  20380. _this.studyJuri[0].cover.push({
  20381. name: file.name,
  20382. url: data.Location,
  20383. uid: file.uid,
  20384. });
  20385. if (
  20386. c.indexOf(
  20387. _this.studyJuri[0].cover[0].url
  20388. .split(".")
  20389. [
  20390. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20391. ].toLocaleUpperCase()
  20392. ) != -1
  20393. ) {
  20394. _this.fileType = 2;
  20395. } else if (
  20396. b.indexOf(
  20397. _this.studyJuri[0].cover[0].url
  20398. .split(".")
  20399. [
  20400. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20401. ].toLocaleUpperCase()
  20402. ) != -1
  20403. ) {
  20404. _this.fileType = 1;
  20405. } else if (
  20406. photoA.indexOf(
  20407. _this.studyJuri[0].cover[0].url
  20408. .split(".")
  20409. [
  20410. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20411. ].toLocaleUpperCase()
  20412. ) != -1
  20413. ) {
  20414. _this.fileType = 0;
  20415. } else {
  20416. _this.fileType = 3;
  20417. }
  20418. _this.imgChange(null, null, type);
  20419. } else if (type == 2) {
  20420. _this.upToolImg = data.Location;
  20421. _this.imgChange(null, null, type);
  20422. _this.addCourseWorks(i);
  20423. } else if (type == 4) {
  20424. _this.addPz("3", data.Location);
  20425. } else if (type == 5) {
  20426. _this.addImgDrawImG(data.Location);
  20427. } else if (type == 6) {
  20428. var _ftype = 1;
  20429. if (
  20430. c.indexOf(
  20431. data.Location.split(".")[
  20432. data.Location.split(".").length - 1
  20433. ].toLocaleUpperCase()
  20434. ) != -1
  20435. ) {
  20436. _ftype = 5;
  20437. } else if (
  20438. b.indexOf(
  20439. data.Location.split(".")[
  20440. data.Location.split(".").length - 1
  20441. ].toLocaleUpperCase()
  20442. ) != -1
  20443. ) {
  20444. _ftype = 4;
  20445. } else {
  20446. _ftype = 1;
  20447. }
  20448. _this.plworkFile.push({
  20449. name: file.name,
  20450. url: data.Location,
  20451. uid: file.uid,
  20452. fileType: _ftype,
  20453. username:
  20454. _this.plworkFile.length > 10
  20455. ? _this.plworkFile.length + 1
  20456. : "0" + (_this.plworkFile.length + 1),
  20457. });
  20458. } else if (type == 7) {
  20459. _this.addCourseWorksGong(i, data.Location, 32);
  20460. } else if (type == 8) {
  20461. _this.addCourseWorksGong(i, data.Location, 57);
  20462. }
  20463. _this.imgChange(null, null, type);
  20464. console.log(data.Location);
  20465. // _this.$message.success('上传成功'+data.Location)
  20466. }
  20467. });
  20468. }
  20469. },
  20470. async beforeUpload3(event, type, i) {
  20471. // this.$message.success('进入上传')
  20472. let file = "";
  20473. let cfindex2 = 0;
  20474. for (var cfindex = 0; cfindex < event.target.files.length; cfindex++) {
  20475. file = event.target.files[cfindex];
  20476. var credentials = {
  20477. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20478. secretAccessKey: "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",
  20479. }; //秘钥形式的登录上传
  20480. window.AWS.config.update(credentials);
  20481. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20482. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20483. var _this = this;
  20484. // _this.progress = 0;
  20485. _this.proVisible2 = true;
  20486. var b = [
  20487. "DOC",
  20488. "DOCX",
  20489. "DOCM",
  20490. "DOTM",
  20491. "DOTX",
  20492. "PPTX",
  20493. "PPSX",
  20494. "PPT",
  20495. "PPS",
  20496. "PPTM",
  20497. "POTM",
  20498. "PPAM",
  20499. "POTX",
  20500. "PPSM",
  20501. ];
  20502. var excelA = ["XLSX", "XLXB", "XLS", "XLSM"];
  20503. var photoA = [
  20504. "BMP",
  20505. "GIF",
  20506. "PNG",
  20507. "JPEG",
  20508. "JPG",
  20509. "TIF",
  20510. "PCX",
  20511. "TGA",
  20512. "EXIF",
  20513. "FPX",
  20514. "SVG",
  20515. "APNG",
  20516. ];
  20517. if (
  20518. photoA.indexOf(
  20519. file.name
  20520. .split(".")
  20521. [file.name.split(".").length - 1].toLocaleUpperCase()
  20522. ) != -1 &&
  20523. type != 4
  20524. ) {
  20525. // const blob = await imageConversion.compress(file, 0.8)
  20526. file = await this.pngToWhiteBg(file);
  20527. const blob = await imageConversion.compressAccurately(file, 256);
  20528. // const blob = await imageConversion.compressAccurately(file, {type:file.type});
  20529. file = new File([blob], file.name, { type: file.type });
  20530. }
  20531. if (file) {
  20532. var params = {
  20533. Key:
  20534. file.name.split(".")[0] +
  20535. new Date().getTime() +
  20536. "." +
  20537. file.name.split(".")[file.name.split(".").length - 1],
  20538. ContentType: file.type,
  20539. Body: file,
  20540. "Access-Control-Allow-Credentials": "*",
  20541. ACL: "public-read",
  20542. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20543. var options = {
  20544. // partSize: 2048 * 1024 * 1024,
  20545. partSize: 1024 * 1024 * 1024,
  20546. queueSize: 2,
  20547. leavePartsOnError: true,
  20548. };
  20549. bucket
  20550. .upload(params, options)
  20551. .on("httpUploadProgress", function (evt) {
  20552. //这里可以写进度条
  20553. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20554. // _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20555. })
  20556. .send(function (err, data) {
  20557. // _this.progress = 100;
  20558. cfindex2++;
  20559. setTimeout(() => {
  20560. if (
  20561. cfindex2 == event.target.files.length - 1 ||
  20562. cfindex2 > event.target.files.length - 1
  20563. ) {
  20564. _this.proVisible2 = false;
  20565. }
  20566. }, 1000);
  20567. if (err) {
  20568. var a = _this.$refs.upload1.uploadFiles;
  20569. a.splice(a.length - 1, a.length);
  20570. _this.$message.error("上传失败");
  20571. } else {
  20572. // _this.$message.success('上传成功')
  20573. var b = ["PDF", "DOC", "DOCX", "PPT", "PPTX", "XLSX", "XLS"];
  20574. var c = [
  20575. "AVI",
  20576. "NAVI",
  20577. "MPEG",
  20578. "ASF",
  20579. "MOV",
  20580. "WMV",
  20581. "3GP",
  20582. "RM",
  20583. "RMVB",
  20584. "FLV",
  20585. "F4V",
  20586. "H.264",
  20587. "H.265",
  20588. "REAL VIDEO",
  20589. "MKV",
  20590. "WebM",
  20591. "HDDVD",
  20592. "MP4",
  20593. "MPG",
  20594. "M4V",
  20595. "MGV",
  20596. "OGV",
  20597. "QTM",
  20598. "STR",
  20599. "AMC",
  20600. "DVX",
  20601. "EVO",
  20602. "DAT",
  20603. "OGG",
  20604. "OGM",
  20605. ];
  20606. if (type == 1) {
  20607. _this.studyJuri[0].cover.push({
  20608. name: file.name,
  20609. url: data.Location,
  20610. uid: file.uid,
  20611. });
  20612. if (
  20613. c.indexOf(
  20614. _this.studyJuri[0].cover[0].url
  20615. .split(".")
  20616. [
  20617. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20618. ].toLocaleUpperCase()
  20619. ) != -1
  20620. ) {
  20621. _this.fileType = 2;
  20622. } else if (
  20623. b.indexOf(
  20624. _this.studyJuri[0].cover[0].url
  20625. .split(".")
  20626. [
  20627. _this.studyJuri[0].cover[0].url.split(".").length - 1
  20628. ].toLocaleUpperCase()
  20629. ) != -1
  20630. ) {
  20631. _this.fileType = 1;
  20632. } else {
  20633. _this.fileType = 0;
  20634. }
  20635. _this.imgChange(null, null, type);
  20636. } else if (type == 2) {
  20637. _this.upToolImg = data.Location;
  20638. _this.imgChange(null, null, type);
  20639. _this.addCourseWorks(i);
  20640. } else if (type == 4) {
  20641. _this.addPz("3", data.Location);
  20642. } else if (type == 5) {
  20643. _this.addImgDrawImG(data.Location);
  20644. } else if (type == 6) {
  20645. var _ftype = 1;
  20646. if (
  20647. c.indexOf(
  20648. data.Location.split(".")[
  20649. data.Location.split(".").length - 1
  20650. ].toLocaleUpperCase()
  20651. ) != -1
  20652. ) {
  20653. _ftype = 5;
  20654. } else if (
  20655. b.indexOf(
  20656. data.Location.split(".")[
  20657. data.Location.split(".").length - 1
  20658. ].toLocaleUpperCase()
  20659. ) != -1
  20660. ) {
  20661. _ftype = 4;
  20662. } else {
  20663. _ftype = 1;
  20664. }
  20665. _this.plworkFile.push({
  20666. name: file.name,
  20667. url: data.Location,
  20668. uid: file.uid,
  20669. fileType: _ftype,
  20670. username:
  20671. _this.plworkFile.length + 1 > 9
  20672. ? _this.plworkFile.length + 1
  20673. : "0" + (_this.plworkFile.length + 1),
  20674. });
  20675. }
  20676. _this.imgChange(null, null, type);
  20677. console.log(data.Location);
  20678. // _this.$message.success('上传成功'+data.Location)
  20679. }
  20680. });
  20681. }
  20682. }
  20683. },
  20684. beforeUpload2(event, type) {
  20685. var file = event.target.files[0];
  20686. var credentials = {
  20687. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  20688. secretAccessKey: "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",
  20689. }; //秘钥形式的登录上传
  20690. window.AWS.config.update(credentials);
  20691. window.AWS.config.region = "cn-northwest-1"; //设置区域
  20692. var bucket = new window.AWS.S3({ params: { Bucket: "ccrb" } }); //选择桶
  20693. var _this = this;
  20694. _this.progress = 0;
  20695. _this.proVisible = true;
  20696. if (file) {
  20697. var params = {
  20698. Key:
  20699. file.name.split(".")[0] +
  20700. new Date().getTime() +
  20701. "." +
  20702. file.name.split(".")[file.name.split(".").length - 1],
  20703. ContentType: file.type,
  20704. Body: file,
  20705. "Access-Control-Allow-Credentials": "*",
  20706. ACL: "public-read",
  20707. }; //key可以设置为桶的相抵路径,Body为文件, ACL最好要设置
  20708. var options = {
  20709. partSize: 2048 * 1024 * 1024,
  20710. queueSize: 2,
  20711. leavePartsOnError: true,
  20712. };
  20713. bucket
  20714. .upload(params, options)
  20715. .on("httpUploadProgress", function (evt) {
  20716. //这里可以写进度条
  20717. // console.log("Uploaded : " + parseInt((evt.loaded * 80) / evt.total) + '%');
  20718. _this.progress = parseInt((evt.loaded * 80) / evt.total);
  20719. })
  20720. .send(function (err, data) {
  20721. _this.progress = 100;
  20722. setTimeout(() => {
  20723. _this.proVisible = false;
  20724. }, 1000);
  20725. if (err) {
  20726. var a = _this.$refs.upload1.uploadFiles;
  20727. a.splice(a.length - 1, a.length);
  20728. _this.$message.error("上传失败");
  20729. } else {
  20730. if (type == 2) {
  20731. _this.studyJuri[0].upVedio.push({
  20732. name: file.name,
  20733. url: data.Location,
  20734. uid: file.uid,
  20735. });
  20736. _this.imgChange(null, null, type);
  20737. } else if (type == 3) {
  20738. _this.studyJuri[0].upFile.push({
  20739. name: file.name,
  20740. url: data.Location,
  20741. uid: file.uid,
  20742. });
  20743. _this.imgChange(null, null, type);
  20744. }
  20745. console.log(data.Location);
  20746. }
  20747. });
  20748. }
  20749. },
  20750. allScrell() {
  20751. window.topU.postMessage({ allScreen: this.screenType }, "*");
  20752. },
  20753. nextOrpreSteps(t) {
  20754. if (this.IsFollow && this.tType == 2) {
  20755. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20756. return;
  20757. }
  20758. var b = this.chapInfoList.length - 1;
  20759. if (t == 0) {
  20760. if (this.courseType == 0) {
  20761. if (this.taskCount == 0) {
  20762. // console.log(this.navList[b].task[this.navList[b].task.length - 1].isLook);
  20763. if (this.IsLookOpen) {
  20764. if (
  20765. !this.navList[b].task[this.navList[b].task.length - 1].isLook
  20766. ) {
  20767. if (
  20768. this.courseDetail.userid != this.userid &&
  20769. (!this.courseDetail.course_teacher ||
  20770. (this.courseDetail.course_teacher &&
  20771. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20772. ) {
  20773. this.$message.error("任务未解锁");
  20774. } else {
  20775. this.$message.error("上一任务未解锁");
  20776. }
  20777. return;
  20778. }
  20779. }
  20780. this.navList[this.courseType].isOpen = false;
  20781. this.courseType = b;
  20782. this.taskCount =
  20783. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20784. .length - 1;
  20785. this.navList[this.courseType].isOpen = true;
  20786. } else {
  20787. this.taskCount--;
  20788. }
  20789. } else {
  20790. if (this.taskCount == 0) {
  20791. this.navList[this.courseType].isOpen = false;
  20792. this.courseType--;
  20793. this.taskCount =
  20794. this.chapInfoList[this.courseType].chapterInfo[0].taskJson
  20795. .length - 1;
  20796. this.navList[this.courseType].isOpen = true;
  20797. } else {
  20798. this.taskCount--;
  20799. }
  20800. }
  20801. } else {
  20802. if (this.courseType == b) {
  20803. if (
  20804. this.taskCount ==
  20805. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20806. 1
  20807. ) {
  20808. this.navList[this.courseType].isOpen = false;
  20809. this.courseType = 0;
  20810. this.taskCount = 0;
  20811. this.navList[this.courseType].isOpen = true;
  20812. } else {
  20813. var bbb = parseInt(this.taskCount) + 1;
  20814. if (
  20815. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20816. .isLook &&
  20817. this.courseDetail.userid != this.userid &&
  20818. (!this.courseDetail.course_teacher ||
  20819. (this.courseDetail.course_teacher &&
  20820. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20821. this.IsLookOpen
  20822. ) {
  20823. this.$message.error("任务未解锁");
  20824. return;
  20825. }
  20826. this.taskCount++;
  20827. if (this.IsLookOpen) {
  20828. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20829. this.taskCount
  20830. ].isLook = true;
  20831. this.addCourseState(3);
  20832. }
  20833. }
  20834. } else {
  20835. if (
  20836. this.taskCount ==
  20837. this.chapInfoList[this.courseType].chapterInfo[0].taskJson.length -
  20838. 1
  20839. ) {
  20840. var bbb = parseInt(this.courseType) + 1;
  20841. if (
  20842. !this.chapInfoList[bbb].chapterInfo[0].taskJson[0].isLook &&
  20843. this.courseDetail.userid != this.userid &&
  20844. (!this.courseDetail.course_teacher ||
  20845. (this.courseDetail.course_teacher &&
  20846. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20847. this.IsLookOpen
  20848. ) {
  20849. this.$message.error("任务未解锁");
  20850. return;
  20851. }
  20852. this.navList[this.courseType].isOpen = false;
  20853. this.courseType++;
  20854. this.taskCount = 0;
  20855. this.navList[this.courseType].isOpen = true;
  20856. } else {
  20857. var bbb = parseInt(this.taskCount) + 1;
  20858. if (
  20859. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[bbb]
  20860. .isLook &&
  20861. this.courseDetail.userid != this.userid &&
  20862. (!this.courseDetail.course_teacher ||
  20863. (this.courseDetail.course_teacher &&
  20864. this.courseDetail.course_teacher.indexOf(this.userid) == -1)) &&
  20865. this.IsLookOpen
  20866. ) {
  20867. this.$message.error("任务未解锁");
  20868. return;
  20869. }
  20870. this.taskCount++;
  20871. }
  20872. if (this.IsLookOpen) {
  20873. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20874. this.taskCount
  20875. ].isLook = true;
  20876. this.addCourseState(3);
  20877. }
  20878. }
  20879. // if (
  20880. // this.taskCount ==
  20881. // this.chapInfo.chapterInfo[0].taskJson.length - 1
  20882. // ) {
  20883. // this.taskCount = this.chapInfo.chapterInfo[0].taskJson.length - 1;
  20884. // } else {
  20885. // this.taskCount++;
  20886. // }
  20887. }
  20888. document.scrollingElement.scrollTop = 0;
  20889. // this.showType = 7;
  20890. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  20891. // if (this.vedio[this.taskCount].length > 0) {
  20892. // var a =
  20893. // document.getElementsByClassName("box_course")[this.taskCount]
  20894. // .offsetHeight;
  20895. // document.getElementsByClassName("vedioList")[
  20896. // this.taskCount
  20897. // ].style.height = a + "px";
  20898. // document.getElementsByClassName("navBox")[this.taskCount].style.height =
  20899. // a - 40 + "px";
  20900. // }
  20901. this.isNoHomeWork = false;
  20902. (this.studyJuri = [
  20903. {
  20904. content: "",
  20905. cover: [],
  20906. upVedio: [],
  20907. upFile: [],
  20908. },
  20909. ]),
  20910. (this.radio = []);
  20911. this.isClickNav = "";
  20912. this.selectPz();
  20913. this.getHomeWork();
  20914. this.getCourseDetail(2);
  20915. this.$forceUpdate();
  20916. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  20917. this.setCTask();
  20918. }
  20919. },
  20920. openTask(s, n, i) {
  20921. if (this.IsFollow && this.tType == 2) {
  20922. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  20923. return;
  20924. }
  20925. if (this.IsLookOpen &&
  20926. this.courseDetail.userid != this.userid &&
  20927. this.courseDetail.course_teacher.indexOf(this.userid) ==-1) {
  20928. if (
  20929. !this.chapInfoList[s].chapterInfo[0].taskJson[n].isLook &&
  20930. this.courseDetail.userid != this.userid &&
  20931. (!this.courseDetail.course_teacher ||
  20932. (this.courseDetail.course_teacher &&
  20933. this.courseDetail.course_teacher.indexOf(this.userid) == -1))
  20934. ) {
  20935. this.$message.error("任务未解锁");
  20936. return;
  20937. }
  20938. if (this.courseType == s && this.taskCount != n && n > this.taskCount) {
  20939. if (
  20940. !this.chapInfoList[this.courseType].chapterInfo[0].taskJson[n - 1]
  20941. .isLook
  20942. ) {
  20943. this.$message.error("上一任务未解锁");
  20944. return;
  20945. }
  20946. } else if (s > this.courseType) {
  20947. if (n > 0) {
  20948. if (!this.chapInfoList[s].chapterInfo[0].taskJson[n - 1].isLook) {
  20949. this.$message.error("上一任务未解锁");
  20950. return;
  20951. }
  20952. } else {
  20953. if (
  20954. !this.chapInfoList[s - 1].chapterInfo[0].taskJson[
  20955. this.chapInfoList[s - 1].chapterInfo[0].taskJson.length - 1
  20956. ].isLook
  20957. ) {
  20958. this.$message.error("上一任务未解锁");
  20959. return;
  20960. }
  20961. }
  20962. }
  20963. }
  20964. if (this.navList[s].task[n].isOpen == true) {
  20965. this.navList[s].task[n].isOpen = !this.navList[s].task[n].isOpen;
  20966. return;
  20967. }
  20968. let flag = this.courseType==s;
  20969. this.courseType = s;
  20970. this.navId = i;
  20971. this.taskCount = n;
  20972. this.changeSplitScreenBehavior({form:{courseType:this.courseType,taskCount:this.taskCount}})
  20973. this.navList[this.courseType].task[this.taskCount].isOpen =
  20974. !this.navList[this.courseType].task[this.taskCount].isOpen;
  20975. if (this.IsLookOpen) {
  20976. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  20977. this.taskCount
  20978. ].isLook = true;
  20979. let yym = JSON.parse(JSON.stringify(this.chapInfoList))
  20980. this.addCourseState(3,yym);
  20981. }
  20982. for (var ci = 0; ci < this.isCloseList.length; ci++) {
  20983. this.isCloseList[ci].isClose = 0;
  20984. this.isCloseList[ci].isCloseBoolean = false;
  20985. this.$nextTick(()=>{
  20986. setTimeout(()=>{
  20987. setTimeout(()=>{
  20988. this.panToolHeight('tool-'+ci);
  20989. }, 0)
  20990. }, 0)
  20991. })
  20992. }
  20993. // this.showType = 7;
  20994. this.isNoHomeWork = false;
  20995. (this.studyJuri = [
  20996. {
  20997. content: "",
  20998. cover: [],
  20999. upVedio: [],
  21000. upFile: [],
  21001. },
  21002. ]),
  21003. (this.radio = []);
  21004. document.scrollingElement.scrollTop = 0;
  21005. // setTimeout(() => {
  21006. // let a = document.getElementById(i);
  21007. // if (a.offsetTop - 110 == 0) {
  21008. // window.scrollTo(0, 0);
  21009. // } else {
  21010. // window.scrollTo(0, a.offsetTop);
  21011. // }
  21012. // }, 0);
  21013. for (var z = 0; z < this.navList.length; z++) {
  21014. for (var q = 0; q < this.navList[z].task.length; q++) {
  21015. for (var w = 0; w < this.navList[z].task[q].tool.length; w++) {
  21016. this.navList[z].task[q].tool[w].isTool = false;
  21017. }
  21018. }
  21019. }
  21020. this.selectPz();
  21021. this.getHomeWork();
  21022. this.getCourseDetail(2);
  21023. if(flag){
  21024. this.insertMemorandum(`进入<span class="variable">任务${n+1}${this.navList[s].task[n].taskName?':'+this.navList[s].task[n].taskName:''}</span>`)
  21025. }else{
  21026. 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>`)
  21027. }
  21028. if (this.courseDetail.userid == this.userid && this.IsFollow) {
  21029. this.setCTask();
  21030. }
  21031. },
  21032. get(i) {
  21033. if (this.IsFollow && this.tType == 2) {
  21034. this.$message.error("已经开启跟随模式,请认真跟堂听讲");
  21035. return;
  21036. }
  21037. // for(var k=0;k<this.navList.length;k++){
  21038. // this.navList[k].isOpen = false;
  21039. // }
  21040. // this.navList[i].isOpen = true;
  21041. this.navList[i].isOpen = !this.navList[i].isOpen;
  21042. if (this.navList[i].isOpen) {
  21043. this.openTask(i, 0, i + "-0");
  21044. }
  21045. },
  21046. addQuestion() {
  21047. this.answerList.push({
  21048. answerTitle: this.answerQ,
  21049. answer: this.questionAnswer,
  21050. });
  21051. let params = [
  21052. {
  21053. uid: this.userid,
  21054. cid: this.id,
  21055. stage: this.courseType,
  21056. task: this.taskCount,
  21057. tool: this.toolindex,
  21058. content: JSON.stringify(this.answerList),
  21059. type: 3,
  21060. },
  21061. ];
  21062. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  21063. this.homeWorkLoading = true
  21064. this.ajax
  21065. .post(this.$store.state.api + "addCourseWorks", params)
  21066. .then((res) => {
  21067. this.$message({
  21068. message: "提交成功",
  21069. type: "success",
  21070. });
  21071. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, "success")
  21072. setTimeout(() => {
  21073. this.homeWorkLoading = false
  21074. }, 500);
  21075. this.answerList = [];
  21076. this.answerDialogVisible = false;
  21077. this.selectStudent();
  21078. this.selectSWorks();
  21079. this.selectSLook();
  21080. })
  21081. .catch((err) => {
  21082. this.addOp3('1', "", { courseid: this.id,tool:'问答',data:JSON.stringify(this.answerList),type: "course_tool_sub" }, err)
  21083. setTimeout(() => {
  21084. this.homeWorkLoading = false
  21085. }, 500);
  21086. this.$message.error("提交失败");
  21087. console.error(err);
  21088. });
  21089. },
  21090. addQuestionTeacher() {
  21091. this.answerList.push({
  21092. answerTitle: this.answerQ,
  21093. answer: this.questionAnswer,
  21094. });
  21095. let params = [
  21096. {
  21097. uid: this.sStudent.userid,
  21098. cid: this.id,
  21099. stage: this.courseType,
  21100. task: this.taskCount,
  21101. tool: this.toolindex,
  21102. content: JSON.stringify(this.answerList),
  21103. type: 3,
  21104. ateacher: this.userid,
  21105. },
  21106. ];
  21107. this.ajax
  21108. .post(this.$store.state.api + "addCourseWorksTeacher", params)
  21109. .then((res) => {
  21110. this.$message({
  21111. message: "提交成功",
  21112. type: "success",
  21113. });
  21114. this.answerList = [];
  21115. this.questionAnswer = "";
  21116. this.answerDialogVisibleTeacher = false;
  21117. this.selectStudent();
  21118. this.selectSWorks();
  21119. this.selectSLook();
  21120. })
  21121. .catch((err) => {
  21122. this.$message.error("提交失败");
  21123. console.error(err);
  21124. });
  21125. },
  21126. refreshCourse() {
  21127. // window.location.reload();
  21128. this.navList = [];
  21129. this.getCourseDetail(1);
  21130. },
  21131. getCourseDetail(type, gindex) {
  21132. let loading;
  21133. if (type != 2) {
  21134. loading = this.$loading.service({
  21135. background: "rgba(255, 255, 255, 0.7)",
  21136. target: document.querySelector(".student_table"),
  21137. });
  21138. }
  21139. this.downLoading = false
  21140. // this.navList[0].isOpen = false;
  21141. // this.navList[this.courseType].isOpen = true;
  21142. // this.courseType = this.courseTypeLine;
  21143. // this.navId = this.navList[this.courseType].task[this.taskCount].id;
  21144. let params = {
  21145. courseId: this.id,
  21146. };
  21147. this.ajax
  21148. .get(this.$store.state.api + "selectCourseDetail3", params)
  21149. .then((res) => {
  21150. this.addCourseState(1, JSON.parse(res.data[0][0].chapters));
  21151. if (type != 2) {
  21152. loading.close();
  21153. if (
  21154. this.courseType >
  21155. JSON.parse(res.data[0][0].chapters).length - 1
  21156. ) {
  21157. this.courseType = JSON.parse(res.data[0][0].chapters).length - 1;
  21158. }
  21159. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21160. .chapterInfo[0].taskJson;
  21161. var b = [
  21162. "AVI",
  21163. "NAVI",
  21164. "MPEG",
  21165. "ASF",
  21166. "MOV",
  21167. "WMV",
  21168. "3GP",
  21169. "RM",
  21170. "RMVB",
  21171. "FLV",
  21172. "F4V",
  21173. "H.264",
  21174. "H.265",
  21175. "REAL VIDEO",
  21176. "MKV",
  21177. "WebM",
  21178. "HDDVD",
  21179. "MP4",
  21180. "MPG",
  21181. "M4V",
  21182. "MGV",
  21183. "OGV",
  21184. "QTM",
  21185. "STR",
  21186. "AMC",
  21187. "DVX",
  21188. "EVO",
  21189. "DAT",
  21190. "OGG",
  21191. "OGM",
  21192. "MP3",
  21193. ];
  21194. let _chapterData = [];
  21195. for (var i = 0; i < a.length; i++) {
  21196. var c = a[i].chapterData;
  21197. this.vedio[i] = [];
  21198. this.textList[i] = [];
  21199. this.lineList[i] = [];
  21200. this.chapToolList[i] = [];
  21201. this.file[i] = [];
  21202. this.fileC[i] = [];
  21203. _chapterData[i] = c.filter((el) => {
  21204. return el.type != 12;
  21205. });
  21206. this.fileC[i] = c.filter((el) => {
  21207. return el.type == 12;
  21208. });
  21209. if (this.tType == 2) {
  21210. if (this.fileC[i].length) {
  21211. let yym1 = this.fileC[i].filter(e=>{
  21212. if(!converter(e.name).includes(converter("教案"))){
  21213. return e
  21214. }
  21215. })
  21216. this.fileC[i] = yym1
  21217. }
  21218. }
  21219. // else if (c[j].type == 12) {
  21220. // this.fileC[i].push(c[j]);
  21221. // }
  21222. for (var j = 0; j < c.length; j++) {
  21223. if (c[j].type == 7) {
  21224. this.chapToolList[i].push(c[j]);
  21225. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21226. this.lineList[i].push(c[j]);
  21227. } else if (c[j].type == 6) {
  21228. this.textList[i].push(c[j]);
  21229. } else {
  21230. if (
  21231. b.indexOf(
  21232. c[j].url
  21233. .split(".")
  21234. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21235. ) != -1
  21236. ) {
  21237. this.vedio[i].push(c[j]);
  21238. } else {
  21239. this.file[i].push(c[j]);
  21240. }
  21241. }
  21242. }
  21243. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21244. d.sources[0].src =
  21245. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21246. this.playerO[i] = d;
  21247. }
  21248. this.courseDetail = res.data[0][0];
  21249. if(this.tType == 2){
  21250. this.tcid = this.arrayToArray(
  21251. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21252. this.classId ? this.classId.split(",") : []
  21253. ).join(",");
  21254. }else{
  21255. this.tcid = this.arrayToArray(
  21256. this.courseDetail.juri ? this.courseDetail.juri.split(",") : [],
  21257. this.tcid2 ? this.tcid2.split(",") : []
  21258. ).join(",");
  21259. }
  21260. this.evalua = res.data[0][0].evaId;
  21261. this.chapInfo = JSON.parse(this.courseDetail.chapters)[
  21262. this.courseType
  21263. ];
  21264. this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21265. if (this.tcid && res.data[1].length) {
  21266. let _inviteA = [];
  21267. for (var ik = 0; ik < res.data[1].length; ik++) {
  21268. _inviteA.push({
  21269. cid: res.data[1][ik].classid,
  21270. ic: res.data[1][ik].code,
  21271. });
  21272. }
  21273. for (var ik = 0; ik < _inviteA.length; ik++) {
  21274. if (
  21275. this.arrayToArray(
  21276. _inviteA[ik].cid.split(","),
  21277. this.tcid.split(",")
  21278. ).length
  21279. ) {
  21280. this.inviteCode = _inviteA[ik].ic;
  21281. break;
  21282. }
  21283. }
  21284. }
  21285. for (var l = 0; l < this.chapInfoList.length; l++) {
  21286. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  21287. for (var m = 0; m < w.length; m++) {
  21288. w[m].id = l + "-" + m;
  21289. }
  21290. }
  21291. let taskCount = 0;
  21292. if (
  21293. _chapterData[taskCount].length &&
  21294. _chapterData[taskCount][0].type == 2
  21295. ) {
  21296. this.showType = 0;
  21297. this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21298. } else {
  21299. if (_chapterData[taskCount].length > 0) {
  21300. let _url = _chapterData[taskCount][0].url;
  21301. if (
  21302. _chapterData[taskCount][0].type == 8 ||
  21303. _chapterData[taskCount][0].type == 14 ||
  21304. _chapterData[taskCount][0].type == 15
  21305. ) {
  21306. this.showType = 2;
  21307. if (
  21308. _url.indexOf("https://") == -1 &&
  21309. _url.indexOf("http://") == -1
  21310. ) {
  21311. _url = "https://" + _url;
  21312. }
  21313. this.pptImgUrl1 = _url;
  21314. } else if (_chapterData[taskCount][0].type == 3) {
  21315. if (
  21316. _url
  21317. .split(".")
  21318. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21319. ) {
  21320. this.showType = 3;
  21321. this.pptImgUrl1 = _url;
  21322. } else if (
  21323. this.isAssetTypeAnImage(
  21324. _url
  21325. .split(".")
  21326. [_url.split(".").length - 1].toLocaleLowerCase()
  21327. )
  21328. ) {
  21329. this.showType = 4;
  21330. this.pptImgUrl1 = _url;
  21331. } else {
  21332. this.showType = 2;
  21333. this.pptImgUrl1 =
  21334. "https://view.officeapps.live.com/op/view.aspx?src=" +
  21335. encodeURIComponent(_url);
  21336. }
  21337. } else if (_chapterData[taskCount][0].type == 13) {
  21338. this.showType = 4;
  21339. this.pptImgUrl1 = _url;
  21340. } else if (_chapterData[taskCount][0].type == 6) {
  21341. this.showType = 1;
  21342. this.text = this.textList[taskCount][0];
  21343. } else if (_chapterData[taskCount][0].type == 16) {
  21344. this.showType = 16;
  21345. this.pptImgUrl1 = _url;
  21346. } else if (_chapterData[taskCount][0].type == 17) {
  21347. this.showType = 16;
  21348. this.pptImgUrl1 = _url;
  21349. }
  21350. }
  21351. }
  21352. this.isClickNav = 0;
  21353. if (
  21354. !_chapterData[taskCount].length ||
  21355. _chapterData[taskCount][0].type == 12
  21356. ) {
  21357. this.isClickNav = "";
  21358. this.showType = "";
  21359. }
  21360. if (this.tType == 2) {
  21361. _chapterData.forEach((e,i)=>{
  21362. if (e.length) {
  21363. let yym = e.filter(k=>{
  21364. if(!converter(k.name).includes(converter("教案"))){
  21365. return k
  21366. }
  21367. })
  21368. _chapterData[i] = yym
  21369. }
  21370. })
  21371. }
  21372. this.vChapterData = _chapterData;
  21373. } else {
  21374. // this.showType = 0;
  21375. var a = JSON.parse(res.data[0][0].chapters)[this.courseType]
  21376. .chapterInfo[0].taskJson;
  21377. var b = [
  21378. "AVI",
  21379. "NAVI",
  21380. "MPEG",
  21381. "ASF",
  21382. "MOV",
  21383. "WMV",
  21384. "3GP",
  21385. "RM",
  21386. "RMVB",
  21387. "FLV",
  21388. "F4V",
  21389. "H.264",
  21390. "H.265",
  21391. "REAL VIDEO",
  21392. "MKV",
  21393. "WebM",
  21394. "HDDVD",
  21395. "MP4",
  21396. "MPG",
  21397. "M4V",
  21398. "MGV",
  21399. "OGV",
  21400. "QTM",
  21401. "STR",
  21402. "AMC",
  21403. "DVX",
  21404. "EVO",
  21405. "DAT",
  21406. "OGG",
  21407. "OGM",
  21408. "MP3",
  21409. ];
  21410. let _chapterData = [];
  21411. for (var i = 0; i < a.length; i++) {
  21412. var c = a[i].chapterData;
  21413. this.vedio[i] = [];
  21414. this.textList[i] = [];
  21415. this.lineList[i] = [];
  21416. this.chapToolList[i] = [];
  21417. this.file[i] = [];
  21418. this.fileC[i] = [];
  21419. _chapterData[i] = c.filter((el) => {
  21420. return el.type != 12;
  21421. });
  21422. this.fileC[i] = c.filter((el) => {
  21423. return el.type == 12;
  21424. });
  21425. if (this.tType == 2) {
  21426. if (this.fileC[i].length) {
  21427. let yym1 = this.fileC[i].filter(e=>{
  21428. if(!converter(e.name).includes(converter("教案"))){
  21429. return e
  21430. }
  21431. })
  21432. this.fileC[i] = yym1
  21433. }
  21434. }
  21435. for (var j = 0; j < c.length; j++) {
  21436. if (c[j].type == 7) {
  21437. this.chapToolList[i].push(c[j]);
  21438. } else if (c[j].type == 8 || c[j].type == 14 || c[j].type == 15) {
  21439. this.lineList[i].push(c[j]);
  21440. } else if (c[j].type == 6) {
  21441. this.textList[i].push(c[j]);
  21442. } else {
  21443. if (
  21444. b.indexOf(
  21445. c[j].url
  21446. .split(".")
  21447. [c[j].url.split(".").length - 1].toLocaleUpperCase()
  21448. ) != -1
  21449. ) {
  21450. this.vedio[i].push(c[j]);
  21451. } else {
  21452. this.file[i].push(c[j]);
  21453. }
  21454. }
  21455. }
  21456. var d = JSON.parse(JSON.stringify(this.playerOptions));
  21457. d.sources[0].src =
  21458. this.vedio[i].length > 0 ? this.vedio[i][0].url : this.mr;
  21459. this.playerO[i] = d;
  21460. }
  21461. let taskCount = 0;
  21462. if (
  21463. _chapterData[taskCount].length &&
  21464. _chapterData[taskCount][0].type == 2
  21465. ) {
  21466. // this.showType = 0;
  21467. // this.pptImgUrl1 = _chapterData[taskCount][0].url;
  21468. } else {
  21469. if (_chapterData[taskCount].length > 0) {
  21470. let _url = _chapterData[taskCount][0].url;
  21471. if (
  21472. _chapterData[taskCount][0].type == 8 ||
  21473. _chapterData[taskCount][0].type == 14 ||
  21474. _chapterData[taskCount][0].type == 15
  21475. ) {
  21476. // this.showType = 2;
  21477. if (
  21478. _url.indexOf("https://") == -1 &&
  21479. _url.indexOf("http://") == -1
  21480. ) {
  21481. _url = "https://" + _url;
  21482. }
  21483. // this.pptImgUrl1 = _url;
  21484. } else if (_chapterData[taskCount][0].type == 3) {
  21485. if (
  21486. _url
  21487. .split(".")
  21488. [_url.split(".").length - 1].toLocaleUpperCase() == "PDF"
  21489. ) {
  21490. // this.showType = 3;
  21491. // this.pptImgUrl1 = _url;
  21492. } else if (
  21493. this.isAssetTypeAnImage(
  21494. _url
  21495. .split(".")
  21496. [_url.split(".").length - 1].toLocaleLowerCase()
  21497. )
  21498. ) {
  21499. // this.showType = 4;
  21500. // this.pptImgUrl1 = _url;
  21501. } else {
  21502. // this.showType = 2;
  21503. // this.pptImgUrl1 =
  21504. // "https://view.officeapps.live.com/op/view.aspx?src=" +
  21505. // encodeURIComponent(_url);
  21506. }
  21507. } else if (_chapterData[taskCount][0].type == 13) {
  21508. // this.showType = 4;
  21509. // this.pptImgUrl1 = _url;
  21510. } else if (_chapterData[taskCount][0].type == 6) {
  21511. this.showType = 1;
  21512. this.text = this.textList[taskCount][0];
  21513. } else if (_chapterData[taskCount][0].type == 16) {
  21514. this.showType = 16;
  21515. this.pptImgUrl1 = _url;
  21516. } else if (_chapterData[taskCount][0].type == 17) {
  21517. this.showType = 16;
  21518. this.pptImgUrl1 = _url;
  21519. }
  21520. }
  21521. }
  21522. this.isClickNav = 0;
  21523. if (
  21524. !_chapterData[taskCount].length ||
  21525. _chapterData[taskCount][0].type == 12
  21526. ) {
  21527. this.isClickNav = "";
  21528. // this.showType = "";
  21529. }
  21530. if (this.tType == 2) {
  21531. _chapterData.forEach((e,i)=>{
  21532. if (e.length) {
  21533. let yym = e.filter(k=>{
  21534. if(!converter(k.name).includes(converter("教案"))){
  21535. return k
  21536. }
  21537. })
  21538. _chapterData[i] = yym
  21539. }
  21540. })
  21541. }
  21542. this.vChapterData = _chapterData;
  21543. this.$forceUpdate();
  21544. }
  21545. if (res.data[0][0].setting) {
  21546. try {
  21547. this.languageSetting =
  21548. JSON.parse(res.data[0][0].setting).languageSetting ||
  21549. JSON.parse(res.data[0][0].setting).languageSetting == 0
  21550. ? JSON.parse(res.data[0][0].setting).languageSetting
  21551. : 0;
  21552. } catch (error) {
  21553. console.error(error);
  21554. }
  21555. }
  21556. // finalMarkList用来判断哪个工具为评分工具
  21557. if (this.courseDetail.state == 6) {
  21558. let chapInfoListCopy = this.chapInfoList[0].chapterInfo[0].taskJson;
  21559. // let chap = chapInfoListCopy[this.taskCount].toolChoose
  21560. // let adc = chap.filter(e=>{return (e.tool[0]==16 || e.tool[0]==52)})
  21561. // // adc判断又没有作业提交或者文档工具,有的话他们两个的最后一个优先为评分工具,
  21562. // // 没有的话在选其他工具为评分工具
  21563. // if(adc.length > 0){
  21564. // for (let k = chap.length - 1; k >= 0; k--) {
  21565. // if (chap[k].tool[0] == 16 || chap[k].tool[0] == 52) {
  21566. // this.finalMarkList = k;
  21567. // break;
  21568. // }
  21569. // }
  21570. // }else{
  21571. // for (let k = chap.length - 1; k >= 0; k--) {
  21572. // 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) {
  21573. // this.finalMarkList = k;
  21574. // break;
  21575. // }
  21576. // }
  21577. // }
  21578. // 来判断ai评分是否可用,因为有的评分教师全选的人工打分,所以全是人工打分的话,ai评分就不能使用
  21579. // 不然会无限循环报错,会很难受
  21580. let aiSNum = 0;
  21581. if (
  21582. chapInfoListCopy[this.taskCount].eList &&
  21583. chapInfoListCopy[this.taskCount].eList.length
  21584. ) {
  21585. chapInfoListCopy[this.taskCount].eList.forEach(e => {
  21586. if (e.isai == 2) {
  21587. aiSNum++;
  21588. }
  21589. });
  21590. if (aiSNum == chapInfoListCopy[this.taskCount].eList.length) {
  21591. this.isaiNum = aiSNum;
  21592. } else {
  21593. this.isaiNum = 0;
  21594. }
  21595. // for (
  21596. // let k = 0;
  21597. // k < chapInfoListCopy[this.taskCount].eList.length;
  21598. // k++
  21599. // ) {
  21600. // if (!chapInfoListCopy[this.taskCount].eList[k].rule) {
  21601. // this.againEva(this.taskCount, k);
  21602. // }
  21603. // }
  21604. }
  21605. }
  21606. // 判断进入课程是否是创建老师,如果去创建老师,就自动开启下面两个按钮
  21607. if (type == 10) {
  21608. console.log('this.courseDetail.userid',this.courseDetail.userid);
  21609. console.log('this.userid',this.userid);
  21610. if (this.courseDetail.userid == this.userid) {
  21611. // 开局关闭学生查看内容
  21612. this.StulookMode(true)
  21613. // 开局打开跟随模式
  21614. this.followingMode(true)
  21615. }
  21616. }
  21617. // else {
  21618. // this.courseDetail = res.data[0][0];
  21619. // this.chapInfoList = JSON.parse(this.courseDetail.chapters);
  21620. // }
  21621. let _this = this;
  21622. if (_this.timer) {
  21623. clearInterval(_this.timer);
  21624. _this.timer = null;
  21625. }
  21626. // if (_this.timer2) {
  21627. // clearInterval(_this.timer2);
  21628. // _this.timer2 = null;
  21629. // }
  21630. if (_this.tcid) {
  21631. _this.getCourseGroup(gindex);
  21632. } else {
  21633. _this.selectSWorks(gindex);
  21634. }
  21635. _this.selectStudent();
  21636. _this.selectSLook();
  21637. _this.getPick();
  21638. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21639. // _this.setCTask();
  21640. // }
  21641. if (_this.dialogVisibleGroup) {
  21642. _this.groupJson =
  21643. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21644. _this.taskCount
  21645. ].toolChoose[_this.toolindex].groupJson;
  21646. }
  21647. _this.$nextTick(() => {
  21648. setTimeout(() => {
  21649. _this.checkEva();
  21650. }, 1000);
  21651. });
  21652. _this.timer = setInterval(function () {
  21653. // _this.getCourseDetail(2);
  21654. if (_this.tcid) {
  21655. _this.getCourseGroup();
  21656. } else {
  21657. _this.selectSWorks();
  21658. }
  21659. _this.selectStudent();
  21660. _this.selectSLook();
  21661. _this.getPick();
  21662. // if (_this.courseDetail.userid == _this.userid && _this.IsFollow) {
  21663. // _this.setCTask();
  21664. // }
  21665. if (_this.dialogVisibleGroup) {
  21666. _this.groupJson =
  21667. _this.chapInfoList[_this.courseType].chapterInfo[0].taskJson[
  21668. _this.taskCount
  21669. ].toolChoose[_this.toolindex].groupJson;
  21670. }
  21671. if (_this.tType == 4 || _this.ispzType == 4) {
  21672. _this.selectPz();
  21673. }
  21674. }, 5000);
  21675. if (_this.timer2 == null) {
  21676. _this.timer2 = setInterval(()=> {
  21677. _this.getSplitScreenData();//获取分屏数据
  21678. }, 5000);
  21679. }
  21680. _this.$nextTick(function () {
  21681. setTimeout(() => {
  21682. // var a =
  21683. // document.getElementsByClassName("box_course")[0].offsetHeight;
  21684. // document.getElementsByClassName("vedioList")[0].style.height =
  21685. // a + "px";
  21686. // document.getElementsByClassName("navBox")[0].style.height =
  21687. // a - 40 + "px";
  21688. // if (_this.vedio[_this.taskCount].length > 0) {
  21689. // _this.vedioTime = [];
  21690. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  21691. // _this.vedioTime[i] = document.getElementsByClassName(
  21692. // "vjs-duration-display"
  21693. // )[i].textContent;
  21694. // }
  21695. // }
  21696. }, 1000);
  21697. });
  21698. })
  21699. .catch((err) => {
  21700. loading.close();
  21701. console.error(err);
  21702. });
  21703. },
  21704. getCourseGroup(gindex) {
  21705. if(this.getCourseGroupLoading) return
  21706. this.getCourseGroupLoading = true
  21707. let params = {
  21708. cid: this.id,
  21709. classid: this.tcid ? this.tcid : "1",
  21710. };
  21711. this.ajax
  21712. .get(this.$store.state.api + "getCourseGroup", params)
  21713. .then((res) => {
  21714. if (res.data && res.data[0].length) {
  21715. if (!this.isGroup) {
  21716. let courseGroup = JSON.parse(res.data[0][0].group);
  21717. courseGroup.group = courseGroup.group.filter((el) => {
  21718. el.works = [];
  21719. return el;
  21720. });
  21721. if (courseGroup.isopen == 2) {
  21722. this.isGroup = false;
  21723. this.selectSWorks(gindex);
  21724. return;
  21725. }
  21726. this.courseGroup = courseGroup;
  21727. let groupPerson = res.data[1];
  21728. let group = JSON.parse(res.data[0][0].group).group;
  21729. let courseGroupStudent = {};
  21730. let courseGroupStudentUid = {};
  21731. for (var i = 0; i < group.length; i++) {
  21732. courseGroupStudent[group[i].id] = [];
  21733. courseGroupStudentUid[group[i].id] = [];
  21734. for (var j = 0; j < groupPerson.length; j++) {
  21735. if (groupPerson[j].groupCid == group[i].id) {
  21736. courseGroupStudent[group[i].id].push(groupPerson[j]);
  21737. courseGroupStudentUid[group[i].id].push(
  21738. groupPerson[j].userid
  21739. );
  21740. }
  21741. }
  21742. }
  21743. this.courseGroupStudent = courseGroupStudent;
  21744. this.courseGroupStudentUid = courseGroupStudentUid;
  21745. }
  21746. if (this.courseGroup.isopen == 2) {
  21747. this.isGroup = false;
  21748. } else {
  21749. this.isGroup = true;
  21750. }
  21751. this.selectSWorks(gindex);
  21752. } else {
  21753. this.selectSWorks(gindex);
  21754. this.isGroup = false;
  21755. }
  21756. this.getCourseGroupLoading = false
  21757. })
  21758. .catch((err) => {
  21759. this.getCourseGroupLoading = false
  21760. // this.$message.error("网络不佳");
  21761. console.error(err);
  21762. });
  21763. },
  21764. setOperationTime() {
  21765. let _this = this;
  21766. if (_this.opertimer) {
  21767. clearInterval(_this.opertimer);
  21768. _this.opertimer = null;
  21769. }
  21770. _this.opertimer = setInterval(() => {
  21771. _this.setoTime("600");
  21772. }, 600000);
  21773. },
  21774. setoTime(time) {
  21775. let params = [
  21776. {
  21777. uid: this.userid,
  21778. cid: this.id,
  21779. type: "2",
  21780. time: time,
  21781. },
  21782. ];
  21783. this.ajax
  21784. .post(this.$store.state.api + "addOperationTimeT2", params)
  21785. .then((res) => {})
  21786. .catch((err) => {
  21787. console.error(err);
  21788. });
  21789. },
  21790. addPz(type, content) {
  21791. if (type == "1" && this.pzConText == "") {
  21792. this.$message.error("评论不能为空!");
  21793. return;
  21794. }
  21795. let params = [
  21796. {
  21797. cid: this.id,
  21798. uid: this.userid,
  21799. s: this.courseType,
  21800. t: this.taskCount,
  21801. c: type == "1" ? this.pzConText : content,
  21802. type: type,
  21803. },
  21804. ];
  21805. this.ajax
  21806. .post(this.$store.state.api + "addPz2", params)
  21807. .then((res) => {
  21808. this.$message({
  21809. message: "添加成功",
  21810. type: "success",
  21811. });
  21812. this.pzConText = "";
  21813. this.addPzDialog = false;
  21814. this.selectPz();
  21815. if(this.tType!=2){
  21816. this.insertMemorandum(`使用<span class="btn">评论</span>功能,添加评论`)
  21817. }
  21818. })
  21819. .catch((err) => {
  21820. this.$message.error("添加失败");
  21821. console.error(err);
  21822. });
  21823. },
  21824. setReplyIndex(id, i) {
  21825. this.replyIndex = i;
  21826. this.replyPid = id;
  21827. this.replyDialogVisible = true;
  21828. },
  21829. addHf() {
  21830. if (this.reply == "") {
  21831. this.$message.error("回复不能为空!");
  21832. return;
  21833. }
  21834. let params = [
  21835. {
  21836. cid: this.id,
  21837. uid: this.userid,
  21838. s: this.courseType,
  21839. t: this.taskCount,
  21840. type: "1",
  21841. ct: 2,
  21842. pid: this.replyPid,
  21843. c: this.reply,
  21844. },
  21845. ];
  21846. this.ajax
  21847. .post(this.$store.state.api + "addHf", params)
  21848. .then((res) => {
  21849. this.reply = "";
  21850. this.$message({
  21851. message: "回复成功",
  21852. type: "success",
  21853. });
  21854. this.replyDialogVisible = false;
  21855. this.selectPz();
  21856. })
  21857. .catch((err) => {
  21858. this.$message.error("回复失败");
  21859. console.error(err);
  21860. });
  21861. },
  21862. deletePz(id) {
  21863. this.$confirm("确定删除此评论吗?", "提示", {
  21864. confirmButtonText: "确定",
  21865. cancelButtonText: "取消",
  21866. type: "warning",
  21867. })
  21868. .then(() => {
  21869. let params = [
  21870. {
  21871. id: id,
  21872. },
  21873. ];
  21874. this.ajax
  21875. .post(this.$store.state.api + "deletePz", params)
  21876. .then((res) => {
  21877. this.$message({
  21878. message: "删除成功",
  21879. type: "success",
  21880. });
  21881. this.selectPz();
  21882. })
  21883. .catch((err) => {
  21884. this.$message.error("网络异常");
  21885. console.error(err);
  21886. });
  21887. })
  21888. .catch(() => {});
  21889. },
  21890. deleteReply(id) {
  21891. this.$confirm("确定删除此回复吗?", "提示", {
  21892. confirmButtonText: "确定",
  21893. cancelButtonText: "取消",
  21894. type: "warning",
  21895. })
  21896. .then(() => {
  21897. let params = [
  21898. {
  21899. id: id,
  21900. },
  21901. ];
  21902. this.ajax
  21903. .post(this.$store.state.api + "deleteReply", params)
  21904. .then((res) => {
  21905. this.$message({
  21906. message: "删除成功",
  21907. type: "success",
  21908. });
  21909. this.selectPz();
  21910. })
  21911. .catch((err) => {
  21912. this.$message.error("网络异常");
  21913. console.error(err);
  21914. });
  21915. })
  21916. .catch(() => {});
  21917. },
  21918. setPz() {
  21919. if (this.ispzType == 4) {
  21920. this.ispzType = 0;
  21921. this.pzDialog = false;
  21922. return;
  21923. }
  21924. this.ispzType = 4;
  21925. this.pzDialog = true;
  21926. this.selectPz();
  21927. },
  21928. selectPz() {
  21929. if(this.selectPzLoading) return
  21930. this.selectPzLoading = true
  21931. let params = {
  21932. cid: this.id,
  21933. s: this.courseType,
  21934. t: this.taskCount,
  21935. type: this.pzStype,
  21936. uid: this.userid,
  21937. };
  21938. this.ajax
  21939. .get(this.$store.state.api + "selectPzListType", params)
  21940. .then((res) => {
  21941. this.pzList = res.data[0];
  21942. var a = res.data[1];
  21943. for (var i = 0; i < a.length; i++) {
  21944. for (var j = 0; j < this.pzList.length; j++) {
  21945. if (!this.pzList[j].hfList) {
  21946. this.pzList[j].hfList = [];
  21947. }
  21948. if (a[i].pid == this.pzList[j].id) {
  21949. this.pzList[j].hfList.push(a[i]);
  21950. }
  21951. }
  21952. }
  21953. this.selectPzLoading = false
  21954. })
  21955. .catch((err) => {
  21956. this.selectPzLoading = false
  21957. console.error(err);
  21958. });
  21959. },
  21960. // selectHf() {
  21961. // let params = {
  21962. // cid: this.id,
  21963. // s: this.courseType,
  21964. // t: this.taskCount,
  21965. // };
  21966. // this.ajax
  21967. // .get(this.$store.state.api + "selectHfList", params)
  21968. // .then((res) => {
  21969. // var a = res.data[0];
  21970. // for (var i = 0; i < a.length; i++) {
  21971. // for (var j = 0; j < this.pzList.length; j++) {
  21972. // if (!this.pzList[i].hfList) {
  21973. // this.pzList[i].hfList = [];
  21974. // }
  21975. // if (a[i].pid == this.pzList[j].id) {
  21976. // this.pzList[i].hfList.push(a[i]);
  21977. // }
  21978. // }
  21979. // }
  21980. // })
  21981. // .catch((err) => {
  21982. // console.error(err);
  21983. // });
  21984. // },
  21985. updateSLook() {
  21986. let params = {
  21987. sopen: this.sIsOpen == false ? 1 : 2,
  21988. cid: this.id,
  21989. };
  21990. this.ajax
  21991. .get(this.$store.state.api + "updateCourseSLook", params)
  21992. .then((res) => {
  21993. if (this.sIsOpen == true) {
  21994. this.$message({
  21995. message: "权限设置成功",
  21996. type: "success",
  21997. });
  21998. } else {
  21999. this.$message({
  22000. message: "权限关闭成功",
  22001. type: "success",
  22002. });
  22003. }
  22004. })
  22005. .catch((err) => {
  22006. console.error(err);
  22007. });
  22008. },
  22009. updateIsStulook(){
  22010. let params = [
  22011. {
  22012. sopen: this.IsStulook == false ? 2 : 1,
  22013. cid: this.id
  22014. }
  22015. ];
  22016. this.ajax
  22017. .post(this.$store.state.api + "updateCourseStulook", params)
  22018. .then(res => {
  22019. if (this.IsStulook == true) {
  22020. this.$message({
  22021. message: "学生查看内容资料权限已开启",
  22022. type: "success"
  22023. });
  22024. } else {
  22025. this.$message({
  22026. message: "关闭学生查看内容资料权限",
  22027. type: "success"
  22028. });
  22029. }
  22030. // this.setCTask();
  22031. })
  22032. .catch(err => {
  22033. console.error(err);
  22034. });
  22035. },
  22036. updateFollow() {
  22037. let params = [
  22038. {
  22039. sopen: this.IsFollow == false ? 1 : 2,
  22040. cid: this.id,
  22041. },
  22042. ];
  22043. this.ajax
  22044. .post(this.$store.state.api + "updateCourseFollow", params)
  22045. .then((res) => {
  22046. if (this.IsFollow == true) {
  22047. this.$message({
  22048. message: "跟随模式已开启",
  22049. type: "success",
  22050. });
  22051. } else {
  22052. this.$message({
  22053. message: "跟随模式已关闭",
  22054. type: "success",
  22055. });
  22056. }
  22057. this.setCTask();
  22058. })
  22059. .catch((err) => {
  22060. console.error(err);
  22061. });
  22062. },
  22063. setCTask() {
  22064. let params = [
  22065. {
  22066. sopen: this.courseType + "-" + this.taskCount,
  22067. cid: this.id,
  22068. },
  22069. ];
  22070. this.ajax
  22071. .post(this.$store.state.api + "updateCourseFollowC", params)
  22072. .then((res) => {})
  22073. .catch((err) => {
  22074. console.error(err);
  22075. });
  22076. },
  22077. updateLookOpen() {
  22078. let params = [
  22079. {
  22080. sopen: this.IsLookOpen == false ? 1 : 2,
  22081. cid: this.id,
  22082. },
  22083. ];
  22084. this.ajax
  22085. .post(this.$store.state.api + "updateCourseLookOpen", params)
  22086. .then((res) => {
  22087. if (this.IsLookOpen == true) {
  22088. // if (this.courseType != 0 && this.taskCount != 0) {
  22089. // this.openTask(0, 0, "0-0");
  22090. // }
  22091. this.$message({
  22092. message: "权限设置成功",
  22093. type: "success",
  22094. });
  22095. } else {
  22096. this.$message({
  22097. message: "权限关闭成功",
  22098. type: "success",
  22099. });
  22100. }
  22101. this.getCourseState(2);
  22102. })
  22103. .catch((err) => {
  22104. console.error(err);
  22105. });
  22106. },
  22107. selectSLook() {
  22108. if(this.selectSLookLoading) return
  22109. this.selectSLookLoading = true
  22110. let params = {
  22111. cid: this.id,
  22112. };
  22113. this.ajax
  22114. .get(this.$store.state.api + "selectCourseSLook", params)
  22115. .then((res) => {
  22116. this.sIsOpen = res.data[0][0].sopen == 1 ? false : true;
  22117. this.IsLookOpen = res.data[0][0].look == 1 ? false : true;
  22118. this.IsFollow = res.data[0][0].follow == 1 ? false : true;
  22119. this.IsStulook = res.data[0][0].isStulook == 2 ? false : true;
  22120. if (!this.IsLookOpen) {
  22121. this.setNavList();
  22122. } else {
  22123. this.getCourseState(1);
  22124. }
  22125. if ((this.IsFollow && this.tType == 2) || (this.splitScreenData.isOpen && this.splitScreenData.uid != this.splitScreenData.myUid)) {
  22126. this.setContent2(false);
  22127. let _followC = res.data[0][0].followC.split("-");
  22128. if (
  22129. this.courseType != _followC[0] ||
  22130. this.taskCount != _followC[1]
  22131. ) {
  22132. this.navList[this.courseType].isOpen = false;
  22133. this.courseType = _followC[0];
  22134. this.navList[this.courseType].isOpen = true;
  22135. this.taskCount = parseInt(_followC[1]);
  22136. this.navId = res.data[0][0].followC;
  22137. document.scrollingElement.scrollTop = 0;
  22138. this.getCourseDetail(2);
  22139. }
  22140. }
  22141. this.selectSLookLoading = false
  22142. })
  22143. .catch((err) => {
  22144. this.selectSLookLoading = false
  22145. console.error(err);
  22146. });
  22147. },
  22148. setNavList() {
  22149. if (this.navList.length == 0) {
  22150. this.navList = [];
  22151. var copyList = [];
  22152. for (var l = 0; l < this.chapInfoList.length; l++) {
  22153. var q = this.chapInfoList[l].dyName;
  22154. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22155. var e;
  22156. copyList.push({
  22157. dyName: q,
  22158. isOpen: l === 0 ? true : false,
  22159. task: [],
  22160. });
  22161. for (var r = 0; r < w.length; r++) {
  22162. e = w[r].task;
  22163. if (this.chapInfoList[l].easy == 1) {
  22164. copyList[l].task.push({
  22165. taskName: q,
  22166. id: l + "-" + r,
  22167. isLook: w[r].isLook,
  22168. isOpen: r === 0 ? true : false,
  22169. tool: [],
  22170. });
  22171. } else {
  22172. copyList[l].task.push({
  22173. taskName: e,
  22174. id: l + "-" + r,
  22175. isLook: w[r].isLook,
  22176. isOpen: r === 0 ? true : false,
  22177. tool: [],
  22178. });
  22179. }
  22180. var t = w[r].toolChoose;
  22181. for (var k = 0; k < t.length; k++) {
  22182. var tool = t[k].tool[0];
  22183. copyList[l].task[r].tool.push({
  22184. tool: tool,
  22185. isTool: false,
  22186. });
  22187. }
  22188. // this.navId = this.navId ? this.navId : l + "-" + r;
  22189. // this.navId = l + "-" + r;
  22190. }
  22191. }
  22192. this.navList = copyList;
  22193. this.navList[0].isOpen = false;
  22194. this.navList[this.courseType].isOpen = true;
  22195. this.navId = this.navList[this.courseType].task[this.taskCount].id;
  22196. } else {
  22197. this.setNavList2();
  22198. }
  22199. },
  22200. setNavList2() {
  22201. for (var l = 0; l < this.chapInfoList.length; l++) {
  22202. var w = this.chapInfoList[l].chapterInfo[0].taskJson;
  22203. for (var r = 0; r < w.length; r++) {
  22204. this.navList[l].task[r].isLook = w[r].isLook;
  22205. }
  22206. }
  22207. if (
  22208. this.IsLookOpen &&
  22209. !this.navList[this.courseType].task[this.taskCount].isLook
  22210. ) {
  22211. this.openTask(0, 0, "0-0");
  22212. }
  22213. this.$forceUpdate();
  22214. },
  22215. getCourseState(type) {
  22216. let params = {
  22217. cid: this.id,
  22218. };
  22219. this.ajax
  22220. .get(this.$store.state.api + "getCourseState", params)
  22221. .then((res) => {
  22222. // if (res.data[0].length > 0) {
  22223. // this.chapInfoList = JSON.parse(res.data[0][0].state);
  22224. // }
  22225. if (res.data[0].length > 0 && type == 1) {
  22226. this.chapInfoList = JSON.parse(res.data[0][0].state);
  22227. this.setNavList();
  22228. this.$forceUpdate();
  22229. } else if (res.data[0].length > 0 && type == 2) {
  22230. this.addCourseState(2);
  22231. } else {
  22232. // this.addCourseState(1);
  22233. }
  22234. })
  22235. .catch((err) => {
  22236. console.error(err);
  22237. });
  22238. },
  22239. addCourseState(type,val = '') {
  22240. let _state = val ? val : this.chapInfoList;
  22241. // this.courseType this.taskCount
  22242. if (type == 1 || type == 2) {
  22243. for (var i = 0; i < _state.length; i++) {
  22244. let el = _state[i].chapterInfo[0].taskJson;
  22245. for (var j = 0; j < el.length; j++) {
  22246. // if (i == 0 && j == 0) {
  22247. // el[j].isLook = true;
  22248. // } else {
  22249. // el[j].isLook = false;
  22250. // }
  22251. if (
  22252. this.courseType > i ||
  22253. (this.courseType == i && this.taskCount + 1 > j)
  22254. ) {
  22255. el[j].isLook = true;
  22256. } else {
  22257. el[j].isLook = false;
  22258. }
  22259. }
  22260. }
  22261. }
  22262. let params = [
  22263. {
  22264. cid: this.id,
  22265. state: JSON.stringify(_state),
  22266. },
  22267. ];
  22268. this.ajax
  22269. .post(
  22270. this.$store.state.api +
  22271. (type == 1 ? "addCourseState" : "updateCourseSate"),
  22272. params
  22273. )
  22274. .then((res) => {
  22275. if (this.IsLookOpen) {
  22276. this.setNavList();
  22277. }
  22278. if (type == 3 && type == 2) {
  22279. this.getCourseState(1);
  22280. }
  22281. })
  22282. .catch((err) => {
  22283. console.error(err);
  22284. });
  22285. },
  22286. getHomeWork() {
  22287. let params = {
  22288. cid: this.id,
  22289. stage: this.courseType,
  22290. task: this.taskCount,
  22291. uid: this.userid,
  22292. };
  22293. this.ajax
  22294. .get(this.$store.state.api + "selectWork", params)
  22295. .then((res) => {
  22296. if (res.data[0].length > 0) {
  22297. this.studyJuri = JSON.parse(res.data[0][0].content);
  22298. this.isNoHomeWork = true;
  22299. }
  22300. })
  22301. .catch((err) => {
  22302. console.error(err);
  22303. });
  22304. },
  22305. isAssetTypeAnImage(ext) {
  22306. return (
  22307. [
  22308. "png",
  22309. "jpg",
  22310. "jpeg",
  22311. "bmp",
  22312. "gif",
  22313. "webp",
  22314. "psd",
  22315. "svg",
  22316. "tiff",
  22317. ].indexOf(ext) !== -1
  22318. );
  22319. },
  22320. switchVideo(media) {
  22321. this.playerO = {};
  22322. this.playerOptions.poster = "";
  22323. this.playerOptions.sources[0].src = media;
  22324. this.playerO = this.playerOptions;
  22325. },
  22326. onPlayerPlay() {},
  22327. onPlayerTimeupdate(player) {
  22328. let gklog = player.cache_.currentTime; //当前播放的秒数
  22329. let a = player.cache_.duration; //视频的总时长
  22330. let gklog2 = parseInt(gklog);
  22331. // if(gklog2 == '3'){
  22332. // player.pause()
  22333. // setTimeout(()=>{
  22334. // player.currentTime(gklog2+1)
  22335. // player.play()
  22336. // },1000)
  22337. // }
  22338. console.log(" onPlayerTimeupdate!", gklog);
  22339. console.log(" onPlayerTimeupdate!", gklog2);
  22340. },
  22341. lookVedio(u, i) {
  22342. this.isClickNav = "";
  22343. // this.playerOptions.sources[0].src = u;
  22344. var d = JSON.parse(JSON.stringify(this.playerOptions));
  22345. d.sources[0].src = u;
  22346. this.playerO[0] = d;
  22347. this.showType = 0;
  22348. // this.isClickNav = "video" + i;
  22349. this.isClickNav = i;
  22350. this.$forceUpdate();
  22351. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount].find(i=>i.url==u).name}</span>`)
  22352. },
  22353. lookText(i, t) {
  22354. this.isClickNav = "";
  22355. // this.text = this.textList[i][t];
  22356. this.text = this.vChapterData[i][t];
  22357. // this.dialogVisible1 = true;
  22358. this.showType = 1;
  22359. // this.isClickNav = "text" + t;
  22360. this.isClickNav = t;
  22361. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][t].name}.doc</span>`)
  22362. },
  22363. lookTools(i, t) {
  22364. this.chapTools = this.chapToolList[i][t];
  22365. this.dialogVisible2 = true;
  22366. },
  22367. async openFile(f) {
  22368. this.pptImgUrl = "";
  22369. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"];
  22370. if (
  22371. a.indexOf(f.split(".")[f.split(".").length - 1].toLocaleUpperCase()) !=
  22372. -1
  22373. ) {
  22374. let _uuurl = await this.checkLink(f);
  22375. console.log(_uuurl)
  22376. this.pptImgUrl =
  22377. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22378. this.showPDF = false;
  22379. this.dialogVisible3 = true;
  22380. } else if (
  22381. f.split(".")[f.split(".").length - 1].toLocaleUpperCase() == "PDF"
  22382. ) {
  22383. this.pptImgUrl = f;
  22384. this.showPDF = true;
  22385. this.dialogVisible3 = true;
  22386. }
  22387. this.insertMemorandum(`查看<span class="variable">${w.sName}</span>的作业`)
  22388. },
  22389. openTable(f) {
  22390. this.tableJson = JSON.parse(f.works);
  22391. this.dialogVisibleTable2 = true;
  22392. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22393. },
  22394. openWord(f) {
  22395. this.tableJson = JSON.parse(f.works);
  22396. this.dialogVisibleTable3 = true;
  22397. this.insertMemorandum(`查看<span class="variable">${f.sName}的作业</span>`)
  22398. },
  22399. doUrl(url, i) {
  22400. this.isClickNav = "";
  22401. this.pptImgUrl1 = "";
  22402. this.showType = 2;
  22403. if (url.indexOf("https://") == -1 && url.indexOf("http://") == -1) {
  22404. url = "https://" + url;
  22405. }
  22406. this.pptImgUrl1 = "";
  22407. this.diffKey = new Date().getTime();
  22408. setTimeout(() => {
  22409. this.pptImgUrl1 = url;
  22410. }, 500);
  22411. // this.isClickNav = "line" + i;
  22412. this.isClickNav = i;
  22413. this.$forceUpdate();
  22414. },
  22415. checkPhoto(f, i) {
  22416. this.showType = 4;
  22417. this.pptImgUrl1 = f.url;
  22418. this.isClickNav = i;
  22419. this.$forceUpdate();
  22420. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22421. },
  22422. checkHtml(f, i){
  22423. this.showType = 16;
  22424. this.pptImgUrl1 = f.url;
  22425. this.isClickNav = i;
  22426. this.$forceUpdate();
  22427. },
  22428. async downFile(f, i) {
  22429. this.isClickNav = "";
  22430. this.pptImgUrl1 = "";
  22431. var a = ["PPT", "PPTX", "XLSX", "XLS", "DOC", "DOCX"]; //"PDF",
  22432. if (
  22433. a.indexOf(
  22434. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase()
  22435. ) != -1
  22436. ) {
  22437. let _uuurl = await this.checkLink(f.url);
  22438. console.log(_uuurl)
  22439. this.pptImgUrl1 =
  22440. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  22441. // this.dialogVisible3 = true;
  22442. this.showType = 2;
  22443. } else if (
  22444. this.isAssetTypeAnImage(
  22445. f.url.split(".")[f.url.split(".").length - 1].toLocaleLowerCase()
  22446. )
  22447. ) {
  22448. this.showType = 4;
  22449. this.pptImgUrl1 = f.url;
  22450. } else if (
  22451. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  22452. "PDF"
  22453. ) {
  22454. this.pptImgUrl1 = f.url;
  22455. // this.dialogVisible3 = true;
  22456. this.showType = 3;
  22457. } else {
  22458. window.open(this.file[i].url);
  22459. }
  22460. // this.isClickNav = "word" + i;
  22461. this.isClickNav = i;
  22462. this.insertMemorandum(`查看文件<span class="variable">任务${this.taskCount+1}:${this.vChapterData[this.taskCount][i].name}</span>`)
  22463. },
  22464. downFileList(i) {
  22465. window.open(this.noImgList[i].url);
  22466. },
  22467. openAddWork() {
  22468. this.dialogVisible = true;
  22469. },
  22470. addBzWorks() {
  22471. let params = [
  22472. {
  22473. uid: this.userid,
  22474. cid: this.id,
  22475. stage: this.courseType,
  22476. task: this.taskCount,
  22477. tool: this.toolindex,
  22478. content: JSON.stringify(this.eScore),
  22479. type: 6,
  22480. },
  22481. ];
  22482. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22483. this.homeWorkLoading = true
  22484. this.ajax
  22485. .post(this.$store.state.api + "addCourseWorks", params)
  22486. .then((res) => {
  22487. this.$message({
  22488. message: "提交成功",
  22489. type: "success",
  22490. });
  22491. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, "success")
  22492. setTimeout(() => {
  22493. this.homeWorkLoading = false
  22494. }, 500);
  22495. this.eScore = { eBzText: "", eStar: [] };
  22496. this.studentEvalDialogVisible = false;
  22497. this.selectSWorks();
  22498. })
  22499. .catch((err) => {
  22500. this.$message.error("提交失败");
  22501. console.error(err);
  22502. setTimeout(() => {
  22503. this.homeWorkLoading = false
  22504. }, 500);
  22505. this.addOp3('1', "", { courseid: this.id,tool:'个人评价',data: JSON.stringify(this.eScore),type: "course_tool_sub" }, err)
  22506. });
  22507. },
  22508. addBzWorksTeacher() {
  22509. let params = [
  22510. {
  22511. uid: this.sStudent.userid,
  22512. cid: this.id,
  22513. stage: this.courseType,
  22514. task: this.taskCount,
  22515. tool: this.toolindex,
  22516. content: JSON.stringify(this.eScore),
  22517. type: 6,
  22518. },
  22519. ];
  22520. this.ajax
  22521. .post(this.$store.state.api + "addCourseWorks", params)
  22522. .then((res) => {
  22523. this.$message({
  22524. message: "提交成功",
  22525. type: "success",
  22526. });
  22527. this.eScore = { eBzText: "", eStar: [] };
  22528. this.studentEvalDialogVisibleTeacher = false;
  22529. this.selectSWorks();
  22530. })
  22531. .catch((err) => {
  22532. this.$message.error("提交失败");
  22533. console.error(err);
  22534. });
  22535. },
  22536. addStudentAsk() {
  22537. if (!this.radio.length) {
  22538. this.$message.error("请选择选项");
  22539. return;
  22540. }
  22541. for (var i = 0; i < this.askJson.askCount; i++) {
  22542. if (
  22543. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22544. (this.radio[i] !== 0 && !this.radio[i])
  22545. ) {
  22546. this.$message.error("请选择选项");
  22547. return;
  22548. }
  22549. }
  22550. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22551. let params = [
  22552. {
  22553. uid: this.userid,
  22554. cid: this.id,
  22555. stage: this.courseType,
  22556. task: this.taskCount,
  22557. tool: this.toolindex,
  22558. content: JSON.stringify(this.askList),
  22559. type: 2,
  22560. },
  22561. ];
  22562. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22563. this.homeWorkLoading = true
  22564. this.ajax
  22565. .post(this.$store.state.api + "addCourseWorks", params)
  22566. .then((res) => {
  22567. this.$message({
  22568. message: "提交成功",
  22569. type: "success",
  22570. });
  22571. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22572. setTimeout(() => {
  22573. this.homeWorkLoading = false
  22574. }, 500);
  22575. this.askList = [];
  22576. this.dialogVisible5 = false;
  22577. this.selectStudent();
  22578. this.selectSWorks();
  22579. this.selectSLook();
  22580. })
  22581. .catch((err) => {
  22582. this.$message.error("提交失败");
  22583. console.error(err);
  22584. setTimeout(() => {
  22585. this.homeWorkLoading = false
  22586. }, 500);
  22587. this.addOp3('1', "", { courseid: this.id,tool:'问卷调查',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22588. });
  22589. },
  22590. addStudentAskTeacher() {
  22591. if (!this.radio.length) {
  22592. this.$message.error("请选择选项");
  22593. return;
  22594. }
  22595. for (var i = 0; i < this.askJson.askCount; i++) {
  22596. if (
  22597. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22598. (this.radio[i] !== 0 && !this.radio[i])
  22599. ) {
  22600. this.$message.error("请选择选项");
  22601. return;
  22602. }
  22603. }
  22604. this.askList.push({ askJson: this.askJson, anwer: this.radio });
  22605. let params = [
  22606. {
  22607. uid: this.sStudent.userid,
  22608. cid: this.id,
  22609. stage: this.courseType,
  22610. task: this.taskCount,
  22611. tool: this.toolindex,
  22612. content: JSON.stringify(this.askList),
  22613. type: 2,
  22614. },
  22615. ];
  22616. this.ajax
  22617. .post(this.$store.state.api + "addCourseWorks", params)
  22618. .then((res) => {
  22619. this.$message({
  22620. message: "提交成功",
  22621. type: "success",
  22622. });
  22623. this.askList = [];
  22624. this.dialogVisible5Teacher = false;
  22625. this.selectStudent();
  22626. this.selectSWorks();
  22627. this.selectSLook();
  22628. })
  22629. .catch((err) => {
  22630. this.$message.error("提交失败");
  22631. console.error(err);
  22632. });
  22633. },
  22634. addStudentTest() {
  22635. if (!this.radio.length) {
  22636. this.$message.error("请选择选项");
  22637. return;
  22638. }
  22639. for (var i = 0; i < this.testJson.testCount; i++) {
  22640. if (
  22641. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22642. (this.radio[i] !== 0 && !this.radio[i])
  22643. ) {
  22644. this.$message.error("请选择选项");
  22645. return;
  22646. }
  22647. }
  22648. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22649. let params = [
  22650. {
  22651. uid: this.userid,
  22652. cid: this.id,
  22653. stage: this.courseType,
  22654. task: this.taskCount,
  22655. tool: this.toolindex,
  22656. content: JSON.stringify(this.askList),
  22657. type: 8,
  22658. },
  22659. ];
  22660. if (this.homeWorkLoading) return this.$message.info('点击过快,请稍后...')
  22661. this.homeWorkLoading = true
  22662. this.ajax
  22663. .post(this.$store.state.api + "addCourseWorks", params)
  22664. .then((res) => {
  22665. this.$message({
  22666. message: "提交成功",
  22667. type: "success",
  22668. });
  22669. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, "success")
  22670. setTimeout(() => {
  22671. this.homeWorkLoading = false
  22672. }, 500);
  22673. this.askList = [];
  22674. this.dialogVisibleChoice = false;
  22675. this.selectStudent();
  22676. this.selectSWorks();
  22677. this.selectSLook();
  22678. })
  22679. .catch((err) => {
  22680. this.$message.error("提交失败");
  22681. console.error(err);
  22682. setTimeout(() => {
  22683. this.homeWorkLoading = false
  22684. }, 500);
  22685. this.addOp3('1', "", { courseid: this.id,tool:'选择题',data:JSON.stringify(this.askList),type: "course_tool_sub" }, err)
  22686. });
  22687. },
  22688. addStudentTestTeacher() {
  22689. if (!this.radio.length) {
  22690. this.$message.error("请选择选项");
  22691. return;
  22692. }
  22693. for (var i = 0; i < this.testJson.testCount; i++) {
  22694. if (
  22695. (this.radio[i] instanceof Array && !this.radio[i].length) ||
  22696. (this.radio[i] !== 0 && !this.radio[i])
  22697. ) {
  22698. this.$message.error("请选择选项");
  22699. return;
  22700. }
  22701. }
  22702. this.askList.push({ testJson: this.testJson, anwer: this.radio });
  22703. let params = [
  22704. {
  22705. uid: this.sStudent.userid,
  22706. cid: this.id,
  22707. stage: this.courseType,
  22708. task: this.taskCount,
  22709. tool: this.toolindex,
  22710. content: JSON.stringify(this.askList),
  22711. type: 8,
  22712. },
  22713. ];
  22714. this.ajax
  22715. .post(this.$store.state.api + "addCourseWorks", params)
  22716. .then((res) => {
  22717. this.$message({
  22718. message: "提交成功",
  22719. type: "success",
  22720. });
  22721. this.askList = [];
  22722. this.dialogVisibleChoiceTeacher = false;
  22723. this.selectStudent();
  22724. this.selectSWorks();
  22725. this.selectSLook();
  22726. })
  22727. .catch((err) => {
  22728. this.$message.error("提交失败");
  22729. console.error(err);
  22730. });
  22731. },
  22732. addWork() {
  22733. if (this.studyJuri[0].content == "") {
  22734. this.$message.error("请将信息填写完整");
  22735. return;
  22736. } else if (this.studyJuri[0].cover.length == 0) {
  22737. this.$message.error("请将信息填写完整");
  22738. return;
  22739. } else if (this.studyJuri[0].upVedio.length == 0) {
  22740. this.$message.error("请将信息填写完整");
  22741. return;
  22742. }
  22743. if (this.isNoHomeWork) {
  22744. this.$confirm(
  22745. "您已经提交了该作业了,如果您再提交将覆盖上次提交的作业!",
  22746. "提示",
  22747. {
  22748. confirmButtonText: "确定",
  22749. cancelButtonText: "取消",
  22750. type: "warning",
  22751. }
  22752. )
  22753. .then(() => {
  22754. let params = [
  22755. {
  22756. uid: this.userid,
  22757. cid: this.id,
  22758. stage: this.courseType,
  22759. task: this.taskCount,
  22760. content: JSON.stringify(this.studyJuri),
  22761. },
  22762. ];
  22763. this.ajax
  22764. .post(this.$store.state.api + "addWorks", params)
  22765. .then((res) => {
  22766. this.$message({
  22767. message: "提交成功",
  22768. type: "success",
  22769. });
  22770. this.isNoHomeWork = true;
  22771. this.dialogVisible = false;
  22772. })
  22773. .catch((err) => {
  22774. this.$message.error("提交失败");
  22775. console.error(err);
  22776. });
  22777. })
  22778. .catch(() => {});
  22779. } else {
  22780. let params = [
  22781. {
  22782. uid: this.userid,
  22783. cid: this.id,
  22784. stage: this.courseType,
  22785. task: this.taskCount,
  22786. content: JSON.stringify(this.studyJuri),
  22787. },
  22788. ];
  22789. this.ajax
  22790. .post(this.$store.state.api + "addWorks", params)
  22791. .then((res) => {
  22792. this.$message({
  22793. message: "提交成功",
  22794. type: "success",
  22795. });
  22796. this.isNoHomeWork = true;
  22797. this.dialogVisible = false;
  22798. })
  22799. .catch((err) => {
  22800. this.$message.error("提交失败");
  22801. console.error(err);
  22802. });
  22803. }
  22804. },
  22805. selectCount() {
  22806. let params = {
  22807. cid: this.id,
  22808. chid: this.courseType,
  22809. uid: this.userid,
  22810. };
  22811. this.ajax
  22812. .get(this.$store.state.api + "selectToolsCount", params)
  22813. .then((res) => {
  22814. for (var i = 0; i < res.data[0].length; i++) {
  22815. if (res.data[0][i].tools == 1) {
  22816. this.wbCount = res.data[0][i].count;
  22817. } else if (res.data[0][i].tools == 2) {
  22818. this.wordCount = res.data[0][i].count;
  22819. } else if (res.data[0][i].tools == 3) {
  22820. this.mindCount = res.data[0][i].count;
  22821. } else if (res.data[0][i].tools == 4) {
  22822. this.askCount = res.data[0][i].count;
  22823. } else if (res.data[0][i].tools == 6) {
  22824. this.noteCount = res.data[0][i].count;
  22825. } else if (res.data[0][i].tools == 7) {
  22826. this.mindNetWorkCount = res.data[0][i].count;
  22827. } else if (res.data[0][i].tools == 8) {
  22828. this.libraryCount = res.data[0][i].count;
  22829. } else if (res.data[0][i].tools == 16) {
  22830. this.workCount = res.data[0][i].count;
  22831. } else if (res.data[0][i].tools == 10) {
  22832. this.timeCount = res.data[0][i].count;
  22833. } else if (res.data[0][i].tools == 15) {
  22834. this.answerCount = res.data[0][i].count;
  22835. } else if (res.data[0][i].tools == 18) {
  22836. this.trainCount = res.data[0][i].count;
  22837. }
  22838. }
  22839. })
  22840. .catch((err) => {
  22841. console.error(err);
  22842. });
  22843. },
  22844. openTools(t, i, index, c, sName,id) {
  22845. var z = JSON.parse(c);
  22846. this.noteName = sName;
  22847. if (t == 4) {
  22848. this.radio = [];
  22849. this.isAnswer = false;
  22850. let b = z[0].anwer;
  22851. this.radio = b;
  22852. this.askJson = z[0].askJson;
  22853. this.isAnswer = true;
  22854. this.dialogVisible5 = true;
  22855. } else if (t == 45) {
  22856. this.radio = [];
  22857. this.isAnswer = false;
  22858. let b = z[0].anwer;
  22859. this.radio = b;
  22860. this.testJson = z[0].testJson;
  22861. this.isAnswer = true;
  22862. this.dialogVisibleChoice = true;
  22863. }else if(t == 69){
  22864. this.oldEnglishJson1 = {}
  22865. this.oldEnglishJson = {}
  22866. this.englishList1 = {}
  22867. this.newEngIndex = -1;
  22868. this.isNoUserid = false;
  22869. this.englishList1 = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  22870. .toolChoose[i].englishList;
  22871. this.oldEnglishJson = z;
  22872. this.engWid = id;
  22873. this.newEnglishList = { engTitle:"",engText:"" }
  22874. this.newEnglishList1 = []
  22875. this.selectEngC(id,z);
  22876. }else if(t == 62){
  22877. this.videoType = 1;
  22878. this.videoJson = {};
  22879. this.videoJson = JSON.parse(c);
  22880. // this.videoJson =
  22881. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22882. // index
  22883. // ].toolChoose[i].videoJson;
  22884. this.dialogVisibleVideo = true;
  22885. }
  22886. // else if (t == 15) {
  22887. // this.answerQ = "";
  22888. // this.questionAnswer = "";
  22889. // this.answerQ = z[0].answerTitle;
  22890. // this.questionAnswer = z[0].answer;
  22891. // this.answerDialogVisible = true;
  22892. // }
  22893. this.insertMemorandum(`查看<span class="variable">${sName}</span>的作业`)
  22894. },
  22895. fastText(p, t) {
  22896. if (t == 1) {
  22897. this.commentText += p;
  22898. } else {
  22899. this.eScore.eBzText += p;
  22900. }
  22901. },
  22902. addTools(t, i, index) {
  22903. var a = 0;
  22904. // this.taskCount = index;
  22905. this.toolindex = i;
  22906. if (t == 1) {
  22907. if (this.wbCount > 0) {
  22908. this.updateCount(this.wbCount, t);
  22909. } else {
  22910. this.wbCount++;
  22911. a = this.wbCount;
  22912. this.toolsCount(a, t);
  22913. }
  22914. window.topU.postMessage(
  22915. {
  22916. tools: "1",
  22917. cid: this.id,
  22918. stage: this.courseType,
  22919. task: this.taskCount,
  22920. tool: i,
  22921. },
  22922. "*"
  22923. );
  22924. } else if (t == 2) {
  22925. if (this.wordCount > 0) {
  22926. this.updateCount(this.wordCount, t);
  22927. } else {
  22928. this.wordCount++;
  22929. a = this.wordCount;
  22930. this.toolsCount(a, t);
  22931. }
  22932. window.topU.postMessage({ tools: "2" }, "*");
  22933. } else if (t == 3) {
  22934. if (this.mindCount > 0) {
  22935. this.updateCount(this.mindCount, t);
  22936. } else {
  22937. this.mindCount++;
  22938. a = this.mindCount;
  22939. this.toolsCount(a, t);
  22940. }
  22941. window.topU.postMessage(
  22942. {
  22943. tools: "3",
  22944. cid: this.id,
  22945. stage: this.courseType,
  22946. task: this.taskCount,
  22947. tool: i,
  22948. },
  22949. "*"
  22950. );
  22951. } else if (t == 4) {
  22952. this.radio = [];
  22953. this.noteName = "";
  22954. this.isAnswer = false;
  22955. if (this.askCount > 0) {
  22956. this.updateCount(this.askCount, t);
  22957. } else {
  22958. this.askCount++;
  22959. a = this.askCount;
  22960. this.toolsCount(a, t);
  22961. }
  22962. if (!this.dialogVisible2) {
  22963. this.askJson.askJson =
  22964. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22965. index
  22966. ].toolChoose[i].askJson;
  22967. this.askJson.askTitle =
  22968. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22969. index
  22970. ].toolChoose[i].askTitle;
  22971. this.askJson.askCount =
  22972. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  22973. index
  22974. ].toolChoose[i].askCount;
  22975. } else {
  22976. this.askJson.askJson = this.chapTools.askJson.askJson;
  22977. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  22978. this.askJson.askCount = this.chapTools.askJson.askCount;
  22979. }
  22980. for (var k = 0; k < this.askJson.askJson.length; k++) {
  22981. if (this.askJson.askJson[k].type == "2") {
  22982. this.radio.push([]);
  22983. } else {
  22984. this.radio.push("");
  22985. }
  22986. }
  22987. this.dialogVisible5 = true;
  22988. // window.topU.postMessage({ tools: "4" }, "*");
  22989. } else if (t == 45) {
  22990. this.noteName = "";
  22991. this.radio = [];
  22992. this.isAnswer = false;
  22993. if (this.askCount > 0) {
  22994. this.updateCount(this.askCount, t);
  22995. } else {
  22996. this.askCount++;
  22997. a = this.askCount;
  22998. this.toolsCount(a, t);
  22999. }
  23000. this.testJson =
  23001. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23002. index
  23003. ].toolChoose[i].testJson;
  23004. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23005. if (this.testJson.testJson[k].type == "2") {
  23006. this.radio.push([]);
  23007. } else {
  23008. this.radio.push("");
  23009. }
  23010. }
  23011. this.dialogVisibleChoice = true;
  23012. // window.topU.postMessage({ tools: "4" }, "*");
  23013. } else if (t == 5) {
  23014. if (this.scoreCount > 0) {
  23015. this.updateCount(this.scoreCount, t);
  23016. } else {
  23017. this.scoreCount++;
  23018. a = this.scoreCount;
  23019. this.toolsCount(a, t);
  23020. }
  23021. this.dialogVisible4 = true;
  23022. // window.topU.postMessage({ tools: "5" }, "*");
  23023. } else if (t == 6) {
  23024. if (this.noteCount > 0) {
  23025. this.updateCount(this.noteCount, t);
  23026. } else {
  23027. this.noteCount++;
  23028. a = this.noteCount;
  23029. this.toolsCount(a, t);
  23030. }
  23031. window.topU.postMessage(
  23032. {
  23033. tools: "6",
  23034. cid: this.id,
  23035. stage: this.courseType,
  23036. task: this.taskCount,
  23037. tool: i,
  23038. },
  23039. "*"
  23040. );
  23041. } else if (t == 7) {
  23042. if (this.mindNetWorkCount > 0) {
  23043. this.updateCount(this.mindNetWorkCount, t);
  23044. } else {
  23045. this.mindNetWorkCount++;
  23046. a = this.mindNetWorkCount;
  23047. this.toolsCount(a, t);
  23048. }
  23049. window.topU.postMessage(
  23050. {
  23051. tools: "7",
  23052. cid: this.id,
  23053. stage: this.courseType,
  23054. task: this.taskCount,
  23055. tool: i,
  23056. },
  23057. "*"
  23058. );
  23059. } else if (t == 16) {
  23060. if (this.workCount > 0) {
  23061. this.updateCount(this.workCount, t);
  23062. } else {
  23063. this.workCount++;
  23064. a = this.workCount;
  23065. this.toolsCount(a, t);
  23066. }
  23067. this.dialogVisible = true;
  23068. } else if (t == 50) {
  23069. if (this.tType == 2) {
  23070. this.$message.error("不支持学生使用");
  23071. return;
  23072. }
  23073. this.plworkFile = [];
  23074. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23075. if (!this.uploadCid) {
  23076. this.$message.error(
  23077. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23078. );
  23079. return;
  23080. }
  23081. // this.uploadCid =
  23082. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23083. // index
  23084. // ].toolChoose[i].uploadJson[0];
  23085. this.selectUploadStudent(2);
  23086. } else if (t == 8) {
  23087. if (this.libraryCount > 0) {
  23088. this.updateCount(this.libraryCount, t);
  23089. } else {
  23090. this.libraryCount++;
  23091. a = this.libraryCount;
  23092. this.toolsCount(a, t);
  23093. }
  23094. window.topU.postMessage({ tools: "8" }, "*");
  23095. } else if (t == 17) {
  23096. if (this.libraryCount > 0) {
  23097. this.updateCount(this.libraryCount, t);
  23098. } else {
  23099. this.libraryCount++;
  23100. a = this.libraryCount;
  23101. this.toolsCount(a, t);
  23102. }
  23103. window.topU.postMessage({ tools: "17" }, "*");
  23104. } else if (t == 18) {
  23105. if (this.trainCount > 0) {
  23106. this.updateCount(this.trainCount, t);
  23107. } else {
  23108. this.trainCount++;
  23109. a = this.trainCount;
  23110. this.toolsCount(a, t);
  23111. }
  23112. window.topU.postMessage({ tools: "18" }, "*");
  23113. } else if (t == 10) {
  23114. if (this.timeCount > 0) {
  23115. this.updateCount(this.timeCount, t);
  23116. } else {
  23117. this.timeCount++;
  23118. a = this.timeCount;
  23119. this.toolsCount(a, t);
  23120. }
  23121. this.preTime = this.chapInfoList[this.courseType].chapterInfo[0]
  23122. .taskJson[index].toolChoose[i].preTime
  23123. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23124. .toolChoose[i].preTime
  23125. : "";
  23126. this.timeDialogVisible = true;
  23127. } else if (t == 15) {
  23128. this.answerQ = "";
  23129. this.questionAnswer = "";
  23130. if (this.answerCount > 0) {
  23131. this.updateCount(this.answerCount, t);
  23132. } else {
  23133. this.answerCount++;
  23134. a = this.answerCount;
  23135. this.toolsCount(a, t);
  23136. }
  23137. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23138. .taskJson[index].toolChoose[i].answerQ
  23139. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23140. .toolChoose[i].answerQ
  23141. : "";
  23142. this.answerDialogVisible = true;
  23143. } else if (t == 21) {
  23144. window.topU.postMessage({ tools: "21" }, "*");
  23145. } else if (t == 22) {
  23146. window.topU.postMessage({ tools: "22" }, "*");
  23147. } else if (t == 23) {
  23148. window.topU.postMessage({ tools: "23" }, "*");
  23149. } else if (t == 24) {
  23150. window.topU.postMessage({ tools: "24" }, "*");
  23151. } else if (t == 25) {
  23152. window.topU.postMessage({ tools: "25" }, "*");
  23153. } else if (t == 31) {
  23154. window.topU.postMessage({ tools: "31" }, "*");
  23155. } else if (t == 28) {
  23156. window.topU.postMessage({ tools: "28" }, "*");
  23157. } else if (t == 37) {
  23158. window.topU.postMessage({ tools: "37" }, "*");
  23159. } else if (t == 38) {
  23160. window.topU.postMessage({ tools: "38" }, "*");
  23161. } else if (t == 39) {
  23162. window.topU.postMessage({ tools: "39" }, "*");
  23163. } else if (t == 32) {
  23164. window.topU.postMessage({ tools: "32" }, "*");
  23165. } else if (t == 66) {
  23166. window.topU.postMessage({ tools: "66" }, "*");
  23167. } else if (t == 67) {
  23168. window.topU.postMessage({ tools: "67" }, "*");
  23169. } else if (t == 68) {
  23170. window.topU.postMessage({ tools: "68" }, "*");
  23171. } else if (t == 57) {
  23172. // window.topU.postMessage({ tools: "57" }, "*");
  23173. window.topU.postMessage(
  23174. {
  23175. tools: "57u",
  23176. cid: this.id,
  23177. stage: this.courseType,
  23178. task: this.taskCount,
  23179. tool: i,
  23180. },
  23181. "*"
  23182. );
  23183. } else if (t == 58) {
  23184. window.topU.postMessage({ tools: "58" }, "*");
  23185. } else if (t == 59) {
  23186. window.topU.postMessage({ tools: "59" }, "*");
  23187. } else if (t == 60) {
  23188. window.topU.postMessage({ tools: "60" }, "*");
  23189. } else if (t == 61) {
  23190. window.topU.postMessage({ tools: "61" }, "*");
  23191. } else if (t == 63) {
  23192. window.topU.postMessage({ tools: "63" }, "*");
  23193. } else if (t == 71) {
  23194. // if(this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840'){
  23195. // this.$message.error("该工具不可使用");
  23196. // return
  23197. // }
  23198. window.topU.postMessage({ tools: "71" }, "*");
  23199. } else if (t == 72) {
  23200. let item = this.chapInfoList[this.courseType].chapterInfo[0]
  23201. .taskJson[index].toolChoose[i].appJson
  23202. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23203. .toolChoose[i].appJson
  23204. : "";
  23205. if(!item || !item.url){
  23206. this.$message.error("应用连接为空, 请到课程管理中添加");
  23207. return;
  23208. }
  23209. if (!document.fullscreenElement) {
  23210. this.enterFullScreen();
  23211. }
  23212. this.$refs.appStoreC.getData(item.url,this.userid)
  23213. // window.topU.postMessage({ tools: "72", data: item }, "*");
  23214. // window.open(item.url, "_blank");
  23215. } else if (t == 69) {
  23216. if (this.worksStudent[i].length) {
  23217. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23218. if (this.userid == this.worksStudent[i][k].userid) {
  23219. this.myAnswerList1 = JSON.parse(this.worksStudent[i][k].works)
  23220. break;
  23221. } else {
  23222. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23223. }
  23224. }
  23225. } else {
  23226. this.myAnswerList1 = {engTitle: "",engText: "",imgList: [],};
  23227. }
  23228. this.englishList = this.chapInfoList[this.courseType].chapterInfo[0]
  23229. .taskJson[index].toolChoose[i].englishList
  23230. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23231. .toolChoose[i].englishList
  23232. : {};
  23233. this.englishToolIndex = i;
  23234. this.myAnList = this.myAnswerList1;
  23235. this.engDialogVisible = true;
  23236. } else if (t == 70) {
  23237. if (this.worksStudent[i].length) {
  23238. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23239. if (this.userid == this.worksStudent[i][k].userid && this.worksStudent[i][k].type == 17) {
  23240. this.englishVoiceJsonWork = JSON.parse(this.worksStudent[i][k].works)
  23241. break;
  23242. } else {
  23243. this.englishVoiceJsonWork = [];
  23244. }
  23245. }
  23246. } else {
  23247. this.englishVoiceJsonWork = [];
  23248. }
  23249. let englishVoiceJson = {}
  23250. englishVoiceJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23251. .taskJson[index].toolChoose[i].englishVoiceJson
  23252. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23253. .toolChoose[i].englishVoiceJson
  23254. : {};
  23255. this.englishVoiceJson = JSON.parse(JSON.stringify(englishVoiceJson));
  23256. this.EnglishVoiceDialog = true;
  23257. } else if (t == 65) {
  23258. if (this.tType == 2) {
  23259. this.$message.error("不支持学生使用");
  23260. return;
  23261. }
  23262. this.uploadCid = this.tcid;
  23263. if (!this.uploadCid) {
  23264. this.$message.error(
  23265. "提示:未添加班级权限,请添加班级或从班级入口进入。"
  23266. );
  23267. return;
  23268. }
  23269. this.selectPickStudent();
  23270. } else if (t == 26) {
  23271. window.topU.postMessage(
  23272. {
  23273. tools: "26",
  23274. cid: this.id,
  23275. stage: this.courseType,
  23276. task: this.taskCount,
  23277. tool: i,
  23278. },
  23279. "*"
  23280. );
  23281. } else if (t == 40) {
  23282. if (this.evalCount > 0) {
  23283. this.updateCount(this.evalCount, t);
  23284. } else {
  23285. this.evalCount++;
  23286. a = this.evalCount;
  23287. this.toolsCount(a, t);
  23288. }
  23289. this.eScore = { eBzText: "", eStar: [] };
  23290. if (this.worksStudent[i].length) {
  23291. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23292. if (this.userid == this.worksStudent[i][k].userid) {
  23293. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23294. this.rateJson =
  23295. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23296. index
  23297. ].toolChoose[i].rateJson;
  23298. break;
  23299. } else {
  23300. this.rateJson =
  23301. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23302. index
  23303. ].toolChoose[i].rateJson;
  23304. }
  23305. }
  23306. } else {
  23307. this.rateJson =
  23308. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23309. index
  23310. ].toolChoose[i].rateJson;
  23311. }
  23312. this.isStar = false;
  23313. this.studentEvalDialogVisible = true;
  23314. } else if (t == 41) {
  23315. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23316. .taskJson[index].toolChoose[i].selectJson
  23317. ? JSON.parse(
  23318. JSON.stringify(
  23319. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23320. index
  23321. ].toolChoose[i].selectJson
  23322. )
  23323. )
  23324. : { url: "", select: [], answer: [] };
  23325. if (this.worksStudent[i].length) {
  23326. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23327. if (this.userid == this.worksStudent[i][k].userid) {
  23328. var a = this.worksStudent[i][k].works.split(",");
  23329. for (var ki = 0; ki < a.length; ki++) {
  23330. a[ki] = parseInt(a[ki]);
  23331. }
  23332. this.selectAnswer = {
  23333. answer: a,
  23334. stu: this.worksStudent[i][k].sName,
  23335. };
  23336. break;
  23337. } else {
  23338. this.selectAnswer = { answer: [], stu: "" };
  23339. }
  23340. }
  23341. } else {
  23342. this.selectAnswer = { answer: [], stu: "" };
  23343. }
  23344. this.isSelect = false;
  23345. this.dialogVisibleSelect = true;
  23346. } else if (t == 44) {
  23347. window.topU.postMessage({ tools: "44" }, "*");
  23348. } else if (t == 47) {
  23349. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23350. .taskJson[index].toolChoose[i].sentenceList
  23351. ? JSON.parse(
  23352. JSON.stringify(
  23353. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23354. index
  23355. ].toolChoose[i].sentenceList
  23356. )
  23357. )
  23358. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23359. for (var q = 0; q < this.sentenceList.length; q++) {
  23360. this.sentenceList[q].chooseSenList = [];
  23361. this.sentenceList[q].addChangeSen = [];
  23362. this.sentenceList[q].addChangeSen = JSON.parse(
  23363. JSON.stringify(this.sentenceList[q].addSentence)
  23364. );
  23365. this.sentenceList[q].chooseSenList.length =
  23366. this.sentenceList[q].rightAnswer.length;
  23367. }
  23368. this.dialogVisibleSentence = true;
  23369. } else if (t == 48) {
  23370. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23371. .taskJson[index].toolChoose[i].tableJson
  23372. ? JSON.parse(
  23373. JSON.stringify(
  23374. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23375. index
  23376. ].toolChoose[i].tableJson
  23377. )
  23378. )
  23379. : { text: "" };
  23380. this.tableJsonO = JSON.parse(JSON.stringify(this.tableJson));
  23381. if (this.worksStudent[i].length) {
  23382. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23383. if (this.userid == this.worksStudent[i][k].userid) {
  23384. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23385. break;
  23386. }
  23387. }
  23388. }
  23389. this.dialogVisibleTable = true;
  23390. } else if (t == 52) {
  23391. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23392. .taskJson[index].toolChoose[i].wordJson
  23393. ? JSON.parse(
  23394. JSON.stringify(
  23395. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23396. index
  23397. ].toolChoose[i].wordJson
  23398. )
  23399. )
  23400. : { text: "" };
  23401. this.wordJsonO = JSON.parse(JSON.stringify(this.wordJson));
  23402. if (this.worksStudent[i].length) {
  23403. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23404. if (this.userid == this.worksStudent[i][k].userid) {
  23405. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23406. break;
  23407. }
  23408. }
  23409. }
  23410. this.dialogVisibleWord = true;
  23411. } else if (t == 49) {
  23412. if(!this.tcid2 && this.courseDetail.juri != '' && this.tType == "1"){
  23413. return
  23414. }
  23415. this.groupJson =
  23416. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23417. index
  23418. ].toolChoose[i].groupJson;
  23419. this.islock = this.groupJson.islock == 1 ? true : false;
  23420. this.dialogVisibleGroup = true;
  23421. } else if (t == 62) {
  23422. this.videoType = 0;
  23423. this.videoJson = {};
  23424. this.videoJson =
  23425. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23426. index
  23427. ].toolChoose[i].videoJson;
  23428. this.dialogVisibleVideo = true;
  23429. }
  23430. this.addOp3('1', "", { courseid: this.id,tool: this.toolsList[t] ,type: "course_tool_open" }, 'success')
  23431. this.insertMemorandum(`点击工作区<span class="variable">工具${index+1}:${this.toolsList[t]}</span>`)
  23432. },
  23433. teacherWorkSubmit(t, i, index, s) {
  23434. console.log('t',t);
  23435. if(t == 72) return
  23436. this.sStudent = s;
  23437. this.toolindex = i;
  23438. this.sTool = t;
  23439. if (this.tType !== "1" && this.tType !== "4") {
  23440. return;
  23441. }
  23442. if (t == 16 || t == 32 || t == 50) {
  23443. this.dialogVisibleWorks = true;
  23444. } else if (t == 15) {
  23445. this.answerQ = this.chapInfoList[this.courseType].chapterInfo[0]
  23446. .taskJson[index].toolChoose[i].answerQ
  23447. ? this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index]
  23448. .toolChoose[i].answerQ
  23449. : "";
  23450. this.questionAnswer = "";
  23451. this.answerDialogVisibleTeacher = true; //问答
  23452. } else if (t == 52) {
  23453. this.wordJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23454. .taskJson[index].toolChoose[i].wordJson
  23455. ? JSON.parse(
  23456. JSON.stringify(
  23457. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23458. index
  23459. ].toolChoose[i].wordJson
  23460. )
  23461. )
  23462. : { text: "" };
  23463. if (this.worksStudent[i].length) {
  23464. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23465. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23466. this.wordJson = JSON.parse(this.worksStudent[i][k].works);
  23467. break;
  23468. }
  23469. }
  23470. }
  23471. this.dialogVisibleWordTeacher = true; //文档
  23472. } else if (t == 4) {
  23473. this.radio = [];
  23474. this.noteName = "";
  23475. this.isAnswer = false;
  23476. if (this.askCount > 0) {
  23477. this.updateCount(this.askCount, t);
  23478. } else {
  23479. this.askCount++;
  23480. a = this.askCount;
  23481. this.toolsCount(a, t);
  23482. }
  23483. if (!this.dialogVisible2) {
  23484. this.askJson.askJson =
  23485. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23486. index
  23487. ].toolChoose[i].askJson;
  23488. this.askJson.askTitle =
  23489. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23490. index
  23491. ].toolChoose[i].askTitle;
  23492. this.askJson.askCount =
  23493. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23494. index
  23495. ].toolChoose[i].askCount;
  23496. } else {
  23497. this.askJson.askJson = this.chapTools.askJson.askJson;
  23498. this.askJson.askTitle = this.chapTools.askJson.askTitle;
  23499. this.askJson.askCount = this.chapTools.askJson.askCount;
  23500. }
  23501. for (var k = 0; k < this.askJson.askJson.length; k++) {
  23502. if (this.askJson.askJson[k].type == "2") {
  23503. this.radio.push([]);
  23504. } else {
  23505. this.radio.push("");
  23506. }
  23507. }
  23508. this.dialogVisible5Teacher = true;
  23509. } else if (t == 45) {
  23510. this.noteName = "";
  23511. this.radio = [];
  23512. this.isAnswer = false;
  23513. if (this.askCount > 0) {
  23514. this.updateCount(this.askCount, t);
  23515. } else {
  23516. this.askCount++;
  23517. a = this.askCount;
  23518. this.toolsCount(a, t);
  23519. }
  23520. this.testJson =
  23521. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23522. index
  23523. ].toolChoose[i].testJson;
  23524. for (var k = 0; k < this.testJson.testJson.length; k++) {
  23525. if (this.testJson.testJson[k].type == "2") {
  23526. this.radio.push([]);
  23527. } else {
  23528. this.radio.push("");
  23529. }
  23530. }
  23531. this.dialogVisibleChoiceTeacher = true;
  23532. } else if (t == 41) {
  23533. this.selectJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23534. .taskJson[index].toolChoose[i].selectJson
  23535. ? JSON.parse(
  23536. JSON.stringify(
  23537. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23538. index
  23539. ].toolChoose[i].selectJson
  23540. )
  23541. )
  23542. : { url: "", select: [], answer: [] };
  23543. if (this.worksStudent[i].length) {
  23544. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23545. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23546. var a = this.worksStudent[i][k].works.split(",");
  23547. for (var ki = 0; ki < a.length; ki++) {
  23548. a[ki] = parseInt(a[ki]);
  23549. }
  23550. this.selectAnswer = {
  23551. answer: a,
  23552. stu: this.worksStudent[i][k].sName,
  23553. };
  23554. break;
  23555. } else {
  23556. this.selectAnswer = { answer: [], stu: "" };
  23557. }
  23558. }
  23559. } else {
  23560. this.selectAnswer = { answer: [], stu: "" };
  23561. }
  23562. this.isSelect = false;
  23563. this.dialogVisibleSelectTeacher = true;
  23564. } else if (t == 47) {
  23565. this.sentenceList = this.chapInfoList[this.courseType].chapterInfo[0]
  23566. .taskJson[index].toolChoose[i].sentenceList
  23567. ? JSON.parse(
  23568. JSON.stringify(
  23569. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23570. index
  23571. ].toolChoose[i].sentenceList
  23572. )
  23573. )
  23574. : [{ sentenceTitle: "", addSentence: [], rightAnswer: [] }];
  23575. for (var q = 0; q < this.sentenceList.length; q++) {
  23576. this.sentenceList[q].chooseSenList = [];
  23577. this.sentenceList[q].addChangeSen = [];
  23578. this.sentenceList[q].addChangeSen = JSON.parse(
  23579. JSON.stringify(this.sentenceList[q].addSentence)
  23580. );
  23581. this.sentenceList[q].chooseSenList.length =
  23582. this.sentenceList[q].rightAnswer.length;
  23583. }
  23584. this.dialogVisibleSentenceTeacher = true;
  23585. } else if (t == 48) {
  23586. this.tableJson = this.chapInfoList[this.courseType].chapterInfo[0]
  23587. .taskJson[index].toolChoose[i].tableJson
  23588. ? JSON.parse(
  23589. JSON.stringify(
  23590. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23591. index
  23592. ].toolChoose[i].tableJson
  23593. )
  23594. )
  23595. : { text: "" };
  23596. if (this.worksStudent[i].length) {
  23597. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23598. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23599. this.tableJson = JSON.parse(this.worksStudent[i][k].works);
  23600. break;
  23601. }
  23602. }
  23603. }
  23604. this.dialogVisibleTableTeacher = true;
  23605. } else if (t == 40) {
  23606. if (this.evalCount > 0) {
  23607. this.updateCount(this.evalCount, t);
  23608. } else {
  23609. this.evalCount++;
  23610. a = this.evalCount;
  23611. this.toolsCount(a, t);
  23612. }
  23613. this.eScore = { eBzText: "", eStar: [] };
  23614. if (this.worksStudent[i].length) {
  23615. for (var k = 0; k < this.worksStudent[i].length; k++) {
  23616. if (this.sStudent.userid == this.worksStudent[i][k].userid) {
  23617. this.eScore = JSON.parse(this.worksStudent[i][k].works);
  23618. this.rateJson =
  23619. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23620. index
  23621. ].toolChoose[i].rateJson;
  23622. break;
  23623. } else {
  23624. this.rateJson =
  23625. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23626. index
  23627. ].toolChoose[i].rateJson;
  23628. }
  23629. }
  23630. } else {
  23631. this.rateJson =
  23632. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23633. index
  23634. ].toolChoose[i].rateJson;
  23635. }
  23636. this.isStar = false;
  23637. this.studentEvalDialogVisibleTeacher = true;
  23638. } else if (t == 3 || t == 1 || t == 7 || t == 57) {
  23639. window.topU.postMessage(
  23640. {
  23641. tools: t + "teacher",
  23642. cid: this.id,
  23643. stage: this.courseType,
  23644. task: this.taskCount,
  23645. tool: i,
  23646. student: this.sStudent,
  23647. },
  23648. "*"
  23649. );
  23650. }else if (t == 72) {
  23651. if (!document.fullscreenElement) {
  23652. this.enterFullScreen();
  23653. }
  23654. let url = this.chapInfoList[this.courseType].chapterInfo[0].taskJson[index].toolChoose[i].appJson.url
  23655. this.$refs.appStoreC.getData(url,this.sStudent.userid)
  23656. }
  23657. },
  23658. openCocoPi(tool, i, uid, uname) {
  23659. let student = {
  23660. userid: uid,
  23661. student: uname,
  23662. };
  23663. if (tool == 57) {
  23664. window.topU.postMessage(
  23665. {
  23666. tools: tool + "teacher",
  23667. cid: this.id,
  23668. stage: this.courseType,
  23669. task: this.taskCount,
  23670. tool: i,
  23671. student: student,
  23672. },
  23673. "*"
  23674. );
  23675. }
  23676. },
  23677. setRightAnswer(s, i, j) {
  23678. for (var q = 0; q < this.sentenceList[i].chooseSenList.length; q++) {
  23679. if (
  23680. this.sentenceList[i].chooseSenList[q] == undefined ||
  23681. this.sentenceList[i].chooseSenList[q] == ""
  23682. ) {
  23683. this.sentenceList[i].chooseSenList[q] = s;
  23684. this.sentenceList[i].addChangeSen[j] = "";
  23685. break;
  23686. }
  23687. }
  23688. this.$forceUpdate();
  23689. },
  23690. returnCard(r, i, j) {
  23691. var a = this.sentenceList[i].addSentence.indexOf(r);
  23692. this.sentenceList[i].chooseSenList[j] = "";
  23693. this.sentenceList[i].addChangeSen[a] = r;
  23694. this.$forceUpdate();
  23695. },
  23696. // addSentenceTool() {
  23697. // this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  23698. // this.taskCount
  23699. // ].toolChoose[this.toolindex].sentenceList = this.sentenceList;
  23700. // this.sentenceList = [
  23701. // { sentenceTitle: "", addSentence: [], rightAnswer: [] },
  23702. // ];
  23703. // this.dialogVisibleSentence = false;
  23704. // },
  23705. toolsCount(a, t) {
  23706. let params = {
  23707. cid: this.id,
  23708. chid: this.courseType,
  23709. uid: this.userid,
  23710. tid: t,
  23711. count: a,
  23712. };
  23713. this.ajax
  23714. .get(this.$store.state.api + "insertToolsCount", params)
  23715. .then((res) => {
  23716. this.selectCount();
  23717. })
  23718. .catch((err) => {
  23719. console.error(err);
  23720. });
  23721. },
  23722. updateCount(c, t) {
  23723. c++;
  23724. let params = {
  23725. cid: this.id,
  23726. chid: this.courseType,
  23727. uid: this.userid,
  23728. tid: t,
  23729. count: c,
  23730. };
  23731. this.ajax
  23732. .get(this.$store.state.api + "updateToolsCount", params)
  23733. .then((res) => {
  23734. this.selectCount();
  23735. })
  23736. .catch((err) => {
  23737. console.error(err);
  23738. });
  23739. },
  23740. checkEva() {
  23741. if (this.evalua != "") {
  23742. for (var i = 0; i < this.evaJuri.length; i++) {
  23743. if (this.evalua == this.evaJuri[i].id) {
  23744. this.eTitle = this.evaJuri[i].title;
  23745. this.eJson = JSON.parse(this.evaJuri[i].content);
  23746. }
  23747. }
  23748. this.$forceUpdate();
  23749. setTimeout(() => {
  23750. this.setMindData();
  23751. }, 0);
  23752. }
  23753. },
  23754. selectEva() {
  23755. let params = {
  23756. oid: this.oid,
  23757. };
  23758. this.ajax
  23759. .get(this.$store.state.api + "selectAllEvaluation", params)
  23760. .then((res) => {
  23761. this.evaJuri = res.data[0];
  23762. })
  23763. .catch((err) => {
  23764. console.error(err);
  23765. });
  23766. },
  23767. setMindData() {
  23768. this.data.data = [];
  23769. this.data.data.push({ id: "root", isroot: true, topic: this.eTitle });
  23770. let _eJson = Object.keys(this.eJson);
  23771. let _e = this.eJson;
  23772. for (let i = 0; i < _eJson.length; i++) {
  23773. let element = _e[_eJson[i]];
  23774. this.data.data.push({
  23775. id: element.id,
  23776. parentid: "root",
  23777. topic: element.name,
  23778. });
  23779. let _eJsonc = Object.keys(element.child);
  23780. let _e2 = element.child;
  23781. for (let j = 0; j < _eJsonc.length; j++) {
  23782. let _ec = _e2[_eJsonc[j]];
  23783. this.data.data.push({
  23784. id: _ec.id,
  23785. parentid: element.id,
  23786. topic: _ec.name,
  23787. });
  23788. let _eJsonz = Object.keys(_ec.child);
  23789. let _e3 = _ec.child;
  23790. for (let z = 0; z < _eJsonz.length; z++) {
  23791. let _ez = _e3[_eJsonz[z]];
  23792. this.data.data.push({
  23793. id: _ez.id,
  23794. parentid: _ec.id,
  23795. topic: _ez.name,
  23796. });
  23797. }
  23798. }
  23799. }
  23800. this.$forceUpdate();
  23801. },
  23802. checkFileFull(type, url) {
  23803. this.fullDialogVisible = true;
  23804. this.fulltype = type;
  23805. this.fullUrl = url;
  23806. },
  23807. async checkFileFull1(t, f) {
  23808. this.fullDialogVisible = true;
  23809. if (t == 6) {
  23810. this.fulltype = 1;
  23811. this.fullUrl = JSON.parse(JSON.stringify(f));
  23812. } else if (t == 8) {
  23813. this.fulltype = 2;
  23814. this.fullUrl = f.url;
  23815. }else if (t == 15) {
  23816. this.fulltype = 4;
  23817. this.fullUrl = f.url;
  23818. } else if (t == 16) {
  23819. this.fulltype = 16;
  23820. this.fullUrl = f.url;
  23821. } else if (
  23822. t == 3 &&
  23823. f.url.split(".")[f.url.split(".").length - 1].toLocaleUpperCase() ==
  23824. "PDF"
  23825. ) {
  23826. this.fulltype = 3;
  23827. this.fullUrl = f.url;
  23828. } else if (t == 3) {
  23829. this.fulltype = 2;
  23830. let _uuurl = await this.checkLink(f.url);
  23831. console.log(_uuurl)
  23832. this.fullUrl =
  23833. "https://view.officeapps.live.com/op/view.aspx?src=" + encodeURIComponent(_uuurl);
  23834. }
  23835. this.changeSplitScreenBehavior({code:0,form:{t:t,f:f}})
  23836. },
  23837. openSname(n, id, i, uid) {
  23838. this.snameWid = id;
  23839. this.worksSName = n;
  23840. this.worksSid = uid == n ? "" : uid;
  23841. this.toolindex = i;
  23842. this.uploadCid = this.tcid ? this.tcid : this.courseDetail.juri;
  23843. if (!this.uploadCid) {
  23844. this.$message.error(
  23845. "提示:批量上传未添加班级权限,请添加班级或从班级入口进入。"
  23846. );
  23847. return;
  23848. }
  23849. this.selectUploadStudent(1);
  23850. },
  23851. updateName() {
  23852. let params = {
  23853. n: this.worksSName,
  23854. cid: this.snameWid,
  23855. };
  23856. this.ajax
  23857. .get(this.$store.state.api + "updateCourseWorksName", params)
  23858. .then((res) => {
  23859. this.$message({
  23860. message: "修改成功",
  23861. type: "success",
  23862. });
  23863. this.dialogVisibleSname = false;
  23864. this.getCourseDetail(2);
  23865. this.snameWid = "";
  23866. this.worksSName = "";
  23867. })
  23868. .catch((err) => {
  23869. console.error(err);
  23870. });
  23871. },
  23872. downloadFile2(f) {
  23873. // const loading = this.$loading.service({
  23874. // background: "rgba(255, 255, 255, 0.7)",
  23875. // target: document.body,
  23876. // text: "文件加载中...",
  23877. // });
  23878. // let url2 = f.url;
  23879. // let _url2 = "";
  23880. // if (
  23881. // url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23882. // ) {
  23883. // _url2 = url2.split(
  23884. // "https://view.officeapps.live.com/op/view.aspx?src="
  23885. // )[1];
  23886. // } else {
  23887. // _url2 = url2;
  23888. // }
  23889. // let params = {
  23890. // url: _url2,
  23891. // name: f.name,
  23892. // };
  23893. // this.ajax
  23894. // .get(this.$store.state.api + "download", params)
  23895. // .then((res) => {
  23896. // loading.close();
  23897. // let content = res.data.data.data;
  23898. // let ab = new ArrayBuffer(content.length);
  23899. // let view = new Uint8Array(ab);
  23900. // for (var i = 0; i < content.length; ++i) {
  23901. // view[i] = content[i];
  23902. // }
  23903. // let elink = document.createElement("a");
  23904. // elink.download = f.name;
  23905. // elink.style.display = "none";
  23906. // let blob = new Blob([ab], {
  23907. // type: res.data.response.headers["content-type"] + ";charset=UTF-8",
  23908. // });
  23909. // elink.href = URL.createObjectURL(blob);
  23910. // document.body.appendChild(elink);
  23911. // elink.click();
  23912. // document.body.removeChild(elink);
  23913. // })
  23914. // .catch((err) => {
  23915. // loading.close();
  23916. // console.error(err);
  23917. // });
  23918. var credentials = {
  23919. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23920. secretAccessKey: "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",
  23921. }; //秘钥形式的登录上传
  23922. window.AWS.config.update(credentials);
  23923. window.AWS.config.region = "cn-northwest-1"; //设置区域
  23924. let url2 = f.url;
  23925. let _url2 = "";
  23926. if (
  23927. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23928. ) {
  23929. _url2 = url2.split(
  23930. "https://view.officeapps.live.com/op/view.aspx?src="
  23931. )[1];
  23932. } else {
  23933. _url2 = url2;
  23934. }
  23935. let _this = this;
  23936. _this.downLoading = true
  23937. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  23938. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  23939. var params = {
  23940. Bucket: "ccrb",
  23941. Key: name
  23942. };
  23943. s3.getObject(params, function (err, data) {
  23944. _this.downLoading = false
  23945. if (err) console.log(err, err.stack); // an error occurred
  23946. else {
  23947. let url = window.URL.createObjectURL(new Blob([data.Body]));
  23948. let a = document.createElement("a");
  23949. a.name = f.name;
  23950. a.href = url;
  23951. a.download = f.name;
  23952. a.click();
  23953. console.log(data);
  23954. } // sxuccessful response
  23955. });
  23956. return;
  23957. let url = f.url;
  23958. let _url = "";
  23959. if (
  23960. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  23961. ) {
  23962. _url = url.split(
  23963. "https://view.officeapps.live.com/op/view.aspx?src="
  23964. )[1];
  23965. } else {
  23966. _url = url;
  23967. }
  23968. _this.downLoading = true
  23969. // const loading = _this.$loading.service({
  23970. // background: "rgba(255, 255, 255, 0.7)",
  23971. // target: document.body,
  23972. // text: "文件加载中...",
  23973. // });
  23974. let x = new XMLHttpRequest();
  23975. x.open("GET", _url, true);
  23976. x.responseType = "blob";
  23977. x.onload = function () {
  23978. _this.downLoading = false
  23979. // loading.close();
  23980. let url = window.URL.createObjectURL(new Blob([x.response]));
  23981. let a = document.createElement("a");
  23982. a.name = f.name;
  23983. a.href = url;
  23984. a.download = f.name;
  23985. a.click();
  23986. };
  23987. x.send();
  23988. },
  23989. downloadFile(url,uid) {
  23990. if (this.tType == 1 || this.userid == uid) {
  23991. let hz = url.substring(url.lastIndexOf(".") + 1);
  23992. if (hz == "txt" || hz == "md") {
  23993. this.lookTxt(url);
  23994. return;
  23995. }
  23996. var credentials = {
  23997. accessKeyId: "AKIATLPEDU37QV5CHLMH",
  23998. secretAccessKey: "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",
  23999. }; //秘钥形式的登录上传
  24000. window.AWS.config.update(credentials);
  24001. window.AWS.config.region = "cn-northwest-1"; //设置区域
  24002. let url2 = url;
  24003. let _url2 = "";
  24004. if (
  24005. url2.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24006. ) {
  24007. _url2 = url2.split(
  24008. "https://view.officeapps.live.com/op/view.aspx?src="
  24009. )[1];
  24010. } else {
  24011. _url2 = url2;
  24012. }
  24013. const loading2 = this.$loading.service({
  24014. background: "rgba(255, 255, 255, 0.7)",
  24015. target: document.body,
  24016. text: "文件加载中...",
  24017. });
  24018. var s3 = new window.AWS.S3({ params: { Bucket: "ccrb" } });
  24019. let name = decodeURIComponent(_url2.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1])
  24020. var params = {
  24021. Bucket: "ccrb",
  24022. Key: name
  24023. };
  24024. s3.getObject(params, function (err, data) {
  24025. loading2.close();
  24026. if (err) console.log(err, err.stack); // an error occurred
  24027. else {
  24028. let url = window.URL.createObjectURL(new Blob([data.Body]));
  24029. let a = document.createElement("a");
  24030. a.name = name;
  24031. a.href = url;
  24032. a.download = name;
  24033. a.click();
  24034. console.log(data);
  24035. } // sxuccessful response
  24036. });
  24037. }
  24038. return;
  24039. let _this = this;
  24040. let _url = "";
  24041. if (
  24042. url.indexOf("https://view.officeapps.live.com/op/view.aspx?src=") != -1
  24043. ) {
  24044. _url = url.split(
  24045. "https://view.officeapps.live.com/op/view.aspx?src="
  24046. )[1];
  24047. } else {
  24048. _url = url;
  24049. }
  24050. const x = new XMLHttpRequest();
  24051. x.open("GET", _url, true);
  24052. x.responseType = "blob";
  24053. // this.downLoading = true
  24054. const loading = _this.$loading.service({
  24055. background: "rgba(255, 255, 255, 0.7)",
  24056. target: document.body,
  24057. text: "文件加载中...",
  24058. });
  24059. // _this.$message.success("文件下载中...");
  24060. x.onload = function (e) {
  24061. this.downLoading = false
  24062. loading.close();
  24063. let content = x.response;
  24064. let elink = document.createElement("a");
  24065. elink.download = decodeURI(
  24066. _url.split("https://ccrb.s3.cn-northwest-1.amazonaws.com.cn/")[1]
  24067. );
  24068. elink.style.display = "none";
  24069. let blob = new Blob([content]);
  24070. elink.href = URL.createObjectURL(blob);
  24071. document.body.appendChild(elink);
  24072. elink.click();
  24073. document.body.removeChild(elink);
  24074. };
  24075. x.send();
  24076. },
  24077. openLine(url) {
  24078. window.open(url);
  24079. },
  24080. resize() {
  24081. if (document.getElementsByClassName("box_course").length) {
  24082. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  24083. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  24084. if (this.showType == 2 || this.showType == 3) {
  24085. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24086. document.getElementsByClassName("navBox")[0].style.height =
  24087. a - 40 + 0+ "px";
  24088. }
  24089. } else {
  24090. if (document.getElementsByClassName("navBox") && document.getElementsByClassName("navBox")[0]) {
  24091. document.getElementsByClassName("navBox")[0].style.height = a - 40 + "px";
  24092. }
  24093. }
  24094. }
  24095. this.Stbodywidth =
  24096. document.getElementsByClassName("student_body").length &&
  24097. document.getElementsByClassName("student_body")[0].offsetWidth;
  24098. },
  24099. closeDraw() {
  24100. this.bg = null;
  24101. this.drawShow = false;
  24102. },
  24103. showPicturePaint(url) {
  24104. let params = {
  24105. img: url,
  24106. };
  24107. this.ajax
  24108. .get(this.$store.state.api + "imgToBase64", params)
  24109. .then((res) => {
  24110. this.drawShow = true;
  24111. this.bg = res.data[0].img;
  24112. })
  24113. .catch((err) => {
  24114. console.error(err);
  24115. });
  24116. },
  24117. addImgDraw(base64) {
  24118. let file = { name: "批注图.png" };
  24119. let img = this.dataUrlToFile(base64, file);
  24120. this.beforeUpload1(img, 5);
  24121. },
  24122. addImgDrawImG(url) {
  24123. // console.log(url);
  24124. let params = [
  24125. {
  24126. wid: this.commentDetail.wid,
  24127. img: url,
  24128. },
  24129. ];
  24130. this.ajax
  24131. .post(this.$store.state.api + "updateCourseWorks", params)
  24132. .then((res) => {
  24133. this.$message({
  24134. message: "提交成功",
  24135. type: "success",
  24136. });
  24137. this.drawShow = false;
  24138. this.bg = "";
  24139. this.selectSWorks();
  24140. this.selectStudent();
  24141. })
  24142. .catch((err) => {
  24143. this.$message.error("提交失败");
  24144. console.error(err);
  24145. });
  24146. },
  24147. deletePicturePaint() {
  24148. this.$confirm("确定删除此批注吗?", "提示", {
  24149. confirmButtonText: "确定",
  24150. cancelButtonText: "取消",
  24151. type: "warning",
  24152. })
  24153. .then(() => {
  24154. let params = [
  24155. {
  24156. wid: this.commentDetail.wid,
  24157. img: "",
  24158. },
  24159. ];
  24160. this.ajax
  24161. .post(this.$store.state.api + "updateCourseWorks", params)
  24162. .then((res) => {
  24163. this.$message({
  24164. message: "删除成功",
  24165. type: "success",
  24166. });
  24167. this.selectSWorks();
  24168. this.selectStudent();
  24169. })
  24170. .catch((err) => {
  24171. this.$message.error("删除失败");
  24172. console.error(err);
  24173. });
  24174. })
  24175. .catch(() => {});
  24176. },
  24177. getAudioVideo(constraintsData) {
  24178. if (navigator.mediaDevices === undefined) {
  24179. navigator.mediaDevices = {};
  24180. }
  24181. if (navigator.mediaDevices.getUserMedia === undefined) {
  24182. navigator.mediaDevices.getUserMedia = function (constraints) {
  24183. // 首先,如果有getUserMedia的话,就获得它
  24184. var getUserMedia =
  24185. navigator.getUserMedia ||
  24186. navigator.webkitGetUserMedia ||
  24187. navigator.mozGetUserMedia ||
  24188. navigator.msGetUserMedia;
  24189. // 一些浏览器根本没实现它 - 那么就返回一个error到promise的reject来保持一个统一的接口
  24190. if (!getUserMedia) {
  24191. return Promise.reject({ code: 404 });
  24192. }
  24193. // 否则,为老的navigator.getUserMedia方法包裹一个Promise
  24194. return new Promise(function (resolve, reject) {
  24195. getUserMedia.call(navigator, constraints, resolve, reject);
  24196. });
  24197. };
  24198. }
  24199. return navigator.mediaDevices.getUserMedia(constraintsData);
  24200. },
  24201. /**
  24202. * 开始录制
  24203. */
  24204. startRecording(callback) {
  24205. let _function = (screenStream) => {
  24206. this.addStreamStopListener(screenStream, () => {
  24207. console.log("流停止监听");
  24208. this.stopRecording();
  24209. this.$emit("streamStop", {});
  24210. // this.stopRecording();
  24211. });
  24212. var options = {
  24213. type: "video",
  24214. mimeType: "video/webm",
  24215. disableLogs: false,
  24216. getNativeBlob: false, // enable it for longer recordings
  24217. ignoreMutedMedia: false,
  24218. };
  24219. // this.video.srcObject = screenStream;
  24220. this.recorder = RecordRTC(screenStream, options);
  24221. this.recorder.startRecording();
  24222. this.recorder.screen = screenStream;
  24223. this.videoStart = true;
  24224. // callback(true);
  24225. };
  24226. this.getAudioVideo({ audio: true })
  24227. .then((res) => {
  24228. this.captureScreen(_function, true);
  24229. console.log("已点击允许,开启成功");
  24230. })
  24231. .catch((err) => {
  24232. // console.log('浏览器不支持,请更换浏览器')
  24233. // } else {
  24234. this.captureScreen(_function, false);
  24235. console.log("请检查是否存在麦克风");
  24236. });
  24237. },
  24238. /**
  24239. * 停止录制
  24240. */
  24241. stopRecording(callback) {
  24242. this.recorder.stopRecording(() => {
  24243. // this.video.src = this.video.srcObject = null;
  24244. // this.video.src = URL.createObjectURL(this.recorder.getBlob());
  24245. const url = URL.createObjectURL(this.recorder.getBlob());
  24246. const a = document.createElement("a"); //this.fileName+
  24247. let videoFile = new File(
  24248. [this.recorder.getBlob()],
  24249. this.courseDetail.title + "录屏.mp4",
  24250. {
  24251. type: "video/mp4",
  24252. }
  24253. );
  24254. let downloadUrl = URL.createObjectURL(videoFile);
  24255. if(this.$refs.classRoomHelperRef){
  24256. this.$refs.classRoomHelperRef.checkUploadFile(videoFile)
  24257. }
  24258. document.body.appendChild(a);
  24259. a.style.display = "none";
  24260. a.href = url;
  24261. a.download = this.courseDetail.title + "录屏.mp4"; //this.fileName +
  24262. a.click();
  24263. this.recorder.screen.stop();
  24264. this.recorder.destroy();
  24265. this.recorder = null;
  24266. this.videoStart = false;
  24267. // callback(false);
  24268. });
  24269. },
  24270. //初始化
  24271. captureScreen(callback, type) {
  24272. if (navigator.getDisplayMedia) {
  24273. //录制结束,文件下载
  24274. navigator
  24275. .getDisplayMedia({
  24276. video: true,
  24277. })
  24278. .then((screenStream) => {
  24279. if (type) {
  24280. navigator.mediaDevices
  24281. .getUserMedia({ audio: true })
  24282. .then((mic) => {
  24283. screenStream.addTrack(mic.getTracks()[0]);
  24284. callback(screenStream);
  24285. });
  24286. } else {
  24287. callback(screenStream);
  24288. }
  24289. })
  24290. .catch(function (error) {
  24291. console.log("error", error);
  24292. });
  24293. } else if (navigator.mediaDevices.getDisplayMedia) {
  24294. navigator.mediaDevices
  24295. .getDisplayMedia({
  24296. video: true,
  24297. })
  24298. .then((screenStream) => {
  24299. if (type) {
  24300. navigator.mediaDevices
  24301. .getUserMedia({ audio: true })
  24302. .then((mic) => {
  24303. screenStream.addTrack(mic.getTracks()[0]);
  24304. callback(screenStream);
  24305. });
  24306. } else {
  24307. callback(screenStream);
  24308. }
  24309. })
  24310. .catch(function (error) {
  24311. console.log("error", error);
  24312. });
  24313. } else {
  24314. var error = "getDisplayMedia API are not supported in this browser.";
  24315. console.log("error", error);
  24316. alert(error);
  24317. }
  24318. },
  24319. //流监听
  24320. addStreamStopListener(stream, callback) {
  24321. stream.addEventListener(
  24322. "ended",
  24323. function () {
  24324. callback();
  24325. callback = function () {};
  24326. },
  24327. false
  24328. );
  24329. stream.addEventListener(
  24330. "inactive",
  24331. function () {
  24332. callback();
  24333. callback = function () {};
  24334. },
  24335. false
  24336. );
  24337. stream.getTracks().forEach(function (track) {
  24338. track.addEventListener(
  24339. "ended",
  24340. function () {
  24341. callback();
  24342. callback = function () {};
  24343. },
  24344. false
  24345. );
  24346. track.addEventListener(
  24347. "inactive",
  24348. function () {
  24349. callback();
  24350. callback = function () {};
  24351. },
  24352. false
  24353. );
  24354. });
  24355. },
  24356. updateGroup() {
  24357. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24358. this.dialogVisibleGroup2 = true;
  24359. },
  24360. numberPan() {
  24361. if (
  24362. /[^\d]/.test(this.groupJson.number) ||
  24363. this.groupJson.number < 2 ||
  24364. this.groupJson.number > 10
  24365. ) {
  24366. this.$message.error("请输入2-10的数字");
  24367. this.groupJson.number = "";
  24368. }
  24369. },
  24370. updateGroupJson() {
  24371. for (var i = 0; i < this.groupStudentUid[this.toolindex].length; i++) {
  24372. if (
  24373. this.groupStudentUid[this.toolindex][i].length >
  24374. this.groupJson2.number
  24375. ) {
  24376. this.$message.error("已经有小组比你设置的人数多,请重新设置");
  24377. return;
  24378. }
  24379. }
  24380. this.groupJson = JSON.parse(JSON.stringify(this.groupJson2));
  24381. this.islock = this.groupJson.islock == 1 ? true : false;
  24382. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[
  24383. this.taskCount
  24384. ].toolChoose[this.toolindex].groupJson = this.groupJson;
  24385. let params = [
  24386. {
  24387. cid: this.id,
  24388. chapters: JSON.stringify(this.chapInfoList),
  24389. uid: this.userid,
  24390. unitIndex: this.courseType,
  24391. },
  24392. ];
  24393. this.ajax
  24394. .post(this.$store.state.api + "updateWorkNew4", params)
  24395. .then((res) => {
  24396. this.$message.success("设置成功");
  24397. this.getCourseDetail(2);
  24398. this.dialogVisibleGroup2 = false;
  24399. this.groupJson2 = {};
  24400. this.$forceUpdate();
  24401. })
  24402. .catch((err) => {
  24403. this.$message.error("网络不佳");
  24404. console.error(err);
  24405. });
  24406. },
  24407. lockChair() {
  24408. this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
  24409. this.groupJson2.islock = this.groupJson2.islock == 1 ? 2 : 1;
  24410. this.updateGroupJson();
  24411. },
  24412. selectGroup(index) {
  24413. this.getCourseDetail(2, index);
  24414. },
  24415. joinGroup(index) {
  24416. if (this.groupJson.islock == 2) {
  24417. this.$message.error("位置已被锁定,无法加入");
  24418. return;
  24419. }
  24420. if (
  24421. this.groupStudent[this.toolindex][index].length >
  24422. this.groupJson.number ||
  24423. this.groupStudent[this.toolindex][index].length == this.groupJson.number
  24424. ) {
  24425. this.$message.error("位置已满,无法加入");
  24426. return;
  24427. }
  24428. let params = [
  24429. {
  24430. cid: this.id,
  24431. stage: this.courseType,
  24432. task: this.taskCount,
  24433. tool: this.toolindex,
  24434. g: index,
  24435. uid: this.userid,
  24436. },
  24437. ];
  24438. this.ajax
  24439. .post(this.$store.state.api + "joinGroup", params)
  24440. .then((res) => {
  24441. this.$message.success("加入成功");
  24442. this.getCourseDetail(2);
  24443. })
  24444. .catch((err) => {
  24445. this.$message.error("网络不佳");
  24446. console.error(err);
  24447. });
  24448. },
  24449. exitGroup(id) {
  24450. if (this.groupJson.islock == 2) {
  24451. this.$message.error("位置已被锁定,无法退出");
  24452. return;
  24453. }
  24454. let params = [
  24455. {
  24456. gid: id,
  24457. },
  24458. ];
  24459. this.ajax
  24460. .post(this.$store.state.api + "exitGroup", params)
  24461. .then((res) => {
  24462. this.$message.success("退出成功");
  24463. this.getCourseDetail(2);
  24464. })
  24465. .catch((err) => {
  24466. this.$message.error("网络不佳");
  24467. console.error(err);
  24468. });
  24469. },
  24470. groupUpload(index, task, gindex) {
  24471. this.taskCount = task;
  24472. this.toolindex = index;
  24473. this.groupIndex = gindex;
  24474. this.dialogVisibleGroupWork = true;
  24475. },
  24476. updateGroupChair(user) {
  24477. this.updateGroupArray = this.groupJson.group.filter((el, index) => {
  24478. el.label = index;
  24479. return index != user.group;
  24480. });
  24481. this.updateGroupUser = user;
  24482. this.dialogVisibleUpdateGroup = true;
  24483. },
  24484. updateChair() {
  24485. if (
  24486. this.groupStudent[this.toolindex][this.checkChair].length >
  24487. this.groupJson.number ||
  24488. this.groupStudent[this.toolindex][this.checkChair].length ==
  24489. this.groupJson.number
  24490. ) {
  24491. this.$message.error("位置已满,无法加入");
  24492. return;
  24493. }
  24494. let params = [
  24495. {
  24496. cid: this.id,
  24497. stage: this.courseType,
  24498. task: this.taskCount,
  24499. tool: this.toolindex,
  24500. g: this.checkChair,
  24501. uid: this.updateGroupUser.userid,
  24502. },
  24503. ];
  24504. this.ajax
  24505. .post(this.$store.state.api + "joinGroup", params)
  24506. .then((res) => {
  24507. this.$message.success("修改成功");
  24508. this.updateGroupUser = {};
  24509. this.checkChair = "";
  24510. this.updateGroupArray = {};
  24511. this.dialogVisibleUpdateGroup = false;
  24512. this.getCourseDetail(2);
  24513. })
  24514. .catch((err) => {
  24515. this.$message.error("网络不佳");
  24516. console.error(err);
  24517. });
  24518. },
  24519. deleteGroupChair(gindex) {
  24520. this.checkDeleteGroup = [];
  24521. this.deleteGroupUser = JSON.parse(
  24522. JSON.stringify(this.groupStudent[this.toolindex][gindex])
  24523. );
  24524. this.deleteGroupArray = this.groupJson.group[gindex];
  24525. this.groupIndex = gindex;
  24526. this.dialogVisibleDeleteGroup = true;
  24527. },
  24528. async deleteChair() {
  24529. for (let i = 0; i < this.checkDeleteGroup.length; i++) {
  24530. const gid =
  24531. this.groupStudent[this.toolindex][this.groupIndex][
  24532. this.groupStudentUid[this.toolindex][this.groupIndex].indexOf(
  24533. this.checkDeleteGroup[i]
  24534. )
  24535. ];
  24536. let params = [
  24537. {
  24538. gid: gid.id,
  24539. },
  24540. ];
  24541. var a = await this.deleteChairA(params);
  24542. if (i == this.checkDeleteGroup.length - 1) {
  24543. this.$message.success("退出成功");
  24544. this.dialogVisibleDeleteGroup = false;
  24545. this.deleteGroupUser = [];
  24546. this.deleteGroupArray = {};
  24547. this.groupIndex = "";
  24548. this.checkDeleteGroup = [];
  24549. this.getCourseDetail(2);
  24550. }
  24551. }
  24552. },
  24553. deleteChairA(params) {
  24554. return new Promise((resolve, reject) => {
  24555. this.ajax
  24556. .post(this.$store.state.api + "exitGroup", params)
  24557. .then((res) => {
  24558. resolve(1);
  24559. })
  24560. .catch((err) => {
  24561. this.$message.error("网络不佳");
  24562. console.error(err);
  24563. });
  24564. });
  24565. },
  24566. contract(i) {
  24567. if (this.isCloseList[i].isClose == 0) {
  24568. this.isCloseList[i].isClose = 1;
  24569. } else {
  24570. this.isCloseList[i].isClose = 0;
  24571. }
  24572. this.$forceUpdate();
  24573. },
  24574. openWordCloud(toolindex) {
  24575. this.wordCloudData = '';
  24576. let array = [];
  24577. for (var i = 0; i < this.worksStudent[toolindex].length; i++) {
  24578. let works = JSON.parse(this.worksStudent[toolindex][i].works)[0].answer;
  24579. array.push({ name: works });
  24580. }
  24581. if (this.isGroup) {
  24582. for (var i = 0; i < this.courseGroup.group.length; i++) {
  24583. let works = this.courseGroup.group[i].works[toolindex];
  24584. for (var j = 0; j < works.length; j++) {
  24585. let answer = JSON.parse(works[j].works)[0].answer;
  24586. array.push({ name: answer });
  24587. }
  24588. }
  24589. }
  24590. let _result = ''
  24591. array.forEach(e=>{
  24592. _result +=e.name+','
  24593. })
  24594. this.wordCloudData = _result;
  24595. this.dialogVisibleWordCloud = true;
  24596. this.wordCloudKey += 1;
  24597. },
  24598. uploadWorks(i) {
  24599. this.$confirm("确定导出作业吗?", "提示", {
  24600. confirmButtonText: "确定",
  24601. cancelButtonText: "取消",
  24602. type: "warning",
  24603. })
  24604. .then(() => {
  24605. const loading = this.$loading.service({
  24606. background: "rgba(255, 255, 255, 0.7)",
  24607. target: document.body,
  24608. text: "文件加载中...",
  24609. });
  24610. const _worksStudent = this.worksStudent;
  24611. let url = [];
  24612. var counts = {};
  24613. for (var l = 0; l < _worksStudent[i].length; l++) {
  24614. var item = _worksStudent[i][l];
  24615. var name = item.sName;
  24616. if (!counts.hasOwnProperty(name)) {
  24617. counts[name] = 0;
  24618. } else {
  24619. counts[name]++;
  24620. }
  24621. if (counts[name] > 0) {
  24622. item.sName += " (" + counts[name] + ")";
  24623. }
  24624. }
  24625. for (var l = 0; l < _worksStudent[i].length; l++) {
  24626. var item = _worksStudent[i][l];
  24627. if (
  24628. item.works.indexOf(
  24629. "https://ccrb.s3.cn-northwest-1.amazonaws.com.cn"
  24630. ) !== -1 &&
  24631. item.works.indexOf("img") === -1
  24632. ) {
  24633. url.push({ name: item.sName, url: item.works });
  24634. }
  24635. }
  24636. // var toolList = [
  24637. // { name: "电子白板", tool: 1 },
  24638. // { name: "思维导图", tool: 3 },
  24639. // { name: "协同文档", tool: 6 },
  24640. // { name: "思维网格", tool: 7 },
  24641. // { name: "素材库", tool: 8 },
  24642. // { name: "学习资料", tool: 17 },
  24643. // { name: "便签", tool: 2 },
  24644. // { name: "问卷调查", tool: 4 },
  24645. // { name: "选择题", tool: 45 },
  24646. // { name: "倒计时", tool: 10 },
  24647. // { name: "问答", tool: 15 },
  24648. // { name: "课程设计", tool: 26 },
  24649. // { name: "训练服务器", tool: 18 },
  24650. // { name: "作业提交", tool: 16 },
  24651. // { name: "批量上传", tool: 50 },
  24652. // { name: "AIoT Blockly", tool: 21 },
  24653. // { name: "AI Python", tool: 23 },
  24654. // { name: "AI Blockly", tool: 24 },
  24655. // { name: "目标管理", tool: 25 },
  24656. // { name: "数学画板", tool: 31 },
  24657. // { name: "翻译", tool: 28 },
  24658. // { name: "魔盒识字", tool: 37 },
  24659. // { name: "数学画板", tool: 31 },
  24660. // { name: "24点", tool: 38 },
  24661. // { name: "GeoGebra", tool: 39 },
  24662. // { name: "源码编辑", tool: 32 },
  24663. // { name: "个人评价", tool: 40 },
  24664. // { name: "选择匹配", tool: 41 },
  24665. // { name: "汉字宫", tool: 44 },
  24666. // { name: "排序", tool: 47 },
  24667. // { name: "表格", tool: 48 },
  24668. // { name: "文档", tool: 52 },
  24669. // { name: "学生分组", tool: 49 },
  24670. // { name: "CocoPi", tool: 57 },
  24671. // { name: "模拟驾驶", tool: 58 },
  24672. // { name: "路径搜索", tool: 59 },
  24673. // { name: "深度学习", tool: 60 },
  24674. // { name: "全历史", tool: 61 },
  24675. // { name: "交互视频", tool: 62 },
  24676. // { name: "海龟编程", tool: 63 },
  24677. // { name: "挑人", tool: 65 },
  24678. // { name: "公式编辑", tool: 66 },
  24679. // { name: "分子结构", tool: 67 },
  24680. // { name: "时间轴", tool: 68 },
  24681. // ];
  24682. // var toolName = "";
  24683. // for(var w = 0;w<toolList.length;w++){
  24684. // if(this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].toolChoose[i].tool[0] == toolList[w].tool){
  24685. // toolName = toolList[w].name;
  24686. // }
  24687. // }
  24688. console.log(url);
  24689. this.downLoadAll(url, loading);
  24690. })
  24691. .catch(() => {});
  24692. },
  24693. downLoadAll(url, loading) {
  24694. const data = url; // 需要下载打包的路径, 可以是本地相对路径, 也可以是跨域的全路径
  24695. const zip = new JSZip();
  24696. const cache = {};
  24697. const promises = [];
  24698. data.forEach((item) => {
  24699. const promise = getFile(item.url).then((data) => {
  24700. if (data.data != 1) {
  24701. // 下载文件, 并存成ArrayBuffer对象
  24702. const file_name =
  24703. item.name +
  24704. "." +
  24705. item.url.split(".")[item.url.split(".").length - 1]; // 获取文件名
  24706. zip.file(file_name, data.data, { binary: true }); // 逐个添加文件
  24707. cache[file_name] = data.data;
  24708. }
  24709. });
  24710. promises.push(promise);
  24711. });
  24712. Promise.all(promises).then(() => {
  24713. zip.generateAsync({ type: "blob" }).then((content) => {
  24714. // 生成二进制流
  24715. FileSaver.saveAs(
  24716. content,
  24717. this.courseDetail.title + "-" + "作业提交工具.zip"
  24718. ); // 利用file-saver保存文件 自定义文件名
  24719. setTimeout(() => {
  24720. loading.close();
  24721. }, 2000);
  24722. });
  24723. });
  24724. },
  24725. pickStudent(stu) {
  24726. if (this.isPickStudent.indexOf(stu.userid) !== -1) {
  24727. return;
  24728. }
  24729. this.$confirm(`是否让${stu.name}同学回答问题?`, "提示", {
  24730. confirmButtonText: "确定",
  24731. cancelButtonText: "取消",
  24732. type: "warning",
  24733. })
  24734. .then(() => {
  24735. let params = [
  24736. {
  24737. uid: stu.userid,
  24738. cid: this.id,
  24739. stage: this.courseType,
  24740. task: this.taskCount,
  24741. tool: this.toolindex,
  24742. },
  24743. ];
  24744. this.ajax
  24745. .post(this.$store.state.api + "updateCoursePick", params)
  24746. .then((res) => {
  24747. this.$message.success("操作成功");
  24748. this.getPick();
  24749. })
  24750. .catch((err) => {
  24751. this.$message.error("网络不佳");
  24752. console.error(err);
  24753. });
  24754. })
  24755. .catch(() => {});
  24756. },
  24757. selectUser(){
  24758. let params = {
  24759. userid: this.userid,
  24760. };
  24761. this.ajax
  24762. .get(this.$store.state.api + "selectUser", params)
  24763. .then((res) => {
  24764. this.userMes = res.data[0];
  24765. })
  24766. .catch((err) => {
  24767. console.error(err);
  24768. });
  24769. },
  24770. setEngText(i){
  24771. this.newEngIndex = i;
  24772. this.$forceUpdate();
  24773. },
  24774. addCorrect(){
  24775. this.$confirm("你确定提交批改嘛?", "提示", {
  24776. confirmButtonText: "确定",
  24777. showCancelButton: false,
  24778. closeOnClickModal: false,
  24779. type: "warning",
  24780. })
  24781. .then(() => {
  24782. let params = {
  24783. cid: this.id,
  24784. s: parseInt(this.courseType),
  24785. t: this.taskCount,
  24786. tool: this.toolindex,
  24787. wid: this.engWid,
  24788. c: this.userid,
  24789. 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) : "",
  24790. };
  24791. this.ajax
  24792. .get(this.$store.state.api + "addEngC", params)
  24793. .then((res) => {
  24794. this.$message.success("提交成功");
  24795. this.engUpdateDialogVisible = false;
  24796. })
  24797. .catch((err) => {
  24798. console.error(err);
  24799. });
  24800. })
  24801. .catch(() => {});
  24802. },
  24803. selectEngC(id,z){
  24804. let params = {
  24805. workid: id,
  24806. };
  24807. this.ajax
  24808. .get(this.$store.state.api + "selectEngC", params)
  24809. .then((res) => {
  24810. if(res.data[0].length == 0){
  24811. this.newEnglishList.engTitle = z.engTitle;
  24812. this.newEnglishList.engText = z.engText;
  24813. }else{
  24814. var a = res.data[0];
  24815. var ppp = JSON.parse(JSON.stringify(res.data[0]));
  24816. if(this.userMes[0].type == 2){
  24817. var snum = 0;
  24818. for(var i = 0;i<a.length;i++){
  24819. if(this.userMes[0].userid == a[i].correct){
  24820. this.newEnglishList = JSON.parse(a[i].cWork);
  24821. snum = 1;
  24822. }
  24823. }
  24824. if(snum == 0){
  24825. this.newEnglishList = { engTitle:"",engText:"" };
  24826. this.newEnglishList.engTitle = z.engTitle;
  24827. this.newEnglishList.engText = z.engText;
  24828. }
  24829. }else if(this.userMes[0].type == 1){
  24830. var num = 0;
  24831. for(var w= 0;w<a.length;w++){
  24832. if(this.userMes[0].userid == a[w].correct){
  24833. num = 1;
  24834. }
  24835. }
  24836. if(num == 0){
  24837. this.isNoUserid = true;
  24838. var c = JSON.parse(JSON.stringify(z));
  24839. this.oldEnglishJson1 = c;
  24840. }else{
  24841. this.isNoUserid = false;
  24842. }
  24843. var b = a.sort((item, index) => {
  24844. console.log(item)
  24845. if (item.correct === this.userMes[0].userid) {
  24846. return -1; // 将a移到前面
  24847. } else if (index.correct === this.userMes[0].userid) {
  24848. return 1; // 将b移到前面
  24849. } else {
  24850. return 0; // 保持默认顺序
  24851. }
  24852. });
  24853. for(var p = 0;p<b.length;p++){
  24854. for(var y = 0;y<ppp.length;y++){
  24855. if(b[p].id == ppp[y].id){
  24856. b[p].cWork = JSON.parse(ppp[y].cWork);
  24857. break
  24858. }
  24859. }
  24860. }
  24861. this.newEnglishList1 = b;
  24862. }
  24863. }
  24864. this.greyType = false;
  24865. setTimeout(() => {
  24866. this.topHeight = document.querySelectorAll(".engUpTop")[0].offsetHeight;
  24867. if(this.newEnglishList1.length > 0){
  24868. if(this.isNoUserid == true){
  24869. this.engListLength = this.newEnglishList1.length + 1;
  24870. this.newEngIndex = -1;
  24871. }else{
  24872. this.engListLength = this.newEnglishList1.length;
  24873. this.newEngIndex = 0;
  24874. }
  24875. }
  24876. if(this.userMes[0].type == 2){
  24877. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24878. }else if(this.newEngIndex == -1 && this.isNoUserid == true && this.newEnglishList1.length){
  24879. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.oldEnglishJson1.engText);
  24880. }else if(this.newEngIndex == -1){
  24881. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList.engText);
  24882. }else if(this.newEngIndex > -1 && this.newEnglishList1.length > 0){
  24883. this.correctWord = Diff.diffWordsWithSpace(this.oldEnglishJson.engText,this.newEnglishList1[this.newEngIndex].cWork.engText);
  24884. }
  24885. }, 500);
  24886. this.engUpdateDialogVisible = true;
  24887. this.$forceUpdate();
  24888. })
  24889. .catch((err) => {
  24890. console.error(err);
  24891. });
  24892. },
  24893. getPick() {
  24894. if(this.getPickLoading) return
  24895. this.getPickLoading = true
  24896. let params = {
  24897. cid: this.id,
  24898. };
  24899. this.ajax
  24900. .get(this.$store.state.api + "getPick", params)
  24901. .then((res) => {
  24902. let array = [];
  24903. for (var i = 0; i < res.data[0].length; i++) {
  24904. array.push(res.data[0][i].userid);
  24905. }
  24906. this.isPickStudent = array;
  24907. if (array.indexOf(this.userid) !== -1) {
  24908. this.$confirm("你被老师选到啦!", "提示", {
  24909. confirmButtonText: "确定",
  24910. showCancelButton: false,
  24911. closeOnClickModal: false,
  24912. type: "warning",
  24913. })
  24914. .then(() => {
  24915. let pa = [
  24916. {
  24917. uid: this.userid,
  24918. cid: this.id,
  24919. },
  24920. ];
  24921. this.ajax
  24922. .post(this.$store.state.api + "deletePick", pa)
  24923. .then((res) => {
  24924. this.getPick();
  24925. })
  24926. .catch((err) => {
  24927. this.$message.error("网络不佳");
  24928. console.error(err);
  24929. });
  24930. })
  24931. .catch(() => {});
  24932. }
  24933. this.getPickLoading = false
  24934. })
  24935. .catch((err) => {
  24936. this.getPickLoading = false
  24937. this.$message.error("网络不佳");
  24938. console.error(err);
  24939. });
  24940. },
  24941. foldEva() {
  24942. if (this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2) {
  24943. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = false;
  24944. } else {
  24945. this.chapInfoList[this.courseType].chapterInfo[0].taskJson[this.taskCount].isEvaFold2 = true;
  24946. setTimeout(() => {
  24947. this.checkEva();
  24948. setTimeout(() => {
  24949. this.checkEva();
  24950. }, 500);
  24951. }, 0);
  24952. }
  24953. this.$forceUpdate();
  24954. },
  24955. panToolHeight(tool) {
  24956. var _tool = document.querySelectorAll('#'+tool)[0]
  24957. var _toolA = _tool ? _tool.offsetHeight : 0
  24958. var _toolC = 0
  24959. var _toolC = _tool && _tool.children && _tool.children[0] ? _tool.children[0].offsetHeight + 50 : 0
  24960. let boolean2 = (_toolA > _toolC) ? true : false
  24961. this.isCloseList[tool.split('-')[1]].isCloseBoolean = boolean2
  24962. this.$forceUpdate();
  24963. },
  24964. async checkLink(url) {
  24965. // console.log(url)
  24966. let _url = url
  24967. try {
  24968. const response = await fetch(url);
  24969. if(!response.ok){
  24970. _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]))
  24971. }
  24972. // console.log(response.ok)
  24973. } catch (error) {
  24974. console.error('Error checking link:', error);
  24975. // console.log(false)
  24976. _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]))
  24977. }
  24978. // console.log(_url)
  24979. return _url
  24980. },
  24981. getScoreList(){
  24982. let params = {
  24983. cid: this.id,
  24984. };
  24985. this.ajax
  24986. .get(this.$store.state.api + "selectTestCourseByCid", params)
  24987. .then((res) => {
  24988. let result = res.data;
  24989. this.scoreList.datalist = result[0];
  24990. this.scoreList.isScoreList = result[1];
  24991. })
  24992. .catch((err) => {
  24993. console.error(err);
  24994. });
  24995. },
  24996. setClassRoomHelperWidth(width){
  24997. this.classRoomHelperWidth = width
  24998. },
  24999. openChoseWorksDetailDialog(tooC, toolIndex, taskCount,tooc) {
  25000. this.$refs.choseWorksDetailDialogRef.open({
  25001. toolType:tooc,
  25002. tType: this.tType,
  25003. toolIndex: toolIndex
  25004. });
  25005. this.changeSplitScreenBehavior({
  25006. code: 1,
  25007. form: {
  25008. toolType:tooc,
  25009. toolIndex: toolIndex,
  25010. courseType: this.courseType,
  25011. taskCount: this.taskCount,
  25012. type: 0
  25013. }
  25014. });
  25015. },
  25016. openStatisticalAnalysis(tooC, toolIndex, taskCount) {
  25017. this.$refs.statisticalAnalysisRef.open({
  25018. worksStudent: this.worksStudent[toolIndex],
  25019. tType: this.tType,
  25020. toolIndex: toolIndex
  25021. });
  25022. this.changeSplitScreenBehavior({
  25023. code: 2,
  25024. form: {
  25025. toolType:4,
  25026. courseType: this.courseType,
  25027. taskCount: this.taskCount,
  25028. toolIndex: toolIndex,
  25029. type: 0
  25030. }
  25031. });
  25032. },
  25033. statisticalAnalysisRefresh(toolIndex) {
  25034. this.$refs.statisticalAnalysisRef.refreshData({
  25035. worksStudent: this.worksStudent[toolIndex],
  25036. tType: this.tType,
  25037. toolIndex: toolIndex
  25038. });
  25039. },
  25040. async splitScreenBehavior(type = 0) {
  25041. // return;
  25042. if (this.splitScreenData.loading)
  25043. return this.$message.info("操作过快,请稍等");
  25044. if (type == 0) {
  25045. //关闭分屏
  25046. this.splitScreenData.isOpen = false;
  25047. // this.splitScreenData.userId = "";
  25048. // this.splitScreenData.uid = "";
  25049. this.splitScreenData.behavior = null;
  25050. await this.updateSplitScreenData(1);
  25051. this.$message.success("已关闭分屏模式");
  25052. this.studentFreePreview(false);
  25053. this.OpenJobPreview(false);
  25054. // this.followingMode(false);
  25055. } else if (type == 1) {
  25056. //开启分屏
  25057. this.splitScreenData.isOpen = true;
  25058. this.splitScreenData.userId = this.userid;
  25059. this.splitScreenData.uid = this.splitScreenData.myUid;
  25060. this.splitScreenData.behavior = null;
  25061. let status = await this.updateSplitScreenData(0);
  25062. this.changeSplitScreenBehavior({form:{}})
  25063. if (status == 1) {
  25064. this.$message.success("已开启分屏");
  25065. this.studentFreePreview(false);
  25066. this.OpenJobPreview(true);
  25067. // this.followingMode(true);
  25068. } else {
  25069. this.splitScreenData.isOpen = false;
  25070. this.splitScreenData.userId = "";
  25071. this.splitScreenData.uid = "";
  25072. this.splitScreenData.behavior = null;
  25073. this.$message.success("分屏开启失败");
  25074. }
  25075. }
  25076. },
  25077. enterFullScreen() {
  25078. let element = document.documentElement;
  25079. if (element.requestFullscreen) {
  25080. element.requestFullscreen();
  25081. } else if (element.mozRequestFullScreen) { /* Firefox */
  25082. element.mozRequestFullScreen();
  25083. } else if (element.webkitRequestFullscreen) { /* Chrome, Safari & Opera */
  25084. element.webkitRequestFullscreen();
  25085. } else if (element.msRequestFullscreen) { /* IE/Edge */
  25086. element.msRequestFullscreen();
  25087. }
  25088. },
  25089. exitFullScreen() {
  25090. if (document.exitFullscreen) {
  25091. document.exitFullscreen();
  25092. } else if (document.mozCancelFullScreen) { /* Firefox */
  25093. document.mozCancelFullScreen();
  25094. } else if (document.webkitExitFullscreen) { /* Chrome, Safari and Opera */
  25095. document.webkitExitFullscreen();
  25096. } else if (document.msExitFullscreen) { /* IE/Edge */
  25097. document.msExitFullscreen();
  25098. }
  25099. },
  25100. confirmOpen(){
  25101. this.splitScreenData.isOpen = true;
  25102. this.splitScreenData.uid = this.confirmOpenDigData.uid;
  25103. this.splitScreenData.userId = this.confirmOpenDigData.userId;
  25104. this.splitScreenData.behavior = this.confirmOpenDigData.behavior;
  25105. this.confirmOpenDig = false
  25106. if (!document.fullscreenElement) {
  25107. this.enterFullScreen();
  25108. }
  25109. // if (this.timer2) {
  25110. // clearInterval(this.timer2);
  25111. // this.timer2 = null;
  25112. // }
  25113. // this.timer2 = setInterval(()=> {
  25114. // this.getSplitScreenData();//获取分屏数据
  25115. // }, 1000);
  25116. this.$message.success("分屏模式已开启");
  25117. },
  25118. getSplitScreenData() {
  25119. // return;
  25120. // if (this.tType != 1) return;
  25121. if(this.getSplitScreenDataLoading) return
  25122. this.getSplitScreenDataLoading = true
  25123. let params = {
  25124. cid: this.id
  25125. };
  25126. this.ajax
  25127. .get(this.$store.state.api + "select_courseSplitScreenData", params)
  25128. .then(async res => {
  25129. let data = res.data[0][0]["splitScreenData"];
  25130. console.log("获取了分屏数:", data);
  25131. if (data) {
  25132. data = JSON.parse(data);
  25133. if (
  25134. !this.splitScreenData.isOpen &&
  25135. data.isOpen &&
  25136. this.splitScreenData.myUid == data.uid
  25137. ) {
  25138. this.splitScreenData.isOpen = false;
  25139. this.splitScreenData.userId = "";
  25140. this.splitScreenData.uid = "";
  25141. this.splitScreenData.behavior = null;
  25142. await this.updateSplitScreenData(1);
  25143. } else if (!this.splitScreenData.isOpen && data.isOpen) {
  25144. this.confirmOpenDig = true
  25145. this.confirmOpenDigData = data
  25146. } else if (this.splitScreenData.isOpen && !data.isOpen) {
  25147. this.splitScreenData.isOpen = false;
  25148. this.splitScreenData.userId = "";
  25149. this.splitScreenData.uid = "";
  25150. this.splitScreenData.behavior = null;
  25151. this.$message.error("已结束分屏模式");
  25152. } else if (this.splitScreenData.isOpen && data.isOpen) {
  25153. this.splitScreenData.isOpen = true;
  25154. this.splitScreenData.uid = data.uid;
  25155. this.splitScreenData.userId = data.userId;
  25156. this.splitScreenData.behavior = data.behavior;
  25157. }
  25158. this.doSplitScreenBehavior();
  25159. } else {
  25160. if (this.splitScreenData.isOpen) {
  25161. this.splitScreenData.isOpen = false;
  25162. this.splitScreenData.userId = "";
  25163. this.splitScreenData.uid = "";
  25164. this.splitScreenData.behavior = null;
  25165. this.$message.error("已结束分屏模式");
  25166. // if (this.timer2) {
  25167. // clearInterval(this.timer2);
  25168. // this.timer2 = null;
  25169. // }
  25170. // this.timer2 = setInterval(()=> {
  25171. // this.getSplitScreenData();//获取分屏数据
  25172. // }, 5000);
  25173. this.$confirm("教师已结束分屏,确定后自由预览。", "提示", {
  25174. confirmButtonText: '确定', //确认按钮的文字
  25175. showCancelButton: false, //是否显示取消按钮
  25176. showClose: false, //是否显示关闭按钮
  25177. closeOnClickModal: false, //是否可以通过点击空白处关闭弹窗
  25178. type: "warning",
  25179. })
  25180. .then(() => {
  25181. if (document.fullscreenElement) {
  25182. this.exitFullScreen();
  25183. }
  25184. })
  25185. .catch(() => {});
  25186. }
  25187. }
  25188. this.getSplitScreenDataLoading = false
  25189. })
  25190. .catch(e => {
  25191. this.getSplitScreenDataLoading = false
  25192. console.log("获取分屏数出错:", e);
  25193. });
  25194. },
  25195. doSplitScreenBehavior() {
  25196. if (
  25197. this.splitScreenData.isOpen &&
  25198. this.splitScreenData.uid != this.splitScreenData.myUid
  25199. ) {
  25200. let behavior = this.splitScreenData.behavior;
  25201. if (behavior) {
  25202. if (behavior.code === 99) {
  25203. //初始化
  25204. this.fullDialogVisible = false;
  25205. if(this.$refs.choseWorksDetailDialogRef.show){
  25206. this.$refs.choseWorksDetailDialogRef.close();
  25207. }
  25208. if(this.$refs.statisticalAnalysisRef.show){
  25209. this.$refs.statisticalAnalysisRef.close();
  25210. }
  25211. }
  25212. if (behavior.code === 0) {
  25213. //开启内容列表弹窗
  25214. this.checkFileFull1(behavior.form.t, behavior.form.f);
  25215. }else{
  25216. this.fullDialogVisible = false;
  25217. }
  25218. if (behavior.code === 1) {
  25219. //关于选择题的作业详细的操作
  25220. // toolIndex:toolIndex,courseType:this.courseType,taskCount:this.taskCount,type:0
  25221. if(this.courseType!==behavior.form.courseType || this.taskCount!==behavior.form.taskCount){
  25222. this.courseType = behavior.form.courseType;
  25223. this.taskCount = behavior.form.taskCount;
  25224. }
  25225. this.$nextTick(() => {
  25226. if (this.$refs.choseWorksDetailDialogRef.show) {
  25227. //已经打开了
  25228. this.$refs.choseWorksDetailDialogRef.splitScreenFn({toolType:behavior.form.toolType,type:behavior.form.type,showStatisticsType:behavior.form.showStatisticsType,lookWorks:behavior.form.lookWorks})
  25229. } else {
  25230. this.$refs.choseWorksDetailDialogRef.open({toolType:behavior.form.toolType,toolIndex:behavior.form.toolIndex,tType: this.tType,lookWorks:behavior.form.lookWorks})
  25231. }
  25232. });
  25233. }else{
  25234. this.$refs.choseWorksDetailDialogRef.close()
  25235. }
  25236. if(behavior.code === 2){
  25237. if(this.$refs.statisticalAnalysisRef.show){
  25238. this.$refs.statisticalAnalysisRef.splitScreenFn({type:behavior.form.type})
  25239. }else{
  25240. this.$refs.statisticalAnalysisRef.open({
  25241. worksStudent: this.worksStudent[behavior.form.toolIndex],
  25242. tType: this.tType,
  25243. toolIndex: behavior.form.toolIndex
  25244. });
  25245. }
  25246. }else{
  25247. this.$refs.statisticalAnalysisRef.close();
  25248. }
  25249. if(behavior.form.taskCount!=="" && behavior.form.courseType !==""){
  25250. let oldData = [parseInt(this.courseType),parseInt(this.taskCount)]
  25251. let newData = [parseInt(behavior.form.courseType),parseInt(behavior.form.taskCount)]
  25252. if (behavior.form.courseType != this.courseType ||
  25253. behavior.form.taskCount != this.taskCount ||
  25254. behavior.form.toolType != this.toolindex
  25255. ) {
  25256. var a = document.scrollingElement;
  25257. let target = document.querySelector(`#gj${behavior.form.toolType}`);
  25258. if (target) {
  25259. target.scrollIntoView(true);
  25260. setTimeout(()=>{
  25261. let scrollBody = document.querySelector('.body_student').parentElement
  25262. scrollBody.scrollTop = scrollBody.scrollTop - 100
  25263. }, 0);
  25264. // setTimeout(() => {
  25265. // a.scrollTop = 0
  25266. // }, 0);
  25267. }
  25268. }
  25269. if(this.courseType !=behavior.form.courseType){
  25270. this.courseType = behavior.form.courseType;
  25271. }
  25272. if(this.taskCount !=behavior.form.taskCount){
  25273. this.taskCount = behavior.form.taskCount;
  25274. }
  25275. if((behavior.form.toolType || behavior.form.toolType == 0) && this.toolindex != behavior.form.toolType){
  25276. this.toolindex = behavior.form.toolType;
  25277. }
  25278. // if(behavior.form.navId){
  25279. // this.navId = behavior.form.navId
  25280. // }
  25281. // console.log("分屏阶段和任务",JSON.stringify(oldData),JSON.stringify(newData))
  25282. if(JSON.stringify(oldData)!=JSON.stringify(newData)){
  25283. // console.log("分屏测试====",JSON.stringify(oldData),JSON.stringify(newData))
  25284. this.getCourseDetail()
  25285. }
  25286. this.setContent2(false)
  25287. }
  25288. } else {
  25289. }
  25290. }
  25291. },
  25292. updateSplitScreenData(empty = 0) {
  25293. return new Promise(resolve => {
  25294. if(this.userid!==this.courseDetail.userid){
  25295. if(!this.courseDetail.userid){
  25296. return setTimeout(()=>{
  25297. this.updateSplitScreenData(empty)
  25298. },2000)
  25299. }
  25300. return;
  25301. };
  25302. if (
  25303. this.splitScreenData.uid == this.splitScreenData.myUid &&
  25304. this.splitScreenData.userId == this.userid
  25305. ) {
  25306. this.splitScreenData.loading = true;
  25307. let params = [
  25308. {
  25309. cid: this.id,
  25310. nData: empty === 1 ? "" : JSON.stringify(this.splitScreenData)
  25311. }
  25312. ];
  25313. this.ajax
  25314. .post(
  25315. this.$store.state.api + "update_courseSplitScreenData",
  25316. params
  25317. )
  25318. .then(res => {
  25319. this.splitScreenData.loading = false;
  25320. if (res.data == 1) {
  25321. resolve(1);
  25322. console.log("修改分屏数据成功");
  25323. }
  25324. })
  25325. .catch(e => {
  25326. this.splitScreenData.loading = false;
  25327. console.log("修改分屏数据失败", e);
  25328. resoleve(0);
  25329. });
  25330. } else if (empty == 2 && this.tType == 1) {
  25331. let params = [
  25332. {
  25333. cid: this.id,
  25334. nData: ""
  25335. }
  25336. ];
  25337. return this.ajax
  25338. .post(
  25339. this.$store.state.api + "update_courseSplitScreenData",
  25340. params
  25341. )
  25342. .then(_ => resolve(1))
  25343. .catch(_ => resolve(0));
  25344. } else {
  25345. return resolve(0);
  25346. }
  25347. });
  25348. },
  25349. changeSplitScreenBehavior(newValue) {
  25350. if (
  25351. this.splitScreenData.isOpen &&
  25352. this.splitScreenData.uid == this.splitScreenData.myUid
  25353. ) {
  25354. let _behavior = null;
  25355. if(!newValue){
  25356. _behavior = {}
  25357. }else{
  25358. _behavior = newValue
  25359. }
  25360. if(_behavior.form){
  25361. _behavior.form.taskCount = this.taskCount;
  25362. _behavior.form.courseType = this.courseType
  25363. }else{
  25364. _behavior.form = {
  25365. taskCount:this.taskCount,
  25366. courseType:this.courseType
  25367. }
  25368. }
  25369. this.splitScreenData.behavior = _behavior;
  25370. this.updateSplitScreenData(0);
  25371. }
  25372. },
  25373. studentFreePreview(flag) {
  25374. this.IsLookOpen = flag;
  25375. this.followingMode(flag)
  25376. this.updateLookOpen();
  25377. },
  25378. OpenJobPreview(flag) {
  25379. this.sIsOpen = flag;
  25380. this.updateSLook();
  25381. },
  25382. followingMode(flag) {
  25383. this.IsFollow = flag;
  25384. this.updateFollow();
  25385. },
  25386. StulookMode(flag) {
  25387. this.IsStulook = flag;
  25388. this.updateIsStulook();
  25389. },
  25390. },
  25391. directives: {
  25392. // 使用局部注册指令的方式
  25393. resize: {
  25394. // 指令的名称
  25395. bind(el, binding) {
  25396. // el为绑定的元素,binding为绑定给指令的对象
  25397. let width = "",
  25398. height = "";
  25399. function isReize() {
  25400. const style = document.defaultView.getComputedStyle(el);
  25401. if (width !== style.width || height !== style.height) {
  25402. binding.value(); // 关键
  25403. }
  25404. width = style.width;
  25405. height = style.height;
  25406. }
  25407. el.__vueSetInterval__ = setInterval(isReize, 300);
  25408. },
  25409. unbind(el) {
  25410. clearInterval(el.__vueSetInterval__);
  25411. },
  25412. },
  25413. autoHeight: {
  25414. update(el, binding) {
  25415. const { value } = binding
  25416. if (value && typeof value === 'number') {
  25417. el.style.height = `${value}px`
  25418. } else {
  25419. el.style.height = 'auto'
  25420. }
  25421. },
  25422. componentUpdated(el) {
  25423. el.style.height = `${el.scrollHeight + 5}px`
  25424. },
  25425. },
  25426. },
  25427. beforeDestroy() {
  25428. window.onresize = null;
  25429. clearInterval(this.timer);
  25430. clearInterval(this.timer2);
  25431. this.timer = null;
  25432. this.timer2 = null;
  25433. clearInterval(this.opertimer);
  25434. this.opertimer = null;
  25435. this.updateSplitScreenData(1);
  25436. },
  25437. computed: {
  25438. renderedFormula2() {
  25439. return function(val){
  25440. // 处理换行符和HTML实体
  25441. const normalized = val
  25442. .replace(/&amp;/g, '&')
  25443. .replace(/<br\/?>/g, '\n');
  25444. // 匹配行内公式($...$)和块级公式($$...$$)
  25445. return normalized.replace(/(\${1,2})([^$]+)(\${1,2})/g, (_, delim, expr) => {
  25446. try {
  25447. return katex.renderToString(expr.trim(), {
  25448. displayMode: false,
  25449. throwOnError: false,
  25450. macros: {
  25451. '\\aligned': '\\begin{aligned}#1\\end{aligned}'
  25452. }
  25453. });
  25454. } catch (e) {
  25455. console.warn('KaTeX渲染失败:', e);
  25456. return `<span style="color:red">${expr}</span>`;
  25457. }
  25458. })
  25459. }
  25460. },
  25461. renderedFormula() {
  25462. return function(val){
  25463. try {
  25464. // 判断是否含有HTML标签,<tag ...>...</tag>
  25465. const hasTag = /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g.test(val);
  25466. if (!hasTag) {
  25467. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25468. // 纯文本,整体渲染
  25469. try {
  25470. return katex.renderToString(val.trim(), {
  25471. throwOnError: false,
  25472. strict: false,
  25473. output: "htmlAndMathml"
  25474. });
  25475. } catch (e) {
  25476. return val; // 渲染失败原样输出
  25477. }
  25478. } else {
  25479. // 有标签,对每个标签内容渲染
  25480. return val.replace(
  25481. /<([a-zA-Z][\w\-]*)([^>]*)>([\s\S]*?)<\/\1>/g,
  25482. (match, tag, attrs, inner) => {
  25483. let html;
  25484. val = val.trim().replace(/[\u200B-\u200D\uFEFF]/g, '');
  25485. try {
  25486. html = katex.renderToString(inner.trim(), {
  25487. throwOnError: false,
  25488. strict: false,
  25489. output: "htmlAndMathml"
  25490. });
  25491. } catch (e) {
  25492. html = inner;
  25493. }
  25494. return `<${tag}${attrs}>${html}</${tag}>`;
  25495. }
  25496. );
  25497. }
  25498. } catch (e) {
  25499. console.error('KaTeX渲染错误:', e);
  25500. return val;
  25501. }
  25502. }
  25503. },
  25504. isAndroid() {
  25505. return /Android/i.test(navigator.userAgent);
  25506. },
  25507. getHeight(){
  25508. return document.querySelectorAll(".engUpTop")[0].offsetHeight;
  25509. },
  25510. contentConvent() {
  25511. return function (c) {
  25512. return c
  25513. ? c
  25514. .replaceAll(/\r\n/g, "<br/>")
  25515. .replaceAll(/\n/g, "<br/>")
  25516. .replaceAll(/\s/g, " &nbsp")
  25517. : "";
  25518. };
  25519. },
  25520. MarkdownT() {
  25521. return function (c) {
  25522. let md = new MarkdownIt({
  25523. html: true, // 允许渲染 HTML
  25524. linkify: true, // 自动将URL链接转化为可点击链接
  25525. typographer: true, // 启用排版规则(如替换 `"` 为 “)
  25526. });
  25527. return c
  25528. ? md.render(c) : "";
  25529. };
  25530. },
  25531. commentRight(){
  25532. if(!this.orgArray.includes(this.org) && !this.oidArray.includes(this.oid)){
  25533. return "35px";
  25534. }
  25535. return `calc(${this.classRoomHelperWidth} + 5px)`
  25536. // if(this.$refs["classRoomHelperRef"].type==0){
  25537. // return "100px";
  25538. // }else if(this.$refs["classRoomHelperRef"].type==1){
  25539. // return "502px"
  25540. // }else{
  25541. // return "0px"
  25542. // }
  25543. },
  25544. checkUpload() {
  25545. return function () {
  25546. var studentK = [];
  25547. if (this.plworkFile.length > 0) {
  25548. for (var z = 0; z < this.plworkFile.length; z++) {
  25549. studentK.push(this.plworkFile[z].username);
  25550. }
  25551. studentK = studentK.join(",");
  25552. }
  25553. var a = this.uploadStudentJuri.filter((el) => {
  25554. return studentK.indexOf(el.userid) == -1;
  25555. });
  25556. return a;
  25557. };
  25558. },
  25559. getSName() {
  25560. return function (name) {
  25561. var check = name;
  25562. this.uploadStudentJuri.forEach((el) => {
  25563. if (el.userid == check) {
  25564. check = el.name ? el.name : el.username;
  25565. }
  25566. });
  25567. return check;
  25568. };
  25569. },
  25570. getImgList() {
  25571. return function (val) {
  25572. let srcList = []; // 定义一个数组用来接收后面的img地址
  25573. val.replace(
  25574. /<img [^>]*src=['"]([^'"]+)[^>]*>/g,
  25575. function (match, capture) {
  25576. // 查找匹配的元素 match为整个img标签 capture为src中的内容
  25577. srcList.push(capture);
  25578. }
  25579. );
  25580. return srcList;
  25581. };
  25582. },
  25583. retrnToolHeight(){
  25584. return function (tool) {
  25585. var _tool = document.querySelectorAll('#'+tool)[0]
  25586. return _tool ? document.querySelectorAll('#'+tool)[0].children[0].offsetHeight + 30 + 'px' : 0;
  25587. };
  25588. },
  25589. Correct() {
  25590. return function (c,d) {
  25591. let w = "";
  25592. let a = this.correctWord;
  25593. for(var k = 0;k<a.length;k++){
  25594. //diffWordsWithSpace
  25595. if(a.length > 1){
  25596. if(a[k].added == true){
  25597. w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25598. }else if(a[k].removed == true){
  25599. w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25600. }else{
  25601. w += '<span>' + a[k].value + '</span>';
  25602. }
  25603. }else{
  25604. w = c
  25605. }
  25606. console.log("👇👇!+++==")
  25607. console.log(w)
  25608. //diffChars方法
  25609. // if(w == ""){
  25610. // if(a.length > 1){
  25611. // if(a[k].added == true){
  25612. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25613. // }else if(a[k].removed == true){
  25614. // w = '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25615. // }
  25616. // }else{
  25617. // w = c
  25618. // }
  25619. // }else{
  25620. // if(k == a.length - 1){
  25621. // if(a[k].added == true){
  25622. // w += '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25623. // }else if(a[k].removed == true){
  25624. // w += '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25625. // }
  25626. // }else{
  25627. // if(a[k].added == true){
  25628. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="background-color: green;color:#fff">' + a[k].value + '</span>';
  25629. // }else if(a[k].removed == true){
  25630. // w += '<span>' + a[k - 1].value + '</span>' + '<span style="text-decoration: line-through;color:red">' + a[k].value + '</span>';
  25631. // }
  25632. // }
  25633. // }
  25634. }
  25635. c = w;
  25636. return c;
  25637. };
  25638. },
  25639. },
  25640. mounted() {
  25641. document.body.addEventListener("click", (e) => {
  25642. if (this.isUpdateToolDetail1) {
  25643. this.updateToolDetail(this.toolDetailIndex);
  25644. }
  25645. });
  25646. try {
  25647. if (this.screenType == 2) {
  25648. window.topU.postMessage({ allScreen: 4 }, "*");
  25649. } else if (this.screenType == 3) {
  25650. window.topU.postMessage({ allScreen: 5 }, "*");
  25651. } else if (this.screenType == 1) {
  25652. window.topU.postMessage({ allScreen: 6 }, "*");
  25653. }
  25654. } catch (error) {
  25655. console.log(error)
  25656. }
  25657. this.setOperationTime();
  25658. this.selectEva();
  25659. this.getCourseDetail(10);
  25660. this.selectCount();
  25661. this.getHomeWork();
  25662. this.selectUser();
  25663. this.getAIJ();
  25664. this.contentDialog = false;
  25665. this.setContent2(true);
  25666. if (this.tType == 4) {
  25667. this.pzDialog = true;
  25668. this.selectPz();
  25669. }
  25670. // 获取评分列表
  25671. this.getScoreList()
  25672. this.updateSplitScreenData(2);
  25673. this.splitScreenData.myUid = uuidv4();
  25674. document.scrollingElement.scrollTop = 0;
  25675. window.addEventListener("resize", () => {
  25676. var a = document.getElementsByClassName("box_course")[0].offsetHeight;
  25677. // document.getElementsByClassName("vedioList")[0].style.height = a + "px";
  25678. if (this.showType == 2 || this.showType == 3) {
  25679. document.getElementsByClassName("navBox")[0].style.height =
  25680. a - 40 + 0+ "px";
  25681. } else {
  25682. document.getElementsByClassName("navBox")[0].style.height =
  25683. a - 40 + "px";
  25684. }
  25685. });
  25686. let _this = this;
  25687. setTimeout(() => {
  25688. // _this.vedioTime = [];
  25689. // for (var i = 0; i < _this.vedio[_this.taskCount].length; i++) {
  25690. // _this.vedioTime[i] = document.getElementsByClassName(
  25691. // "vjs-duration-display"
  25692. // )[i].textContent;
  25693. // }
  25694. }, 1000);
  25695. },
  25696. };
  25697. </script>
  25698. <style scoped>
  25699. @media screen and (max-width: 1280px) {
  25700. /* .courseIndex > div:first-child(2) {
  25701. width: 15% !important;
  25702. } */
  25703. /* .navText {
  25704. width: 120px !important;
  25705. } */
  25706. .evaCss {
  25707. flex-direction: column !important;
  25708. align-items: center !important;
  25709. }
  25710. .elist_input {
  25711. width: 90% !important;
  25712. }
  25713. .dialog_diy1 >>> .el-dialog {
  25714. width: 100% !important;
  25715. }
  25716. .rightWidthCss {
  25717. width: 100% !important;
  25718. }
  25719. .dialog_diy3 >>> .el-dialog {
  25720. width: 100% !important;
  25721. }
  25722. .addToolCss {
  25723. right: 0 !important;
  25724. width: 100% !important;
  25725. min-width: unset !important;
  25726. }
  25727. }
  25728. .evaCssMax {
  25729. flex-direction: column !important;
  25730. align-items: center !important;
  25731. }
  25732. /* .dialog_diy >>> .el-dialog { */
  25733. /* margin-top: 10vh !important; */
  25734. /* } */
  25735. .body_student {
  25736. width: 77%;
  25737. height: 100%;
  25738. position: absolute;
  25739. left: 22%;
  25740. top: 0;
  25741. }
  25742. .student_head {
  25743. width: 100%;
  25744. margin: 20px auto 0;
  25745. padding-bottom: 20px;
  25746. display: flex;
  25747. flex-direction: column;
  25748. flex-wrap: nowrap;
  25749. align-items: flex-start;
  25750. justify-content: flex-start;
  25751. }
  25752. .pb_left {
  25753. width: 15%;
  25754. margin-right: 10px;
  25755. background: rgb(255, 255, 255);
  25756. position: fixed;
  25757. height: calc(100% - 40px);
  25758. border-radius: 20px;
  25759. padding-bottom: 15px;
  25760. box-sizing: border-box;
  25761. }
  25762. .wheel > img,
  25763. .project > img,
  25764. .star > img,
  25765. .evaluate > img,
  25766. .up_photo > img,
  25767. .chapter_add > img,
  25768. .deleteWord > img,
  25769. .question > img,
  25770. .homework > img {
  25771. width: 100%;
  25772. height: 100%;
  25773. }
  25774. .upCover > img {
  25775. width: 131px;
  25776. height: 69px;
  25777. object-fit: cover;
  25778. }
  25779. .upCover {
  25780. width: calc(100% / 3.5);
  25781. position: relative;
  25782. margin: 0 15px 10px 0;
  25783. display: flex;
  25784. flex-direction: column;
  25785. flex-wrap: nowrap;
  25786. justify-content: center;
  25787. align-content: center;
  25788. align-items: center;
  25789. height: fit-content;
  25790. }
  25791. .upCover2 {
  25792. width: 100%;
  25793. position: relative;
  25794. margin: 0 15px 10px 0;
  25795. display: flex;
  25796. flex-direction: column;
  25797. flex-wrap: nowrap;
  25798. justify-content: center;
  25799. align-content: center;
  25800. align-items: center;
  25801. }
  25802. .upCover2 > img {
  25803. width: 100%;
  25804. height: 90px;
  25805. object-fit: contain;
  25806. }
  25807. .chapter_add {
  25808. width: 120px;
  25809. position: relative;
  25810. text-align: center;
  25811. }
  25812. .isAddThings {
  25813. margin-top: 20px;
  25814. position: relative;
  25815. text-align: center;
  25816. background: #f7f8fa;
  25817. height: 90px;
  25818. width: 90px;
  25819. display: flex;
  25820. flex-direction: column;
  25821. justify-content: center;
  25822. }
  25823. .deleteWord {
  25824. width: 22px;
  25825. height: 22px;
  25826. position: absolute;
  25827. right: -5px;
  25828. top: -5px;
  25829. cursor: pointer;
  25830. }
  25831. .box_course {
  25832. /* width: 60%; */
  25833. width: calc(100% - 300px);
  25834. }
  25835. .wheel {
  25836. width: 100%;
  25837. /* height: 100%; */
  25838. height: 650px;
  25839. }
  25840. .right_box {
  25841. display: flex;
  25842. flex-direction: column;
  25843. margin-left: 30px;
  25844. justify-content: space-around;
  25845. }
  25846. .right_box_title {
  25847. font-size: 23px;
  25848. }
  25849. .people {
  25850. display: flex;
  25851. }
  25852. .student_body {
  25853. width: 100%;
  25854. margin: 0 auto;
  25855. margin-top: 10px;
  25856. padding: 0 0 20px;
  25857. }
  25858. .study_top {
  25859. margin-top: 100px;
  25860. width: 100%;
  25861. height: auto;
  25862. padding-bottom: 20px;
  25863. margin-left: 2px;
  25864. min-height: 90%;
  25865. }
  25866. .study_top .checkbox {
  25867. display: flex;
  25868. align-items: center;
  25869. padding: 15px 0 15px 30px;
  25870. flex: 0 0 auto;
  25871. font-weight: bold;
  25872. border-bottom: 1px solid #eee;
  25873. }
  25874. .study_top .check {
  25875. padding-bottom: 5px;
  25876. text-align: center;
  25877. cursor: pointer;
  25878. height: 30px;
  25879. box-sizing: border-box;
  25880. display: flex;
  25881. }
  25882. .study_top .checked {
  25883. border-bottom: 4px solid #3fc6a0;
  25884. padding-bottom: 5px;
  25885. color: #3fc6a0;
  25886. display: flex;
  25887. height: 35px;
  25888. }
  25889. .study_top .checked > div,
  25890. .study_top .check > div {
  25891. margin-right: 5px;
  25892. }
  25893. .videoTop {
  25894. display: flex;
  25895. flex-direction: row;
  25896. justify-content: space-between;
  25897. background: #fff;
  25898. align-items: center;
  25899. width: 95%;
  25900. padding: 20px;
  25901. }
  25902. .filebox {
  25903. display: flex;
  25904. flex-wrap: wrap;
  25905. flex-direction: column;
  25906. padding: 0 0 5px;
  25907. position: relative;
  25908. }
  25909. .filebox:before {
  25910. content: ""; /* 使用 :before 伪元素创建纵向虚线 */
  25911. position: absolute;
  25912. top: 20px;
  25913. left: 13px;
  25914. border-left: 2px dotted #cad1dc;
  25915. height: calc(100% - 15px);
  25916. }
  25917. .toolHeng2 > div:last-child::before {
  25918. height: calc(100% - 43px);
  25919. }
  25920. .filebox .tooldetail {
  25921. width: calc(100%);
  25922. margin: 0px 12px;
  25923. padding: 12px;
  25924. line-height: 30px;
  25925. word-break: break-word;
  25926. background: #ffffff;
  25927. border-radius: 8px 8px 8px 8px;
  25928. opacity: 1;
  25929. border: 1px solid #cad1dc;
  25930. overflow:hidden;
  25931. box-sizing:border-box;
  25932. }
  25933. .file {
  25934. display: flex;
  25935. flex-direction: column;
  25936. align-items: center;
  25937. justify-content: center;
  25938. cursor: pointer;
  25939. width: 200px;
  25940. }
  25941. .file div {
  25942. margin-top: 10px;
  25943. width: 150px;
  25944. text-align: center;
  25945. overflow: hidden;
  25946. white-space: nowrap;
  25947. text-overflow: ellipsis;
  25948. }
  25949. .media {
  25950. display: flex;
  25951. flex-direction: column;
  25952. align-items: center;
  25953. justify-content: center;
  25954. margin: 0 20px 20px 0;
  25955. cursor: pointer;
  25956. margin: 12px 0 5px 15px;
  25957. overflow: hidden;
  25958. box-shadow: 0px 1px 3px 0px rgb(0 0 0 / 20%), 0px 1px 1px 0px rgb(0 0 0 / 14%),
  25959. 0px 2px 1px -1px rgb(0 0 0 / 12%);
  25960. box-sizing: border-box;
  25961. }
  25962. .media img {
  25963. height: 90px;
  25964. width: 160px;
  25965. object-fit: cover;
  25966. }
  25967. .media .title {
  25968. padding: 5px;
  25969. text-align: left;
  25970. width: 100%;
  25971. box-sizing: border-box;
  25972. }
  25973. .media .btn {
  25974. width: 100%;
  25975. height: 35px;
  25976. line-height: 35px;
  25977. color: #fff;
  25978. background: #606060;
  25979. text-align: center;
  25980. overflow: hidden;
  25981. white-space: nowrap;
  25982. text-overflow: ellipsis;
  25983. }
  25984. .detail_content_top {
  25985. width: 100%;
  25986. padding: 25px 0 25px 0;
  25987. }
  25988. .detail_title {
  25989. text-align: center;
  25990. font-size: 24px;
  25991. }
  25992. .detail_time {
  25993. font-size: 13px;
  25994. padding: 15px 0 0 40px;
  25995. }
  25996. .detail_content {
  25997. line-height: 2pc;
  25998. width: 90%;
  25999. margin: 0 auto;
  26000. padding-top: 30px;
  26001. text-indent: 30px;
  26002. overflow: auto;
  26003. height: 200px;
  26004. }
  26005. .score_box >>> .el-rate {
  26006. margin-left: 10px;
  26007. }
  26008. .dialog_change >>> .el-dialog {
  26009. border-radius: 5px;
  26010. }
  26011. .dialog_change >>> .el-dialog__header {
  26012. background: #f2f2f2;
  26013. text-align: center;
  26014. }
  26015. .dialog_change >>> .el-dialog__title {
  26016. line-height: 5px;
  26017. }
  26018. .dialog_change >>> .el-dialog__body {
  26019. background: #fff;
  26020. padding: 10px 20px;
  26021. }
  26022. .score_box {
  26023. display: flex;
  26024. align-items: center;
  26025. margin-bottom: 18px;
  26026. margin-top: 20px;
  26027. }
  26028. .up_photo {
  26029. width: 120px;
  26030. cursor: pointer;
  26031. margin-top: 10px;
  26032. }
  26033. .up_photo2 {
  26034. width: 180px;
  26035. box-sizing: border-box;
  26036. min-width: 180px;
  26037. height: 180px;
  26038. max-height: 180px;
  26039. min-height: 180px;
  26040. cursor: pointer;
  26041. display: flex;
  26042. flex-direction: column;
  26043. align-items: center;
  26044. justify-content: center;
  26045. background: rgb(242, 246, 255);
  26046. /* padding: 25px; */
  26047. margin-bottom: 10px;
  26048. }
  26049. .up_photo2 img {
  26050. width: 50%;
  26051. height: auto;
  26052. }
  26053. .up_photo2 span {
  26054. color: #898989;
  26055. }
  26056. .plworkBox {
  26057. display: flex;
  26058. align-items: center;
  26059. margin-top: 10px;
  26060. flex-wrap: wrap;
  26061. }
  26062. .upload_send {
  26063. margin: 30px auto 30px;
  26064. width: 60%;
  26065. background: #3681fc;
  26066. text-align: center;
  26067. height: 35px;
  26068. line-height: 35px;
  26069. color: #fff;
  26070. border-radius: 5px;
  26071. cursor: pointer;
  26072. }
  26073. .marginT {
  26074. margin-top: 20px;
  26075. }
  26076. .cd_content_steps {
  26077. display: flex;
  26078. width: 90%;
  26079. justify-content: space-around;
  26080. border-top: 1px solid #eeeeee;
  26081. }
  26082. .cd_steps_box {
  26083. display: flex;
  26084. justify-content: center;
  26085. align-items: center;
  26086. flex-direction: column;
  26087. cursor: pointer;
  26088. }
  26089. .first {
  26090. display: flex;
  26091. align-items: center;
  26092. margin: 15px 0 20px 0;
  26093. font-size: 20px;
  26094. }
  26095. .first > div:nth-child(2) {
  26096. font-size: 16px !important;
  26097. padding-left: 10px;
  26098. line-height: 26px;
  26099. box-sizing: border-box;
  26100. }
  26101. .blue_box_one {
  26102. text-align: center;
  26103. color: #fff;
  26104. background-image: linear-gradient(90deg, #477cd7, #65b9fc);
  26105. border-radius: 7px;
  26106. margin: 10px;
  26107. cursor: pointer;
  26108. width: 95%;
  26109. height: 45px;
  26110. display: flex;
  26111. flex-direction: row;
  26112. justify-content: flex-start;
  26113. align-items: center;
  26114. }
  26115. .blue_box_one > div:nth-child(1) {
  26116. line-height: 30px;
  26117. margin: 0 5px 0 10px;
  26118. width: 30%;
  26119. min-width: 70px;
  26120. border-radius: 4px;
  26121. }
  26122. .blue_box_one > div:nth-child(2) {
  26123. white-space: nowrap;
  26124. text-overflow: ellipsis;
  26125. overflow: hidden;
  26126. word-break: break-all;
  26127. width: 70%;
  26128. text-align: left;
  26129. margin-right: 10px;
  26130. max-width: calc(100% - 85px);
  26131. }
  26132. .blue_box_one > div:nth-child(2):hover {
  26133. overflow: hidden;
  26134. text-overflow: ellipsis;
  26135. white-space: nowrap;
  26136. cursor: pointer;
  26137. }
  26138. .upFile {
  26139. margin: 0 auto;
  26140. width: 120px;
  26141. background: #3681fc;
  26142. color: #fff;
  26143. height: 30px;
  26144. text-align: center;
  26145. line-height: 30px;
  26146. border-radius: 5px;
  26147. font-size: 14px;
  26148. cursor: pointer;
  26149. }
  26150. .courseTitle {
  26151. width: 85%;
  26152. margin: 10px auto 26px auto;
  26153. display: flex;
  26154. flex-direction: row;
  26155. align-items: center;
  26156. justify-content: space-between;
  26157. text-align: center;
  26158. }
  26159. .courseTitle .ctitle {
  26160. font-size: 20px;
  26161. font-weight: bold;
  26162. color: #0e1e33;
  26163. white-space: nowrap;
  26164. overflow: hidden;
  26165. text-overflow: ellipsis;
  26166. }
  26167. .inviteBox {
  26168. font-size: 14px;
  26169. /* margin-top: 5px; */
  26170. color: #00000099;
  26171. text-align: center;
  26172. }
  26173. .courseTitle >>> .el-tooltip {
  26174. width: 100%;
  26175. white-space: nowrap;
  26176. overflow: hidden;
  26177. text-overflow: ellipsis;
  26178. word-break: break-word;
  26179. }
  26180. .ml {
  26181. margin-left: 20px;
  26182. color: #5b7dba;
  26183. border-left: 3px solid #5b7dba;
  26184. padding-left: 5px;
  26185. font-weight: bold;
  26186. }
  26187. .return {
  26188. width: 2rem;
  26189. height: 2rem;
  26190. cursor: pointer;
  26191. }
  26192. .return > img {
  26193. width: 100%;
  26194. height: 100%;
  26195. }
  26196. .returnBtn {
  26197. width: 86px;
  26198. height: 36px;
  26199. background: #3681fc;
  26200. border-radius: 4px;
  26201. color: #fff;
  26202. text-align: center;
  26203. line-height: 36px;
  26204. margin-right: 20px;
  26205. cursor: pointer;
  26206. font-size: 14px;
  26207. font-weight: 400;
  26208. display: flex;
  26209. flex-direction: row;
  26210. flex-wrap: nowrap;
  26211. align-items: center;
  26212. justify-content: center;
  26213. }
  26214. .reBtnIcon,
  26215. .commentIcon,
  26216. .vedioIcon,
  26217. .vedioIcon1 {
  26218. /* width: 36px; */
  26219. height: 36px;
  26220. border-radius: 4px;
  26221. position: relative;
  26222. /* background: #e0eafb; */
  26223. background: #0061ff;
  26224. cursor: pointer;
  26225. margin-right: 12px;
  26226. display: flex;
  26227. align-items: center;
  26228. padding: 0 10px;
  26229. box-sizing: border-box;
  26230. font-size: 14px;
  26231. color: #fff;
  26232. }
  26233. .reBtnIcon::before,
  26234. .commentIcon::before,
  26235. .vedioIcon::before,
  26236. .vedioIcon1::before {
  26237. content: "";
  26238. display: block;
  26239. background-size: 100% 100%;
  26240. background-repeat: no-repeat;
  26241. width: 20px;
  26242. height: 20px;
  26243. margin-right: 5px;
  26244. /* position: absolute; */
  26245. /* top: 8px;
  26246. left: 8px; */
  26247. }
  26248. .vedioIcon1 {
  26249. background: #f63564;
  26250. }
  26251. .reBtnIcon::before {
  26252. background-image: url("../../assets/icon/newIcons/refresh.png");
  26253. }
  26254. .commentIcon::before {
  26255. background-image: url("../../assets/icon/newIcons/comment.png");
  26256. }
  26257. .vedioIcon::before {
  26258. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26259. }
  26260. .vedioIcon1::before {
  26261. /* background-image: url("../../assets/icon/newIcons/istranscribe.png"); */
  26262. background-image: url("../../assets/icon/newIcons/transcribe.png");
  26263. }
  26264. .tool {
  26265. display: flex;
  26266. flex-direction: column;
  26267. flex-wrap: nowrap;
  26268. width: 13%;
  26269. margin: 0 30px;
  26270. align-items: center;
  26271. position: relative;
  26272. padding: 10px 25px;
  26273. cursor: pointer;
  26274. }
  26275. .whiteBIcon {
  26276. width: 150px;
  26277. }
  26278. .whiteBIcon > img {
  26279. width: 100%;
  26280. height: 100%;
  26281. }
  26282. .mask {
  26283. background-color: rgba(0, 0, 0, 0);
  26284. position: fixed;
  26285. top: 0;
  26286. left: 0;
  26287. width: 100%;
  26288. height: 100%;
  26289. z-index: 20000;
  26290. display: flex;
  26291. align-items: center;
  26292. justify-content: center;
  26293. }
  26294. .progressBox {
  26295. width: 500px;
  26296. height: 180px;
  26297. background: #fff;
  26298. border-radius: 10px;
  26299. box-shadow: 0 0 6px 1px #bfbfbf;
  26300. display: flex;
  26301. align-items: center;
  26302. justify-content: center;
  26303. flex-direction: column;
  26304. position: relative;
  26305. color: #6c6c6c;
  26306. }
  26307. .progressBox >>> .el-progress-bar__outer {
  26308. background-color: #d1dfff !important;
  26309. }
  26310. .progressBox .lbox {
  26311. height: 50px;
  26312. font-size: 19px;
  26313. display: flex;
  26314. align-items: center;
  26315. color: #747474;
  26316. }
  26317. .progressBox .lbox img {
  26318. width: 40px;
  26319. margin-right: 20px;
  26320. }
  26321. .closeCss {
  26322. position: absolute;
  26323. top: 8px;
  26324. right: 8px;
  26325. cursor: pointer;
  26326. width: 20px;
  26327. height: 20px;
  26328. }
  26329. .closeCss > img {
  26330. width: 100%;
  26331. height: 100%;
  26332. }
  26333. .uploadVedio {
  26334. display: flex;
  26335. flex-direction: column;
  26336. flex-wrap: nowrap;
  26337. justify-content: center;
  26338. align-items: center;
  26339. margin: 0 15px 10px 0;
  26340. }
  26341. .uploadVedio > img {
  26342. width: 30px;
  26343. height: 30px;
  26344. }
  26345. .uploadVedio > span {
  26346. white-space: nowrap;
  26347. overflow: hidden;
  26348. text-overflow: ellipsis;
  26349. width: 75px;
  26350. margin-top: 7px;
  26351. }
  26352. .picName {
  26353. white-space: nowrap;
  26354. overflow: hidden;
  26355. text-overflow: ellipsis;
  26356. width: 75px;
  26357. margin-top: 7px;
  26358. }
  26359. .new_top {
  26360. display: flex;
  26361. background: #fff;
  26362. flex-direction: row;
  26363. justify-content: flex-start;
  26364. align-items: center;
  26365. height: 60px;
  26366. position: fixed;
  26367. top: 20px;
  26368. left: 22%;
  26369. width: 77%;
  26370. z-index: 999;
  26371. border-radius: 12px 12px 0 0;
  26372. border-bottom: 1px solid #cad1dc;
  26373. padding: 10px 0;
  26374. }
  26375. .new_topFixed {
  26376. width: 100%;
  26377. height: 40px;
  26378. position: fixed;
  26379. top: 0px;
  26380. display: block;
  26381. background: #f2f2f2;
  26382. z-index: 998;
  26383. }
  26384. .before {
  26385. position: absolute;
  26386. background: #c3dad4;
  26387. width: 6px;
  26388. height: 100%;
  26389. }
  26390. .courseIndex {
  26391. display: flex;
  26392. flex-direction: row;
  26393. align-items: center;
  26394. width: calc(100% - 745px);
  26395. }
  26396. .courseIndex > div:nth-child(1) {
  26397. margin: 0 0 0 10px;
  26398. font-size: 20px;
  26399. min-width: 100px;
  26400. font-weight: bold;
  26401. border-left: 4px solid #3363b9;
  26402. height: 32px;
  26403. text-align: center;
  26404. line-height: 35px;
  26405. }
  26406. .courseIndex > div:nth-child(2) {
  26407. font-size: 20px;
  26408. /* width: 300px; */
  26409. max-width: calc(100% - 105px);
  26410. white-space: nowrap;
  26411. overflow: hidden;
  26412. text-overflow: ellipsis;
  26413. }
  26414. .courseIndex > div:nth-child(3) {
  26415. border-bottom: 1px solid #d7d7d7;
  26416. padding-bottom: 5px;
  26417. background: #3681fc;
  26418. width: 55px;
  26419. min-width: 55px;
  26420. border-radius: 5px;
  26421. color: #fff;
  26422. text-align: center;
  26423. height: 20px;
  26424. line-height: 26px;
  26425. font-size: 14px;
  26426. margin: 0 0 0 10px;
  26427. }
  26428. .course_text {
  26429. padding: 20px 0 0 15px;
  26430. text-indent: 30px;
  26431. width: 80%;
  26432. min-height: 20px;
  26433. }
  26434. .vedioList {
  26435. background: #f2f2f2;
  26436. border: 1px solid #ececec;
  26437. /* width: 38.8%; */
  26438. /* width: 300px; */
  26439. width: 100%;
  26440. height: 445px;
  26441. border-radius: 10px;
  26442. overflow: hidden;
  26443. box-shadow: 0px 0px 12px 1px rgba(0, 0, 0, 0.16);
  26444. }
  26445. .vedioNav {
  26446. margin: 10px 0 0 15px;
  26447. border-bottom: 1px solid #d7d7d7;
  26448. padding-bottom: 5px;
  26449. background: #3681fc;
  26450. width: 55px;
  26451. min-width: 55px;
  26452. border-radius: 5px;
  26453. color: #fff;
  26454. text-align: center;
  26455. height: 20px;
  26456. line-height: 26px;
  26457. font-size: 14px;
  26458. }
  26459. .queTop {
  26460. display: flex;
  26461. padding: 20px 0 20px 30px;
  26462. width: 100%;
  26463. flex-direction: row;
  26464. justify-content: flex-start;
  26465. align-items: center;
  26466. box-sizing: border-box;
  26467. }
  26468. .queTopTitle {
  26469. display: flex;
  26470. flex-direction: row;
  26471. flex-wrap: nowrap;
  26472. align-items: center;
  26473. font-weight: bold;
  26474. font-size: 20px;
  26475. color: rgb(14, 30, 51);
  26476. }
  26477. .queTopTitle::before {
  26478. content: "";
  26479. width: 2px;
  26480. height: 22px;
  26481. background: #3681fc;
  26482. border-radius: 3px;
  26483. display: block;
  26484. margin: 2px 6px 0 0;
  26485. }
  26486. .queTopRight {
  26487. display: flex;
  26488. flex-direction: row;
  26489. flex-wrap: nowrap;
  26490. align-items: center;
  26491. }
  26492. .queTopClose {
  26493. margin-right: 20px;
  26494. cursor: pointer;
  26495. position: relative;
  26496. display: flex;
  26497. }
  26498. .closeImg,
  26499. .openImg {
  26500. width: 25px;
  26501. height: 25px;
  26502. position: absolute;
  26503. left: -20px;
  26504. top: -1px;
  26505. }
  26506. .closeImg > img,
  26507. .openImg > img {
  26508. width: 100%;
  26509. height: 100%;
  26510. }
  26511. .question {
  26512. width: 40px;
  26513. margin-right: 10px;
  26514. margin-top: 7px;
  26515. }
  26516. .queTitle {
  26517. margin-left: 5px;
  26518. font-size: 25px;
  26519. display: flex;
  26520. align-items: center;
  26521. }
  26522. .addEditor {
  26523. width: 100px;
  26524. height: 30px;
  26525. background: #42cda6;
  26526. color: #fff;
  26527. border-radius: 5px;
  26528. text-align: center;
  26529. line-height: 30px;
  26530. box-shadow: 1px 3px 6px 1px #bfbfbf;
  26531. cursor: pointer;
  26532. }
  26533. /* .vedioName {
  26534. cursor: pointer;
  26535. margin: 0px 0px 10px 5px;
  26536. white-space: nowrap;
  26537. overflow: hidden;
  26538. text-overflow: ellipsis;
  26539. width: 100%;
  26540. } */
  26541. .vedioTime {
  26542. width: 35px;
  26543. position: absolute;
  26544. color: #fff;
  26545. bottom: 0px;
  26546. right: 0px;
  26547. text-align: center;
  26548. background: #46411f;
  26549. height: 20px;
  26550. font-size: 14px;
  26551. line-height: 20px;
  26552. }
  26553. .homework {
  26554. width: 200px;
  26555. display: flex;
  26556. flex-direction: column;
  26557. flex-wrap: nowrap;
  26558. align-items: center;
  26559. cursor: pointer;
  26560. }
  26561. .homebox {
  26562. display: flex;
  26563. flex-wrap: wrap;
  26564. flex-direction: row;
  26565. justify-content: flex-start;
  26566. align-items: center;
  26567. padding: 15px 0;
  26568. }
  26569. .isChooseActive {
  26570. color: #3681fc !important;
  26571. font-weight: bold !important;
  26572. }
  26573. .chooseWho {
  26574. display: flex;
  26575. width: 100%;
  26576. flex-direction: row;
  26577. flex-wrap: nowrap;
  26578. justify-content: flex-start;
  26579. padding-bottom: 10px;
  26580. }
  26581. .chooseWho > div {
  26582. cursor: pointer;
  26583. padding-bottom: 10px;
  26584. margin: 0 30px 0 0;
  26585. font-weight: 400;
  26586. color: #0e1e33;
  26587. }
  26588. .addPoint > div > img {
  26589. cursor: pointer;
  26590. width: 85px;
  26591. border-radius: 15px;
  26592. box-shadow: 0px 1px 8px 0px rgb(20 20 20 / 14%);
  26593. }
  26594. .addPoint > div {
  26595. display: flex;
  26596. flex-direction: column;
  26597. flex-wrap: nowrap;
  26598. align-items: center;
  26599. }
  26600. .isBorder > div {
  26601. margin: 0 0 10px 0;
  26602. align-items: flex-start !important;
  26603. }
  26604. .noiframeBox {
  26605. display: flex;
  26606. flex-wrap: wrap;
  26607. }
  26608. .iframeBox iframe {
  26609. width: 100%;
  26610. height: 800px;
  26611. border: none;
  26612. margin-bottom: 20px;
  26613. border: 1px solid #ccc;
  26614. }
  26615. .upload_toolBtn {
  26616. background: #3681fc;
  26617. color: #fff;
  26618. width: 110px;
  26619. text-align: center;
  26620. height: 35px;
  26621. line-height: 35px;
  26622. font-size: 14px;
  26623. border-radius: 5px;
  26624. cursor: pointer;
  26625. position: absolute;
  26626. right: 10px;
  26627. bottom: 0;
  26628. }
  26629. .binfo_input,
  26630. .pj {
  26631. font: inherit;
  26632. color: currentColor;
  26633. width: 100%;
  26634. margin: 0;
  26635. padding: 15px 14px;
  26636. display: block;
  26637. min-width: 0;
  26638. outline: none;
  26639. box-sizing: content-box;
  26640. background: none;
  26641. -webkit-tap-highlight-color: transparent;
  26642. border: 1px solid rgba(0, 0, 0, 0.23);
  26643. border-radius: 4px;
  26644. box-sizing: border-box;
  26645. resize: none;
  26646. }
  26647. .binfo_input:focus-visible {
  26648. border: 1px solid rgba(61, 103, 188);
  26649. }
  26650. .dialog_diy >>> .el-dialog__header,
  26651. .dialog_diy1 >>> .el-dialog__header {
  26652. background: #454545 !important;
  26653. padding: 15px 20px;
  26654. }
  26655. .dialog_diy >>> .el-dialog__title,
  26656. .dialog_diy1 >>> .el-dialog__title {
  26657. color: #fff;
  26658. }
  26659. .dialog_diy >>> .el-dialog__headerbtn,
  26660. .dialog_diy1 >>> .el-dialog__headerbtn {
  26661. top: 19px;
  26662. }
  26663. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close,
  26664. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close {
  26665. color: #fff;
  26666. }
  26667. .dialog_diy >>> .el-dialog__headerbtn .el-dialog__close:hover,
  26668. .dialog_diy1 >>> .el-dialog__headerbtn .el-dialog__close:hover {
  26669. color: #fff;
  26670. }
  26671. .dialog_diy1 >>> .el-dialog__body {
  26672. padding: 0;
  26673. }
  26674. .dialog_diy >>> .el-dialog__body,
  26675. .dialog_diy >>> .el-dialog__footer,
  26676. .dialog_diy1 >>> .el-dialog__footer {
  26677. background: #fafafa;
  26678. }
  26679. .markScore_diy >>> .el-dialog {
  26680. border-radius: 10px;
  26681. }
  26682. .markScore_diy >>> .el-dialog__body {
  26683. padding: 0;
  26684. height: 621px;
  26685. min-height: calc(100% - 60px);
  26686. }
  26687. .markScore_diy >>> .el-dialog__header {
  26688. border-bottom: 1px rgba(231, 231, 231, 1) solid;
  26689. }
  26690. .markScore_diy >>> .markScore_diyTit {
  26691. width: calc(100% - 60px);
  26692. display: flex;
  26693. justify-content: space-between;
  26694. align-items: center;
  26695. }
  26696. .a_addBox {
  26697. padding: 0 0 0 15px;
  26698. }
  26699. .a_add_box {
  26700. padding: 10px;
  26701. background: #fff;
  26702. margin-bottom: 10px;
  26703. border-radius: 5px;
  26704. box-shadow: 0 0 5px 0 #d5d5d5;
  26705. }
  26706. .a_add_head {
  26707. display: flex;
  26708. align-items: flex-start;
  26709. /* justify-content: space-between; */
  26710. flex-direction: column;
  26711. /* flex-direction: row; */
  26712. margin: 10px 0 20px 0;
  26713. font-size: 18px;
  26714. width: 100%;
  26715. }
  26716. .askIndex {
  26717. background: #3681fc;
  26718. border-radius: 50%;
  26719. color: #fff;
  26720. width: 25px;
  26721. height: 25px;
  26722. min-width: 25px;
  26723. min-height: 25px;
  26724. text-align: center;
  26725. line-height: 25px;
  26726. margin-right: 5px;
  26727. }
  26728. .a_add_head .a_add_head_input {
  26729. width: 300px;
  26730. }
  26731. .a_add_head .a_add_head_div {
  26732. display: flex;
  26733. align-items: center;
  26734. justify-content: space-between;
  26735. }
  26736. .a_add_body {
  26737. display: flex;
  26738. align-items: center;
  26739. }
  26740. .a_add_input {
  26741. display: flex;
  26742. align-items: center;
  26743. flex-wrap: wrap;
  26744. width: 100%;
  26745. }
  26746. .a_add_input >>> .el-radio-group,
  26747. .a_add_input >>> .el-checkbox-group {
  26748. width: 100%;
  26749. }
  26750. .a_add_input >>> .el-radio,
  26751. .a_add_input >>> .el-checkbox {
  26752. display: flex;
  26753. flex-direction: row;
  26754. flex-wrap: nowrap;
  26755. align-items: center;
  26756. padding: 15px 0;
  26757. }
  26758. .a_add_input >>> .el-radio:not(:last-child),
  26759. .a_add_input >>> .el-checkbox:not(:last-child) {
  26760. width: 100%;
  26761. border-bottom: 1px solid #efefef;
  26762. }
  26763. .redioStyle >>> .el-radio__label {
  26764. font-size: 18px;
  26765. }
  26766. .redioStyle >>> .el-radio__label > span,
  26767. .redioStyle >>> .el-checkbox__label > span {
  26768. word-break: break-all;
  26769. white-space: normal;
  26770. }
  26771. .redioStyle >>> .el-checkbox__label {
  26772. font-size: 18px;
  26773. }
  26774. .toolHeng2 {
  26775. width: 100%;
  26776. padding-left: 15px;
  26777. box-sizing: border-box;
  26778. }
  26779. .workNav {
  26780. font-size: 20px;
  26781. font-weight: bold;
  26782. color: #0e1e33;
  26783. display: flex;
  26784. flex-direction: row;
  26785. flex-wrap: nowrap;
  26786. align-items: center;
  26787. padding: 15px 0 15px 0;
  26788. }
  26789. .workNav::before {
  26790. content: "";
  26791. width: 2px;
  26792. height: 22px;
  26793. background: #3681fc;
  26794. border-radius: 3px;
  26795. display: block;
  26796. margin: 2px 6px 0 0;
  26797. }
  26798. .toolHeng {
  26799. display: flex;
  26800. flex-direction: row;
  26801. flex-wrap: wrap;
  26802. justify-content: flex-start;
  26803. align-items: center;
  26804. width: 100%;
  26805. }
  26806. .toolHeng > div {
  26807. padding-left: 20px;
  26808. }
  26809. .isWidth {
  26810. width: 20%;
  26811. }
  26812. .textTitle {
  26813. display: flex;
  26814. flex-direction: row;
  26815. flex-wrap: nowrap;
  26816. align-items: center;
  26817. width: 95%;
  26818. }
  26819. .textTitle >>> .el-form-item__label {
  26820. font-size: 22px;
  26821. color: #918f8f;
  26822. width: 100px;
  26823. }
  26824. .textTitle >>> .el-form-item__content {
  26825. width: calc(100% - 100px);
  26826. }
  26827. .textCss >>> .el-dialog {
  26828. width: 800px !important;
  26829. height: 400px;
  26830. background: #fafafa;
  26831. }
  26832. .textCss >>> .el-dialog__body {
  26833. margin: 55px 8% 0 8%;
  26834. padding: 0 !important;
  26835. }
  26836. .textCss >>> .el-dialog__footer {
  26837. padding-top: 38px;
  26838. }
  26839. .toolsCss >>> .el-dialog__body {
  26840. padding: 20px;
  26841. }
  26842. .lineCss >>> .el-dialog__body {
  26843. display: flex;
  26844. flex-direction: row;
  26845. align-items: center;
  26846. justify-content: center;
  26847. }
  26848. .newNav {
  26849. display: flex;
  26850. flex-direction: row;
  26851. align-items: baseline;
  26852. justify-content: flex-start;
  26853. }
  26854. .navListItem {
  26855. width: calc(100% - 20px);
  26856. height: 50px;
  26857. margin: 0px auto 10px;
  26858. display: flex;
  26859. flex-direction: row;
  26860. flex-wrap: nowrap;
  26861. align-items: center;
  26862. justify-content: space-between;
  26863. background: #f0f4fa;
  26864. border-radius: 6px 6px 6px 6px;
  26865. }
  26866. .navText {
  26867. cursor: pointer;
  26868. white-space: nowrap;
  26869. overflow: hidden;
  26870. text-overflow: ellipsis;
  26871. width: 220px;
  26872. padding: 0 10px;
  26873. font-weight: 400;
  26874. color: #0e1e33;
  26875. }
  26876. .downIcon {
  26877. width: 20px;
  26878. min-width: 20px;
  26879. height: 20px;
  26880. margin-right: 15px;
  26881. cursor: pointer;
  26882. }
  26883. .downIcon > img {
  26884. width: 100%;
  26885. height: 100%;
  26886. }
  26887. .noVedio {
  26888. display: flex;
  26889. flex-direction: row;
  26890. justify-content: center;
  26891. align-content: center;
  26892. }
  26893. .noNavText {
  26894. cursor: pointer;
  26895. margin: 0px 0px 10px 5px;
  26896. width: 112px;
  26897. }
  26898. .listNoVedio {
  26899. margin: 0 0 0 30px;
  26900. width: 97%;
  26901. }
  26902. .video-player >>> .video-js {
  26903. height: 100%;
  26904. }
  26905. .hangVedioList {
  26906. width: 90% !important;
  26907. height: 150px !important;
  26908. margin: 20px 0 0 30px;
  26909. }
  26910. .hangVedio {
  26911. width: 100%;
  26912. height: 170px !important;
  26913. align-items: flex-start !important;
  26914. }
  26915. .hangHand {
  26916. height: 150px !important;
  26917. }
  26918. .twoChild {
  26919. width: 95%;
  26920. margin: 10px;
  26921. border-radius: 5px;
  26922. background: #f2f2f2;
  26923. display: flex;
  26924. flex-direction: column;
  26925. flex-wrap: nowrap;
  26926. justify-content: flex-start;
  26927. align-items: flex-start;
  26928. transition: all 0.5s;
  26929. overflow: hidden;
  26930. height: 0;
  26931. background: #e7f3ff;
  26932. }
  26933. .twoChild > div:nth-child(1) {
  26934. margin-top: 5px;
  26935. }
  26936. .navChild {
  26937. width: 100%;
  26938. cursor: pointer;
  26939. margin-bottom: 10px;
  26940. position: relative;
  26941. }
  26942. .navChild img {
  26943. position: absolute;
  26944. right: 11px;
  26945. width: 15px;
  26946. top: 50%;
  26947. transform: translateY(-50%);
  26948. }
  26949. .navActive,
  26950. .toolActive {
  26951. height: auto !important;
  26952. overflow: auto !important;
  26953. /* padding-bottom: 16px; */
  26954. }
  26955. .toolActive {
  26956. padding: 0;
  26957. }
  26958. .navTask {
  26959. display: flex;
  26960. flex-direction: row;
  26961. flex-wrap: nowrap;
  26962. align-items: center;
  26963. align-content: flex-start;
  26964. height: 40px;
  26965. justify-content: flex-start;
  26966. padding: 0 10px;
  26967. width: 100%;
  26968. box-sizing: border-box;
  26969. }
  26970. .navTaskname {
  26971. white-space: nowrap;
  26972. text-overflow: ellipsis;
  26973. overflow: hidden;
  26974. word-break: break-all;
  26975. padding-left: 5px;
  26976. }
  26977. .openTaskActive {
  26978. /* background-color: #e0eafb !important;
  26979. color: #0061ff; */
  26980. color:#fff;
  26981. background: rgb(55, 129, 252) !important;
  26982. }
  26983. .iframeName {
  26984. margin: 5px 0;
  26985. border-left: 4px solid #41c4a4;
  26986. padding-left: 4px;
  26987. }
  26988. .toolTitle {
  26989. margin: 0px 0px 20px;
  26990. font-size: 20px;
  26991. font-weight: 500;
  26992. border-left: 4px solid #41c4a4;
  26993. padding-left: 4px;
  26994. }
  26995. .cru_selectBox {
  26996. overflow: auto;
  26997. width: 95%;
  26998. margin: 17px auto 0;
  26999. height: calc(100% - 40px - 21px - 20px - 17px);
  27000. background: #fff;
  27001. border-radius: 8px;
  27002. }
  27003. .cru_selectBox::-webkit-scrollbar,
  27004. .study_top::-webkit-scrollbar,
  27005. .textContent::-webkit-scrollbar {
  27006. /*滚动条整体样式*/
  27007. width: 6px;
  27008. /*高宽分别对应横竖滚动条的尺寸*/
  27009. height: 6px;
  27010. }
  27011. /*定义滚动条轨道 内阴影+圆角*/
  27012. .cru_selectBox::-webkit-scrollbar-track,
  27013. .study_top::-webkit-scrollbar-track,
  27014. .textContent::-webkit-scrollbar {
  27015. border-radius: 10px;
  27016. background-color: #b8bdc9;
  27017. }
  27018. /*定义滑块 内阴影+圆角*/
  27019. .cru_selectBox::-webkit-scrollbar-thumb,
  27020. .study_top::-webkit-scrollbar-thumb,
  27021. .textContent::-webkit-scrollbar-thumb {
  27022. border-radius: 10px;
  27023. -webkit-box-shadow: inset 0 0 6px rgb(96, 125, 184);
  27024. background-color: #2c5ab3;
  27025. }
  27026. .vedioBox {
  27027. border-radius: 0 0 20px 20px;
  27028. background: #fff;
  27029. overflow: auto;
  27030. }
  27031. .taskBox {
  27032. width: 98%;
  27033. background: #f0f4fa;
  27034. margin: 10px auto;
  27035. padding: 0 10px;
  27036. border-radius: 4px;
  27037. box-sizing: border-box;
  27038. }
  27039. .vedioTaskBox {
  27040. width: 100%;
  27041. display: flex;
  27042. flex-direction: row;
  27043. flex-wrap: nowrap;
  27044. align-items: flex-start;
  27045. position: relative;
  27046. }
  27047. .toolBox {
  27048. margin: 15px 0 0 25px;
  27049. display: flex;
  27050. position: relative;
  27051. padding: 18px 20px;
  27052. border-top-left-radius: 5px;
  27053. border-top-right-radius: 5px;
  27054. width: 90%;
  27055. }
  27056. .btnAll {
  27057. position: absolute;
  27058. right: 0;
  27059. display: flex;
  27060. flex-direction: row;
  27061. flex-wrap: nowrap;
  27062. align-items: center;
  27063. }
  27064. .btnLeft,
  27065. .btnRight {
  27066. display: flex;
  27067. flex-direction: row;
  27068. flex-wrap: nowrap;
  27069. align-items: center;
  27070. padding: 5px 0;
  27071. }
  27072. .btnLeft {
  27073. border-right: 1px solid #cad1dc;
  27074. }
  27075. .btnLeft > .custom-tooltip {
  27076. background: #3681fc;
  27077. color: #fff;
  27078. }
  27079. .last:hover {
  27080. background: #3383fa !important;
  27081. color: #fff;
  27082. border: 1px solid #3383fa !important;
  27083. }
  27084. .last,
  27085. .returnBtn1 {
  27086. width: 90px;
  27087. height: 36px;
  27088. background: #ffffff;
  27089. border-radius: 4px;
  27090. border: 1px solid #0061ff;
  27091. color: #0061ff;
  27092. cursor: pointer;
  27093. display: flex;
  27094. flex-direction: row;
  27095. flex-wrap: nowrap;
  27096. align-items: center;
  27097. justify-content: center;
  27098. margin-left: 12px;
  27099. }
  27100. .returnBtn1 {
  27101. background: #f0f4fa;
  27102. border-radius: 4px;
  27103. border: 1px solid #cad1dc;
  27104. margin: 0 12px;
  27105. }
  27106. .lastImg {
  27107. min-width: 15px;
  27108. width: 15px;
  27109. height: 15px;
  27110. display: flex;
  27111. }
  27112. .lastText {
  27113. padding: 0 5px 0 5px;
  27114. box-sizing: border-box;
  27115. font-size: 14px;
  27116. }
  27117. .lastImg > img {
  27118. width: 100%;
  27119. height: 100%;
  27120. }
  27121. /* .vedioTimeBox {
  27122. display: flex;
  27123. flex-direction: row;
  27124. align-items: center;
  27125. flex-wrap: nowrap;
  27126. position: relative;
  27127. } */
  27128. .navBox {
  27129. background: #fff;
  27130. height: calc(100% - 40px);
  27131. overflow-y: auto;
  27132. overflow-x: hidden;
  27133. }
  27134. .worksBox {
  27135. margin: 0 0 10px 25px;
  27136. border-bottom: 1px solid #eeeeee;
  27137. padding: 18px 20px;
  27138. border-radius: 4px;
  27139. width: 90%;
  27140. }
  27141. .worksBTitle {
  27142. font-size: 20px;
  27143. padding-bottom: 15px;
  27144. border-bottom: 1px solid #eeeeee;
  27145. display: flex;
  27146. align-items: center;
  27147. }
  27148. .greenBox {
  27149. width: 5px;
  27150. height: 30px;
  27151. background: #63b6fa;
  27152. margin-right: 5px;
  27153. }
  27154. .worksDetailBox {
  27155. display: flex;
  27156. width: 100%;
  27157. flex-direction: row;
  27158. flex-wrap: wrap;
  27159. align-items: flex-end;
  27160. justify-content: flex-start;
  27161. padding: 15px 5px;
  27162. box-sizing: border-box;
  27163. }
  27164. .works {
  27165. display: flex;
  27166. flex-direction: column;
  27167. flex-wrap: nowrap;
  27168. align-items: flex-start;
  27169. justify-content: flex-start;
  27170. align-content: center;
  27171. max-width: 240px;
  27172. width: calc(100% / 3 - 10px);
  27173. height: auto;
  27174. margin-right: 10px;
  27175. margin-bottom: 10px;
  27176. overflow: hidden;
  27177. height: 140px;
  27178. box-shadow: 0 0 6px 1px #dfdada;
  27179. border-radius: 15px;
  27180. }
  27181. .workImg {
  27182. width: 100%;
  27183. /* height: calc(100% - 40px); */
  27184. height: 105px;
  27185. position: relative;
  27186. }
  27187. .workImg > img {
  27188. width: 100%;
  27189. height: 100%;
  27190. object-fit: contain;
  27191. cursor: pointer;
  27192. }
  27193. .worksName {
  27194. height: 40px;
  27195. line-height: 40px;
  27196. display: flex;
  27197. width: 100%;
  27198. flex-direction: row;
  27199. flex-wrap: nowrap;
  27200. justify-content: space-between;
  27201. align-items: center;
  27202. margin: 0 0 0 10px;
  27203. }
  27204. .worksName > div:nth-child(1) {
  27205. width: 110px;
  27206. white-space: nowrap;
  27207. overflow: hidden;
  27208. text-overflow: ellipsis;
  27209. }
  27210. .worksName > div:nth-child(2) {
  27211. color: #b7b4b5;
  27212. }
  27213. .noWorksS {
  27214. padding: 15px 0;
  27215. display: flex;
  27216. flex-direction: row;
  27217. flex-wrap: wrap;
  27218. align-items: center;
  27219. justify-content: flex-start;
  27220. }
  27221. .noWorksName,
  27222. .isWorksName,
  27223. .isWorksName2 {
  27224. background: #ddebf8;
  27225. color: #000;
  27226. width: 90px;
  27227. height: 25px;
  27228. text-align: center;
  27229. line-height: 25px;
  27230. border-radius: 4px;
  27231. margin: 10px 15px 10px 0;
  27232. white-space: nowrap;
  27233. overflow: hidden;
  27234. padding: 5px;
  27235. text-overflow: ellipsis;
  27236. cursor: pointer;
  27237. border: 1px solid #ddebf8;
  27238. }
  27239. .noWorksName {
  27240. background: #fff;
  27241. color: #0061ff;
  27242. border: 1px solid #0061ff;
  27243. }
  27244. .noWorksName > span{
  27245. max-width: 100%;
  27246. display: block;
  27247. overflow: hidden;
  27248. text-overflow: ellipsis;
  27249. white-space: nowrap;
  27250. }
  27251. .noWorksName2 {
  27252. background: #fff;
  27253. color: #0061ff;
  27254. width: 90px;
  27255. height: 25px;
  27256. text-align: center;
  27257. line-height: 25px;
  27258. border-radius: 4px;
  27259. margin: 10px 15px 10px 0;
  27260. white-space: nowrap;
  27261. overflow: hidden;
  27262. padding: 5px;
  27263. text-overflow: ellipsis;
  27264. cursor: pointer;
  27265. border: 1px solid #0061ff;
  27266. }
  27267. .noWorksName2 > span {
  27268. max-width: 100%;
  27269. display: block;
  27270. overflow: hidden;
  27271. text-overflow: ellipsis;
  27272. white-space: nowrap;
  27273. }
  27274. .isWorksName2 {
  27275. width: 100px;
  27276. height: 40px;
  27277. line-height: 40px;
  27278. position: relative;
  27279. background: #dae6f9;
  27280. }
  27281. .isWorksName {
  27282. background: #e7ebf1 !important;
  27283. width: 100px;
  27284. height: 40px;
  27285. line-height: 40px;
  27286. position: relative;
  27287. color: #acb4bf;
  27288. border: 1px solid #cad1dc !important;
  27289. }
  27290. .isSelectName,
  27291. .noWorksName:hover {
  27292. background: #3383fa !important;
  27293. color: #fff !important;
  27294. border: 1px solid #3383fa !important;
  27295. }
  27296. .title {
  27297. background: #1e5cc9;
  27298. /* width: 98%; */
  27299. height: 45px;
  27300. color: #fff;
  27301. line-height: 45px;
  27302. padding-left: 20px;
  27303. box-sizing: border-box;
  27304. }
  27305. .textBox {
  27306. font-size: 20px;
  27307. width: 90%;
  27308. display: flex;
  27309. flex-direction: column;
  27310. align-items: center;
  27311. margin: 20px auto 0;
  27312. max-height: calc(100% - 75px);
  27313. overflow: auto;
  27314. }
  27315. .textContent {
  27316. font-size: 18px;
  27317. width: 95%;
  27318. max-width: 95%;
  27319. }
  27320. .answerBg {
  27321. background: url("../../assets/icon/answerBgNew.png") no-repeat;
  27322. background-size: 100% 100%;
  27323. width: 100%;
  27324. height: 100%;
  27325. color: #fff;
  27326. text-align: center;
  27327. display: flex;
  27328. flex-direction: column;
  27329. flex-wrap: nowrap;
  27330. align-items: center;
  27331. position: relative;
  27332. justify-content: center;
  27333. }
  27334. /* .answerBg > div:nth-child(1) { */
  27335. /* font-size: 22px;
  27336. padding: 25px 0 10px; */
  27337. /* } */
  27338. .answerContent {
  27339. width: 215px;
  27340. max-height: 60px;
  27341. word-break: break-all;
  27342. text-align: center;
  27343. /* white-space: nowrap; */
  27344. overflow: hidden;
  27345. text-overflow: ellipsis;
  27346. /* padding: 23px 0 0; */
  27347. -webkit-line-clamp: 3;
  27348. -webkit-box-orient: vertical;
  27349. display: -webkit-box;
  27350. font-size: 15px;
  27351. cursor: pointer;
  27352. }
  27353. .elist_input_box {
  27354. display: flex;
  27355. align-items: flex-start;
  27356. flex-wrap: nowrap;
  27357. padding: 10px 0 15px 30px;
  27358. flex-direction: column;
  27359. }
  27360. .elist_input {
  27361. /* width: 40%; */
  27362. width: 45%;
  27363. margin: 20px;
  27364. }
  27365. .elist_input .elist_input_box input {
  27366. font: inherit;
  27367. color: currentColor;
  27368. width: 200px;
  27369. padding: 8px 14px;
  27370. display: block;
  27371. min-width: 0;
  27372. outline: none;
  27373. border: 1px solid rgba(0, 0, 0, 0.23);
  27374. border-radius: 4px;
  27375. box-sizing: border-box;
  27376. background: #fff;
  27377. margin: 0 20px 0 0;
  27378. }
  27379. .elist_input .elist_input_box span {
  27380. height: 36px;
  27381. line-height: 36px;
  27382. color: rgb(82, 82, 82);
  27383. }
  27384. .elist_input .elist_input_box .remove {
  27385. height: 20px;
  27386. width: 20px;
  27387. background-size: 100% 100%;
  27388. background-position: unset;
  27389. margin-left: 5px;
  27390. }
  27391. .elist_input_box >>> .el-rate {
  27392. display: flex;
  27393. height: 36px;
  27394. align-items: center;
  27395. }
  27396. .elist_input_box .elist_inptu_text {
  27397. min-height: 50px;
  27398. /* width: 500px;
  27399. max-height: 150px; */
  27400. width: 100%;
  27401. line-height: 50px;
  27402. color: rgb(82, 82, 82);
  27403. overflow: auto;
  27404. text-indent: 5px;
  27405. background: #f7f6f9;
  27406. border-radius: 10px;
  27407. }
  27408. .elist_input_box .elist_inptu_text input {
  27409. width: 500px;
  27410. }
  27411. .elist_input_box >>> .el-rate__icon {
  27412. font-size: 24px;
  27413. }
  27414. .isClick {
  27415. background: #4d9def;
  27416. }
  27417. .bzBox {
  27418. display: flex;
  27419. flex-direction: row;
  27420. align-items: center;
  27421. }
  27422. .bzBox .yCss {
  27423. width: 7px;
  27424. height: 7px;
  27425. background: #fff;
  27426. margin: 0 16px 0 6px;
  27427. border-radius: 50%;
  27428. border: 5px solid #3681fc;
  27429. z-index: 99;
  27430. }
  27431. .bzBox > div:nth-child(2) {
  27432. font-size: 18px;
  27433. font-weight: bold;
  27434. color: #0e1e33;
  27435. }
  27436. .navTitile {
  27437. padding: 0 0px 0 15px;
  27438. font-size: 16px;
  27439. font-weight: bold;
  27440. color: #0e1e33;
  27441. height: 40px;
  27442. line-height: 40px;
  27443. }
  27444. .isTypeOne {
  27445. width: 240px;
  27446. height: 170px;
  27447. /* border: 1px solid #f8f8f8; */
  27448. border-radius: 10px;
  27449. box-shadow: 0 0 6px 1px #dfdada;
  27450. }
  27451. .e_add_top {
  27452. display: flex;
  27453. justify-content: space-between;
  27454. padding: 10px 20px;
  27455. border-radius: 3px;
  27456. background: #fff;
  27457. }
  27458. .e_add_title2 {
  27459. display: flex;
  27460. align-items: center;
  27461. }
  27462. .e_add_title2 span {
  27463. width: 40px;
  27464. }
  27465. .e_add_title {
  27466. display: flex;
  27467. align-items: center;
  27468. color: #b8b8b8;
  27469. font-size: 18px;
  27470. position: relative;
  27471. height: 40px;
  27472. }
  27473. .e_add_title span {
  27474. margin-right: 10px;
  27475. }
  27476. .e_add_title .el_input {
  27477. width: 300px;
  27478. }
  27479. .e_add_title >>> .el-input__inner {
  27480. width: 400px;
  27481. }
  27482. /* .e_add_btn {
  27483. } */
  27484. .e_add_content {
  27485. display: flex;
  27486. width: 100%;
  27487. max-width: 650px;
  27488. height: 550px;
  27489. }
  27490. .e_add_list {
  27491. background: #fff;
  27492. height: 500px;
  27493. width: 210px;
  27494. position: relative;
  27495. margin: 15px 5px 0 0;
  27496. flex-shrink: 0;
  27497. display: flex;
  27498. flex-direction: column;
  27499. }
  27500. .e_add_list_title {
  27501. font-size: 20px;
  27502. width: 100%;
  27503. box-sizing: border-box;
  27504. padding: 15px 40px;
  27505. text-align: center;
  27506. border-bottom: 1px solid #eaeaea;
  27507. position: relative;
  27508. display: flex;
  27509. align-items: center;
  27510. justify-content: center;
  27511. height: 57px;
  27512. background: #f6f6f6;
  27513. }
  27514. .e_add_list_title span {
  27515. overflow: hidden;
  27516. white-space: nowrap;
  27517. text-overflow: ellipsis;
  27518. }
  27519. .e_add_list_title img {
  27520. position: absolute;
  27521. right: 15px;
  27522. width: 25px;
  27523. cursor: pointer;
  27524. top: 50%;
  27525. transform: translateY(-50%);
  27526. }
  27527. .e_add_list_body {
  27528. height: calc(100% - 187px);
  27529. overflow: auto;
  27530. }
  27531. .e_add_list_child {
  27532. width: 100%;
  27533. display: flex;
  27534. align-items: center;
  27535. justify-content: center;
  27536. position: relative;
  27537. box-sizing: border-box;
  27538. padding: 15px 40px;
  27539. text-align: center;
  27540. }
  27541. .e_add_list_child span {
  27542. overflow: hidden;
  27543. white-space: nowrap;
  27544. text-overflow: ellipsis;
  27545. cursor: pointer;
  27546. }
  27547. .e_add_list_child img {
  27548. position: absolute;
  27549. right: 10px;
  27550. width: 21px;
  27551. cursor: pointer;
  27552. top: 50%;
  27553. transform: translateY(-50%);
  27554. }
  27555. .e_add_list_child + .e_add_list_child {
  27556. border-top: 1px solid #eaeaea;
  27557. }
  27558. .e_add_list_child .active {
  27559. color: #409eff;
  27560. }
  27561. .e_add_list_btn {
  27562. position: absolute;
  27563. bottom: 0;
  27564. height: 50px;
  27565. background: rgb(120, 120, 254);
  27566. width: 100%;
  27567. color: #fff;
  27568. font-size: 16px;
  27569. text-align: center;
  27570. line-height: 50px;
  27571. cursor: pointer;
  27572. }
  27573. .e_add_list_detail {
  27574. position: absolute;
  27575. bottom: 0;
  27576. height: 130px;
  27577. background: rgb(120, 120, 254);
  27578. width: 100%;
  27579. color: #fff;
  27580. font-size: 16px;
  27581. display: flex;
  27582. align-items: center;
  27583. justify-content: center;
  27584. }
  27585. .e_add_list_detail textarea {
  27586. height: 90%;
  27587. width: 95%;
  27588. border: none;
  27589. resize: none;
  27590. outline: none;
  27591. padding: 5px;
  27592. box-sizing: border-box;
  27593. }
  27594. .e_add_list_pbox {
  27595. width: 100%;
  27596. max-width: 650px;
  27597. /* height: 600px; */
  27598. }
  27599. .e_add_list_pbox_title {
  27600. height: 50px;
  27601. background: #fff;
  27602. display: flex;
  27603. align-items: center;
  27604. width: 100%;
  27605. box-sizing: border-box;
  27606. padding: 0 20px;
  27607. }
  27608. .type_title {
  27609. font-size: 18px;
  27610. font-weight: 700;
  27611. }
  27612. .type_content {
  27613. font-size: 16px;
  27614. /* margin-left: 30px; */
  27615. }
  27616. .type_content span + span {
  27617. margin-left: 20px;
  27618. }
  27619. .type_content span {
  27620. cursor: pointer;
  27621. padding-bottom: 5px;
  27622. box-sizing: border-box;
  27623. }
  27624. .type_content .active {
  27625. color: #409eff;
  27626. border-bottom: 2px solid #409eff;
  27627. }
  27628. .e_add_list_pbox_content {
  27629. height: calc(100% - 50px);
  27630. display: flex;
  27631. align-items: center;
  27632. width: 100%;
  27633. background: #fff;
  27634. }
  27635. .evaCss {
  27636. display: flex;
  27637. flex-direction: row;
  27638. flex-wrap: nowrap;
  27639. align-items: flex-start;
  27640. padding: 0 0 20px;
  27641. }
  27642. .cru_line {
  27643. position: absolute;
  27644. bottom: 0px;
  27645. transition: all 0.5s;
  27646. left: 0px;
  27647. width: 125px;
  27648. margin-left: -25px;
  27649. }
  27650. .isNoMessage {
  27651. width: 20%;
  27652. margin: 25% auto 0;
  27653. }
  27654. .isNoMessage > img {
  27655. width: 100%;
  27656. height: 100%;
  27657. }
  27658. .fullStyle >>> .el-dialog__body {
  27659. height: 100% !important;
  27660. }
  27661. .fullStyle >>> .el-dialog,
  27662. .fullStyle {
  27663. width: 100% !important;
  27664. max-width: 100% !important;
  27665. height: 100% !important;
  27666. margin: 0 !important;
  27667. }
  27668. .full_diy >>> .el-dialog {
  27669. margin: 0 !important;
  27670. height: 100%;
  27671. padding: 4px;
  27672. }
  27673. .full_diy >>> .el-dialog__body {
  27674. height: calc(100% - 100px);
  27675. }
  27676. .full_diy2 >>> .el-dialog__body {
  27677. height: calc(100% - 50px);
  27678. padding: 0;
  27679. }
  27680. .switchCss {
  27681. /* width: 100%; */
  27682. display: flex;
  27683. flex-direction: row;
  27684. flex-wrap: nowrap;
  27685. align-items: center;
  27686. /* justify-content: center; */
  27687. }
  27688. .isClickNav {
  27689. /* color: #499eef; */
  27690. color: #000;
  27691. }
  27692. .commentImg {
  27693. width: 25px;
  27694. height: 25px;
  27695. cursor: pointer;
  27696. }
  27697. .commentImg > img {
  27698. width: 100%;
  27699. height: 100%;
  27700. }
  27701. .comment {
  27702. background: #f9f9f9;
  27703. border-radius: 0 0 4px 4px;
  27704. display: flex;
  27705. flex-direction: row;
  27706. flex-wrap: nowrap;
  27707. align-items: center;
  27708. justify-content: flex-end;
  27709. height: 35px;
  27710. }
  27711. .commentList {
  27712. display: flex;
  27713. flex-direction: row;
  27714. flex-wrap: nowrap;
  27715. align-items: center;
  27716. justify-content: center;
  27717. align-content: center;
  27718. /* margin-left: 15px; */
  27719. /* margin-left: 8px; */
  27720. }
  27721. .scoreImg {
  27722. width: 17px;
  27723. height: 17px;
  27724. }
  27725. .studentDetail {
  27726. display: flex;
  27727. flex-direction: row;
  27728. flex-wrap: nowrap;
  27729. /* align-items: center; */
  27730. align-items: flex-start;
  27731. }
  27732. .tx {
  27733. width: 50px;
  27734. }
  27735. .tx > img {
  27736. width: 100%;
  27737. height: 100%;
  27738. }
  27739. .nameAndTime {
  27740. display: flex;
  27741. flex-direction: column;
  27742. flex-wrap: nowrap;
  27743. align-items: flex-start;
  27744. margin-left: 10px;
  27745. }
  27746. .worksAnswer {
  27747. color: #4078dd;
  27748. margin: 10px 0;
  27749. font-size: 16px;
  27750. position: relative;
  27751. }
  27752. .worksAnswer > img {
  27753. width: 500px;
  27754. height: 300px;
  27755. object-fit: contain;
  27756. margin: 0 auto;
  27757. display: block;
  27758. }
  27759. .commentTop {
  27760. border-bottom: 1px solid #eaeaea;
  27761. padding-bottom: 10px;
  27762. }
  27763. .commentBox {
  27764. padding-top: 15px;
  27765. }
  27766. .pl {
  27767. font-size: 18px;
  27768. }
  27769. .plPerson {
  27770. width: 100%;
  27771. }
  27772. .plName {
  27773. display: flex;
  27774. flex-direction: row;
  27775. flex-wrap: nowrap;
  27776. align-items: baseline;
  27777. color: #78787a;
  27778. width: 100%;
  27779. }
  27780. .deleteComment {
  27781. cursor: pointer;
  27782. margin-left: auto;
  27783. color: #237ade;
  27784. }
  27785. .plContent {
  27786. margin-top: 5px;
  27787. }
  27788. .evalCss {
  27789. background: #fff;
  27790. font-size: 18px;
  27791. }
  27792. .nav {
  27793. color: #9d9d9d;
  27794. padding: 5px 0 15px 20px;
  27795. }
  27796. .middleBox {
  27797. padding: 5px 0 15px 20px;
  27798. }
  27799. .pfBox {
  27800. padding-bottom: 30px;
  27801. }
  27802. .nameAndrate {
  27803. display: flex;
  27804. flex-direction: row;
  27805. flex-wrap: nowrap;
  27806. align-items: center;
  27807. padding-bottom: 10px;
  27808. height: 30px;
  27809. line-height: 30px;
  27810. }
  27811. .nameAndrate > div {
  27812. margin-left: 10px;
  27813. color: #000;
  27814. height: 30px;
  27815. }
  27816. .nameAndrate >>> .el-rate__icon {
  27817. font-size: 28px !important;
  27818. }
  27819. .pfBox > div:nth-child(2) {
  27820. background: #f7f6f9;
  27821. width: 400px;
  27822. min-height: 45px;
  27823. border-radius: 10px;
  27824. font-size: 16px;
  27825. display: flex;
  27826. flex-wrap: wrap;
  27827. align-items: center;
  27828. padding: 10px 20px;
  27829. box-sizing: border-box;
  27830. color: #000;
  27831. }
  27832. .bz {
  27833. display: flex;
  27834. flex-direction: row;
  27835. flex-wrap: nowrap;
  27836. align-items: flex-start;
  27837. }
  27838. .bz > div {
  27839. padding: 0 10px;
  27840. }
  27841. .select_box2_title {
  27842. background: #fff;
  27843. border-radius: 5px;
  27844. padding: 15px 10px;
  27845. box-sizing: border-box;
  27846. margin-bottom: 10px;
  27847. display: flex;
  27848. flex-direction: row;
  27849. flex-wrap: nowrap;
  27850. align-items: center;
  27851. }
  27852. .select_box2_title > div:nth-child(2) {
  27853. margin-left: 10px;
  27854. color: #c4c4c4;
  27855. }
  27856. .select_box2_box {
  27857. display: flex;
  27858. height: 500px;
  27859. }
  27860. .select_box2_img {
  27861. width: calc(100% - 310px);
  27862. height: 100%;
  27863. overflow: auto;
  27864. background: #fff;
  27865. border-radius: 5px;
  27866. }
  27867. .select_box2_img img {
  27868. width: 100%;
  27869. }
  27870. .select_box2_answer {
  27871. background: #fff;
  27872. margin-left: 10px;
  27873. border-radius: 5px;
  27874. width: 300px;
  27875. overflow: auto;
  27876. height: 90%;
  27877. display: flex;
  27878. flex-direction: column;
  27879. align-items: flex-start;
  27880. padding-top: 10px;
  27881. box-sizing: border-box;
  27882. position: relative;
  27883. }
  27884. .select_answer_title {
  27885. padding: 0 0 15px 20px;
  27886. color: #c4c4c4;
  27887. }
  27888. .select_box2_answer_box {
  27889. margin: 0 0 10px 20px;
  27890. width: 85%;
  27891. display: flex;
  27892. flex-direction: row;
  27893. flex-wrap: nowrap;
  27894. align-items: center;
  27895. }
  27896. .select_box2_answer_box >>> .el-input.is-disabled .el-input__inner {
  27897. color: #000;
  27898. }
  27899. .upAnswerCss {
  27900. position: absolute;
  27901. bottom: 15px;
  27902. right: 15px;
  27903. }
  27904. .upAnswerCss >>> .el-button {
  27905. width: 95px;
  27906. height: 35px;
  27907. line-height: 35px;
  27908. padding: 0;
  27909. }
  27910. .rightWidthCss {
  27911. width: 60%;
  27912. display: flex;
  27913. flex-direction: row;
  27914. align-items: flex-start;
  27915. }
  27916. .rightAnswer {
  27917. display: flex;
  27918. flex-direction: row;
  27919. flex-wrap: nowrap;
  27920. align-items: center;
  27921. color: red;
  27922. margin-bottom: 31px;
  27923. }
  27924. .rightAnswerCss {
  27925. display: flex;
  27926. flex-direction: column;
  27927. flex-wrap: nowrap;
  27928. padding-top: 60px;
  27929. }
  27930. .blueCss {
  27931. color: #767de1;
  27932. margin-left: 10px;
  27933. }
  27934. .redCss {
  27935. color: red;
  27936. }
  27937. .redioStyle >>> .el-radio__input.is-checked + .el-radio__label {
  27938. color: rgb(0 123 255) !important;
  27939. }
  27940. .redioStyle >>> .el-checkbox__input.is-checked + .el-checkbox__label {
  27941. color: rgb(0 123 255) !important;
  27942. }
  27943. .zuoyeYulan {
  27944. padding-top: 0;
  27945. font-size: 18px;
  27946. display: flex;
  27947. align-items: flex-end;
  27948. }
  27949. .buttonA {
  27950. margin-left: 10px;
  27951. padding: 0;
  27952. }
  27953. .displayBox {
  27954. margin-bottom: 10px;
  27955. display: block;
  27956. border-bottom: 3px solid #eee;
  27957. display: flex;
  27958. align-items: center;
  27959. }
  27960. .easy_comment {
  27961. width: calc(100% - 90px);
  27962. margin-left: 10px;
  27963. display: flex;
  27964. flex-wrap: wrap;
  27965. }
  27966. .easy_comment > div {
  27967. border: 1px solid #4a4a4a;
  27968. color: #666;
  27969. border-radius: 15px;
  27970. padding: 5px 10px;
  27971. font-size: 16px;
  27972. margin-bottom: 10px;
  27973. margin-right: 5px;
  27974. cursor: pointer;
  27975. }
  27976. .easy_comment div:hover {
  27977. border: 1px solid #f7ba2a;
  27978. color: #c69217;
  27979. }
  27980. .xuan_right_box {
  27981. padding: 10px 0;
  27982. background: #f0f4fa;
  27983. margin: 0 15px 0 25px;
  27984. border-bottom-left-radius: 5px;
  27985. border-bottom-right-radius: 5px;
  27986. width: 91.5%;
  27987. }
  27988. .tool_right_box {
  27989. display: flex;
  27990. align-items: center;
  27991. }
  27992. .tool_right_box >>> .katex {
  27993. font-size: 16px;
  27994. }
  27995. .tool_right_box + .tool_right_box {
  27996. margin-top: 10px;
  27997. }
  27998. .right_box_xuan {
  27999. border-radius: 5px;
  28000. padding: 5px;
  28001. margin-left: 10px;
  28002. min-width: 85px;
  28003. background: #fff;
  28004. color: #0061ff;
  28005. border: 1px solid #0061ff;
  28006. font-size: 14px;
  28007. }
  28008. .pButton:hover {
  28009. opacity: 1 !important;
  28010. }
  28011. .pButton {
  28012. position: fixed;
  28013. text-align: center;
  28014. cursor: pointer;
  28015. z-index: 999;
  28016. right: 20px;
  28017. top: 110px;
  28018. width: 50px;
  28019. height: 50px;
  28020. display: flex;
  28021. align-items: center;
  28022. justify-content: center;
  28023. border-radius: 5px;
  28024. }
  28025. .pzClass {
  28026. width: calc(100% - 340px);
  28027. }
  28028. .newDialogCss {
  28029. /* position: fixed;
  28030. right: 5%;
  28031. top: 50%;
  28032. width: 340px;
  28033. transform: translateY(-50%);
  28034. height: 60%;
  28035. box-shadow: 0px 0 8px 0px #555555;
  28036. border-radius: 15px;
  28037. z-index: 999; */
  28038. position: fixed;
  28039. right: 20px;
  28040. top: 101px;
  28041. width: 330px;
  28042. height: calc(100% - 80px);
  28043. z-index: 999;
  28044. background: #fff;
  28045. border-top-right-radius: 0px;
  28046. border-bottom-right-radius: 0px;
  28047. overflow: hidden;
  28048. }
  28049. .newDialogCss>.scoreList{
  28050. width:100%;
  28051. height:100%;
  28052. box-sizing:border-box;
  28053. padding:10px 15px;
  28054. overflow:auto;
  28055. padding-bottom:80px;
  28056. }
  28057. .pzTop {
  28058. color: #fff;
  28059. background: #000;
  28060. display: flex;
  28061. flex-direction: row;
  28062. flex-wrap: nowrap;
  28063. align-items: center;
  28064. justify-content: space-between;
  28065. height: 40px;
  28066. border-radius: 15px 15px 0 0;
  28067. user-select: none;
  28068. }
  28069. .pzTop2 .checkbox {
  28070. display: flex;
  28071. align-items: center;
  28072. padding: 5px 10px;
  28073. flex: 0 0 auto;
  28074. font-weight: bold;
  28075. border-bottom: 1px solid #eee;
  28076. justify-content: space-between;
  28077. }
  28078. .checkbox>.cb-tabList{
  28079. display:flex;
  28080. align-items:center;
  28081. }
  28082. .cb-tabList>div{
  28083. margin-right:20px;
  28084. font-weight:400;
  28085. cursor:pointer;
  28086. }
  28087. .cb-tabList>.cb-tabItem{
  28088. color:#1684FC;
  28089. position:relative;
  28090. }
  28091. .cb-tabItem::after{
  28092. content:"";
  28093. width:100%;
  28094. height:2px;
  28095. background:#1684FC;
  28096. position:absolute;
  28097. bottom:-5px;
  28098. left:0
  28099. }
  28100. .pzTop2 .check {
  28101. text-align: center;
  28102. cursor: pointer;
  28103. box-sizing: border-box;
  28104. display: flex;
  28105. }
  28106. .pzTop2 img {
  28107. width: 25px;
  28108. cursor: pointer;
  28109. }
  28110. .pzTop > div:nth-child(1) {
  28111. padding-left: 10px;
  28112. }
  28113. .pzTop > div:nth-child(2) {
  28114. width: 15px;
  28115. height: 15px;
  28116. padding-right: 10px;
  28117. cursor: pointer;
  28118. }
  28119. .pzTop > div:nth-child(2) > img {
  28120. width: 100%;
  28121. height: 100%;
  28122. }
  28123. .pzBox,
  28124. .noPzBox {
  28125. height: calc(100% - 60px);
  28126. /* background: #ededed; */
  28127. background: #fff;
  28128. /* border-radius: 0 0 15px 15px; */
  28129. }
  28130. .noPzBox {
  28131. display: flex;
  28132. flex-direction: column;
  28133. flex-wrap: nowrap;
  28134. justify-content: center;
  28135. align-items: center;
  28136. }
  28137. .pzList {
  28138. background: #f7f7f7;
  28139. width: 90%;
  28140. margin: 0 auto 15px;
  28141. border-radius: 5px;
  28142. }
  28143. .pzNavTop {
  28144. display: flex;
  28145. flex-direction: row;
  28146. flex-wrap: nowrap;
  28147. padding: 10px 10px 0 10px;
  28148. align-items: center;
  28149. }
  28150. .pzDelete {
  28151. cursor: pointer;
  28152. margin-left: auto;
  28153. font-size: 14px;
  28154. color: #afafaf;
  28155. }
  28156. .pzNavTop > div:nth-child(1) {
  28157. background: #3760af;
  28158. width: 35px;
  28159. height: 35px;
  28160. color: #fff;
  28161. text-align: center;
  28162. line-height: 35px;
  28163. border-radius: 50%;
  28164. font-size: 14px;
  28165. }
  28166. .pzNavTop > div:nth-child(2) {
  28167. font-size: 18px;
  28168. color: #959595;
  28169. margin-left: 5px;
  28170. }
  28171. .pzContent {
  28172. padding: 10px;
  28173. word-break: break-word;
  28174. }
  28175. .pzContent audio {
  28176. width: 100%;
  28177. }
  28178. .pzContent audio::-webkit-media-controls-panel {
  28179. background: #fff;
  28180. }
  28181. .pzContent >>> img {
  28182. max-width: 100%;
  28183. }
  28184. .pzListBox {
  28185. padding-top: 15px;
  28186. height: calc(100% - 110px);
  28187. overflow: auto;
  28188. }
  28189. .addPzButton {
  28190. position: relative;
  28191. margin-top: 3px;
  28192. width: 100%;
  28193. }
  28194. .addPzButton .img1 {
  28195. position: absolute;
  28196. top: 50%;
  28197. right: 25px;
  28198. transform: translateY(-50%);
  28199. height: 100%;
  28200. display: flex;
  28201. align-items: center;
  28202. }
  28203. .addPzButton .img1 div {
  28204. display: flex;
  28205. }
  28206. .addPzButton .img1 div img {
  28207. width: 28px;
  28208. margin-left: 10px;
  28209. cursor: pointer;
  28210. }
  28211. .addPzButton .img1 div span {
  28212. font-size: 14px;
  28213. margin: 4px 0 0 3px;
  28214. color: #afafaf;
  28215. }
  28216. .addPz {
  28217. background: #4b79ce;
  28218. width: 100px;
  28219. color: #fff;
  28220. font-size: 12px;
  28221. height: 30px;
  28222. margin: 0 auto;
  28223. text-align: center;
  28224. line-height: 30px;
  28225. border-radius: 10px;
  28226. cursor: pointer;
  28227. }
  28228. .addDialogCss {
  28229. position: fixed;
  28230. width: 600px;
  28231. height: 70%;
  28232. min-height: 450px;
  28233. box-shadow: 0px 0 8px 0px #555555;
  28234. border-radius: 15px;
  28235. z-index: 999;
  28236. left: 50%;
  28237. top: 50%;
  28238. margin: -18% 0 0 -300px;
  28239. }
  28240. .teacherPz {
  28241. display: flex;
  28242. flex-direction: row;
  28243. align-items: center;
  28244. flex-wrap: nowrap;
  28245. }
  28246. .teacherPzImg {
  28247. width: 30px;
  28248. height: 30px;
  28249. }
  28250. .teacherPzImg > img {
  28251. width: 100%;
  28252. height: 100%;
  28253. }
  28254. .addPzBox {
  28255. height: calc(100% - 40px);
  28256. background: #ededed;
  28257. border-bottom-left-radius: 15px;
  28258. border-bottom-right-radius: 15px;
  28259. }
  28260. .pzAudioClass {
  28261. margin: 15px 14px;
  28262. background: #fff;
  28263. height: 100%;
  28264. display: flex;
  28265. justify-content: center;
  28266. align-items: center;
  28267. }
  28268. .pzConText {
  28269. width: 95%;
  28270. height: 100%;
  28271. margin: 10px auto 0;
  28272. border: none;
  28273. background: #fff;
  28274. border-radius: 0px;
  28275. }
  28276. .pzConText >>> .text {
  28277. height: calc(100% - 82px);
  28278. }
  28279. .addTextCss {
  28280. background: #4b79ce;
  28281. width: 80px;
  28282. height: 30px;
  28283. text-align: center;
  28284. color: #fff;
  28285. line-height: 30px;
  28286. border-radius: 10px;
  28287. margin: 10px auto 0;
  28288. cursor: pointer;
  28289. }
  28290. .pzConText:focus-visible {
  28291. border: none !important;
  28292. }
  28293. .maxWidth {
  28294. width: 1000px;
  28295. }
  28296. .noPz {
  28297. width: 150px;
  28298. margin: 0 auto 20%;
  28299. }
  28300. .noPz > img {
  28301. width: 100%;
  28302. height: 100%;
  28303. }
  28304. .timeAndReply {
  28305. display: flex;
  28306. flex-direction: row;
  28307. flex-wrap: nowrap;
  28308. justify-content: space-between;
  28309. align-items: center;
  28310. font-size: 14px;
  28311. box-sizing: border-box;
  28312. padding: 0 10px 10px 0px;
  28313. }
  28314. .timeAndReply .time {
  28315. color: #bfbfbf;
  28316. padding: 0 0 0 10px;
  28317. box-sizing: border-box;
  28318. }
  28319. .timeAndReply > div:last-child {
  28320. cursor: pointer;
  28321. color: #777;
  28322. }
  28323. /* table 样式 */
  28324. .cont >>> table {
  28325. border-top: 1px solid #ccc;
  28326. border-left: 1px solid #ccc;
  28327. }
  28328. .cont >>> table td,
  28329. .cont >>> table th {
  28330. border-bottom: 1px solid #ccc;
  28331. border-right: 1px solid #ccc;
  28332. /* padding: 20px 5px; */
  28333. padding: 5px 10px;
  28334. max-width: 0px;
  28335. height: 30px;
  28336. vertical-align: baseline;
  28337. box-sizing: border-box;
  28338. }
  28339. .cont >>> table th {
  28340. border-bottom: 2px solid #ccc;
  28341. text-align: center;
  28342. }
  28343. /* blockquote 样式 */
  28344. .cont >>> blockquote {
  28345. display: block;
  28346. border-left: 8px solid #d0e5f2;
  28347. padding: 5px 10px;
  28348. margin: 10px 0;
  28349. line-height: 1.4;
  28350. font-size: 100%;
  28351. background-color: #f1f1f1;
  28352. }
  28353. /* code 样式 */
  28354. .cont >>> code {
  28355. display: inline-block;
  28356. /* *display: inline; */
  28357. zoom: 1;
  28358. background-color: #f1f1f1;
  28359. border-radius: 3px;
  28360. padding: 3px 5px;
  28361. margin: 0 3px;
  28362. }
  28363. .cont >>> pre code {
  28364. display: block;
  28365. }
  28366. /* ul ol 样式 */
  28367. .cont >>> ul,
  28368. ol {
  28369. margin: 10px 0 10px 20px;
  28370. }
  28371. .addPzCheck {
  28372. display: flex;
  28373. flex-direction: row;
  28374. flex-wrap: nowrap;
  28375. padding: 10px 15px 0;
  28376. }
  28377. .addPzCheck span {
  28378. cursor: pointer;
  28379. padding-bottom: 5px;
  28380. font-weight: bold;
  28381. }
  28382. .addPzCheck span + span {
  28383. margin-left: 10px;
  28384. }
  28385. .addPzCheck .isChooseActive {
  28386. color: #3e88f4;
  28387. border-bottom: 2px solid #2f80f3;
  28388. }
  28389. /* code 样式 */
  28390. .cont {
  28391. /* -webkit-user-modify: read-write; */
  28392. overflow-wrap: break-word;
  28393. -webkit-line-break: after-white-space;
  28394. word-break: break-word;
  28395. white-space: pre-line;
  28396. }
  28397. .scoreBox,
  28398. .scoreDetailBox {
  28399. display: flex;
  28400. align-items: center;
  28401. justify-content: flex-start;
  28402. margin-top: 20px;
  28403. font-size: 18px;
  28404. width: 100%;
  28405. }
  28406. .scoreBox .t,
  28407. .scoreDetailBox .t {
  28408. margin-right: 10px;
  28409. width: 100px;
  28410. text-align: right;
  28411. }
  28412. .scoreDetailBox {
  28413. align-items: flex-start;
  28414. }
  28415. .scoreDetailBox >>> .el-textarea {
  28416. width: calc(100% - 200px);
  28417. }
  28418. .scoreBox >>> .el-input {
  28419. width: 130px;
  28420. font-size: 38px;
  28421. }
  28422. .scoreBox >>> .el-input__inner {
  28423. height: 60px;
  28424. }
  28425. .answerScore {
  28426. position: absolute;
  28427. top: 10px;
  28428. right: 10px;
  28429. background: #0000008f;
  28430. border-radius: 5px;
  28431. padding: 3px 5px;
  28432. font-size: 14px;
  28433. color: #fff;
  28434. cursor: pointer;
  28435. }
  28436. .open_box .switch_box {
  28437. width: 100%;
  28438. margin: 0 auto;
  28439. display: flex;
  28440. justify-content: space-between;
  28441. }
  28442. .open_box .switch_box + .switch_box {
  28443. margin-top: 10px;
  28444. }
  28445. .deleteImg,.deleteImg1 {
  28446. width: 25px !important;
  28447. height: 25px !important;
  28448. cursor: pointer;
  28449. position: absolute;
  28450. top: 10px;
  28451. right: 10px;
  28452. }
  28453. .deleteImg2 {
  28454. width: 23px !important;
  28455. height: 23px !important;
  28456. top: 5px;
  28457. right: 5px;
  28458. }
  28459. .deleteImg1{
  28460. width: 23px !important;
  28461. height: 23px !important;
  28462. top: 5px !important;
  28463. right: 30px !important;
  28464. }
  28465. .rightW {
  28466. right: 40px;
  28467. }
  28468. .drawPBox {
  28469. display: flex;
  28470. flex-direction: column;
  28471. position: relative;
  28472. }
  28473. .drawPBox span {
  28474. font-size: 18px;
  28475. color: #606266;
  28476. padding-bottom: 10px;
  28477. margin: 10px 0;
  28478. border-bottom: 1px solid #eaeaea;
  28479. }
  28480. .drawPBox img {
  28481. width: 500px;
  28482. height: 300px;
  28483. object-fit: contain;
  28484. cursor: pointer;
  28485. margin: 0 auto;
  28486. }
  28487. .sentenBox {
  28488. background: #fff;
  28489. height: 450px;
  28490. overflow: auto;
  28491. background-image: url("../../assets/icon/conSentences/stuBg.png");
  28492. background-position: 102%;
  28493. background-repeat: no-repeat;
  28494. background-size: 60%;
  28495. }
  28496. .addSen {
  28497. background: #409efe;
  28498. width: 90px;
  28499. color: #fff;
  28500. height: 35px;
  28501. text-align: center;
  28502. line-height: 35px;
  28503. border-radius: 5px;
  28504. float: right;
  28505. margin: 10px 20px 0 0;
  28506. cursor: pointer;
  28507. }
  28508. .sentenTop {
  28509. display: flex;
  28510. flex-direction: row;
  28511. flex-wrap: nowrap;
  28512. align-items: center;
  28513. padding: 55px 0 0 20px;
  28514. box-sizing: border-box;
  28515. }
  28516. .sentenTop > div:nth-child(2) {
  28517. width: 300px;
  28518. margin: 0 15px;
  28519. }
  28520. .sentenTop > div:nth-child(3) {
  28521. background: #409efe;
  28522. color: #fff;
  28523. width: 65px;
  28524. height: 35px;
  28525. text-align: center;
  28526. line-height: 35px;
  28527. border-radius: 5px;
  28528. cursor: pointer;
  28529. }
  28530. .cardList,
  28531. .cardList1 {
  28532. padding: 10px 0 10px 0;
  28533. display: flex;
  28534. flex-direction: row;
  28535. flex-wrap: wrap;
  28536. align-items: center;
  28537. box-sizing: border-box;
  28538. border-bottom: 1px solid #f4f4f4;
  28539. width: 98%;
  28540. margin: 0 auto;
  28541. min-width: 60%;
  28542. max-width: 85%;
  28543. }
  28544. .cardList1 {
  28545. padding: 10px 0 10px 10px !important;
  28546. margin: 0 !important;
  28547. }
  28548. .cardBox {
  28549. display: flex;
  28550. flex-direction: row;
  28551. flex-wrap: wrap;
  28552. align-items: center;
  28553. align-content: center;
  28554. }
  28555. .cardBox > div {
  28556. margin-bottom: 10px;
  28557. }
  28558. .isCard,
  28559. .isChooseCard,
  28560. .noCard,
  28561. .isCard1 {
  28562. min-width: 130px;
  28563. width: auto;
  28564. height: 60px;
  28565. text-align: center;
  28566. line-height: 60px;
  28567. font-size: 20px;
  28568. cursor: pointer;
  28569. background-image: url("../../assets/icon/conSentences/titleBorder.png");
  28570. background-size: cover;
  28571. transition: all 2s;
  28572. margin-right: 20px;
  28573. background-size: 100% 100%;
  28574. padding: 0 20px;
  28575. box-sizing: border-box;
  28576. }
  28577. .isCard > div,
  28578. .noCard > div,
  28579. .isCard1 > div {
  28580. white-space: nowrap;
  28581. overflow: hidden;
  28582. text-overflow: ellipsis;
  28583. width: 100%;
  28584. margin: 0 auto;
  28585. }
  28586. .noCard {
  28587. background-image: none;
  28588. }
  28589. .isCard1 {
  28590. background-image: url("../../assets/icon/conSentences/answerBorder.png");
  28591. }
  28592. .isChooseCard {
  28593. background-image: none;
  28594. border: 1px dashed #b9b9b9;
  28595. border-radius: 10px;
  28596. }
  28597. .card {
  28598. width: 130px;
  28599. height: 60px;
  28600. }
  28601. .card > img {
  28602. width: 100%;
  28603. height: 100%;
  28604. }
  28605. .rightCardBox {
  28606. margin: 10px 0 0 10px;
  28607. }
  28608. .rightCardBox > div:nth-child(1) {
  28609. margin-bottom: 10px;
  28610. }
  28611. .cardCss {
  28612. display: flex;
  28613. flex-direction: column;
  28614. flex-wrap: nowrap;
  28615. align-items: center;
  28616. border-bottom: 3px solid #b4c3d3;
  28617. padding: 0 0 5px 0;
  28618. margin-right: 10px;
  28619. }
  28620. .cardCss > div:nth-child(2) {
  28621. background: #5b7b9d;
  28622. color: #fff;
  28623. width: 20px;
  28624. height: 20px;
  28625. border-radius: 50%;
  28626. text-align: center;
  28627. line-height: 20px;
  28628. }
  28629. .isWrong {
  28630. display: flex;
  28631. flex-direction: row;
  28632. flex-wrap: nowrap;
  28633. align-content: center;
  28634. align-items: center;
  28635. }
  28636. .answerRight {
  28637. width: 25%;
  28638. }
  28639. .isTj {
  28640. display: flex;
  28641. flex-direction: row;
  28642. flex-wrap: nowrap;
  28643. align-items: center;
  28644. }
  28645. .isTj > div:nth-child(2) {
  28646. color: #727070;
  28647. margin-left: 10px;
  28648. }
  28649. .isTjImg {
  28650. width: 30px;
  28651. height: 30px;
  28652. }
  28653. .isTjImg > img {
  28654. width: 100%;
  28655. height: 100%;
  28656. }
  28657. .cardAnswerBox {
  28658. font-size: 18px;
  28659. width: 97%;
  28660. border: 5px;
  28661. padding: 0;
  28662. border-radius: 5px;
  28663. margin: 10px auto;
  28664. word-break: break-word;
  28665. }
  28666. .w_name {
  28667. margin-bottom: 10px;
  28668. }
  28669. .w_name span {
  28670. font-size: 16px;
  28671. }
  28672. .w_teachert {
  28673. width: 50px !important;
  28674. position: absolute;
  28675. height: auto !important;
  28676. z-index: 10;
  28677. right: 25px;
  28678. top: -25px;
  28679. }
  28680. /* .group_workBox {
  28681. } */
  28682. .group_workBox + .group_workBox {
  28683. margin-top: 20px;
  28684. }
  28685. .group_box {
  28686. padding-bottom: 20px;
  28687. border-bottom: 2px solid #f0f0f0;
  28688. margin-top: 10px;
  28689. }
  28690. .group_title {
  28691. display: flex;
  28692. align-items: center;
  28693. justify-content: space-between;
  28694. width: 95%;
  28695. }
  28696. .group_name {
  28697. background-image: url(../../assets/icon/groupN.png);
  28698. width: 220px;
  28699. background-size: 100% 100%;
  28700. height: 67px;
  28701. padding: 0 20px 0 43px;
  28702. box-sizing: border-box;
  28703. line-height: 63px;
  28704. color: #fff;
  28705. overflow: hidden;
  28706. white-space: nowrap;
  28707. text-overflow: ellipsis;
  28708. }
  28709. .group_work {
  28710. width: 100%;
  28711. padding: 0 10px;
  28712. box-sizing: border-box;
  28713. display: flex;
  28714. flex-wrap: wrap;
  28715. }
  28716. .g_d_box {
  28717. display: flex;
  28718. flex-flow: wrap;
  28719. justify-content: space-around;
  28720. }
  28721. .g_d_box .isChair {
  28722. background-image: url(../../assets/avatar.png) !important;
  28723. }
  28724. .g_d_group {
  28725. width: 500px;
  28726. margin-bottom: 80px;
  28727. }
  28728. .g_d_group_chair {
  28729. display: flex;
  28730. align-items: center;
  28731. justify-content: center;
  28732. }
  28733. .g_d_group_chair > div + div {
  28734. margin-left: 30px;
  28735. }
  28736. .g_d_group_chair > div,
  28737. .g_d_group_chair2 > div {
  28738. display: flex;
  28739. flex-direction: column;
  28740. align-items: center;
  28741. }
  28742. .g_d_group_chair > div > span:nth-child(1),
  28743. .g_d_group_chair2 > div > span:nth-child(1) {
  28744. background-image: url(../../assets/icon/chair.png);
  28745. width: 50px;
  28746. height: 50px;
  28747. display: block;
  28748. background-size: 100% 100%;
  28749. }
  28750. .g_d_group_tableBox {
  28751. display: flex;
  28752. align-items: center;
  28753. justify-content: center;
  28754. }
  28755. .g_d_group_chair2 {
  28756. display: flex;
  28757. flex-direction: column;
  28758. align-items: center;
  28759. justify-content: center;
  28760. }
  28761. .g_d_group_chair2 > div + div {
  28762. margin-top: 10px;
  28763. }
  28764. .g_d_group_table {
  28765. background-image: url(../../assets/icon/groupBg.png);
  28766. width: 354px;
  28767. height: 196px;
  28768. background-size: 100% 100%;
  28769. display: flex;
  28770. align-items: center;
  28771. justify-content: center;
  28772. flex-direction: column;
  28773. color: #fff;
  28774. }
  28775. .g_d_group_table > div:nth-child(1) {
  28776. font-size: 24px;
  28777. margin-bottom: 5px;
  28778. }
  28779. .g_d_group_table > div:nth-child(2) div {
  28780. cursor: pointer;
  28781. background: #2e77bf;
  28782. padding: 4px 10px;
  28783. border-radius: 5px;
  28784. }
  28785. /* .groupBox {
  28786. } */
  28787. .groupContent + .groupContent {
  28788. margin-top: 30px;
  28789. }
  28790. .groupTitle {
  28791. font-size: 24px;
  28792. color: rgb(80, 80, 80);
  28793. margin-bottom: 20px;
  28794. }
  28795. .groupName {
  28796. display: flex;
  28797. align-items: center;
  28798. }
  28799. .groupn {
  28800. font-size: 15px;
  28801. margin-right: 10px;
  28802. }
  28803. .groupName + .groupName {
  28804. margin-top: 15px;
  28805. }
  28806. .groupBtn {
  28807. margin-left: 10px;
  28808. }
  28809. .groupContent >>> .el-input-number.is-without-controls .el-input__inner {
  28810. text-align: left;
  28811. }
  28812. .g_d_btnBox {
  28813. display: flex;
  28814. justify-content: flex-end;
  28815. align-items: center;
  28816. margin-bottom: 20px;
  28817. }
  28818. .updateChair {
  28819. position: relative;
  28820. }
  28821. .updateChairBtn {
  28822. position: absolute;
  28823. width: 50px;
  28824. height: 50px;
  28825. overflow: hidden;
  28826. /* display: flex; */
  28827. align-items: center;
  28828. justify-content: center;
  28829. background: #00000087;
  28830. color: #fff;
  28831. border-radius: 50px;
  28832. display: none;
  28833. cursor: pointer;
  28834. }
  28835. .updateChair:hover .updateChairBtn {
  28836. display: flex;
  28837. }
  28838. .group_staic_box {
  28839. display: flex;
  28840. padding: 30px 40px 10px;
  28841. flex-wrap: wrap;
  28842. }
  28843. .group_staic {
  28844. /* width: 50%; */
  28845. margin-bottom: 20px;
  28846. display: flex;
  28847. align-items: center;
  28848. }
  28849. .group_staic span:nth-child(1) {
  28850. width: 150px;
  28851. text-align: right;
  28852. margin-right: 15px;
  28853. }
  28854. .group_staic span:nth-child(2) {
  28855. background: rgb(0 123 255);
  28856. color: #fff;
  28857. border-radius: 5px;
  28858. padding: 5px;
  28859. }
  28860. .codeFileBox {
  28861. height: 300px;
  28862. background: #fff;
  28863. display: flex;
  28864. align-items: center;
  28865. justify-content: center;
  28866. }
  28867. .codeFileBox img {
  28868. width: 200px;
  28869. margin: 0;
  28870. height: auto;
  28871. }
  28872. .codeFileBox div {
  28873. background: rgb(80, 142, 226);
  28874. color: #fff;
  28875. padding: 10px 20px;
  28876. border-radius: 25px;
  28877. cursor: pointer;
  28878. margin-left: 15px;
  28879. }
  28880. .radioBox {
  28881. display: flex;
  28882. flex-direction: column;
  28883. flex-wrap: nowrap;
  28884. align-items: flex-start;
  28885. }
  28886. .radioBox > div {
  28887. margin: 10px 0 0 10px;
  28888. }
  28889. /* .radioBox >>> .el-radio__input,
  28890. .radioBox >>> .el-checkbox__inner {
  28891. margin-left: 10px;
  28892. } */
  28893. .radioBox >>> .el-radio__label,
  28894. .radioBox >>> .el-checkbox__label {
  28895. display: flex;
  28896. align-items: center;
  28897. width: 100%;
  28898. }
  28899. .radioBox >>> .el-radio__label > span {
  28900. width: 100%;
  28901. display: -webkit-box;
  28902. overflow: hidden;
  28903. white-space: normal !important;
  28904. text-overflow: ellipsis;
  28905. word-wrap: break-word;
  28906. }
  28907. .inImg {
  28908. width: 100px;
  28909. cursor: pointer;
  28910. }
  28911. .inImg > img {
  28912. width: 100%;
  28913. height: 100%;
  28914. object-fit: cover;
  28915. }
  28916. .timuImgBox {
  28917. margin: 10px 0;
  28918. display: flex;
  28919. flex-direction: column;
  28920. flex-wrap: wrap;
  28921. align-items: flex-start;
  28922. }
  28923. .timuImg {
  28924. width: 150px;
  28925. margin: 5px 0;
  28926. cursor: pointer;
  28927. }
  28928. .timuImg > img {
  28929. width: 100%;
  28930. height: 100%;
  28931. object-fit: cover;
  28932. }
  28933. .worksTop {
  28934. display: flex;
  28935. flex-direction: row;
  28936. align-items: flex-end;
  28937. }
  28938. .worksTitle {
  28939. display: flex;
  28940. flex-direction: row;
  28941. flex-wrap: nowrap;
  28942. align-items: center;
  28943. }
  28944. .worksTitle::before,
  28945. .worksTop::before {
  28946. content: "";
  28947. display: block;
  28948. width: 3px;
  28949. height: 20px;
  28950. background: #0061ff;
  28951. border-radius: 3px;
  28952. margin: 0 5px 0 0;
  28953. }
  28954. .corOpen {
  28955. margin: 0 0 0 10px;
  28956. font-size: 14px;
  28957. cursor: pointer;
  28958. color: #505050;
  28959. }
  28960. .corOpen:hover {
  28961. color: #499eef;
  28962. }
  28963. .navCorOpenBox {
  28964. display: flex;
  28965. flex-direction: row;
  28966. align-items: center;
  28967. justify-content: space-between;
  28968. height: 55px;
  28969. background: #ffffff;
  28970. box-shadow: 0px 3px 6px 1px rgba(0, 0, 0, 0.1);
  28971. border-radius: 8px 8px 0px 0px;
  28972. z-index: 9;
  28973. position: relative;
  28974. }
  28975. .navCorOpen {
  28976. padding-right: 15px;
  28977. cursor: pointer;
  28978. width: 45px;
  28979. display: flex;
  28980. }
  28981. .navCorOpen > img {
  28982. width: 100%;
  28983. height: 100%;
  28984. }
  28985. .mlImg {
  28986. width: 40px !important;
  28987. min-width: 40px;
  28988. cursor: pointer;
  28989. transform: rotate(180deg);
  28990. }
  28991. .mlImg > img {
  28992. width: 100%;
  28993. height: 100%;
  28994. }
  28995. .navLeftCss {
  28996. width: 100% !important;
  28997. left: 0 !important;
  28998. }
  28999. .isContentCss {
  29000. width: 100% !important;
  29001. }
  29002. .isAllWidth {
  29003. width: 100% !important;
  29004. }
  29005. .group_switch {
  29006. margin-right: 10px;
  29007. height: 30px;
  29008. display: flex;
  29009. align-items: center;
  29010. }
  29011. .group_switch > span {
  29012. margin-right: 5px;
  29013. }
  29014. .fileC_box {
  29015. padding-top: 15px;
  29016. }
  29017. .fileC_box > .fileC_title {
  29018. padding: 10px 5px 14px 10px;
  29019. border-top: 1px solid #cad1dc;
  29020. font-size: 14px;
  29021. font-weight: 400;
  29022. color: #cad1dc;
  29023. width: calc(100% - 20px);
  29024. margin: 0 auto;
  29025. box-sizing: border-box;
  29026. }
  29027. .pl_select_box {
  29028. height: 40px;
  29029. line-height: 40px;
  29030. width: 100%;
  29031. cursor: pointer;
  29032. padding: 0 20px;
  29033. box-sizing: border-box;
  29034. border-radius: 5px;
  29035. border: 1px solid #d6d6d6;
  29036. white-space: nowrap;
  29037. overflow: hidden;
  29038. text-overflow: ellipsis;
  29039. background: #fff;
  29040. text-align: left;
  29041. }
  29042. .newButton {
  29043. width: 102px;
  29044. height: 36px;
  29045. background: #e7ebf1;
  29046. border-radius: 4px;
  29047. color: #0e1e33;
  29048. font-weight: 400;
  29049. font-size: 14px;
  29050. border: none;
  29051. float: right;
  29052. margin-left: 10px;
  29053. }
  29054. .el-table >>> .even_row {
  29055. background-color: #f0f4fa;
  29056. }
  29057. .stageBoxCss,
  29058. .stageBoxIsCss {
  29059. display: flex;
  29060. flex-direction: row;
  29061. flex-wrap: nowrap;
  29062. align-items: center;
  29063. height: 50px;
  29064. border-bottom: 1px solid #e2f5fc;
  29065. cursor: pointer;
  29066. width: 100%;
  29067. }
  29068. .stageBoxIsCss {
  29069. background: #0061ff;
  29070. color: #fff;
  29071. border-radius: 8px;
  29072. }
  29073. .closeTri,
  29074. .closeTri1 {
  29075. min-width: 15px;
  29076. width: 15px;
  29077. height: 15px;
  29078. }
  29079. .closeTri1 {
  29080. padding-left: 10px;
  29081. cursor: pointer;
  29082. }
  29083. .closeTri > img,
  29084. .closeTri1 > img {
  29085. width: 100%;
  29086. height: 100%;
  29087. /* transition: all .5s; */
  29088. }
  29089. .noToolBlue {
  29090. min-width: 10px;
  29091. width: 10px;
  29092. height: 10px;
  29093. background: #0061ff;
  29094. border-radius: 50%;
  29095. margin-left: 13px;
  29096. }
  29097. .stageChild,
  29098. .toolChild {
  29099. height: 0;
  29100. overflow: hidden;
  29101. transition: all 0.5s;
  29102. }
  29103. /* .toolChild { */
  29104. /* margin: 0 0 0 17px;
  29105. padding: 0 0 0 20px;
  29106. border-left: 1px solid #d7d7d7; */
  29107. /* } */
  29108. .toolChild > div + div{
  29109. margin-top:5px;
  29110. }
  29111. .gjCss {
  29112. display: flex;
  29113. flex-direction: row;
  29114. flex-wrap: nowrap;
  29115. align-items: center;
  29116. padding: 10px 0 10px 40px;
  29117. box-sizing: border-box;
  29118. font-size: 14px;
  29119. cursor: pointer;
  29120. border-radius:5px;
  29121. }
  29122. .toolChild > div {
  29123. position: relative;
  29124. width: 100%;
  29125. }
  29126. /* .toolChild > div::before { */
  29127. /* content: "";
  29128. width: 15px;
  29129. height: 1px;
  29130. background: #cad1dc;
  29131. position: absolute;
  29132. top: 24px;
  29133. left: -20px;
  29134. display: block; */
  29135. /* } */
  29136. .isGjCss {
  29137. /* color: #0061ff; */
  29138. color:#fff;
  29139. background: rgb(55, 129, 252);
  29140. /* background-color: #e0eafb !important;
  29141. color: #0061ff !important; */
  29142. }
  29143. .navItem {
  29144. background: #ffffff;
  29145. border-radius: 4px;
  29146. width: 100%;
  29147. margin: 10px auto;
  29148. position: relative;
  29149. height: 40px;
  29150. display: flex;
  29151. flex-direction: row;
  29152. flex-wrap: nowrap;
  29153. align-items: center;
  29154. }
  29155. .navItemList {
  29156. display: flex;
  29157. flex-direction: row;
  29158. flex-wrap: nowrap;
  29159. align-items: center;
  29160. padding: 0 13px;
  29161. cursor: pointer;
  29162. width: calc(100% - 60px);
  29163. height: 100%;
  29164. }
  29165. .navItemList > div:first-child {
  29166. min-width: 60px;
  29167. }
  29168. .navItemList > div:last-child {
  29169. width: calc(100% - 80px);
  29170. white-space: nowrap;
  29171. overflow: hidden;
  29172. text-overflow: ellipsis;
  29173. word-break: break-word;
  29174. }
  29175. /* .isItemList > div {
  29176. color: #fff !important;
  29177. } */
  29178. .tool_work_box {
  29179. width: 100%;
  29180. padding: 0 37px 0;
  29181. box-sizing: border-box;
  29182. }
  29183. .tool_box {
  29184. width: 100%;
  29185. padding: 0 0 0 20px;
  29186. }
  29187. .tool_type_box {
  29188. display: flex;
  29189. flex-direction: row;
  29190. align-items: baseline;
  29191. flex-wrap: nowrap;
  29192. justify-content: flex-start;
  29193. position: relative;
  29194. }
  29195. .toolSort {
  29196. display: flex;
  29197. flex-direction: row;
  29198. flex-wrap: wrap;
  29199. justify-content: flex-start;
  29200. align-items: flex-start;
  29201. padding: 0 0 15px 0;
  29202. }
  29203. .toolSort > div {
  29204. margin: 0 10px 0 0;
  29205. width: 135px;
  29206. box-sizing: border-box;
  29207. border: 2px solid transparent;
  29208. }
  29209. .tools {
  29210. width: 100%;
  29211. display: flex;
  29212. flex-direction: column;
  29213. flex-wrap: nowrap;
  29214. align-items: flex-start;
  29215. }
  29216. .whiteBIcon {
  29217. width: fit-content;
  29218. cursor: pointer;
  29219. display: flex;
  29220. flex-direction: column;
  29221. flex-wrap: nowrap;
  29222. align-items: center;
  29223. font-size: 14px;
  29224. }
  29225. .tool:hover {
  29226. border: 2px solid #a5c7ff;
  29227. border-radius: 5px;
  29228. }
  29229. .whiteBIcon > img {
  29230. width: 65px;
  29231. height: 100%;
  29232. }
  29233. .whiteBIcon > img {
  29234. box-shadow: 0px 4px 8px 0px rgb(44 133 255 / 14%);
  29235. border-radius: 15px;
  29236. }
  29237. .check {
  29238. /* width: 20px;
  29239. height: 20px; */
  29240. cursor: pointer;
  29241. margin: 10px 0;
  29242. position: absolute;
  29243. right: 2px;
  29244. top: -5px;
  29245. }
  29246. .noChoose,
  29247. .isChoose {
  29248. width: 15px;
  29249. height: 15px;
  29250. border-radius: 50%;
  29251. border: 1px solid #adadad;
  29252. }
  29253. .isChoose {
  29254. border: 4px solid #0363ff !important;
  29255. width: 10px;
  29256. height: 10px;
  29257. }
  29258. .isToolChoose {
  29259. border: 2px solid #5394ff !important;
  29260. border-radius: 5px;
  29261. box-shadow: 0 0 6px 0px #5394ff;
  29262. }
  29263. .checkDiv {
  29264. display: flex;
  29265. align-items: center;
  29266. }
  29267. .checkDiv span {
  29268. margin-left: 5px;
  29269. color: #858585;
  29270. }
  29271. .check img {
  29272. width: 20px;
  29273. height: 20px;
  29274. }
  29275. .lockTaskIcon {
  29276. width: 20px;
  29277. height: 20px;
  29278. position: absolute;
  29279. right: 10px;
  29280. top: 10px;
  29281. }
  29282. .lockTaskIcon > img {
  29283. width: 100%;
  29284. height: 100%;
  29285. }
  29286. .pick_box {
  29287. display: flex;
  29288. align-items: flex-start;
  29289. flex-wrap: wrap;
  29290. }
  29291. .selectBox {
  29292. width: 110px;
  29293. margin-left: 10px;
  29294. margin: 0 10px 0 auto;
  29295. }
  29296. .selectBox >>> .el-input__inner {
  29297. height: 30px;
  29298. line-height: 30px;
  29299. }
  29300. .selectBox >>> .el-input__icon {
  29301. line-height: 30px;
  29302. }
  29303. .sentenceTitle {
  29304. display: flex;
  29305. flex-direction: row;
  29306. flex-wrap: nowrap;
  29307. align-items: center;
  29308. }
  29309. .sentenceTitle::before {
  29310. content: attr(index);
  29311. background: #3681fc;
  29312. border-radius: 50%;
  29313. color: #fff;
  29314. width: 25px;
  29315. height: 25px;
  29316. min-width: 25px;
  29317. min-height: 25px;
  29318. text-align: center;
  29319. line-height: 25px;
  29320. margin-right: 5px;
  29321. }
  29322. .hfBox {
  29323. padding: 10px;
  29324. box-sizing: border-box;
  29325. }
  29326. .whoReplyWho {
  29327. display: flex;
  29328. flex-direction: row;
  29329. flex-wrap: nowrap;
  29330. align-items: baseline;
  29331. justify-content: flex-start;
  29332. }
  29333. .hfBottom {
  29334. display: flex;
  29335. flex-direction: row;
  29336. flex-wrap: nowrap;
  29337. align-items: center;
  29338. justify-content: space-between;
  29339. font-size: 14px;
  29340. }
  29341. .deleteHfItem {
  29342. cursor: pointer;
  29343. width: 20px;
  29344. height: 20px;
  29345. }
  29346. .deleteHfItem > img {
  29347. width: 100%;
  29348. height: 100%;
  29349. }
  29350. .whoReplyWho > .hfImg {
  29351. width: 12px;
  29352. height: 12px;
  29353. margin: 0 5px;
  29354. }
  29355. .whoReplyWho > .hfImg > img {
  29356. width: 100%;
  29357. height: 100%;
  29358. }
  29359. .hfContent {
  29360. padding-top: 10px;
  29361. box-sizing: border-box;
  29362. display: -webkit-box;
  29363. overflow: hidden;
  29364. white-space: normal !important;
  29365. text-overflow: ellipsis;
  29366. word-wrap: break-word;
  29367. -webkit-box-orient: vertical;
  29368. }
  29369. .hfTime {
  29370. text-align: left;
  29371. box-sizing: border-box;
  29372. padding: 10px 0 10px 0px;
  29373. color: #bfbfbf;
  29374. font-size: 14px;
  29375. }
  29376. .btnAllNT {
  29377. position: fixed;
  29378. bottom: 100px;
  29379. right: 40px;
  29380. z-index: 999;
  29381. display: flex;
  29382. flex-direction: row;
  29383. }
  29384. .btnAllNT > img {
  29385. cursor: pointer;
  29386. width: 80px;
  29387. }
  29388. .toolMask {
  29389. position: fixed;
  29390. width: 100%;
  29391. height: 100%;
  29392. background: #3f3c3c;
  29393. opacity: 0.5;
  29394. top: 0;
  29395. left: 0;
  29396. z-index: 999;
  29397. }
  29398. .addToolCss {
  29399. position: fixed;
  29400. z-index: 999;
  29401. background: #fff;
  29402. right: 5%;
  29403. bottom: 18%;
  29404. min-width: 1035px;
  29405. min-height: 300px;
  29406. border-radius: 10px;
  29407. box-shadow: 0 0 8px 1px #b2b2b2;
  29408. }
  29409. .toolTop {
  29410. display: flex;
  29411. flex-direction: row;
  29412. flex-wrap: nowrap;
  29413. justify-content: space-between;
  29414. align-items: center;
  29415. padding: 20px;
  29416. }
  29417. .toolTop > div:nth-child(2) {
  29418. width: 15px;
  29419. height: 15px;
  29420. padding-right: 10px;
  29421. cursor: pointer;
  29422. }
  29423. .toolTop > div:nth-child(2) > img {
  29424. width: 100%;
  29425. height: 100%;
  29426. }
  29427. .fullStyle>>>.el-dialog__body {
  29428. height: calc(100% - 125px) !important;
  29429. box-sizing: border-box;
  29430. padding: 30px 0 !important;
  29431. background: #fff !important;
  29432. }
  29433. .fullStyle>>>.el-dialog {
  29434. width: 100% !important;
  29435. max-width: 100% !important;
  29436. height: 100% !important;
  29437. margin: 0 !important;
  29438. }
  29439. .fullStyle {
  29440. width: 100% !important;
  29441. max-width: 100% !important;
  29442. height: 100% !important;
  29443. margin: 0 auto !important;
  29444. }
  29445. .fullStyle>>>.el-dialog__footer{
  29446. background: #fff !important;
  29447. }
  29448. .engUpBox {
  29449. width: 100%;
  29450. height: 100%;
  29451. }
  29452. .engTitle,
  29453. .engText {
  29454. display: flex;
  29455. flex-direction: row;
  29456. flex-wrap: nowrap;
  29457. align-items: flex-start;
  29458. padding: 0 20px 20px 20px;
  29459. box-sizing: border-box;
  29460. }
  29461. .engTitle > .div:first-child,
  29462. .engText > div:first-child {
  29463. min-width: 75px;
  29464. }
  29465. .correctBox{
  29466. width: 100%;
  29467. display: flex;
  29468. flex-direction: row;
  29469. flex-wrap: nowrap;
  29470. align-items: flex-start;
  29471. }
  29472. .oldBox{
  29473. width: 50%;
  29474. height: 100%;
  29475. display: flex;
  29476. flex-direction: column;
  29477. flex-wrap: nowrap;
  29478. align-items: center;
  29479. border-top: 1px solid #d9d9d9;
  29480. border-left: 1px solid #d9d9d9;
  29481. border-right: 1px solid #d9d9d9;
  29482. }
  29483. .oldBox>div:first-child{
  29484. width: 100%;
  29485. text-align: center;
  29486. background: #d9d9d9;
  29487. height: 35px;
  29488. line-height: 35px;
  29489. font-weight: bold;
  29490. }
  29491. .oldText{
  29492. width: 100%;
  29493. height: calc(100% - 35px);
  29494. overflow: auto;
  29495. margin: 10px 0;
  29496. display: flex;
  29497. flex-direction: column;
  29498. flex-wrap: nowrap;
  29499. align-content: center;
  29500. align-items: center;
  29501. }
  29502. .detailBox{
  29503. width: 50%;
  29504. padding: 10px;
  29505. background: #f6f6f6;
  29506. border-radius: 5px;
  29507. }
  29508. .oldDetail,.oldDetail1{
  29509. padding-bottom: 30px;
  29510. }
  29511. .oldImg{
  29512. width:30px;
  29513. height: 30px;
  29514. }
  29515. .oldImg>img{
  29516. width: 100%;
  29517. height: 100%;
  29518. }
  29519. .allName{
  29520. min-width: 200px;
  29521. white-space: nowrap;
  29522. overflow: hidden;
  29523. text-overflow: ellipsis;
  29524. word-break: break-word;
  29525. cursor: pointer;
  29526. text-align: center;
  29527. border: 1px solid #bcc2cc;
  29528. box-sizing: border-box;
  29529. }
  29530. .engUpTop{
  29531. max-height: 300px;
  29532. overflow: auto;
  29533. }
  29534. .isUpdateToolDetailClass{
  29535. padding: 0 !important;
  29536. }
  29537. .isUpdateToolDetailClass textarea{
  29538. padding:12px;
  29539. font-size: 16px;
  29540. min-height:100%;
  29541. width: 100%;
  29542. box-sizing:border-box;
  29543. outline: none;
  29544. border:none;
  29545. line-height: 30px;
  29546. resize: none;
  29547. font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
  29548. color: #838383;
  29549. }
  29550. .show_taskD {
  29551. min-width: fit-content;
  29552. margin-left: 10px;
  29553. display: flex;
  29554. align-items: center;
  29555. font-size: 14px;
  29556. cursor: pointer;
  29557. color: #717c8d;
  29558. }
  29559. .show_taskD > img {
  29560. width: 15px;
  29561. margin-right: 5px;
  29562. transition: 0.2s all;
  29563. transform: rotate(-90deg);
  29564. }
  29565. .show_taskD.show > img {
  29566. transform: rotate(0deg);
  29567. }
  29568. .correctCss{
  29569. position: absolute;
  29570. bottom: -70px;
  29571. background: #409eff;
  29572. color: #fff;
  29573. }
  29574. .ScoreBtn {
  29575. background: rgba(87, 159, 248, 1);
  29576. display: flex;
  29577. justify-content: center;
  29578. align-items: center;
  29579. color: #fff;
  29580. font-size: 14px;
  29581. padding: 8px 12px;
  29582. border-radius: 5px;
  29583. cursor: pointer;
  29584. }
  29585. .max-height-popover .el-popover {
  29586. min-height: 200px;
  29587. max-height: 400px; /* 设置最大高度 */
  29588. overflow: auto; /* 超出部分显示滚动条 */
  29589. }
  29590. .stuLookScore {
  29591. position: absolute;
  29592. top: 12px;
  29593. right: 40px;
  29594. background: #0000008f;
  29595. border-radius: 5px;
  29596. padding: 3px 5px;
  29597. font-size: 14px;
  29598. color: #fff;
  29599. cursor: pointer;
  29600. }
  29601. .dialog_diyCopy >>> .el-dialog__header {
  29602. display: none !important;
  29603. }
  29604. .dialog_diyCopy >>> .el-dialog__body {
  29605. padding: 0 !important;
  29606. height: 100% !important;
  29607. }
  29608. .confirmOpenDigCss > div{
  29609. font-size: 14px;
  29610. color: rgba(0, 0, 0, 0.6);
  29611. }
  29612. .confirmOpenDigCss >>> .el-dialog{
  29613. border-radius: 6px;
  29614. }
  29615. .confirmOpenDigCss >>> .el-dialog__body{
  29616. padding: 25px !important;
  29617. }
  29618. .confirmOpenDigCss > span{
  29619. font-size: 16px;
  29620. font-weight: 600;
  29621. color: rgba(0, 0, 0, 0.8);
  29622. }
  29623. div::-webkit-scrollbar {
  29624. width: 10px;
  29625. height: 6px;
  29626. }
  29627. .Ovh{
  29628. margin: 5px 0;
  29629. width: 4em;
  29630. -webkit-line-clamp: 2;
  29631. display: -webkit-box;
  29632. -webkit-box-orient: vertical;
  29633. overflow: hidden;
  29634. text-overflow: ellipsis;
  29635. }
  29636. .renderedFor >>> .katex {
  29637. font-size: 18px;
  29638. width: 100%;
  29639. white-space: normal;
  29640. font-family: '黑体' !important;
  29641. }
  29642. .renderedFor >>> .katex .base{
  29643. display: inline !important;
  29644. display: contents !important;
  29645. }
  29646. .renderedFor>>> .katex .base .cjk_fallback{
  29647. white-space: normal !important;
  29648. display: inline !important;
  29649. }
  29650. .notop >>> .vjs_video_3-dimensions.vjs-fluid{
  29651. padding-top: 0 !important;
  29652. }
  29653. </style>